@codesandbox/sandpack-client
Version:
<img style="width:100%" src="https://user-images.githubusercontent.com/4838076/143581035-ebee5ba2-9cb1-4fe8-a05b-2f44bd69bb4b.gif" alt="Component toolkit for live running code editing experiences" />
1 lines • 1.21 MB
JavaScript
(this.csbJsonP=this.csbJsonP||[]).push([[3],{"../../node_modules/@ampproject/remapping/dist/remapping.mjs":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return f}));var n=r("../../node_modules/@ampproject/remapping/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"),s=r("../../node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js");const i=o("",-1,-1,"",null),a=[];function o(e,t,r,n,s){return{source:e,line:t,column:r,name:n,content:s}}function l(e,t,r,n){return{map:e,sources:t,source:r,content:n}}function c(e,t){return l(e,t,"",null)}function u(e,t,r,s){if(!e.map)return o(e.source,t,r,s,e.content);const a=Object(n.traceSegment)(e.map,t,r);return null==a?null:1===a.length?i:u(e.sources[a[1]],a[2],a[3],5===a.length?e.map.names[a[4]]:s)}function p(e,t){const r=function(e){return Array.isArray(e)?e:[e]}(e).map(e=>new n.TraceMap(e,"")),s=r.pop();for(let e=0;e<r.length;e++)if(r[e].sources.length>1)throw new Error(`Transformation map ${e} must have exactly one source file.\nDid you specify these with the most recent transformation maps first?`);let i=function e(t,r,s,i){const{resolvedSources:o,sourcesContent:u}=t,p=i+1,d=o.map((t,i)=>{const o={importer:s,depth:p,source:t||"",content:void 0},c=r(o.source,o),{source:d,content:f}=o;if(c)return e(new n.TraceMap(c,d),r,d,p);return function(e,t){return l(null,a,e,t)}(d,void 0!==f?f:u?u[i]:null)});return c(t,d)}(s,t,"",0);for(let e=r.length-1;e>=0;e--)i=c(r[e],[i]);return i}class d{constructor(e,t){const r=t.decodedMappings?Object(s.toDecodedMap)(e):Object(s.toEncodedMap)(e);this.version=r.version,this.file=r.file,this.mappings=r.mappings,this.names=r.names,this.sourceRoot=r.sourceRoot,this.sources=r.sources,t.excludeContent||(this.sourcesContent=r.sourcesContent)}toString(){return JSON.stringify(this)}}function f(e,t,r){const a="object"==typeof r?r:{excludeContent:!!r,decodedMappings:!1},o=p(e,t);return new d(function(e){const t=new s.GenMapping({file:e.map.file}),{sources:r,map:a}=e,o=a.names,l=Object(n.decodedMappings)(a);for(let e=0;e<l.length;e++){const n=l[e];for(let a=0;a<n.length;a++){const l=n[a],c=l[0];let p=i;if(1!==l.length){if(p=u(r[l[1]],l[2],l[3],5===l.length?o[l[4]]:""),null==p)continue}const{column:d,line:f,name:h,content:m,source:y}=p;Object(s.maybeAddSegment)(t,e,c,y,f,d,h),y&&null!=m&&Object(s.setSourceContent)(t,y,m)}}return t}(o),a)}},"../../node_modules/@ampproject/remapping/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js":function(e,t,r){!function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=n(r);function i(e,t){return t&&!t.endsWith("/")&&(t+="/"),s.default(e,t)}function a(e,t){for(let r=t;r<e.length;r++)if(!o(e[r]))return r;return e.length}function o(e){for(let t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}function l(e,t){return t||(e=e.slice()),e.sort(c)}function c(e,t){return e[0]-t[0]}let u=!1;function p(e,t,r){for(let n=r+1;n<e.length&&e[n][0]===t;r=n++);return r}function d(e,t,r){for(let n=r-1;n>=0&&e[n][0]===t;r=n--);return r}function f(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function h(e,t,r,n){const{lastKey:s,lastNeedle:i,lastIndex:a}=r;let o=0,l=e.length-1;if(n===s){if(t===i)return u=-1!==a&&e[a][0]===t,a;t>=i?o=-1===a?0:a:l=a}return r.lastKey=n,r.lastNeedle=t,r.lastIndex=function(e,t,r,n){for(;r<=n;){const s=r+(n-r>>1),i=e[s][0]-t;if(0===i)return u=!0,s;i<0?r=s+1:n=s-1}return u=!1,r-1}(e,t,o,l)}function m(e,t,r){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=r}function y(){return{__proto__:null}}function b(e,t,r,n,s,i,a,o,l,c){const{sections:u}=e;for(let e=0;e<u.length;e++){const{map:p,offset:d}=u[e];let f=l,h=c;if(e+1<u.length){const t=u[e+1].offset;f=Math.min(l,a+t.line),f===l?h=Math.min(c,o+t.column):f<l&&(h=o+t.column)}g(p,t,r,n,s,i,a+d.line,o+d.column,f,h)}}function g(t,r,n,s,i,a,o,l,c,u){if("sections"in t)return b(...arguments);const p=new S(t,r),d=s.length,f=a.length,h=e.decodedMappings(p),{resolvedSources:m,sourcesContent:y}=p;if(v(s,m),v(a,p.names),y)v(i,y);else for(let e=0;e<m.length;e++)i.push(null);for(let e=0;e<h.length;e++){const t=o+e;if(t>c)return;const r=E(n,t),s=0===e?l:0,i=h[e];for(let e=0;e<i.length;e++){const n=i[e],a=s+n[0];if(t===c&&a>=u)return;if(1===n.length){r.push([a]);continue}const o=d+n[1],l=n[2],p=n[3];r.push(4===n.length?[a,o,l,p]:[a,o,l,p,f+n[4]])}}}function v(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}function E(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}const T="`line` must be greater than 0 (lines start at line 1)",x="`column` must be greater than or equal to 0 (columns start at column 0)";e.encodedMappings=void 0,e.decodedMappings=void 0,e.traceSegment=void 0,e.originalPositionFor=void 0,e.generatedPositionFor=void 0,e.allGeneratedPositionsFor=void 0,e.eachMapping=void 0,e.sourceContentFor=void 0,e.presortedDecodedMap=void 0,e.decodedMap=void 0,e.encodedMap=void 0;class S{constructor(e,t){const r="string"==typeof e;if(!r&&e._decodedMemo)return e;const n=r?JSON.parse(e):e,{version:s,file:o,names:c,sourceRoot:u,sources:p,sourcesContent:d}=n;this.version=s,this.file=o,this.names=c,this.sourceRoot=u,this.sources=p,this.sourcesContent=d;const f=i(u||"",function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=p.map(e=>i(e||"",f));const{mappings:h}=n;"string"==typeof h?(this._encoded=h,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){const r=a(e,0);if(r===e.length)return e;t||(e=e.slice());for(let n=r;n<e.length;n=a(e,n+1))e[n]=l(e[n],t);return e}(h,r)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}}function P(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t}}function A(e,t,r,n){return{source:e,line:t,column:r,name:n}}function w(e,t){return{line:e,column:t}}function C(e,t,r,n,s){let i=h(e,n,t,r);return u?i=(-1===s?p:d)(e,n,i):-1===s&&i++,-1===i||i===e.length?-1:i}(()=>{function r(t,r,n,s,i,a){if(--n<0)throw new Error(T);if(s<0)throw new Error(x);const{sources:o,resolvedSources:l}=t;let c=o.indexOf(r);if(-1===c&&(c=l.indexOf(r)),-1===c)return a?[]:w(null,null);const b=(t._bySources||(t._bySources=function(e,t){const r=t.map(y);for(let n=0;n<e.length;n++){const s=e[n];for(let e=0;e<s.length;e++){const i=s[e];if(1===i.length)continue;const a=i[1],o=i[2],l=i[3],c=r[a],u=c[o]||(c[o]=[]),d=t[a],f=p(u,l,h(u,l,d,o));m(u,d.lastIndex=f+1,[l,n,i[0]])}}return r}(e.decodedMappings(t),t._bySourceMemos=o.map(f))))[c][n];if(null==b)return a?[]:w(null,null);const g=t._bySourceMemos[c];if(a)return function(e,t,r,n,s){let i=C(e,t,r,n,1);if(u||-1!==s||i++,-1===i||i===e.length)return[];const a=u?n:e[i][0];u||(i=d(e,a,i));const o=p(e,a,i),l=[];for(;i<=o;i++){const t=e[i];l.push(w(t[1]+1,t[2]))}return l}(b,g,n,s,i);const v=C(b,g,n,s,i);if(-1===v)return w(null,null);const E=b[v];return w(E[1]+1,E[2])}e.encodedMappings=e=>{var r;return null!==(r=e._encoded)&&void 0!==r?r:e._encoded=t.encode(e._decoded)},e.decodedMappings=e=>e._decoded||(e._decoded=t.decode(e._encoded)),e.traceSegment=(t,r,n)=>{const s=e.decodedMappings(t);if(r>=s.length)return null;const i=s[r],a=C(i,t._decodedMemo,r,n,1);return-1===a?null:i[a]},e.originalPositionFor=(t,{line:r,column:n,bias:s})=>{if(--r<0)throw new Error(T);if(n<0)throw new Error(x);const i=e.decodedMappings(t);if(r>=i.length)return A(null,null,null,null);const a=i[r],o=C(a,t._decodedMemo,r,n,s||1);if(-1===o)return A(null,null,null,null);const l=a[o];if(1===l.length)return A(null,null,null,null);const{names:c,resolvedSources:u}=t;return A(u[l[1]],l[2]+1,l[3],5===l.length?c[l[4]]:null)},e.allGeneratedPositionsFor=(e,{source:t,line:n,column:s,bias:i})=>r(e,t,n,s,i||-1,!0),e.generatedPositionFor=(e,{source:t,line:n,column:s,bias:i})=>r(e,t,n,s,i||1,!1),e.eachMapping=(t,r)=>{const n=e.decodedMappings(t),{names:s,resolvedSources:i}=t;for(let e=0;e<n.length;e++){const t=n[e];for(let n=0;n<t.length;n++){const a=t[n],o=e+1,l=a[0];let c=null,u=null,p=null,d=null;1!==a.length&&(c=i[a[1]],u=a[2]+1,p=a[3]),5===a.length&&(d=s[a[4]]),r({generatedLine:o,generatedColumn:l,source:c,originalLine:u,originalColumn:p,name:d})}}},e.sourceContentFor=(e,t)=>{const{sources:r,resolvedSources:n,sourcesContent:s}=e;if(null==s)return null;let i=r.indexOf(t);return-1===i&&(i=n.indexOf(t)),-1===i?null:s[i]},e.presortedDecodedMap=(e,t)=>{const r=new S(P(e,[]),t);return r._decoded=e.mappings,r},e.decodedMap=t=>P(t,e.decodedMappings(t)),e.encodedMap=t=>P(t,e.encodedMappings(t))})(),e.AnyMap=function(t,r){const n="string"==typeof t?JSON.parse(t):t;if(!("sections"in n))return new S(n,r);const s=[],i=[],a=[],o=[];b(n,r,s,i,a,o,0,0,1/0,1/0);const l={version:3,file:n.file,names:o,sources:i,sourcesContent:a,mappings:s};return e.presortedDecodedMap(l)},e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=-1,e.TraceMap=S,Object.defineProperty(e,"__esModule",{value:!0})}(t,r("../../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs"),r("../../node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs"))},"../../node_modules/@babel/compat-data/data/native-modules.json":function(e){e.exports=JSON.parse('{"es6.module":{"chrome":"61","and_chr":"61","edge":"16","firefox":"60","and_ff":"60","node":"13.2.0","opera":"48","op_mob":"45","safari":"10.1","ios":"10.3","samsung":"8.2","android":"61","electron":"2.0","ios_saf":"10.3"}}')},"../../node_modules/@babel/compat-data/data/plugins.json":function(e){e.exports=JSON.parse('{"transform-unicode-sets-regex":{"chrome":"112","opera":"98","edge":"112","firefox":"116","safari":"tp","node":"20","deno":"1.32","opera_mobile":"75","electron":"24.0"},"transform-class-static-block":{"chrome":"94","opera":"80","edge":"94","firefox":"93","safari":"16.4","node":"16.11","deno":"1.14","ios":"16.4","samsung":"17","opera_mobile":"66","electron":"15.0"},"proposal-class-static-block":{"chrome":"94","opera":"80","edge":"94","firefox":"93","safari":"16.4","node":"16.11","deno":"1.14","ios":"16.4","samsung":"17","opera_mobile":"66","electron":"15.0"},"transform-private-property-in-object":{"chrome":"91","opera":"77","edge":"91","firefox":"90","safari":"15","node":"16.9","deno":"1.9","ios":"15","samsung":"16","opera_mobile":"64","electron":"13.0"},"proposal-private-property-in-object":{"chrome":"91","opera":"77","edge":"91","firefox":"90","safari":"15","node":"16.9","deno":"1.9","ios":"15","samsung":"16","opera_mobile":"64","electron":"13.0"},"transform-class-properties":{"chrome":"74","opera":"62","edge":"79","firefox":"90","safari":"14.1","node":"12","deno":"1","ios":"14.5","samsung":"11","opera_mobile":"53","electron":"6.0"},"proposal-class-properties":{"chrome":"74","opera":"62","edge":"79","firefox":"90","safari":"14.1","node":"12","deno":"1","ios":"14.5","samsung":"11","opera_mobile":"53","electron":"6.0"},"transform-private-methods":{"chrome":"84","opera":"70","edge":"84","firefox":"90","safari":"15","node":"14.6","deno":"1","ios":"15","samsung":"14","opera_mobile":"60","electron":"10.0"},"proposal-private-methods":{"chrome":"84","opera":"70","edge":"84","firefox":"90","safari":"15","node":"14.6","deno":"1","ios":"15","samsung":"14","opera_mobile":"60","electron":"10.0"},"transform-numeric-separator":{"chrome":"75","opera":"62","edge":"79","firefox":"70","safari":"13","node":"12.5","deno":"1","ios":"13","samsung":"11","rhino":"1.7.14","opera_mobile":"54","electron":"6.0"},"proposal-numeric-separator":{"chrome":"75","opera":"62","edge":"79","firefox":"70","safari":"13","node":"12.5","deno":"1","ios":"13","samsung":"11","rhino":"1.7.14","opera_mobile":"54","electron":"6.0"},"transform-logical-assignment-operators":{"chrome":"85","opera":"71","edge":"85","firefox":"79","safari":"14","node":"15","deno":"1.2","ios":"14","samsung":"14","opera_mobile":"60","electron":"10.0"},"proposal-logical-assignment-operators":{"chrome":"85","opera":"71","edge":"85","firefox":"79","safari":"14","node":"15","deno":"1.2","ios":"14","samsung":"14","opera_mobile":"60","electron":"10.0"},"transform-nullish-coalescing-operator":{"chrome":"80","opera":"67","edge":"80","firefox":"72","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","opera_mobile":"57","electron":"8.0"},"proposal-nullish-coalescing-operator":{"chrome":"80","opera":"67","edge":"80","firefox":"72","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","opera_mobile":"57","electron":"8.0"},"transform-optional-chaining":{"chrome":"91","opera":"77","edge":"91","firefox":"74","safari":"13.1","node":"16.9","deno":"1.9","ios":"13.4","samsung":"16","opera_mobile":"64","electron":"13.0"},"proposal-optional-chaining":{"chrome":"91","opera":"77","edge":"91","firefox":"74","safari":"13.1","node":"16.9","deno":"1.9","ios":"13.4","samsung":"16","opera_mobile":"64","electron":"13.0"},"transform-json-strings":{"chrome":"66","opera":"53","edge":"79","firefox":"62","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.14","opera_mobile":"47","electron":"3.0"},"proposal-json-strings":{"chrome":"66","opera":"53","edge":"79","firefox":"62","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.14","opera_mobile":"47","electron":"3.0"},"transform-optional-catch-binding":{"chrome":"66","opera":"53","edge":"79","firefox":"58","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"proposal-optional-catch-binding":{"chrome":"66","opera":"53","edge":"79","firefox":"58","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"transform-parameters":{"chrome":"49","opera":"36","edge":"18","firefox":"53","safari":"16.3","node":"6","deno":"1","ios":"16.3","samsung":"5","opera_mobile":"36","electron":"0.37"},"transform-async-generator-functions":{"chrome":"63","opera":"50","edge":"79","firefox":"57","safari":"12","node":"10","deno":"1","ios":"12","samsung":"8","opera_mobile":"46","electron":"3.0"},"proposal-async-generator-functions":{"chrome":"63","opera":"50","edge":"79","firefox":"57","safari":"12","node":"10","deno":"1","ios":"12","samsung":"8","opera_mobile":"46","electron":"3.0"},"transform-object-rest-spread":{"chrome":"60","opera":"47","edge":"79","firefox":"55","safari":"11.1","node":"8.3","deno":"1","ios":"11.3","samsung":"8","opera_mobile":"44","electron":"2.0"},"proposal-object-rest-spread":{"chrome":"60","opera":"47","edge":"79","firefox":"55","safari":"11.1","node":"8.3","deno":"1","ios":"11.3","samsung":"8","opera_mobile":"44","electron":"2.0"},"transform-dotall-regex":{"chrome":"62","opera":"49","edge":"79","firefox":"78","safari":"11.1","node":"8.10","deno":"1","ios":"11.3","samsung":"8","opera_mobile":"46","electron":"3.0"},"transform-unicode-property-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"proposal-unicode-property-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"transform-named-capturing-groups-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"transform-async-to-generator":{"chrome":"55","opera":"42","edge":"15","firefox":"52","safari":"11","node":"7.6","deno":"1","ios":"11","samsung":"6","opera_mobile":"42","electron":"1.6"},"transform-exponentiation-operator":{"chrome":"52","opera":"39","edge":"14","firefox":"52","safari":"10.1","node":"7","deno":"1","ios":"10.3","samsung":"6","rhino":"1.7.14","opera_mobile":"41","electron":"1.3"},"transform-template-literals":{"chrome":"41","opera":"28","edge":"13","firefox":"34","safari":"13","node":"4","deno":"1","ios":"13","samsung":"3.4","opera_mobile":"28","electron":"0.21"},"transform-literals":{"chrome":"44","opera":"31","edge":"12","firefox":"53","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","opera_mobile":"32","electron":"0.30"},"transform-function-name":{"chrome":"51","opera":"38","edge":"79","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"transform-arrow-functions":{"chrome":"47","opera":"34","edge":"13","firefox":"43","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","rhino":"1.7.13","opera_mobile":"34","electron":"0.36"},"transform-block-scoped-functions":{"chrome":"41","opera":"28","edge":"12","firefox":"46","safari":"10","node":"4","deno":"1","ie":"11","ios":"10","samsung":"3.4","opera_mobile":"28","electron":"0.21"},"transform-classes":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-object-super":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-shorthand-properties":{"chrome":"43","opera":"30","edge":"12","firefox":"33","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.14","opera_mobile":"30","electron":"0.27"},"transform-duplicate-keys":{"chrome":"42","opera":"29","edge":"12","firefox":"34","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","opera_mobile":"29","electron":"0.25"},"transform-computed-properties":{"chrome":"44","opera":"31","edge":"12","firefox":"34","safari":"7.1","node":"4","deno":"1","ios":"8","samsung":"4","opera_mobile":"32","electron":"0.30"},"transform-for-of":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"transform-sticky-regex":{"chrome":"49","opera":"36","edge":"13","firefox":"3","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"36","electron":"0.37"},"transform-unicode-escapes":{"chrome":"44","opera":"31","edge":"12","firefox":"53","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","opera_mobile":"32","electron":"0.30"},"transform-unicode-regex":{"chrome":"50","opera":"37","edge":"13","firefox":"46","safari":"12","node":"6","deno":"1","ios":"12","samsung":"5","opera_mobile":"37","electron":"1.1"},"transform-spread":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-destructuring":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"transform-block-scoping":{"chrome":"50","opera":"37","edge":"14","firefox":"53","safari":"11","node":"6","deno":"1","ios":"11","samsung":"5","opera_mobile":"37","electron":"1.1"},"transform-typeof-symbol":{"chrome":"38","opera":"25","edge":"12","firefox":"36","safari":"9","node":"0.12","deno":"1","ios":"9","samsung":"3","rhino":"1.7.13","opera_mobile":"25","electron":"0.20"},"transform-new-target":{"chrome":"46","opera":"33","edge":"14","firefox":"41","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-regenerator":{"chrome":"50","opera":"37","edge":"13","firefox":"53","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"37","electron":"1.1"},"transform-member-expression-literals":{"chrome":"7","opera":"12","edge":"12","firefox":"2","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"transform-property-literals":{"chrome":"7","opera":"12","edge":"12","firefox":"2","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"transform-reserved-words":{"chrome":"13","opera":"10.50","edge":"12","firefox":"2","safari":"3.1","node":"0.6","deno":"1","ie":"9","android":"4.4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"transform-export-namespace-from":{"chrome":"72","deno":"1.0","edge":"79","firefox":"80","node":"13.2","opera":"60","opera_mobile":"51","safari":"14.1","ios":"14.5","samsung":"11.0","android":"72","electron":"5.0"},"proposal-export-namespace-from":{"chrome":"72","deno":"1.0","edge":"79","firefox":"80","node":"13.2","opera":"60","opera_mobile":"51","safari":"14.1","ios":"14.5","samsung":"11.0","android":"72","electron":"5.0"}}')},"../../node_modules/@babel/compat-data/native-modules.js":function(e,t,r){e.exports=r("../../node_modules/@babel/compat-data/data/native-modules.json")},"../../node_modules/@babel/compat-data/plugins.js":function(e,t,r){e.exports=r("../../node_modules/@babel/compat-data/data/plugins.json")},"../../node_modules/@babel/core/lib/config/caching.js":function(e,t,r){"use strict";function n(){const e=r("../../node_modules/gensync/index.js");return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.assertSimpleType=h,t.makeStrongCache=c,t.makeStrongCacheSync=function(e){return a(c(e))},t.makeWeakCache=l,t.makeWeakCacheSync=function(e){return a(l(e))};var s=r("../../node_modules/@babel/core/lib/gensync-utils/async.js"),i=r("../../node_modules/@babel/core/lib/config/util.js");const a=e=>n()(e).sync;function*o(){return!0}function l(e){return u(WeakMap,e)}function c(e){return u(Map,e)}function u(e,t){const r=new e,n=new e,a=new e;return function*(e,o){const l=yield*(0,s.isAsync)(),c=l?n:r,u=yield*function*(e,t,r,n,i){const a=yield*p(t,n,i);if(a.valid)return a;if(e){const e=yield*p(r,n,i);if(e.valid){return{valid:!0,value:yield*(0,s.waitFor)(e.value.promise)}}}return{valid:!1,value:null}}(l,c,a,e,o);if(u.valid)return u.value;const h=new f(o),y=t(e,h);let b,g;return g=(0,i.isIterableIterator)(y)?yield*(0,s.onFirstPause)(y,()=>{b=function(e,t,r){const n=new m;return d(t,e,r,n),n}(h,a,e)}):y,d(c,h,e,g),b&&(a.delete(e),b.release(g)),g}}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 s=e.get(r);switch(t.deactivate(),t.mode()){case"forever":s=[{value:n,valid:o}],e.set(r,s);break;case"invalidate":s=[{value:n,valid:t.validator()}],e.set(r,s);break;case"valid":s?s.push({value:n,valid:t.validator()}):(s=[{value:n,valid:t.validator()}],e.set(r,s))}}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(()=>h(t()));t?e.forever():e.never()}return t.forever=()=>e.forever(),t.never=()=>e.never(),t.using=t=>e.using(()=>h(t())),t.invalidate=t=>e.invalidate(()=>h(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,s.maybeAsync)(e,"You appear to be using an async cache handler, but Babel has been called synchronously");return(0,s.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 h(e){if((0,s.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 m{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)}}},"../../node_modules/@babel/core/lib/config/config-chain.js":function(e,t,r){"use strict";function n(){const e=r("../../node_modules/path-browserify/index.js");return n=function(){return e},e}function s(){const e=r("../../node_modules/debug/src/browser.js");return s=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.buildPresetChain=function*(e,t){const r=yield*h(e,t);return r?{plugins:F(r.plugins),presets:F(r.presets),options:r.options.map(e=>R(e)),files:new Set}:null},t.buildPresetChainWalker=void 0,t.buildRootChain=function*(e,t){let r,s;const i=new o.ConfigPrinter,l=yield*x({options:e,dirname:t.cwd},t,void 0,i);if(!l)return null;const c=yield*i.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,h=t.cwd;const m=B(),y=new o.ConfigPrinter;if(p){const e=v(p),n=yield*P(e,t,void 0,y);if(!n)return null;r=yield*y.output(),void 0===d&&(d=e.options.babelrc),void 0===f&&(h=e.dirname,f=e.options.babelrcRoots),L(m,n)}let b,g,T=!1;const S=B();if((!0===d||void 0===d)&&"string"==typeof t.filename){const e=yield*(0,u.findPackageData)(t.filename);if(e&&function(e,t,r,s){if("boolean"==typeof r)return r;const i=e.root;if(void 0===r)return-1!==t.directories.indexOf(i);let o=r;Array.isArray(o)||(o=[o]);if(o=o.map(e=>"string"==typeof e?n().resolve(s,e):e),1===o.length&&o[0]===i)return-1!==t.directories.indexOf(i);return o.some(r=>("string"==typeof r&&(r=(0,a.default)(r,s)),t.directories.some(t=>H(r,s,t,e))))}(t,e,f,h)){if(({ignore:b,config:g}=yield*(0,u.findRelativeConfig)(e,t.envName,t.caller)),b&&S.files.add(b.filepath),b&&W(t,b.ignore,null,b.dirname)&&(T=!0),g&&!T){const e=E(g),r=new o.ConfigPrinter,n=yield*P(e,t,void 0,r);n?(s=yield*r.output(),L(S,n)):T=!0}g&&T&&S.files.add(g.filepath)}}t.showConfig&&console.log(`Babel configs on "${t.filename}" (ascending priority):\n`+[r,s,c].filter(e=>!!e).join("\n\n")+"\n-----End Babel configs-----");const A=L(L(L(B(),m),S),l);return{plugins:T?[]:F(A.plugins),presets:T?[]:F(A.presets),options:T?[]:A.options.map(e=>R(e)),fileHandling:T?"ignored":"transpile",ignore:b||void 0,babelrc:g||void 0,config:p||void 0,files:A.files}};var i=r("../../node_modules/@babel/core/lib/config/validation/options.js"),a=r("../../node_modules/@babel/core/lib/config/pattern-to-regex.js"),o=r("../../node_modules/@babel/core/lib/config/printer.js"),l=r("../../node_modules/@babel/core/lib/errors/rewrite-stack-trace.js"),c=r("../../node_modules/@babel/core/lib/errors/config-error.js"),u=r("../../node_modules/@babel/core/lib/config/files/index-browser.js"),p=r("../../node_modules/@babel/core/lib/config/caching.js"),d=r("../../node_modules/@babel/core/lib/config/config-descriptors.js");const f=s()("babel:config:config-chain");const h=k({root:e=>m(e),env:(e,t)=>y(e)(t),overrides:(e,t)=>b(e)(t),overridesEnv:(e,t,r)=>g(e)(t)(r),createLogger:()=>()=>{}});t.buildPresetChainWalker=h;const m=(0,p.makeWeakCacheSync)(e=>_(e,e.alias,d.createUncachedDescriptors)),y=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>O(e,e.alias,d.createUncachedDescriptors,t))),b=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>j(e,e.alias,d.createUncachedDescriptors,t))),g=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>(0,p.makeStrongCacheSync)(r=>N(e,e.alias,d.createUncachedDescriptors,t,r))));const v=(0,p.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,i.validate)("configfile",e.options,e.filepath)})),E=(0,p.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,i.validate)("babelrcfile",e.options,e.filepath)})),T=(0,p.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,i.validate)("extendsfile",e.options,e.filepath)})),x=k({root:e=>_(e,"base",d.createCachedDescriptors),env:(e,t)=>O(e,"base",d.createCachedDescriptors,t),overrides:(e,t)=>j(e,"base",d.createCachedDescriptors,t),overridesEnv:(e,t,r)=>N(e,"base",d.createCachedDescriptors,t,r),createLogger:(e,t,r)=>function(e,t,r){var n;if(!r)return()=>{};return r.configure(t.showConfig,o.ChainFormatter.Programmatic,{callerName:null==(n=t.caller)?void 0:n.name})}(0,t,r)}),S=k({root:e=>A(e),env:(e,t)=>w(e)(t),overrides:(e,t)=>C(e)(t),overridesEnv:(e,t,r)=>I(e)(t)(r),createLogger:(e,t,r)=>function(e,t,r){if(!r)return()=>{};return r.configure(t.showConfig,o.ChainFormatter.Config,{filepath:e})}(e.filepath,t,r)});function*P(e,t,r,n){const s=yield*S(e,t,r,n);return null==s||s.files.add(e.filepath),s}const A=(0,p.makeWeakCacheSync)(e=>_(e,e.filepath,d.createUncachedDescriptors)),w=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>O(e,e.filepath,d.createUncachedDescriptors,t))),C=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>j(e,e.filepath,d.createUncachedDescriptors,t))),I=(0,p.makeWeakCacheSync)(e=>(0,p.makeStrongCacheSync)(t=>(0,p.makeStrongCacheSync)(r=>N(e,e.filepath,d.createUncachedDescriptors,t,r))));function _({dirname:e,options:t},r,n){return n(e,t,r)}function O({dirname:e,options:t},r,n,s){var i;const a=null==(i=t.env)?void 0:i[s];return a?n(e,a,`${r}.env["${s}"]`):null}function j({dirname:e,options:t},r,n,s){var i;const a=null==(i=t.overrides)?void 0:i[s];if(!a)throw new Error("Assertion failure - missing override");return n(e,a,`${r}.overrides[${s}]`)}function N({dirname:e,options:t},r,n,s,i){var a,o;const l=null==(a=t.overrides)?void 0:a[s];if(!l)throw new Error("Assertion failure - missing override");const c=null==(o=l.env)?void 0:o[i];return c?n(e,c,`${r}.overrides[${s}].env["${i}"]`):null}function k({root:e,env:t,overrides:r,overridesEnv:n,createLogger:s}){return function*(i,a,o=new Set,l){const{dirname:c}=i,u=[],p=e(i);if(U(p,c,a,i.filepath)){u.push({config:p,envName:void 0,index:void 0});const e=t(i,a.envName);e&&U(e,c,a,i.filepath)&&u.push({config:e,envName:a.envName,index:void 0}),(p.options.overrides||[]).forEach((e,t)=>{const s=r(i,t);if(U(s,c,a,i.filepath)){u.push({config:s,index:t,envName:void 0});const e=n(i,t,a.envName);e&&U(e,c,a,i.filepath)&&u.push({config:e,index:t,envName:a.envName})}})}if(u.some(({config:{options:{ignore:e,only:t}}})=>W(a,e,t,c)))return null;const d=B(),f=s(i,a,l);for(const{config:e,index:t,envName:r}of u){if(!(yield*D(d,e.options,c,a,o,l)))return null;f(e,t,r),yield*M(d,e)}return d}}function*D(e,t,r,n,s,i){if(void 0===t.extends)return!0;const a=yield*(0,u.loadConfig)(t.extends,r,n.envName,n.caller);if(s.has(a))throw new Error(`Configuration cycle detected loading ${a.filepath}.\nFile already loaded following the config chain:\n`+Array.from(s,e=>" - "+e.filepath).join("\n"));s.add(a);const o=yield*P(T(a),n,s,i);return s.delete(a),!!o&&(L(e,o),!0)}function L(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*M(e,{options:t,plugins:r,presets:n}){return e.options.push(t),e.plugins.push(...yield*r()),e.presets.push(...yield*n()),e}function B(){return{options:[],presets:[],plugins:[],files:new Set}}function R(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 F(e){const t=new Map,r=[];for(const n of e)if("function"==typeof n.value){const e=n.value;let s=t.get(e);s||(s=new Map,t.set(e,s));let i=s.get(n.name);i?i.value=n:(i={value:n},r.push(i),n.ownPass||s.set(n.name,i))}else r.push({value:n});return r.reduce((e,t)=>(e.push(t.value),e),[])}function U({options:e},t,r,n){return(void 0===e.test||V(r,e.test,t,n))&&(void 0===e.include||V(r,e.include,t,n))&&(void 0===e.exclude||!V(r,e.exclude,t,n))}function V(e,t,r,n){return G(e,Array.isArray(t)?t:[t],r,n)}function K(e,t){return t instanceof RegExp?String(t):t}function W(e,t,r,n){if(t&&G(e,t,n)){var s;const r=`No config is applied to "${null!=(s=e.filename)?s:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(t,K)}\` from "${n}"`;return f(r),e.showConfig&&console.log(r),!0}if(r&&!G(e,r,n)){var i;const t=`No config is applied to "${null!=(i=e.filename)?i:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(r,K)}\` from "${n}"`;return f(t),e.showConfig&&console.log(t),!0}return!1}function G(e,t,r,n){return t.some(t=>H(t,r,e.filename,e,n))}function H(e,t,r,n,s){if("function"==typeof e)return!!(0,l.endHiddenCallStack)(e)(r,{dirname:t,envName:n.envName,caller:n.caller});if("string"!=typeof r)throw new c.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel",s);return"string"==typeof e&&(e=(0,a.default)(e,t)),e.test(r)}},"../../node_modules/@babel/core/lib/config/config-descriptors.js":function(e,t,r){"use strict";function n(){const e=r("../../node_modules/gensync/index.js");return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.createCachedDescriptors=function(e,t,r){const{plugins:n,presets:s,passPerPreset:i}=t;return{options:u(t,e),plugins:n?()=>h(n,e)(r):()=>c([]),presets:s?()=>d(s,e)(r)(!!i):()=>c([])}},t.createDescriptor=E,t.createUncachedDescriptors=function(e,t,r){return{options:u(t,e),plugins:(0,s.once)(()=>g(t.plugins||[],e,r)),presets:(0,s.once)(()=>b(t.presets||[],e,r,!!t.passPerPreset))}};var s=r("../../node_modules/@babel/core/lib/gensync-utils/functional.js"),i=r("../../node_modules/@babel/core/lib/config/files/index-browser.js"),a=r("../../node_modules/@babel/core/lib/config/item.js"),o=r("../../node_modules/@babel/core/lib/config/caching.js"),l=r("../../node_modules/@babel/core/lib/config/resolve-targets-browser.js");function*c(e){return e}function u(e,t){return"string"==typeof e.browserslistConfigFile&&(e.browserslistConfigFile=(0,l.resolveBrowserslistConfigFile)(e.browserslistConfigFile,t)),e}const p=new WeakMap,d=(0,o.makeWeakCacheSync)((e,t)=>{const r=t.using(e=>e);return(0,o.makeStrongCacheSync)(t=>(0,o.makeStrongCache)((function*(n){return(yield*b(e,r,t,n)).map(e=>y(p,e))})))}),f=new WeakMap,h=(0,o.makeWeakCacheSync)((e,t)=>{const r=t.using(e=>e);return(0,o.makeStrongCache)((function*(t){return(yield*g(e,r,t)).map(e=>y(f,e))}))}),m={};function y(e,t){const{value:r,options:n=m}=t;if(!1===n)return t;let s=e.get(r);s||(s=new WeakMap,e.set(r,s));let i=s.get(n);if(i||(i=[],s.set(n,i)),-1===i.indexOf(t)){const e=i.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&&(null==(s=r.file)?void 0:s.request)===(null==(i=n.file)?void 0:i.request)&&(null==(a=r.file)?void 0:a.resolved)===(null==(o=n.file)?void 0:o.resolved);var r,n,s,i,a,o});if(e.length>0)return e[0];i.push(t)}return t}function*b(e,t,r,n){return yield*v("preset",e,t,r,n)}function*g(e,t,r){return yield*v("plugin",e,t,r)}function*v(e,t,r,s,i){const a=yield*n().all(t.map((t,n)=>E(t,r,{type:e,alias:`${s}$${n}`,ownPass:!!i})));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)}}(a),a}function*E(e,t,{type:r,alias:n,ownPass:s}){const o=(0,a.getItemDescriptor)(e);if(o)return o;let l,c,u=e;Array.isArray(u)&&(3===u.length?[u,c,l]=u:[u,c]=u);let p=void 0,d=null;if("string"==typeof u){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=u;({filepath:d,value:u}=yield*e(u,t)),p={request:n,resolved:d}}if(!u)throw new Error("Unexpected falsy value: "+String(u));if("object"==typeof u&&u.__esModule){if(!u.default)throw new Error("Must export a default export when using ES6 modules.");u=u.default}if("object"!=typeof u&&"function"!=typeof u)throw new Error(`Unsupported format: ${typeof u}. Expected an object or a function.`);if(null!==d&&"object"==typeof u&&u)throw new Error("Plugin/Preset files are not allowed to export objects, only functions. In "+d);return{name:l,alias:d||n,value:u,options:c,dirname:t,ownPass:s,file:p}}},"../../node_modules/@babel/core/lib/config/files/index-browser.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROOT_CONFIG_FILENAMES=void 0,t.findConfigUpwards=function(e){return null},t.findPackageData=function*(e){return{filepath:e,directories:[],pkg:null,isPackage:!1}},t.findRelativeConfig=function*(e,t,r){return{config:null,ignore:null}},t.findRootConfig=function*(e,t,r){return null},t.loadConfig=function*(e,t,r,n){throw new Error(`Cannot load ${e} relative to ${t} in a browser`)},t.loadPlugin=function(e,t){throw new Error(`Cannot load plugin ${e} relative to ${t} in a browser`)},t.loadPreset=function(e,t){throw new Error(`Cannot load preset ${e} relative to ${t} in a browser`)},t.resolvePlugin=function(e,t){return null},t.resolvePreset=function(e,t){return null},t.resolveShowConfigPath=function*(e){return null};t.ROOT_CONFIG_FILENAMES=[]},"../../node_modules/@babel/core/lib/config/full.js":function(e,t,r){"use strict";function n(){const e=r("../../node_modules/gensync/index.js");return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r("../../node_modules/@babel/core/lib/gensync-utils/async.js"),i=r("../../node_modules/@babel/core/lib/config/util.js"),a=r("../../node_modules/@babel/core/lib/index.js"),o=r("../../node_modules/@babel/core/lib/config/plugin.js"),l=r("../../node_modules/@babel/core/lib/config/item.js"),c=r("../../node_modules/@babel/core/lib/config/config-chain.js"),u=r("../../node_modules/@babel/core/lib/config/helpers/deep-array.js");function p(){const e=r("../../node_modules/@babel/traverse/lib/index.js");return p=function(){return e},e}var d=r("../../node_modules/@babel/core/lib/config/caching.js"),f=r("../../node_modules/@babel/core/lib/config/validation/options.js"),h=r("../../node_modules/@babel/core/lib/config/validation/plugins.js"),m=r("../../node_modules/@babel/core/lib/config/helpers/config-api.js"),y=r("../../node_modules/@babel/core/lib/config/partial.js"),b=r("../../node_modules/@babel/core/lib/errors/config-error.js"),g=n()((function*(e){var t;const r=yield*(0,y.default)(e);if(!r)return null;const{options:n,context:s,fileHandling:a}=r;if("ignored"===a)return null;const o={},{plugins:c,presets:p}=n;if(!c||!p)throw new Error("Assertion failure - plugins and presets exist");const d=Object.assign({},s,{targets:n.targets}),h=e=>{const t=(0,l.getItemDescriptor)(e);if(!t)throw new Error("Assertion failure - must be config item");return t},m=p.map(h),b=c.map(h),g=[[]],E=[],T=[];if(yield*v(s,(function*e(t,r){const n=[];for(let e=0;e<t.length;e++){const i=t[e];if(!1!==i.options){try{var s=yield*I(i,d)}catch(r){throw"BABEL_UNKNOWN_OPTION"===r.code&&(0,f.checkNoUnwrappedItemOptionPairs)(t,e,"preset",r),r}T.push(s.externalDependencies),i.ownPass?n.push({preset:s.chain,pass:[]}):n.unshift({preset:s.chain,pass:r})}}if(n.length>0){g.splice(1,0,...n.map(e=>e.pass).filter(e=>e!==r));for(const{preset:t,pass:r}of n){if(!t)return!0;r.push(...t.plugins);if(yield*e(t.presets,r))return!0;t.options.forEach(e=>{(0,i.mergeOptions)(o,e)})}}}))(m,g[0]))return null;const x=o;(0,i.mergeOptions)(x,n);const S=Object.assign({},d,{assumptions:null!=(t=x.assumptions)?t:{}});return yield*v(s,(function*(){g[0].unshift(...b);for(const t of g){const r=[];E.push(r);for(let n=0;n<t.length;n++){const s=t[n];if(!1!==s.options){try{var e=yield*P(s,S)}catch(e){throw"BABEL_UNKNOWN_PLUGIN_PROPERTY"===e.code&&(0,f.checkNoUnwrappedItemOptionPairs)(t,n,"plugin",e),e}r.push(e),T.push(e.externalDependencies)}}}}))(),x.plugins=E[0],x.presets=E.slice(1).filter(e=>e.length>0).map(e=>({plugins:e})),x.passPerPreset=x.presets.length>0,{options:x,passes:E,externalDependencies:(0,u.finalize)(T)}}));function v(e,t){return function*(r,n){try{return yield*t(r,n)}catch(t){var s;if(!/^\[BABEL\]/.test(t.message))t.message=`[BABEL] ${null!=(s=e.filename)?s:"unknown file"}: ${t.message}`;throw t}}}t.default=g;const E=e=>(0,d.makeWeakCache)((function*({value:t,options:r,dirname:n,alias:i},o){if(!1===r)throw new Error("Assertion failure");r=r||{};const l=[];let c=t;if("function"==typeof t){const u=(0,s.maybeAsync)(t,"You appear to be using an async plugin/preset, but Babel has been called synchronously"),p=Object.assign({},a,e(o,l));try{c=yield*u(p,r,n)}catch(e){throw i&&(e.message+=` (While processing: ${JSON.stringify(i)})`),e}}if(!c||"object"!=typeof c)throw new Error("Plugin/Preset did not return an object.");if((0,s.isThenable)(c))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(i)})`);if(l.length>0&&(!o.configured()||"forever"===o.mode())){let e=`A plugin/preset has external untracked dependencies (${l[0]}), but the cache `;throw o.configured()?e+=" has been configured to never be invalidated. ":e+="has not been configured to be invalidated when the external dependencies change. ",e+=`Plugins/presets should configure their cache to be invalidated when the external dependencies change, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n(While processing: ${JSON.stringify(i)})`,new Error(e)}return{value:c,options:r,dirname:n,alias:i,externalDependencies:(0,u.finalize)(l)}})),T=E(m.makePluginAPI),x=E(m.makePresetAPI),S=(0,d.makeWeakCache)((function*({value:e,options:t,dirname:r,alias:n,externalDependencies:i},a){const l=(0,h.validatePluginObject)(e),c=Object.assign({},l);if(c.visitor&&(c.visitor=p().default.explode(Object.assign({},c.visitor))),c.inherits){const e={name:void 0,alias:n+"$inherits",value:c.inherits,options:t,dirname:r},o=yield*(0,s.forwardAsync)(P,t=>a.invalidate(r=>t(e,r)));c.pre=_(o.pre,c.pre),c.post=_(o.post,c.post),c.manipulateOptions=_(o.manipulateOptions,c.manipulateOptions),c.visitor=p().default.visitors.merge([o.visitor||{},c.visitor||{}]),o.externalDependencies.length>0&&(i=0===i.length?o.externalDependencies:(0,u.finalize)([i,o.externalDependencies]))}return new o.default(c,t,n,i)}));function*P(e,t){if(e.value instanceof o.default){if(e.options)throw new Error("Passed options to an existing Plugin instance will not work.");return e.value}return yield*S(yield*T(e,t),t)}const A=e=>e&&"function"!=typeof e,w=(e,t)=>{if(A(e.test)||A(e.include)||A(e.exclude)){const e=t.name?`"${t.name}"`:"/* your preset */";throw new b.default([`Preset ${e} requires a filename to be set when babel is called directly,`,"```",`babel.transformSync(code, { filename: 'file.ts', presets: [${e}] });`,"```","See https://babeljs.io/docs/en/options#filename for more information."].join("\n"))}},C=(0,d.makeWeakCacheSync)(({value:e,dirname:t,alias:r,externalDependencies:n})=>({options:(0,f.validate)("preset",e),alias:r,dirname:t,externalDependencies:n}));function*I(e,t){const r=C(yield*x(e,t));return((e,t,r)=>{if(!t.filename){var n;const{options:t}=e;w(t,r),null==(n=t.overrides)||n.forEach(e=>w(e,r))}})(r,t,e),{chain:yield*(0,c.buildPresetChain)(r,t),externalDependencies:r.externalDependencies}}function _(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)}}},"../../node_modules/@babel/core/lib/config/helpers/config-api.js":function(e,t,r){"use strict";function n(){const e=r("../../node_modules/@babel/core/node_modules/semver/semver.js");return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.makeConfigAPI=a,t.makePluginAPI=function(e,t){return Object.assign({},o(e,t),{assumption:t=>e.using(e=>e.assumptions[t])})},t.makePresetAPI=o;var s=r("../../node_modules/@babel/core/lib/index.js"),i=r("../../node_modules/@babel/core/lib/config/caching.js");function a(e){return{version:s.version,cache:e.simple(),env:t=>e.using(e=>void 0===t?e.envName:"function"==typeof t?(0,i.assertSimpleType)(t(e.envName)):(Array.isArray(t)?t:[t]).some(t=>{if("string"!=typeof t)throw new Error("Unexpected non-string value");return t===e.envName})),async:()=>!1,caller:t=>e.using(e=>(0,i.assertSimpleType)(t(e.caller))),assertVersion:l}}function o(e,t){return Object.assign({},a(e),{targets:()=>JSON.parse(e.using(e=>JSON.stringify(e.targets))),addExternalDependency:e=>{t.push(e)}})}function l(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(s.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 "${s.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:s.version,range:e})}},"../../node_modules/@babel/core/lib/config/helpers/deep-array.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=function(e){return Object.freeze(e)},t.flattenToSet=function(e){const t=new Set,r=[e];for(;r.length>0;)for(const e of r.pop())Array.isArray(e)?r.push(e):t.add(e);return t}},"../../node_modules/@babel/core/lib/config/helpers/environment.js":function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getEnv=function(t="development"){return e.env.BABEL_ENV||"production"}}).call(this,r("../../node_modules/process/browser.js"))},"../../node_modules/@babel/core/lib/config/index.js":function(e,t,r){"use strict";function n(){const e=r("../../node_modules/gensync/index.js");return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.createConfigItem=function(e,t,r){if(void 0!==r)(0,o.beginHiddenCallStack)(d.errback)(e,t,r);else{if("function"!=typeof t)return f(e,t);(0,o.beginHiddenCallStack)(d.errback)(e,void 0,r)}},t.createConfigItemAsync=function(...e){return(0,o.beginHiddenCallStack)(d.async)(...e)},t.createConfigItemSync=f,Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s.default}}),t.loadOptions=function(e,t){if(void 0!==t)(0,o.beginHiddenCallStack)(u.errback)(e,t);else{if("function"!=typeof e)return p(e);(0,o.beginHiddenCallStack)(u.errback)(void 0,e)}},t.loadOptionsAsync=function(...e){return(0,o.beginHiddenCallStack)(u.async)(...e)},t.loadOptionsSync=p,t.loadPartialConfig=function(e,t){if(void 0!==t)(0,o.beginHiddenCallStack)(l.errback)(e,t);else{if("function"!=typeof e)return c(e);(0,o.beginHiddenCallStack)(l.errback)(void 0,e)}},t.loadPartialConfigAsync=function(...e){return(0,o.beginHiddenCallStack)(l.async)(...e)},t.loadPartialConfigSync=c;var s=r("../../node_modules/@babel/core/lib/config/full.js"),i=r("../../node_modules/@babel/core/lib/config/partial.js"),a=r("../../node_modules/@babel/core/lib/config/item.js"),o=r("../../node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const l=n()(i.loadPartialConfig);function c(...e){return(0,o.beginHiddenCallStack)(l.sync)(...e)}const u=n()((function*(e){var t;const r=yield*(0,s.default)(e);return null!=(t=null==r?void 0:r.options)?t:null}));function p(...e){return(0,o.beginHiddenCallStack)(u.sync)(...e)}const d=n()(a.createConfigItem);function f(...e){return(0,o.beginHiddenCallStack)(d.sync)(...e)}},"../../node_modules/@babel/core/lib/config/item.js":function(e,t,r){"use strict";function n(){const e=r("../../node_modules/path-browserify/index.js");return n=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.createConfigItem=function*(e,{dirname:t=".",type:r}={}){return i(yield*(0,s.createDescriptor)(e,n().resolve(t),{type:r,alias:"programmatic item"}))},t.createItemFromDescriptor=i,t.getItemDescriptor=function(e){if(null!=e&&e[a])return e._descriptor;return};var s=r("../../node_modules/@babel/core/lib/config/config-descriptors.js");function i(e){return new o(e)}const a=Symbol.for("@babel/core@7 - ConfigItem");class o{constructor(e){this._descriptor=void 0,this[a]=!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,a,{enumerable:!1}),this.value=this._descriptor.value,this.options=this._descriptor.options,this.dirname=this._descriptor.dirname,this.name=this._descriptor.name,this.file