sveld 0.29.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -19
- package/lib/ComponentParser.d.ts +8 -2
- package/lib/index.js +128 -128
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
import{createRequire as iW}from"node:module";var hW=Object.create;var{getPrototypeOf:gW,defineProperty:jJ,getOwnPropertyNames:mW}=Object;var uW=Object.prototype.hasOwnProperty;function dW(Z){return this[Z]}var lW,cW,F8=(Z,J,q)=>{var Q=Z!=null&&typeof Z==="object";if(Q){var Y=J?lW??=new WeakMap:cW??=new WeakMap,X=Y.get(Z);if(X)return X}q=Z!=null?hW(gW(Z)):{};let z=J||!Z||!Z.__esModule?jJ(q,"default",{value:Z,enumerable:!0}):q;for(let V of mW(Z))if(!uW.call(z,V))jJ(z,V,{get:dW.bind(Z,V),enumerable:!0});if(Q)Y.set(Z,z);return z};var U1=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var pW=(Z,J)=>()=>(Z&&(J=Z(Z=0)),J);var a1=iW(import.meta.url);var CJ=U1((uC,RJ)=>{var{builtinModules:MK}=a1("module"),HK=["sys"];RJ.exports=(MK||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter((Z)=>!/^_|^(internal|v8|node-inspect)\/|\//.test(Z)&&!HK.includes(Z)).sort()});var _J=U1((dC,IJ)=>{var FK=CJ(),LK=new Set(FK);IJ.exports=(Z)=>{if(typeof Z!=="string")throw TypeError("Expected a string");if(Z.startsWith("node:"))Z=Z.slice(5);let J=Z.indexOf("/");if(J!==-1&&J!==Z.length-1)Z=Z.slice(0,J);return LK.has(Z)}});var PJ=U1((lC,AJ)=>{var wK=function(J){return OK(J)&&!NK(J)};function OK(Z){return!!Z&&typeof Z==="object"}function NK(Z){var J=Object.prototype.toString.call(Z);return J==="[object RegExp]"||J==="[object Date]"||IK(Z)}var RK=typeof Symbol==="function"&&Symbol.for,CK=RK?Symbol.for("react.element"):60103;function IK(Z){return Z.$$typeof===CK}function _K(Z){return Array.isArray(Z)?[]:{}}function b6(Z,J){return J.clone!==!1&&J.isMergeableObject(Z)?m8(_K(Z),Z,J):Z}function DK(Z,J,q){return Z.concat(J).map(function(Q){return b6(Q,q)})}function TK(Z,J){if(!J.customMerge)return m8;var q=J.customMerge(Z);return typeof q==="function"?q:m8}function AK(Z){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(Z).filter(function(J){return Object.propertyIsEnumerable.call(Z,J)}):[]}function DJ(Z){return Object.keys(Z).concat(AK(Z))}function TJ(Z,J){try{return J in Z}catch(q){return!1}}function PK(Z,J){return TJ(Z,J)&&!(Object.hasOwnProperty.call(Z,J)&&Object.propertyIsEnumerable.call(Z,J))}function SK(Z,J,q){var Q={};if(q.isMergeableObject(Z))DJ(Z).forEach(function(Y){Q[Y]=b6(Z[Y],q)});return DJ(J).forEach(function(Y){if(PK(Z,Y))return;if(TJ(Z,Y)&&q.isMergeableObject(J[Y]))Q[Y]=TK(Y,q)(Z[Y],J[Y],q);else Q[Y]=b6(J[Y],q)}),Q}function m8(Z,J,q){q=q||{},q.arrayMerge=q.arrayMerge||DK,q.isMergeableObject=q.isMergeableObject||wK,q.cloneUnlessOtherwiseSpecified=b6;var Q=Array.isArray(J),Y=Array.isArray(Z),X=Q===Y;if(!X)return b6(J,q);else if(Q)return q.arrayMerge(Z,J,q);else return SK(Z,J,q)}m8.all=function(J,q){if(!Array.isArray(J))throw Error("first argument should be an array");return J.reduce(function(Q,Y){return m8(Q,Y,q)},{})};var yK=m8;AJ.exports=yK});var yJ=U1((cC,SJ)=>{var EK=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,bK=/(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;SJ.exports=function(Z){return EK.test(Z)||bK.test(Z)}});var o7=U1((pC,EJ)=>{var xK=a1("os");EJ.exports=xK.homedir||function(){var J=process.env.HOME,q=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(process.platform==="win32")return process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||J||null;if(process.platform==="darwin")return J||(q?"/Users/"+q:null);if(process.platform==="linux")return J||(process.getuid()===0?"/root":q?"/home/"+q:null);return J||null}});var t7=U1((iC,bJ)=>{bJ.exports=function(){var Z=Error.prepareStackTrace;Error.prepareStackTrace=function(q,Q){return Q};var J=Error().stack;return Error.prepareStackTrace=Z,J[2].getFileName()}});var xJ=U1((nC,x6)=>{var kK=process.platform==="win32",fK=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,e7={};function vK(Z){return fK.exec(Z).slice(1)}e7.parse=function(Z){if(typeof Z!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof Z);var J=vK(Z);if(!J||J.length!==5)throw TypeError("Invalid path '"+Z+"'");return{root:J[1],dir:J[0]===J[1]?J[0]:J[0].slice(0,-1),base:J[2],ext:J[4],name:J[3]}};var hK=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Z9={};function gK(Z){return hK.exec(Z).slice(1)}Z9.parse=function(Z){if(typeof Z!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof Z);var J=gK(Z);if(!J||J.length!==5)throw TypeError("Invalid path '"+Z+"'");return{root:J[1],dir:J[0].slice(0,-1),base:J[2],ext:J[4],name:J[3]}};if(kK)x6.exports=e7.parse;else x6.exports=Z9.parse;x6.exports.posix=Z9.parse;x6.exports.win32=e7.parse});var J9=U1((aC,hJ)=>{var vJ=a1("path"),kJ=vJ.parse||xJ(),mK=/^([A-Za-z]:)/,uK=/^\\\\/,fJ=function(J,q){var Q="/";if(mK.test(J))Q="";else if(uK.test(J))Q="\\\\";var Y=[J],X=kJ(J);while(X.dir!==Y[Y.length-1])Y.push(X.dir),X=kJ(X.dir);return Y.reduce(function(z,V){return z.concat(q.map(function(W){return vJ.resolve(Q,V,W)}))},[])};hJ.exports=function(J,q,Q){var Y=q&&q.moduleDirectory?[].concat(q.moduleDirectory):["node_modules"];if(q&&typeof q.paths==="function")return q.paths(Q,J,function(){return fJ(J,Y)},q);var X=fJ(J,Y);return q&&q.paths?X.concat(q.paths):X}});var q9=U1((sC,gJ)=>{gJ.exports=function(Z,J){return J||{}}});var dJ=U1((rC,uJ)=>{var dK="Function.prototype.bind called on incompatible ",lK=Object.prototype.toString,cK=Math.max,pK="[object Function]",mJ=function(J,q){var Q=[];for(var Y=0;Y<J.length;Y+=1)Q[Y]=J[Y];for(var X=0;X<q.length;X+=1)Q[X+J.length]=q[X];return Q},iK=function(J,q){var Q=[];for(var Y=q||0,X=0;Y<J.length;Y+=1,X+=1)Q[X]=J[Y];return Q},nK=function(Z,J){var q="";for(var Q=0;Q<Z.length;Q+=1)if(q+=Z[Q],Q+1<Z.length)q+=J;return q};uJ.exports=function(J){var q=this;if(typeof q!=="function"||lK.apply(q)!==pK)throw TypeError(dK+q);var Q=iK(arguments,1),Y,X=function(){if(this instanceof Y){var $=q.apply(this,mJ(Q,arguments));if(Object($)===$)return $;return this}return q.apply(J,mJ(Q,arguments))},z=cK(0,q.length-Q.length),V=[];for(var W=0;W<z;W++)V[W]="$"+W;if(Y=Function("binder","return function ("+nK(V,",")+"){ return binder.apply(this,arguments); }")(X),q.prototype){var K=function(){};K.prototype=q.prototype,Y.prototype=new K,K.prototype=null}return Y}});var cJ=U1((oC,lJ)=>{var aK=dJ();lJ.exports=Function.prototype.bind||aK});var iJ=U1((tC,pJ)=>{var sK=Function.prototype.call,rK=Object.prototype.hasOwnProperty,oK=cJ();pJ.exports=oK.call(sK,rK)});var nJ=U1((eC,tK)=>{tK.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var k6=U1((ZI,rJ)=>{var eK=iJ();function Z$(Z,J){var q=Z.split("."),Q=J.split(" "),Y=Q.length>1?Q[0]:"=",X=(Q.length>1?Q[1]:Q[0]).split(".");for(var z=0;z<3;++z){var V=parseInt(q[z]||0,10),W=parseInt(X[z]||0,10);if(V===W)continue;if(Y==="<")return V<W;if(Y===">=")return V>=W;return!1}return Y===">="}function aJ(Z,J){var q=J.split(/ ?&& ?/);if(q.length===0)return!1;for(var Q=0;Q<q.length;++Q)if(!Z$(Z,q[Q]))return!1;return!0}function J$(Z,J){if(typeof J==="boolean")return J;var q=typeof Z>"u"?process.versions&&process.versions.node:Z;if(typeof q!=="string")throw TypeError(typeof Z>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(J&&typeof J==="object"){for(var Q=0;Q<J.length;++Q)if(aJ(q,J[Q]))return!0;return!1}return aJ(q,J)}var sJ=nJ();rJ.exports=function(J,q){return eK(sJ,J)&&J$(q,sJ[J])}});var eJ=U1((JI,tJ)=>{var w8=a1("fs"),q$=o7(),g1=a1("path"),Q$=t7(),Y$=J9(),X$=q9(),z$=k6(),V$=process.platform!=="win32"&&w8.realpath&&typeof w8.realpath.native==="function"?w8.realpath.native:w8.realpath,W$=/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/,K$=/^\w:[/\\]*$/,$$=/[/\\]node_modules[/\\]*$/,oJ=q$(),G$=function(){return[g1.join(oJ,".node_modules"),g1.join(oJ,".node_libraries")]},U$=function(J,q){w8.stat(J,function(Q,Y){if(!Q)return q(null,Y.isFile()||Y.isFIFO());if(Q.code==="ENOENT"||Q.code==="ENOTDIR")return q(null,!1);return q(Q)})},j$=function(J,q){w8.stat(J,function(Q,Y){if(!Q)return q(null,Y.isDirectory());if(Q.code==="ENOENT"||Q.code==="ENOTDIR")return q(null,!1);return q(Q)})},B$=function(J,q){V$(J,function(Q,Y){if(Q&&Q.code!=="ENOENT")q(Q);else q(null,Q?J:Y)})},f6=function(J,q,Q,Y){if(Q&&Q.preserveSymlinks===!1)J(q,Y);else Y(null,q)},M$=function(J,q,Q){J(q,function(Y,X){if(Y)Q(Y);else try{var z=JSON.parse(X);Q(null,z)}catch(V){Q(null)}})},H$=function(J,q,Q){var Y=Y$(q,Q,J);for(var X=0;X<Y.length;X++)Y[X]=g1.join(Y[X],J);return Y};tJ.exports=function(J,q,Q){var Y=Q,X=q;if(typeof q==="function")Y=X,X={};if(typeof J!=="string"){var z=TypeError("Path must be a string.");return process.nextTick(function(){Y(z)})}X=X$(J,X);var V=X.isFile||U$,W=X.isDirectory||j$,K=X.readFile||w8.readFile,$=X.realpath||B$,H=X.readPackage||M$;if(X.readFile&&X.readPackage){var M=TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){Y(M)})}var O=X.packageIterator,j=X.extensions||[".js"],L=X.includeCoreModules!==!1,I=X.basedir||g1.dirname(Q$()),y=X.filename||I;X.paths=X.paths||G$();var _=g1.resolve(I);f6($,_,X,function(B,b){if(B)Y(B);else g(b)});var T;function g(B){if(W$.test(J)){if(T=g1.resolve(B,J),J==="."||J===".."||J.slice(-1)==="/")T+="/";if(J.slice(-1)==="/"&&T===B)N(T,X.package,h);else u(T,X.package,h)}else if(L&&z$(J))return Y(null,J);else A(J,B,function(b,k,S){if(b)Y(b);else if(k)return f6($,k,X,function(F,d){if(F)Y(F);else Y(null,d,S)});else{var G=Error("Cannot find module '"+J+"' from '"+y+"'");G.code="MODULE_NOT_FOUND",Y(G)}})}function h(B,b,k){if(B)Y(B);else if(b)Y(null,b,k);else N(T,function(S,G,F){if(S)Y(S);else if(G)f6($,G,X,function(f,o){if(f)Y(f);else Y(null,o,F)});else{var d=Error("Cannot find module '"+J+"' from '"+y+"'");d.code="MODULE_NOT_FOUND",Y(d)}})}function u(B,b,k){var S=b,G=k;if(typeof S==="function")G=S,S=void 0;var F=[""].concat(j);d(F,B,S);function d(f,o,t){if(f.length===0)return G(null,void 0,t);var Q1=o+f[0],N1=t;if(N1)R1(null,N1);else E(g1.dirname(Q1),R1);function R1(s,m,L1){if(N1=m,s)return G(s);if(L1&&N1&&X.pathFilter){var p=g1.relative(L1,Q1),D=p.slice(0,p.length-f[0].length),x=X.pathFilter(N1,o,D);if(x)return d([""].concat(j.slice()),g1.resolve(L1,x),N1)}V(Q1,F1)}function F1(s,m){if(s)return G(s);if(m)return G(null,Q1,N1);d(f.slice(1),o,N1)}}}function E(B,b){if(B===""||B==="/")return b(null);if(process.platform==="win32"&&K$.test(B))return b(null);if($$.test(B))return b(null);f6($,B,X,function(k,S){if(k)return E(g1.dirname(B),b);var G=g1.join(S,"package.json");V(G,function(F,d){if(!d)return E(g1.dirname(B),b);H(K,G,function(f,o){if(f)b(f);var t=o;if(t&&X.packageFilter)t=X.packageFilter(t,G);b(null,t,B)})})})}function N(B,b,k){var S=k,G=b;if(typeof G==="function")S=G,G=X.package;f6($,B,X,function(F,d){if(F)return S(F);var f=g1.join(d,"package.json");V(f,function(o,t){if(o)return S(o);if(!t)return u(g1.join(B,"index"),G,S);H(K,f,function(Q1,N1){if(Q1)return S(Q1);var R1=N1;if(R1&&X.packageFilter)R1=X.packageFilter(R1,f);if(R1&&R1.main){if(typeof R1.main!=="string"){var F1=TypeError("package “"+R1.name+"” `main` must be a string");return F1.code="INVALID_PACKAGE_MAIN",S(F1)}if(R1.main==="."||R1.main==="./")R1.main="index";u(g1.resolve(B,R1.main),R1,function(s,m,L1){if(s)return S(s);if(m)return S(null,m,L1);if(!L1)return u(g1.join(B,"index"),L1,S);var p=g1.resolve(B,L1.main);N(p,L1,function(D,x,C){if(D)return S(D);if(x)return S(null,x,C);u(g1.join(B,"index"),C,S)})});return}u(g1.join(B,"/index"),R1,S)})})})}function P(B,b){if(b.length===0)return B(null,void 0);var k=b[0];W(g1.dirname(k),S);function S(d,f){if(d)return B(d);if(!f)return P(B,b.slice(1));u(k,X.package,G)}function G(d,f,o){if(d)return B(d);if(f)return B(null,f,o);N(k,X.package,F)}function F(d,f,o){if(d)return B(d);if(f)return B(null,f,o);P(B,b.slice(1))}}function A(B,b,k){var S=function(){return H$(B,b,X)};P(k,O?O(B,b,S,X):S())}}});var Zq=U1((qI,F$)=>{F$.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Yq=U1((QI,Qq)=>{var L$=k6(),Jq=Zq(),qq={};for(v6 in Jq)if(Object.prototype.hasOwnProperty.call(Jq,v6))qq[v6]=L$(v6);var v6;Qq.exports=qq});var zq=U1((YI,Xq)=>{var w$=k6();Xq.exports=function(J){return w$(J)}});var Kq=U1((XI,Wq)=>{var O$=k6(),O8=a1("fs"),t1=a1("path"),N$=o7(),R$=t7(),C$=J9(),I$=q9(),_$=process.platform!=="win32"&&O8.realpathSync&&typeof O8.realpathSync.native==="function"?O8.realpathSync.native:O8.realpathSync,D$=/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/,T$=/^\w:[/\\]*$/,A$=/[/\\]node_modules[/\\]*$/,Vq=N$(),P$=function(){return[t1.join(Vq,".node_modules"),t1.join(Vq,".node_libraries")]},S$=function(J){try{var q=O8.statSync(J,{throwIfNoEntry:!1})}catch(Q){if(Q&&(Q.code==="ENOENT"||Q.code==="ENOTDIR"))return!1;throw Q}return!!q&&(q.isFile()||q.isFIFO())},y$=function(J){try{var q=O8.statSync(J,{throwIfNoEntry:!1})}catch(Q){if(Q&&(Q.code==="ENOENT"||Q.code==="ENOTDIR"))return!1;throw Q}return!!q&&q.isDirectory()},E$=function(J){try{return _$(J)}catch(q){if(q.code!=="ENOENT")throw q}return J},h6=function(J,q,Q){if(Q&&Q.preserveSymlinks===!1)return J(q);return q},b$=function(J,q){var Q=J(q);try{var Y=JSON.parse(Q);return Y}catch(X){}},x$=function(J,q,Q){var Y=C$(q,Q,J);for(var X=0;X<Y.length;X++)Y[X]=t1.join(Y[X],J);return Y};Wq.exports=function(J,q){if(typeof J!=="string")throw TypeError("Path must be a string.");var Q=I$(J,q),Y=Q.isFile||S$,X=Q.readFileSync||O8.readFileSync,z=Q.isDirectory||y$,V=Q.realpathSync||E$,W=Q.readPackageSync||b$;if(Q.readFileSync&&Q.readPackageSync)throw TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var K=Q.packageIterator,$=Q.extensions||[".js"],H=Q.includeCoreModules!==!1,M=Q.basedir||t1.dirname(R$()),O=Q.filename||M;Q.paths=Q.paths||P$();var j=h6(V,t1.resolve(M),Q);if(D$.test(J)){var L=t1.resolve(j,J);if(J==="."||J===".."||J.slice(-1)==="/")L+="/";var I=T(L)||h(L);if(I)return h6(V,I,Q)}else if(H&&O$(J))return J;else{var y=u(J,j);if(y)return h6(V,y,Q)}var _=Error("Cannot find module '"+J+"' from '"+O+"'");throw _.code="MODULE_NOT_FOUND",_;function T(E){var N=g(t1.dirname(E));if(N&&N.dir&&N.pkg&&Q.pathFilter){var P=t1.relative(N.dir,E),A=Q.pathFilter(N.pkg,E,P);if(A)E=t1.resolve(N.dir,A)}if(Y(E))return E;for(var B=0;B<$.length;B++){var b=E+$[B];if(Y(b))return b}}function g(E){if(E===""||E==="/")return;if(process.platform==="win32"&&T$.test(E))return;if(A$.test(E))return;var N=t1.join(h6(V,E,Q),"package.json");if(!Y(N))return g(t1.dirname(E));var P=W(X,N);if(P&&Q.packageFilter)P=Q.packageFilter(P,E);return{pkg:P,dir:E}}function h(E){var N=t1.join(h6(V,E,Q),"/package.json");if(Y(N)){try{var P=W(X,N)}catch(k){}if(P&&Q.packageFilter)P=Q.packageFilter(P,E);if(P&&P.main){if(typeof P.main!=="string"){var A=TypeError("package “"+P.name+"” `main` must be a string");throw A.code="INVALID_PACKAGE_MAIN",A}if(P.main==="."||P.main==="./")P.main="index";try{var B=T(t1.resolve(E,P.main));if(B)return B;var b=h(t1.resolve(E,P.main));if(b)return b}catch(k){}}}return T(t1.join(E,"/index"))}function u(E,N){var P=function(){return x$(E,N,Q)},A=K?K(E,N,P,Q):P();for(var B=0;B<A.length;B++){var b=A[B];if(z(t1.dirname(b))){var k=T(b);if(k)return k;var S=h(b);if(S)return S}}}}});var Gq=U1((zI,$q)=>{var e0=eJ();e0.core=Yq();e0.isCore=zq();e0.sync=Kq();$q.exports=e0});var g6=U1((VI,jq)=>{var k$=a1("path"),Uq={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},f$={...Uq,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},v$={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};jq.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:v$,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:k$.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?f$:Uq}}});var Z4=U1((c$)=>{var h$=a1("path"),g$=process.platform==="win32",{REGEX_BACKSLASH:m$,REGEX_REMOVE_BACKSLASH:u$,REGEX_SPECIAL_CHARS:d$,REGEX_SPECIAL_CHARS_GLOBAL:l$}=g6();c$.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);c$.hasRegexChars=(Z)=>d$.test(Z);c$.isRegexChar=(Z)=>Z.length===1&&c$.hasRegexChars(Z);c$.escapeRegex=(Z)=>Z.replace(l$,"\\$1");c$.toPosixSlashes=(Z)=>Z.replace(m$,"/");c$.removeBackslashes=(Z)=>{return Z.replace(u$,(J)=>{return J==="\\"?"":J})};c$.supportsLookbehinds=()=>{let Z=process.version.slice(1).split(".").map(Number);if(Z.length===3&&Z[0]>=9||Z[0]===8&&Z[1]>=10)return!0;return!1};c$.isWindows=(Z)=>{if(Z&&typeof Z.windows==="boolean")return Z.windows;return g$===!0||h$.sep==="\\"};c$.escapeLast=(Z,J,q)=>{let Q=Z.lastIndexOf(J,q);if(Q===-1)return Z;if(Z[Q-1]==="\\")return c$.escapeLast(Z,J,Q-1);return`${Z.slice(0,Q)}\\${Z.slice(Q)}`};c$.removePrefix=(Z,J={})=>{let q=Z;if(q.startsWith("./"))q=q.slice(2),J.prefix="./";return q};c$.wrapOutput=(Z,J={},q={})=>{let Q=q.contains?"":"^",Y=q.contains?"":"$",X=`${Q}(?:${Z})${Y}`;if(J.negated===!0)X=`(?:^(?!${X}).*$)`;return X}});var Cq=U1((KI,Rq)=>{var Hq=Z4(),{CHAR_ASTERISK:Q9,CHAR_AT:ZG,CHAR_BACKWARD_SLASH:m6,CHAR_COMMA:JG,CHAR_DOT:Y9,CHAR_EXCLAMATION_MARK:X9,CHAR_FORWARD_SLASH:Nq,CHAR_LEFT_CURLY_BRACE:z9,CHAR_LEFT_PARENTHESES:V9,CHAR_LEFT_SQUARE_BRACKET:qG,CHAR_PLUS:QG,CHAR_QUESTION_MARK:Fq,CHAR_RIGHT_CURLY_BRACE:YG,CHAR_RIGHT_PARENTHESES:Lq,CHAR_RIGHT_SQUARE_BRACKET:XG}=g6(),wq=(Z)=>{return Z===Nq||Z===m6},Oq=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},zG=(Z,J)=>{let q=J||{},Q=Z.length-1,Y=q.parts===!0||q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,j=!1,L=!1,I=!1,y=!1,_=!1,T=!1,g=!1,h=!1,u=0,E,N,P={value:"",depth:0,isGlob:!1},A=()=>K>=Q,B=()=>W.charCodeAt(K+1),b=()=>{return E=N,W.charCodeAt(++K)};while(K<Q){N=b();let d;if(N===m6){if(_=P.backslashes=!0,N=b(),N===z9)y=!0;continue}if(y===!0||N===z9){u++;while(A()!==!0&&(N=b())){if(N===m6){_=P.backslashes=!0,b();continue}if(N===z9){u++;continue}if(y!==!0&&N===Y9&&(N=b())===Y9){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===JG){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===YG){if(u--,u===0){y=!1,M=P.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===Nq){if(X.push(K),z.push(P),P={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===Y9&&K===$+1){$+=2;continue}H=K+1;continue}if(q.noext!==!0){if((N===QG||N===ZG||N===Q9||N===Fq||N===X9)===!0&&B()===V9){if(j=P.isGlob=!0,L=P.isExtglob=!0,h=!0,N===X9&&K===$)g=!0;if(Y===!0){while(A()!==!0&&(N=b())){if(N===m6){_=P.backslashes=!0,N=b();continue}if(N===Lq){j=P.isGlob=!0,h=!0;break}}continue}break}}if(N===Q9){if(E===Q9)I=P.isGlobstar=!0;if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Fq){if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===qG){while(A()!==!0&&(d=b())){if(d===m6){_=P.backslashes=!0,b();continue}if(d===XG){O=P.isBracket=!0,j=P.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(q.nonegate!==!0&&N===X9&&K===$){T=P.negated=!0,$++;continue}if(q.noparen!==!0&&N===V9){if(j=P.isGlob=!0,Y===!0){while(A()!==!0&&(N=b())){if(N===V9){_=P.backslashes=!0,N=b();continue}if(N===Lq){h=!0;break}}continue}break}if(j===!0){if(h=!0,Y===!0)continue;break}}if(q.noext===!0)L=!1,j=!1;let k=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(k&&j===!0&&H>0)k=W.slice(0,H),G=W.slice(H);else if(j===!0)k="",G=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(wq(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(q.unescape===!0){if(G)G=Hq.removeBackslashes(G);if(k&&_===!0)k=Hq.removeBackslashes(k)}let F={prefix:S,input:Z,start:$,base:k,glob:G,isBrace:M,isBracket:O,isGlob:j,isExtglob:L,isGlobstar:I,negated:T,negatedExtglob:g};if(q.tokens===!0){if(F.maxDepth=0,!wq(N))z.push(P);F.tokens=z}if(q.parts===!0||q.tokens===!0){let d;for(let f=0;f<X.length;f++){let o=d?d+1:$,t=X[f],Q1=Z.slice(o,t);if(q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=Q1;Oq(z[f]),F.maxDepth+=z[f].depth}if(f!==0||Q1!=="")V.push(Q1);d=t}if(d&&d+1<Z.length){let f=Z.slice(d+1);if(V.push(f),q.tokens)z[z.length-1].value=f,Oq(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F};Rq.exports=zG});var Aq=U1(($I,Tq)=>{var u6=g6(),e1=Z4(),{MAX_LENGTH:J4,POSIX_REGEX_SOURCE:VG,REGEX_NON_SPECIAL_CHARS:WG,REGEX_SPECIAL_CHARS_BACKREF:KG,REPLACEMENTS:Iq}=u6,$G=(Z,J)=>{if(typeof J.expandRange==="function")return J.expandRange(...Z,J);Z.sort();let q=`[${Z.join("-")}]`;try{new RegExp(q)}catch(Q){return Z.map((Y)=>e1.escapeRegex(Y)).join("..")}return q},u8=(Z,J)=>{return`Missing ${Z}: "${J}" - use "\\\\${J}" to match literal characters`},_q=(Z)=>{let J=[],q=0,Q=0,Y=0,X="",z=!1;for(let V of Z){if(z===!0){X+=V,z=!1;continue}if(V==="\\"){X+=V,z=!0;continue}if(V==='"'){Y=Y===1?0:1,X+=V;continue}if(Y===0){if(V==="[")q++;else if(V==="]"&&q>0)q--;else if(q===0){if(V==="(")Q++;else if(V===")"&&Q>0)Q--;else if(V==="|"&&Q===0){J.push(X),X="";continue}}}X+=V}return J.push(X),J},GG=(Z)=>{let J=!1;for(let q of Z){if(J===!0){J=!1;continue}if(q==="\\"){J=!0;continue}if(/[?*+@!()[\]{}]/.test(q))return!1}return!0},Dq=(Z)=>{let J=Z.trim(),q=!0;while(q===!0)if(q=!1,/^@\([^\\()[\]{}|]+\)$/.test(J))J=J.slice(2,-1),q=!0;if(!GG(J))return;return J.replace(/\\(.)/g,"$1")},UG=(Z)=>{let J=Z.map(Dq).filter(Boolean);for(let q=0;q<J.length;q++)for(let Q=q+1;Q<J.length;Q++){let Y=J[q],X=J[Q],z=Y[0];if(!z||Y!==z.repeat(Y.length)||X!==z.repeat(X.length))continue;if(Y===X||Y.startsWith(X)||X.startsWith(Y))return!0}return!1},W9=(Z,J=!0)=>{if(Z[0]!=="+"&&Z[0]!=="*"||Z[1]!=="(")return;let q=0,Q=0,Y=0,X=!1;for(let z=1;z<Z.length;z++){let V=Z[z];if(X===!0){X=!1;continue}if(V==="\\"){X=!0;continue}if(V==='"'){Y=Y===1?0:1;continue}if(Y===1)continue;if(V==="["){q++;continue}if(V==="]"&&q>0){q--;continue}if(q>0)continue;if(V==="("){Q++;continue}if(V===")"){if(Q--,Q===0){if(J===!0&&z!==Z.length-1)return;return{type:Z[0],body:Z.slice(2,z),end:z}}}}},jG=(Z)=>{let J=0,q=[];while(J<Z.length){let Y=W9(Z.slice(J),!1);if(!Y||Y.type!=="*")return;let X=_q(Y.body).map((V)=>V.trim());if(X.length!==1)return;let z=Dq(X[0]);if(!z||z.length!==1)return;q.push(z),J+=Y.end+1}if(q.length<1)return;return`${q.length===1?e1.escapeRegex(q[0]):`[${q.map((Y)=>e1.escapeRegex(Y)).join("")}]`}*`},BG=(Z)=>{let J=0,q=Z.trim(),Q=W9(q);while(Q)J++,q=Q.body.trim(),Q=W9(q);return J},MG=(Z,J)=>{if(J.maxExtglobRecursion===!1)return{risky:!1};let q=typeof J.maxExtglobRecursion==="number"?J.maxExtglobRecursion:u6.DEFAULT_MAX_EXTGLOB_RECURSION,Q=_q(Z).map((Y)=>Y.trim());if(Q.length>1){if(Q.some((Y)=>Y==="")||Q.some((Y)=>/^[*?]+$/.test(Y))||UG(Q))return{risky:!0}}for(let Y of Q){let X=jG(Y);if(X)return{risky:!0,safeOutput:X};if(BG(Y)>q)return{risky:!0}}return{risky:!1}},K9=(Z,J)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=Iq[Z]||Z;let q={...J},Q=typeof q.maxLength==="number"?Math.min(J4,q.maxLength):J4,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let X={type:"bos",value:"",output:q.prepend||""},z=[X],V=q.capture?"":"?:",W=e1.isWindows(J),K=u6.globChars(W),$=u6.extglobChars(K),{DOT_LITERAL:H,PLUS_LITERAL:M,SLASH_LITERAL:O,ONE_CHAR:j,DOTS_SLASH:L,NO_DOT:I,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK:T,QMARK_NO_DOT:g,STAR:h,START_ANCHOR:u}=K,E=(D)=>{return`(${V}(?:(?!${u}${D.dot?L:H}).)*?)`},N=q.dot?"":I,P=q.dot?T:g,A=q.bash===!0?E(q):h;if(q.capture)A=`(${A})`;if(typeof q.noext==="boolean")q.noextglob=q.noext;let B={input:Z,index:-1,start:0,dot:q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=e1.removePrefix(Z,B),Y=Z.length;let b=[],k=[],S=[],G=X,F,d=()=>B.index===Y-1,f=B.peek=(D=1)=>Z[B.index+D],o=B.advance=()=>Z[++B.index]||"",t=()=>Z.slice(B.index+1),Q1=(D="",x=0)=>{B.consumed+=D,B.index+=x},N1=(D)=>{B.output+=D.output!=null?D.output:D.value,Q1(D.value)},R1=()=>{let D=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))o(),B.start++,D++;if(D%2===0)return!1;return B.negated=!0,B.start++,!0},F1=(D)=>{B[D]++,S.push(D)},s=(D)=>{B[D]--,S.pop()},m=(D)=>{if(G.type==="globstar"){let x=B.braces>0&&(D.type==="comma"||D.type==="brace"),C=D.extglob===!0||b.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!x&&!C)B.output=B.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=A,B.output+=G.output}if(b.length&&D.type!=="paren")b[b.length-1].inner+=D.value;if(D.value||D.output)N1(D);if(G&&G.type==="text"&&D.type==="text"){G.value+=D.value,G.output=(G.output||"")+D.value;return}D.prev=G,z.push(D),G=D},L1=(D,x)=>{let C={...$[x],conditions:1,inner:""};C.prev=G,C.parens=B.parens,C.output=B.output,C.startIndex=B.index,C.tokensIndex=z.length;let v=(q.capture?"(":"")+C.open;F1("parens"),m({type:D,value:x,output:B.output?"":j}),m({type:"paren",extglob:!0,value:o(),output:v}),b.push(C)},p=(D)=>{let x=Z.slice(D.startIndex,B.index+1),C=Z.slice(D.startIndex+2,B.index),v=MG(C,q);if((D.type==="plus"||D.type==="star")&&v.risky){let i=v.safeOutput?(D.output?"":j)+(q.capture?`(${v.safeOutput})`:v.safeOutput):void 0,B1=z[D.tokensIndex];B1.type="text",B1.value=x,B1.output=i||e1.escapeRegex(x);for(let _1=D.tokensIndex+1;_1<z.length;_1++)z[_1].value="",z[_1].output="",delete z[_1].suffix;B.output=D.output+B1.output,B.backtrack=!0,m({type:"paren",extglob:!0,value:F,output:""}),s("parens");return}let c=D.close+(q.capture?")":""),n;if(D.type==="negate"){let i=A;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))i=E(q);if(i!==A||d()||/^\)+$/.test(t()))c=D.close=`)$))${i}`;if(D.inner.includes("*")&&(n=t())&&/^\.[^\\/.]+$/.test(n)){let B1=K9(n,{...J,fastpaths:!1}).output;c=D.close=`)${B1})${i})`}if(D.prev.type==="bos")B.negatedExtglob=!0}m({type:"paren",extglob:!0,value:F,output:c}),s("parens")};if(q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,x=Z.replace(KG,(C,v,c,n,i,B1)=>{if(n==="\\")return D=!0,C;if(n==="?"){if(v)return v+n+(i?T.repeat(i.length):"");if(B1===0)return P+(i?T.repeat(i.length):"");return T.repeat(c.length)}if(n===".")return H.repeat(c.length);if(n==="*"){if(v)return v+n+(i?A:"");return A}return v?C:`\\${C}`});if(D===!0)if(q.unescape===!0)x=x.replace(/\\/g,"");else x=x.replace(/\\+/g,(C)=>{return C.length%2===0?"\\\\":C?"\\":""});if(x===Z&&q.contains===!0)return B.output=Z,B;return B.output=e1.wrapOutput(x,B,J),B}while(!d()){if(F=o(),F==="\x00")continue;if(F==="\\"){let C=f();if(C==="/"&&q.bash!==!0)continue;if(C==="."||C===";")continue;if(!C){F+="\\",m({type:"text",value:F});continue}let v=/^\\+/.exec(t()),c=0;if(v&&v[0].length>2){if(c=v[0].length,B.index+=c,c%2!==0)F+="\\"}if(q.unescape===!0)F=o();else F+=o();if(B.brackets===0){m({type:"text",value:F});continue}}if(B.brackets>0&&(F!=="]"||G.value==="["||G.value==="[^")){if(q.posix!==!1&&F===":"){let C=G.value.slice(1);if(C.includes("[")){if(G.posix=!0,C.includes(":")){let v=G.value.lastIndexOf("["),c=G.value.slice(0,v),n=G.value.slice(v+2),i=VG[n];if(i){if(G.value=c+i,B.backtrack=!0,o(),!X.output&&z.indexOf(G)===1)X.output=j;continue}}}}if(F==="["&&f()!==":"||F==="-"&&f()==="]")F=`\\${F}`;if(F==="]"&&(G.value==="["||G.value==="[^"))F=`\\${F}`;if(q.posix===!0&&F==="!"&&G.value==="[")F="^";G.value+=F,N1({value:F});continue}if(B.quotes===1&&F!=='"'){F=e1.escapeRegex(F),G.value+=F,N1({value:F});continue}if(F==='"'){if(B.quotes=B.quotes===1?0:1,q.keepQuotes===!0)m({type:"text",value:F});continue}if(F==="("){F1("parens"),m({type:"paren",value:F});continue}if(F===")"){if(B.parens===0&&q.strictBrackets===!0)throw SyntaxError(u8("opening","("));let C=b[b.length-1];if(C&&B.parens===C.parens+1){p(b.pop());continue}m({type:"paren",value:F,output:B.parens?")":"\\)"}),s("parens");continue}if(F==="["){if(q.nobracket===!0||!t().includes("]")){if(q.nobracket!==!0&&q.strictBrackets===!0)throw SyntaxError(u8("closing","]"));F=`\\${F}`}else F1("brackets");m({type:"bracket",value:F});continue}if(F==="]"){if(q.nobracket===!0||G&&G.type==="bracket"&&G.value.length===1){m({type:"text",value:F,output:`\\${F}`});continue}if(B.brackets===0){if(q.strictBrackets===!0)throw SyntaxError(u8("opening","["));m({type:"text",value:F,output:`\\${F}`});continue}s("brackets");let C=G.value.slice(1);if(G.posix!==!0&&C[0]==="^"&&!C.includes("/"))F=`/${F}`;if(G.value+=F,N1({value:F}),q.literalBrackets===!1||e1.hasRegexChars(C))continue;let v=e1.escapeRegex(G.value);if(B.output=B.output.slice(0,-G.value.length),q.literalBrackets===!0){B.output+=v,G.value=v;continue}G.value=`(${V}${v}|${G.value})`,B.output+=G.value;continue}if(F==="{"&&q.nobrace!==!0){F1("braces");let C={type:"brace",value:F,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};k.push(C),m(C);continue}if(F==="}"){let C=k[k.length-1];if(q.nobrace===!0||!C){m({type:"text",value:F,output:F});continue}let v=")";if(C.dots===!0){let c=z.slice(),n=[];for(let i=c.length-1;i>=0;i--){if(z.pop(),c[i].type==="brace")break;if(c[i].type!=="dots")n.unshift(c[i].value)}v=$G(n,q),B.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){let c=B.output.slice(0,C.outputIndex),n=B.tokens.slice(C.tokensIndex);C.value=C.output="\\{",F=v="\\}",B.output=c;for(let i of n)B.output+=i.output||i.value}m({type:"brace",value:F,output:v}),s("braces"),k.pop();continue}if(F==="|"){if(b.length>0)b[b.length-1].conditions++;m({type:"text",value:F});continue}if(F===","){let C=F,v=k[k.length-1];if(v&&S[S.length-1]==="braces")v.comma=!0,C="|";m({type:"comma",value:F,output:C});continue}if(F==="/"){if(G.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",z.pop(),G=X;continue}m({type:"slash",value:F,output:O});continue}if(F==="."){if(B.braces>0&&G.type==="dot"){if(G.value===".")G.output=H;let C=k[k.length-1];G.type="dots",G.output+=F,G.value+=F,C.dots=!0;continue}if(B.braces+B.parens===0&&G.type!=="bos"&&G.type!=="slash"){m({type:"text",value:F,output:H});continue}m({type:"dot",value:F,output:H});continue}if(F==="?"){if(!(G&&G.value==="(")&&q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("qmark",F);continue}if(G&&G.type==="paren"){let v=f(),c=F;if(v==="<"&&!e1.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(G.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(t()))c=`\\${F}`;m({type:"text",value:F,output:c});continue}if(q.dot!==!0&&(G.type==="slash"||G.type==="bos")){m({type:"qmark",value:F,output:g});continue}m({type:"qmark",value:F,output:T});continue}if(F==="!"){if(q.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){L1("negate",F);continue}}if(q.nonegate!==!0&&B.index===0){R1();continue}}if(F==="+"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("plus",F);continue}if(G&&G.value==="("||q.regex===!1){m({type:"plus",value:F,output:M});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||B.parens>0){m({type:"plus",value:F});continue}m({type:"plus",value:M});continue}if(F==="@"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){m({type:"at",extglob:!0,value:F,output:""});continue}m({type:"text",value:F});continue}if(F!=="*"){if(F==="$"||F==="^")F=`\\${F}`;let C=WG.exec(t());if(C)F+=C[0],B.index+=C[0].length;m({type:"text",value:F});continue}if(G&&(G.type==="globstar"||G.star===!0)){G.type="star",G.star=!0,G.value+=F,G.output=A,B.backtrack=!0,B.globstar=!0,Q1(F);continue}let D=t();if(q.noextglob!==!0&&/^\([^?]/.test(D)){L1("star",F);continue}if(G.type==="star"){if(q.noglobstar===!0){Q1(F);continue}let C=G.prev,v=C.prev,c=C.type==="slash"||C.type==="bos",n=v&&(v.type==="star"||v.type==="globstar");if(q.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:F,output:""});continue}let i=B.braces>0&&(C.type==="comma"||C.type==="brace"),B1=b.length&&(C.type==="pipe"||C.type==="paren");if(!c&&C.type!=="paren"&&!i&&!B1){m({type:"star",value:F,output:""});continue}while(D.slice(0,3)==="/**"){let _1=Z[B.index+4];if(_1&&_1!=="/")break;D=D.slice(3),Q1("/**",3)}if(C.type==="bos"&&d()){G.type="globstar",G.value+=F,G.output=E(q),B.output=G.output,B.globstar=!0,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!n&&d()){B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=E(q)+(q.strictSlashes?")":"|$)"),G.value+=F,B.globstar=!0,B.output+=C.output+G.output,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&D[0]==="/"){let _1=D[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=`${E(q)}${O}|${O}${_1})`,G.value+=F,B.output+=C.output+G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&D[0]==="/"){G.type="globstar",G.value+=F,G.output=`(?:^|${O}|${E(q)}${O})`,B.output=G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-G.output.length),G.type="globstar",G.output=E(q),G.value+=F,B.output+=G.output,B.globstar=!0,Q1(F);continue}let x={type:"star",value:F,output:A};if(q.bash===!0){if(x.output=".*?",G.type==="bos"||G.type==="slash")x.output=N+x.output;m(x);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&q.regex===!0){x.output=F,m(x);continue}if(B.index===B.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot")B.output+=y,G.output+=y;else if(q.dot===!0)B.output+=_,G.output+=_;else B.output+=N,G.output+=N;if(f()!=="*")B.output+=j,G.output+=j}m(x)}while(B.brackets>0){if(q.strictBrackets===!0)throw SyntaxError(u8("closing","]"));B.output=e1.escapeLast(B.output,"["),s("brackets")}while(B.parens>0){if(q.strictBrackets===!0)throw SyntaxError(u8("closing",")"));B.output=e1.escapeLast(B.output,"("),s("parens")}while(B.braces>0){if(q.strictBrackets===!0)throw SyntaxError(u8("closing","}"));B.output=e1.escapeLast(B.output,"{"),s("braces")}if(q.strictSlashes!==!0&&(G.type==="star"||G.type==="bracket"))m({type:"maybe_slash",value:"",output:`${O}?`});if(B.backtrack===!0){B.output="";for(let D of B.tokens)if(B.output+=D.output!=null?D.output:D.value,D.suffix)B.output+=D.suffix}return B};K9.fastpaths=(Z,J)=>{let q={...J},Q=typeof q.maxLength==="number"?Math.min(J4,q.maxLength):J4,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=Iq[Z]||Z;let X=e1.isWindows(J),{DOT_LITERAL:z,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:$,NO_DOTS:H,NO_DOTS_SLASH:M,STAR:O,START_ANCHOR:j}=u6.globChars(X),L=q.dot?H:$,I=q.dot?M:$,y=q.capture?"":"?:",_={negated:!1,prefix:""},T=q.bash===!0?".*?":O;if(q.capture)T=`(${T})`;let g=(N)=>{if(N.noglobstar===!0)return T;return`(${y}(?:(?!${j}${N.dot?K:z}).)*?)`},h=(N)=>{switch(N){case"*":return`${L}${W}${T}`;case".*":return`${z}${W}${T}`;case"*.*":return`${L}${T}${z}${W}${T}`;case"*/*":return`${L}${T}${V}${W}${I}${T}`;case"**":return L+g(q);case"**/*":return`(?:${L}${g(q)}${V})?${I}${W}${T}`;case"**/*.*":return`(?:${L}${g(q)}${V})?${I}${T}${z}${W}${T}`;case"**/.*":return`(?:${L}${g(q)}${V})?${z}${W}${T}`;default:{let P=/^(.*?)\.(\w+)$/.exec(N);if(!P)return;let A=h(P[1]);if(!A)return;return A+z+P[2]}}},u=e1.removePrefix(Z,_),E=h(u);if(E&&q.strictSlashes!==!0)E+=`${V}?`;return E};Tq.exports=K9});var Sq=U1((GI,Pq)=>{var HG=a1("path"),FG=Cq(),$9=Aq(),G9=Z4(),LG=g6(),wG=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),k1=(Z,J,q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>k1(M,J,q));return(M)=>{for(let O of $){let j=O(M);if(j)return j}return!1}}let Q=wG(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=J||{},X=G9.isWindows(J),z=Q?k1.compileRe(Z,J):k1.makeRe(Z,J,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...J,ignore:null,onMatch:null,onResult:null};W=k1(Y.ignore,$,q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:j}=k1.test($,z,J,{glob:Z,posix:X}),L={glob:Z,state:V,regex:z,posix:X,input:$,output:j,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(L);if(M===!1)return L.isMatch=!1,H?L:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(L);return L.isMatch=!1,H?L:!1}if(typeof Y.onMatch==="function")Y.onMatch(L);return H?L:!0};if(q)K.state=V;return K};k1.test=(Z,J,q,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=q||{},z=X.format||(Y?G9.toPosixSlashes:null),V=Z===Q,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===Q;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=k1.matchBase(Z,J,q,Y);else V=J.exec(W);return{isMatch:Boolean(V),match:V,output:W}};k1.matchBase=(Z,J,q,Q=G9.isWindows(q))=>{return(J instanceof RegExp?J:k1.makeRe(J,q)).test(HG.basename(Z))};k1.isMatch=(Z,J,q)=>k1(J,q)(Z);k1.parse=(Z,J)=>{if(Array.isArray(Z))return Z.map((q)=>k1.parse(q,J));return $9(Z,{...J,fastpaths:!1})};k1.scan=(Z,J)=>FG(Z,J);k1.compileRe=(Z,J,q=!1,Q=!1)=>{if(q===!0)return Z.output;let Y=J||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=k1.toRegex(V,J);if(Q===!0)W.state=Z;return W};k1.makeRe=(Z,J={},q=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(J.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=$9.fastpaths(Z,J);if(!Y.output)Y=$9(Z,J);return k1.compileRe(Y,J,q,Q)};k1.toRegex=(Z,J)=>{try{let q=J||{};return new RegExp(Z,q.flags||(q.nocase?"i":""))}catch(q){if(J&&J.debug===!0)throw q;return/$^/}};k1.constants=LG;Pq.exports=k1});import GZ,{resolve as U5,basename as z8,extname as Q8,dirname as f5,relative as UZ,win32 as CI,posix as II,isAbsolute as _I,join as nG}from"path";import jZ from"process";import{performance as K2}from"perf_hooks";import{createHash as aG}from"crypto";import{promises as D8}from"fs";import{EventEmitter as sG}from"events";function rG(Z){var J=[],q=[],Q=[0,0,0,0,0],Y=0;for(var X=0,z=0,V=0;X<Z.length;X++){var W=Z.charCodeAt(X);if(W===44)N9(q,Q,Y),Y=0;else if(W===59)N9(q,Q,Y),Y=0,J.push(q),q=[],Q[0]=0;else{var K=$2[W];if(K===void 0)throw Error("Invalid character ("+String.fromCharCode(W)+")");var $=K&32;if(K&=31,V+=K<<z,$)z+=5;else{var H=V&1;if(V>>>=1,H)V=V===0?-2147483648:-V;Q[Y]+=V,Y++,V=z=0}}}return N9(q,Q,Y),J.push(q),J}function N9(Z,J,q){if(q===4)Z.push([J[0],J[1],J[2],J[3]]);else if(q===5)Z.push([J[0],J[1],J[2],J[3],J[4]]);else if(q===1)Z.push([J[0]])}function oG(Z){var J=0,q=0,Q=0,Y=0,X="";for(var z=0;z<Z.length;z++){var V=Z[z];if(z>0)X+=";";if(V.length===0)continue;var W=0,K=[];for(var $=0,H=V;$<H.length;$++){var M=H[$],O=l6(M[0]-W);if(W=M[0],M.length>1)O+=l6(M[1]-J)+l6(M[2]-q)+l6(M[3]-Q),J=M[1],q=M[2],Q=M[3];if(M.length===5)O+=l6(M[4]-Y),Y=M[4];K.push(O)}X+=K.join(",")}return X}function l6(Z){var J="";Z=Z<0?-Z<<1|1:Z<<1;do{var q=Z&31;if(Z>>>=5,Z>0)q|=32;J+=u9[q]}while(Z>0);return J}class R4{constructor(Z){this.bits=Z instanceof R4?Z.bits.slice():[]}add(Z){this.bits[Z>>5]|=1<<(Z&31)}has(Z){return!!(this.bits[Z>>5]&1<<(Z&31))}}class q0{constructor(Z,J,q){this.start=Z,this.end=J,this.original=q,this.intro="",this.outro="",this.content=q,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(Z){this.outro+=Z}appendRight(Z){this.intro=this.intro+Z}clone(){let Z=new q0(this.start,this.end,this.original);return Z.intro=this.intro,Z.outro=this.outro,Z.content=this.content,Z.storeName=this.storeName,Z.edited=this.edited,Z}contains(Z){return this.start<Z&&Z<this.end}eachNext(Z){let J=this;while(J)Z(J),J=J.next}eachPrevious(Z){let J=this;while(J)Z(J),J=J.previous}edit(Z,J,q){if(this.content=Z,!q)this.intro="",this.outro="";return this.storeName=J,this.edited=!0,this}prependLeft(Z){this.outro=Z+this.outro}prependRight(Z){this.intro=Z+this.intro}split(Z){let J=Z-this.start,q=this.original.slice(0,J),Q=this.original.slice(J);this.original=q;let Y=new q0(Z,this.end,Q);if(Y.outro=this.outro,this.outro="",this.end=Z,this.edited)Y.edit("",!1),this.content="";else this.content=q;if(Y.next=this.next,Y.next)Y.next.previous=Y;return Y.previous=this,this.next=Y,Y}toString(){return this.intro+this.content+this.outro}trimEnd(Z){if(this.outro=this.outro.replace(Z,""),this.outro.length)return!0;let J=this.content.replace(Z,"");if(J.length){if(J!==this.content)this.split(this.start+J.length).edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(Z,""),this.intro.length)return!0}trimStart(Z){if(this.intro=this.intro.replace(Z,""),this.intro.length)return!0;let J=this.content.replace(Z,"");if(J.length){if(J!==this.content)this.split(this.end-J.length),this.edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(Z,""),this.outro.length)return!0}}class H0{constructor(Z){this.version=3,this.file=Z.file,this.sources=Z.sources,this.sourcesContent=Z.sourcesContent,this.names=Z.names,this.mappings=oG(Z.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d9(this.toString())}}function tG(Z){let J=Z.split(`
|
|
2
|
-
`),q
|
|
3
|
-
`),
|
|
4
|
-
`)
|
|
5
|
-
`);if(
|
|
6
|
-
`}}else{z=V.start;while(z<W){if(!
|
|
7
|
-
`)Y=!0;else if(K!=="\r"&&Y)if(Y=!1,z===V.start)V.prependRight(Z);else this._splitChunk(V,z),V=V.next,V.prependRight(Z)}z+=1}}z=V.end,V=V.next}return this.outro=this.outro.replace(
|
|
8
|
-
`,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(Z){if(Z instanceof P8)return this.addSource({content:Z,filename:Z.filename,separator:this.separator});if(!
|
|
9
|
-
`;if(this.sources.forEach((
|
|
10
|
-
`}),this.intro)this.intro=Z+this.intro.replace(/^[^\n]/gm,(
|
|
11
|
-
`),X=0,z=Y.map(function(H,M){var O=X+H.length+1,
|
|
12
|
-
`),Y=Math.max(0,
|
|
1
|
+
import{createRequire as nW}from"node:module";var gW=Object.create;var{getPrototypeOf:mW,defineProperty:jq,getOwnPropertyNames:uW}=Object;var dW=Object.prototype.hasOwnProperty;function lW(Z){return this[Z]}var cW,pW,F8=(Z,q,Q)=>{var J=Z!=null&&typeof Z==="object";if(J){var Y=q?cW??=new WeakMap:pW??=new WeakMap,X=Y.get(Z);if(X)return X}Q=Z!=null?gW(mW(Z)):{};let z=q||!Z||!Z.__esModule?jq(Q,"default",{value:Z,enumerable:!0}):Q;for(let V of uW(Z))if(!dW.call(z,V))jq(z,V,{get:lW.bind(Z,V),enumerable:!0});if(J)Y.set(Z,z);return z};var U1=(Z,q)=>()=>(q||Z((q={exports:{}}).exports,q),q.exports);var iW=(Z,q)=>()=>(Z&&(q=Z(Z=0)),q);var s1=nW(import.meta.url);var Iq=U1((dC,Cq)=>{var{builtinModules:MK}=s1("module"),HK=["sys"];Cq.exports=(MK||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter((Z)=>!/^_|^(internal|v8|node-inspect)\/|\//.test(Z)&&!HK.includes(Z)).sort()});var Dq=U1((lC,_q)=>{var FK=Iq(),LK=new Set(FK);_q.exports=(Z)=>{if(typeof Z!=="string")throw TypeError("Expected a string");if(Z.startsWith("node:"))Z=Z.slice(5);let q=Z.indexOf("/");if(q!==-1&&q!==Z.length-1)Z=Z.slice(0,q);return LK.has(Z)}});var Sq=U1((cC,Pq)=>{var wK=function(q){return OK(q)&&!NK(q)};function OK(Z){return!!Z&&typeof Z==="object"}function NK(Z){var q=Object.prototype.toString.call(Z);return q==="[object RegExp]"||q==="[object Date]"||IK(Z)}var RK=typeof Symbol==="function"&&Symbol.for,CK=RK?Symbol.for("react.element"):60103;function IK(Z){return Z.$$typeof===CK}function _K(Z){return Array.isArray(Z)?[]:{}}function b6(Z,q){return q.clone!==!1&&q.isMergeableObject(Z)?m8(_K(Z),Z,q):Z}function DK(Z,q,Q){return Z.concat(q).map(function(J){return b6(J,Q)})}function TK(Z,q){if(!q.customMerge)return m8;var Q=q.customMerge(Z);return typeof Q==="function"?Q:m8}function AK(Z){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(Z).filter(function(q){return Object.propertyIsEnumerable.call(Z,q)}):[]}function Tq(Z){return Object.keys(Z).concat(AK(Z))}function Aq(Z,q){try{return q in Z}catch(Q){return!1}}function PK(Z,q){return Aq(Z,q)&&!(Object.hasOwnProperty.call(Z,q)&&Object.propertyIsEnumerable.call(Z,q))}function SK(Z,q,Q){var J={};if(Q.isMergeableObject(Z))Tq(Z).forEach(function(Y){J[Y]=b6(Z[Y],Q)});return Tq(q).forEach(function(Y){if(PK(Z,Y))return;if(Aq(Z,Y)&&Q.isMergeableObject(q[Y]))J[Y]=TK(Y,Q)(Z[Y],q[Y],Q);else J[Y]=b6(q[Y],Q)}),J}function m8(Z,q,Q){Q=Q||{},Q.arrayMerge=Q.arrayMerge||DK,Q.isMergeableObject=Q.isMergeableObject||wK,Q.cloneUnlessOtherwiseSpecified=b6;var J=Array.isArray(q),Y=Array.isArray(Z),X=J===Y;if(!X)return b6(q,Q);else if(J)return Q.arrayMerge(Z,q,Q);else return SK(Z,q,Q)}m8.all=function(q,Q){if(!Array.isArray(q))throw Error("first argument should be an array");return q.reduce(function(J,Y){return m8(J,Y,Q)},{})};var yK=m8;Pq.exports=yK});var Eq=U1((pC,yq)=>{var EK=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,bK=/(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;yq.exports=function(Z){return EK.test(Z)||bK.test(Z)}});var o7=U1((iC,bq)=>{var xK=s1("os");bq.exports=xK.homedir||function(){var q=process.env.HOME,Q=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(process.platform==="win32")return process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||q||null;if(process.platform==="darwin")return q||(Q?"/Users/"+Q:null);if(process.platform==="linux")return q||(process.getuid()===0?"/root":Q?"/home/"+Q:null);return q||null}});var t7=U1((nC,xq)=>{xq.exports=function(){var Z=Error.prepareStackTrace;Error.prepareStackTrace=function(Q,J){return J};var q=Error().stack;return Error.prepareStackTrace=Z,q[2].getFileName()}});var kq=U1((sC,x6)=>{var kK=process.platform==="win32",fK=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,e7={};function vK(Z){return fK.exec(Z).slice(1)}e7.parse=function(Z){if(typeof Z!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof Z);var q=vK(Z);if(!q||q.length!==5)throw TypeError("Invalid path '"+Z+"'");return{root:q[1],dir:q[0]===q[1]?q[0]:q[0].slice(0,-1),base:q[2],ext:q[4],name:q[3]}};var hK=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Z9={};function gK(Z){return hK.exec(Z).slice(1)}Z9.parse=function(Z){if(typeof Z!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof Z);var q=gK(Z);if(!q||q.length!==5)throw TypeError("Invalid path '"+Z+"'");return{root:q[1],dir:q[0].slice(0,-1),base:q[2],ext:q[4],name:q[3]}};if(kK)x6.exports=e7.parse;else x6.exports=Z9.parse;x6.exports.posix=Z9.parse;x6.exports.win32=e7.parse});var q9=U1((aC,gq)=>{var hq=s1("path"),fq=hq.parse||kq(),mK=/^([A-Za-z]:)/,uK=/^\\\\/,vq=function(q,Q){var J="/";if(mK.test(q))J="";else if(uK.test(q))J="\\\\";var Y=[q],X=fq(q);while(X.dir!==Y[Y.length-1])Y.push(X.dir),X=fq(X.dir);return Y.reduce(function(z,V){return z.concat(Q.map(function(W){return hq.resolve(J,V,W)}))},[])};gq.exports=function(q,Q,J){var Y=Q&&Q.moduleDirectory?[].concat(Q.moduleDirectory):["node_modules"];if(Q&&typeof Q.paths==="function")return Q.paths(J,q,function(){return vq(q,Y)},Q);var X=vq(q,Y);return Q&&Q.paths?X.concat(Q.paths):X}});var Q9=U1((rC,mq)=>{mq.exports=function(Z,q){return q||{}}});var lq=U1((oC,dq)=>{var dK="Function.prototype.bind called on incompatible ",lK=Object.prototype.toString,cK=Math.max,pK="[object Function]",uq=function(q,Q){var J=[];for(var Y=0;Y<q.length;Y+=1)J[Y]=q[Y];for(var X=0;X<Q.length;X+=1)J[X+q.length]=Q[X];return J},iK=function(q,Q){var J=[];for(var Y=Q||0,X=0;Y<q.length;Y+=1,X+=1)J[X]=q[Y];return J},nK=function(Z,q){var Q="";for(var J=0;J<Z.length;J+=1)if(Q+=Z[J],J+1<Z.length)Q+=q;return Q};dq.exports=function(q){var Q=this;if(typeof Q!=="function"||lK.apply(Q)!==pK)throw TypeError(dK+Q);var J=iK(arguments,1),Y,X=function(){if(this instanceof Y){var $=Q.apply(this,uq(J,arguments));if(Object($)===$)return $;return this}return Q.apply(q,uq(J,arguments))},z=cK(0,Q.length-J.length),V=[];for(var W=0;W<z;W++)V[W]="$"+W;if(Y=Function("binder","return function ("+nK(V,",")+"){ return binder.apply(this,arguments); }")(X),Q.prototype){var K=function(){};K.prototype=Q.prototype,Y.prototype=new K,K.prototype=null}return Y}});var pq=U1((tC,cq)=>{var sK=lq();cq.exports=Function.prototype.bind||sK});var nq=U1((eC,iq)=>{var aK=Function.prototype.call,rK=Object.prototype.hasOwnProperty,oK=pq();iq.exports=oK.call(aK,rK)});var sq=U1((ZI,tK)=>{tK.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var k6=U1((qI,oq)=>{var eK=nq();function Z$(Z,q){var Q=Z.split("."),J=q.split(" "),Y=J.length>1?J[0]:"=",X=(J.length>1?J[1]:J[0]).split(".");for(var z=0;z<3;++z){var V=parseInt(Q[z]||0,10),W=parseInt(X[z]||0,10);if(V===W)continue;if(Y==="<")return V<W;if(Y===">=")return V>=W;return!1}return Y===">="}function aq(Z,q){var Q=q.split(/ ?&& ?/);if(Q.length===0)return!1;for(var J=0;J<Q.length;++J)if(!Z$(Z,Q[J]))return!1;return!0}function q$(Z,q){if(typeof q==="boolean")return q;var Q=typeof Z>"u"?process.versions&&process.versions.node:Z;if(typeof Q!=="string")throw TypeError(typeof Z>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(q&&typeof q==="object"){for(var J=0;J<q.length;++J)if(aq(Q,q[J]))return!0;return!1}return aq(Q,q)}var rq=sq();oq.exports=function(q,Q){return eK(rq,q)&&q$(Q,rq[q])}});var ZQ=U1((QI,eq)=>{var w8=s1("fs"),Q$=o7(),g1=s1("path"),J$=t7(),Y$=q9(),X$=Q9(),z$=k6(),V$=process.platform!=="win32"&&w8.realpath&&typeof w8.realpath.native==="function"?w8.realpath.native:w8.realpath,W$=/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/,K$=/^\w:[/\\]*$/,$$=/[/\\]node_modules[/\\]*$/,tq=Q$(),G$=function(){return[g1.join(tq,".node_modules"),g1.join(tq,".node_libraries")]},U$=function(q,Q){w8.stat(q,function(J,Y){if(!J)return Q(null,Y.isFile()||Y.isFIFO());if(J.code==="ENOENT"||J.code==="ENOTDIR")return Q(null,!1);return Q(J)})},j$=function(q,Q){w8.stat(q,function(J,Y){if(!J)return Q(null,Y.isDirectory());if(J.code==="ENOENT"||J.code==="ENOTDIR")return Q(null,!1);return Q(J)})},B$=function(q,Q){V$(q,function(J,Y){if(J&&J.code!=="ENOENT")Q(J);else Q(null,J?q:Y)})},f6=function(q,Q,J,Y){if(J&&J.preserveSymlinks===!1)q(Q,Y);else Y(null,Q)},M$=function(q,Q,J){q(Q,function(Y,X){if(Y)J(Y);else try{var z=JSON.parse(X);J(null,z)}catch(V){J(null)}})},H$=function(q,Q,J){var Y=Y$(Q,J,q);for(var X=0;X<Y.length;X++)Y[X]=g1.join(Y[X],q);return Y};eq.exports=function(q,Q,J){var Y=J,X=Q;if(typeof Q==="function")Y=X,X={};if(typeof q!=="string"){var z=TypeError("Path must be a string.");return process.nextTick(function(){Y(z)})}X=X$(q,X);var V=X.isFile||U$,W=X.isDirectory||j$,K=X.readFile||w8.readFile,$=X.realpath||B$,H=X.readPackage||M$;if(X.readFile&&X.readPackage){var M=TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){Y(M)})}var O=X.packageIterator,L=X.extensions||[".js"],B=X.includeCoreModules!==!1,C=X.basedir||g1.dirname(J$()),y=X.filename||C;X.paths=X.paths||G$();var P=g1.resolve(C);f6($,P,X,function(j,x){if(j)Y(j);else v(x)});var _;function v(j){if(W$.test(q)){if(_=g1.resolve(j,q),q==="."||q===".."||q.slice(-1)==="/")_+="/";if(q.slice(-1)==="/"&&_===j)N(_,X.package,h);else d(_,X.package,h)}else if(B&&z$(q))return Y(null,q);else T(q,j,function(x,b,S){if(x)Y(x);else if(b)return f6($,b,X,function(F,u){if(F)Y(F);else Y(null,u,S)});else{var G=Error("Cannot find module '"+q+"' from '"+y+"'");G.code="MODULE_NOT_FOUND",Y(G)}})}function h(j,x,b){if(j)Y(j);else if(x)Y(null,x,b);else N(_,function(S,G,F){if(S)Y(S);else if(G)f6($,G,X,function(f,o){if(f)Y(f);else Y(null,o,F)});else{var u=Error("Cannot find module '"+q+"' from '"+y+"'");u.code="MODULE_NOT_FOUND",Y(u)}})}function d(j,x,b){var S=x,G=b;if(typeof S==="function")G=S,S=void 0;var F=[""].concat(L);u(F,j,S);function u(f,o,t){if(f.length===0)return G(null,void 0,t);var J1=o+f[0],N1=t;if(N1)R1(null,N1);else E(g1.dirname(J1),R1);function R1(a,m,L1){if(N1=m,a)return G(a);if(L1&&N1&&X.pathFilter){var p=g1.relative(L1,J1),D=p.slice(0,p.length-f[0].length),k=X.pathFilter(N1,o,D);if(k)return u([""].concat(L.slice()),g1.resolve(L1,k),N1)}V(J1,F1)}function F1(a,m){if(a)return G(a);if(m)return G(null,J1,N1);u(f.slice(1),o,N1)}}}function E(j,x){if(j===""||j==="/")return x(null);if(process.platform==="win32"&&K$.test(j))return x(null);if($$.test(j))return x(null);f6($,j,X,function(b,S){if(b)return E(g1.dirname(j),x);var G=g1.join(S,"package.json");V(G,function(F,u){if(!u)return E(g1.dirname(j),x);H(K,G,function(f,o){if(f)x(f);var t=o;if(t&&X.packageFilter)t=X.packageFilter(t,G);x(null,t,j)})})})}function N(j,x,b){var S=b,G=x;if(typeof G==="function")S=G,G=X.package;f6($,j,X,function(F,u){if(F)return S(F);var f=g1.join(u,"package.json");V(f,function(o,t){if(o)return S(o);if(!t)return d(g1.join(j,"index"),G,S);H(K,f,function(J1,N1){if(J1)return S(J1);var R1=N1;if(R1&&X.packageFilter)R1=X.packageFilter(R1,f);if(R1&&R1.main){if(typeof R1.main!=="string"){var F1=TypeError("package “"+R1.name+"” `main` must be a string");return F1.code="INVALID_PACKAGE_MAIN",S(F1)}if(R1.main==="."||R1.main==="./")R1.main="index";d(g1.resolve(j,R1.main),R1,function(a,m,L1){if(a)return S(a);if(m)return S(null,m,L1);if(!L1)return d(g1.join(j,"index"),L1,S);var p=g1.resolve(j,L1.main);N(p,L1,function(D,k,I){if(D)return S(D);if(k)return S(null,k,I);d(g1.join(j,"index"),I,S)})});return}d(g1.join(j,"/index"),R1,S)})})})}function A(j,x){if(x.length===0)return j(null,void 0);var b=x[0];W(g1.dirname(b),S);function S(u,f){if(u)return j(u);if(!f)return A(j,x.slice(1));d(b,X.package,G)}function G(u,f,o){if(u)return j(u);if(f)return j(null,f,o);N(b,X.package,F)}function F(u,f,o){if(u)return j(u);if(f)return j(null,f,o);A(j,x.slice(1))}}function T(j,x,b){var S=function(){return H$(j,x,X)};A(b,O?O(j,x,S,X):S())}}});var qQ=U1((JI,F$)=>{F$.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var XQ=U1((YI,YQ)=>{var L$=k6(),QQ=qQ(),JQ={};for(v6 in QQ)if(Object.prototype.hasOwnProperty.call(QQ,v6))JQ[v6]=L$(v6);var v6;YQ.exports=JQ});var VQ=U1((XI,zQ)=>{var w$=k6();zQ.exports=function(q){return w$(q)}});var $Q=U1((zI,KQ)=>{var O$=k6(),O8=s1("fs"),t1=s1("path"),N$=o7(),R$=t7(),C$=q9(),I$=Q9(),_$=process.platform!=="win32"&&O8.realpathSync&&typeof O8.realpathSync.native==="function"?O8.realpathSync.native:O8.realpathSync,D$=/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/,T$=/^\w:[/\\]*$/,A$=/[/\\]node_modules[/\\]*$/,WQ=N$(),P$=function(){return[t1.join(WQ,".node_modules"),t1.join(WQ,".node_libraries")]},S$=function(q){try{var Q=O8.statSync(q,{throwIfNoEntry:!1})}catch(J){if(J&&(J.code==="ENOENT"||J.code==="ENOTDIR"))return!1;throw J}return!!Q&&(Q.isFile()||Q.isFIFO())},y$=function(q){try{var Q=O8.statSync(q,{throwIfNoEntry:!1})}catch(J){if(J&&(J.code==="ENOENT"||J.code==="ENOTDIR"))return!1;throw J}return!!Q&&Q.isDirectory()},E$=function(q){try{return _$(q)}catch(Q){if(Q.code!=="ENOENT")throw Q}return q},h6=function(q,Q,J){if(J&&J.preserveSymlinks===!1)return q(Q);return Q},b$=function(q,Q){var J=q(Q);try{var Y=JSON.parse(J);return Y}catch(X){}},x$=function(q,Q,J){var Y=C$(Q,J,q);for(var X=0;X<Y.length;X++)Y[X]=t1.join(Y[X],q);return Y};KQ.exports=function(q,Q){if(typeof q!=="string")throw TypeError("Path must be a string.");var J=I$(q,Q),Y=J.isFile||S$,X=J.readFileSync||O8.readFileSync,z=J.isDirectory||y$,V=J.realpathSync||E$,W=J.readPackageSync||b$;if(J.readFileSync&&J.readPackageSync)throw TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var K=J.packageIterator,$=J.extensions||[".js"],H=J.includeCoreModules!==!1,M=J.basedir||t1.dirname(R$()),O=J.filename||M;J.paths=J.paths||P$();var L=h6(V,t1.resolve(M),J);if(D$.test(q)){var B=t1.resolve(L,q);if(q==="."||q===".."||q.slice(-1)==="/")B+="/";var C=_(B)||h(B);if(C)return h6(V,C,J)}else if(H&&O$(q))return q;else{var y=d(q,L);if(y)return h6(V,y,J)}var P=Error("Cannot find module '"+q+"' from '"+O+"'");throw P.code="MODULE_NOT_FOUND",P;function _(E){var N=v(t1.dirname(E));if(N&&N.dir&&N.pkg&&J.pathFilter){var A=t1.relative(N.dir,E),T=J.pathFilter(N.pkg,E,A);if(T)E=t1.resolve(N.dir,T)}if(Y(E))return E;for(var j=0;j<$.length;j++){var x=E+$[j];if(Y(x))return x}}function v(E){if(E===""||E==="/")return;if(process.platform==="win32"&&T$.test(E))return;if(A$.test(E))return;var N=t1.join(h6(V,E,J),"package.json");if(!Y(N))return v(t1.dirname(E));var A=W(X,N);if(A&&J.packageFilter)A=J.packageFilter(A,E);return{pkg:A,dir:E}}function h(E){var N=t1.join(h6(V,E,J),"/package.json");if(Y(N)){try{var A=W(X,N)}catch(b){}if(A&&J.packageFilter)A=J.packageFilter(A,E);if(A&&A.main){if(typeof A.main!=="string"){var T=TypeError("package “"+A.name+"” `main` must be a string");throw T.code="INVALID_PACKAGE_MAIN",T}if(A.main==="."||A.main==="./")A.main="index";try{var j=_(t1.resolve(E,A.main));if(j)return j;var x=h(t1.resolve(E,A.main));if(x)return x}catch(b){}}}return _(t1.join(E,"/index"))}function d(E,N){var A=function(){return x$(E,N,J)},T=K?K(E,N,A,J):A();for(var j=0;j<T.length;j++){var x=T[j];if(z(t1.dirname(x))){var b=_(x);if(b)return b;var S=h(x);if(S)return S}}}}});var UQ=U1((VI,GQ)=>{var e0=ZQ();e0.core=XQ();e0.isCore=VQ();e0.sync=$Q();GQ.exports=e0});var g6=U1((WI,BQ)=>{var k$=s1("path"),jQ={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},f$={...jQ,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},v$={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};BQ.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:v$,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:k$.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?f$:jQ}}});var Z4=U1((c$)=>{var h$=s1("path"),g$=process.platform==="win32",{REGEX_BACKSLASH:m$,REGEX_REMOVE_BACKSLASH:u$,REGEX_SPECIAL_CHARS:d$,REGEX_SPECIAL_CHARS_GLOBAL:l$}=g6();c$.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);c$.hasRegexChars=(Z)=>d$.test(Z);c$.isRegexChar=(Z)=>Z.length===1&&c$.hasRegexChars(Z);c$.escapeRegex=(Z)=>Z.replace(l$,"\\$1");c$.toPosixSlashes=(Z)=>Z.replace(m$,"/");c$.removeBackslashes=(Z)=>{return Z.replace(u$,(q)=>{return q==="\\"?"":q})};c$.supportsLookbehinds=()=>{let Z=process.version.slice(1).split(".").map(Number);if(Z.length===3&&Z[0]>=9||Z[0]===8&&Z[1]>=10)return!0;return!1};c$.isWindows=(Z)=>{if(Z&&typeof Z.windows==="boolean")return Z.windows;return g$===!0||h$.sep==="\\"};c$.escapeLast=(Z,q,Q)=>{let J=Z.lastIndexOf(q,Q);if(J===-1)return Z;if(Z[J-1]==="\\")return c$.escapeLast(Z,q,J-1);return`${Z.slice(0,J)}\\${Z.slice(J)}`};c$.removePrefix=(Z,q={})=>{let Q=Z;if(Q.startsWith("./"))Q=Q.slice(2),q.prefix="./";return Q};c$.wrapOutput=(Z,q={},Q={})=>{let J=Q.contains?"":"^",Y=Q.contains?"":"$",X=`${J}(?:${Z})${Y}`;if(q.negated===!0)X=`(?:^(?!${X}).*$)`;return X}});var IQ=U1(($I,CQ)=>{var FQ=Z4(),{CHAR_ASTERISK:J9,CHAR_AT:ZG,CHAR_BACKWARD_SLASH:m6,CHAR_COMMA:qG,CHAR_DOT:Y9,CHAR_EXCLAMATION_MARK:X9,CHAR_FORWARD_SLASH:RQ,CHAR_LEFT_CURLY_BRACE:z9,CHAR_LEFT_PARENTHESES:V9,CHAR_LEFT_SQUARE_BRACKET:QG,CHAR_PLUS:JG,CHAR_QUESTION_MARK:LQ,CHAR_RIGHT_CURLY_BRACE:YG,CHAR_RIGHT_PARENTHESES:wQ,CHAR_RIGHT_SQUARE_BRACKET:XG}=g6(),OQ=(Z)=>{return Z===RQ||Z===m6},NQ=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},zG=(Z,q)=>{let Q=q||{},J=Z.length-1,Y=Q.parts===!0||Q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,L=!1,B=!1,C=!1,y=!1,P=!1,_=!1,v=!1,h=!1,d=0,E,N,A={value:"",depth:0,isGlob:!1},T=()=>K>=J,j=()=>W.charCodeAt(K+1),x=()=>{return E=N,W.charCodeAt(++K)};while(K<J){N=x();let u;if(N===m6){if(P=A.backslashes=!0,N=x(),N===z9)y=!0;continue}if(y===!0||N===z9){d++;while(T()!==!0&&(N=x())){if(N===m6){P=A.backslashes=!0,x();continue}if(N===z9){d++;continue}if(y!==!0&&N===Y9&&(N=x())===Y9){if(M=A.isBrace=!0,L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===qG){if(M=A.isBrace=!0,L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===YG){if(d--,d===0){y=!1,M=A.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===RQ){if(X.push(K),z.push(A),A={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===Y9&&K===$+1){$+=2;continue}H=K+1;continue}if(Q.noext!==!0){if((N===JG||N===ZG||N===J9||N===LQ||N===X9)===!0&&j()===V9){if(L=A.isGlob=!0,B=A.isExtglob=!0,h=!0,N===X9&&K===$)v=!0;if(Y===!0){while(T()!==!0&&(N=x())){if(N===m6){P=A.backslashes=!0,N=x();continue}if(N===wQ){L=A.isGlob=!0,h=!0;break}}continue}break}}if(N===J9){if(E===J9)C=A.isGlobstar=!0;if(L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===LQ){if(L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===QG){while(T()!==!0&&(u=x())){if(u===m6){P=A.backslashes=!0,x();continue}if(u===XG){O=A.isBracket=!0,L=A.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(Q.nonegate!==!0&&N===X9&&K===$){_=A.negated=!0,$++;continue}if(Q.noparen!==!0&&N===V9){if(L=A.isGlob=!0,Y===!0){while(T()!==!0&&(N=x())){if(N===V9){P=A.backslashes=!0,N=x();continue}if(N===wQ){h=!0;break}}continue}break}if(L===!0){if(h=!0,Y===!0)continue;break}}if(Q.noext===!0)B=!1,L=!1;let b=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(b&&L===!0&&H>0)b=W.slice(0,H),G=W.slice(H);else if(L===!0)b="",G=W;else b=W;if(b&&b!==""&&b!=="/"&&b!==W){if(OQ(b.charCodeAt(b.length-1)))b=b.slice(0,-1)}if(Q.unescape===!0){if(G)G=FQ.removeBackslashes(G);if(b&&P===!0)b=FQ.removeBackslashes(b)}let F={prefix:S,input:Z,start:$,base:b,glob:G,isBrace:M,isBracket:O,isGlob:L,isExtglob:B,isGlobstar:C,negated:_,negatedExtglob:v};if(Q.tokens===!0){if(F.maxDepth=0,!OQ(N))z.push(A);F.tokens=z}if(Q.parts===!0||Q.tokens===!0){let u;for(let f=0;f<X.length;f++){let o=u?u+1:$,t=X[f],J1=Z.slice(o,t);if(Q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=J1;NQ(z[f]),F.maxDepth+=z[f].depth}if(f!==0||J1!=="")V.push(J1);u=t}if(u&&u+1<Z.length){let f=Z.slice(u+1);if(V.push(f),Q.tokens)z[z.length-1].value=f,NQ(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F};CQ.exports=zG});var PQ=U1((GI,AQ)=>{var u6=g6(),e1=Z4(),{MAX_LENGTH:q4,POSIX_REGEX_SOURCE:VG,REGEX_NON_SPECIAL_CHARS:WG,REGEX_SPECIAL_CHARS_BACKREF:KG,REPLACEMENTS:_Q}=u6,$G=(Z,q)=>{if(typeof q.expandRange==="function")return q.expandRange(...Z,q);Z.sort();let Q=`[${Z.join("-")}]`;try{new RegExp(Q)}catch(J){return Z.map((Y)=>e1.escapeRegex(Y)).join("..")}return Q},u8=(Z,q)=>{return`Missing ${Z}: "${q}" - use "\\\\${q}" to match literal characters`},DQ=(Z)=>{let q=[],Q=0,J=0,Y=0,X="",z=!1;for(let V of Z){if(z===!0){X+=V,z=!1;continue}if(V==="\\"){X+=V,z=!0;continue}if(V==='"'){Y=Y===1?0:1,X+=V;continue}if(Y===0){if(V==="[")Q++;else if(V==="]"&&Q>0)Q--;else if(Q===0){if(V==="(")J++;else if(V===")"&&J>0)J--;else if(V==="|"&&J===0){q.push(X),X="";continue}}}X+=V}return q.push(X),q},GG=(Z)=>{let q=!1;for(let Q of Z){if(q===!0){q=!1;continue}if(Q==="\\"){q=!0;continue}if(/[?*+@!()[\]{}]/.test(Q))return!1}return!0},TQ=(Z)=>{let q=Z.trim(),Q=!0;while(Q===!0)if(Q=!1,/^@\([^\\()[\]{}|]+\)$/.test(q))q=q.slice(2,-1),Q=!0;if(!GG(q))return;return q.replace(/\\(.)/g,"$1")},UG=(Z)=>{let q=Z.map(TQ).filter(Boolean);for(let Q=0;Q<q.length;Q++)for(let J=Q+1;J<q.length;J++){let Y=q[Q],X=q[J],z=Y[0];if(!z||Y!==z.repeat(Y.length)||X!==z.repeat(X.length))continue;if(Y===X||Y.startsWith(X)||X.startsWith(Y))return!0}return!1},W9=(Z,q=!0)=>{if(Z[0]!=="+"&&Z[0]!=="*"||Z[1]!=="(")return;let Q=0,J=0,Y=0,X=!1;for(let z=1;z<Z.length;z++){let V=Z[z];if(X===!0){X=!1;continue}if(V==="\\"){X=!0;continue}if(V==='"'){Y=Y===1?0:1;continue}if(Y===1)continue;if(V==="["){Q++;continue}if(V==="]"&&Q>0){Q--;continue}if(Q>0)continue;if(V==="("){J++;continue}if(V===")"){if(J--,J===0){if(q===!0&&z!==Z.length-1)return;return{type:Z[0],body:Z.slice(2,z),end:z}}}}},jG=(Z)=>{let q=0,Q=[];while(q<Z.length){let Y=W9(Z.slice(q),!1);if(!Y||Y.type!=="*")return;let X=DQ(Y.body).map((V)=>V.trim());if(X.length!==1)return;let z=TQ(X[0]);if(!z||z.length!==1)return;Q.push(z),q+=Y.end+1}if(Q.length<1)return;return`${Q.length===1?e1.escapeRegex(Q[0]):`[${Q.map((Y)=>e1.escapeRegex(Y)).join("")}]`}*`},BG=(Z)=>{let q=0,Q=Z.trim(),J=W9(Q);while(J)q++,Q=J.body.trim(),J=W9(Q);return q},MG=(Z,q)=>{if(q.maxExtglobRecursion===!1)return{risky:!1};let Q=typeof q.maxExtglobRecursion==="number"?q.maxExtglobRecursion:u6.DEFAULT_MAX_EXTGLOB_RECURSION,J=DQ(Z).map((Y)=>Y.trim());if(J.length>1){if(J.some((Y)=>Y==="")||J.some((Y)=>/^[*?]+$/.test(Y))||UG(J))return{risky:!0}}for(let Y of J){let X=jG(Y);if(X)return{risky:!0,safeOutput:X};if(BG(Y)>Q)return{risky:!0}}return{risky:!1}},K9=(Z,q)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=_Q[Z]||Z;let Q={...q},J=typeof Q.maxLength==="number"?Math.min(q4,Q.maxLength):q4,Y=Z.length;if(Y>J)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${J}`);let X={type:"bos",value:"",output:Q.prepend||""},z=[X],V=Q.capture?"":"?:",W=e1.isWindows(q),K=u6.globChars(W),$=u6.extglobChars(K),{DOT_LITERAL:H,PLUS_LITERAL:M,SLASH_LITERAL:O,ONE_CHAR:L,DOTS_SLASH:B,NO_DOT:C,NO_DOT_SLASH:y,NO_DOTS_SLASH:P,QMARK:_,QMARK_NO_DOT:v,STAR:h,START_ANCHOR:d}=K,E=(D)=>{return`(${V}(?:(?!${d}${D.dot?B:H}).)*?)`},N=Q.dot?"":C,A=Q.dot?_:v,T=Q.bash===!0?E(Q):h;if(Q.capture)T=`(${T})`;if(typeof Q.noext==="boolean")Q.noextglob=Q.noext;let j={input:Z,index:-1,start:0,dot:Q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=e1.removePrefix(Z,j),Y=Z.length;let x=[],b=[],S=[],G=X,F,u=()=>j.index===Y-1,f=j.peek=(D=1)=>Z[j.index+D],o=j.advance=()=>Z[++j.index]||"",t=()=>Z.slice(j.index+1),J1=(D="",k=0)=>{j.consumed+=D,j.index+=k},N1=(D)=>{j.output+=D.output!=null?D.output:D.value,J1(D.value)},R1=()=>{let D=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))o(),j.start++,D++;if(D%2===0)return!1;return j.negated=!0,j.start++,!0},F1=(D)=>{j[D]++,S.push(D)},a=(D)=>{j[D]--,S.pop()},m=(D)=>{if(G.type==="globstar"){let k=j.braces>0&&(D.type==="comma"||D.type==="brace"),I=D.extglob===!0||x.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!k&&!I)j.output=j.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=T,j.output+=G.output}if(x.length&&D.type!=="paren")x[x.length-1].inner+=D.value;if(D.value||D.output)N1(D);if(G&&G.type==="text"&&D.type==="text"){G.value+=D.value,G.output=(G.output||"")+D.value;return}D.prev=G,z.push(D),G=D},L1=(D,k)=>{let I={...$[k],conditions:1,inner:""};I.prev=G,I.parens=j.parens,I.output=j.output,I.startIndex=j.index,I.tokensIndex=z.length;let g=(Q.capture?"(":"")+I.open;F1("parens"),m({type:D,value:k,output:j.output?"":L}),m({type:"paren",extglob:!0,value:o(),output:g}),x.push(I)},p=(D)=>{let k=Z.slice(D.startIndex,j.index+1),I=Z.slice(D.startIndex+2,j.index),g=MG(I,Q);if((D.type==="plus"||D.type==="star")&&g.risky){let i=g.safeOutput?(D.output?"":L)+(Q.capture?`(${g.safeOutput})`:g.safeOutput):void 0,B1=z[D.tokensIndex];B1.type="text",B1.value=k,B1.output=i||e1.escapeRegex(k);for(let _1=D.tokensIndex+1;_1<z.length;_1++)z[_1].value="",z[_1].output="",delete z[_1].suffix;j.output=D.output+B1.output,j.backtrack=!0,m({type:"paren",extglob:!0,value:F,output:""}),a("parens");return}let c=D.close+(Q.capture?")":""),n;if(D.type==="negate"){let i=T;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))i=E(Q);if(i!==T||u()||/^\)+$/.test(t()))c=D.close=`)$))${i}`;if(D.inner.includes("*")&&(n=t())&&/^\.[^\\/.]+$/.test(n)){let B1=K9(n,{...q,fastpaths:!1}).output;c=D.close=`)${B1})${i})`}if(D.prev.type==="bos")j.negatedExtglob=!0}m({type:"paren",extglob:!0,value:F,output:c}),a("parens")};if(Q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,k=Z.replace(KG,(I,g,c,n,i,B1)=>{if(n==="\\")return D=!0,I;if(n==="?"){if(g)return g+n+(i?_.repeat(i.length):"");if(B1===0)return A+(i?_.repeat(i.length):"");return _.repeat(c.length)}if(n===".")return H.repeat(c.length);if(n==="*"){if(g)return g+n+(i?T:"");return T}return g?I:`\\${I}`});if(D===!0)if(Q.unescape===!0)k=k.replace(/\\/g,"");else k=k.replace(/\\+/g,(I)=>{return I.length%2===0?"\\\\":I?"\\":""});if(k===Z&&Q.contains===!0)return j.output=Z,j;return j.output=e1.wrapOutput(k,j,q),j}while(!u()){if(F=o(),F==="\x00")continue;if(F==="\\"){let I=f();if(I==="/"&&Q.bash!==!0)continue;if(I==="."||I===";")continue;if(!I){F+="\\",m({type:"text",value:F});continue}let g=/^\\+/.exec(t()),c=0;if(g&&g[0].length>2){if(c=g[0].length,j.index+=c,c%2!==0)F+="\\"}if(Q.unescape===!0)F=o();else F+=o();if(j.brackets===0){m({type:"text",value:F});continue}}if(j.brackets>0&&(F!=="]"||G.value==="["||G.value==="[^")){if(Q.posix!==!1&&F===":"){let I=G.value.slice(1);if(I.includes("[")){if(G.posix=!0,I.includes(":")){let g=G.value.lastIndexOf("["),c=G.value.slice(0,g),n=G.value.slice(g+2),i=VG[n];if(i){if(G.value=c+i,j.backtrack=!0,o(),!X.output&&z.indexOf(G)===1)X.output=L;continue}}}}if(F==="["&&f()!==":"||F==="-"&&f()==="]")F=`\\${F}`;if(F==="]"&&(G.value==="["||G.value==="[^"))F=`\\${F}`;if(Q.posix===!0&&F==="!"&&G.value==="[")F="^";G.value+=F,N1({value:F});continue}if(j.quotes===1&&F!=='"'){F=e1.escapeRegex(F),G.value+=F,N1({value:F});continue}if(F==='"'){if(j.quotes=j.quotes===1?0:1,Q.keepQuotes===!0)m({type:"text",value:F});continue}if(F==="("){F1("parens"),m({type:"paren",value:F});continue}if(F===")"){if(j.parens===0&&Q.strictBrackets===!0)throw SyntaxError(u8("opening","("));let I=x[x.length-1];if(I&&j.parens===I.parens+1){p(x.pop());continue}m({type:"paren",value:F,output:j.parens?")":"\\)"}),a("parens");continue}if(F==="["){if(Q.nobracket===!0||!t().includes("]")){if(Q.nobracket!==!0&&Q.strictBrackets===!0)throw SyntaxError(u8("closing","]"));F=`\\${F}`}else F1("brackets");m({type:"bracket",value:F});continue}if(F==="]"){if(Q.nobracket===!0||G&&G.type==="bracket"&&G.value.length===1){m({type:"text",value:F,output:`\\${F}`});continue}if(j.brackets===0){if(Q.strictBrackets===!0)throw SyntaxError(u8("opening","["));m({type:"text",value:F,output:`\\${F}`});continue}a("brackets");let I=G.value.slice(1);if(G.posix!==!0&&I[0]==="^"&&!I.includes("/"))F=`/${F}`;if(G.value+=F,N1({value:F}),Q.literalBrackets===!1||e1.hasRegexChars(I))continue;let g=e1.escapeRegex(G.value);if(j.output=j.output.slice(0,-G.value.length),Q.literalBrackets===!0){j.output+=g,G.value=g;continue}G.value=`(${V}${g}|${G.value})`,j.output+=G.value;continue}if(F==="{"&&Q.nobrace!==!0){F1("braces");let I={type:"brace",value:F,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};b.push(I),m(I);continue}if(F==="}"){let I=b[b.length-1];if(Q.nobrace===!0||!I){m({type:"text",value:F,output:F});continue}let g=")";if(I.dots===!0){let c=z.slice(),n=[];for(let i=c.length-1;i>=0;i--){if(z.pop(),c[i].type==="brace")break;if(c[i].type!=="dots")n.unshift(c[i].value)}g=$G(n,Q),j.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let c=j.output.slice(0,I.outputIndex),n=j.tokens.slice(I.tokensIndex);I.value=I.output="\\{",F=g="\\}",j.output=c;for(let i of n)j.output+=i.output||i.value}m({type:"brace",value:F,output:g}),a("braces"),b.pop();continue}if(F==="|"){if(x.length>0)x[x.length-1].conditions++;m({type:"text",value:F});continue}if(F===","){let I=F,g=b[b.length-1];if(g&&S[S.length-1]==="braces")g.comma=!0,I="|";m({type:"comma",value:F,output:I});continue}if(F==="/"){if(G.type==="dot"&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",z.pop(),G=X;continue}m({type:"slash",value:F,output:O});continue}if(F==="."){if(j.braces>0&&G.type==="dot"){if(G.value===".")G.output=H;let I=b[b.length-1];G.type="dots",G.output+=F,G.value+=F,I.dots=!0;continue}if(j.braces+j.parens===0&&G.type!=="bos"&&G.type!=="slash"){m({type:"text",value:F,output:H});continue}m({type:"dot",value:F,output:H});continue}if(F==="?"){if(!(G&&G.value==="(")&&Q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("qmark",F);continue}if(G&&G.type==="paren"){let g=f(),c=F;if(g==="<"&&!e1.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(G.value==="("&&!/[!=<:]/.test(g)||g==="<"&&!/<([!=]|\w+>)/.test(t()))c=`\\${F}`;m({type:"text",value:F,output:c});continue}if(Q.dot!==!0&&(G.type==="slash"||G.type==="bos")){m({type:"qmark",value:F,output:v});continue}m({type:"qmark",value:F,output:_});continue}if(F==="!"){if(Q.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){L1("negate",F);continue}}if(Q.nonegate!==!0&&j.index===0){R1();continue}}if(F==="+"){if(Q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("plus",F);continue}if(G&&G.value==="("||Q.regex===!1){m({type:"plus",value:F,output:M});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||j.parens>0){m({type:"plus",value:F});continue}m({type:"plus",value:M});continue}if(F==="@"){if(Q.noextglob!==!0&&f()==="("&&f(2)!=="?"){m({type:"at",extglob:!0,value:F,output:""});continue}m({type:"text",value:F});continue}if(F!=="*"){if(F==="$"||F==="^")F=`\\${F}`;let I=WG.exec(t());if(I)F+=I[0],j.index+=I[0].length;m({type:"text",value:F});continue}if(G&&(G.type==="globstar"||G.star===!0)){G.type="star",G.star=!0,G.value+=F,G.output=T,j.backtrack=!0,j.globstar=!0,J1(F);continue}let D=t();if(Q.noextglob!==!0&&/^\([^?]/.test(D)){L1("star",F);continue}if(G.type==="star"){if(Q.noglobstar===!0){J1(F);continue}let I=G.prev,g=I.prev,c=I.type==="slash"||I.type==="bos",n=g&&(g.type==="star"||g.type==="globstar");if(Q.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:F,output:""});continue}let i=j.braces>0&&(I.type==="comma"||I.type==="brace"),B1=x.length&&(I.type==="pipe"||I.type==="paren");if(!c&&I.type!=="paren"&&!i&&!B1){m({type:"star",value:F,output:""});continue}while(D.slice(0,3)==="/**"){let _1=Z[j.index+4];if(_1&&_1!=="/")break;D=D.slice(3),J1("/**",3)}if(I.type==="bos"&&u()){G.type="globstar",G.value+=F,G.output=E(Q),j.output=G.output,j.globstar=!0,J1(F);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!n&&u()){j.output=j.output.slice(0,-(I.output+G.output).length),I.output=`(?:${I.output}`,G.type="globstar",G.output=E(Q)+(Q.strictSlashes?")":"|$)"),G.value+=F,j.globstar=!0,j.output+=I.output+G.output,J1(F);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&D[0]==="/"){let _1=D[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(I.output+G.output).length),I.output=`(?:${I.output}`,G.type="globstar",G.output=`${E(Q)}${O}|${O}${_1})`,G.value+=F,j.output+=I.output+G.output,j.globstar=!0,J1(F+o()),m({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&D[0]==="/"){G.type="globstar",G.value+=F,G.output=`(?:^|${O}|${E(Q)}${O})`,j.output=G.output,j.globstar=!0,J1(F+o()),m({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-G.output.length),G.type="globstar",G.output=E(Q),G.value+=F,j.output+=G.output,j.globstar=!0,J1(F);continue}let k={type:"star",value:F,output:T};if(Q.bash===!0){if(k.output=".*?",G.type==="bos"||G.type==="slash")k.output=N+k.output;m(k);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&Q.regex===!0){k.output=F,m(k);continue}if(j.index===j.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot")j.output+=y,G.output+=y;else if(Q.dot===!0)j.output+=P,G.output+=P;else j.output+=N,G.output+=N;if(f()!=="*")j.output+=L,G.output+=L}m(k)}while(j.brackets>0){if(Q.strictBrackets===!0)throw SyntaxError(u8("closing","]"));j.output=e1.escapeLast(j.output,"["),a("brackets")}while(j.parens>0){if(Q.strictBrackets===!0)throw SyntaxError(u8("closing",")"));j.output=e1.escapeLast(j.output,"("),a("parens")}while(j.braces>0){if(Q.strictBrackets===!0)throw SyntaxError(u8("closing","}"));j.output=e1.escapeLast(j.output,"{"),a("braces")}if(Q.strictSlashes!==!0&&(G.type==="star"||G.type==="bracket"))m({type:"maybe_slash",value:"",output:`${O}?`});if(j.backtrack===!0){j.output="";for(let D of j.tokens)if(j.output+=D.output!=null?D.output:D.value,D.suffix)j.output+=D.suffix}return j};K9.fastpaths=(Z,q)=>{let Q={...q},J=typeof Q.maxLength==="number"?Math.min(q4,Q.maxLength):q4,Y=Z.length;if(Y>J)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${J}`);Z=_Q[Z]||Z;let X=e1.isWindows(q),{DOT_LITERAL:z,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:$,NO_DOTS:H,NO_DOTS_SLASH:M,STAR:O,START_ANCHOR:L}=u6.globChars(X),B=Q.dot?H:$,C=Q.dot?M:$,y=Q.capture?"":"?:",P={negated:!1,prefix:""},_=Q.bash===!0?".*?":O;if(Q.capture)_=`(${_})`;let v=(N)=>{if(N.noglobstar===!0)return _;return`(${y}(?:(?!${L}${N.dot?K:z}).)*?)`},h=(N)=>{switch(N){case"*":return`${B}${W}${_}`;case".*":return`${z}${W}${_}`;case"*.*":return`${B}${_}${z}${W}${_}`;case"*/*":return`${B}${_}${V}${W}${C}${_}`;case"**":return B+v(Q);case"**/*":return`(?:${B}${v(Q)}${V})?${C}${W}${_}`;case"**/*.*":return`(?:${B}${v(Q)}${V})?${C}${_}${z}${W}${_}`;case"**/.*":return`(?:${B}${v(Q)}${V})?${z}${W}${_}`;default:{let A=/^(.*?)\.(\w+)$/.exec(N);if(!A)return;let T=h(A[1]);if(!T)return;return T+z+A[2]}}},d=e1.removePrefix(Z,P),E=h(d);if(E&&Q.strictSlashes!==!0)E+=`${V}?`;return E};AQ.exports=K9});var yQ=U1((UI,SQ)=>{var HG=s1("path"),FG=IQ(),$9=PQ(),G9=Z4(),LG=g6(),wG=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),k1=(Z,q,Q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>k1(M,q,Q));return(M)=>{for(let O of $){let L=O(M);if(L)return L}return!1}}let J=wG(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!J)throw TypeError("Expected pattern to be a non-empty string");let Y=q||{},X=G9.isWindows(q),z=J?k1.compileRe(Z,q):k1.makeRe(Z,q,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...q,ignore:null,onMatch:null,onResult:null};W=k1(Y.ignore,$,Q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:L}=k1.test($,z,q,{glob:Z,posix:X}),B={glob:Z,state:V,regex:z,posix:X,input:$,output:L,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(B);if(M===!1)return B.isMatch=!1,H?B:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(B);return B.isMatch=!1,H?B:!1}if(typeof Y.onMatch==="function")Y.onMatch(B);return H?B:!0};if(Q)K.state=V;return K};k1.test=(Z,q,Q,{glob:J,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=Q||{},z=X.format||(Y?G9.toPosixSlashes:null),V=Z===J,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===J;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=k1.matchBase(Z,q,Q,Y);else V=q.exec(W);return{isMatch:Boolean(V),match:V,output:W}};k1.matchBase=(Z,q,Q,J=G9.isWindows(Q))=>{return(q instanceof RegExp?q:k1.makeRe(q,Q)).test(HG.basename(Z))};k1.isMatch=(Z,q,Q)=>k1(q,Q)(Z);k1.parse=(Z,q)=>{if(Array.isArray(Z))return Z.map((Q)=>k1.parse(Q,q));return $9(Z,{...q,fastpaths:!1})};k1.scan=(Z,q)=>FG(Z,q);k1.compileRe=(Z,q,Q=!1,J=!1)=>{if(Q===!0)return Z.output;let Y=q||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=k1.toRegex(V,q);if(J===!0)W.state=Z;return W};k1.makeRe=(Z,q={},Q=!1,J=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=$9.fastpaths(Z,q);if(!Y.output)Y=$9(Z,q);return k1.compileRe(Y,q,Q,J)};k1.toRegex=(Z,q)=>{try{let Q=q||{};return new RegExp(Z,Q.flags||(Q.nocase?"i":""))}catch(Q){if(q&&q.debug===!0)throw Q;return/$^/}};k1.constants=LG;SQ.exports=k1});import GZ,{resolve as U5,basename as z8,extname as J8,dirname as f5,relative as UZ,win32 as II,posix as _I,isAbsolute as DI,join as nG}from"path";import jZ from"process";import{performance as $2}from"perf_hooks";import{createHash as sG}from"crypto";import{promises as D8}from"fs";import{EventEmitter as aG}from"events";function rG(Z){var q=[],Q=[],J=[0,0,0,0,0],Y=0;for(var X=0,z=0,V=0;X<Z.length;X++){var W=Z.charCodeAt(X);if(W===44)N9(Q,J,Y),Y=0;else if(W===59)N9(Q,J,Y),Y=0,q.push(Q),Q=[],J[0]=0;else{var K=G2[W];if(K===void 0)throw Error("Invalid character ("+String.fromCharCode(W)+")");var $=K&32;if(K&=31,V+=K<<z,$)z+=5;else{var H=V&1;if(V>>>=1,H)V=V===0?-2147483648:-V;J[Y]+=V,Y++,V=z=0}}}return N9(Q,J,Y),q.push(Q),q}function N9(Z,q,Q){if(Q===4)Z.push([q[0],q[1],q[2],q[3]]);else if(Q===5)Z.push([q[0],q[1],q[2],q[3],q[4]]);else if(Q===1)Z.push([q[0]])}function oG(Z){var q=0,Q=0,J=0,Y=0,X="";for(var z=0;z<Z.length;z++){var V=Z[z];if(z>0)X+=";";if(V.length===0)continue;var W=0,K=[];for(var $=0,H=V;$<H.length;$++){var M=H[$],O=l6(M[0]-W);if(W=M[0],M.length>1)O+=l6(M[1]-q)+l6(M[2]-Q)+l6(M[3]-J),q=M[1],Q=M[2],J=M[3];if(M.length===5)O+=l6(M[4]-Y),Y=M[4];K.push(O)}X+=K.join(",")}return X}function l6(Z){var q="";Z=Z<0?-Z<<1|1:Z<<1;do{var Q=Z&31;if(Z>>>=5,Z>0)Q|=32;q+=u9[Q]}while(Z>0);return q}class R4{constructor(Z){this.bits=Z instanceof R4?Z.bits.slice():[]}add(Z){this.bits[Z>>5]|=1<<(Z&31)}has(Z){return!!(this.bits[Z>>5]&1<<(Z&31))}}class Q0{constructor(Z,q,Q){this.start=Z,this.end=q,this.original=Q,this.intro="",this.outro="",this.content=Q,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(Z){this.outro+=Z}appendRight(Z){this.intro=this.intro+Z}clone(){let Z=new Q0(this.start,this.end,this.original);return Z.intro=this.intro,Z.outro=this.outro,Z.content=this.content,Z.storeName=this.storeName,Z.edited=this.edited,Z}contains(Z){return this.start<Z&&Z<this.end}eachNext(Z){let q=this;while(q)Z(q),q=q.next}eachPrevious(Z){let q=this;while(q)Z(q),q=q.previous}edit(Z,q,Q){if(this.content=Z,!Q)this.intro="",this.outro="";return this.storeName=q,this.edited=!0,this}prependLeft(Z){this.outro=Z+this.outro}prependRight(Z){this.intro=Z+this.intro}split(Z){let q=Z-this.start,Q=this.original.slice(0,q),J=this.original.slice(q);this.original=Q;let Y=new Q0(Z,this.end,J);if(Y.outro=this.outro,this.outro="",this.end=Z,this.edited)Y.edit("",!1),this.content="";else this.content=Q;if(Y.next=this.next,Y.next)Y.next.previous=Y;return Y.previous=this,this.next=Y,Y}toString(){return this.intro+this.content+this.outro}trimEnd(Z){if(this.outro=this.outro.replace(Z,""),this.outro.length)return!0;let q=this.content.replace(Z,"");if(q.length){if(q!==this.content)this.split(this.start+q.length).edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(Z,""),this.intro.length)return!0}trimStart(Z){if(this.intro=this.intro.replace(Z,""),this.intro.length)return!0;let q=this.content.replace(Z,"");if(q.length){if(q!==this.content)this.split(this.end-q.length),this.edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(Z,""),this.outro.length)return!0}}class H0{constructor(Z){this.version=3,this.file=Z.file,this.sources=Z.sources,this.sourcesContent=Z.sourcesContent,this.names=Z.names,this.mappings=oG(Z.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d9(this.toString())}}function tG(Z){let q=Z.split(`
|
|
2
|
+
`),Q=q.filter((X)=>/^\t+/.test(X)),J=q.filter((X)=>/^ {2,}/.test(X));if(Q.length===0&&J.length===0)return null;if(Q.length>=J.length)return"\t";let Y=J.reduce((X,z)=>{let V=/^ +/.exec(z)[0].length;return Math.min(V,X)},1/0);return Array(Y+1).join(" ")}function U2(Z,q){let Q=Z.split(/[/\\]/),J=q.split(/[/\\]/);Q.pop();while(Q[0]===J[0])Q.shift(),J.shift();if(Q.length){let Y=Q.length;while(Y--)Q[Y]=".."}return Q.concat(J).join("/")}function j2(Z){return eG.call(Z)==="[object Object]"}function l9(Z){let q=Z.split(`
|
|
3
|
+
`),Q=[];for(let J=0,Y=0;J<q.length;J++)Q.push(Y),Y+=q[J].length+1;return function(Y){let X=0,z=Q.length;while(X<z){let K=X+z>>1;if(Y<Q[K])z=K;else X=K+1}let V=X-1,W=Y-Q[V];return{line:V,column:W}}}class MZ{constructor(Z){this.hires=Z,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(Z,q,Q,J){if(q.length){let Y=[this.generatedCodeColumn,Z,Q.line,Q.column];if(J>=0)Y.push(J);this.rawSegments.push(Y)}else if(this.pending)this.rawSegments.push(this.pending);this.advance(q),this.pending=null}addUneditedChunk(Z,q,Q,J,Y){let X=q.start,z=!0;while(X<q.end){if(this.hires||z||Y.has(X))this.rawSegments.push([this.generatedCodeColumn,Z,J.line,J.column]);if(Q[X]===`
|
|
4
|
+
`)J.line+=1,J.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,z=!0;else J.column+=1,this.generatedCodeColumn+=1,z=!1;X+=1}this.pending=null}advance(Z){if(!Z)return;let q=Z.split(`
|
|
5
|
+
`);if(q.length>1){for(let Q=0;Q<q.length-1;Q++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=q[q.length-1].length}}class P8{constructor(Z,q={}){let Q=new Q0(0,Z.length,Z);Object.defineProperties(this,{original:{writable:!0,value:Z},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:Q},lastChunk:{writable:!0,value:Q},lastSearchedChunk:{writable:!0,value:Q},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:q.filename},indentExclusionRanges:{writable:!0,value:q.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new R4},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:tG(Z)}}),this.byStart[0]=Q,this.byEnd[Z.length]=Q}addSourcemapLocation(Z){this.sourcemapLocations.add(Z)}append(Z){if(typeof Z!=="string")throw TypeError("outro content must be a string");return this.outro+=Z,this}appendLeft(Z,q){if(typeof q!=="string")throw TypeError("inserted content must be a string");this._split(Z);let Q=this.byEnd[Z];if(Q)Q.appendLeft(q);else this.intro+=q;return this}appendRight(Z,q){if(typeof q!=="string")throw TypeError("inserted content must be a string");this._split(Z);let Q=this.byStart[Z];if(Q)Q.appendRight(q);else this.outro+=q;return this}clone(){let Z=new P8(this.original,{filename:this.filename}),q=this.firstChunk,Q=Z.firstChunk=Z.lastSearchedChunk=q.clone();while(q){Z.byStart[Q.start]=Q,Z.byEnd[Q.end]=Q;let J=q.next,Y=J&&J.clone();if(Y)Q.next=Y,Y.previous=Q,Q=Y;q=J}if(Z.lastChunk=Q,this.indentExclusionRanges)Z.indentExclusionRanges=this.indentExclusionRanges.slice();return Z.sourcemapLocations=new R4(this.sourcemapLocations),Z.intro=this.intro,Z.outro=this.outro,Z}generateDecodedMap(Z){Z=Z||{};let q=0,Q=Object.keys(this.storedNames),J=new MZ(Z.hires),Y=l9(this.original);if(this.intro)J.advance(this.intro);return this.firstChunk.eachNext((X)=>{let z=Y(X.start);if(X.intro.length)J.advance(X.intro);if(X.edited)J.addEdit(q,X.content,z,X.storeName?Q.indexOf(X.original):-1);else J.addUneditedChunk(q,X,this.original,z,this.sourcemapLocations);if(X.outro.length)J.advance(X.outro)}),{file:Z.file?Z.file.split(/[/\\]/).pop():null,sources:[Z.source?U2(Z.file||"",Z.source):null],sourcesContent:Z.includeContent?[this.original]:[null],names:Q,mappings:J.raw}}generateMap(Z){return new H0(this.generateDecodedMap(Z))}getIndentString(){return this.indentStr===null?"\t":this.indentStr}indent(Z,q){let Q=/^[^\r\n]/gm;if(j2(Z))q=Z,Z=void 0;if(Z=Z!==void 0?Z:this.indentStr||"\t",Z==="")return this;q=q||{};let J={};if(q.exclude)(typeof q.exclude[0]==="number"?[q.exclude]:q.exclude).forEach((K)=>{for(let $=K[0];$<K[1];$+=1)J[$]=!0});let Y=q.indentStart!==!1,X=(W)=>{if(Y)return`${Z}${W}`;return Y=!0,W};this.intro=this.intro.replace(Q,X);let z=0,V=this.firstChunk;while(V){let W=V.end;if(V.edited){if(!J[z]){if(V.content=V.content.replace(Q,X),V.content.length)Y=V.content[V.content.length-1]===`
|
|
6
|
+
`}}else{z=V.start;while(z<W){if(!J[z]){let K=this.original[z];if(K===`
|
|
7
|
+
`)Y=!0;else if(K!=="\r"&&Y)if(Y=!1,z===V.start)V.prependRight(Z);else this._splitChunk(V,z),V=V.next,V.prependRight(Z)}z+=1}}z=V.end,V=V.next}return this.outro=this.outro.replace(Q,X),this}insert(){throw Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(Z,q){if(!n8.insertLeft)console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),n8.insertLeft=!0;return this.appendLeft(Z,q)}insertRight(Z,q){if(!n8.insertRight)console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),n8.insertRight=!0;return this.prependRight(Z,q)}move(Z,q,Q){if(Q>=Z&&Q<=q)throw Error("Cannot move a selection inside itself");this._split(Z),this._split(q),this._split(Q);let J=this.byStart[Z],Y=this.byEnd[q],X=J.previous,z=Y.next,V=this.byStart[Q];if(!V&&Y===this.lastChunk)return this;let W=V?V.previous:this.lastChunk;if(X)X.next=z;if(z)z.previous=X;if(W)W.next=J;if(V)V.previous=Y;if(!J.previous)this.firstChunk=Y.next;if(!Y.next)this.lastChunk=J.previous,this.lastChunk.next=null;if(J.previous=W,Y.next=V||null,!W)this.firstChunk=J;if(!V)this.lastChunk=Y;return this}overwrite(Z,q,Q,J){if(typeof Q!=="string")throw TypeError("replacement content must be a string");while(Z<0)Z+=this.original.length;while(q<0)q+=this.original.length;if(q>this.original.length)throw Error("end is out of bounds");if(Z===q)throw Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");if(this._split(Z),this._split(q),J===!0){if(!n8.storeName)console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),n8.storeName=!0;J={storeName:!0}}let Y=J!==void 0?J.storeName:!1,X=J!==void 0?J.contentOnly:!1;if(Y){let W=this.original.slice(Z,q);Object.defineProperty(this.storedNames,W,{writable:!0,value:!0,enumerable:!0})}let z=this.byStart[Z],V=this.byEnd[q];if(z){let W=z;while(W!==V){if(W.next!==this.byStart[W.end])throw Error("Cannot overwrite across a split point");W=W.next,W.edit("",!1)}z.edit(Q,Y,X)}else{let W=new Q0(Z,q,"").edit(Q,Y);V.next=W,W.previous=V}return this}prepend(Z){if(typeof Z!=="string")throw TypeError("outro content must be a string");return this.intro=Z+this.intro,this}prependLeft(Z,q){if(typeof q!=="string")throw TypeError("inserted content must be a string");this._split(Z);let Q=this.byEnd[Z];if(Q)Q.prependLeft(q);else this.intro=q+this.intro;return this}prependRight(Z,q){if(typeof q!=="string")throw TypeError("inserted content must be a string");this._split(Z);let Q=this.byStart[Z];if(Q)Q.prependRight(q);else this.outro=q+this.outro;return this}remove(Z,q){while(Z<0)Z+=this.original.length;while(q<0)q+=this.original.length;if(Z===q)return this;if(Z<0||q>this.original.length)throw Error("Character is out of bounds");if(Z>q)throw Error("end must be greater than start");this._split(Z),this._split(q);let Q=this.byStart[Z];while(Q)Q.intro="",Q.outro="",Q.edit(""),Q=q>Q.end?this.byStart[Q.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let Z=this.lastChunk;do{if(Z.outro.length)return Z.outro[Z.outro.length-1];if(Z.content.length)return Z.content[Z.content.length-1];if(Z.intro.length)return Z.intro[Z.intro.length-1]}while(Z=Z.previous);if(this.intro.length)return this.intro[this.intro.length-1];return""}lastLine(){let Z=this.outro.lastIndexOf(c6);if(Z!==-1)return this.outro.substr(Z+1);let q=this.outro,Q=this.lastChunk;do{if(Q.outro.length>0){if(Z=Q.outro.lastIndexOf(c6),Z!==-1)return Q.outro.substr(Z+1)+q;q=Q.outro+q}if(Q.content.length>0){if(Z=Q.content.lastIndexOf(c6),Z!==-1)return Q.content.substr(Z+1)+q;q=Q.content+q}if(Q.intro.length>0){if(Z=Q.intro.lastIndexOf(c6),Z!==-1)return Q.intro.substr(Z+1)+q;q=Q.intro+q}}while(Q=Q.previous);if(Z=this.intro.lastIndexOf(c6),Z!==-1)return this.intro.substr(Z+1)+q;return this.intro+q}slice(Z=0,q=this.original.length){while(Z<0)Z+=this.original.length;while(q<0)q+=this.original.length;let Q="",J=this.firstChunk;while(J&&(J.start>Z||J.end<=Z)){if(J.start<q&&J.end>=q)return Q;J=J.next}if(J&&J.edited&&J.start!==Z)throw Error(`Cannot use replaced character ${Z} as slice start anchor.`);let Y=J;while(J){if(J.intro&&(Y!==J||J.start===Z))Q+=J.intro;let X=J.start<q&&J.end>=q;if(X&&J.edited&&J.end!==q)throw Error(`Cannot use replaced character ${q} as slice end anchor.`);let z=Y===J?Z-J.start:0,V=X?J.content.length+q-J.end:J.content.length;if(Q+=J.content.slice(z,V),J.outro&&(!X||J.end===q))Q+=J.outro;if(X)break;J=J.next}return Q}snip(Z,q){let Q=this.clone();return Q.remove(0,Z),Q.remove(q,Q.original.length),Q}_split(Z){if(this.byStart[Z]||this.byEnd[Z])return;let q=this.lastSearchedChunk,Q=Z>q.end;while(q){if(q.contains(Z))return this._splitChunk(q,Z);q=Q?this.byStart[q.end]:this.byEnd[q.start]}}_splitChunk(Z,q){if(Z.edited&&Z.content.length){let J=l9(this.original)(q);throw Error(`Cannot split a chunk that has already been edited (${J.line}:${J.column} – "${Z.original}")`)}let Q=Z.split(q);if(this.byEnd[q]=Z,this.byStart[q]=Q,this.byEnd[Q.end]=Q,Z===this.lastChunk)this.lastChunk=Q;return this.lastSearchedChunk=Z,!0}toString(){let Z=this.intro,q=this.firstChunk;while(q)Z+=q.toString(),q=q.next;return Z+this.outro}isEmpty(){let Z=this.firstChunk;do if(Z.intro.length&&Z.intro.trim()||Z.content.length&&Z.content.trim()||Z.outro.length&&Z.outro.trim())return!1;while(Z=Z.next);return!0}length(){let Z=this.firstChunk,q=0;do q+=Z.intro.length+Z.content.length+Z.outro.length;while(Z=Z.next);return q}trimLines(){return this.trim("[\\r\\n]")}trim(Z){return this.trimStart(Z).trimEnd(Z)}trimEndAborted(Z){let q=new RegExp((Z||"\\s")+"+$");if(this.outro=this.outro.replace(q,""),this.outro.length)return!0;let Q=this.lastChunk;do{let J=Q.end,Y=Q.trimEnd(q);if(Q.end!==J){if(this.lastChunk===Q)this.lastChunk=Q.next;this.byEnd[Q.end]=Q,this.byStart[Q.next.start]=Q.next,this.byEnd[Q.next.end]=Q.next}if(Y)return!0;Q=Q.previous}while(Q);return!1}trimEnd(Z){return this.trimEndAborted(Z),this}trimStartAborted(Z){let q=new RegExp("^"+(Z||"\\s")+"+");if(this.intro=this.intro.replace(q,""),this.intro.length)return!0;let Q=this.firstChunk;do{let J=Q.end,Y=Q.trimStart(q);if(Q.end!==J){if(Q===this.lastChunk)this.lastChunk=Q.next;this.byEnd[Q.end]=Q,this.byStart[Q.next.start]=Q.next,this.byEnd[Q.next.end]=Q.next}if(Y)return!0;Q=Q.next}while(Q);return!1}trimStart(Z){return this.trimStartAborted(Z),this}hasChanged(){return this.original!==this.toString()}replace(Z,q){function Q(Y,X){if(typeof q==="string")return q.replace(/\$(\$|&|\d+)/g,(z,V)=>{if(V==="$")return"$";if(V==="&")return Y[0];if(+V<Y.length)return Y[+V];return`$${V}`});else return q(...Y,Y.index,X,Y.groups)}function J(Y,X){let z,V=[];while(z=Y.exec(X))V.push(z);return V}if(typeof Z!=="string"&&Z.global)J(Z,this.original).forEach((X)=>{if(X.index!=null)this.overwrite(X.index,X.index+X[0].length,Q(X,this.original))});else{let Y=this.original.match(Z);if(Y&&Y.index!=null)this.overwrite(Y.index,Y.index+Y[0].length,Q(Y,this.original))}return this}}class HZ{constructor(Z={}){this.intro=Z.intro||"",this.separator=Z.separator!==void 0?Z.separator:`
|
|
8
|
+
`,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(Z){if(Z instanceof P8)return this.addSource({content:Z,filename:Z.filename,separator:this.separator});if(!j2(Z)||!Z.content)throw Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((q)=>{if(!XJ.call(Z,q))Z[q]=Z.content[q]}),Z.separator===void 0)Z.separator=this.separator;if(Z.filename)if(!XJ.call(this.uniqueSourceIndexByFilename,Z.filename))this.uniqueSourceIndexByFilename[Z.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:Z.filename,content:Z.content.original});else{let q=this.uniqueSources[this.uniqueSourceIndexByFilename[Z.filename]];if(Z.content.original!==q.content)throw Error(`Illegal source: same filename (${Z.filename}), different contents`)}return this.sources.push(Z),this}append(Z,q){return this.addSource({content:new P8(Z),separator:q&&q.separator||""}),this}clone(){let Z=new HZ({intro:this.intro,separator:this.separator});return this.sources.forEach((q)=>{Z.addSource({filename:q.filename,content:q.content.clone(),separator:q.separator})}),Z}generateDecodedMap(Z={}){let q=[];this.sources.forEach((J)=>{Object.keys(J.content.storedNames).forEach((Y)=>{if(!~q.indexOf(Y))q.push(Y)})});let Q=new MZ(Z.hires);if(this.intro)Q.advance(this.intro);return this.sources.forEach((J,Y)=>{if(Y>0)Q.advance(this.separator);let X=J.filename?this.uniqueSourceIndexByFilename[J.filename]:-1,z=J.content,V=l9(z.original);if(z.intro)Q.advance(z.intro);if(z.firstChunk.eachNext((W)=>{let K=V(W.start);if(W.intro.length)Q.advance(W.intro);if(J.filename)if(W.edited)Q.addEdit(X,W.content,K,W.storeName?q.indexOf(W.original):-1);else Q.addUneditedChunk(X,W,z.original,K,z.sourcemapLocations);else Q.advance(W.content);if(W.outro.length)Q.advance(W.outro)}),z.outro)Q.advance(z.outro)}),{file:Z.file?Z.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((J)=>{return Z.file?U2(Z.file,J.filename):J.filename}),sourcesContent:this.uniqueSources.map((J)=>{return Z.includeContent?J.content:null}),names:q,mappings:Q.raw}}generateMap(Z){return new H0(this.generateDecodedMap(Z))}getIndentString(){let Z={};return this.sources.forEach((q)=>{let Q=q.content.indentStr;if(Q===null)return;if(!Z[Q])Z[Q]=0;Z[Q]+=1}),Object.keys(Z).sort((q,Q)=>{return Z[q]-Z[Q]})[0]||"\t"}indent(Z){if(!arguments.length)Z=this.getIndentString();if(Z==="")return this;let q=!this.intro||this.intro.slice(-1)===`
|
|
9
|
+
`;if(this.sources.forEach((Q,J)=>{let Y=Q.separator!==void 0?Q.separator:this.separator,X=q||J>0&&/\r?\n$/.test(Y);Q.content.indent(Z,{exclude:Q.indentExclusionRanges,indentStart:X}),q=Q.content.lastChar()===`
|
|
10
|
+
`}),this.intro)this.intro=Z+this.intro.replace(/^[^\n]/gm,(Q,J)=>{return J>0?Z+Q:Q});return this}prepend(Z){return this.intro=Z+this.intro,this}toString(){let Z=this.sources.map((q,Q)=>{let J=q.separator!==void 0?q.separator:this.separator;return(Q>0?J:"")+q.content.toString()}).join("");return this.intro+Z}isEmpty(){if(this.intro.length&&this.intro.trim())return!1;if(this.sources.some((Z)=>!Z.content.isEmpty()))return!1;return!0}length(){return this.sources.reduce((Z,q)=>Z+q.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(Z){return this.trimStart(Z).trimEnd(Z)}trimStart(Z){let q=new RegExp("^"+(Z||"\\s")+"+");if(this.intro=this.intro.replace(q,""),!this.intro){let Q,J=0;do if(Q=this.sources[J++],!Q)break;while(!Q.content.trimStartAborted(Z))}return this}trimEnd(Z){let q=new RegExp((Z||"\\s")+"+$"),Q,J=this.sources.length-1;do if(Q=this.sources[J--],!Q){this.intro=this.intro.replace(q,"");break}while(!Q.content.trimEndAborted(Z));return this}}function FZ(Z,q){let Q=Z.split(zJ).filter(Boolean),J=q.split(zJ).filter(Boolean);if(Q[0]===".")Q.shift();if(J[0]===".")J.shift();while(Q[0]&&J[0]&&Q[0]===J[0])Q.shift(),J.shift();while(J[0]===".."&&Q.length>0)J.shift(),Q.pop();while(Q.pop())J.unshift("..");return J.join("/")}function v5(Z,q,Q){let J=Z.get(q);if(J)return J;let Y=Q();return Z.set(q,Y),Y}class Y0{constructor(){this.entityPaths=Object.create(null,{[Q6]:{value:new Set}})}trackEntityAtPathAndGetIfTracked(Z,q){let Q=this.getEntities(Z);if(Q.has(q))return!0;return Q.add(q),!1}withTrackedEntityAtPath(Z,q,Q,J){let Y=this.getEntities(Z);if(Y.has(q))return J;Y.add(q);let X=Q();return Y.delete(q),X}getEntities(Z){let q=this.entityPaths;for(let Q of Z)q=q[Q]=q[Q]||Object.create(null,{[Q6]:{value:new Set}});return q[Q6]}}class I4{constructor(){this.entityPaths=Object.create(null,{[Q6]:{value:new Map}})}trackEntityAtPathAndGetIfTracked(Z,q,Q){let J=this.entityPaths;for(let X of Z)J=J[X]=J[X]||Object.create(null,{[Q6]:{value:new Map}});let Y=v5(J[Q6],q,()=>new Set);if(Y.has(Q))return!0;return Y.add(Q),!1}}class B5{constructor(){this.included=!1}deoptimizePath(Z){}deoptimizeThisOnInteractionAtPath({thisArg:Z},q,Q){Z.deoptimizePath(D1)}getLiteralValueAtPath(Z,q,Q){return x1}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){return Y1}hasEffectsOnInteractionAtPath(Z,q,Q){return!0}include(Z,q,Q){this.included=!0}includeCallArguments(Z,q){for(let Q of q)Q.include(Z,!1)}shouldBeIncluded(Z){return!0}}function QU(Z,q){if(q===void 0)q={};var Q=q.offsetLine||0,J=q.offsetColumn||0,Y=Z.split(`
|
|
11
|
+
`),X=0,z=Y.map(function(H,M){var O=X+H.length+1,L={start:X,end:O,line:M};return X=O,L}),V=0;function W(H,M){return H.start<=M&&M<H.end}function K(H,M){return{line:Q+H.line,column:J+M-H.start,character:M}}function $(H,M){if(typeof H==="string")H=Z.indexOf(H,M||0);var O=z[V],L=H>=O.end?1:-1;while(O){if(W(O,H))return K(O,H);V+=L,O=z[V]}}return $}function M2(Z,q,Q){if(typeof Q==="number")throw Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return QU(Z,Q)(q,Q&&Q.startIndex)}function JU(Z){let q="";while(Z--)q+=" ";return q}function R9(Z){return Z.replace(/^\t+/,(q)=>q.split("\t").join(" "))}function YU(Z,q,Q){let J=Z.split(`
|
|
12
|
+
`),Y=Math.max(0,q-3),X=Math.min(q+2,J.length);J=J.slice(Y,X);while(!/\S/.test(J[J.length-1]))J.pop(),X-=1;let z=String(X).length;return J.map((V,W)=>{let K=Y+W+1===q,$=String(W+Y+1);while($.length<z)$=` ${$}`;if(K){let H=JU(z+2+R9(V.slice(0,Q)).length)+"^";return`${$}: ${R9(V)}
|
|
13
13
|
${H}`}return`${$}: ${R9(V)}`}).join(`
|
|
14
|
-
`)}function V8(Z,
|
|
15
|
-
Either change the import in ${V1(Q)} to point directly to the exporting module or do not use "preserveModules" to ensure these modules end up in the same chunk.`,reexporter:q}}function MU(Z){return{code:W1.ASSET_NOT_FOUND,message:`Plugin error - Unable to set the source for unknown asset "${Z}".`}}function HU(Z){return{code:W1.ASSET_SOURCE_ALREADY_SET,message:`Unable to set the source for asset "${Z}", source already set.`}}function FU(Z){return{code:W1.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${Z}" - no asset source set.`}}function LU(Z){return{code:W1.BAD_LOADER,message:`Error loading ${V1(Z)}: plugin load hook should return a string, a { code, map } object, or nothing/null`}}function wU(Z){return{code:W1.DEPRECATED_FEATURE,...typeof Z==="string"?{message:Z}:Z}}function OU(Z){return{code:W1.FILE_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown file "${Z}".`}}function NU(Z){return{code:W1.FILE_NAME_CONFLICT,message:`The emitted file "${Z}" overwrites a previously emitted file of the same name.`}}function zQ(Z){return{code:W1.FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY,message:`The output file name "${Z}" is not contained in the output directory. Make sure all file names are relative paths without ".." segments.`}}function RU(Z,J){return{code:W1.INPUT_HOOK_IN_OUTPUT_PLUGIN,message:`The "${J}" hook used by the output plugin ${Z} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function CU(Z,J,q){return{code:W1.INVALID_CHUNK,message:`Cannot assign ${V1(Z)} to the "${J}" chunk as it is already in the "${q}" chunk.`}}function IU(Z){return{code:W1.INVALID_EXPORT_OPTION,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${Z}"`,url:"https://rollupjs.org/guide/en/#outputexports"}}function VQ(Z,J,q){return{code:"INVALID_EXPORT_OPTION",message:`"${Z}" was specified for "output.exports", but entry module "${V1(q)}" has the following exports: ${J.join(", ")}`}}function _U(Z,J){return{code:W1.INVALID_EXTERNAL_ID,message:`'${Z}' is imported as an external by ${V1(J)}, but is already an existing non-external module id.`}}function m1(Z,J,q,Q){return{code:W1.INVALID_OPTION,message:`Invalid value ${Q!==void 0?`${JSON.stringify(Q)} `:""}for option "${Z}" - ${q}.`,url:`https://rollupjs.org/guide/en/#${J}`}}function DU(Z,J){return{code:W1.INVALID_PLUGIN_HOOK,hook:Z,message:`Error running plugin hook ${Z} for plugin ${J}, expected a string, a function hook or an object with a "handler" string or function.`,plugin:J}}function TU(Z,J){return{code:W1.INVALID_PLUGIN_HOOK,hook:Z,message:`Error running plugin hook ${Z} for plugin ${J}, expected a function hook or an object with a "handler" function.`,plugin:J}}function AU(){return{code:W1.INVALID_ROLLUP_PHASE,message:"Cannot call addWatchFile after the build has finished."}}function PU(){return{code:W1.INVALID_ROLLUP_PHASE,message:"Cannot emit chunks after module loading has finished."}}function WQ(Z,J,q){return{code:W1.MISSING_EXPORT,message:`'${Z}' is not exported by ${V1(q)}, imported by ${V1(J)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"}}function SU(Z,J){return{code:W1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z)}" that should be implicitly loaded before "${V1(J)}" cannot be external.`}}function yU(Z,J){return{code:W1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z)}" that should be implicitly loaded before "${V1(J)}" could not be resolved.`}}function EU(Z){let J=Array.from(Z.implicitlyLoadedBefore,(q)=>V1(q.id)).sort();return{code:W1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z.id)}" that should be implicitly loaded before ${V8(J)} is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function bU(Z,J){return{code:W1.MIXED_EXPORTS,id:Z,message:`Entry module "${V1(Z)}" is using named and default exports together. Consumers of your bundle will have to use \`${J||"chunk"}["default"]\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning`,url:"https://rollupjs.org/guide/en/#outputexports"}}function xU(Z,J,q){return{code:W1.NAMESPACE_CONFLICT,message:`Conflicting namespaces: "${V1(J)}" re-exports "${Z}" from one of the modules ${V8(q.map((Q)=>V1(Q)))} (will be ignored)`,name:Z,reexporter:J,sources:q}}function kU(Z,J,q,Q){return{code:W1.AMBIGUOUS_EXTERNAL_NAMESPACES,message:`Ambiguous external namespace resolution: "${V1(J)}" re-exports "${Z}" from one of the external modules ${V8(Q.map((Y)=>V1(Y)))}, guessing "${V1(q)}".`,name:Z,reexporter:J,sources:Q}}function fU(Z){return{code:W1.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE,message:`The plugin "${Z}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}function vU(Z){let J=V1(Z);return{code:W1.PREFER_NAMED_EXPORTS,id:Z,message:`Entry module "${J}" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "${J}" to use named exports only.`,url:"https://rollupjs.org/guide/en/#outputexports"}}function hU(Z,J){return{code:W1.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT,id:Z,message:`Module "${V1(Z)}" that is marked with 'syntheticNamedExports: ${JSON.stringify(J)}' needs ${typeof J==="string"&&J!=="default"?`an explicit export named "${J}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}}function KQ(Z,J,q){let Q=q?"reexport":"import";return{code:W1.UNEXPECTED_NAMED_IMPORT,id:Z,message:`The named export "${J}" was ${Q}ed from the external module ${V1(Z)} even though its interop type is "defaultOnly". Either remove or change this ${Q} or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function gU(Z){return{code:W1.UNEXPECTED_NAMED_IMPORT,id:Z,message:`There was a namespace "*" reexport from the external module ${V1(Z)} even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function mU(Z){return{code:W1.UNRESOLVED_ENTRY,message:`Entry module cannot be external (${V1(Z)}).`}}function uU(Z){return{code:W1.UNRESOLVED_ENTRY,message:`Could not resolve entry module (${V1(Z)}).`}}function dU(Z,J){return{code:W1.UNRESOLVED_IMPORT,message:`Could not resolve '${Z}' from ${V1(J)}`}}function lU(Z,J){return{code:W1.UNRESOLVED_IMPORT,importer:V1(J),message:`'${Z}' is imported by ${V1(J)}, but could not be resolved – treating it as an external dependency`,source:Z,url:"https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency"}}function cU(Z,J){return{code:W1.EXTERNAL_SYNTHETIC_EXPORTS,importer:V1(J),message:`External '${Z}' can not have 'syntheticNamedExports' enabled.`,source:Z}}function n5(Z){return{code:W1.VALIDATION_ERROR,message:Z}}function $Q(){return{code:W1.ALREADY_CLOSED,message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}}function j5(Z,J,q){G6(Z,J,q.onwarn,q.strictDeprecations)}function G6(Z,J,q,Q){if(J||Q){let Y=wU(Z);if(Q)return e(Y);q(Y)}}function nU(Z){if(H2(Z))return!1;return!M2.test(Z)}function NZ(Z){if(Z=Z.replace(/-(\w)/g,(J,q)=>q.toUpperCase()).replace(M2,"_"),H2(Z))Z=`_${Z}`;return Z||"_"}class A1{constructor(Z,J,q,Q,Y){this.options=Z,this.id=J,this.renormalizeRenderPath=Y,this.declarations=new Map,this.defaultVariableName="",this.dynamicImporters=[],this.execIndex=1/0,this.exportedVariables=new Map,this.importers=[],this.mostCommonSuggestion=0,this.nameSuggestions=new Map,this.namespaceVariableName="",this.reexported=!1,this.renderPath=void 0,this.used=!1,this.variableName="",this.suggestedVariableName=NZ(J.split(/[\\/]/).pop());let{importers:X,dynamicImporters:z}=this,V=this.info={ast:null,code:null,dynamicallyImportedIdResolutions:a8,dynamicallyImportedIds:a8,get dynamicImporters(){return z.sort()},hasDefaultExport:null,get hasModuleSideEffects(){return j5("Accessing ModuleInfo.hasModuleSideEffects from plugins is deprecated. Please use ModuleInfo.moduleSideEffects instead.",!1,Z),V.moduleSideEffects},id:J,implicitlyLoadedAfterOneOf:a8,implicitlyLoadedBefore:a8,importedIdResolutions:a8,importedIds:a8,get importers(){return X.sort()},isEntry:!1,isExternal:!0,isIncluded:null,meta:Q,moduleSideEffects:q,syntheticNamedExports:!1};Object.defineProperty(this.info,"hasModuleSideEffects",{enumerable:!1})}getVariableForExportName(Z){let J=this.declarations.get(Z);if(J)return[J];let q=new X0(this,Z);return this.declarations.set(Z,q),this.exportedVariables.set(q,Z),[q]}setRenderPath(Z,J){if(this.renderPath=typeof Z.paths==="function"?Z.paths(this.id):Z.paths[this.id],!this.renderPath)this.renderPath=this.renormalizeRenderPath?z0(UZ(J,this.id)):this.id}suggestName(Z){var J;let q=((J=this.nameSuggestions.get(Z))!==null&&J!==void 0?J:0)+1;if(this.nameSuggestions.set(Z,q),q>this.mostCommonSuggestion)this.mostCommonSuggestion=q,this.suggestedVariableName=Z}warnUnusedImports(){let Z=Array.from(this.declarations).filter(([Q,Y])=>Q!=="*"&&!Y.included&&!this.reexported&&!Y.referenced).map(([Q])=>Q);if(Z.length===0)return;let J=new Set;for(let Q of Z)for(let Y of this.declarations.get(Q).module.importers)J.add(Y);let q=[...J];this.options.onwarn({code:"UNUSED_EXTERNAL_IMPORT",message:`${V8(Z,["is","are"])} imported from external module "${this.id}" but never used in ${V8(q.map((Q)=>V1(Q)))}.`,names:Z,source:this.id,sources:q})}}function aU(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}function a9(){return{brokenFlow:n4,includedCallArguments:new Set,includedLabels:new Set}}function a4(){return{accessed:new Y0,assigned:new Y0,brokenFlow:n4,called:new I4,ignore:{breaks:!1,continues:!1,labels:new Set,returnYield:!1},includedLabels:new Set,instantiated:new I4,replacedVariableInits:new Map}}function s4(Z,J=null){return Object.create(J,Z)}function Pj(Z){switch(typeof Z){case"boolean":return s9;case"number":return r9;case"string":return V0}return Object.create(null)}function L0(Z,J,q,Q){var Y,X;if(typeof J!=="string"||!Z[J])return!0;return((X=(Y=Z[J]).hasEffectsWhenCalled)===null||X===void 0?void 0:X.call(Y,q,Q))||!1}function w0(Z,J){if(typeof J!=="string"||!Z[J])return Y1;return Z[J].returns}function PZ(Z,J,q){q(Z,J)}function E8(Z,J,q){}function P2(Z,J,q=Z.type){let{annotations:Q}=J,Y=Q[J.annotationIndex];while(Y&&Z.start>=Y.end)lj(Z,Y,J.code),Y=Q[++J.annotationIndex];if(Y&&Y.end<=Z.end){a[q](Z,J,P2);while((Y=Q[J.annotationIndex])&&Y.end<=Z.end)++J.annotationIndex,P4(Z,Y,!1)}}function lj(Z,J,q){let Q=[],Y,X=q.slice(J.end,Z.start);if(z4(X,dj)){let z=Z.start;while(!0){switch(Q.push(Z),Z.type){case N5:case yj:Z=Z.expression;continue;case gj:if(z4(q.slice(z,Z.start),A9)){Z=Z.expressions[0];continue}Y=!0;break;case Ej:if(z4(q.slice(z,Z.start),A9)){Z=Z.test;continue}Y=!0;break;case kj:case Sj:if(z4(q.slice(z,Z.start),A9)){Z=Z.left;continue}Y=!0;break;case _2:case fj:break;default:Y=!0}break}}else Y=!0;if(Y)P4(Z,J,!1);else for(let z of Q)P4(z,J,!0)}function z4(Z,J){let q;while((q=J.exec(Z))!==null){if(q[0]==="/"){let Q=Z.charCodeAt(J.lastIndex);if(Q===42){J.lastIndex=Z.indexOf("*/",J.lastIndex+1)+2;continue}else if(Q===47){J.lastIndex=Z.indexOf(`
|
|
16
|
-
`,
|
|
17
|
-
`,
|
|
18
|
-
`,
|
|
19
|
-
`,Q)}}function O0(Z,J,q,Q,Y){let X,z,V,W,K=Z[0],$=!K.included||K.needsBoundaries;if($)W=q+S4(J.original.slice(q,K.start))[1];for(let H=1;H<=Z.length;H++)if(X=K,z=W,V=$,K=Z[H],$=K===void 0?!1:!K.included||K.needsBoundaries,V||$)if(W=X.end+S4(J.original.slice(X.end,K===void 0?Q:K.start))[1],X.included)V?X.render(J,Y,{end:W,start:z}):X.render(J,Y);else kZ(X,J,z,W);else X.render(J,Y)}function f2(Z,J,q,Q){let Y=[],X,z,V,W,K,$=q-1;for(let H=0;H<Z.length;H++){if(z=Z[H],X!==void 0)$=X.end+o1(J.original.slice(X.end,z.start),",");V=W=$+1+S4(J.original.slice($+1,z.start))[1];while(K=J.original.charCodeAt(V),K===32||K===9||K===10||K===13)V++;if(X!==void 0)Y.push({contentEnd:W,end:V,node:X,separator:$,start:q});X=z,q=V}return Y.push({contentEnd:Q,end:Q,node:X,separator:null,start:q}),Y}function t4(Z,J,q){while(!0){let[Q,Y]=S4(Z.original.slice(J,q));if(Q===-1)break;Z.remove(J+Q,J+=Y)}}function b8(Z,{exportNamesByVariable:J,snippets:{_:q,getObject:Q,getPropertyAccess:Y}},X=""){if(Z.length===1&&J.get(Z[0]).length===1){let z=Z[0];return`exports('${J.get(z)}',${q}${z.getName(Y)}${X})`}else{let z=[];for(let V of Z)for(let W of J.get(V))z.push([W,V.getName(Y)+X]);return`exports(${Q(z,{lineBreakIndent:null})})`}}function hZ(Z,J,q,Q,{exportNamesByVariable:Y,snippets:{_:X}}){Q.prependRight(J,`exports('${Y.get(Z)}',${X}`),Q.appendLeft(q,")")}function tj(Z,J,q,Q,Y,X){let{_:z,getDirectReturnIifeLeft:V}=X.snippets;Y.prependRight(J,V(["v"],`${b8(Z,X)},${z}v`,{needsArrowReturnParens:!0,needsWrappedFunction:Q})),Y.appendLeft(q,")")}function v2(Z,J,q,Q,Y,X){let{_:z,getPropertyAccess:V}=X.snippets;if(Y.appendLeft(q,`,${z}${b8([Z],X)},${z}${Z.getName(V)}`),Q)Y.prependRight(J,"("),Y.appendLeft(q,")")}function ej(Z,J,q,Q,Y,X,z){let{_:V}=X.snippets;if(Y.prependRight(J,`${b8([Z],X,z)},${V}`),Q)Y.prependRight(J,"("),Y.appendLeft(q,")")}function p2(Z,J,q){if(q.arguments.length>0)if(q.arguments[q.arguments.length-1].included)for(let Q of q.arguments)Q.render(Z,J);else{let Q=q.arguments.length-2;while(Q>=0&&!q.arguments[Q].included)Q--;if(Q>=0){for(let Y=0;Y<=Q;Y++)q.arguments[Y].render(Z,J);Z.remove(o1(Z.original,",",q.arguments[Q].end),q.end-1)}else Z.remove(o1(Z.original,"(",q.callee.end)+1,q.end-1)}}function JB(Z){return Z.computed?qB(Z.property):Z.property.name}function qB(Z){if(Z instanceof V6)return String(Z.value);return null}function i2(Z){let{propertyKey:J,object:q}=Z;if(typeof J==="string"){if(q instanceof l1)return[{key:q.name,pos:q.start},{key:J,pos:Z.property.start}];if(q instanceof y8){let Q=i2(q);return Q&&[...Q,{key:J,pos:Z.property.start}]}}return null}function QB(Z){let J=Z[0].key;for(let q=1;q<Z.length;q++)J+="."+Z[q].key;return J}function n2(Z,J,q){if(J.length===0)return Z;if(!Z.isNamespace||Z instanceof X0)return null;let Q=J[0].key,Y=Z.context.traceExport(Q);if(!Y){let X=Z.context.fileName;return q.warn({code:"MISSING_EXPORT",exporter:V1(X),importer:V1(q.fileName),message:`'${Q}' is not exported by '${V1(X)}'`,missing:Q,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"},J[0].pos),"undefined"}return n2(Y,J.slice(1),q)}function YB(Z,J){return W8(Z,o1(Z,"default",J)+7)}function XB(Z,J,q,Q){let Y=o1(Z,J,Q)+J.length;Z=Z.slice(Y,o1(Z,q,Y));let X=o1(Z,"*");if(X===-1)return Y;return Y+X+1}function G0(Z){return Z([["value","'Module'"]],{lineBreakIndent:null})}function xQ(Z,J,q){return J==="external"?I0[String(q(Z instanceof A1?Z.id:null))]:J==="default"?$0:null}function gY(Z,J){return Z.renderBaseName!==null&&J.has(Z)&&Z.isReassigned}function HB(Z,J){for(let q of Z){if(!q.id.included)return!1;if(q.id.type===D2){if(J.has(q.id.variable))return!1}else{let Q=[];if(q.id.addExportedVariables(Q,J),Q.length>0)return!1}}return!0}function FB(Z,J,q){var Q;let Y=null;if(J.format==="system"){for(let{node:X}of Z)if(X.id instanceof l1&&X.init&&q.length===0&&((Q=J.exportNamesByVariable.get(X.id.variable))===null||Q===void 0?void 0:Q.length)===1)Y=X.id.variable,q.push(Y);else X.id.addExportedVariables(q,J.exportNamesByVariable);if(q.length>1)Y=null;else if(Y)q.length=0}return Y}function Y6(Z){return Z.id}function LB(Z,J){let q=Z.filter((Q)=>!!Q.mappings);Z:while(q.length>0){let Y=q.pop().mappings[J.line-1];if(Y){let X=Y.filter((V)=>V.length>1),z=X[X.length-1];for(let V of X)if(V[0]>=J.column||V===z){J={column:V[3],line:V[2]+1};continue Z}}throw Error("Can't resolve original location of error.")}return J}function cY(Z,J){switch(J){case 1:return`# ${Z}`;case 2:return`## ${Z}`;case 3:return Z;default:return`${" ".repeat(J-4)}- ${Z}`}}function wB(Z,J=3){Z=cY(Z,J);let q=jZ.memoryUsage().heapUsed,Q=K2.now(),Y=U0.get(Z);if(Y===void 0)U0.set(Z,{memory:0,startMemory:q,startTime:Q,time:0,totalMemory:0});else Y.startMemory=q,Y.startTime=Q}function OB(Z,J=3){Z=cY(Z,J);let q=U0.get(Z);if(q!==void 0){let Q=jZ.memoryUsage().heapUsed;q.memory+=Q-q.startMemory,q.time+=K2.now()-q.startTime,q.totalMemory=Math.max(q.totalMemory,Q)}}function NB(){let Z={};for(let[J,{memory:q,time:Q,totalMemory:Y}]of U0)Z[J]=[Q,q,Y];return Z}function CB(Z,J){for(let q of RB)if(q in Z){let Q=`plugin ${J}`;if(Z.name)Q+=` (${Z.name})`;Q+=` - ${q}`;let Y=Z[q];Z[q]=function(...X){s1(Q,4);let z=Y.apply(this,X);if(i1(Q,4),z&&typeof z.then==="function")return s1(`${Q} (async)`,4),z.then((V)=>{return i1(`${Q} (async)`,4),V});return z}}return Z}function IB(Z){if(Z.perf)U0=new Map,s1=wB,i1=OB,Z.plugins=Z.plugins.map(CB);else s1=x4,i1=x4}function F4(Z){Z.isExecuted=!0;let J=[Z],q=new Set;for(let Q of J)for(let Y of[...Q.dependencies,...Q.implicitlyLoadedBefore])if(!(Y instanceof A1)&&!Y.isExecuted&&(Y.info.moduleSideEffects||Q.implicitlyLoadedBefore.has(Y))&&!q.has(Y.id))Y.isExecuted=!0,q.add(Y.id),J.push(Y)}function b9(Z,J,q,Q,Y=new Map){let X=Y.get(J);if(X){if(X.has(Z))return Q?[null]:e(jU(J,Z.id));X.add(Z)}else Y.set(J,new Set([Z]));return Z.getVariableForExportName(J,{importerForSideEffects:q,isExportAllSearch:Q,searchedNamesAndModules:Y})}function _B(Z,J){let q=v5(J.sideEffectDependenciesByVariable,Z,()=>new Set),Q=Z,Y=new Set([Q]);while(!0){let X=Q.module;if(Q=Q instanceof g5?Q.getDirectOriginalVariable():Q instanceof G5?Q.syntheticNamespace:null,!Q||Y.has(Q))break;Y.add(Q),q.add(X);let z=X.sideEffectDependenciesByVariable.get(Q);if(z)for(let V of z)q.add(V)}return q}class S1{constructor(Z,J,q,Q,Y,X,z){this.graph=Z,this.id=J,this.options=q,this.alternativeReexportModules=new Map,this.chunkFileNames=new Set,this.chunkNames=[],this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=new Map,this.importMetas=[],this.importedFromNotTreeshaken=!1,this.importers=[],this.includedDynamicImporters=[],this.includedImports=new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.needsExportShim=!1,this.sideEffectDependenciesByVariable=new Map,this.sources=new Set,this.usesTopLevelAwait=!1,this.allExportNames=null,this.ast=null,this.exportAllModules=[],this.exportAllSources=new Set,this.exportNamesByVariable=null,this.exportShimVariable=new lY(this),this.exports=new Map,this.namespaceReexportsByName=new Map,this.reexportDescriptions=new Map,this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.transitiveReexports=null,this.excludeFromSourcemap=/\0/.test(J),this.context=q.moduleContext(J),this.preserveSignature=this.options.preserveEntrySignatures;let V=this,{dynamicImports:W,dynamicImporters:K,implicitlyLoadedAfter:$,implicitlyLoadedBefore:H,importers:M,reexportDescriptions:O,sources:j}=this;this.info={ast:null,code:null,get dynamicallyImportedIdResolutions(){return W.map(({argument:L})=>typeof L==="string"&&V.resolvedIds[L]).filter(Boolean)},get dynamicallyImportedIds(){return W.map(({id:L})=>L).filter((L)=>L!=null)},get dynamicImporters(){return K.sort()},get hasDefaultExport(){if(!V.ast)return null;return V.exports.has("default")||O.has("default")},get hasModuleSideEffects(){return j5("Accessing ModuleInfo.hasModuleSideEffects from plugins is deprecated. Please use ModuleInfo.moduleSideEffects instead.",!1,q),this.moduleSideEffects},id:J,get implicitlyLoadedAfterOneOf(){return Array.from($,Y6).sort()},get implicitlyLoadedBefore(){return Array.from(H,Y6).sort()},get importedIdResolutions(){return Array.from(j,(L)=>V.resolvedIds[L]).filter(Boolean)},get importedIds(){return Array.from(j,(L)=>{var I;return(I=V.resolvedIds[L])===null||I===void 0?void 0:I.id}).filter(Boolean)},get importers(){return M.sort()},isEntry:Q,isExternal:!1,get isIncluded(){if(Z.phase!==X8.GENERATE)return null;return V.isIncluded()},meta:{...z},moduleSideEffects:Y,syntheticNamedExports:X},Object.defineProperty(this.info,"hasModuleSideEffects",{enumerable:!1})}basename(){let Z=z8(this.id),J=Q8(this.id);return NZ(J?Z.slice(0,-J.length):Z)}bindReferences(){this.ast.bind()}error(Z,J){return this.addLocationToLogProps(Z,J),e(Z)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;this.allExportNames=new Set([...this.exports.keys(),...this.reexportDescriptions.keys()]);for(let Z of this.exportAllModules){if(Z instanceof A1){this.allExportNames.add(`*${Z.id}`);continue}for(let J of Z.getAllExportNames())if(J!=="default")this.allExportNames.add(J)}if(typeof this.info.syntheticNamedExports==="string")this.allExportNames.delete(this.info.syntheticNamedExports);return this.allExportNames}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;this.relevantDependencies=new Set;let Z=new Set,J=new Set,q=new Set(this.includedImports);if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0)for(let Q of[...this.getReexports(),...this.getExports()]){let[Y]=this.getVariableForExportName(Q);if(Y)q.add(Y)}for(let Q of q){let Y=this.sideEffectDependenciesByVariable.get(Q);if(Y)for(let X of Y)J.add(X);if(Q instanceof G5)Q=Q.getBaseVariable();else if(Q instanceof g5)Q=Q.getOriginalVariable();Z.add(Q.module)}if(!this.options.treeshake||this.info.moduleSideEffects==="no-treeshake")for(let Q of this.dependencies)this.relevantDependencies.add(Q);else this.addRelevantSideEffectDependencies(this.relevantDependencies,Z,J);for(let Q of Z)this.relevantDependencies.add(Q);return this.relevantDependencies}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;let Z=new Map;for(let J of this.getAllExportNames()){let[q]=this.getVariableForExportName(J);if(q instanceof g5)q=q.getOriginalVariable();if(!q||!(q.included||q instanceof X0))continue;let Q=Z.get(q);if(Q)Q.push(J);else Z.set(q,[J])}return this.exportNamesByVariable=Z}getExports(){return Array.from(this.exports.keys())}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];let Z=new Set(this.reexportDescriptions.keys());for(let J of this.exportAllModules)if(J instanceof A1)Z.add(`*${J.id}`);else for(let q of[...J.getReexports(),...J.getExports()])if(q!=="default")Z.add(q);return this.transitiveReexports=[...Z]}getRenderedExports(){let Z=[],J=[];for(let q of this.exports.keys()){let[Q]=this.getVariableForExportName(q);(Q&&Q.included?Z:J).push(q)}return{removedExports:J,renderedExports:Z}}getSyntheticNamespace(){if(this.syntheticNamespace===null)this.syntheticNamespace=void 0,[this.syntheticNamespace]=this.getVariableForExportName(typeof this.info.syntheticNamedExports==="string"?this.info.syntheticNamedExports:"default",{onlyExplicit:!0});if(!this.syntheticNamespace)return e(hU(this.id,this.info.syntheticNamedExports));return this.syntheticNamespace}getVariableForExportName(Z,{importerForSideEffects:J,isExportAllSearch:q,onlyExplicit:Q,searchedNamesAndModules:Y}=o6){var X;if(Z[0]==="*"){if(Z.length===1)return[this.namespace];return this.graph.modulesById.get(Z.slice(1)).getVariableForExportName("*")}let z=this.reexportDescriptions.get(Z);if(z){let[W]=b9(z.module,z.localName,J,!1,Y);if(!W)return this.error(WQ(z.localName,this.id,z.module.id),z.start);if(J)hQ(W,J,this);return[W]}let V=this.exports.get(Z);if(V){if(V===vQ)return[this.exportShimVariable];let W=V.localName,K=this.traceVariable(W,{importerForSideEffects:J,searchedNamesAndModules:Y});if(J)v5(J.sideEffectDependenciesByVariable,K,()=>new Set).add(this),hQ(K,J,this);return[K]}if(Q)return[null];if(Z!=="default"){let W=(X=this.namespaceReexportsByName.get(Z))!==null&&X!==void 0?X:this.getVariableFromNamespaceReexports(Z,J,Y);if(this.namespaceReexportsByName.set(Z,W),W[0])return W}if(this.info.syntheticNamedExports)return[v5(this.syntheticExports,Z,()=>new G5(this.astContext,Z,this.getSyntheticNamespace()))];if(!q){if(this.options.shimMissingExports)return this.shimMissingExport(Z),[this.exportShimVariable]}return[null]}hasEffects(){return this.info.moduleSideEffects==="no-treeshake"||this.ast.included&&this.ast.hasEffects(a4())}include(){let Z=a9();if(this.ast.shouldBeIncluded(Z))this.ast.include(Z,!1)}includeAllExports(Z){if(!this.isExecuted)F4(this),this.graph.needsTreeshakingPass=!0;for(let J of this.exports.keys())if(Z||J!==this.info.syntheticNamedExports){let q=this.getVariableForExportName(J)[0];if(q.deoptimizePath(D1),!q.included)this.includeVariable(q)}for(let J of this.getReexports()){let[q]=this.getVariableForExportName(J);if(q){if(q.deoptimizePath(D1),!q.included)this.includeVariable(q);if(q instanceof X0)q.module.reexported=!0}}if(Z)this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces())}includeAllInBundle(){this.ast.include(a9(),!0),this.includeAllExports(!1)}isIncluded(){return this.ast.included||this.namespace.included||this.importedFromNotTreeshaken}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);let Z=[];for(let J of this.exportAllSources){let q=this.graph.modulesById.get(this.resolvedIds[J].id);if(q instanceof A1){Z.push(q);continue}this.exportAllModules.push(q)}this.exportAllModules.push(...Z)}render(Z){let J=this.magicString.clone();return this.ast.render(J,Z),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,J}setSource({ast:Z,code:J,customTransformCache:q,originalCode:Q,originalSourcemap:Y,resolvedIds:X,sourcemapChain:z,transformDependencies:V,transformFiles:W,...K}){if(this.info.code=J,this.originalCode=Q,this.originalSourcemap=Y,this.sourcemapChain=z,W)this.transformFiles=W;if(this.transformDependencies=V,this.customTransformCache=q,this.updateOptions(K),s1("generate ast",3),!Z)Z=this.tryParse();i1("generate ast",3),this.resolvedIds=X||Object.create(null);let $=this.id;this.magicString=new P8(J,{filename:this.excludeFromSourcemap?null:$,indentExclusionRanges:[]}),s1("analyse ast",3),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),code:J,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:$,getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getNodeConstructor:(H)=>fQ[H]||fQ.UnknownNode,getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeAllExports:()=>this.includeAllExports(!0),includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),magicString:this.magicString,module:this,moduleContext:this.context,options:this.options,requestTreeshakingPass:()=>this.graph.needsTreeshakingPass=!0,traceExport:(H)=>this.getVariableForExportName(H)[0],traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1,warn:this.warn.bind(this)},this.scope=new tZ(this.graph.scope,this.astContext),this.namespace=new Q6(this.astContext),this.ast=new aZ(Z,{context:this.astContext,type:"Module"},this.scope),this.info.ast=Z,i1("analyse ast",3)}toJSON(){return{ast:this.ast.esTreeNode,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,Y6),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(Z,{importerForSideEffects:J,isExportAllSearch:q,searchedNamesAndModules:Q}=o6){let Y=this.scope.variables.get(Z);if(Y)return Y;let X=this.importDescriptions.get(Z);if(X){let z=X.module;if(z instanceof S1&&X.name==="*")return z.namespace;let[V]=b9(z,X.name,J||this,q,Q);if(!V)return this.error(WQ(X.name,this.id,z.id),X.start);return V}return null}tryParse(){try{return this.graph.contextParse(this.info.code)}catch(Z){let J=Z.message.replace(/ \(\d+:\d+\)$/,"");if(this.id.endsWith(".json"))J+=" (Note that you need @rollup/plugin-json to import JSON files)";else if(!this.id.endsWith(".js"))J+=" (Note that you need plugins to import files that are not JavaScript)";return this.error({code:"PARSE_ERROR",message:J,parserError:Z},Z.pos)}}updateOptions({meta:Z,moduleSideEffects:J,syntheticNamedExports:q}){if(J!=null)this.info.moduleSideEffects=J;if(q!=null)this.info.syntheticNamedExports=q;if(Z!=null)Object.assign(this.info.meta,Z)}warn(Z,J){this.addLocationToLogProps(Z,J),this.options.onwarn(Z)}addDynamicImport(Z){let J=Z.source;if(J instanceof rZ){if(J.quasis.length===1&&J.quasis[0].value.cooked)J=J.quasis[0].value.cooked}else if(J instanceof V6&&typeof J.value==="string")J=J.value;this.dynamicImports.push({argument:J,id:null,node:Z,resolution:null})}addExport(Z){if(Z instanceof R0)this.exports.set("default",{identifier:Z.variable.getAssignedVariableName(),localName:"default"});else if(Z instanceof q7){let J=Z.source.value;if(this.sources.add(J),Z.exported){let q=Z.exported.name;this.reexportDescriptions.set(q,{localName:"*",module:null,source:J,start:Z.start})}else this.exportAllSources.add(J)}else if(Z.source instanceof V6){let J=Z.source.value;this.sources.add(J);for(let q of Z.specifiers){let Q=q.exported.name;this.reexportDescriptions.set(Q,{localName:q.local.name,module:null,source:J,start:q.start})}}else if(Z.declaration){let J=Z.declaration;if(J instanceof eZ)for(let q of J.declarations)for(let Q of _j(q.id))this.exports.set(Q,{identifier:null,localName:Q});else{let q=J.id.name;this.exports.set(q,{identifier:null,localName:q})}}else for(let J of Z.specifiers){let q=J.local.name,Q=J.exported.name;this.exports.set(Q,{identifier:null,localName:q})}}addImport(Z){let J=Z.source.value;this.sources.add(J);for(let q of Z.specifiers){let Q=q.type===bj,Y=q.type===xj,X=Q?"default":Y?"*":q.imported.name;this.importDescriptions.set(q.local.name,{module:null,name:X,source:J,start:q.start})}}addImportMeta(Z){this.importMetas.push(Z)}addLocationToLogProps(Z,J){Z.id=this.id,Z.pos=J;let q=this.info.code,Q=B2(q,J,{offsetLine:1});if(Q){let{column:Y,line:X}=Q;try{({column:Y,line:X}=LB(this.sourcemapChain,{column:Y,line:X})),q=this.originalCode}catch(z){this.options.onwarn({code:"SOURCEMAP_ERROR",id:this.id,loc:{column:Y,file:this.id,line:X},message:`Error when using sourcemap for reporting an error: ${z.message}`,pos:J})}_4(Z,{column:Y,line:X},q,this.id)}}addModulesToImportDescriptions(Z){for(let J of Z.values()){let{id:q}=this.resolvedIds[J.source];J.module=this.graph.modulesById.get(q)}}addRelevantSideEffectDependencies(Z,J,q){let Q=new Set,Y=(X)=>{for(let z of X){if(Q.has(z))continue;if(Q.add(z),J.has(z)){Z.add(z);continue}if(!(z.info.moduleSideEffects||q.has(z)))continue;if(z instanceof A1||z.hasEffects()){Z.add(z);continue}Y(z.dependencies)}};Y(this.dependencies),Y(q)}getVariableFromNamespaceReexports(Z,J,q){let Q=null,Y=new Map,X=new Set;for(let z of this.exportAllModules){if(z.info.syntheticNamedExports===Z)continue;let[V,W]=b9(z,Z,J,!0,DB(q));if(z instanceof A1||W)X.add(V);else if(V instanceof G5){if(!Q)Q=V}else if(V)Y.set(V,z)}if(Y.size>0){let z=[...Y],V=z[0][0];if(z.length===1)return[V];return this.options.onwarn(xU(Z,this.id,z.map(([,W])=>W.id))),[null]}if(X.size>0){let z=[...X],V=z[0];if(z.length>1)this.options.onwarn(kU(Z,this.id,V.module.id,z.map((W)=>W.module.id)));return[V,!0]}if(Q)return[Q];return[null]}includeAndGetAdditionalMergedNamespaces(){let Z=new Set,J=new Set;for(let q of[this,...this.exportAllModules])if(q instanceof A1){let[Q]=q.getVariableForExportName("*");Q.include(),this.includedImports.add(Q),Z.add(Q)}else if(q.info.syntheticNamedExports){let Q=q.getSyntheticNamespace();Q.include(),this.includedImports.add(Q),J.add(Q)}return[...J,...Z]}includeDynamicImport(Z){let J=this.dynamicImports.find((q)=>q.node===Z).resolution;if(J instanceof S1)J.includedDynamicImporters.push(this),J.includeAllExports(!0)}includeVariable(Z){if(!Z.included){Z.include(),this.graph.needsTreeshakingPass=!0;let J=Z.module;if(J instanceof S1){if(!J.isExecuted)F4(J);if(J!==this){let q=_B(Z,this);for(let Q of q)if(!Q.isExecuted)F4(Q)}}}}includeVariableInModule(Z){this.includeVariable(Z);let J=Z.module;if(J&&J!==this)this.includedImports.add(Z)}shimMissingExport(Z){this.options.onwarn({code:"SHIMMED_EXPORT",exporter:V1(this.id),exportName:Z,message:`Missing export "${Z}" has been shimmed in module ${V1(this.id)}.`}),this.exports.set(Z,vQ)}}function hQ(Z,J,q){if(Z.module instanceof S1&&Z.module!==q){let Q=Z.module.cycles;if(Q.size>0){let Y=q.cycles;for(let X of Y)if(Q.has(X)){J.alternativeReexportModules.set(Z,q);break}}}}function pY(Z){return Z.endsWith(".js")?Z.slice(0,-3):Z}function iY(Z,J){if(Z.autoId)return`${Z.basePath?Z.basePath+"/":""}${pY(J)}`;return Z.id||""}function Y7(Z,J,q,Q,Y,X,z,V="return "){let{_:W,cnst:K,getDirectReturnFunction:$,getFunctionIntro:H,getPropertyAccess:M,n:O,s:j}=Y;if(!q)return`${O}${O}${V}${TB(Z,J,Q,z,M)};`;let L="";for(let{defaultVariableName:I,id:y,isChunk:_,name:T,namedExportsMode:g,namespaceVariableName:h,reexports:u}of J)if(u&&q){for(let E of u)if(E.reexported!=="*"){let N=nY(T,E.imported,g,_,I,h,Q,y,z,M);if(L)L+=O;if(E.imported!=="*"&&E.needsLiveBinding){let[P,A]=$([],{functionReturn:!0,lineBreakIndent:null,name:null});L+=`Object.defineProperty(exports,${W}'${E.reexported}',${W}{${O}${X}enumerable:${W}true,${O}${X}get:${W}${P}${N}${A}${O}});`}else L+=`exports${M(E.reexported)}${W}=${W}${N};`}}for(let{exported:I,local:y}of Z){let _=`exports${M(I)}`,T=y;if(_!==T){if(L)L+=O;L+=`${_}${W}=${W}${T};`}}for(let{name:I,reexports:y}of J)if(y&&q){for(let _ of y)if(_.reexported==="*"){if(L)L+=O;let T=`{${O}${X}if${W}(k${W}!==${W}'default'${W}&&${W}!exports.hasOwnProperty(k))${W}${AB(I,_.needsLiveBinding,X,Y)}${j}${O}}`;L+=K==="var"&&_.needsLiveBinding?`Object.keys(${I}).forEach(${H(["k"],{isAsync:!1,name:null})}${T});`:`for${W}(${K} k in ${I})${W}${T}`}}if(L)return`${O}${O}${L}`;return""}function TB(Z,J,q,Q,Y){if(Z.length>0)return Z[0].local;else for(let{defaultVariableName:X,id:z,isChunk:V,name:W,namedExportsMode:K,namespaceVariableName:$,reexports:H}of J)if(H)return nY(W,H[0].imported,K,V,X,$,q,z,Q,Y)}function nY(Z,J,q,Q,Y,X,z,V,W,K){if(J==="default"){if(!Q){let $=String(z(V)),H=C0[$]?Y:Z;return Q7($,W)?`${H}${K("default")}`:H}return q?`${Z}${K("default")}`:Z}if(J==="*")return(Q?!q:I0[String(z(V))])?X:Z;return`${Z}${K(J)}`}function gQ(Z){return Z([["value","true"]],{lineBreakIndent:null})}function X7(Z,J,q,{_:Q,getObject:Y}){if(Z){if(J){if(q)return`Object.defineProperties(exports,${Q}${Y([["__esModule",gQ(Y)],[null,`[Symbol.toStringTag]:${Q}${G0(Y)}`]],{lineBreakIndent:null})});`;return`Object.defineProperty(exports,${Q}'__esModule',${Q}${gQ(Y)});`}if(q)return`Object.defineProperty(exports,${Q}Symbol.toStringTag,${Q}${G0(Y)});`}return""}function z7(Z,J,q,Q,Y,X,z,V){let{_:W,cnst:K,n:$}=V,H=new Set,M=[],O=(j,L,I)=>{H.add(L),M.push(`${K} ${j}${W}=${W}/*#__PURE__*/${L}(${I});`)};for(let{defaultVariableName:j,imports:L,id:I,isChunk:y,name:_,namedExportsMode:T,namespaceVariableName:g,reexports:h}of Z)if(y){for(let{imported:u,reexported:E}of[...L||[],...h||[]])if(u==="*"&&E!=="*"){if(!T)O(g,$0,_);break}}else{let u=String(J(I)),E=!1,N=!1;for(let{imported:P,reexported:A}of[...L||[],...h||[]]){let B,b;if(P==="default"){if(!E){if(E=!0,j!==g)b=j,B=C0[u]}}else if(P==="*"&&A!=="*"){if(!N)N=!0,B=I0[u],b=g}if(B)O(b,B,_)}}return`${nZ(H,X,z,V,q,Q,Y)}${M.length>0?`${M.join($)}${$}${$}`:""}`}function PB(Z){return Z.endsWith(".js")?Z:Z+".js"}function aY(Z,J){if(Z[0]!==".")return Z;return J?PB(Z):pY(Z)}function Z3(Z,J){let q=J.map(({id:Q})=>Q).filter((Q)=>(Q in SB));if(!q.length)return;Z({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in modules (${V8(q)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`,modules:q})}function yB(Z,{accessedGlobals:J,dependencies:q,exports:Q,hasExports:Y,id:X,indent:z,intro:V,isEntryFacade:W,isModuleFacade:K,namedExportsMode:$,outro:H,snippets:M,warn:O},{amd:j,esModule:L,externalLiveBindings:I,freeze:y,interop:_,namespaceToStringTag:T,strict:g}){Z3(O,q);let h=q.map((G)=>`'${aY(G.id,j.forceJsExtensionForImports)}'`),u=q.map((G)=>G.name),{n:E,getNonArrowFunctionIntro:N,_:P}=M;if($&&Y)u.unshift("exports"),h.unshift("'exports'");if(J.has("require"))u.unshift("require"),h.unshift("'require'");if(J.has("module"))u.unshift("module"),h.unshift("'module'");let A=iY(j,X),B=(A?`'${A}',${P}`:"")+(h.length?`[${h.join(`,${P}`)}],${P}`:""),b=g?`${P}'use strict';`:"";Z.prepend(`${V}${z7(q,_,I,y,T,J,z,M)}`);let k=Y7(Q,q,$,_,M,z,I),S=X7($&&Y,W&&L,K&&T,M);if(S)S=E+E+S;return Z.append(`${k}${S}${H}`),Z.indent(z).prepend(`${j.define}(${B}(${N(u,{isAsync:!1,name:null})}{${b}${E}${E}`).append(`${E}${E}}));`)}function EB(Z,{accessedGlobals:J,dependencies:q,exports:Q,hasExports:Y,indent:X,intro:z,isEntryFacade:V,isModuleFacade:W,namedExportsMode:K,outro:$,snippets:H},{compact:M,esModule:O,externalLiveBindings:j,freeze:L,interop:I,namespaceToStringTag:y,strict:_}){let{_:T,n:g}=H,h=_?`'use strict';${g}${g}`:"",u=X7(K&&Y,V&&O,W&&y,H);if(u)u+=g+g;let E=bB(q,H,M),N=z7(q,I,j,L,y,J,X,H);Z.prepend(`${h}${z}${u}${E}${N}`);let P=Y7(Q,q,K,I,H,X,j,`module.exports${T}=${T}`);return Z.append(`${P}${$}`)}function bB(Z,{_:J,cnst:q,n:Q},Y){let X="",z=!1;for(let{id:V,name:W,reexports:K,imports:$}of Z)if(!K&&!$){if(X)X+=Y&&!z?",":`;${Q}`;z=!1,X+=`require('${V}')`}else X+=Y&&z?",":`${X?`;${Q}`:""}${q} `,z=!0,X+=`${W}${J}=${J}require('${V}')`;if(X)return`${X};${Q}${Q}`;return""}function xB(Z,{accessedGlobals:J,indent:q,intro:Q,outro:Y,dependencies:X,exports:z,snippets:V},{externalLiveBindings:W,freeze:K,namespaceToStringTag:$}){let{_:H,n:M}=V,O=kB(X,H);if(O.length>0)Q+=O.join(M)+M+M;if(Q+=nZ(null,J,q,V,W,K,$),Q)Z.prepend(Q);let j=fB(z,V);if(j.length)Z.append(M+M+j.join(M).trim());if(Y)Z.append(Y);return Z.trim()}function kB(Z,J){let q=[];for(let{id:Q,reexports:Y,imports:X,name:z}of Z){if(!Y&&!X){q.push(`import${J}'${Q}';`);continue}if(X){let V=null,W=null,K=[];for(let $ of X)if($.imported==="default")V=$;else if($.imported==="*")W=$;else K.push($);if(W)q.push(`import${J}*${J}as ${W.local} from${J}'${Q}';`);if(V&&K.length===0)q.push(`import ${V.local} from${J}'${Q}';`);else if(K.length>0)q.push(`import ${V?`${V.local},${J}`:""}{${J}${K.map(($)=>{if($.imported===$.local)return $.imported;else return`${$.imported} as ${$.local}`}).join(`,${J}`)}${J}}${J}from${J}'${Q}';`)}if(Y){let V=null,W=[],K=[];for(let $ of Y)if($.reexported==="*")V=$;else if($.imported==="*")W.push($);else K.push($);if(V)q.push(`export${J}*${J}from${J}'${Q}';`);if(W.length>0){if(!X||!X.some(($)=>$.imported==="*"&&$.local===z))q.push(`import${J}*${J}as ${z} from${J}'${Q}';`);for(let $ of W)q.push(`export${J}{${J}${z===$.reexported?z:`${z} as ${$.reexported}`} };`)}if(K.length>0)q.push(`export${J}{${J}${K.map(($)=>{if($.imported===$.reexported)return $.imported;else return`${$.imported} as ${$.reexported}`}).join(`,${J}`)}${J}}${J}from${J}'${Q}';`)}}return q}function fB(Z,{_:J,cnst:q}){let Q=[],Y=[];for(let X of Z){if(X.expression)Q.push(`${q} ${X.local}${J}=${J}${X.expression};`);Y.push(X.exported===X.local?X.local:`${X.local} as ${X.exported}`)}if(Y.length)Q.push(`export${J}{${J}${Y.join(`,${J}`)}${J}};`);return Q}function vB(Z,J,q,{_:Q,getPropertyAccess:Y,s:X},z){let V=Z.split(".");V[0]=(typeof q==="function"?q(V[0]):q[V[0]])||V[0],V.pop();let W=J;return V.map((K)=>{return W+=Y(K),`${W}${Q}=${Q}${W}${Q}||${Q}{}${X}`}).join(z?",":`
|
|
14
|
+
`)}function V8(Z,q){let Q=Z.length<=1,J=Z.map((X)=>`"${X}"`),Y=Q?J[0]:`${J.slice(0,-1).join(", ")} and ${J.slice(-1)[0]}`;if(q)Y+=` ${Q?q[0]:q[1]}`;return Y}function a5(Z){return XU.test(Z)}function OZ(Z){return zU.test(Z)}function z0(Z){return Z.replace(VU,"/")}function M4(Z){let q=z8(Z);return q.substring(0,q.length-J8(Z).length)}function V1(Z){if(!a5(Z))return Z;return FZ(U5(),Z)}function i9(Z){return Z[0]==="/"||Z[0]==="."&&(Z[1]==="/"||Z[1]===".")||a5(Z)}function X4(Z,q,Q,J){let Y=z0(FZ(f5(Z),q));if(Q&&Y.endsWith(".js"))Y=Y.slice(0,-3);if(J){if(Y==="")return"../"+z8(q);if(WU.test(Y))return Y.split("/").concat(["..",z8(q)]).join("/")}return!Y?".":Y.startsWith("..")?Y:"./"+Y}function e(Z){if(!(Z instanceof Error))Z=Object.assign(Error(Z.message),Z);throw Z}function _4(Z,q,Q,J){if(typeof q==="object"){let{line:Y,column:X}=q;Z.loc={column:X,file:J,line:Y}}else{Z.pos=q;let{line:Y,column:X}=M2(Q,q,{offsetLine:1});Z.loc={column:X,file:J,line:Y}}if(Z.frame===void 0){let{line:Y,column:X}=Z.loc;Z.frame=YU(Q,Y,X)}}function KU(Z){return{code:W1.ASSET_NOT_FINALISED,message:`Plugin error - Unable to get file name for asset "${Z}". Ensure that the source is set and that generate is called first.`}}function $U(){return{code:W1.CANNOT_EMIT_FROM_OPTIONS_HOOK,message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'}}function GU(Z){return{code:W1.CHUNK_NOT_GENERATED,message:`Plugin error - Unable to get file name for chunk "${Z}". Ensure that generate is called first.`}}function UU({fileName:Z,code:q},Q){let J={code:W1.CHUNK_INVALID,message:`Chunk "${Z}" is not valid JavaScript: ${Q.message}.`};return _4(J,Q.loc,q,Z),J}function jU(Z,q){return{code:W1.CIRCULAR_REEXPORT,id:q,message:`"${Z}" cannot be exported from ${V1(q)} as it is a reexport that references itself.`}}function BU(Z,q,Q,J){return{code:W1.CYCLIC_CROSS_CHUNK_REEXPORT,exporter:q,importer:J,message:`Export "${Z}" of module ${V1(q)} was reexported through module ${V1(Q)} while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
|
|
15
|
+
Either change the import in ${V1(J)} to point directly to the exporting module or do not use "preserveModules" to ensure these modules end up in the same chunk.`,reexporter:Q}}function MU(Z){return{code:W1.ASSET_NOT_FOUND,message:`Plugin error - Unable to set the source for unknown asset "${Z}".`}}function HU(Z){return{code:W1.ASSET_SOURCE_ALREADY_SET,message:`Unable to set the source for asset "${Z}", source already set.`}}function FU(Z){return{code:W1.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${Z}" - no asset source set.`}}function LU(Z){return{code:W1.BAD_LOADER,message:`Error loading ${V1(Z)}: plugin load hook should return a string, a { code, map } object, or nothing/null`}}function wU(Z){return{code:W1.DEPRECATED_FEATURE,...typeof Z==="string"?{message:Z}:Z}}function OU(Z){return{code:W1.FILE_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown file "${Z}".`}}function NU(Z){return{code:W1.FILE_NAME_CONFLICT,message:`The emitted file "${Z}" overwrites a previously emitted file of the same name.`}}function VJ(Z){return{code:W1.FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY,message:`The output file name "${Z}" is not contained in the output directory. Make sure all file names are relative paths without ".." segments.`}}function RU(Z,q){return{code:W1.INPUT_HOOK_IN_OUTPUT_PLUGIN,message:`The "${q}" hook used by the output plugin ${Z} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function CU(Z,q,Q){return{code:W1.INVALID_CHUNK,message:`Cannot assign ${V1(Z)} to the "${q}" chunk as it is already in the "${Q}" chunk.`}}function IU(Z){return{code:W1.INVALID_EXPORT_OPTION,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${Z}"`,url:"https://rollupjs.org/guide/en/#outputexports"}}function WJ(Z,q,Q){return{code:"INVALID_EXPORT_OPTION",message:`"${Z}" was specified for "output.exports", but entry module "${V1(Q)}" has the following exports: ${q.join(", ")}`}}function _U(Z,q){return{code:W1.INVALID_EXTERNAL_ID,message:`'${Z}' is imported as an external by ${V1(q)}, but is already an existing non-external module id.`}}function m1(Z,q,Q,J){return{code:W1.INVALID_OPTION,message:`Invalid value ${J!==void 0?`${JSON.stringify(J)} `:""}for option "${Z}" - ${Q}.`,url:`https://rollupjs.org/guide/en/#${q}`}}function DU(Z,q){return{code:W1.INVALID_PLUGIN_HOOK,hook:Z,message:`Error running plugin hook ${Z} for plugin ${q}, expected a string, a function hook or an object with a "handler" string or function.`,plugin:q}}function TU(Z,q){return{code:W1.INVALID_PLUGIN_HOOK,hook:Z,message:`Error running plugin hook ${Z} for plugin ${q}, expected a function hook or an object with a "handler" function.`,plugin:q}}function AU(){return{code:W1.INVALID_ROLLUP_PHASE,message:"Cannot call addWatchFile after the build has finished."}}function PU(){return{code:W1.INVALID_ROLLUP_PHASE,message:"Cannot emit chunks after module loading has finished."}}function KJ(Z,q,Q){return{code:W1.MISSING_EXPORT,message:`'${Z}' is not exported by ${V1(Q)}, imported by ${V1(q)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"}}function SU(Z,q){return{code:W1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z)}" that should be implicitly loaded before "${V1(q)}" cannot be external.`}}function yU(Z,q){return{code:W1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z)}" that should be implicitly loaded before "${V1(q)}" could not be resolved.`}}function EU(Z){let q=Array.from(Z.implicitlyLoadedBefore,(Q)=>V1(Q.id)).sort();return{code:W1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z.id)}" that should be implicitly loaded before ${V8(q)} is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function bU(Z,q){return{code:W1.MIXED_EXPORTS,id:Z,message:`Entry module "${V1(Z)}" is using named and default exports together. Consumers of your bundle will have to use \`${q||"chunk"}["default"]\` to access the default export, which may not be what you want. Use \`output.exports: "named"\` to disable this warning`,url:"https://rollupjs.org/guide/en/#outputexports"}}function xU(Z,q,Q){return{code:W1.NAMESPACE_CONFLICT,message:`Conflicting namespaces: "${V1(q)}" re-exports "${Z}" from one of the modules ${V8(Q.map((J)=>V1(J)))} (will be ignored)`,name:Z,reexporter:q,sources:Q}}function kU(Z,q,Q,J){return{code:W1.AMBIGUOUS_EXTERNAL_NAMESPACES,message:`Ambiguous external namespace resolution: "${V1(q)}" re-exports "${Z}" from one of the external modules ${V8(J.map((Y)=>V1(Y)))}, guessing "${V1(Q)}".`,name:Z,reexporter:q,sources:J}}function fU(Z){return{code:W1.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE,message:`The plugin "${Z}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}function vU(Z){let q=V1(Z);return{code:W1.PREFER_NAMED_EXPORTS,id:Z,message:`Entry module "${q}" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "${q}" to use named exports only.`,url:"https://rollupjs.org/guide/en/#outputexports"}}function hU(Z,q){return{code:W1.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT,id:Z,message:`Module "${V1(Z)}" that is marked with 'syntheticNamedExports: ${JSON.stringify(q)}' needs ${typeof q==="string"&&q!=="default"?`an explicit export named "${q}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}}function $J(Z,q,Q){let J=Q?"reexport":"import";return{code:W1.UNEXPECTED_NAMED_IMPORT,id:Z,message:`The named export "${q}" was ${J}ed from the external module ${V1(Z)} even though its interop type is "defaultOnly". Either remove or change this ${J} or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function gU(Z){return{code:W1.UNEXPECTED_NAMED_IMPORT,id:Z,message:`There was a namespace "*" reexport from the external module ${V1(Z)} even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function mU(Z){return{code:W1.UNRESOLVED_ENTRY,message:`Entry module cannot be external (${V1(Z)}).`}}function uU(Z){return{code:W1.UNRESOLVED_ENTRY,message:`Could not resolve entry module (${V1(Z)}).`}}function dU(Z,q){return{code:W1.UNRESOLVED_IMPORT,message:`Could not resolve '${Z}' from ${V1(q)}`}}function lU(Z,q){return{code:W1.UNRESOLVED_IMPORT,importer:V1(q),message:`'${Z}' is imported by ${V1(q)}, but could not be resolved – treating it as an external dependency`,source:Z,url:"https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency"}}function cU(Z,q){return{code:W1.EXTERNAL_SYNTHETIC_EXPORTS,importer:V1(q),message:`External '${Z}' can not have 'syntheticNamedExports' enabled.`,source:Z}}function n5(Z){return{code:W1.VALIDATION_ERROR,message:Z}}function GJ(){return{code:W1.ALREADY_CLOSED,message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}}function j5(Z,q,Q){G6(Z,q,Q.onwarn,Q.strictDeprecations)}function G6(Z,q,Q,J){if(q||J){let Y=wU(Z);if(J)return e(Y);Q(Y)}}function nU(Z){if(F2(Z))return!1;return!H2.test(Z)}function NZ(Z){if(Z=Z.replace(/-(\w)/g,(q,Q)=>Q.toUpperCase()).replace(H2,"_"),F2(Z))Z=`_${Z}`;return Z||"_"}class A1{constructor(Z,q,Q,J,Y){this.options=Z,this.id=q,this.renormalizeRenderPath=Y,this.declarations=new Map,this.defaultVariableName="",this.dynamicImporters=[],this.execIndex=1/0,this.exportedVariables=new Map,this.importers=[],this.mostCommonSuggestion=0,this.nameSuggestions=new Map,this.namespaceVariableName="",this.reexported=!1,this.renderPath=void 0,this.used=!1,this.variableName="",this.suggestedVariableName=NZ(q.split(/[\\/]/).pop());let{importers:X,dynamicImporters:z}=this,V=this.info={ast:null,code:null,dynamicallyImportedIdResolutions:s8,dynamicallyImportedIds:s8,get dynamicImporters(){return z.sort()},hasDefaultExport:null,get hasModuleSideEffects(){return j5("Accessing ModuleInfo.hasModuleSideEffects from plugins is deprecated. Please use ModuleInfo.moduleSideEffects instead.",!1,Z),V.moduleSideEffects},id:q,implicitlyLoadedAfterOneOf:s8,implicitlyLoadedBefore:s8,importedIdResolutions:s8,importedIds:s8,get importers(){return X.sort()},isEntry:!1,isExternal:!0,isIncluded:null,meta:J,moduleSideEffects:Q,syntheticNamedExports:!1};Object.defineProperty(this.info,"hasModuleSideEffects",{enumerable:!1})}getVariableForExportName(Z){let q=this.declarations.get(Z);if(q)return[q];let Q=new X0(this,Z);return this.declarations.set(Z,Q),this.exportedVariables.set(Q,Z),[Q]}setRenderPath(Z,q){if(this.renderPath=typeof Z.paths==="function"?Z.paths(this.id):Z.paths[this.id],!this.renderPath)this.renderPath=this.renormalizeRenderPath?z0(UZ(q,this.id)):this.id}suggestName(Z){var q;let Q=((q=this.nameSuggestions.get(Z))!==null&&q!==void 0?q:0)+1;if(this.nameSuggestions.set(Z,Q),Q>this.mostCommonSuggestion)this.mostCommonSuggestion=Q,this.suggestedVariableName=Z}warnUnusedImports(){let Z=Array.from(this.declarations).filter(([J,Y])=>J!=="*"&&!Y.included&&!this.reexported&&!Y.referenced).map(([J])=>J);if(Z.length===0)return;let q=new Set;for(let J of Z)for(let Y of this.declarations.get(J).module.importers)q.add(Y);let Q=[...q];this.options.onwarn({code:"UNUSED_EXTERNAL_IMPORT",message:`${V8(Z,["is","are"])} imported from external module "${this.id}" but never used in ${V8(Q.map((J)=>V1(J)))}.`,names:Z,source:this.id,sources:Q})}}function sU(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}function s9(){return{brokenFlow:n4,includedCallArguments:new Set,includedLabels:new Set}}function s4(){return{accessed:new Y0,assigned:new Y0,brokenFlow:n4,called:new I4,ignore:{breaks:!1,continues:!1,labels:new Set,returnYield:!1},includedLabels:new Set,instantiated:new I4,replacedVariableInits:new Map}}function a4(Z,q=null){return Object.create(q,Z)}function Pj(Z){switch(typeof Z){case"boolean":return a9;case"number":return r9;case"string":return V0}return Object.create(null)}function L0(Z,q,Q,J){var Y,X;if(typeof q!=="string"||!Z[q])return!0;return((X=(Y=Z[q]).hasEffectsWhenCalled)===null||X===void 0?void 0:X.call(Y,Q,J))||!1}function w0(Z,q){if(typeof q!=="string"||!Z[q])return Y1;return Z[q].returns}function PZ(Z,q,Q){Q(Z,q)}function E8(Z,q,Q){}function S2(Z,q,Q=Z.type){let{annotations:J}=q,Y=J[q.annotationIndex];while(Y&&Z.start>=Y.end)lj(Z,Y,q.code),Y=J[++q.annotationIndex];if(Y&&Y.end<=Z.end){s[Q](Z,q,S2);while((Y=J[q.annotationIndex])&&Y.end<=Z.end)++q.annotationIndex,P4(Z,Y,!1)}}function lj(Z,q,Q){let J=[],Y,X=Q.slice(q.end,Z.start);if(z4(X,dj)){let z=Z.start;while(!0){switch(J.push(Z),Z.type){case N5:case yj:Z=Z.expression;continue;case gj:if(z4(Q.slice(z,Z.start),A9)){Z=Z.expressions[0];continue}Y=!0;break;case Ej:if(z4(Q.slice(z,Z.start),A9)){Z=Z.test;continue}Y=!0;break;case kj:case Sj:if(z4(Q.slice(z,Z.start),A9)){Z=Z.left;continue}Y=!0;break;case D2:case fj:break;default:Y=!0}break}}else Y=!0;if(Y)P4(Z,q,!1);else for(let z of J)P4(z,q,!0)}function z4(Z,q){let Q;while((Q=q.exec(Z))!==null){if(Q[0]==="/"){let J=Z.charCodeAt(q.lastIndex);if(J===42){q.lastIndex=Z.indexOf("*/",q.lastIndex+1)+2;continue}else if(J===47){q.lastIndex=Z.indexOf(`
|
|
16
|
+
`,q.lastIndex+1)+1;continue}}return q.lastIndex=0,!1}return!0}function pj(Z,q,Q){let J=[],Y=[];for(let X of Z)if(cj.test(X.value))J.push(X);else if(uj.test(X.value))Y.push(X);for(let X of Y)P4(q,X,!1);S2(q,{annotationIndex:0,annotations:J,code:Q})}function P4(Z,q,Q){let J=Q?A2:P2,Y=Z[J];if(Y)Y.push(q);else Z[J]=[q]}function ij(Z){return o9[Z.type]=Object.keys(Z).filter((q)=>typeof Z[q]==="object"&&q.charCodeAt(0)!==95),o9[Z.type]}function t9(Z){let q="";do{let Q=Z%DJ;Z=Math.floor(Z/DJ),q=rj[Q]+q}while(Z!==0);return q}function k5(Z,q){let Q=Z,J=1;while(q.has(Q)||l4.has(Q))Q=`${Z}$${t9(J++)}`;return q.add(Q),Q}class EZ{constructor(){this.children=[],this.variables=new Map}addDeclaration(Z,q,Q,J){let Y=Z.name,X=this.variables.get(Y);if(X)X.addDeclaration(Z,Q);else X=new S5(Z.name,Z,Q||F0,q),this.variables.set(Y,X);return X}contains(Z){return this.variables.has(Z)}findVariable(Z){throw Error("Internal Error: findVariable needs to be implemented by a subclass")}}function k2(Z,q){if(Z.type==="MemberExpression")return!Z.computed&&k2(Z.object,Z);if(Z.type==="Identifier"){if(!q)return!0;switch(q.type){case"MemberExpression":return q.computed||Z===q.object;case"MethodDefinition":return q.computed;case"PropertyDefinition":return q.computed||Z===q.value;case"Property":return q.computed||Z===q.value;case"ExportSpecifier":case"ImportSpecifier":return Z===q.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}function W4(Z){let q=e9;for(let Q of Z){if(typeof Q!=="string")return null;if(q=q[Q],!q)return null}return q[u1]}function AJ(Z){while(Z&&!/^Program|Function/.test(Z.type))Z=Z.parent;return Z}function kZ(Z,q,Q,J){if(q.remove(Q,J),Z.annotations)for(let Y of Z.annotations)if(Y.start<Q)q.remove(Y.start,Y.end);else return}function f2(Z,q){if(!Z.annotations&&Z.parent.type===N5)Z=Z.parent;if(Z.annotations)for(let Q of Z.annotations)q.remove(Q.start,Q.end)}function o1(Z,q,Q=0){let J,Y;J=Z.indexOf(q,Q);while(!0){if(Q=Z.indexOf("/",Q),Q===-1||Q>=J)return J;if(Y=Z.charCodeAt(++Q),++Q,Q=Y===47?Z.indexOf(`
|
|
17
|
+
`,Q)+1:Z.indexOf("*/",Q)+2,Q>J)J=Z.indexOf(q,Q)}}function W8(Z,q){return PJ.lastIndex=q,PJ.exec(Z).index}function S4(Z){let q,Q,J=0;q=Z.indexOf(`
|
|
18
|
+
`,J);while(!0){if(J=Z.indexOf("/",J),J===-1||J>q)return[q,q+1];if(Q=Z.charCodeAt(J+1),Q===47)return[J,q+1];if(J=Z.indexOf("*/",J+3)+2,J>q)q=Z.indexOf(`
|
|
19
|
+
`,J)}}function O0(Z,q,Q,J,Y){let X,z,V,W,K=Z[0],$=!K.included||K.needsBoundaries;if($)W=Q+S4(q.original.slice(Q,K.start))[1];for(let H=1;H<=Z.length;H++)if(X=K,z=W,V=$,K=Z[H],$=K===void 0?!1:!K.included||K.needsBoundaries,V||$)if(W=X.end+S4(q.original.slice(X.end,K===void 0?J:K.start))[1],X.included)V?X.render(q,Y,{end:W,start:z}):X.render(q,Y);else kZ(X,q,z,W);else X.render(q,Y)}function v2(Z,q,Q,J){let Y=[],X,z,V,W,K,$=Q-1;for(let H=0;H<Z.length;H++){if(z=Z[H],X!==void 0)$=X.end+o1(q.original.slice(X.end,z.start),",");V=W=$+1+S4(q.original.slice($+1,z.start))[1];while(K=q.original.charCodeAt(V),K===32||K===9||K===10||K===13)V++;if(X!==void 0)Y.push({contentEnd:W,end:V,node:X,separator:$,start:Q});X=z,Q=V}return Y.push({contentEnd:J,end:J,node:X,separator:null,start:Q}),Y}function t4(Z,q,Q){while(!0){let[J,Y]=S4(Z.original.slice(q,Q));if(J===-1)break;Z.remove(q+J,q+=Y)}}function b8(Z,{exportNamesByVariable:q,snippets:{_:Q,getObject:J,getPropertyAccess:Y}},X=""){if(Z.length===1&&q.get(Z[0]).length===1){let z=Z[0];return`exports('${q.get(z)}',${Q}${z.getName(Y)}${X})`}else{let z=[];for(let V of Z)for(let W of q.get(V))z.push([W,V.getName(Y)+X]);return`exports(${J(z,{lineBreakIndent:null})})`}}function hZ(Z,q,Q,J,{exportNamesByVariable:Y,snippets:{_:X}}){J.prependRight(q,`exports('${Y.get(Z)}',${X}`),J.appendLeft(Q,")")}function tj(Z,q,Q,J,Y,X){let{_:z,getDirectReturnIifeLeft:V}=X.snippets;Y.prependRight(q,V(["v"],`${b8(Z,X)},${z}v`,{needsArrowReturnParens:!0,needsWrappedFunction:J})),Y.appendLeft(Q,")")}function h2(Z,q,Q,J,Y,X){let{_:z,getPropertyAccess:V}=X.snippets;if(Y.appendLeft(Q,`,${z}${b8([Z],X)},${z}${Z.getName(V)}`),J)Y.prependRight(q,"("),Y.appendLeft(Q,")")}function ej(Z,q,Q,J,Y,X,z){let{_:V}=X.snippets;if(Y.prependRight(q,`${b8([Z],X,z)},${V}`),J)Y.prependRight(q,"("),Y.appendLeft(Q,")")}function i2(Z,q,Q){if(Q.arguments.length>0)if(Q.arguments[Q.arguments.length-1].included)for(let J of Q.arguments)J.render(Z,q);else{let J=Q.arguments.length-2;while(J>=0&&!Q.arguments[J].included)J--;if(J>=0){for(let Y=0;Y<=J;Y++)Q.arguments[Y].render(Z,q);Z.remove(o1(Z.original,",",Q.arguments[J].end),Q.end-1)}else Z.remove(o1(Z.original,"(",Q.callee.end)+1,Q.end-1)}}function qB(Z){return Z.computed?QB(Z.property):Z.property.name}function QB(Z){if(Z instanceof V6)return String(Z.value);return null}function n2(Z){let{propertyKey:q,object:Q}=Z;if(typeof q==="string"){if(Q instanceof l1)return[{key:Q.name,pos:Q.start},{key:q,pos:Z.property.start}];if(Q instanceof y8){let J=n2(Q);return J&&[...J,{key:q,pos:Z.property.start}]}}return null}function JB(Z){let q=Z[0].key;for(let Q=1;Q<Z.length;Q++)q+="."+Z[Q].key;return q}function s2(Z,q,Q){if(q.length===0)return Z;if(!Z.isNamespace||Z instanceof X0)return null;let J=q[0].key,Y=Z.context.traceExport(J);if(!Y){let X=Z.context.fileName;return Q.warn({code:"MISSING_EXPORT",exporter:V1(X),importer:V1(Q.fileName),message:`'${J}' is not exported by '${V1(X)}'`,missing:J,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"},q[0].pos),"undefined"}return s2(Y,q.slice(1),Q)}function YB(Z,q){return W8(Z,o1(Z,"default",q)+7)}function XB(Z,q,Q,J){let Y=o1(Z,q,J)+q.length;Z=Z.slice(Y,o1(Z,Q,Y));let X=o1(Z,"*");if(X===-1)return Y;return Y+X+1}function G0(Z){return Z([["value","'Module'"]],{lineBreakIndent:null})}function kJ(Z,q,Q){return q==="external"?I0[String(Q(Z instanceof A1?Z.id:null))]:q==="default"?$0:null}function mY(Z,q){return Z.renderBaseName!==null&&q.has(Z)&&Z.isReassigned}function HB(Z,q){for(let Q of Z){if(!Q.id.included)return!1;if(Q.id.type===T2){if(q.has(Q.id.variable))return!1}else{let J=[];if(Q.id.addExportedVariables(J,q),J.length>0)return!1}}return!0}function FB(Z,q,Q){var J;let Y=null;if(q.format==="system"){for(let{node:X}of Z)if(X.id instanceof l1&&X.init&&Q.length===0&&((J=q.exportNamesByVariable.get(X.id.variable))===null||J===void 0?void 0:J.length)===1)Y=X.id.variable,Q.push(Y);else X.id.addExportedVariables(Q,q.exportNamesByVariable);if(Q.length>1)Y=null;else if(Y)Q.length=0}return Y}function Y6(Z){return Z.id}function LB(Z,q){let Q=Z.filter((J)=>!!J.mappings);Z:while(Q.length>0){let Y=Q.pop().mappings[q.line-1];if(Y){let X=Y.filter((V)=>V.length>1),z=X[X.length-1];for(let V of X)if(V[0]>=q.column||V===z){q={column:V[3],line:V[2]+1};continue Z}}throw Error("Can't resolve original location of error.")}return q}function pY(Z,q){switch(q){case 1:return`# ${Z}`;case 2:return`## ${Z}`;case 3:return Z;default:return`${" ".repeat(q-4)}- ${Z}`}}function wB(Z,q=3){Z=pY(Z,q);let Q=jZ.memoryUsage().heapUsed,J=$2.now(),Y=U0.get(Z);if(Y===void 0)U0.set(Z,{memory:0,startMemory:Q,startTime:J,time:0,totalMemory:0});else Y.startMemory=Q,Y.startTime=J}function OB(Z,q=3){Z=pY(Z,q);let Q=U0.get(Z);if(Q!==void 0){let J=jZ.memoryUsage().heapUsed;Q.memory+=J-Q.startMemory,Q.time+=$2.now()-Q.startTime,Q.totalMemory=Math.max(Q.totalMemory,J)}}function NB(){let Z={};for(let[q,{memory:Q,time:J,totalMemory:Y}]of U0)Z[q]=[J,Q,Y];return Z}function CB(Z,q){for(let Q of RB)if(Q in Z){let J=`plugin ${q}`;if(Z.name)J+=` (${Z.name})`;J+=` - ${Q}`;let Y=Z[Q];Z[Q]=function(...X){a1(J,4);let z=Y.apply(this,X);if(i1(J,4),z&&typeof z.then==="function")return a1(`${J} (async)`,4),z.then((V)=>{return i1(`${J} (async)`,4),V});return z}}return Z}function IB(Z){if(Z.perf)U0=new Map,a1=wB,i1=OB,Z.plugins=Z.plugins.map(CB);else a1=x4,i1=x4}function F4(Z){Z.isExecuted=!0;let q=[Z],Q=new Set;for(let J of q)for(let Y of[...J.dependencies,...J.implicitlyLoadedBefore])if(!(Y instanceof A1)&&!Y.isExecuted&&(Y.info.moduleSideEffects||J.implicitlyLoadedBefore.has(Y))&&!Q.has(Y.id))Y.isExecuted=!0,Q.add(Y.id),q.push(Y)}function b9(Z,q,Q,J,Y=new Map){let X=Y.get(q);if(X){if(X.has(Z))return J?[null]:e(jU(q,Z.id));X.add(Z)}else Y.set(q,new Set([Z]));return Z.getVariableForExportName(q,{importerForSideEffects:Q,isExportAllSearch:J,searchedNamesAndModules:Y})}function _B(Z,q){let Q=v5(q.sideEffectDependenciesByVariable,Z,()=>new Set),J=Z,Y=new Set([J]);while(!0){let X=J.module;if(J=J instanceof g5?J.getDirectOriginalVariable():J instanceof G5?J.syntheticNamespace:null,!J||Y.has(J))break;Y.add(J),Q.add(X);let z=X.sideEffectDependenciesByVariable.get(J);if(z)for(let V of z)Q.add(V)}return Q}class S1{constructor(Z,q,Q,J,Y,X,z){this.graph=Z,this.id=q,this.options=Q,this.alternativeReexportModules=new Map,this.chunkFileNames=new Set,this.chunkNames=[],this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=new Map,this.importMetas=[],this.importedFromNotTreeshaken=!1,this.importers=[],this.includedDynamicImporters=[],this.includedImports=new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.needsExportShim=!1,this.sideEffectDependenciesByVariable=new Map,this.sources=new Set,this.usesTopLevelAwait=!1,this.allExportNames=null,this.ast=null,this.exportAllModules=[],this.exportAllSources=new Set,this.exportNamesByVariable=null,this.exportShimVariable=new cY(this),this.exports=new Map,this.namespaceReexportsByName=new Map,this.reexportDescriptions=new Map,this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.transitiveReexports=null,this.excludeFromSourcemap=/\0/.test(q),this.context=Q.moduleContext(q),this.preserveSignature=this.options.preserveEntrySignatures;let V=this,{dynamicImports:W,dynamicImporters:K,implicitlyLoadedAfter:$,implicitlyLoadedBefore:H,importers:M,reexportDescriptions:O,sources:L}=this;this.info={ast:null,code:null,get dynamicallyImportedIdResolutions(){return W.map(({argument:B})=>typeof B==="string"&&V.resolvedIds[B]).filter(Boolean)},get dynamicallyImportedIds(){return W.map(({id:B})=>B).filter((B)=>B!=null)},get dynamicImporters(){return K.sort()},get hasDefaultExport(){if(!V.ast)return null;return V.exports.has("default")||O.has("default")},get hasModuleSideEffects(){return j5("Accessing ModuleInfo.hasModuleSideEffects from plugins is deprecated. Please use ModuleInfo.moduleSideEffects instead.",!1,Q),this.moduleSideEffects},id:q,get implicitlyLoadedAfterOneOf(){return Array.from($,Y6).sort()},get implicitlyLoadedBefore(){return Array.from(H,Y6).sort()},get importedIdResolutions(){return Array.from(L,(B)=>V.resolvedIds[B]).filter(Boolean)},get importedIds(){return Array.from(L,(B)=>{var C;return(C=V.resolvedIds[B])===null||C===void 0?void 0:C.id}).filter(Boolean)},get importers(){return M.sort()},isEntry:J,isExternal:!1,get isIncluded(){if(Z.phase!==X8.GENERATE)return null;return V.isIncluded()},meta:{...z},moduleSideEffects:Y,syntheticNamedExports:X},Object.defineProperty(this.info,"hasModuleSideEffects",{enumerable:!1})}basename(){let Z=z8(this.id),q=J8(this.id);return NZ(q?Z.slice(0,-q.length):Z)}bindReferences(){this.ast.bind()}error(Z,q){return this.addLocationToLogProps(Z,q),e(Z)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;this.allExportNames=new Set([...this.exports.keys(),...this.reexportDescriptions.keys()]);for(let Z of this.exportAllModules){if(Z instanceof A1){this.allExportNames.add(`*${Z.id}`);continue}for(let q of Z.getAllExportNames())if(q!=="default")this.allExportNames.add(q)}if(typeof this.info.syntheticNamedExports==="string")this.allExportNames.delete(this.info.syntheticNamedExports);return this.allExportNames}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;this.relevantDependencies=new Set;let Z=new Set,q=new Set,Q=new Set(this.includedImports);if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0)for(let J of[...this.getReexports(),...this.getExports()]){let[Y]=this.getVariableForExportName(J);if(Y)Q.add(Y)}for(let J of Q){let Y=this.sideEffectDependenciesByVariable.get(J);if(Y)for(let X of Y)q.add(X);if(J instanceof G5)J=J.getBaseVariable();else if(J instanceof g5)J=J.getOriginalVariable();Z.add(J.module)}if(!this.options.treeshake||this.info.moduleSideEffects==="no-treeshake")for(let J of this.dependencies)this.relevantDependencies.add(J);else this.addRelevantSideEffectDependencies(this.relevantDependencies,Z,q);for(let J of Z)this.relevantDependencies.add(J);return this.relevantDependencies}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;let Z=new Map;for(let q of this.getAllExportNames()){let[Q]=this.getVariableForExportName(q);if(Q instanceof g5)Q=Q.getOriginalVariable();if(!Q||!(Q.included||Q instanceof X0))continue;let J=Z.get(Q);if(J)J.push(q);else Z.set(Q,[q])}return this.exportNamesByVariable=Z}getExports(){return Array.from(this.exports.keys())}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];let Z=new Set(this.reexportDescriptions.keys());for(let q of this.exportAllModules)if(q instanceof A1)Z.add(`*${q.id}`);else for(let Q of[...q.getReexports(),...q.getExports()])if(Q!=="default")Z.add(Q);return this.transitiveReexports=[...Z]}getRenderedExports(){let Z=[],q=[];for(let Q of this.exports.keys()){let[J]=this.getVariableForExportName(Q);(J&&J.included?Z:q).push(Q)}return{removedExports:q,renderedExports:Z}}getSyntheticNamespace(){if(this.syntheticNamespace===null)this.syntheticNamespace=void 0,[this.syntheticNamespace]=this.getVariableForExportName(typeof this.info.syntheticNamedExports==="string"?this.info.syntheticNamedExports:"default",{onlyExplicit:!0});if(!this.syntheticNamespace)return e(hU(this.id,this.info.syntheticNamedExports));return this.syntheticNamespace}getVariableForExportName(Z,{importerForSideEffects:q,isExportAllSearch:Q,onlyExplicit:J,searchedNamesAndModules:Y}=o6){var X;if(Z[0]==="*"){if(Z.length===1)return[this.namespace];return this.graph.modulesById.get(Z.slice(1)).getVariableForExportName("*")}let z=this.reexportDescriptions.get(Z);if(z){let[W]=b9(z.module,z.localName,q,!1,Y);if(!W)return this.error(KJ(z.localName,this.id,z.module.id),z.start);if(q)gJ(W,q,this);return[W]}let V=this.exports.get(Z);if(V){if(V===hJ)return[this.exportShimVariable];let W=V.localName,K=this.traceVariable(W,{importerForSideEffects:q,searchedNamesAndModules:Y});if(q)v5(q.sideEffectDependenciesByVariable,K,()=>new Set).add(this),gJ(K,q,this);return[K]}if(J)return[null];if(Z!=="default"){let W=(X=this.namespaceReexportsByName.get(Z))!==null&&X!==void 0?X:this.getVariableFromNamespaceReexports(Z,q,Y);if(this.namespaceReexportsByName.set(Z,W),W[0])return W}if(this.info.syntheticNamedExports)return[v5(this.syntheticExports,Z,()=>new G5(this.astContext,Z,this.getSyntheticNamespace()))];if(!Q){if(this.options.shimMissingExports)return this.shimMissingExport(Z),[this.exportShimVariable]}return[null]}hasEffects(){return this.info.moduleSideEffects==="no-treeshake"||this.ast.included&&this.ast.hasEffects(s4())}include(){let Z=s9();if(this.ast.shouldBeIncluded(Z))this.ast.include(Z,!1)}includeAllExports(Z){if(!this.isExecuted)F4(this),this.graph.needsTreeshakingPass=!0;for(let q of this.exports.keys())if(Z||q!==this.info.syntheticNamedExports){let Q=this.getVariableForExportName(q)[0];if(Q.deoptimizePath(D1),!Q.included)this.includeVariable(Q)}for(let q of this.getReexports()){let[Q]=this.getVariableForExportName(q);if(Q){if(Q.deoptimizePath(D1),!Q.included)this.includeVariable(Q);if(Q instanceof X0)Q.module.reexported=!0}}if(Z)this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces())}includeAllInBundle(){this.ast.include(s9(),!0),this.includeAllExports(!1)}isIncluded(){return this.ast.included||this.namespace.included||this.importedFromNotTreeshaken}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);let Z=[];for(let q of this.exportAllSources){let Q=this.graph.modulesById.get(this.resolvedIds[q].id);if(Q instanceof A1){Z.push(Q);continue}this.exportAllModules.push(Q)}this.exportAllModules.push(...Z)}render(Z){let q=this.magicString.clone();return this.ast.render(q,Z),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,q}setSource({ast:Z,code:q,customTransformCache:Q,originalCode:J,originalSourcemap:Y,resolvedIds:X,sourcemapChain:z,transformDependencies:V,transformFiles:W,...K}){if(this.info.code=q,this.originalCode=J,this.originalSourcemap=Y,this.sourcemapChain=z,W)this.transformFiles=W;if(this.transformDependencies=V,this.customTransformCache=Q,this.updateOptions(K),a1("generate ast",3),!Z)Z=this.tryParse();i1("generate ast",3),this.resolvedIds=X||Object.create(null);let $=this.id;this.magicString=new P8(q,{filename:this.excludeFromSourcemap?null:$,indentExclusionRanges:[]}),a1("analyse ast",3),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),code:q,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:$,getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getNodeConstructor:(H)=>vJ[H]||vJ.UnknownNode,getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeAllExports:()=>this.includeAllExports(!0),includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),magicString:this.magicString,module:this,moduleContext:this.context,options:this.options,requestTreeshakingPass:()=>this.graph.needsTreeshakingPass=!0,traceExport:(H)=>this.getVariableForExportName(H)[0],traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1,warn:this.warn.bind(this)},this.scope=new tZ(this.graph.scope,this.astContext),this.namespace=new J6(this.astContext),this.ast=new sZ(Z,{context:this.astContext,type:"Module"},this.scope),this.info.ast=Z,i1("analyse ast",3)}toJSON(){return{ast:this.ast.esTreeNode,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,Y6),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(Z,{importerForSideEffects:q,isExportAllSearch:Q,searchedNamesAndModules:J}=o6){let Y=this.scope.variables.get(Z);if(Y)return Y;let X=this.importDescriptions.get(Z);if(X){let z=X.module;if(z instanceof S1&&X.name==="*")return z.namespace;let[V]=b9(z,X.name,q||this,Q,J);if(!V)return this.error(KJ(X.name,this.id,z.id),X.start);return V}return null}tryParse(){try{return this.graph.contextParse(this.info.code)}catch(Z){let q=Z.message.replace(/ \(\d+:\d+\)$/,"");if(this.id.endsWith(".json"))q+=" (Note that you need @rollup/plugin-json to import JSON files)";else if(!this.id.endsWith(".js"))q+=" (Note that you need plugins to import files that are not JavaScript)";return this.error({code:"PARSE_ERROR",message:q,parserError:Z},Z.pos)}}updateOptions({meta:Z,moduleSideEffects:q,syntheticNamedExports:Q}){if(q!=null)this.info.moduleSideEffects=q;if(Q!=null)this.info.syntheticNamedExports=Q;if(Z!=null)Object.assign(this.info.meta,Z)}warn(Z,q){this.addLocationToLogProps(Z,q),this.options.onwarn(Z)}addDynamicImport(Z){let q=Z.source;if(q instanceof rZ){if(q.quasis.length===1&&q.quasis[0].value.cooked)q=q.quasis[0].value.cooked}else if(q instanceof V6&&typeof q.value==="string")q=q.value;this.dynamicImports.push({argument:q,id:null,node:Z,resolution:null})}addExport(Z){if(Z instanceof R0)this.exports.set("default",{identifier:Z.variable.getAssignedVariableName(),localName:"default"});else if(Z instanceof Q7){let q=Z.source.value;if(this.sources.add(q),Z.exported){let Q=Z.exported.name;this.reexportDescriptions.set(Q,{localName:"*",module:null,source:q,start:Z.start})}else this.exportAllSources.add(q)}else if(Z.source instanceof V6){let q=Z.source.value;this.sources.add(q);for(let Q of Z.specifiers){let J=Q.exported.name;this.reexportDescriptions.set(J,{localName:Q.local.name,module:null,source:q,start:Q.start})}}else if(Z.declaration){let q=Z.declaration;if(q instanceof eZ)for(let Q of q.declarations)for(let J of _j(Q.id))this.exports.set(J,{identifier:null,localName:J});else{let Q=q.id.name;this.exports.set(Q,{identifier:null,localName:Q})}}else for(let q of Z.specifiers){let Q=q.local.name,J=q.exported.name;this.exports.set(J,{identifier:null,localName:Q})}}addImport(Z){let q=Z.source.value;this.sources.add(q);for(let Q of Z.specifiers){let J=Q.type===bj,Y=Q.type===xj,X=J?"default":Y?"*":Q.imported.name;this.importDescriptions.set(Q.local.name,{module:null,name:X,source:q,start:Q.start})}}addImportMeta(Z){this.importMetas.push(Z)}addLocationToLogProps(Z,q){Z.id=this.id,Z.pos=q;let Q=this.info.code,J=M2(Q,q,{offsetLine:1});if(J){let{column:Y,line:X}=J;try{({column:Y,line:X}=LB(this.sourcemapChain,{column:Y,line:X})),Q=this.originalCode}catch(z){this.options.onwarn({code:"SOURCEMAP_ERROR",id:this.id,loc:{column:Y,file:this.id,line:X},message:`Error when using sourcemap for reporting an error: ${z.message}`,pos:q})}_4(Z,{column:Y,line:X},Q,this.id)}}addModulesToImportDescriptions(Z){for(let q of Z.values()){let{id:Q}=this.resolvedIds[q.source];q.module=this.graph.modulesById.get(Q)}}addRelevantSideEffectDependencies(Z,q,Q){let J=new Set,Y=(X)=>{for(let z of X){if(J.has(z))continue;if(J.add(z),q.has(z)){Z.add(z);continue}if(!(z.info.moduleSideEffects||Q.has(z)))continue;if(z instanceof A1||z.hasEffects()){Z.add(z);continue}Y(z.dependencies)}};Y(this.dependencies),Y(Q)}getVariableFromNamespaceReexports(Z,q,Q){let J=null,Y=new Map,X=new Set;for(let z of this.exportAllModules){if(z.info.syntheticNamedExports===Z)continue;let[V,W]=b9(z,Z,q,!0,DB(Q));if(z instanceof A1||W)X.add(V);else if(V instanceof G5){if(!J)J=V}else if(V)Y.set(V,z)}if(Y.size>0){let z=[...Y],V=z[0][0];if(z.length===1)return[V];return this.options.onwarn(xU(Z,this.id,z.map(([,W])=>W.id))),[null]}if(X.size>0){let z=[...X],V=z[0];if(z.length>1)this.options.onwarn(kU(Z,this.id,V.module.id,z.map((W)=>W.module.id)));return[V,!0]}if(J)return[J];return[null]}includeAndGetAdditionalMergedNamespaces(){let Z=new Set,q=new Set;for(let Q of[this,...this.exportAllModules])if(Q instanceof A1){let[J]=Q.getVariableForExportName("*");J.include(),this.includedImports.add(J),Z.add(J)}else if(Q.info.syntheticNamedExports){let J=Q.getSyntheticNamespace();J.include(),this.includedImports.add(J),q.add(J)}return[...q,...Z]}includeDynamicImport(Z){let q=this.dynamicImports.find((Q)=>Q.node===Z).resolution;if(q instanceof S1)q.includedDynamicImporters.push(this),q.includeAllExports(!0)}includeVariable(Z){if(!Z.included){Z.include(),this.graph.needsTreeshakingPass=!0;let q=Z.module;if(q instanceof S1){if(!q.isExecuted)F4(q);if(q!==this){let Q=_B(Z,this);for(let J of Q)if(!J.isExecuted)F4(J)}}}}includeVariableInModule(Z){this.includeVariable(Z);let q=Z.module;if(q&&q!==this)this.includedImports.add(Z)}shimMissingExport(Z){this.options.onwarn({code:"SHIMMED_EXPORT",exporter:V1(this.id),exportName:Z,message:`Missing export "${Z}" has been shimmed in module ${V1(this.id)}.`}),this.exports.set(Z,hJ)}}function gJ(Z,q,Q){if(Z.module instanceof S1&&Z.module!==Q){let J=Z.module.cycles;if(J.size>0){let Y=Q.cycles;for(let X of Y)if(J.has(X)){q.alternativeReexportModules.set(Z,Q);break}}}}function iY(Z){return Z.endsWith(".js")?Z.slice(0,-3):Z}function nY(Z,q){if(Z.autoId)return`${Z.basePath?Z.basePath+"/":""}${iY(q)}`;return Z.id||""}function Y7(Z,q,Q,J,Y,X,z,V="return "){let{_:W,cnst:K,getDirectReturnFunction:$,getFunctionIntro:H,getPropertyAccess:M,n:O,s:L}=Y;if(!Q)return`${O}${O}${V}${TB(Z,q,J,z,M)};`;let B="";for(let{defaultVariableName:C,id:y,isChunk:P,name:_,namedExportsMode:v,namespaceVariableName:h,reexports:d}of q)if(d&&Q){for(let E of d)if(E.reexported!=="*"){let N=sY(_,E.imported,v,P,C,h,J,y,z,M);if(B)B+=O;if(E.imported!=="*"&&E.needsLiveBinding){let[A,T]=$([],{functionReturn:!0,lineBreakIndent:null,name:null});B+=`Object.defineProperty(exports,${W}'${E.reexported}',${W}{${O}${X}enumerable:${W}true,${O}${X}get:${W}${A}${N}${T}${O}});`}else B+=`exports${M(E.reexported)}${W}=${W}${N};`}}for(let{exported:C,local:y}of Z){let P=`exports${M(C)}`,_=y;if(P!==_){if(B)B+=O;B+=`${P}${W}=${W}${_};`}}for(let{name:C,reexports:y}of q)if(y&&Q){for(let P of y)if(P.reexported==="*"){if(B)B+=O;let _=`{${O}${X}if${W}(k${W}!==${W}'default'${W}&&${W}!exports.hasOwnProperty(k))${W}${AB(C,P.needsLiveBinding,X,Y)}${L}${O}}`;B+=K==="var"&&P.needsLiveBinding?`Object.keys(${C}).forEach(${H(["k"],{isAsync:!1,name:null})}${_});`:`for${W}(${K} k in ${C})${W}${_}`}}if(B)return`${O}${O}${B}`;return""}function TB(Z,q,Q,J,Y){if(Z.length>0)return Z[0].local;else for(let{defaultVariableName:X,id:z,isChunk:V,name:W,namedExportsMode:K,namespaceVariableName:$,reexports:H}of q)if(H)return sY(W,H[0].imported,K,V,X,$,Q,z,J,Y)}function sY(Z,q,Q,J,Y,X,z,V,W,K){if(q==="default"){if(!J){let $=String(z(V)),H=C0[$]?Y:Z;return J7($,W)?`${H}${K("default")}`:H}return Q?`${Z}${K("default")}`:Z}if(q==="*")return(J?!Q:I0[String(z(V))])?X:Z;return`${Z}${K(q)}`}function mJ(Z){return Z([["value","true"]],{lineBreakIndent:null})}function X7(Z,q,Q,{_:J,getObject:Y}){if(Z){if(q){if(Q)return`Object.defineProperties(exports,${J}${Y([["__esModule",mJ(Y)],[null,`[Symbol.toStringTag]:${J}${G0(Y)}`]],{lineBreakIndent:null})});`;return`Object.defineProperty(exports,${J}'__esModule',${J}${mJ(Y)});`}if(Q)return`Object.defineProperty(exports,${J}Symbol.toStringTag,${J}${G0(Y)});`}return""}function z7(Z,q,Q,J,Y,X,z,V){let{_:W,cnst:K,n:$}=V,H=new Set,M=[],O=(L,B,C)=>{H.add(B),M.push(`${K} ${L}${W}=${W}/*#__PURE__*/${B}(${C});`)};for(let{defaultVariableName:L,imports:B,id:C,isChunk:y,name:P,namedExportsMode:_,namespaceVariableName:v,reexports:h}of Z)if(y){for(let{imported:d,reexported:E}of[...B||[],...h||[]])if(d==="*"&&E!=="*"){if(!_)O(v,$0,P);break}}else{let d=String(q(C)),E=!1,N=!1;for(let{imported:A,reexported:T}of[...B||[],...h||[]]){let j,x;if(A==="default"){if(!E){if(E=!0,L!==v)x=L,j=C0[d]}}else if(A==="*"&&T!=="*"){if(!N)N=!0,j=I0[d],x=v}if(j)O(x,j,P)}}return`${nZ(H,X,z,V,Q,J,Y)}${M.length>0?`${M.join($)}${$}${$}`:""}`}function PB(Z){return Z.endsWith(".js")?Z:Z+".js"}function aY(Z,q){if(Z[0]!==".")return Z;return q?PB(Z):iY(Z)}function Z3(Z,q){let Q=q.map(({id:J})=>J).filter((J)=>(J in SB));if(!Q.length)return;Z({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in modules (${V8(Q)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`,modules:Q})}function yB(Z,{accessedGlobals:q,dependencies:Q,exports:J,hasExports:Y,id:X,indent:z,intro:V,isEntryFacade:W,isModuleFacade:K,namedExportsMode:$,outro:H,snippets:M,warn:O},{amd:L,esModule:B,externalLiveBindings:C,freeze:y,interop:P,namespaceToStringTag:_,strict:v}){Z3(O,Q);let h=Q.map((G)=>`'${aY(G.id,L.forceJsExtensionForImports)}'`),d=Q.map((G)=>G.name),{n:E,getNonArrowFunctionIntro:N,_:A}=M;if($&&Y)d.unshift("exports"),h.unshift("'exports'");if(q.has("require"))d.unshift("require"),h.unshift("'require'");if(q.has("module"))d.unshift("module"),h.unshift("'module'");let T=nY(L,X),j=(T?`'${T}',${A}`:"")+(h.length?`[${h.join(`,${A}`)}],${A}`:""),x=v?`${A}'use strict';`:"";Z.prepend(`${V}${z7(Q,P,C,y,_,q,z,M)}`);let b=Y7(J,Q,$,P,M,z,C),S=X7($&&Y,W&&B,K&&_,M);if(S)S=E+E+S;return Z.append(`${b}${S}${H}`),Z.indent(z).prepend(`${L.define}(${j}(${N(d,{isAsync:!1,name:null})}{${x}${E}${E}`).append(`${E}${E}}));`)}function EB(Z,{accessedGlobals:q,dependencies:Q,exports:J,hasExports:Y,indent:X,intro:z,isEntryFacade:V,isModuleFacade:W,namedExportsMode:K,outro:$,snippets:H},{compact:M,esModule:O,externalLiveBindings:L,freeze:B,interop:C,namespaceToStringTag:y,strict:P}){let{_,n:v}=H,h=P?`'use strict';${v}${v}`:"",d=X7(K&&Y,V&&O,W&&y,H);if(d)d+=v+v;let E=bB(Q,H,M),N=z7(Q,C,L,B,y,q,X,H);Z.prepend(`${h}${z}${d}${E}${N}`);let A=Y7(J,Q,K,C,H,X,L,`module.exports${_}=${_}`);return Z.append(`${A}${$}`)}function bB(Z,{_:q,cnst:Q,n:J},Y){let X="",z=!1;for(let{id:V,name:W,reexports:K,imports:$}of Z)if(!K&&!$){if(X)X+=Y&&!z?",":`;${J}`;z=!1,X+=`require('${V}')`}else X+=Y&&z?",":`${X?`;${J}`:""}${Q} `,z=!0,X+=`${W}${q}=${q}require('${V}')`;if(X)return`${X};${J}${J}`;return""}function xB(Z,{accessedGlobals:q,indent:Q,intro:J,outro:Y,dependencies:X,exports:z,snippets:V},{externalLiveBindings:W,freeze:K,namespaceToStringTag:$}){let{_:H,n:M}=V,O=kB(X,H);if(O.length>0)J+=O.join(M)+M+M;if(J+=nZ(null,q,Q,V,W,K,$),J)Z.prepend(J);let L=fB(z,V);if(L.length)Z.append(M+M+L.join(M).trim());if(Y)Z.append(Y);return Z.trim()}function kB(Z,q){let Q=[];for(let{id:J,reexports:Y,imports:X,name:z}of Z){if(!Y&&!X){Q.push(`import${q}'${J}';`);continue}if(X){let V=null,W=null,K=[];for(let $ of X)if($.imported==="default")V=$;else if($.imported==="*")W=$;else K.push($);if(W)Q.push(`import${q}*${q}as ${W.local} from${q}'${J}';`);if(V&&K.length===0)Q.push(`import ${V.local} from${q}'${J}';`);else if(K.length>0)Q.push(`import ${V?`${V.local},${q}`:""}{${q}${K.map(($)=>{if($.imported===$.local)return $.imported;else return`${$.imported} as ${$.local}`}).join(`,${q}`)}${q}}${q}from${q}'${J}';`)}if(Y){let V=null,W=[],K=[];for(let $ of Y)if($.reexported==="*")V=$;else if($.imported==="*")W.push($);else K.push($);if(V)Q.push(`export${q}*${q}from${q}'${J}';`);if(W.length>0){if(!X||!X.some(($)=>$.imported==="*"&&$.local===z))Q.push(`import${q}*${q}as ${z} from${q}'${J}';`);for(let $ of W)Q.push(`export${q}{${q}${z===$.reexported?z:`${z} as ${$.reexported}`} };`)}if(K.length>0)Q.push(`export${q}{${q}${K.map(($)=>{if($.imported===$.reexported)return $.imported;else return`${$.imported} as ${$.reexported}`}).join(`,${q}`)}${q}}${q}from${q}'${J}';`)}}return Q}function fB(Z,{_:q,cnst:Q}){let J=[],Y=[];for(let X of Z){if(X.expression)J.push(`${Q} ${X.local}${q}=${q}${X.expression};`);Y.push(X.exported===X.local?X.local:`${X.local} as ${X.exported}`)}if(Y.length)J.push(`export${q}{${q}${Y.join(`,${q}`)}${q}};`);return J}function vB(Z,q,Q,{_:J,getPropertyAccess:Y,s:X},z){let V=Z.split(".");V[0]=(typeof Q==="function"?Q(V[0]):Q[V[0]])||V[0],V.pop();let W=q;return V.map((K)=>{return W+=Y(K),`${W}${J}=${J}${W}${J}||${J}{}${X}`}).join(z?",":`
|
|
20
20
|
`)+(z&&V.length?";":`
|
|
21
|
-
`)}function x9(Z,J,q,Q,{_:Y,getPropertyAccess:X}){let z=Z.split(".");z[0]=(typeof q==="function"?q(z[0]):q[z[0]])||z[0];let V=z.pop(),W=J,K=z.map(($)=>{return W+=X($),`${W}${Y}=${Y}${W}${Y}||${Y}{}`}).concat(`${W}${X(V)}`).join(`,${Y}`)+`${Y}=${Y}${Q}`;if(z.length>0)K=`(${K})`;return K}function sY(Z){let J=Z.length;while(J--){let{imports:q,reexports:Q}=Z[J];if(q||Q)return Z.slice(0,J+1)}return[]}function hB(Z,{accessedGlobals:J,dependencies:q,exports:Q,hasExports:Y,indent:X,intro:z,namedExportsMode:V,outro:W,snippets:K,warn:$},{compact:H,esModule:M,extend:O,freeze:j,externalLiveBindings:L,globals:I,interop:y,name:_,namespaceToStringTag:T,strict:g}){let{_:h,getNonArrowFunctionIntro:u,getPropertyAccess:E,n:N}=K,P=_&&_.includes("."),A=!O&&!P;if(_&&A&&!nU(_))return e({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${_}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});Z3($,q);let B=sY(q),b=B.map((t)=>t.globalName||"null"),k=B.map((t)=>t.name);if(Y&&!_)$({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.'});if(V&&Y)if(O)b.unshift(`this${L4(_,E)}${h}=${h}this${L4(_,E)}${h}||${h}{}`),k.unshift("exports");else b.unshift("{}"),k.unshift("exports");let S=g?`${X}'use strict';${N}`:"",G=z7(q,y,L,j,T,J,X,K);Z.prepend(`${z}${G}`);let F=`(${u(k,{isAsync:!1,name:null})}{${N}${S}${N}`;if(Y){if(_&&!(O&&V))F=(A?`var ${_}`:`this${L4(_,E)}`)+`${h}=${h}${F}`;if(P)F=vB(_,"this",I,K,H)+F}let d=`${N}${N}})(${b.join(`,${h}`)});`;if(Y&&!O&&V)d=`${N}${N}${X}return exports;${d}`;let f=Y7(Q,q,V,y,K,X,L),o=X7(V&&Y,M,T,K);if(o)o=N+N+o;return Z.append(`${f}${o}${W}`),Z.indent(X).prepend(F).append(d)}function gB(Z,{accessedGlobals:J,dependencies:q,exports:Q,hasExports:Y,indent:X,intro:z,snippets:V,outro:W,usesTopLevelAwait:K},{externalLiveBindings:$,freeze:H,name:M,namespaceToStringTag:O,strict:j,systemNullSetters:L}){let{_:I,getFunctionIntro:y,getNonArrowFunctionIntro:_,n:T,s:g}=V,{importBindings:h,setters:u,starExcludes:E}=mB(q,Q,X,V),N=M?`'${M}',${I}`:"",P=J.has("module")?["exports","module"]:Y?["exports"]:[],A=`System.register(${N}[`+q.map(({id:b})=>`'${b}'`).join(`,${I}`)+`],${I}(${_(P,{isAsync:!1,name:null})}{${T}${X}${j?"'use strict';":""}`+dB(E,X,V)+lB(h,X,V)+`${T}${X}return${I}{${u.length?`${T}${X}${X}setters:${I}[${u.map((b)=>b?`${y(["module"],{isAsync:!1,name:null})}{${T}${X}${X}${X}${b}${T}${X}${X}}`:L?"null":`${y([],{isAsync:!1,name:null})}{}`).join(`,${I}`)}],`:""}${T}`;A+=`${X}${X}execute:${I}(${_([],{isAsync:K,name:null})}{${T}${T}`;let B=`${X}${X}})${T}${X}}${g}${T}}));`;return Z.prepend(z+nZ(null,J,X,V,$,H,O)+cB(Q,X,V)),Z.append(`${W}${T}${T}`+pB(Q,X,V)+iB(Q,X,V)),Z.indent(`${X}${X}${X}`).append(B).prepend(A)}function mB(Z,J,q,{_:Q,cnst:Y,getObject:X,getPropertyAccess:z,n:V}){let W=[],K=[],$=null;for(let{imports:H,reexports:M}of Z){let O=[];if(H)for(let j of H)if(W.push(j.local),j.imported==="*")O.push(`${j.local}${Q}=${Q}module;`);else O.push(`${j.local}${Q}=${Q}module${z(j.imported)};`);if(M){let j=[],L=!1;for(let{imported:I,reexported:y}of M)if(y==="*")L=!0;else j.push([y,I==="*"?"module":`module${z(I)}`]);if(j.length>1||L){let I=X(j,{lineBreakIndent:null});if(L){if(!$)$=uB({dependencies:Z,exports:J});O.push(`${Y} setter${Q}=${Q}${I};`,`for${Q}(${Y} name in module)${Q}{`,`${q}if${Q}(!_starExcludes[name])${Q}setter[name]${Q}=${Q}module[name];`,"}","exports(setter);")}else O.push(`exports(${I});`)}else{let[I,y]=j[0];O.push(`exports('${I}',${Q}${y});`)}}K.push(O.join(`${V}${q}${q}${q}`))}return{importBindings:W,setters:K,starExcludes:$}}function J3(Z,J,{_:q,n:Q}){if(Z.length===0)return"";if(Z.length===1)return`exports('${Z[0].name}',${q}${Z[0].value});${Q}${Q}`;return`exports({${Q}`+Z.map(({name:Y,value:X})=>`${J}${Y}:${q}${X}`).join(`,${Q}`)+`${Q}});${Q}${Q}`}function k9(Z,J,q){if(!Z)return"null";return`${J}${L4(Z,q)}`}function nB(Z,J,{_:q,getPropertyAccess:Q}){let Y=J;return Z.split(".").map((X)=>Y+=Q(X)).join(`${q}&&${q}`)}function aB(Z,{accessedGlobals:J,dependencies:q,exports:Q,hasExports:Y,id:X,indent:z,intro:V,namedExportsMode:W,outro:K,snippets:$,warn:H},{amd:M,compact:O,esModule:j,extend:L,externalLiveBindings:I,freeze:y,interop:_,name:T,namespaceToStringTag:g,globals:h,noConflict:u,strict:E}){let{_:N,cnst:P,getFunctionIntro:A,getNonArrowFunctionIntro:B,getPropertyAccess:b,n:k,s:S}=$,G=O?"f":"factory",F=O?"g":"global";if(Y&&!T)return e({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.'});Z3(H,q);let d=q.map(($5)=>`'${aY($5.id,M.forceJsExtensionForImports)}'`),f=q.map(($5)=>`require('${$5.id}')`),o=sY(q),t=o.map(($5)=>k9($5.globalName,F,b)),Q1=o.map(($5)=>$5.name);if(W&&(Y||u))d.unshift("'exports'"),f.unshift("exports"),t.unshift(x9(T,F,h,`${L?`${k9(T,F,b)}${N}||${N}`:""}{}`,$)),Q1.unshift("exports");let N1=iY(M,X),R1=(N1?`'${N1}',${N}`:"")+(d.length?`[${d.join(`,${N}`)}],${N}`:""),F1=M.define,s=!W&&Y?`module.exports${N}=${N}`:"",m=E?`${N}'use strict';${k}`:"",L1;if(u){let $5=O?"e":"exports",m7;if(!W&&Y)m7=`${P} ${$5}${N}=${N}${x9(T,F,h,`${G}(${t.join(`,${N}`)})`,$)};`;else{let vW=t.shift();m7=`${P} ${$5}${N}=${N}${vW};${k}${z}${z}${G}(${[$5].concat(t).join(`,${N}`)});`}L1=`(${A([],{isAsync:!1,name:null})}{${k}${z}${z}${P} current${N}=${N}${nB(T,F,$)};${k}${z}${z}${m7}${k}${z}${z}${$5}.noConflict${N}=${N}${A([],{isAsync:!1,name:null})}{${N}${k9(T,F,b)}${N}=${N}current;${N}return ${$5}${S}${N}};${k}${z}})()`}else if(L1=`${G}(${t.join(`,${N}`)})`,!W&&Y)L1=x9(T,F,h,L1,$);let p=Y||u&&W||t.length>0,D=[G];if(p)D.unshift(F);let x=p?`this,${N}`:"",C=p?`(${F}${N}=${N}typeof globalThis${N}!==${N}'undefined'${N}?${N}globalThis${N}:${N}${F}${N}||${N}self,${N}`:"",v=p?")":"",c=p?`${z}typeof exports${N}===${N}'object'${N}&&${N}typeof module${N}!==${N}'undefined'${N}?${N}${s}${G}(${f.join(`,${N}`)})${N}:${k}`:"",n=`(${B(D,{isAsync:!1,name:null})}{${k}`+c+`${z}typeof ${F1}${N}===${N}'function'${N}&&${N}${F1}.amd${N}?${N}${F1}(${R1}${G})${N}:${k}${z}${C}${L1}${v};${k}})(${x}(${B(Q1,{isAsync:!1,name:null})}{${m}${k}`,i=k+k+"}));";Z.prepend(`${V}${z7(q,_,I,y,g,J,z,$)}`);let B1=Y7(Q,q,W,_,$,z,I),_1=X7(W&&Y,j,g,$);if(_1)_1=k+k+_1;return Z.append(`${B1}${_1}${K}`),Z.trim().indent(z).append(i).prepend(n)}class YZ{constructor(Z,J){this.isOriginal=!0,this.filename=Z,this.content=J}traceSegment(Z,J,q){return{column:J,line:Z,name:q,source:this}}}class j0{constructor(Z,J){this.sources=J,this.names=Z.names,this.mappings=Z.mappings}traceMappings(){let Z=[],J=new Map,q=[],Q=[],Y=new Map,X=[];for(let z of this.mappings){let V=[];for(let W of z){if(W.length===1)continue;let K=this.sources[W[1]];if(!K)continue;let $=K.traceSegment(W[2],W[3],W.length===5?this.names[W[4]]:"");if($){let{column:H,line:M,name:O,source:{content:j,filename:L}}=$,I=J.get(L);if(I===void 0)I=Z.length,Z.push(L),J.set(L,I),q[I]=j;else if(q[I]==null)q[I]=j;else if(j!=null&&q[I]!==j)return e({message:`Multiple conflicting contents for sourcemap source ${L}`});let y=[W[0],I,M,H];if(O){let _=Y.get(O);if(_===void 0)_=Q.length,Q.push(O),Y.set(O,_);y[4]=_}V.push(y)}}X.push(V)}return{mappings:X,names:Q,sources:Z,sourcesContent:q}}traceSegment(Z,J,q){let Q=this.mappings[Z];if(!Q)return null;let Y=0,X=Q.length-1;while(Y<=X){let z=Y+X>>1,V=Q[z];if(V[0]===J||Y===X){if(V.length==1)return null;let W=this.sources[V[1]];if(!W)return null;return W.traceSegment(V[2],V[3],V.length===5?this.names[V[4]]:q)}if(V[0]>J)X=z-1;else Y=z+1}return null}}function rY(Z){return function(q,Q){if(Q.mappings)return new j0(Q,[q]);return Z({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin (${Q.plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:Q.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new j0({mappings:[],names:[]},[q])}}function oY(Z,J,q,Q,Y){let X;if(!q)X=new YZ(Z,J);else{let z=q.sources,V=q.sourcesContent||[],W=f5(Z)||".",K=q.sourceRoot||".",$=z.map((H,M)=>new YZ(U5(W,K,H),V[M]));X=new j0(q,$)}return Q.reduce(Y,X)}function rB(Z,J,q,Q,Y,X){let z=rY(X),V=q.filter((j)=>!j.excludeFromSourcemap).map((j)=>oY(j.id,j.originalCode,j.originalSourcemap,j.sourcemapChain,z)),W=new j0(J,V),K=Q.reduce(z,W),{sources:$,sourcesContent:H,names:M,mappings:O}=K.traceMappings();if(Z){let j=f5(Z);$=$.map((L)=>UZ(j,L)),Z=z8(Z)}return H=Y?null:H,new H0({file:Z,mappings:O,names:M,sources:$,sourcesContent:H})}function oB(Z,J,q,Q,Y){if(!Q.length)return q;return{version:3,...oY(Z,J,q,Q,rY(Y)).traceMappings()}}function eB(Z,J,q,Q,Y,X,z,V,W,K,$,H,M){let O=Z.slice().reverse();for(let j of O)j.scope.addUsedOutsideNames(Q,Y,$,H);ZM(Q,O,M),tB[Y](Q,q,J,X,z,V,W,K);for(let j of O)j.scope.deconflict(Y,$,H)}function mQ(Z,J,q,Q,Y,X,z,V){for(let W of q.dependencies)if(Y||W instanceof A1)W.variableName=k5(W.suggestedVariableName,Z);for(let W of J){let{module:K,name:$}=W;if(W.isNamespace&&(Y||K instanceof A1))W.setRenderNames(null,(K instanceof A1?K:z.get(K)).variableName);else if(K instanceof A1&&$==="default")W.setRenderNames(null,k5([...K.exportedVariables].some(([H,M])=>M==="*"&&H.included)?K.suggestedVariableName+"__default":K.suggestedVariableName,Z));else W.setRenderNames(null,k5($,Z))}for(let W of V)W.setRenderNames(null,k5(W.name,Z))}function G4(Z,J,{deconflictedDefault:q,deconflictedNamespace:Q,dependencies:Y},X,z,V,W){for(let K of Y)K.variableName=k5(K.suggestedVariableName,Z);for(let K of Q)K.namespaceVariableName=k5(`${K.suggestedVariableName}__namespace`,Z);for(let K of q)if(Q.has(K)&&zB(String(X(K.id)),V))K.defaultVariableName=K.namespaceVariableName;else K.defaultVariableName=k5(`${K.suggestedVariableName}__default`,Z);for(let K of J){let $=K.module;if($ instanceof A1){let H=K.name;if(H==="default"){let M=String(X($.id)),O=C0[M]?$.defaultVariableName:$.variableName;if(Q7(M,V))K.setRenderNames(O,"default");else K.setRenderNames(null,O)}else if(H==="*")K.setRenderNames(null,I0[String(X($.id))]?$.namespaceVariableName:$.variableName);else K.setRenderNames($.variableName,null)}else{let H=W.get($);if(z&&K.isNamespace)K.setRenderNames(null,H.exportMode==="default"?H.namespaceVariableName:H.variableName);else if(H.exportMode==="default")K.setRenderNames(null,H.variableName);else K.setRenderNames(H.variableName,H.getVariableExportName(K))}}}function ZM(Z,J,q){for(let Q of J){for(let Y of Q.scope.variables.values())if(Y.included&&!(Y.renderBaseName||Y instanceof g5&&Y.getOriginalVariable()!==Y))Y.setRenderNames(null,k5(Y.name,Z));if(q.has(Q)){let Y=Q.namespace;Y.setRenderNames(null,k5(Y.name,Z))}}}function U4(Z){if(!Z.match(JM))return Z;return Z.replace(QM,"\\\\").replace(qM,"\\$1")}function YM(Z,J,q){let Q=0;for(let Y of Z){let[X]=Y.name;if(J.has(X))do if(X=t9(++Q),X.charCodeAt(0)===49)Q+=9*64**(X.length-1),X=t9(Q);while(l4.has(X)||J.has(X));J.set(X,Y),q.set(Y,[X])}}function XM(Z,J,q){for(let Q of Z){let Y=0,X=Q.name;while(J.has(X))X=Q.name+"$"+ ++Y;J.set(X,Q),q.set(Q,[X])}}function zM(Z,{exports:J,name:q,format:Q},Y,X,z){let V=Z.getExportNames();if(J==="default"){if(V.length!==1||V[0]!=="default")return e(VQ("default",V,X))}else if(J==="none"&&V.length)return e(VQ("none",V,X));if(J==="auto")if(V.length===0)J="none";else if(V.length===1&&V[0]==="default"){if(Q==="cjs"&&Y.has("exports"))z(vU(X));J="default"}else{if(Q!=="es"&&Q!=="system"&&V.includes("default"))z(bU(X,q));J="named"}return J}function VM(Z){let J=Z.split(`
|
|
22
|
-
`),q=J.filter((X)=>/^\t+/.test(X)),Q=J.filter((X)=>/^ {2,}/.test(X));if(q.length===0&&Q.length===0)return null;if(q.length>=Q.length)return"\t";let Y=Q.reduce((X,z)=>{let V=/^ +/.exec(z)[0].length;return Math.min(V,X)},1/0);return Array(Y+1).join(" ")}function WM(Z,J){if(J.indent!==!0)return J.indent;for(let q of Z){let Q=VM(q.originalCode);if(Q!==null)return Q}return"\t"}function KM(Z,J,q){let Q=[],Y=new Set;for(let z=J.length-1;z>=0;z--){let V=J[z];if(!Y.has(V)){let W=[];tY(V,W,Y,Z,q),Q.unshift(W)}}let X=new Set;for(let z of Q)for(let V of z)X.add(V);return X}function tY(Z,J,q,Q,Y){let X=Z.getDependenciesToBeIncluded();for(let z of X){if(z instanceof A1){J.push(z);continue}let V=Y.get(z);if(V!==Q){J.push(V);continue}if(!q.has(z))q.add(z),tY(z,J,q,Q,Y)}}function XZ(Z){if(!Z)return null;if(typeof Z==="string")Z=JSON.parse(Z);if(Z.mappings==="")return{mappings:[],names:[],sources:[],version:3};let J=typeof Z.mappings==="string"?rG(Z.mappings):Z.mappings;return{...Z,mappings:J}}function $M({code:Z,options:J,outputPluginDriver:q,renderChunk:Q,sourcemapChain:Y}){let X=(z,V,W)=>{if(V==null)return z;if(typeof V==="string")V={code:V,map:void 0};if(V.map!==null){let K=XZ(V.map);Y.push(K||{missing:!0,plugin:W.name})}return V.code};return q.hookReduceArg0("renderChunk",[Z,Q,J],X)}function w4(Z,J,q){if(i9(Z))return e(n5(`Invalid pattern "${Z}" for "${J}", patterns can be neither absolute nor relative paths. If you want your files to be stored in a subdirectory, write its name without a leading slash like this: subdirectory/pattern.`));return Z.replace(/\[(\w+)\]/g,(Q,Y)=>{if(!q.hasOwnProperty(Y))return e(n5(`"[${Y}]" is not a valid placeholder in "${J}" pattern.`));let X=q[Y]();if(i9(X))return e(n5(`Invalid substitution "${X}" for placeholder "[${Y}]" in "${J}" pattern, can be neither absolute nor relative path.`));return X})}function zZ(Z,{[q3]:J}){if(!J.has(Z.toLowerCase()))return Z;let q=Q8(Z);Z=Z.substring(0,Z.length-q.length);let Q,Y=1;while(J.has((Q=Z+ ++Y+q).toLowerCase()));return Q}function UM(Z,J,q,Q){let Y=typeof J==="function"?J(Z.id):J[Z.id];if(Y)return Y;if(q)return Q({code:"MISSING_GLOBAL_NAME",guess:Z.variableName,message:`No name was provided for external module '${Z.id}' in output.globals – guessing '${Z.variableName}'`,source:Z.id}),Z.variableName}class I8{constructor(Z,J,q,Q,Y,X,z,V,W,K){this.orderedModules=Z,this.inputOptions=J,this.outputOptions=q,this.unsetOptions=Q,this.pluginDriver=Y,this.modulesById=X,this.chunkByModule=z,this.facadeChunkByModule=V,this.includedNamespaces=W,this.manualChunkAlias=K,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.id=null,this.namespaceVariableName="",this.needsExportsShim=!1,this.variableName="",this.accessedGlobalsByScope=new Map,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicEntryModules=[],this.dynamicName=null,this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=new Map,this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.includedReexportsByModule=new Map,this.indentString=void 0,this.isEmpty=!0,this.name=null,this.renderedDependencies=null,this.renderedExports=null,this.renderedHash=void 0,this.renderedModuleSources=new Map,this.renderedModules=Object.create(null),this.renderedSource=null,this.sortedExportNames=null,this.strictFacade=!1,this.usedModules=void 0,this.execIndex=Z.length>0?Z[0].execIndex:1/0;let $=new Set(Z);for(let H of Z){if(H.namespace.included)W.add(H);if(this.isEmpty&&H.isIncluded())this.isEmpty=!1;if(H.info.isEntry||q.preserveModules)this.entryModules.push(H);for(let M of H.includedDynamicImporters)if(!$.has(M)){if(this.dynamicEntryModules.push(H),H.info.syntheticNamedExports&&!q.preserveModules)W.add(H),this.exports.add(H.namespace)}if(H.implicitlyLoadedAfter.size>0)this.implicitEntryModules.push(H)}this.suggestedVariableName=NZ(this.generateVariableName())}static generateFacade(Z,J,q,Q,Y,X,z,V,W,K){let $=new I8([],Z,J,q,Q,Y,X,z,V,null);if($.assignFacadeName(K,W),!z.has(W))z.set(W,$);for(let H of W.getDependenciesToBeIncluded())$.dependencies.add(H instanceof S1?X.get(H):H);if(!$.dependencies.has(X.get(W))&&W.info.moduleSideEffects&&W.hasEffects())$.dependencies.add(X.get(W));return $.ensureReexportsAreAvailableForModule(W),$.facadeModule=W,$.strictFacade=!0,$}canModuleBeFacade(Z,J){let q=Z.getExportNamesByVariable();for(let Q of this.exports)if(!q.has(Q)){if(q.size===0&&Z.isUserDefinedEntryPoint&&Z.preserveSignature==="strict"&&this.unsetOptions.has("preserveEntrySignatures"))this.inputOptions.onwarn({code:"EMPTY_FACADE",id:Z.id,message:`To preserve the export signature of the entry module "${V1(Z.id)}", an empty facade chunk was created. This often happens when creating a bundle for a web app where chunks are placed in script tags and exports are ignored. In this case it is recommended to set "preserveEntrySignatures: false" to avoid this and reduce the number of chunks. Otherwise if this is intentional, set "preserveEntrySignatures: 'strict'" explicitly to silence this warning.`,url:"https://rollupjs.org/guide/en/#preserveentrysignatures"});return!1}for(let Q of J)if(!(q.has(Q)||Q.module===Z))return!1;return!0}generateExports(){this.sortedExportNames=null;let Z=new Set(this.exports);if(this.facadeModule!==null&&(this.facadeModule.preserveSignature!==!1||this.strictFacade)){let J=this.facadeModule.getExportNamesByVariable();for(let[q,Q]of J){this.exportNamesByVariable.set(q,[...Q]);for(let Y of Q)this.exportsByName.set(Y,q);Z.delete(q)}}if(this.outputOptions.minifyInternalExports)YM(Z,this.exportsByName,this.exportNamesByVariable);else XM(Z,this.exportsByName,this.exportNamesByVariable);if(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)this.exportMode=zM(this,this.outputOptions,this.unsetOptions,this.facadeModule.id,this.inputOptions.onwarn)}generateFacades(){var Z;let J=[],q=new Set([...this.entryModules,...this.implicitEntryModules]),Q=new Set(this.dynamicEntryModules.map(({namespace:Y})=>Y));for(let Y of q)if(Y.preserveSignature)for(let X of Y.getExportNamesByVariable().keys())Q.add(X);for(let Y of q){let X=Array.from(new Set(Y.chunkNames.filter(({isUserDefined:z})=>z).map(({name:z})=>z)),(z)=>({name:z}));if(X.length===0&&Y.isUserDefinedEntryPoint)X.push({});if(X.push(...Array.from(Y.chunkFileNames,(z)=>({fileName:z}))),X.length===0)X.push({});if(!this.facadeModule){let z=Y.preserveSignature==="strict"||Y.preserveSignature==="exports-only"&&Y.getExportNamesByVariable().size!==0;if(!z||this.outputOptions.preserveModules||this.canModuleBeFacade(Y,Q)){if(this.facadeModule=Y,this.facadeChunkByModule.set(Y,this),Y.preserveSignature)this.strictFacade=z;this.assignFacadeName(X.shift(),Y)}}for(let z of X)J.push(I8.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.facadeChunkByModule,this.includedNamespaces,Y,z))}for(let Y of this.dynamicEntryModules){if(Y.info.syntheticNamedExports)continue;if(!this.facadeModule&&this.canModuleBeFacade(Y,Q))this.facadeModule=Y,this.facadeChunkByModule.set(Y,this),this.strictFacade=!0,this.dynamicName=f9(Y);else if(this.facadeModule===Y&&!this.strictFacade&&this.canModuleBeFacade(Y,Q))this.strictFacade=!0;else if(!((Z=this.facadeChunkByModule.get(Y))===null||Z===void 0?void 0:Z.strictFacade))this.includedNamespaces.add(Y),this.exports.add(Y.namespace)}if(!this.outputOptions.preserveModules)this.addNecessaryImportsForFacades();return J}generateId(Z,J,q,Q){if(this.fileName!==null)return this.fileName;let[Y,X]=this.facadeModule&&this.facadeModule.isUserDefinedEntryPoint?[J.entryFileNames,"output.entryFileNames"]:[J.chunkFileNames,"output.chunkFileNames"];return zZ(w4(typeof Y==="function"?Y(this.getChunkInfo()):Y,X,{format:()=>J.format,hash:()=>Q?this.computeContentHashWithDependencies(Z,J,q):"[hash]",name:()=>this.getChunkName()}),q)}generateIdPreserveModules(Z,J,q,Q){let[{id:Y}]=this.orderedModules,X=this.outputOptions.sanitizeFileName(Y.split(jM,1)[0]),z,V=Q.has("entryFileNames")?"[name][assetExtname].js":J.entryFileNames,W=typeof V==="function"?V(this.getChunkInfo()):V;if(s5(X)){let K=f5(X),$=Q8(X),H=w4(W,"output.entryFileNames",{assetExtname:()=>uQ.includes($)?"":$,ext:()=>$.substring(1),extname:()=>$,format:()=>J.format,name:()=>this.getChunkName()}),M=`${K}/${H}`,{preserveModulesRoot:O}=J;if(O&&U5(M).startsWith(O))z=M.slice(O.length).replace(/^[\\/]/,"");else z=FZ(Z,M)}else{let K=Q8(X);z=`_virtual/${w4(W,"output.entryFileNames",{assetExtname:()=>uQ.includes(K)?"":K,ext:()=>K.substring(1),extname:()=>K,format:()=>J.format,name:()=>M4(X)})}`}return zZ(z0(z),q)}getChunkInfo(){let Z=this.facadeModule,J=this.getChunkName.bind(this);return{exports:this.getExportNames(),facadeModuleId:Z&&Z.id,isDynamicEntry:this.dynamicEntryModules.length>0,isEntry:Z!==null&&Z.info.isEntry,isImplicitEntry:this.implicitEntryModules.length>0,modules:this.renderedModules,get name(){return J()},type:"chunk"}}getChunkInfoWithFileNames(){return Object.assign(this.getChunkInfo(),{code:void 0,dynamicImports:Array.from(this.dynamicDependencies,Y6),fileName:this.id,implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,Y6),importedBindings:this.getImportedBindingsPerDependency(),imports:Array.from(this.dependencies,Y6),map:void 0,referencedFiles:this.getReferencedFiles()})}getChunkName(){var Z;return(Z=this.name)!==null&&Z!==void 0?Z:this.name=this.outputOptions.sanitizeFileName(this.getFallbackChunkName())}getExportNames(){var Z;return(Z=this.sortedExportNames)!==null&&Z!==void 0?Z:this.sortedExportNames=Array.from(this.exportsByName.keys()).sort()}getRenderedHash(){if(this.renderedHash)return this.renderedHash;let Z=k4(),J=this.pluginDriver.hookReduceValueSync("augmentChunkHash","",[this.getChunkInfo()],(q,Q)=>{if(Q)q+=Q;return q});return Z.update(J),Z.update(this.renderedSource.toString()),Z.update(this.getExportNames().map((q)=>{let Q=this.exportsByName.get(q);return`${V1(Q.module.id).replace(/\\/g,"/")}:${Q.name}:${q}`}).join(",")),this.renderedHash=Z.digest("hex")}getVariableExportName(Z){if(this.outputOptions.preserveModules&&Z instanceof Q6)return"*";return this.exportNamesByVariable.get(Z)[0]}link(){this.dependencies=KM(this,this.orderedModules,this.chunkByModule);for(let Z of this.orderedModules)this.addDependenciesToChunk(Z.dynamicDependencies,this.dynamicDependencies),this.addDependenciesToChunk(Z.implicitlyLoadedBefore,this.implicitlyLoadedBefore),this.setUpChunkImportsAndExportsForModule(Z)}preRender(Z,J,q){let{_:Q,getPropertyAccess:Y,n:X}=q,z=new HZ({separator:`${X}${X}`});this.usedModules=[],this.indentString=WM(this.orderedModules,Z);let V={dynamicImportFunction:Z.dynamicImportFunction,exportNamesByVariable:this.exportNamesByVariable,format:Z.format,freeze:Z.freeze,indent:this.indentString,namespaceToStringTag:Z.namespaceToStringTag,outputPluginDriver:this.pluginDriver,snippets:q};if(Z.hoistTransitiveImports&&!this.outputOptions.preserveModules&&this.facadeModule!==null){for(let $ of this.dependencies)if($ instanceof I8)this.inlineChunkDependencies($)}this.prepareModulesForRendering(q),this.setIdentifierRenderResolutions(Z);let W="",K=this.renderedModules;for(let $ of this.orderedModules){let H=0;if($.isIncluded()||this.includedNamespaces.has($)){let L=$.render(V).trim();if(H=L.length(),H){if(Z.compact&&L.lastLine().includes("//"))L.append(`
|
|
23
|
-
`);this.renderedModuleSources.set($,
|
|
21
|
+
`)}function x9(Z,q,Q,J,{_:Y,getPropertyAccess:X}){let z=Z.split(".");z[0]=(typeof Q==="function"?Q(z[0]):Q[z[0]])||z[0];let V=z.pop(),W=q,K=z.map(($)=>{return W+=X($),`${W}${Y}=${Y}${W}${Y}||${Y}{}`}).concat(`${W}${X(V)}`).join(`,${Y}`)+`${Y}=${Y}${J}`;if(z.length>0)K=`(${K})`;return K}function rY(Z){let q=Z.length;while(q--){let{imports:Q,reexports:J}=Z[q];if(Q||J)return Z.slice(0,q+1)}return[]}function hB(Z,{accessedGlobals:q,dependencies:Q,exports:J,hasExports:Y,indent:X,intro:z,namedExportsMode:V,outro:W,snippets:K,warn:$},{compact:H,esModule:M,extend:O,freeze:L,externalLiveBindings:B,globals:C,interop:y,name:P,namespaceToStringTag:_,strict:v}){let{_:h,getNonArrowFunctionIntro:d,getPropertyAccess:E,n:N}=K,A=P&&P.includes("."),T=!O&&!A;if(P&&T&&!nU(P))return e({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${P}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});Z3($,Q);let j=rY(Q),x=j.map((t)=>t.globalName||"null"),b=j.map((t)=>t.name);if(Y&&!P)$({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.'});if(V&&Y)if(O)x.unshift(`this${L4(P,E)}${h}=${h}this${L4(P,E)}${h}||${h}{}`),b.unshift("exports");else x.unshift("{}"),b.unshift("exports");let S=v?`${X}'use strict';${N}`:"",G=z7(Q,y,B,L,_,q,X,K);Z.prepend(`${z}${G}`);let F=`(${d(b,{isAsync:!1,name:null})}{${N}${S}${N}`;if(Y){if(P&&!(O&&V))F=(T?`var ${P}`:`this${L4(P,E)}`)+`${h}=${h}${F}`;if(A)F=vB(P,"this",C,K,H)+F}let u=`${N}${N}})(${x.join(`,${h}`)});`;if(Y&&!O&&V)u=`${N}${N}${X}return exports;${u}`;let f=Y7(J,Q,V,y,K,X,B),o=X7(V&&Y,M,_,K);if(o)o=N+N+o;return Z.append(`${f}${o}${W}`),Z.indent(X).prepend(F).append(u)}function gB(Z,{accessedGlobals:q,dependencies:Q,exports:J,hasExports:Y,indent:X,intro:z,snippets:V,outro:W,usesTopLevelAwait:K},{externalLiveBindings:$,freeze:H,name:M,namespaceToStringTag:O,strict:L,systemNullSetters:B}){let{_:C,getFunctionIntro:y,getNonArrowFunctionIntro:P,n:_,s:v}=V,{importBindings:h,setters:d,starExcludes:E}=mB(Q,J,X,V),N=M?`'${M}',${C}`:"",A=q.has("module")?["exports","module"]:Y?["exports"]:[],T=`System.register(${N}[`+Q.map(({id:x})=>`'${x}'`).join(`,${C}`)+`],${C}(${P(A,{isAsync:!1,name:null})}{${_}${X}${L?"'use strict';":""}`+dB(E,X,V)+lB(h,X,V)+`${_}${X}return${C}{${d.length?`${_}${X}${X}setters:${C}[${d.map((x)=>x?`${y(["module"],{isAsync:!1,name:null})}{${_}${X}${X}${X}${x}${_}${X}${X}}`:B?"null":`${y([],{isAsync:!1,name:null})}{}`).join(`,${C}`)}],`:""}${_}`;T+=`${X}${X}execute:${C}(${P([],{isAsync:K,name:null})}{${_}${_}`;let j=`${X}${X}})${_}${X}}${v}${_}}));`;return Z.prepend(z+nZ(null,q,X,V,$,H,O)+cB(J,X,V)),Z.append(`${W}${_}${_}`+pB(J,X,V)+iB(J,X,V)),Z.indent(`${X}${X}${X}`).append(j).prepend(T)}function mB(Z,q,Q,{_:J,cnst:Y,getObject:X,getPropertyAccess:z,n:V}){let W=[],K=[],$=null;for(let{imports:H,reexports:M}of Z){let O=[];if(H)for(let L of H)if(W.push(L.local),L.imported==="*")O.push(`${L.local}${J}=${J}module;`);else O.push(`${L.local}${J}=${J}module${z(L.imported)};`);if(M){let L=[],B=!1;for(let{imported:C,reexported:y}of M)if(y==="*")B=!0;else L.push([y,C==="*"?"module":`module${z(C)}`]);if(L.length>1||B){let C=X(L,{lineBreakIndent:null});if(B){if(!$)$=uB({dependencies:Z,exports:q});O.push(`${Y} setter${J}=${J}${C};`,`for${J}(${Y} name in module)${J}{`,`${Q}if${J}(!_starExcludes[name])${J}setter[name]${J}=${J}module[name];`,"}","exports(setter);")}else O.push(`exports(${C});`)}else{let[C,y]=L[0];O.push(`exports('${C}',${J}${y});`)}}K.push(O.join(`${V}${Q}${Q}${Q}`))}return{importBindings:W,setters:K,starExcludes:$}}function q3(Z,q,{_:Q,n:J}){if(Z.length===0)return"";if(Z.length===1)return`exports('${Z[0].name}',${Q}${Z[0].value});${J}${J}`;return`exports({${J}`+Z.map(({name:Y,value:X})=>`${q}${Y}:${Q}${X}`).join(`,${J}`)+`${J}});${J}${J}`}function k9(Z,q,Q){if(!Z)return"null";return`${q}${L4(Z,Q)}`}function nB(Z,q,{_:Q,getPropertyAccess:J}){let Y=q;return Z.split(".").map((X)=>Y+=J(X)).join(`${Q}&&${Q}`)}function sB(Z,{accessedGlobals:q,dependencies:Q,exports:J,hasExports:Y,id:X,indent:z,intro:V,namedExportsMode:W,outro:K,snippets:$,warn:H},{amd:M,compact:O,esModule:L,extend:B,externalLiveBindings:C,freeze:y,interop:P,name:_,namespaceToStringTag:v,globals:h,noConflict:d,strict:E}){let{_:N,cnst:A,getFunctionIntro:T,getNonArrowFunctionIntro:j,getPropertyAccess:x,n:b,s:S}=$,G=O?"f":"factory",F=O?"g":"global";if(Y&&!_)return e({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.'});Z3(H,Q);let u=Q.map(($5)=>`'${aY($5.id,M.forceJsExtensionForImports)}'`),f=Q.map(($5)=>`require('${$5.id}')`),o=rY(Q),t=o.map(($5)=>k9($5.globalName,F,x)),J1=o.map(($5)=>$5.name);if(W&&(Y||d))u.unshift("'exports'"),f.unshift("exports"),t.unshift(x9(_,F,h,`${B?`${k9(_,F,x)}${N}||${N}`:""}{}`,$)),J1.unshift("exports");let N1=nY(M,X),R1=(N1?`'${N1}',${N}`:"")+(u.length?`[${u.join(`,${N}`)}],${N}`:""),F1=M.define,a=!W&&Y?`module.exports${N}=${N}`:"",m=E?`${N}'use strict';${b}`:"",L1;if(d){let $5=O?"e":"exports",m7;if(!W&&Y)m7=`${A} ${$5}${N}=${N}${x9(_,F,h,`${G}(${t.join(`,${N}`)})`,$)};`;else{let hW=t.shift();m7=`${A} ${$5}${N}=${N}${hW};${b}${z}${z}${G}(${[$5].concat(t).join(`,${N}`)});`}L1=`(${T([],{isAsync:!1,name:null})}{${b}${z}${z}${A} current${N}=${N}${nB(_,F,$)};${b}${z}${z}${m7}${b}${z}${z}${$5}.noConflict${N}=${N}${T([],{isAsync:!1,name:null})}{${N}${k9(_,F,x)}${N}=${N}current;${N}return ${$5}${S}${N}};${b}${z}})()`}else if(L1=`${G}(${t.join(`,${N}`)})`,!W&&Y)L1=x9(_,F,h,L1,$);let p=Y||d&&W||t.length>0,D=[G];if(p)D.unshift(F);let k=p?`this,${N}`:"",I=p?`(${F}${N}=${N}typeof globalThis${N}!==${N}'undefined'${N}?${N}globalThis${N}:${N}${F}${N}||${N}self,${N}`:"",g=p?")":"",c=p?`${z}typeof exports${N}===${N}'object'${N}&&${N}typeof module${N}!==${N}'undefined'${N}?${N}${a}${G}(${f.join(`,${N}`)})${N}:${b}`:"",n=`(${j(D,{isAsync:!1,name:null})}{${b}`+c+`${z}typeof ${F1}${N}===${N}'function'${N}&&${N}${F1}.amd${N}?${N}${F1}(${R1}${G})${N}:${b}${z}${I}${L1}${g};${b}})(${k}(${j(J1,{isAsync:!1,name:null})}{${m}${b}`,i=b+b+"}));";Z.prepend(`${V}${z7(Q,P,C,y,v,q,z,$)}`);let B1=Y7(J,Q,W,P,$,z,C),_1=X7(W&&Y,L,v,$);if(_1)_1=b+b+_1;return Z.append(`${B1}${_1}${K}`),Z.trim().indent(z).append(i).prepend(n)}class YZ{constructor(Z,q){this.isOriginal=!0,this.filename=Z,this.content=q}traceSegment(Z,q,Q){return{column:q,line:Z,name:Q,source:this}}}class j0{constructor(Z,q){this.sources=q,this.names=Z.names,this.mappings=Z.mappings}traceMappings(){let Z=[],q=new Map,Q=[],J=[],Y=new Map,X=[];for(let z of this.mappings){let V=[];for(let W of z){if(W.length===1)continue;let K=this.sources[W[1]];if(!K)continue;let $=K.traceSegment(W[2],W[3],W.length===5?this.names[W[4]]:"");if($){let{column:H,line:M,name:O,source:{content:L,filename:B}}=$,C=q.get(B);if(C===void 0)C=Z.length,Z.push(B),q.set(B,C),Q[C]=L;else if(Q[C]==null)Q[C]=L;else if(L!=null&&Q[C]!==L)return e({message:`Multiple conflicting contents for sourcemap source ${B}`});let y=[W[0],C,M,H];if(O){let P=Y.get(O);if(P===void 0)P=J.length,J.push(O),Y.set(O,P);y[4]=P}V.push(y)}}X.push(V)}return{mappings:X,names:J,sources:Z,sourcesContent:Q}}traceSegment(Z,q,Q){let J=this.mappings[Z];if(!J)return null;let Y=0,X=J.length-1;while(Y<=X){let z=Y+X>>1,V=J[z];if(V[0]===q||Y===X){if(V.length==1)return null;let W=this.sources[V[1]];if(!W)return null;return W.traceSegment(V[2],V[3],V.length===5?this.names[V[4]]:Q)}if(V[0]>q)X=z-1;else Y=z+1}return null}}function oY(Z){return function(Q,J){if(J.mappings)return new j0(J,[Q]);return Z({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin (${J.plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:J.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new j0({mappings:[],names:[]},[Q])}}function tY(Z,q,Q,J,Y){let X;if(!Q)X=new YZ(Z,q);else{let z=Q.sources,V=Q.sourcesContent||[],W=f5(Z)||".",K=Q.sourceRoot||".",$=z.map((H,M)=>new YZ(U5(W,K,H),V[M]));X=new j0(Q,$)}return J.reduce(Y,X)}function rB(Z,q,Q,J,Y,X){let z=oY(X),V=Q.filter((L)=>!L.excludeFromSourcemap).map((L)=>tY(L.id,L.originalCode,L.originalSourcemap,L.sourcemapChain,z)),W=new j0(q,V),K=J.reduce(z,W),{sources:$,sourcesContent:H,names:M,mappings:O}=K.traceMappings();if(Z){let L=f5(Z);$=$.map((B)=>UZ(L,B)),Z=z8(Z)}return H=Y?null:H,new H0({file:Z,mappings:O,names:M,sources:$,sourcesContent:H})}function oB(Z,q,Q,J,Y){if(!J.length)return Q;return{version:3,...tY(Z,q,Q,J,oY(Y)).traceMappings()}}function eB(Z,q,Q,J,Y,X,z,V,W,K,$,H,M){let O=Z.slice().reverse();for(let L of O)L.scope.addUsedOutsideNames(J,Y,$,H);ZM(J,O,M),tB[Y](J,Q,q,X,z,V,W,K);for(let L of O)L.scope.deconflict(Y,$,H)}function uJ(Z,q,Q,J,Y,X,z,V){for(let W of Q.dependencies)if(Y||W instanceof A1)W.variableName=k5(W.suggestedVariableName,Z);for(let W of q){let{module:K,name:$}=W;if(W.isNamespace&&(Y||K instanceof A1))W.setRenderNames(null,(K instanceof A1?K:z.get(K)).variableName);else if(K instanceof A1&&$==="default")W.setRenderNames(null,k5([...K.exportedVariables].some(([H,M])=>M==="*"&&H.included)?K.suggestedVariableName+"__default":K.suggestedVariableName,Z));else W.setRenderNames(null,k5($,Z))}for(let W of V)W.setRenderNames(null,k5(W.name,Z))}function G4(Z,q,{deconflictedDefault:Q,deconflictedNamespace:J,dependencies:Y},X,z,V,W){for(let K of Y)K.variableName=k5(K.suggestedVariableName,Z);for(let K of J)K.namespaceVariableName=k5(`${K.suggestedVariableName}__namespace`,Z);for(let K of Q)if(J.has(K)&&zB(String(X(K.id)),V))K.defaultVariableName=K.namespaceVariableName;else K.defaultVariableName=k5(`${K.suggestedVariableName}__default`,Z);for(let K of q){let $=K.module;if($ instanceof A1){let H=K.name;if(H==="default"){let M=String(X($.id)),O=C0[M]?$.defaultVariableName:$.variableName;if(J7(M,V))K.setRenderNames(O,"default");else K.setRenderNames(null,O)}else if(H==="*")K.setRenderNames(null,I0[String(X($.id))]?$.namespaceVariableName:$.variableName);else K.setRenderNames($.variableName,null)}else{let H=W.get($);if(z&&K.isNamespace)K.setRenderNames(null,H.exportMode==="default"?H.namespaceVariableName:H.variableName);else if(H.exportMode==="default")K.setRenderNames(null,H.variableName);else K.setRenderNames(H.variableName,H.getVariableExportName(K))}}}function ZM(Z,q,Q){for(let J of q){for(let Y of J.scope.variables.values())if(Y.included&&!(Y.renderBaseName||Y instanceof g5&&Y.getOriginalVariable()!==Y))Y.setRenderNames(null,k5(Y.name,Z));if(Q.has(J)){let Y=J.namespace;Y.setRenderNames(null,k5(Y.name,Z))}}}function U4(Z){if(!Z.match(qM))return Z;return Z.replace(JM,"\\\\").replace(QM,"\\$1")}function YM(Z,q,Q){let J=0;for(let Y of Z){let[X]=Y.name;if(q.has(X))do if(X=t9(++J),X.charCodeAt(0)===49)J+=9*64**(X.length-1),X=t9(J);while(l4.has(X)||q.has(X));q.set(X,Y),Q.set(Y,[X])}}function XM(Z,q,Q){for(let J of Z){let Y=0,X=J.name;while(q.has(X))X=J.name+"$"+ ++Y;q.set(X,J),Q.set(J,[X])}}function zM(Z,{exports:q,name:Q,format:J},Y,X,z){let V=Z.getExportNames();if(q==="default"){if(V.length!==1||V[0]!=="default")return e(WJ("default",V,X))}else if(q==="none"&&V.length)return e(WJ("none",V,X));if(q==="auto")if(V.length===0)q="none";else if(V.length===1&&V[0]==="default"){if(J==="cjs"&&Y.has("exports"))z(vU(X));q="default"}else{if(J!=="es"&&J!=="system"&&V.includes("default"))z(bU(X,Q));q="named"}return q}function VM(Z){let q=Z.split(`
|
|
22
|
+
`),Q=q.filter((X)=>/^\t+/.test(X)),J=q.filter((X)=>/^ {2,}/.test(X));if(Q.length===0&&J.length===0)return null;if(Q.length>=J.length)return"\t";let Y=J.reduce((X,z)=>{let V=/^ +/.exec(z)[0].length;return Math.min(V,X)},1/0);return Array(Y+1).join(" ")}function WM(Z,q){if(q.indent!==!0)return q.indent;for(let Q of Z){let J=VM(Q.originalCode);if(J!==null)return J}return"\t"}function KM(Z,q,Q){let J=[],Y=new Set;for(let z=q.length-1;z>=0;z--){let V=q[z];if(!Y.has(V)){let W=[];eY(V,W,Y,Z,Q),J.unshift(W)}}let X=new Set;for(let z of J)for(let V of z)X.add(V);return X}function eY(Z,q,Q,J,Y){let X=Z.getDependenciesToBeIncluded();for(let z of X){if(z instanceof A1){q.push(z);continue}let V=Y.get(z);if(V!==J){q.push(V);continue}if(!Q.has(z))Q.add(z),eY(z,q,Q,J,Y)}}function XZ(Z){if(!Z)return null;if(typeof Z==="string")Z=JSON.parse(Z);if(Z.mappings==="")return{mappings:[],names:[],sources:[],version:3};let q=typeof Z.mappings==="string"?rG(Z.mappings):Z.mappings;return{...Z,mappings:q}}function $M({code:Z,options:q,outputPluginDriver:Q,renderChunk:J,sourcemapChain:Y}){let X=(z,V,W)=>{if(V==null)return z;if(typeof V==="string")V={code:V,map:void 0};if(V.map!==null){let K=XZ(V.map);Y.push(K||{missing:!0,plugin:W.name})}return V.code};return Q.hookReduceArg0("renderChunk",[Z,J,q],X)}function w4(Z,q,Q){if(i9(Z))return e(n5(`Invalid pattern "${Z}" for "${q}", patterns can be neither absolute nor relative paths. If you want your files to be stored in a subdirectory, write its name without a leading slash like this: subdirectory/pattern.`));return Z.replace(/\[(\w+)\]/g,(J,Y)=>{if(!Q.hasOwnProperty(Y))return e(n5(`"[${Y}]" is not a valid placeholder in "${q}" pattern.`));let X=Q[Y]();if(i9(X))return e(n5(`Invalid substitution "${X}" for placeholder "[${Y}]" in "${q}" pattern, can be neither absolute nor relative path.`));return X})}function zZ(Z,{[Q3]:q}){if(!q.has(Z.toLowerCase()))return Z;let Q=J8(Z);Z=Z.substring(0,Z.length-Q.length);let J,Y=1;while(q.has((J=Z+ ++Y+Q).toLowerCase()));return J}function UM(Z,q,Q,J){let Y=typeof q==="function"?q(Z.id):q[Z.id];if(Y)return Y;if(Q)return J({code:"MISSING_GLOBAL_NAME",guess:Z.variableName,message:`No name was provided for external module '${Z.id}' in output.globals – guessing '${Z.variableName}'`,source:Z.id}),Z.variableName}class I8{constructor(Z,q,Q,J,Y,X,z,V,W,K){this.orderedModules=Z,this.inputOptions=q,this.outputOptions=Q,this.unsetOptions=J,this.pluginDriver=Y,this.modulesById=X,this.chunkByModule=z,this.facadeChunkByModule=V,this.includedNamespaces=W,this.manualChunkAlias=K,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.id=null,this.namespaceVariableName="",this.needsExportsShim=!1,this.variableName="",this.accessedGlobalsByScope=new Map,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicEntryModules=[],this.dynamicName=null,this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=new Map,this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.includedReexportsByModule=new Map,this.indentString=void 0,this.isEmpty=!0,this.name=null,this.renderedDependencies=null,this.renderedExports=null,this.renderedHash=void 0,this.renderedModuleSources=new Map,this.renderedModules=Object.create(null),this.renderedSource=null,this.sortedExportNames=null,this.strictFacade=!1,this.usedModules=void 0,this.execIndex=Z.length>0?Z[0].execIndex:1/0;let $=new Set(Z);for(let H of Z){if(H.namespace.included)W.add(H);if(this.isEmpty&&H.isIncluded())this.isEmpty=!1;if(H.info.isEntry||Q.preserveModules)this.entryModules.push(H);for(let M of H.includedDynamicImporters)if(!$.has(M)){if(this.dynamicEntryModules.push(H),H.info.syntheticNamedExports&&!Q.preserveModules)W.add(H),this.exports.add(H.namespace)}if(H.implicitlyLoadedAfter.size>0)this.implicitEntryModules.push(H)}this.suggestedVariableName=NZ(this.generateVariableName())}static generateFacade(Z,q,Q,J,Y,X,z,V,W,K){let $=new I8([],Z,q,Q,J,Y,X,z,V,null);if($.assignFacadeName(K,W),!z.has(W))z.set(W,$);for(let H of W.getDependenciesToBeIncluded())$.dependencies.add(H instanceof S1?X.get(H):H);if(!$.dependencies.has(X.get(W))&&W.info.moduleSideEffects&&W.hasEffects())$.dependencies.add(X.get(W));return $.ensureReexportsAreAvailableForModule(W),$.facadeModule=W,$.strictFacade=!0,$}canModuleBeFacade(Z,q){let Q=Z.getExportNamesByVariable();for(let J of this.exports)if(!Q.has(J)){if(Q.size===0&&Z.isUserDefinedEntryPoint&&Z.preserveSignature==="strict"&&this.unsetOptions.has("preserveEntrySignatures"))this.inputOptions.onwarn({code:"EMPTY_FACADE",id:Z.id,message:`To preserve the export signature of the entry module "${V1(Z.id)}", an empty facade chunk was created. This often happens when creating a bundle for a web app where chunks are placed in script tags and exports are ignored. In this case it is recommended to set "preserveEntrySignatures: false" to avoid this and reduce the number of chunks. Otherwise if this is intentional, set "preserveEntrySignatures: 'strict'" explicitly to silence this warning.`,url:"https://rollupjs.org/guide/en/#preserveentrysignatures"});return!1}for(let J of q)if(!(Q.has(J)||J.module===Z))return!1;return!0}generateExports(){this.sortedExportNames=null;let Z=new Set(this.exports);if(this.facadeModule!==null&&(this.facadeModule.preserveSignature!==!1||this.strictFacade)){let q=this.facadeModule.getExportNamesByVariable();for(let[Q,J]of q){this.exportNamesByVariable.set(Q,[...J]);for(let Y of J)this.exportsByName.set(Y,Q);Z.delete(Q)}}if(this.outputOptions.minifyInternalExports)YM(Z,this.exportsByName,this.exportNamesByVariable);else XM(Z,this.exportsByName,this.exportNamesByVariable);if(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)this.exportMode=zM(this,this.outputOptions,this.unsetOptions,this.facadeModule.id,this.inputOptions.onwarn)}generateFacades(){var Z;let q=[],Q=new Set([...this.entryModules,...this.implicitEntryModules]),J=new Set(this.dynamicEntryModules.map(({namespace:Y})=>Y));for(let Y of Q)if(Y.preserveSignature)for(let X of Y.getExportNamesByVariable().keys())J.add(X);for(let Y of Q){let X=Array.from(new Set(Y.chunkNames.filter(({isUserDefined:z})=>z).map(({name:z})=>z)),(z)=>({name:z}));if(X.length===0&&Y.isUserDefinedEntryPoint)X.push({});if(X.push(...Array.from(Y.chunkFileNames,(z)=>({fileName:z}))),X.length===0)X.push({});if(!this.facadeModule){let z=Y.preserveSignature==="strict"||Y.preserveSignature==="exports-only"&&Y.getExportNamesByVariable().size!==0;if(!z||this.outputOptions.preserveModules||this.canModuleBeFacade(Y,J)){if(this.facadeModule=Y,this.facadeChunkByModule.set(Y,this),Y.preserveSignature)this.strictFacade=z;this.assignFacadeName(X.shift(),Y)}}for(let z of X)q.push(I8.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.facadeChunkByModule,this.includedNamespaces,Y,z))}for(let Y of this.dynamicEntryModules){if(Y.info.syntheticNamedExports)continue;if(!this.facadeModule&&this.canModuleBeFacade(Y,J))this.facadeModule=Y,this.facadeChunkByModule.set(Y,this),this.strictFacade=!0,this.dynamicName=f9(Y);else if(this.facadeModule===Y&&!this.strictFacade&&this.canModuleBeFacade(Y,J))this.strictFacade=!0;else if(!((Z=this.facadeChunkByModule.get(Y))===null||Z===void 0?void 0:Z.strictFacade))this.includedNamespaces.add(Y),this.exports.add(Y.namespace)}if(!this.outputOptions.preserveModules)this.addNecessaryImportsForFacades();return q}generateId(Z,q,Q,J){if(this.fileName!==null)return this.fileName;let[Y,X]=this.facadeModule&&this.facadeModule.isUserDefinedEntryPoint?[q.entryFileNames,"output.entryFileNames"]:[q.chunkFileNames,"output.chunkFileNames"];return zZ(w4(typeof Y==="function"?Y(this.getChunkInfo()):Y,X,{format:()=>q.format,hash:()=>J?this.computeContentHashWithDependencies(Z,q,Q):"[hash]",name:()=>this.getChunkName()}),Q)}generateIdPreserveModules(Z,q,Q,J){let[{id:Y}]=this.orderedModules,X=this.outputOptions.sanitizeFileName(Y.split(jM,1)[0]),z,V=J.has("entryFileNames")?"[name][assetExtname].js":q.entryFileNames,W=typeof V==="function"?V(this.getChunkInfo()):V;if(a5(X)){let K=f5(X),$=J8(X),H=w4(W,"output.entryFileNames",{assetExtname:()=>dJ.includes($)?"":$,ext:()=>$.substring(1),extname:()=>$,format:()=>q.format,name:()=>this.getChunkName()}),M=`${K}/${H}`,{preserveModulesRoot:O}=q;if(O&&U5(M).startsWith(O))z=M.slice(O.length).replace(/^[\\/]/,"");else z=FZ(Z,M)}else{let K=J8(X);z=`_virtual/${w4(W,"output.entryFileNames",{assetExtname:()=>dJ.includes(K)?"":K,ext:()=>K.substring(1),extname:()=>K,format:()=>q.format,name:()=>M4(X)})}`}return zZ(z0(z),Q)}getChunkInfo(){let Z=this.facadeModule,q=this.getChunkName.bind(this);return{exports:this.getExportNames(),facadeModuleId:Z&&Z.id,isDynamicEntry:this.dynamicEntryModules.length>0,isEntry:Z!==null&&Z.info.isEntry,isImplicitEntry:this.implicitEntryModules.length>0,modules:this.renderedModules,get name(){return q()},type:"chunk"}}getChunkInfoWithFileNames(){return Object.assign(this.getChunkInfo(),{code:void 0,dynamicImports:Array.from(this.dynamicDependencies,Y6),fileName:this.id,implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,Y6),importedBindings:this.getImportedBindingsPerDependency(),imports:Array.from(this.dependencies,Y6),map:void 0,referencedFiles:this.getReferencedFiles()})}getChunkName(){var Z;return(Z=this.name)!==null&&Z!==void 0?Z:this.name=this.outputOptions.sanitizeFileName(this.getFallbackChunkName())}getExportNames(){var Z;return(Z=this.sortedExportNames)!==null&&Z!==void 0?Z:this.sortedExportNames=Array.from(this.exportsByName.keys()).sort()}getRenderedHash(){if(this.renderedHash)return this.renderedHash;let Z=k4(),q=this.pluginDriver.hookReduceValueSync("augmentChunkHash","",[this.getChunkInfo()],(Q,J)=>{if(J)Q+=J;return Q});return Z.update(q),Z.update(this.renderedSource.toString()),Z.update(this.getExportNames().map((Q)=>{let J=this.exportsByName.get(Q);return`${V1(J.module.id).replace(/\\/g,"/")}:${J.name}:${Q}`}).join(",")),this.renderedHash=Z.digest("hex")}getVariableExportName(Z){if(this.outputOptions.preserveModules&&Z instanceof J6)return"*";return this.exportNamesByVariable.get(Z)[0]}link(){this.dependencies=KM(this,this.orderedModules,this.chunkByModule);for(let Z of this.orderedModules)this.addDependenciesToChunk(Z.dynamicDependencies,this.dynamicDependencies),this.addDependenciesToChunk(Z.implicitlyLoadedBefore,this.implicitlyLoadedBefore),this.setUpChunkImportsAndExportsForModule(Z)}preRender(Z,q,Q){let{_:J,getPropertyAccess:Y,n:X}=Q,z=new HZ({separator:`${X}${X}`});this.usedModules=[],this.indentString=WM(this.orderedModules,Z);let V={dynamicImportFunction:Z.dynamicImportFunction,exportNamesByVariable:this.exportNamesByVariable,format:Z.format,freeze:Z.freeze,indent:this.indentString,namespaceToStringTag:Z.namespaceToStringTag,outputPluginDriver:this.pluginDriver,snippets:Q};if(Z.hoistTransitiveImports&&!this.outputOptions.preserveModules&&this.facadeModule!==null){for(let $ of this.dependencies)if($ instanceof I8)this.inlineChunkDependencies($)}this.prepareModulesForRendering(Q),this.setIdentifierRenderResolutions(Z);let W="",K=this.renderedModules;for(let $ of this.orderedModules){let H=0;if($.isIncluded()||this.includedNamespaces.has($)){let B=$.render(V).trim();if(H=B.length(),H){if(Z.compact&&B.lastLine().includes("//"))B.append(`
|
|
23
|
+
`);this.renderedModuleSources.set($,B),z.addSource(B),this.usedModules.push($)}let C=$.namespace;if(this.includedNamespaces.has($)&&!this.outputOptions.preserveModules){let y=C.renderBlock(V);if(C.renderFirst())W+=X+y;else z.addSource(new P8(y))}}let{renderedExports:M,removedExports:O}=$.getRenderedExports(),{renderedModuleSources:L}=this;K[$.id]={get code(){var B,C;return(C=(B=L.get($))===null||B===void 0?void 0:B.toString())!==null&&C!==void 0?C:null},originalLength:$.originalCode.length,removedExports:O,renderedExports:M,renderedLength:H}}if(W)z.prepend(W+X+X);if(this.needsExportsShim)z.prepend(`${X}${Q.cnst} ${K6}${J}=${J}void 0;${X}${X}`);if(Z.compact)this.renderedSource=z;else this.renderedSource=z.trim();if(this.renderedHash=void 0,this.isEmpty&&this.getExportNames().length===0&&this.dependencies.size===0){let $=this.getChunkName();this.inputOptions.onwarn({chunkName:$,code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${$}"`})}this.setExternalRenderPaths(Z,q),this.renderedDependencies=this.getChunkDependencyDeclarations(Z,Y),this.renderedExports=this.exportMode==="none"?[]:this.getChunkExportDeclarations(Z.format,Y)}async render(Z,q,Q,J){a1("render format",2);let Y=Z.format,X=aB[Y];if(Z.dynamicImportFunction&&Y!=="es")this.inputOptions.onwarn(m1("output.dynamicImportFunction","outputdynamicImportFunction",'this option is ignored for formats other than "es"'));for(let L of this.dependencies){let B=this.renderedDependencies.get(L);if(L instanceof A1){let C=L.renderPath;B.id=U4(L.renormalizeRenderPath?X4(this.id,C,!1,!1):C)}else B.namedExportsMode=L.exportMode!=="default",B.id=U4(X4(this.id,L.id,!1,!0))}this.finaliseDynamicImports(Z,J),this.finaliseImportMetas(Y,J);let z=this.renderedExports.length!==0||[...this.renderedDependencies.values()].some((L)=>L.reexports&&L.reexports.length!==0),V=null,W=new Set;for(let L of this.orderedModules){if(L.usesTopLevelAwait)V=L.id;let B=this.accessedGlobalsByScope.get(L.scope);if(B)for(let C of B)W.add(C)}if(V!==null&&Y!=="es"&&Y!=="system")return e({code:"INVALID_TLA_FORMAT",id:V,message:`Module format ${Y} does not support top-level await. Use the "es" or "system" output formats rather.`});if(!this.id)throw Error("Internal Error: expecting chunk id");let K=X(this.renderedSource,{accessedGlobals:W,dependencies:[...this.renderedDependencies.values()],exports:this.renderedExports,hasExports:z,id:this.id,indent:this.indentString,intro:q.intro,isEntryFacade:this.outputOptions.preserveModules||this.facadeModule!==null&&this.facadeModule.info.isEntry,isModuleFacade:this.facadeModule!==null,namedExportsMode:this.exportMode!=="default",outro:q.outro,snippets:J,usesTopLevelAwait:V!==null,warn:this.inputOptions.onwarn},Z);if(q.banner)K.prepend(q.banner);if(q.footer)K.append(q.footer);let $=K.toString();i1("render format",2);let H=null,M=[],O=await $M({code:$,options:Z,outputPluginDriver:this.pluginDriver,renderChunk:Q,sourcemapChain:M});if(Z.sourcemap){a1("sourcemap",2);let L;if(Z.file)L=U5(Z.sourcemapFile||Z.file);else if(Z.dir)L=U5(Z.dir,this.id);else L=U5(this.id);let B=K.generateDecodedMap({});H=rB(L,B,this.usedModules,M,Z.sourcemapExcludeSources,this.inputOptions.onwarn),H.sources=H.sources.map((C)=>{let{sourcemapPathTransform:y}=Z;if(y){let P=y(C,`${L}.map`);if(typeof P!=="string")e(n5("sourcemapPathTransform function must return a string."));return P}return C}).map(z0),i1("sourcemap",2)}if(!Z.compact&&O[O.length-1]!==`
|
|
24
24
|
`)O+=`
|
|
25
|
-
`;return{code:O,map:H}}addDependenciesToChunk(Z,
|
|
25
|
+
`;return{code:O,map:H}}addDependenciesToChunk(Z,q){for(let Q of Z)if(Q instanceof S1){let J=this.chunkByModule.get(Q);if(J&&J!==this)q.add(J)}else q.add(Q)}addNecessaryImportsForFacades(){for(let[Z,q]of this.includedReexportsByModule)if(this.includedNamespaces.has(Z))for(let Q of q)this.imports.add(Q)}assignFacadeName({fileName:Z,name:q},Q){if(Z)this.fileName=Z;else this.name=this.outputOptions.sanitizeFileName(q||f9(Q))}checkCircularDependencyImport(Z,q){let Q=Z.module;if(Q instanceof S1){let J=this.chunkByModule.get(Q),Y;do if(Y=q.alternativeReexportModules.get(Z),Y){let X=this.chunkByModule.get(Y);if(X&&X!==J)this.inputOptions.onwarn(BU(Q.getExportNamesByVariable().get(Z)[0],Q.id,Y.id,q.id));q=Y}while(Y)}}computeContentHashWithDependencies(Z,q,Q){let J=k4();J.update([Z.intro,Z.outro,Z.banner,Z.footer].join(":")),J.update(q.format);let Y=new Set([this]);for(let X of Y){if(X instanceof A1)J.update(`:${X.renderPath}`);else J.update(X.getRenderedHash()),J.update(X.generateId(Z,q,Q,!1));if(X instanceof A1)continue;for(let z of[...X.dependencies,...X.dynamicDependencies])Y.add(z)}return J.digest("hex").substr(0,8)}ensureReexportsAreAvailableForModule(Z){let q=[],Q=Z.getExportNamesByVariable();for(let J of Q.keys()){let Y=J instanceof G5,X=Y?J.getBaseVariable():J;if(!(X instanceof J6&&this.outputOptions.preserveModules)){this.checkCircularDependencyImport(X,Z);let z=X.module;if(z instanceof S1){let V=this.chunkByModule.get(z);if(V&&V!==this){if(V.exports.add(X),q.push(X),Y)this.imports.add(X)}}}}if(q.length)this.includedReexportsByModule.set(Z,q)}finaliseDynamicImports(Z,q){let Q=Z.format==="amd"&&!Z.amd.forceJsExtensionForImports;for(let[J,Y]of this.renderedModuleSources)for(let{node:X,resolution:z}of J.dynamicImports){let V=this.chunkByModule.get(z),W=this.facadeChunkByModule.get(z);if(!z||!X.included||V===this)continue;let K=z instanceof S1?`'${U4(X4(this.id,(W||V).id,Q,!0))}'`:z instanceof A1?`'${U4(z.renormalizeRenderPath?X4(this.id,z.renderPath,Q,!1):z.renderPath)}'`:z;X.renderFinalResolution(Y,K,z instanceof S1&&!(W===null||W===void 0?void 0:W.strictFacade)&&V.exportNamesByVariable.get(z.namespace)[0],q)}}finaliseImportMetas(Z,q){for(let[Q,J]of this.renderedModuleSources)for(let Y of Q.importMetas)Y.renderFinalMechanism(J,this.id,Z,q,this.pluginDriver)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;let Z=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];if(Z)return f9(Z);return"chunk"}getChunkDependencyDeclarations(Z,q){let Q=this.getImportSpecifiers(q),J=this.getReexportSpecifiers(),Y=new Map;for(let X of this.dependencies){let z=Q.get(X)||null,V=J.get(X)||null,W=X instanceof A1||X.exportMode!=="default";Y.set(X,{defaultVariableName:X.defaultVariableName,globalName:X instanceof A1&&(Z.format==="umd"||Z.format==="iife")&&UM(X,Z.globals,(z||V)!==null,this.inputOptions.onwarn),id:void 0,imports:z,isChunk:X instanceof I8,name:X.variableName,namedExportsMode:W,namespaceVariableName:X.namespaceVariableName,reexports:V})}return Y}getChunkExportDeclarations(Z,q){let Q=[];for(let J of this.getExportNames()){if(J[0]==="*")continue;let Y=this.exportsByName.get(J);if(!(Y instanceof G5)){let W=Y.module;if(W&&this.chunkByModule.get(W)!==this)continue}let X=null,z=!1,V=Y.getName(q);if(Y instanceof S5){for(let W of Y.declarations)if(W.parent instanceof W6||W instanceof R0&&W.declaration instanceof W6){z=!0;break}}else if(Y instanceof G5){if(X=V,Z==="es")V=Y.renderName}Q.push({exported:J,expression:X,hoisted:z,local:V})}return Q}getDependenciesToBeDeconflicted(Z,q,Q){let J=new Set,Y=new Set,X=new Set;for(let z of[...this.exportNamesByVariable.keys(),...this.imports])if(Z||z.isNamespace){let V=z.module;if(V instanceof A1){if(J.add(V),Z){if(z.name==="default"){if(C0[String(Q(V.id))])Y.add(V)}else if(z.name==="*"){if(I0[String(Q(V.id))])X.add(V)}}}else{let W=this.chunkByModule.get(V);if(W!==this){if(J.add(W),Z&&W.exportMode==="default"&&z.isNamespace)X.add(W)}}}if(q)for(let z of this.dependencies)J.add(z);return{deconflictedDefault:Y,deconflictedNamespace:X,dependencies:J}}getFallbackChunkName(){if(this.manualChunkAlias)return this.manualChunkAlias;if(this.dynamicName)return this.dynamicName;if(this.fileName)return M4(this.fileName);return M4(this.orderedModules[this.orderedModules.length-1].id)}getImportSpecifiers(Z){let{interop:q}=this.outputOptions,Q=new Map;for(let J of this.imports){let Y=J.module,X,z;if(Y instanceof A1){if(X=Y,z=J.name,z!=="default"&&z!=="*"&&q(Y.id)==="defaultOnly")return e($J(Y.id,z,!1))}else X=this.chunkByModule.get(Y),z=X.getVariableExportName(J);v5(Q,X,()=>[]).push({imported:z,local:J.getName(Z)})}return Q}getImportedBindingsPerDependency(){let Z={};for(let[q,Q]of this.renderedDependencies){let J=new Set;if(Q.imports)for(let{imported:Y}of Q.imports)J.add(Y);if(Q.reexports)for(let{imported:Y}of Q.reexports)J.add(Y);Z[q.id]=[...J]}return Z}getReexportSpecifiers(){let{externalLiveBindings:Z,interop:q}=this.outputOptions,Q=new Map;for(let J of this.getExportNames()){let Y,X,z=!1;if(J[0]==="*"){let V=J.substring(1);if(q(V)==="defaultOnly")this.inputOptions.onwarn(gU(V));z=Z,Y=this.modulesById.get(V),X=J="*"}else{let V=this.exportsByName.get(J);if(V instanceof G5)continue;let W=V.module;if(W instanceof S1){if(Y=this.chunkByModule.get(W),Y===this)continue;X=Y.getVariableExportName(V),z=V.isReassigned}else{if(Y=W,X=V.name,X!=="default"&&X!=="*"&&q(W.id)==="defaultOnly")return e($J(W.id,X,!0));z=Z&&(X!=="default"||J7(String(q(W.id)),!0))}}v5(Q,Y,()=>[]).push({imported:X,needsLiveBinding:z,reexported:J})}return Q}getReferencedFiles(){let Z=[];for(let q of this.orderedModules)for(let Q of q.importMetas){let J=Q.getReferencedFileName(this.pluginDriver);if(J)Z.push(J)}return Z}inlineChunkDependencies(Z){for(let q of Z.dependencies){if(this.dependencies.has(q))continue;if(this.dependencies.add(q),q instanceof I8)this.inlineChunkDependencies(q)}}prepareModulesForRendering(Z){var q;let Q=this.accessedGlobalsByScope;for(let J of this.orderedModules){for(let{node:Y,resolution:X}of J.dynamicImports)if(Y.included)if(X instanceof S1){let z=this.chunkByModule.get(X);if(z===this)Y.setInternalResolution(X.namespace);else Y.setExternalResolution(((q=this.facadeChunkByModule.get(X))===null||q===void 0?void 0:q.exportMode)||z.exportMode,X,this.outputOptions,Z,this.pluginDriver,Q)}else Y.setExternalResolution("external",X,this.outputOptions,Z,this.pluginDriver,Q);for(let Y of J.importMetas)Y.addAccessedGlobals(this.outputOptions.format,Q);if(this.includedNamespaces.has(J)&&!this.outputOptions.preserveModules)J.namespace.prepare(Q)}}setExternalRenderPaths(Z,q){for(let Q of[...this.dependencies,...this.dynamicDependencies])if(Q instanceof A1)Q.setRenderPath(Z,q)}setIdentifierRenderResolutions({format:Z,interop:q,namespaceToStringTag:Q}){let J=new Set;for(let X of this.getExportNames()){let z=this.exportsByName.get(X);if(Z!=="es"&&Z!=="system"&&z.isReassigned&&!z.isId)z.setRenderNames("exports",X);else if(z instanceof G5)J.add(z);else z.setRenderNames(null,null)}for(let X of this.orderedModules)if(X.needsExportShim){this.needsExportsShim=!0;break}let Y=new Set(["Object","Promise"]);if(this.needsExportsShim)Y.add(K6);if(Q)Y.add("Symbol");switch(Z){case"system":Y.add("module").add("exports");break;case"es":break;case"cjs":Y.add("module").add("require").add("__filename").add("__dirname");default:Y.add("exports");for(let X of JZ)Y.add(X)}eB(this.orderedModules,this.getDependenciesToBeDeconflicted(Z!=="es"&&Z!=="system",Z==="amd"||Z==="umd"||Z==="iife",q),this.imports,Y,Z,q,this.outputOptions.preserveModules,this.outputOptions.externalLiveBindings,this.chunkByModule,J,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setUpChunkImportsAndExportsForModule(Z){let q=new Set(Z.includedImports);if(!this.outputOptions.preserveModules){if(this.includedNamespaces.has(Z)){let Q=Z.namespace.getMemberVariables();for(let J of Object.values(Q))q.add(J)}}for(let Q of q){if(Q instanceof g5)Q=Q.getOriginalVariable();if(Q instanceof G5)Q=Q.getBaseVariable();let J=this.chunkByModule.get(Q.module);if(J!==this){if(this.imports.add(Q),!(Q instanceof J6&&this.outputOptions.preserveModules)&&Q.module instanceof S1)J.exports.add(Q),this.checkCircularDependencyImport(Q,Z)}}if(this.includedNamespaces.has(Z)||Z.info.isEntry&&Z.preserveSignature!==!1||Z.includedDynamicImporters.some((Q)=>this.chunkByModule.get(Q)!==this))this.ensureReexportsAreAvailableForModule(Z);for(let{node:Q,resolution:J}of Z.dynamicImports)if(Q.included&&J instanceof S1&&this.chunkByModule.get(J)===this&&!this.includedNamespaces.has(J))this.includedNamespaces.add(J),this.ensureReexportsAreAvailableForModule(J)}}function f9(Z){var q,Q,J,Y;return(Y=(Q=(q=Z.chunkNames.find(({isUserDefined:X})=>X))===null||q===void 0?void 0:q.name)!==null&&Q!==void 0?Q:(J=Z.chunkNames[0])===null||J===void 0?void 0:J.name)!==null&&Y!==void 0?Y:M4(Z.id)}async function BM(Z,q){try{let[Q,J,Y,X]=await Promise.all([q.hookReduceValue("banner",Z.banner(),[],lJ),q.hookReduceValue("footer",Z.footer(),[],lJ),q.hookReduceValue("intro",Z.intro(),[],cJ),q.hookReduceValue("outro",Z.outro(),[],cJ)]);if(Y)Y+=`
|
|
26
26
|
|
|
27
27
|
`;if(X)X=`
|
|
28
28
|
|
|
29
|
-
${X}`;if(
|
|
30
|
-
`;if(
|
|
31
|
-
`+
|
|
32
|
-
Error Message: ${
|
|
33
|
-
`,s:";"},W=
|
|
34
|
-
Defaulting to 2020, but this will stop working in the future.`);J.ecmaVersion=11}else if(J.ecmaVersion>=2015)J.ecmaVersion-=2009;if(J.allowReserved==null)J.allowReserved=J.ecmaVersion<5;if(sQ(J.onToken)){var Q=J.onToken;J.onToken=function(Y){return Q.push(Y)}}if(sQ(J.onComment))J.onComment=mM(J,J.onComment);return J}function mM(Z,J){return function(q,Q,Y,X,z,V){var W={type:q?"Block":"Line",value:Q,start:Y,end:X};if(Z.locations)W.loc=new V7(this,z,V);if(Z.ranges)W.range=[Y,X];J.push(W)}}function V3(Z,J){return B6|(Z?Y3:0)|(J?VX:0)}function cM(Z,J){var q=J.key.name,Q=Z[q],Y="true";if(J.type==="MethodDefinition"&&(J.kind==="get"||J.kind==="set"))Y=(J.static?"s":"i")+J.kind;if(Q==="iget"&&Y==="iset"||Q==="iset"&&Y==="iget"||Q==="sget"&&Y==="sset"||Q==="sset"&&Y==="sget")return Z[q]="true",!1;else if(!Q)return Z[q]=Y,!1;else return!0}function v4(Z,J){var{computed:q,key:Q}=Z;return!q&&(Q.type==="Identifier"&&Q.name===J||Q.type==="Literal"&&Q.value===J)}function MX(Z){return Z.type==="MemberExpression"&&Z.property.type==="PrivateIdentifier"||Z.type==="ChainExpression"&&MX(Z.expression)}function HX(Z,J,q,Q){if(Z.type=J,Z.end=q,this.options.locations)Z.loc.end=Q;if(this.options.ranges)Z.range[1]=q;return Z}function oM(Z){var J=_X[Z]={binary:_8(aM[Z]+" "+oQ),nonBinary:{General_Category:_8(oQ),Script:_8(rM[Z])}};J.nonBinary.Script_Extensions=J.nonBinary.Script,J.nonBinary.gc=J.nonBinary.General_Category,J.nonBinary.sc=J.nonBinary.Script,J.nonBinary.scx=J.nonBinary.Script_Extensions}function DX(Z){return Z===36||Z>=40&&Z<=43||Z===46||Z===63||Z>=91&&Z<=94||Z>=123&&Z<=125}function tM(Z){return r5(Z,!0)||Z===36||Z===95}function eM(Z){return $6(Z,!0)||Z===36||Z===95||Z===8204||Z===8205}function TX(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122}function ZH(Z){return Z>=0&&Z<=1114111}function JH(Z){return Z===100||Z===68||Z===115||Z===83||Z===119||Z===87}function AX(Z){return TX(Z)||Z===95}function qH(Z){return AX(Z)||$7(Z)}function $7(Z){return Z>=48&&Z<=57}function PX(Z){return Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102}function SX(Z){if(Z>=65&&Z<=70)return 10+(Z-65);if(Z>=97&&Z<=102)return 10+(Z-97);return Z-48}function yX(Z){return Z>=48&&Z<=55}function QH(Z,J){if(J)return parseInt(Z,8);return parseFloat(Z.replace(/_/g,""))}function EX(Z){if(typeof BigInt!=="function")return null;return BigInt(Z.replace(/_/g,""))}function XH(Z,J,q,Q,Y,X,z){let V=null,W=null;if(Y){V=new Set;for(let K of Y)if(Z===K.source&&J===K.importer)V.add(K.plugin);W=(K,$)=>({...K,resolve:(H,M,{custom:O,isEntry:j,skipSelf:L}=n1)=>{return Q(H,M,O,j,L?[...Y,{importer:M,plugin:$,source:H}]:Y)}})}return q.hookFirst("resolveId",[Z,J,{custom:X,isEntry:z}],W,V)}async function tQ(Z,J,q,Q,Y,X,z,V){let W=await XH(Z,J,Q,Y,X,z,V);if(W!=null)return W;if(J!==void 0&&!s5(Z)&&Z[0]!==".")return null;return zH(J?U5(f5(J),Z):U5(Z),q)}async function zH(Z,J){var q,Q;return(Q=(q=await N4(Z,J))!==null&&q!==void 0?q:await N4(Z+".mjs",J))!==null&&Q!==void 0?Q:await N4(Z+".js",J)}async function N4(Z,J){try{let q=await D8.lstat(Z);if(!J&&q.isSymbolicLink())return await N4(await D8.realpath(Z),J);if(J&&q.isSymbolicLink()||q.isFile()){let Q=z8(Z);if((await D8.readdir(f5(Z))).includes(Q))return Z}}catch(q){}}function g4(Z,J,{hook:q,id:Q}={}){if(typeof Z==="string")Z={message:Z};if(Z.code&&Z.code!==W1.PLUGIN_ERROR)Z.pluginCode=Z.code;if(Z.code=W1.PLUGIN_ERROR,Z.plugin=J,q)Z.hook=q;if(Q)Z.id=Q;return e(Z)}function WH(Z,J){for(let{active:q,deprecated:Q,replacement:Y}of VH)for(let X of Z)if(Q in X)j5({message:`The "${Q}" hook used by plugin ${X.name} is deprecated. The "${Y}" hook should be used instead.`,plugin:X.name},q,J)}function KH(Z){return{delete(J){return delete Z[J]},get(J){let q=Z[J];if(!q)return;return q[0]=0,q[1]},has(J){let q=Z[J];if(!q)return!1;return q[0]=0,!0},set(J,q){Z[J]=[0,q]}}}function $H(Z,J){return{delete(q){return J(),Z.delete(q)},get(q){return J(),Z.get(q)},has(q){return J(),Z.has(q)},set(q,Q){return J(),Z.set(q,Q)}}}function j4(Z){if(Z.startsWith(G3)||Z.startsWith(U3))return e({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."});return e({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${Z} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}function UH(Z){return{delete(){return j4(Z)},get(){return j4(Z)},has(){return j4(Z)},set(){return j4(Z)}}}async function jH(Z,J,q,Q){let Y=J.id,X=[],z=Z.map===null?null:XZ(Z.map),V=Z.code,W=Z.ast,K=[],$=[],H=!1,M=()=>H=!0,O="",j=Z.code;function L(y,_,T){let g,h;if(typeof _==="string")g=_;else if(_&&typeof _==="object"){if(J.updateOptions(_),_.code==null){if(_.map||_.ast)Q(fU(T.name));return y}({code:g,map:h,ast:W}=_)}else return y;if(h!==null)X.push(XZ(typeof h==="string"?JSON.parse(h):h)||{missing:!0,plugin:T.name});return g}let I;try{I=await q.hookReduceArg0("transform",[j,Y],L,(y,_)=>{return O=_.name,{...y,addWatchFile(T){K.push(T),y.addWatchFile(T)},cache:H?y.cache:$H(y.cache,M),emitAsset(T,g){return $.push({name:T,source:g,type:"asset"}),y.emitAsset(T,g)},emitChunk(T,g){return $.push({id:T,name:g&&g.name,type:"chunk"}),y.emitChunk(T,g)},emitFile(T){return $.push(T),q.emitFile(T)},error(T,g){if(typeof T==="string")T={message:T};if(g)_4(T,g,j,Y);return T.id=Y,T.hook="transform",y.error(T)},getCombinedSourcemap(){let T=oB(Y,V,z,X,Q);if(!T)return new P8(V).generateMap({hires:!0,includeContent:!0,source:Y});if(z!==T)z=T,X.length=0;return new H0({...T,file:null,sourcesContent:T.sourcesContent})},setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn(T,g){if(typeof T==="string")T={message:T};if(g)_4(T,g,j,Y);T.id=Y,T.hook="transform",y.warn(T)}}})}catch(y){g4(y,O,{hook:"transform",id:Y})}if(!H){if($.length)J.transformFiles=$}return{ast:W,code:I,customTransformCache:H,originalCode:V,originalSourcemap:z,sourcemapChain:X,transformDependencies:K}}class xX{constructor(Z,J,q,Q){this.graph=Z,this.modulesById=J,this.options=q,this.pluginDriver=Q,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(Y,X,z,V,W=null)=>{return this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(this.options.external(Y,X,!1)?!1:await tQ(Y,X,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,W,z,typeof V==="boolean"?V:!X),X,Y))},this.hasModuleSideEffects=q.treeshake?q.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(Z){let J=this.extendLoadModulesPromise(Promise.all(Z.map((q)=>this.loadEntryModule(q,!1,void 0,null))));return await this.awaitLoadModulesPromise(),J}async addEntryModules(Z,J){let q=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=Z.length;let Q=this.nextChunkNamePriority;this.nextChunkNamePriority+=Z.length;let Y=await this.extendLoadModulesPromise(Promise.all(Z.map(({id:X,importer:z})=>this.loadEntryModule(X,!0,z,null))).then((X)=>{for(let z=0;z<X.length;z++){let V=X[z];V.isUserDefinedEntryPoint=V.isUserDefinedEntryPoint||J,Z2(V,Z[z],J,Q+z);let W=this.indexedEntryModules.find((K)=>K.module===V);if(!W)this.indexedEntryModules.push({index:q+z,module:V});else W.index=Math.min(W.index,q+z)}return this.indexedEntryModules.sort(({index:z},{index:V})=>z>V?1:-1),X}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:X})=>X),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:Y}}async emitChunk({fileName:Z,id:J,importer:q,name:Q,implicitlyLoadedAfterOneOf:Y,preserveSignature:X}){let z={fileName:Z||null,id:J,importer:q,name:Q||null},V=Y?await this.addEntryWithImplicitDependants(z,Y):(await this.addEntryModules([z],!1)).newEntryModules[0];if(X!=null)V.preserveSignature=X;return V}async preloadModule(Z){return(await this.fetchModule(this.getResolvedIdWithDefaults(Z),void 0,!1,Z.resolveDependencies?g9:!0)).info}addEntryWithImplicitDependants(Z,J){let q=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(Z.id,!1,Z.importer,null).then(async(Q)=>{if(Z2(Q,Z,!1,q),!Q.info.isEntry){this.implicitEntryModules.add(Q);let Y=await Promise.all(J.map((X)=>this.loadEntryModule(X,!1,Z.importer,Q.id)));for(let X of Y)Q.implicitlyLoadedAfter.add(X);for(let X of Q.implicitlyLoadedAfter)X.implicitlyLoadedBefore.add(Q)}return Q}))}async addModuleSource(Z,J,q){s1("load modules",3);let Q;try{Q=await this.graph.fileOperationQueue.run(async()=>{var z;return(z=await this.pluginDriver.hookFirst("load",[Z]))!==null&&z!==void 0?z:await D8.readFile(Z,"utf8")})}catch(z){i1("load modules",3);let V=`Could not load ${Z}`;if(J)V+=` (imported by ${V1(J)})`;throw V+=`: ${z.message}`,z.message=V,z}i1("load modules",3);let Y=typeof Q==="string"?{code:Q}:Q!=null&&typeof Q==="object"&&typeof Q.code==="string"?Q:e(LU(Z)),X=this.graph.cachedModules.get(Z);if(X&&!X.customTransformCache&&X.originalCode===Y.code&&!await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:X.ast,code:X.code,id:X.id,meta:X.meta,moduleSideEffects:X.moduleSideEffects,resolvedSources:X.resolvedIds,syntheticNamedExports:X.syntheticNamedExports}])){if(X.transformFiles)for(let z of X.transformFiles)this.pluginDriver.emitFile(z);q.setSource(X)}else q.updateOptions(Y),q.setSource(await jH(Y,q,this.pluginDriver,this.options.onwarn))}async awaitLoadModulesPromise(){let Z;do Z=this.latestLoadModulesPromise,await Z;while(Z!==this.latestLoadModulesPromise)}extendLoadModulesPromise(Z){return this.latestLoadModulesPromise=Promise.all([Z,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),Z}async fetchDynamicDependencies(Z,J){let q=await Promise.all(J.map((Q)=>Q.then(async([Y,X])=>{if(X===null)return null;if(typeof X==="string")return Y.resolution=X,null;return Y.resolution=await this.fetchResolvedDependency(V1(X.id),Z.id,X)})));for(let Q of q)if(Q)Z.dynamicDependencies.add(Q),Q.dynamicImporters.push(Z.id)}async fetchModule({id:Z,meta:J,moduleSideEffects:q,syntheticNamedExports:Q},Y,X,z){let V=this.modulesById.get(Z);if(V instanceof S1)return await this.handleExistingModule(V,X,z),V;let W=new S1(this.graph,Z,this.options,X,q,Q,J);this.modulesById.set(Z,W),this.graph.watchFiles[Z]=!0;let K=this.addModuleSource(Z,Y,W).then(()=>[this.getResolveStaticDependencyPromises(W),this.getResolveDynamicImportPromises(W),$]),$=J2(K).then(()=>this.pluginDriver.hookParallel("moduleParsed",[W.info]));$.catch(()=>{}),this.moduleLoadPromises.set(W,K);let H=await K;if(!z)await this.fetchModuleDependencies(W,...H);else if(z===g9)await $;return W}async fetchModuleDependencies(Z,J,q,Q){if(this.modulesWithLoadedDependencies.has(Z))return;this.modulesWithLoadedDependencies.add(Z),await Promise.all([this.fetchStaticDependencies(Z,J),this.fetchDynamicDependencies(Z,q)]),Z.linkImports(),await Q}fetchResolvedDependency(Z,J,q){if(q.external){let{external:Q,id:Y,moduleSideEffects:X,meta:z}=q;if(!this.modulesById.has(Y))this.modulesById.set(Y,new A1(this.options,Y,X,z,Q!=="absolute"&&s5(Y)));let V=this.modulesById.get(Y);if(!(V instanceof A1))return e(_U(Z,J));return Promise.resolve(V)}return this.fetchModule(q,J,!1,!1)}async fetchStaticDependencies(Z,J){for(let q of await Promise.all(J.map((Q)=>Q.then(([Y,X])=>this.fetchResolvedDependency(Y,Z.id,X)))))Z.dependencies.add(q),q.importers.push(Z.id);if(!this.options.treeshake||Z.info.moduleSideEffects==="no-treeshake"){for(let q of Z.dependencies)if(q instanceof S1)q.importedFromNotTreeshaken=!0}}getNormalizedResolvedIdWithoutDefaults(Z,J,q){let{makeAbsoluteExternalsRelative:Q}=this.options;if(Z){if(typeof Z==="object"){let z=Z.external||this.options.external(Z.id,J,!0);return{...Z,external:z&&(z==="relative"||!s5(Z.id)||z===!0&&m9(Z.id,q,Q)||"absolute")}}let X=this.options.external(Z,J,!0);return{external:X&&(m9(Z,q,Q)||"absolute"),id:X&&Q?eQ(Z,J):Z}}let Y=Q?eQ(q,J):q;if(Z!==!1&&!this.options.external(Y,J,!0))return null;return{external:m9(Y,q,Q)||"absolute",id:Y}}getResolveDynamicImportPromises(Z){return Z.dynamicImports.map(async(J)=>{let q=await this.resolveDynamicImport(Z,typeof J.argument==="string"?J.argument:J.argument.esTreeNode,Z.id);if(q&&typeof q==="object")J.id=q.id;return[J,q]})}getResolveStaticDependencyPromises(Z){return Array.from(Z.sources,async(J)=>[J,Z.resolvedIds[J]=Z.resolvedIds[J]||this.handleResolveId(await this.resolveId(J,Z.id,o6,!1),J,Z.id)])}getResolvedIdWithDefaults(Z){var J,q;if(!Z)return null;let Q=Z.external||!1;return{external:Q,id:Z.id,meta:Z.meta||{},moduleSideEffects:(J=Z.moduleSideEffects)!==null&&J!==void 0?J:this.hasModuleSideEffects(Z.id,!!Q),syntheticNamedExports:(q=Z.syntheticNamedExports)!==null&&q!==void 0?q:!1}}async handleExistingModule(Z,J,q){let Q=this.moduleLoadPromises.get(Z);if(q)return q===g9?J2(Q):Q;if(J){Z.info.isEntry=!0,this.implicitEntryModules.delete(Z);for(let Y of Z.implicitlyLoadedAfter)Y.implicitlyLoadedBefore.delete(Z);Z.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(Z,...await Q)}handleResolveId(Z,J,q){if(Z===null){if(OZ(J))return e(dU(J,q));return this.options.onwarn(lU(J,q)),{external:!0,id:J,meta:{},moduleSideEffects:this.hasModuleSideEffects(J,!0),syntheticNamedExports:!1}}else if(Z.external&&Z.syntheticNamedExports)this.options.onwarn(cU(J,q));return Z}async loadEntryModule(Z,J,q,Q){let Y=await tQ(Z,q,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,o6,!0);if(Y==null)return e(Q===null?uU(Z):yU(Z,Q));if(Y===!1||typeof Y==="object"&&Y.external)return e(Q===null?mU(Z):SU(Z,Q));return this.fetchModule(this.getResolvedIdWithDefaults(typeof Y==="object"?Y:{id:Y}),void 0,J,!1)}async resolveDynamicImport(Z,J,q){var Q,Y;let X=await this.pluginDriver.hookFirst("resolveDynamicImport",[J,q]);if(typeof J!=="string"){if(typeof X==="string")return X;if(!X)return null;return{external:!1,moduleSideEffects:!0,...X}}if(X==null)return(Q=(Y=Z.resolvedIds)[J])!==null&&Q!==void 0?Q:Y[J]=this.handleResolveId(await this.resolveId(J,Z.id,o6,!1),J,Z.id);return this.handleResolveId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(X,q,J)),J,q)}}function eQ(Z,J){return OZ(Z)?J?U5(J,"..",Z):U5(Z):Z}function Z2(Z,{fileName:J,name:q},Q,Y){var X;if(J!==null)Z.chunkFileNames.add(J);else if(q!==null){let z=0;while(((X=Z.chunkNames[z])===null||X===void 0?void 0:X.priority)<Y)z++;Z.chunkNames.splice(z,0,{isUserDefined:Q,name:q,priority:Y})}}function m9(Z,J,q){return q===!0||q==="ifRelativeSource"&&OZ(J)||!s5(Z)}async function J2(Z){let[J,q]=await Z;return Promise.all([...J,...q])}function BH(Z,J,q,Q){let Y=q.sanitizeFileName(Z||"asset");return zZ(w4(typeof q.assetFileNames==="function"?q.assetFileNames({name:Z,source:J,type:"asset"}):q.assetFileNames,"output.assetFileNames",{ext:()=>Q8(Y).substring(1),extname:()=>Q8(Y),hash(){return k4().update(Y).update(":").update(J).digest("hex").substring(0,8)},name:()=>Y.substring(0,Y.length-Q8(Y).length)}),Q)}function q2(Z,J,q){let Q=Z.toLowerCase();if(J[q3].has(Q))q(NU(Z));else J[Z]=eY}function MH(Z){return Boolean(Z&&(Z.type==="asset"||Z.type==="chunk"))}function HH(Z){let J=Z.fileName||Z.name;return!J||typeof J==="string"&&!i9(J)}function Q2(Z,J,q){if(!(typeof Z==="string"||Z instanceof Uint8Array)){let Q=J.fileName||J.name||q;return e(n5(`Could not set source for ${typeof Q==="string"?`asset "${Q}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return Z}function FH(Z,J){if(typeof Z.fileName!=="string")return e(KU(Z.name||J));return Z.fileName}function LH(Z,J){var q;let Q=Z.fileName||Z.module&&((q=J===null||J===void 0?void 0:J.get(Z.module))===null||q===void 0?void 0:q.id);if(!Q)return e(GU(Z.fileName||Z.name));return Q}class fX{constructor(Z,J,q){this.graph=Z,this.options=J,this.bundle=null,this.facadeChunkByModule=null,this.outputOptions=null,this.assertAssetsFinalized=()=>{for(let[Q,Y]of this.filesByReferenceId)if(Y.type==="asset"&&typeof Y.fileName!=="string")return e(FU(Y.name||Q))},this.emitFile=(Q)=>{if(!MH(Q))return e(n5(`Emitted files must be of type "asset" or "chunk", received "${Q&&Q.type}".`));if(!HH(Q))return e(n5(`The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths, received "${Q.fileName||Q.name}".`));if(Q.type==="chunk")return this.emitChunk(Q);return this.emitAsset(Q)},this.getFileName=(Q)=>{let Y=this.filesByReferenceId.get(Q);if(!Y)return e(OU(Q));if(Y.type==="chunk")return LH(Y,this.facadeChunkByModule);return FH(Y,Q)},this.setAssetSource=(Q,Y)=>{let X=this.filesByReferenceId.get(Q);if(!X)return e(MU(Q));if(X.type!=="asset")return e(n5(`Asset sources can only be set for emitted assets but "${Q}" is an emitted chunk.`));if(X.source!==void 0)return e(HU(X.name||Q));let z=Q2(Y,X,Q);if(this.bundle)this.finalizeAsset(X,z,Q,this.bundle);else X.source=z},this.setOutputBundle=(Q,Y,X)=>{this.outputOptions=Y,this.bundle=Q,this.facadeChunkByModule=X;for(let{fileName:z}of this.filesByReferenceId.values())if(z)q2(z,Q,this.options.onwarn);for(let[z,V]of this.filesByReferenceId)if(V.type==="asset"&&V.source!==void 0)this.finalizeAsset(V,V.source,z,Q)},this.filesByReferenceId=q?new Map(q.filesByReferenceId):new Map}assignReferenceId(Z,J){let q;do q=k4().update(q||J).digest("hex").substring(0,8);while(this.filesByReferenceId.has(q));return this.filesByReferenceId.set(q,Z),q}emitAsset(Z){let J=typeof Z.source<"u"?Q2(Z.source,Z,null):void 0,q={fileName:Z.fileName,name:Z.name,source:J,type:"asset"},Q=this.assignReferenceId(q,Z.fileName||Z.name||Z.type);if(this.bundle){if(Z.fileName)q2(Z.fileName,this.bundle,this.options.onwarn);if(J!==void 0)this.finalizeAsset(q,J,Q,this.bundle)}return Q}emitChunk(Z){if(this.graph.phase>X8.LOAD_AND_PARSE)return e(PU());if(typeof Z.id!=="string")return e(n5(`Emitted chunks need to have a valid string id, received "${Z.id}"`));let J={fileName:Z.fileName,module:null,name:Z.name||Z.id,type:"chunk"};return this.graph.moduleLoader.emitChunk(Z).then((q)=>J.module=q).catch(()=>{}),this.assignReferenceId(J,Z.id)}finalizeAsset(Z,J,q,Q){let Y=Z.fileName||wH(Q,J)||BH(Z.name,J,this.outputOptions,Q),X={...Z,fileName:Y,source:J};this.filesByReferenceId.set(q,X);let{options:z}=this;Q[Y]={fileName:Y,get isAsset(){return j5(`Accessing "isAsset" on files in the bundle is deprecated, please use "type === 'asset'" instead`,!0,z),!0},name:Z.name,source:J,type:"asset"}}}function wH(Z,J){for(let[q,Q]of Object.entries(Z))if(Q.type==="asset"&&OH(J,Q.source))return q;return null}function OH(Z,J){if(typeof Z==="string")return Z===J;if(typeof J==="string")return!1;if("equals"in Z)return Z.equals(J);if(Z.length!==J.length)return!1;for(let q=0;q<Z.length;q++)if(Z[q]!==J[q])return!1;return!0}function o8(Z,J,q,Q,Y,X){let z=!1;return(...V)=>{if(!z)z=!0,j5({message:`The "this.${J}" plugin context function used by plugin ${Q} is deprecated. The "this.${q}" plugin context function should be used instead.`,plugin:Q},Y,X);return Z(...V)}}function NH(Z,J,q,Q,Y,X){let z=!0;if(typeof Z.cacheKey!=="string")if(Z.name.startsWith(G3)||Z.name.startsWith(U3)||X.has(Z.name))z=!1;else X.add(Z.name);let V;if(!J)V=GH;else if(z){let W=Z.cacheKey||Z.name;V=KH(J[W]||(J[W]=Object.create(null)))}else V=UH(Z.name);return{addWatchFile(W){if(q.phase>=X8.GENERATE)return this.error(AU());q.watchFiles[W]=!0},cache:V,emitAsset:o8((W,K)=>Y.emitFile({name:W,source:K,type:"asset"}),"emitAsset","emitFile",Z.name,!0,Q),emitChunk:o8((W,K)=>Y.emitFile({id:W,name:K&&K.name,type:"chunk"}),"emitChunk","emitFile",Z.name,!0,Q),emitFile:Y.emitFile.bind(Y),error(W){return g4(W,Z.name)},getAssetFileName:o8(Y.getFileName,"getAssetFileName","getFileName",Z.name,!0,Q),getChunkFileName:o8(Y.getFileName,"getChunkFileName","getFileName",Z.name,!0,Q),getFileName:Y.getFileName,getModuleIds:()=>q.modulesById.keys(),getModuleInfo:q.getModuleInfo,getWatchFiles:()=>Object.keys(q.watchFiles),isExternal:o8((W,K,$=!1)=>Q.external(W,K,$),"isExternal","resolve",Z.name,!0,Q),load(W){return q.moduleLoader.preloadModule(W)},meta:{rollupVersion:BZ,watchMode:q.watchMode},get moduleIds(){function*W(){j5({message:`Accessing "this.moduleIds" on the plugin context by plugin ${Z.name} is deprecated. The "this.getModuleIds" plugin context function should be used instead.`,plugin:Z.name},!1,Q),yield*K}let K=q.modulesById.keys();return W()},parse:q.contextParse.bind(q),resolve(W,K,{custom:$,isEntry:H,skipSelf:M}=n1){return q.moduleLoader.resolveId(W,K,$,H,M?[{importer:K,plugin:Z,source:W}]:null)},resolveId:o8((W,K)=>q.moduleLoader.resolveId(W,K,n1,void 0).then(($)=>$&&$.id),"resolveId","resolve",Z.name,!0,Q),setAssetSource:Y.setAssetSource,warn(W){if(typeof W==="string")W={message:W};if(W.code)W.pluginCode=W.code;W.code="PLUGIN_WARNING",W.plugin=Z.name,Q.onwarn(W)}}}class j3{constructor(Z,J,q,Q,Y){this.graph=Z,this.options=J,this.pluginCache=Q,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,WH(q,J),this.fileEmitter=new fX(Z,J,Y&&Y.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.assertAssetsFinalized.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=q.concat(Y?Y.plugins:[]);let X=new Set;if(this.pluginContexts=new Map(this.plugins.map((z)=>[z,NH(z,Q,Z,J,this.fileEmitter,X)])),Y){for(let z of q)for(let V of CH)if(V in z)J.onwarn(RU(z.name,V))}}createOutputPluginDriver(Z){return new j3(this.graph,this.options,Z,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(Z,J,q,Q){let Y=Promise.resolve(null);for(let X of this.getSortedPlugins(Z)){if(Q&&Q.has(X))continue;Y=Y.then((z)=>{if(z!=null)return z;return this.runHook(Z,J,X,q)})}return Y}hookFirstSync(Z,J,q){for(let Q of this.getSortedPlugins(Z)){let Y=this.runHookSync(Z,J,Q,q);if(Y!=null)return Y}return null}async hookParallel(Z,J,q){let Q=[];for(let Y of this.getSortedPlugins(Z))if(Y[Z].sequential)await Promise.all(Q),Q.length=0,await this.runHook(Z,J,Y,q);else Q.push(this.runHook(Z,J,Y,q));await Promise.all(Q)}hookReduceArg0(Z,[J,...q],Q,Y){let X=Promise.resolve(J);for(let z of this.getSortedPlugins(Z))X=X.then((V)=>this.runHook(Z,[V,...q],z,Y).then((W)=>Q.call(this.pluginContexts.get(z),V,W,z)));return X}hookReduceArg0Sync(Z,[J,...q],Q,Y){for(let X of this.getSortedPlugins(Z)){let z=[J,...q],V=this.runHookSync(Z,z,X,Y);J=Q.call(this.pluginContexts.get(X),J,V,X)}return J}async hookReduceValue(Z,J,q,Q){let Y=[],X=[];for(let z of this.getSortedPlugins(Z,_H))if(z[Z].sequential)Y.push(...await Promise.all(X)),X.length=0,Y.push(await this.runHook(Z,q,z));else X.push(this.runHook(Z,q,z));return Y.push(...await Promise.all(X)),Y.reduce(Q,await J)}hookReduceValueSync(Z,J,q,Q,Y){let X=J;for(let z of this.getSortedPlugins(Z)){let V=this.runHookSync(Z,q,z,Y);X=Q.call(this.pluginContexts.get(z),X,V,z)}return X}hookSeq(Z,J,q){let Q=Promise.resolve();for(let Y of this.getSortedPlugins(Z))Q=Q.then(()=>this.runHook(Z,J,Y,q));return Q.then(DH)}getSortedPlugins(Z,J){return v5(this.sortedPlugins,Z,()=>vX(Z,this.plugins,J))}runHook(Z,J,q,Q){let Y=q[Z],X=typeof Y==="object"?Y.handler:Y,z=this.pluginContexts.get(q);if(Q)z=Q(z,q);let V=null;return Promise.resolve().then(()=>{if(typeof X!=="function")return X;let W=X.apply(z,J);if(!(W===null||W===void 0?void 0:W.then))return W;return V=[q.name,Z,J],this.unfulfilledActions.add(V),Promise.resolve(W).then((K)=>{return this.unfulfilledActions.delete(V),K})}).catch((W)=>{if(V!==null)this.unfulfilledActions.delete(V);return g4(W,q.name,{hook:Z})})}runHookSync(Z,J,q,Q){let Y=q[Z],X=typeof Y==="object"?Y.handler:Y,z=this.pluginContexts.get(q);if(Q)z=Q(z,q);try{return X.apply(z,J)}catch(V){return g4(V,q.name,{hook:Z})}}}function vX(Z,J,q=IH){let Q=[],Y=[],X=[];for(let z of J){let V=z[Z];if(V){if(typeof V==="object"){if(q(V.handler,Z,z),V.order==="pre"){Q.push(z);continue}if(V.order==="post"){X.push(z);continue}}else q(V,Z,z);Y.push(z)}}return[...Q,...Y,...X]}function IH(Z,J,q){if(typeof Z!=="function")e(TU(J,q.name))}function _H(Z,J,q){if(typeof Z!=="string"&&typeof Z!=="function")return e(DU(J,q.name))}function DH(){}class hX{constructor(Z){this.maxParallel=Z,this.queue=[],this.workerCount=0}run(Z){return new Promise((J,q)=>{this.queue.push({reject:q,resolve:J,task:Z}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;this.workerCount++;let Z;while(Z=this.queue.shift()){let{reject:J,resolve:q,task:Q}=Z;try{let Y=await Q();q(Y)}catch(Y){J(Y)}}this.workerCount--}}function TH(Z){if(Array.isArray(Z))return Z.map((J)=>({fileName:null,id:J,implicitlyLoadedAfter:[],importer:void 0,name:null}));return Object.entries(Z).map(([J,q])=>({fileName:null,id:q,implicitlyLoadedAfter:[],importer:void 0,name:J}))}class gX{constructor(Z,J){var q,Q;if(this.options=Z,this.cachedModules=new Map,this.deoptimizationTracker=new Y0,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=X8.LOAD_AND_PARSE,this.scope=new kX,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=(Y)=>{let X=this.modulesById.get(Y);if(!X)return null;return X.info},Z.cache!==!1){if((q=Z.cache)===null||q===void 0?void 0:q.modules)for(let Y of Z.cache.modules)this.cachedModules.set(Y.id,Y);this.pluginCache=((Q=Z.cache)===null||Q===void 0?void 0:Q.plugins)||Object.create(null);for(let Y in this.pluginCache){let X=this.pluginCache[Y];for(let z of Object.values(X))z[0]++}}if(J){this.watchMode=!0;let Y=(...z)=>this.pluginDriver.hookParallel("watchChange",z),X=()=>this.pluginDriver.hookParallel("closeWatcher",[]);J.onCurrentAwaited("change",Y),J.onCurrentAwaited("close",X)}this.pluginDriver=new j3(this,Z,Z.plugins,this.pluginCache),this.acornParser=c1.extend(...Z.acornInjectPlugins),this.moduleLoader=new xX(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new hX(Z.maxParallelFileOps)}async build(){s1("generate module graph",2),await this.generateModuleGraph(),i1("generate module graph",2),s1("sort modules",2),this.phase=X8.ANALYSE,this.sortModules(),i1("sort modules",2),s1("mark included statements",2),this.includeStatements(),i1("mark included statements",2),this.phase=X8.GENERATE}contextParse(Z,J={}){let q=J.onComment,Q=[];if(q&&typeof q=="function")J.onComment=(X,z,V,W,...K)=>{return Q.push({end:W,start:V,type:X?"Block":"Line",value:z}),q.call(J,X,z,V,W,...K)};else J.onComment=Q;let Y=this.acornParser.parse(Z,{...this.options.acorn,...J});if(typeof q=="object")q.push(...Q);return J.onComment=q,pj(Q,Y,Z),Y}getCache(){for(let Z in this.pluginCache){let J=this.pluginCache[Z],q=!0;for(let[Q,Y]of Object.entries(J))if(Y[0]>=this.options.experimentalCacheExpiry)delete J[Q];else q=!1;if(q)delete this.pluginCache[Z]}return{modules:this.modules.map((Z)=>Z.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules(TH(this.options.input),!0),this.entryModules.length===0)throw Error("You must supply options.input to rollup");for(let Z of this.modulesById.values())if(Z instanceof S1)this.modules.push(Z);else this.externalModules.push(Z)}includeStatements(){for(let Z of[...this.entryModules,...this.implicitEntryModules])F4(Z);if(this.options.treeshake){let Z=1;do{s1(`treeshaking pass ${Z}`,3),this.needsTreeshakingPass=!1;for(let J of this.modules)if(J.isExecuted)if(J.info.moduleSideEffects==="no-treeshake")J.includeAllInBundle();else J.include();if(Z===1){for(let J of[...this.entryModules,...this.implicitEntryModules])if(J.preserveSignature!==!1)J.includeAllExports(!1),this.needsTreeshakingPass=!0}i1(`treeshaking pass ${Z++}`,3)}while(this.needsTreeshakingPass)}else for(let Z of this.modules)Z.includeAllInBundle();for(let Z of this.externalModules)Z.warnUnusedImports();for(let Z of this.implicitEntryModules)for(let J of Z.implicitlyLoadedAfter)if(!(J.info.isEntry||J.isIncluded()))e(EU(J))}sortModules(){let{orderedModules:Z,cyclePaths:J}=CM(this.entryModules);for(let q of J)this.options.onwarn({code:"CIRCULAR_DEPENDENCY",cycle:q,importer:q[0],message:`Circular dependency: ${q.join(" -> ")}`});this.modules=Z;for(let q of this.modules)q.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(let Z of this.modules)for(let J of Z.importDescriptions.values())if(J.name!=="*"&&!J.module.getVariableForExportName(J.name)[0])Z.warn({code:"NON_EXISTENT_EXPORT",message:`Non-existent export '${J.name}' is imported from ${V1(J.module.id)}`,name:J.name,source:J.module.id},J.start)}}function H6(Z){if(Array.isArray(Z))return Z.filter(Boolean);if(Z)return[Z];return[]}function AH([Z,J,q]){let Q=`(${Z}) ${J}`,Y=JSON.stringify;switch(J){case"resolveId":return`${Q} ${Y(q[0])} ${Y(q[1])}`;case"load":return`${Q} ${Y(q[0])}`;case"transform":return`${Q} ${Y(q[1])}`;case"shouldTransformCachedModule":return`${Q} ${Y(q[0].id)}`;case"moduleParsed":return`${Q} ${Y(q[0].id)}`}return Q}async function mX(Z,J){let q,Q=new Promise((X,z)=>{q=()=>{let V=Z.getUnfulfilledHookActions();z(Error(`Unexpected early exit. This happens when Promises returned by plugins cannot resolve. Unfinished hook action(s) on exit:
|
|
29
|
+
${X}`;if(Q.length)Q+=`
|
|
30
|
+
`;if(J.length)J=`
|
|
31
|
+
`+J;return{banner:Q,footer:J,intro:Y,outro:X}}catch(Q){return e({code:"ADDON_ERROR",message:`Could not retrieve ${Q.hook}. Check configuration of plugin ${Q.plugin}.
|
|
32
|
+
Error Message: ${Q.message}`})}}function MM(Z,q){let Q=[],J=new Set(q.keys()),Y=Object.create(null);for(let[M,O]of q){let L=Y[O]=Y[O]||[];HM(M,L,J)}for(let[M,O]of Object.entries(Y))Q.push({alias:M,modules:O});let X=new Map,{dependentEntryPointsByModule:z,dynamicEntryModules:V}=FM(Z),W=LM(z,V),K=new Set(Z);function $(M,O){let L=new Set([M]);for(let B of L){let C=v5(X,B,()=>new Set);if(O&&H(O,z.get(B)))continue;else C.add(M);for(let y of B.getDependenciesToBeIncluded())if(!(y instanceof A1||J.has(y)))L.add(y)}}function H(M,O){let L=new Set(M);for(let B of L)if(!O.has(B)){if(K.has(B))return!1;let C=W.get(B);for(let y of C)L.add(y)}return!0}for(let M of Z)if(!J.has(M))$(M,null);for(let M of V)if(!J.has(M))$(M,W.get(M));return Q.push(...wM([...Z,...V],X)),Q}function HM(Z,q,Q){let J=new Set([Z]);for(let Y of J){Q.add(Y),q.push(Y);for(let X of Y.dependencies)if(!(X instanceof A1||Q.has(X)))J.add(X)}}function FM(Z){let q=new Set,Q=new Map,J=new Set(Z);for(let Y of J){let X=new Set([Y]);for(let z of X){v5(Q,z,()=>new Set).add(Y);for(let V of z.getDependenciesToBeIncluded())if(!(V instanceof A1))X.add(V);for(let{resolution:V}of z.dynamicImports)if(V instanceof S1&&V.includedDynamicImporters.length>0)q.add(V),J.add(V);for(let V of z.implicitlyLoadedBefore)q.add(V),J.add(V)}}return{dependentEntryPointsByModule:Q,dynamicEntryModules:q}}function LM(Z,q){let Q=new Map;for(let J of q){let Y=v5(Q,J,()=>new Set);for(let X of[...J.includedDynamicImporters,...J.implicitlyLoadedAfter])for(let z of Z.get(X))Y.add(z)}return Q}function wM(Z,q){let Q=Object.create(null);for(let[J,Y]of q){let X="";for(let V of Z)X+=Y.has(V)?"X":"_";let z=Q[X];if(z)z.push(J);else Q[X]=[J]}return Object.values(Q).map((J)=>({alias:null,modules:J}))}function OM(Z){if(Z.length===0)return"/";if(Z.length===1)return f5(Z[0]);let q=Z.slice(1).reduce((Q,J)=>{let Y=J.split(/\/+|\\+/),X;for(X=0;Q[X]===Y[X]&&X<Math.min(Q.length,Y.length);X++);return Q.slice(0,X)},Z[0].split(/\/+|\\+/));return q.length>1?q.join("/"):"/"}function RM(Z){Z.sort(NM)}function CM(Z){let q=0,Q=[],J=new Set,Y=new Set,X=new Map,z=[],V=(W)=>{if(W instanceof S1){for(let K of W.dependencies){if(X.has(K)){if(!J.has(K))Q.push(IM(K,W,X));continue}X.set(K,W),V(K)}for(let K of W.implicitlyLoadedBefore)Y.add(K);for(let{resolution:K}of W.dynamicImports)if(K instanceof S1)Y.add(K);z.push(W)}W.execIndex=q++,J.add(W)};for(let W of Z)if(!X.has(W))X.set(W,null),V(W);for(let W of Y)if(!X.has(W))X.set(W,null),V(W);return{cyclePaths:Q,orderedModules:z}}function IM(Z,q,Q){let J=Symbol(Z.id),Y=[V1(Z.id)],X=q;Z.cycles.add(J);while(X!==Z)X.cycles.add(J),Y.push(V1(X.id)),X=Q.get(X);return Y.push(Y[0]),Y.reverse(),Y}function _M({compact:Z,generatedCode:{arrowFunctions:q,constBindings:Q,objectShorthand:J,reservedNamesAsProps:Y}}){let{_:X,n:z,s:V}=Z?{_:"",n:"",s:""}:{_:" ",n:`
|
|
33
|
+
`,s:";"},W=Q?"const":"var",K=(O,{isAsync:L,name:B})=>`${L?"async ":""}function${B?` ${B}`:""}${X}(${O.join(`,${X}`)})${X}`,$=q?(O,{isAsync:L,name:B})=>{let C=O.length===1,y=L?`async${C?" ":X}`:"";return`${B?`${W} ${B}${X}=${X}`:""}${y}${C?O[0]:`(${O.join(`,${X}`)})`}${X}=>${X}`}:K,H=(O,{functionReturn:L,lineBreakIndent:B,name:C})=>[`${$(O,{isAsync:!1,name:C})}${q?B?`${z}${B.base}${B.t}`:"":`{${B?`${z}${B.base}${B.t}`:X}${L?"return ":""}`}`,q?`${C?";":""}${B?`${z}${B.base}`:""}`:`${V}${B?`${z}${B.base}`:X}}`],M=Y?(O)=>iJ.test(O):(O)=>!l4.has(O)&&iJ.test(O);return{_:X,cnst:W,getDirectReturnFunction:H,getDirectReturnIifeLeft:(O,L,{needsArrowReturnParens:B,needsWrappedFunction:C})=>{let[y,P]=H(O,{functionReturn:!0,lineBreakIndent:null,name:null});return`${pJ(`${y}${pJ(L,q&&B)}${P}`,q||C)}(`},getFunctionIntro:$,getNonArrowFunctionIntro:K,getObject(O,{lineBreakIndent:L}){let B=L?`${z}${L.base}${L.t}`:X;return`{${O.map(([C,y])=>{if(C===null)return`${B}${y}`;let P=!M(C);return C===y&&J&&!P?B+C:`${B}${P?`'${C}'`:C}:${X}${y}`}).join(",")}${O.length===0?"":L?`${z}${L.base}`:X}}`},getPropertyAccess:(O)=>M(O)?`.${O}`:`[${JSON.stringify(O)}]`,n:z,s:V}}class qX{constructor(Z,q,Q,J,Y){this.outputOptions=Z,this.unsetOptions=q,this.inputOptions=Q,this.pluginDriver=J,this.graph=Y,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(Z){a1("GENERATE",1);let q=Object.create(null),Q=GM(q);this.pluginDriver.setOutputBundle(Q,this.outputOptions,this.facadeChunkByModule);try{await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),a1("generate chunks",2);let J=await this.generateChunks();if(J.length>1)TM(this.outputOptions,this.inputOptions.onwarn);let Y=OM(DM(J));i1("generate chunks",2),a1("render modules",2);let X=await BM(this.outputOptions,this.pluginDriver),z=_M(this.outputOptions);this.prerenderChunks(J,Y,z),i1("render modules",2),await this.addFinalizedChunksToBundle(J,Y,X,Q,z)}catch(J){throw await this.pluginDriver.hookParallel("renderError",[J]),J}return await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,Q,Z]),this.finaliseAssets(Q),AM(Q),i1("GENERATE",1),q}async addFinalizedChunksToBundle(Z,q,Q,J,Y){this.assignChunkIds(Z,q,Q,J);for(let X of Z)J[X.id]=X.getChunkInfoWithFileNames();await Promise.all(Z.map(async(X)=>{let z=J[X.id];Object.assign(z,await X.render(this.outputOptions,Q,z,Y))}))}async addManualChunks(Z){let q=new Map,Q=await Promise.all(Object.entries(Z).map(async([J,Y])=>({alias:J,entries:await this.graph.moduleLoader.addAdditionalModules(Y)})));for(let{alias:J,entries:Y}of Q)for(let X of Y)sJ(J,X,q);return q}assignChunkIds(Z,q,Q,J){let Y=[],X=[];for(let V of Z)(V.facadeModule&&V.facadeModule.isUserDefinedEntryPoint?Y:X).push(V);let z=Y.concat(X);for(let V of z){if(this.outputOptions.file)V.id=z8(this.outputOptions.file);else if(this.outputOptions.preserveModules)V.id=V.generateIdPreserveModules(q,this.outputOptions,J,this.unsetOptions);else V.id=V.generateId(Q,this.outputOptions,J,!0);J[V.id]=ZX}}assignManualChunks(Z){let q=[],Q={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(let Y of this.graph.modulesById.values())if(Y instanceof S1){let X=Z(Y.id,Q);if(typeof X==="string")q.push([X,Y])}q.sort(([Y],[X])=>Y>X?1:Y<X?-1:0);let J=new Map;for(let[Y,X]of q)sJ(Y,X,J);return J}finaliseAssets(Z){for(let q of Object.values(Z)){if(!q.type)j5('A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.',!0,this.inputOptions),q.type="asset";if(this.outputOptions.validate&&"code"in q)try{this.graph.contextParse(q.code,{allowHashBang:!0,ecmaVersion:"latest"})}catch(Q){this.inputOptions.onwarn(UU(q,Q))}}this.pluginDriver.finaliseAssets()}async generateChunks(){let{manualChunks:Z}=this.outputOptions,q=typeof Z==="object"?await this.addManualChunks(Z):this.assignManualChunks(Z),Q=[],J=new Map;for(let{alias:X,modules:z}of this.outputOptions.inlineDynamicImports?[{alias:null,modules:nJ(this.graph.modulesById)}]:this.outputOptions.preserveModules?nJ(this.graph.modulesById).map((V)=>({alias:null,modules:[V]})):MM(this.graph.entryModules,q)){RM(z);let V=new I8(z,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,J,this.facadeChunkByModule,this.includedNamespaces,X);Q.push(V);for(let W of z)J.set(W,V)}for(let X of Q)X.link();let Y=[];for(let X of Q)Y.push(...X.generateFacades());return[...Q,...Y]}prerenderChunks(Z,q,Q){for(let J of Z)J.generateExports();for(let J of Z)J.preRender(this.outputOptions,q,Q)}}function DM(Z){let q=[];for(let Q of Z)for(let J of Q.entryModules)if(a5(J.id))q.push(J.id);return q}function TM(Z,q){if(Z.format==="umd"||Z.format==="iife")return e(m1("output.format","outputformat","UMD and IIFE output formats are not supported for code-splitting builds",Z.format));if(typeof Z.file==="string")return e(m1("output.file","outputdir",'when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option'));if(Z.sourcemapFile)return e(m1("output.sourcemapFile","outputsourcemapfile",'"output.sourcemapFile" is only supported for single-file builds'));if(!Z.amd.autoId&&Z.amd.id)q(m1("output.amd.id","outputamd",'this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead'))}function nJ(Z){return[...Z.values()].filter((q)=>q instanceof S1&&(q.isIncluded()||q.info.isEntry||q.includedDynamicImporters.length>0))}function sJ(Z,q,Q){let J=Q.get(q);if(typeof J==="string"&&J!==Z)return e(CU(q.id,Z,J));Q.set(q,Z)}function aJ(Z){let q=nG(Z).replace(/\\/g,"/");return q===".."||q.startsWith("../")||q==="."||a5(q)}function AM(Z){for(let[q,Q]of Object.entries(Z)){if(aJ(q))return e(VJ(q));if(Q.type!=="placeholder"){let{fileName:J}=Q;if(J!==q&&aJ(J))return e(VJ(J))}}}function VZ(Z,q){var Q=65536;for(var J=0;J<q.length;J+=2){if(Q+=q[J],Q>Z)return!1;if(Q+=q[J+1],Q>=Z)return!0}}function r5(Z,q){if(Z<65)return Z===36;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&bM.test(String.fromCharCode(Z));if(q===!1)return!1;return VZ(Z,QX)}function $6(Z,q){if(Z<48)return Z===36;if(Z<58)return!0;if(Z<65)return!1;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&xM.test(String.fromCharCode(Z));if(q===!1)return!1;return VZ(Z,QX)||VZ(Z,PM)}function F5(Z,q){return new C1(Z,{beforeExpr:!0,binop:q})}function w1(Z,q){if(q===void 0)q={};return q.keyword=Z,J3[Z]=new C1(Z,q)}function j6(Z){return Z===10||Z===13||Z===8232||Z===8233}function YX(Z,q,Q){if(Q===void 0)Q=Z.length;for(var J=q;J<Q;J++){var Y=Z.charCodeAt(J);if(j6(Y))return J<Q-1&&Y===13&&Z.charCodeAt(J+1)===10?J+2:J+1}return-1}function _8(Z){return new RegExp("^(?:"+Z.replace(/ /g,"|")+")$")}function K8(Z){if(Z<=65535)return String.fromCharCode(Z);return Z-=65536,String.fromCharCode((Z>>10)+55296,(Z&1023)+56320)}function VX(Z,q){for(var Q=1,J=0;;){var Y=YX(Z,J,q);if(Y<0)return new B0(Q,q-J);++Q,J=Y}}function gM(Z){var q={};for(var Q in WZ)q[Q]=Z&&_0(Z,Q)?Z[Q]:WZ[Q];if(q.ecmaVersion==="latest")q.ecmaVersion=1e8;else if(q.ecmaVersion==null){if(!oJ&&typeof console==="object"&&console.warn)oJ=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
34
|
+
Defaulting to 2020, but this will stop working in the future.`);q.ecmaVersion=11}else if(q.ecmaVersion>=2015)q.ecmaVersion-=2009;if(q.allowReserved==null)q.allowReserved=q.ecmaVersion<5;if(rJ(q.onToken)){var J=q.onToken;q.onToken=function(Y){return J.push(Y)}}if(rJ(q.onComment))q.onComment=mM(q,q.onComment);return q}function mM(Z,q){return function(Q,J,Y,X,z,V){var W={type:Q?"Block":"Line",value:J,start:Y,end:X};if(Z.locations)W.loc=new V7(this,z,V);if(Z.ranges)W.range=[Y,X];q.push(W)}}function V3(Z,q){return B6|(Z?Y3:0)|(q?WX:0)}function cM(Z,q){var Q=q.key.name,J=Z[Q],Y="true";if(q.type==="MethodDefinition"&&(q.kind==="get"||q.kind==="set"))Y=(q.static?"s":"i")+q.kind;if(J==="iget"&&Y==="iset"||J==="iset"&&Y==="iget"||J==="sget"&&Y==="sset"||J==="sset"&&Y==="sget")return Z[Q]="true",!1;else if(!J)return Z[Q]=Y,!1;else return!0}function v4(Z,q){var{computed:Q,key:J}=Z;return!Q&&(J.type==="Identifier"&&J.name===q||J.type==="Literal"&&J.value===q)}function HX(Z){return Z.type==="MemberExpression"&&Z.property.type==="PrivateIdentifier"||Z.type==="ChainExpression"&&HX(Z.expression)}function FX(Z,q,Q,J){if(Z.type=q,Z.end=Q,this.options.locations)Z.loc.end=J;if(this.options.ranges)Z.range[1]=Q;return Z}function oM(Z){var q=DX[Z]={binary:_8(sM[Z]+" "+tJ),nonBinary:{General_Category:_8(tJ),Script:_8(rM[Z])}};q.nonBinary.Script_Extensions=q.nonBinary.Script,q.nonBinary.gc=q.nonBinary.General_Category,q.nonBinary.sc=q.nonBinary.Script,q.nonBinary.scx=q.nonBinary.Script_Extensions}function TX(Z){return Z===36||Z>=40&&Z<=43||Z===46||Z===63||Z>=91&&Z<=94||Z>=123&&Z<=125}function tM(Z){return r5(Z,!0)||Z===36||Z===95}function eM(Z){return $6(Z,!0)||Z===36||Z===95||Z===8204||Z===8205}function AX(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122}function ZH(Z){return Z>=0&&Z<=1114111}function qH(Z){return Z===100||Z===68||Z===115||Z===83||Z===119||Z===87}function PX(Z){return AX(Z)||Z===95}function QH(Z){return PX(Z)||$7(Z)}function $7(Z){return Z>=48&&Z<=57}function SX(Z){return Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102}function yX(Z){if(Z>=65&&Z<=70)return 10+(Z-65);if(Z>=97&&Z<=102)return 10+(Z-97);return Z-48}function EX(Z){return Z>=48&&Z<=55}function JH(Z,q){if(q)return parseInt(Z,8);return parseFloat(Z.replace(/_/g,""))}function bX(Z){if(typeof BigInt!=="function")return null;return BigInt(Z.replace(/_/g,""))}function XH(Z,q,Q,J,Y,X,z){let V=null,W=null;if(Y){V=new Set;for(let K of Y)if(Z===K.source&&q===K.importer)V.add(K.plugin);W=(K,$)=>({...K,resolve:(H,M,{custom:O,isEntry:L,skipSelf:B}=n1)=>{return J(H,M,O,L,B?[...Y,{importer:M,plugin:$,source:H}]:Y)}})}return Q.hookFirst("resolveId",[Z,q,{custom:X,isEntry:z}],W,V)}async function eJ(Z,q,Q,J,Y,X,z,V){let W=await XH(Z,q,J,Y,X,z,V);if(W!=null)return W;if(q!==void 0&&!a5(Z)&&Z[0]!==".")return null;return zH(q?U5(f5(q),Z):U5(Z),Q)}async function zH(Z,q){var Q,J;return(J=(Q=await N4(Z,q))!==null&&Q!==void 0?Q:await N4(Z+".mjs",q))!==null&&J!==void 0?J:await N4(Z+".js",q)}async function N4(Z,q){try{let Q=await D8.lstat(Z);if(!q&&Q.isSymbolicLink())return await N4(await D8.realpath(Z),q);if(q&&Q.isSymbolicLink()||Q.isFile()){let J=z8(Z);if((await D8.readdir(f5(Z))).includes(J))return Z}}catch(Q){}}function g4(Z,q,{hook:Q,id:J}={}){if(typeof Z==="string")Z={message:Z};if(Z.code&&Z.code!==W1.PLUGIN_ERROR)Z.pluginCode=Z.code;if(Z.code=W1.PLUGIN_ERROR,Z.plugin=q,Q)Z.hook=Q;if(J)Z.id=J;return e(Z)}function WH(Z,q){for(let{active:Q,deprecated:J,replacement:Y}of VH)for(let X of Z)if(J in X)j5({message:`The "${J}" hook used by plugin ${X.name} is deprecated. The "${Y}" hook should be used instead.`,plugin:X.name},Q,q)}function KH(Z){return{delete(q){return delete Z[q]},get(q){let Q=Z[q];if(!Q)return;return Q[0]=0,Q[1]},has(q){let Q=Z[q];if(!Q)return!1;return Q[0]=0,!0},set(q,Q){Z[q]=[0,Q]}}}function $H(Z,q){return{delete(Q){return q(),Z.delete(Q)},get(Q){return q(),Z.get(Q)},has(Q){return q(),Z.has(Q)},set(Q,J){return q(),Z.set(Q,J)}}}function j4(Z){if(Z.startsWith(G3)||Z.startsWith(U3))return e({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."});return e({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${Z} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}function UH(Z){return{delete(){return j4(Z)},get(){return j4(Z)},has(){return j4(Z)},set(){return j4(Z)}}}async function jH(Z,q,Q,J){let Y=q.id,X=[],z=Z.map===null?null:XZ(Z.map),V=Z.code,W=Z.ast,K=[],$=[],H=!1,M=()=>H=!0,O="",L=Z.code;function B(y,P,_){let v,h;if(typeof P==="string")v=P;else if(P&&typeof P==="object"){if(q.updateOptions(P),P.code==null){if(P.map||P.ast)J(fU(_.name));return y}({code:v,map:h,ast:W}=P)}else return y;if(h!==null)X.push(XZ(typeof h==="string"?JSON.parse(h):h)||{missing:!0,plugin:_.name});return v}let C;try{C=await Q.hookReduceArg0("transform",[L,Y],B,(y,P)=>{return O=P.name,{...y,addWatchFile(_){K.push(_),y.addWatchFile(_)},cache:H?y.cache:$H(y.cache,M),emitAsset(_,v){return $.push({name:_,source:v,type:"asset"}),y.emitAsset(_,v)},emitChunk(_,v){return $.push({id:_,name:v&&v.name,type:"chunk"}),y.emitChunk(_,v)},emitFile(_){return $.push(_),Q.emitFile(_)},error(_,v){if(typeof _==="string")_={message:_};if(v)_4(_,v,L,Y);return _.id=Y,_.hook="transform",y.error(_)},getCombinedSourcemap(){let _=oB(Y,V,z,X,J);if(!_)return new P8(V).generateMap({hires:!0,includeContent:!0,source:Y});if(z!==_)z=_,X.length=0;return new H0({..._,file:null,sourcesContent:_.sourcesContent})},setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn(_,v){if(typeof _==="string")_={message:_};if(v)_4(_,v,L,Y);_.id=Y,_.hook="transform",y.warn(_)}}})}catch(y){g4(y,O,{hook:"transform",id:Y})}if(!H){if($.length)q.transformFiles=$}return{ast:W,code:C,customTransformCache:H,originalCode:V,originalSourcemap:z,sourcemapChain:X,transformDependencies:K}}class kX{constructor(Z,q,Q,J){this.graph=Z,this.modulesById=q,this.options=Q,this.pluginDriver=J,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(Y,X,z,V,W=null)=>{return this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(this.options.external(Y,X,!1)?!1:await eJ(Y,X,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,W,z,typeof V==="boolean"?V:!X),X,Y))},this.hasModuleSideEffects=Q.treeshake?Q.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(Z){let q=this.extendLoadModulesPromise(Promise.all(Z.map((Q)=>this.loadEntryModule(Q,!1,void 0,null))));return await this.awaitLoadModulesPromise(),q}async addEntryModules(Z,q){let Q=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=Z.length;let J=this.nextChunkNamePriority;this.nextChunkNamePriority+=Z.length;let Y=await this.extendLoadModulesPromise(Promise.all(Z.map(({id:X,importer:z})=>this.loadEntryModule(X,!0,z,null))).then((X)=>{for(let z=0;z<X.length;z++){let V=X[z];V.isUserDefinedEntryPoint=V.isUserDefinedEntryPoint||q,q2(V,Z[z],q,J+z);let W=this.indexedEntryModules.find((K)=>K.module===V);if(!W)this.indexedEntryModules.push({index:Q+z,module:V});else W.index=Math.min(W.index,Q+z)}return this.indexedEntryModules.sort(({index:z},{index:V})=>z>V?1:-1),X}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:X})=>X),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:Y}}async emitChunk({fileName:Z,id:q,importer:Q,name:J,implicitlyLoadedAfterOneOf:Y,preserveSignature:X}){let z={fileName:Z||null,id:q,importer:Q,name:J||null},V=Y?await this.addEntryWithImplicitDependants(z,Y):(await this.addEntryModules([z],!1)).newEntryModules[0];if(X!=null)V.preserveSignature=X;return V}async preloadModule(Z){return(await this.fetchModule(this.getResolvedIdWithDefaults(Z),void 0,!1,Z.resolveDependencies?g9:!0)).info}addEntryWithImplicitDependants(Z,q){let Q=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(Z.id,!1,Z.importer,null).then(async(J)=>{if(q2(J,Z,!1,Q),!J.info.isEntry){this.implicitEntryModules.add(J);let Y=await Promise.all(q.map((X)=>this.loadEntryModule(X,!1,Z.importer,J.id)));for(let X of Y)J.implicitlyLoadedAfter.add(X);for(let X of J.implicitlyLoadedAfter)X.implicitlyLoadedBefore.add(J)}return J}))}async addModuleSource(Z,q,Q){a1("load modules",3);let J;try{J=await this.graph.fileOperationQueue.run(async()=>{var z;return(z=await this.pluginDriver.hookFirst("load",[Z]))!==null&&z!==void 0?z:await D8.readFile(Z,"utf8")})}catch(z){i1("load modules",3);let V=`Could not load ${Z}`;if(q)V+=` (imported by ${V1(q)})`;throw V+=`: ${z.message}`,z.message=V,z}i1("load modules",3);let Y=typeof J==="string"?{code:J}:J!=null&&typeof J==="object"&&typeof J.code==="string"?J:e(LU(Z)),X=this.graph.cachedModules.get(Z);if(X&&!X.customTransformCache&&X.originalCode===Y.code&&!await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:X.ast,code:X.code,id:X.id,meta:X.meta,moduleSideEffects:X.moduleSideEffects,resolvedSources:X.resolvedIds,syntheticNamedExports:X.syntheticNamedExports}])){if(X.transformFiles)for(let z of X.transformFiles)this.pluginDriver.emitFile(z);Q.setSource(X)}else Q.updateOptions(Y),Q.setSource(await jH(Y,Q,this.pluginDriver,this.options.onwarn))}async awaitLoadModulesPromise(){let Z;do Z=this.latestLoadModulesPromise,await Z;while(Z!==this.latestLoadModulesPromise)}extendLoadModulesPromise(Z){return this.latestLoadModulesPromise=Promise.all([Z,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),Z}async fetchDynamicDependencies(Z,q){let Q=await Promise.all(q.map((J)=>J.then(async([Y,X])=>{if(X===null)return null;if(typeof X==="string")return Y.resolution=X,null;return Y.resolution=await this.fetchResolvedDependency(V1(X.id),Z.id,X)})));for(let J of Q)if(J)Z.dynamicDependencies.add(J),J.dynamicImporters.push(Z.id)}async fetchModule({id:Z,meta:q,moduleSideEffects:Q,syntheticNamedExports:J},Y,X,z){let V=this.modulesById.get(Z);if(V instanceof S1)return await this.handleExistingModule(V,X,z),V;let W=new S1(this.graph,Z,this.options,X,Q,J,q);this.modulesById.set(Z,W),this.graph.watchFiles[Z]=!0;let K=this.addModuleSource(Z,Y,W).then(()=>[this.getResolveStaticDependencyPromises(W),this.getResolveDynamicImportPromises(W),$]),$=Q2(K).then(()=>this.pluginDriver.hookParallel("moduleParsed",[W.info]));$.catch(()=>{}),this.moduleLoadPromises.set(W,K);let H=await K;if(!z)await this.fetchModuleDependencies(W,...H);else if(z===g9)await $;return W}async fetchModuleDependencies(Z,q,Q,J){if(this.modulesWithLoadedDependencies.has(Z))return;this.modulesWithLoadedDependencies.add(Z),await Promise.all([this.fetchStaticDependencies(Z,q),this.fetchDynamicDependencies(Z,Q)]),Z.linkImports(),await J}fetchResolvedDependency(Z,q,Q){if(Q.external){let{external:J,id:Y,moduleSideEffects:X,meta:z}=Q;if(!this.modulesById.has(Y))this.modulesById.set(Y,new A1(this.options,Y,X,z,J!=="absolute"&&a5(Y)));let V=this.modulesById.get(Y);if(!(V instanceof A1))return e(_U(Z,q));return Promise.resolve(V)}return this.fetchModule(Q,q,!1,!1)}async fetchStaticDependencies(Z,q){for(let Q of await Promise.all(q.map((J)=>J.then(([Y,X])=>this.fetchResolvedDependency(Y,Z.id,X)))))Z.dependencies.add(Q),Q.importers.push(Z.id);if(!this.options.treeshake||Z.info.moduleSideEffects==="no-treeshake"){for(let Q of Z.dependencies)if(Q instanceof S1)Q.importedFromNotTreeshaken=!0}}getNormalizedResolvedIdWithoutDefaults(Z,q,Q){let{makeAbsoluteExternalsRelative:J}=this.options;if(Z){if(typeof Z==="object"){let z=Z.external||this.options.external(Z.id,q,!0);return{...Z,external:z&&(z==="relative"||!a5(Z.id)||z===!0&&m9(Z.id,Q,J)||"absolute")}}let X=this.options.external(Z,q,!0);return{external:X&&(m9(Z,Q,J)||"absolute"),id:X&&J?Z2(Z,q):Z}}let Y=J?Z2(Q,q):Q;if(Z!==!1&&!this.options.external(Y,q,!0))return null;return{external:m9(Y,Q,J)||"absolute",id:Y}}getResolveDynamicImportPromises(Z){return Z.dynamicImports.map(async(q)=>{let Q=await this.resolveDynamicImport(Z,typeof q.argument==="string"?q.argument:q.argument.esTreeNode,Z.id);if(Q&&typeof Q==="object")q.id=Q.id;return[q,Q]})}getResolveStaticDependencyPromises(Z){return Array.from(Z.sources,async(q)=>[q,Z.resolvedIds[q]=Z.resolvedIds[q]||this.handleResolveId(await this.resolveId(q,Z.id,o6,!1),q,Z.id)])}getResolvedIdWithDefaults(Z){var q,Q;if(!Z)return null;let J=Z.external||!1;return{external:J,id:Z.id,meta:Z.meta||{},moduleSideEffects:(q=Z.moduleSideEffects)!==null&&q!==void 0?q:this.hasModuleSideEffects(Z.id,!!J),syntheticNamedExports:(Q=Z.syntheticNamedExports)!==null&&Q!==void 0?Q:!1}}async handleExistingModule(Z,q,Q){let J=this.moduleLoadPromises.get(Z);if(Q)return Q===g9?Q2(J):J;if(q){Z.info.isEntry=!0,this.implicitEntryModules.delete(Z);for(let Y of Z.implicitlyLoadedAfter)Y.implicitlyLoadedBefore.delete(Z);Z.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(Z,...await J)}handleResolveId(Z,q,Q){if(Z===null){if(OZ(q))return e(dU(q,Q));return this.options.onwarn(lU(q,Q)),{external:!0,id:q,meta:{},moduleSideEffects:this.hasModuleSideEffects(q,!0),syntheticNamedExports:!1}}else if(Z.external&&Z.syntheticNamedExports)this.options.onwarn(cU(q,Q));return Z}async loadEntryModule(Z,q,Q,J){let Y=await eJ(Z,Q,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,o6,!0);if(Y==null)return e(J===null?uU(Z):yU(Z,J));if(Y===!1||typeof Y==="object"&&Y.external)return e(J===null?mU(Z):SU(Z,J));return this.fetchModule(this.getResolvedIdWithDefaults(typeof Y==="object"?Y:{id:Y}),void 0,q,!1)}async resolveDynamicImport(Z,q,Q){var J,Y;let X=await this.pluginDriver.hookFirst("resolveDynamicImport",[q,Q]);if(typeof q!=="string"){if(typeof X==="string")return X;if(!X)return null;return{external:!1,moduleSideEffects:!0,...X}}if(X==null)return(J=(Y=Z.resolvedIds)[q])!==null&&J!==void 0?J:Y[q]=this.handleResolveId(await this.resolveId(q,Z.id,o6,!1),q,Z.id);return this.handleResolveId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(X,Q,q)),q,Q)}}function Z2(Z,q){return OZ(Z)?q?U5(q,"..",Z):U5(Z):Z}function q2(Z,{fileName:q,name:Q},J,Y){var X;if(q!==null)Z.chunkFileNames.add(q);else if(Q!==null){let z=0;while(((X=Z.chunkNames[z])===null||X===void 0?void 0:X.priority)<Y)z++;Z.chunkNames.splice(z,0,{isUserDefined:J,name:Q,priority:Y})}}function m9(Z,q,Q){return Q===!0||Q==="ifRelativeSource"&&OZ(q)||!a5(Z)}async function Q2(Z){let[q,Q]=await Z;return Promise.all([...q,...Q])}function BH(Z,q,Q,J){let Y=Q.sanitizeFileName(Z||"asset");return zZ(w4(typeof Q.assetFileNames==="function"?Q.assetFileNames({name:Z,source:q,type:"asset"}):Q.assetFileNames,"output.assetFileNames",{ext:()=>J8(Y).substring(1),extname:()=>J8(Y),hash(){return k4().update(Y).update(":").update(q).digest("hex").substring(0,8)},name:()=>Y.substring(0,Y.length-J8(Y).length)}),J)}function J2(Z,q,Q){let J=Z.toLowerCase();if(q[Q3].has(J))Q(NU(Z));else q[Z]=ZX}function MH(Z){return Boolean(Z&&(Z.type==="asset"||Z.type==="chunk"))}function HH(Z){let q=Z.fileName||Z.name;return!q||typeof q==="string"&&!i9(q)}function Y2(Z,q,Q){if(!(typeof Z==="string"||Z instanceof Uint8Array)){let J=q.fileName||q.name||Q;return e(n5(`Could not set source for ${typeof J==="string"?`asset "${J}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return Z}function FH(Z,q){if(typeof Z.fileName!=="string")return e(KU(Z.name||q));return Z.fileName}function LH(Z,q){var Q;let J=Z.fileName||Z.module&&((Q=q===null||q===void 0?void 0:q.get(Z.module))===null||Q===void 0?void 0:Q.id);if(!J)return e(GU(Z.fileName||Z.name));return J}class vX{constructor(Z,q,Q){this.graph=Z,this.options=q,this.bundle=null,this.facadeChunkByModule=null,this.outputOptions=null,this.assertAssetsFinalized=()=>{for(let[J,Y]of this.filesByReferenceId)if(Y.type==="asset"&&typeof Y.fileName!=="string")return e(FU(Y.name||J))},this.emitFile=(J)=>{if(!MH(J))return e(n5(`Emitted files must be of type "asset" or "chunk", received "${J&&J.type}".`));if(!HH(J))return e(n5(`The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths, received "${J.fileName||J.name}".`));if(J.type==="chunk")return this.emitChunk(J);return this.emitAsset(J)},this.getFileName=(J)=>{let Y=this.filesByReferenceId.get(J);if(!Y)return e(OU(J));if(Y.type==="chunk")return LH(Y,this.facadeChunkByModule);return FH(Y,J)},this.setAssetSource=(J,Y)=>{let X=this.filesByReferenceId.get(J);if(!X)return e(MU(J));if(X.type!=="asset")return e(n5(`Asset sources can only be set for emitted assets but "${J}" is an emitted chunk.`));if(X.source!==void 0)return e(HU(X.name||J));let z=Y2(Y,X,J);if(this.bundle)this.finalizeAsset(X,z,J,this.bundle);else X.source=z},this.setOutputBundle=(J,Y,X)=>{this.outputOptions=Y,this.bundle=J,this.facadeChunkByModule=X;for(let{fileName:z}of this.filesByReferenceId.values())if(z)J2(z,J,this.options.onwarn);for(let[z,V]of this.filesByReferenceId)if(V.type==="asset"&&V.source!==void 0)this.finalizeAsset(V,V.source,z,J)},this.filesByReferenceId=Q?new Map(Q.filesByReferenceId):new Map}assignReferenceId(Z,q){let Q;do Q=k4().update(Q||q).digest("hex").substring(0,8);while(this.filesByReferenceId.has(Q));return this.filesByReferenceId.set(Q,Z),Q}emitAsset(Z){let q=typeof Z.source<"u"?Y2(Z.source,Z,null):void 0,Q={fileName:Z.fileName,name:Z.name,source:q,type:"asset"},J=this.assignReferenceId(Q,Z.fileName||Z.name||Z.type);if(this.bundle){if(Z.fileName)J2(Z.fileName,this.bundle,this.options.onwarn);if(q!==void 0)this.finalizeAsset(Q,q,J,this.bundle)}return J}emitChunk(Z){if(this.graph.phase>X8.LOAD_AND_PARSE)return e(PU());if(typeof Z.id!=="string")return e(n5(`Emitted chunks need to have a valid string id, received "${Z.id}"`));let q={fileName:Z.fileName,module:null,name:Z.name||Z.id,type:"chunk"};return this.graph.moduleLoader.emitChunk(Z).then((Q)=>q.module=Q).catch(()=>{}),this.assignReferenceId(q,Z.id)}finalizeAsset(Z,q,Q,J){let Y=Z.fileName||wH(J,q)||BH(Z.name,q,this.outputOptions,J),X={...Z,fileName:Y,source:q};this.filesByReferenceId.set(Q,X);let{options:z}=this;J[Y]={fileName:Y,get isAsset(){return j5(`Accessing "isAsset" on files in the bundle is deprecated, please use "type === 'asset'" instead`,!0,z),!0},name:Z.name,source:q,type:"asset"}}}function wH(Z,q){for(let[Q,J]of Object.entries(Z))if(J.type==="asset"&&OH(q,J.source))return Q;return null}function OH(Z,q){if(typeof Z==="string")return Z===q;if(typeof q==="string")return!1;if("equals"in Z)return Z.equals(q);if(Z.length!==q.length)return!1;for(let Q=0;Q<Z.length;Q++)if(Z[Q]!==q[Q])return!1;return!0}function o8(Z,q,Q,J,Y,X){let z=!1;return(...V)=>{if(!z)z=!0,j5({message:`The "this.${q}" plugin context function used by plugin ${J} is deprecated. The "this.${Q}" plugin context function should be used instead.`,plugin:J},Y,X);return Z(...V)}}function NH(Z,q,Q,J,Y,X){let z=!0;if(typeof Z.cacheKey!=="string")if(Z.name.startsWith(G3)||Z.name.startsWith(U3)||X.has(Z.name))z=!1;else X.add(Z.name);let V;if(!q)V=GH;else if(z){let W=Z.cacheKey||Z.name;V=KH(q[W]||(q[W]=Object.create(null)))}else V=UH(Z.name);return{addWatchFile(W){if(Q.phase>=X8.GENERATE)return this.error(AU());Q.watchFiles[W]=!0},cache:V,emitAsset:o8((W,K)=>Y.emitFile({name:W,source:K,type:"asset"}),"emitAsset","emitFile",Z.name,!0,J),emitChunk:o8((W,K)=>Y.emitFile({id:W,name:K&&K.name,type:"chunk"}),"emitChunk","emitFile",Z.name,!0,J),emitFile:Y.emitFile.bind(Y),error(W){return g4(W,Z.name)},getAssetFileName:o8(Y.getFileName,"getAssetFileName","getFileName",Z.name,!0,J),getChunkFileName:o8(Y.getFileName,"getChunkFileName","getFileName",Z.name,!0,J),getFileName:Y.getFileName,getModuleIds:()=>Q.modulesById.keys(),getModuleInfo:Q.getModuleInfo,getWatchFiles:()=>Object.keys(Q.watchFiles),isExternal:o8((W,K,$=!1)=>J.external(W,K,$),"isExternal","resolve",Z.name,!0,J),load(W){return Q.moduleLoader.preloadModule(W)},meta:{rollupVersion:BZ,watchMode:Q.watchMode},get moduleIds(){function*W(){j5({message:`Accessing "this.moduleIds" on the plugin context by plugin ${Z.name} is deprecated. The "this.getModuleIds" plugin context function should be used instead.`,plugin:Z.name},!1,J),yield*K}let K=Q.modulesById.keys();return W()},parse:Q.contextParse.bind(Q),resolve(W,K,{custom:$,isEntry:H,skipSelf:M}=n1){return Q.moduleLoader.resolveId(W,K,$,H,M?[{importer:K,plugin:Z,source:W}]:null)},resolveId:o8((W,K)=>Q.moduleLoader.resolveId(W,K,n1,void 0).then(($)=>$&&$.id),"resolveId","resolve",Z.name,!0,J),setAssetSource:Y.setAssetSource,warn(W){if(typeof W==="string")W={message:W};if(W.code)W.pluginCode=W.code;W.code="PLUGIN_WARNING",W.plugin=Z.name,J.onwarn(W)}}}class j3{constructor(Z,q,Q,J,Y){this.graph=Z,this.options=q,this.pluginCache=J,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,WH(Q,q),this.fileEmitter=new vX(Z,q,Y&&Y.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.assertAssetsFinalized.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=Q.concat(Y?Y.plugins:[]);let X=new Set;if(this.pluginContexts=new Map(this.plugins.map((z)=>[z,NH(z,J,Z,q,this.fileEmitter,X)])),Y){for(let z of Q)for(let V of CH)if(V in z)q.onwarn(RU(z.name,V))}}createOutputPluginDriver(Z){return new j3(this.graph,this.options,Z,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(Z,q,Q,J){let Y=Promise.resolve(null);for(let X of this.getSortedPlugins(Z)){if(J&&J.has(X))continue;Y=Y.then((z)=>{if(z!=null)return z;return this.runHook(Z,q,X,Q)})}return Y}hookFirstSync(Z,q,Q){for(let J of this.getSortedPlugins(Z)){let Y=this.runHookSync(Z,q,J,Q);if(Y!=null)return Y}return null}async hookParallel(Z,q,Q){let J=[];for(let Y of this.getSortedPlugins(Z))if(Y[Z].sequential)await Promise.all(J),J.length=0,await this.runHook(Z,q,Y,Q);else J.push(this.runHook(Z,q,Y,Q));await Promise.all(J)}hookReduceArg0(Z,[q,...Q],J,Y){let X=Promise.resolve(q);for(let z of this.getSortedPlugins(Z))X=X.then((V)=>this.runHook(Z,[V,...Q],z,Y).then((W)=>J.call(this.pluginContexts.get(z),V,W,z)));return X}hookReduceArg0Sync(Z,[q,...Q],J,Y){for(let X of this.getSortedPlugins(Z)){let z=[q,...Q],V=this.runHookSync(Z,z,X,Y);q=J.call(this.pluginContexts.get(X),q,V,X)}return q}async hookReduceValue(Z,q,Q,J){let Y=[],X=[];for(let z of this.getSortedPlugins(Z,_H))if(z[Z].sequential)Y.push(...await Promise.all(X)),X.length=0,Y.push(await this.runHook(Z,Q,z));else X.push(this.runHook(Z,Q,z));return Y.push(...await Promise.all(X)),Y.reduce(J,await q)}hookReduceValueSync(Z,q,Q,J,Y){let X=q;for(let z of this.getSortedPlugins(Z)){let V=this.runHookSync(Z,Q,z,Y);X=J.call(this.pluginContexts.get(z),X,V,z)}return X}hookSeq(Z,q,Q){let J=Promise.resolve();for(let Y of this.getSortedPlugins(Z))J=J.then(()=>this.runHook(Z,q,Y,Q));return J.then(DH)}getSortedPlugins(Z,q){return v5(this.sortedPlugins,Z,()=>hX(Z,this.plugins,q))}runHook(Z,q,Q,J){let Y=Q[Z],X=typeof Y==="object"?Y.handler:Y,z=this.pluginContexts.get(Q);if(J)z=J(z,Q);let V=null;return Promise.resolve().then(()=>{if(typeof X!=="function")return X;let W=X.apply(z,q);if(!(W===null||W===void 0?void 0:W.then))return W;return V=[Q.name,Z,q],this.unfulfilledActions.add(V),Promise.resolve(W).then((K)=>{return this.unfulfilledActions.delete(V),K})}).catch((W)=>{if(V!==null)this.unfulfilledActions.delete(V);return g4(W,Q.name,{hook:Z})})}runHookSync(Z,q,Q,J){let Y=Q[Z],X=typeof Y==="object"?Y.handler:Y,z=this.pluginContexts.get(Q);if(J)z=J(z,Q);try{return X.apply(z,q)}catch(V){return g4(V,Q.name,{hook:Z})}}}function hX(Z,q,Q=IH){let J=[],Y=[],X=[];for(let z of q){let V=z[Z];if(V){if(typeof V==="object"){if(Q(V.handler,Z,z),V.order==="pre"){J.push(z);continue}if(V.order==="post"){X.push(z);continue}}else Q(V,Z,z);Y.push(z)}}return[...J,...Y,...X]}function IH(Z,q,Q){if(typeof Z!=="function")e(TU(q,Q.name))}function _H(Z,q,Q){if(typeof Z!=="string"&&typeof Z!=="function")return e(DU(q,Q.name))}function DH(){}class gX{constructor(Z){this.maxParallel=Z,this.queue=[],this.workerCount=0}run(Z){return new Promise((q,Q)=>{this.queue.push({reject:Q,resolve:q,task:Z}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;this.workerCount++;let Z;while(Z=this.queue.shift()){let{reject:q,resolve:Q,task:J}=Z;try{let Y=await J();Q(Y)}catch(Y){q(Y)}}this.workerCount--}}function TH(Z){if(Array.isArray(Z))return Z.map((q)=>({fileName:null,id:q,implicitlyLoadedAfter:[],importer:void 0,name:null}));return Object.entries(Z).map(([q,Q])=>({fileName:null,id:Q,implicitlyLoadedAfter:[],importer:void 0,name:q}))}class mX{constructor(Z,q){var Q,J;if(this.options=Z,this.cachedModules=new Map,this.deoptimizationTracker=new Y0,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=X8.LOAD_AND_PARSE,this.scope=new fX,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=(Y)=>{let X=this.modulesById.get(Y);if(!X)return null;return X.info},Z.cache!==!1){if((Q=Z.cache)===null||Q===void 0?void 0:Q.modules)for(let Y of Z.cache.modules)this.cachedModules.set(Y.id,Y);this.pluginCache=((J=Z.cache)===null||J===void 0?void 0:J.plugins)||Object.create(null);for(let Y in this.pluginCache){let X=this.pluginCache[Y];for(let z of Object.values(X))z[0]++}}if(q){this.watchMode=!0;let Y=(...z)=>this.pluginDriver.hookParallel("watchChange",z),X=()=>this.pluginDriver.hookParallel("closeWatcher",[]);q.onCurrentAwaited("change",Y),q.onCurrentAwaited("close",X)}this.pluginDriver=new j3(this,Z,Z.plugins,this.pluginCache),this.acornParser=c1.extend(...Z.acornInjectPlugins),this.moduleLoader=new kX(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new gX(Z.maxParallelFileOps)}async build(){a1("generate module graph",2),await this.generateModuleGraph(),i1("generate module graph",2),a1("sort modules",2),this.phase=X8.ANALYSE,this.sortModules(),i1("sort modules",2),a1("mark included statements",2),this.includeStatements(),i1("mark included statements",2),this.phase=X8.GENERATE}contextParse(Z,q={}){let Q=q.onComment,J=[];if(Q&&typeof Q=="function")q.onComment=(X,z,V,W,...K)=>{return J.push({end:W,start:V,type:X?"Block":"Line",value:z}),Q.call(q,X,z,V,W,...K)};else q.onComment=J;let Y=this.acornParser.parse(Z,{...this.options.acorn,...q});if(typeof Q=="object")Q.push(...J);return q.onComment=Q,pj(J,Y,Z),Y}getCache(){for(let Z in this.pluginCache){let q=this.pluginCache[Z],Q=!0;for(let[J,Y]of Object.entries(q))if(Y[0]>=this.options.experimentalCacheExpiry)delete q[J];else Q=!1;if(Q)delete this.pluginCache[Z]}return{modules:this.modules.map((Z)=>Z.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules(TH(this.options.input),!0),this.entryModules.length===0)throw Error("You must supply options.input to rollup");for(let Z of this.modulesById.values())if(Z instanceof S1)this.modules.push(Z);else this.externalModules.push(Z)}includeStatements(){for(let Z of[...this.entryModules,...this.implicitEntryModules])F4(Z);if(this.options.treeshake){let Z=1;do{a1(`treeshaking pass ${Z}`,3),this.needsTreeshakingPass=!1;for(let q of this.modules)if(q.isExecuted)if(q.info.moduleSideEffects==="no-treeshake")q.includeAllInBundle();else q.include();if(Z===1){for(let q of[...this.entryModules,...this.implicitEntryModules])if(q.preserveSignature!==!1)q.includeAllExports(!1),this.needsTreeshakingPass=!0}i1(`treeshaking pass ${Z++}`,3)}while(this.needsTreeshakingPass)}else for(let Z of this.modules)Z.includeAllInBundle();for(let Z of this.externalModules)Z.warnUnusedImports();for(let Z of this.implicitEntryModules)for(let q of Z.implicitlyLoadedAfter)if(!(q.info.isEntry||q.isIncluded()))e(EU(q))}sortModules(){let{orderedModules:Z,cyclePaths:q}=CM(this.entryModules);for(let Q of q)this.options.onwarn({code:"CIRCULAR_DEPENDENCY",cycle:Q,importer:Q[0],message:`Circular dependency: ${Q.join(" -> ")}`});this.modules=Z;for(let Q of this.modules)Q.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(let Z of this.modules)for(let q of Z.importDescriptions.values())if(q.name!=="*"&&!q.module.getVariableForExportName(q.name)[0])Z.warn({code:"NON_EXISTENT_EXPORT",message:`Non-existent export '${q.name}' is imported from ${V1(q.module.id)}`,name:q.name,source:q.module.id},q.start)}}function H6(Z){if(Array.isArray(Z))return Z.filter(Boolean);if(Z)return[Z];return[]}function AH([Z,q,Q]){let J=`(${Z}) ${q}`,Y=JSON.stringify;switch(q){case"resolveId":return`${J} ${Y(Q[0])} ${Y(Q[1])}`;case"load":return`${J} ${Y(Q[0])}`;case"transform":return`${J} ${Y(Q[1])}`;case"shouldTransformCachedModule":return`${J} ${Y(Q[0].id)}`;case"moduleParsed":return`${J} ${Y(Q[0].id)}`}return J}async function uX(Z,q){let Q,J=new Promise((X,z)=>{Q=()=>{let V=Z.getUnfulfilledHookActions();z(Error(`Unexpected early exit. This happens when Promises returned by plugins cannot resolve. Unfinished hook action(s) on exit:
|
|
35
35
|
`+[...V].map(AH).join(`
|
|
36
|
-
`)))},u4.once(m4,
|
|
37
|
-
`}return Promise.all([D8.writeFile(
|
|
38
|
-
`,n8,YQ,XQ,d1,C4,Q0,$1,D1,ZU,c9,q6,r1,x1,j2,Y1,E1=0,h5=1,P1=2,LZ,JU,wZ,p9,d4,$8,X0,n1,o6,a8,XU,zU,VU,WU,W1,pU,l4,M2,iU=(Z)=>/\d/.test(Z[0]),H2=(Z)=>iU(Z)||l4.has(Z)||Z==="arguments",F2,c4,sU,b5="\\\\/",GQ,p5="\\.",rU="\\+",oU="\\?",p4="\\/",tU="(?=.)",L2="[^/]",RZ,w2,CZ,eU,Zj,Jj,qj,Qj,Yj,O2,Xj,zj,i4,UQ,C9,Vj,a6,Wj,I9,_9,N2,D9,T9,Kj,$j,jQ,Gj,BQ,Uj,MQ=(Z)=>{return Z===N2||Z===a6},HQ=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},jj=(Z,J)=>{let q=J||{},Q=Z.length-1,Y=q.parts===!0||q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,j=!1,L=!1,I=!1,y=!1,_=!1,T=!1,g=!1,h=!1,u=0,E,N,P={value:"",depth:0,isGlob:!1},A=()=>K>=Q,B=()=>W.charCodeAt(K+1),b=()=>{return E=N,W.charCodeAt(++K)};while(K<Q){N=b();let d;if(N===a6){if(_=P.backslashes=!0,N=b(),N===D9)y=!0;continue}if(y===!0||N===D9){u++;while(A()!==!0&&(N=b())){if(N===a6){_=P.backslashes=!0,b();continue}if(N===D9){u++;continue}if(y!==!0&&N===I9&&(N=b())===I9){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===Wj){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Gj){if(u--,u===0){y=!1,M=P.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===N2){if(X.push(K),z.push(P),P={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===I9&&K===$+1){$+=2;continue}H=K+1;continue}if(q.noext!==!0){if((N===$j||N===Vj||N===C9||N===jQ||N===_9)===!0&&B()===T9){if(j=P.isGlob=!0,L=P.isExtglob=!0,h=!0,N===_9&&K===$)g=!0;if(Y===!0){while(A()!==!0&&(N=b())){if(N===a6){_=P.backslashes=!0,N=b();continue}if(N===BQ){j=P.isGlob=!0,h=!0;break}}continue}break}}if(N===C9){if(E===C9)I=P.isGlobstar=!0;if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===jQ){if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Kj){while(A()!==!0&&(d=b())){if(d===a6){_=P.backslashes=!0,b();continue}if(d===Uj){O=P.isBracket=!0,j=P.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(q.nonegate!==!0&&N===_9&&K===$){T=P.negated=!0,$++;continue}if(q.noparen!==!0&&N===T9){if(j=P.isGlob=!0,Y===!0){while(A()!==!0&&(N=b())){if(N===T9){_=P.backslashes=!0,N=b();continue}if(N===BQ){h=!0;break}}continue}break}if(j===!0){if(h=!0,Y===!0)continue;break}}if(q.noext===!0)L=!1,j=!1;let k=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(k&&j===!0&&H>0)k=W.slice(0,H),G=W.slice(H);else if(j===!0)k="",G=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(MQ(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(q.unescape===!0){if(G)G=UQ.removeBackslashes(G);if(k&&_===!0)k=UQ.removeBackslashes(k)}let F={prefix:S,input:Z,start:$,base:k,glob:G,isBrace:M,isBracket:O,isGlob:j,isExtglob:L,isGlobstar:I,negated:T,negatedExtglob:g};if(q.tokens===!0){if(F.maxDepth=0,!MQ(N))z.push(P);F.tokens=z}if(q.parts===!0||q.tokens===!0){let d;for(let f=0;f<X.length;f++){let o=d?d+1:$,t=X[f],Q1=Z.slice(o,t);if(q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=Q1;HQ(z[f]),F.maxDepth+=z[f].depth}if(f!==0||Q1!=="")V.push(Q1);d=t}if(d&&d+1<Z.length){let f=Z.slice(d+1);if(V.push(f),q.tokens)z[z.length-1].value=f,HQ(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F},Bj,D4,w5,T4,Mj,Hj,Fj,R2,Lj=(Z,J)=>{if(typeof J.expandRange==="function")return J.expandRange(...Z,J);return Z.sort(),`[${Z.join("-")}]`},s8=(Z,J)=>{return`Missing ${Z}: "${J}" - use "\\\\${J}" to match literal characters`},IZ=(Z,J)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=R2[Z]||Z;let q={...J},Q=typeof q.maxLength==="number"?Math.min(T4,q.maxLength):T4,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let X={type:"bos",value:"",output:q.prepend||""},z=[X],V=q.capture?"":"?:",W=w5.isWindows(J),K=D4.globChars(W),$=D4.extglobChars(K),{DOT_LITERAL:H,PLUS_LITERAL:M,SLASH_LITERAL:O,ONE_CHAR:j,DOTS_SLASH:L,NO_DOT:I,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK:T,QMARK_NO_DOT:g,STAR:h,START_ANCHOR:u}=K,E=(D)=>{return`(${V}(?:(?!${u}${D.dot?L:H}).)*?)`},N=q.dot?"":I,P=q.dot?T:g,A=q.bash===!0?E(q):h;if(q.capture)A=`(${A})`;if(typeof q.noext==="boolean")q.noextglob=q.noext;let B={input:Z,index:-1,start:0,dot:q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=w5.removePrefix(Z,B),Y=Z.length;let b=[],k=[],S=[],G=X,F,d=()=>B.index===Y-1,f=B.peek=(D=1)=>Z[B.index+D],o=B.advance=()=>Z[++B.index]||"",t=()=>Z.slice(B.index+1),Q1=(D="",x=0)=>{B.consumed+=D,B.index+=x},N1=(D)=>{B.output+=D.output!=null?D.output:D.value,Q1(D.value)},R1=()=>{let D=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))o(),B.start++,D++;if(D%2===0)return!1;return B.negated=!0,B.start++,!0},F1=(D)=>{B[D]++,S.push(D)},s=(D)=>{B[D]--,S.pop()},m=(D)=>{if(G.type==="globstar"){let x=B.braces>0&&(D.type==="comma"||D.type==="brace"),C=D.extglob===!0||b.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!x&&!C)B.output=B.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=A,B.output+=G.output}if(b.length&&D.type!=="paren")b[b.length-1].inner+=D.value;if(D.value||D.output)N1(D);if(G&&G.type==="text"&&D.type==="text"){G.value+=D.value,G.output=(G.output||"")+D.value;return}D.prev=G,z.push(D),G=D},L1=(D,x)=>{let C={...$[x],conditions:1,inner:""};C.prev=G,C.parens=B.parens,C.output=B.output;let v=(q.capture?"(":"")+C.open;F1("parens"),m({type:D,value:x,output:B.output?"":j}),m({type:"paren",extglob:!0,value:o(),output:v}),b.push(C)},p=(D)=>{let x=D.close+(q.capture?")":""),C;if(D.type==="negate"){let v=A;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))v=E(q);if(v!==A||d()||/^\)+$/.test(t()))x=D.close=`)$))${v}`;if(D.inner.includes("*")&&(C=t())&&/^\.[^\\/.]+$/.test(C)){let c=IZ(C,{...J,fastpaths:!1}).output;x=D.close=`)${c})${v})`}if(D.prev.type==="bos")B.negatedExtglob=!0}m({type:"paren",extglob:!0,value:F,output:x}),s("parens")};if(q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,x=Z.replace(Fj,(C,v,c,n,i,B1)=>{if(n==="\\")return D=!0,C;if(n==="?"){if(v)return v+n+(i?T.repeat(i.length):"");if(B1===0)return P+(i?T.repeat(i.length):"");return T.repeat(c.length)}if(n===".")return H.repeat(c.length);if(n==="*"){if(v)return v+n+(i?A:"");return A}return v?C:`\\${C}`});if(D===!0)if(q.unescape===!0)x=x.replace(/\\/g,"");else x=x.replace(/\\+/g,(C)=>{return C.length%2===0?"\\\\":C?"\\":""});if(x===Z&&q.contains===!0)return B.output=Z,B;return B.output=w5.wrapOutput(x,B,J),B}while(!d()){if(F=o(),F==="\x00")continue;if(F==="\\"){let C=f();if(C==="/"&&q.bash!==!0)continue;if(C==="."||C===";")continue;if(!C){F+="\\",m({type:"text",value:F});continue}let v=/^\\+/.exec(t()),c=0;if(v&&v[0].length>2){if(c=v[0].length,B.index+=c,c%2!==0)F+="\\"}if(q.unescape===!0)F=o();else F+=o();if(B.brackets===0){m({type:"text",value:F});continue}}if(B.brackets>0&&(F!=="]"||G.value==="["||G.value==="[^")){if(q.posix!==!1&&F===":"){let C=G.value.slice(1);if(C.includes("[")){if(G.posix=!0,C.includes(":")){let v=G.value.lastIndexOf("["),c=G.value.slice(0,v),n=G.value.slice(v+2),i=Mj[n];if(i){if(G.value=c+i,B.backtrack=!0,o(),!X.output&&z.indexOf(G)===1)X.output=j;continue}}}}if(F==="["&&f()!==":"||F==="-"&&f()==="]")F=`\\${F}`;if(F==="]"&&(G.value==="["||G.value==="[^"))F=`\\${F}`;if(q.posix===!0&&F==="!"&&G.value==="[")F="^";G.value+=F,N1({value:F});continue}if(B.quotes===1&&F!=='"'){F=w5.escapeRegex(F),G.value+=F,N1({value:F});continue}if(F==='"'){if(B.quotes=B.quotes===1?0:1,q.keepQuotes===!0)m({type:"text",value:F});continue}if(F==="("){F1("parens"),m({type:"paren",value:F});continue}if(F===")"){if(B.parens===0&&q.strictBrackets===!0)throw SyntaxError(s8("opening","("));let C=b[b.length-1];if(C&&B.parens===C.parens+1){p(b.pop());continue}m({type:"paren",value:F,output:B.parens?")":"\\)"}),s("parens");continue}if(F==="["){if(q.nobracket===!0||!t().includes("]")){if(q.nobracket!==!0&&q.strictBrackets===!0)throw SyntaxError(s8("closing","]"));F=`\\${F}`}else F1("brackets");m({type:"bracket",value:F});continue}if(F==="]"){if(q.nobracket===!0||G&&G.type==="bracket"&&G.value.length===1){m({type:"text",value:F,output:`\\${F}`});continue}if(B.brackets===0){if(q.strictBrackets===!0)throw SyntaxError(s8("opening","["));m({type:"text",value:F,output:`\\${F}`});continue}s("brackets");let C=G.value.slice(1);if(G.posix!==!0&&C[0]==="^"&&!C.includes("/"))F=`/${F}`;if(G.value+=F,N1({value:F}),q.literalBrackets===!1||w5.hasRegexChars(C))continue;let v=w5.escapeRegex(G.value);if(B.output=B.output.slice(0,-G.value.length),q.literalBrackets===!0){B.output+=v,G.value=v;continue}G.value=`(${V}${v}|${G.value})`,B.output+=G.value;continue}if(F==="{"&&q.nobrace!==!0){F1("braces");let C={type:"brace",value:F,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};k.push(C),m(C);continue}if(F==="}"){let C=k[k.length-1];if(q.nobrace===!0||!C){m({type:"text",value:F,output:F});continue}let v=")";if(C.dots===!0){let c=z.slice(),n=[];for(let i=c.length-1;i>=0;i--){if(z.pop(),c[i].type==="brace")break;if(c[i].type!=="dots")n.unshift(c[i].value)}v=Lj(n,q),B.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){let c=B.output.slice(0,C.outputIndex),n=B.tokens.slice(C.tokensIndex);C.value=C.output="\\{",F=v="\\}",B.output=c;for(let i of n)B.output+=i.output||i.value}m({type:"brace",value:F,output:v}),s("braces"),k.pop();continue}if(F==="|"){if(b.length>0)b[b.length-1].conditions++;m({type:"text",value:F});continue}if(F===","){let C=F,v=k[k.length-1];if(v&&S[S.length-1]==="braces")v.comma=!0,C="|";m({type:"comma",value:F,output:C});continue}if(F==="/"){if(G.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",z.pop(),G=X;continue}m({type:"slash",value:F,output:O});continue}if(F==="."){if(B.braces>0&&G.type==="dot"){if(G.value===".")G.output=H;let C=k[k.length-1];G.type="dots",G.output+=F,G.value+=F,C.dots=!0;continue}if(B.braces+B.parens===0&&G.type!=="bos"&&G.type!=="slash"){m({type:"text",value:F,output:H});continue}m({type:"dot",value:F,output:H});continue}if(F==="?"){if(!(G&&G.value==="(")&&q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("qmark",F);continue}if(G&&G.type==="paren"){let v=f(),c=F;if(v==="<"&&!w5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(G.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(t()))c=`\\${F}`;m({type:"text",value:F,output:c});continue}if(q.dot!==!0&&(G.type==="slash"||G.type==="bos")){m({type:"qmark",value:F,output:g});continue}m({type:"qmark",value:F,output:T});continue}if(F==="!"){if(q.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){L1("negate",F);continue}}if(q.nonegate!==!0&&B.index===0){R1();continue}}if(F==="+"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("plus",F);continue}if(G&&G.value==="("||q.regex===!1){m({type:"plus",value:F,output:M});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||B.parens>0){m({type:"plus",value:F});continue}m({type:"plus",value:M});continue}if(F==="@"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){m({type:"at",extglob:!0,value:F,output:""});continue}m({type:"text",value:F});continue}if(F!=="*"){if(F==="$"||F==="^")F=`\\${F}`;let C=Hj.exec(t());if(C)F+=C[0],B.index+=C[0].length;m({type:"text",value:F});continue}if(G&&(G.type==="globstar"||G.star===!0)){G.type="star",G.star=!0,G.value+=F,G.output=A,B.backtrack=!0,B.globstar=!0,Q1(F);continue}let D=t();if(q.noextglob!==!0&&/^\([^?]/.test(D)){L1("star",F);continue}if(G.type==="star"){if(q.noglobstar===!0){Q1(F);continue}let C=G.prev,v=C.prev,c=C.type==="slash"||C.type==="bos",n=v&&(v.type==="star"||v.type==="globstar");if(q.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:F,output:""});continue}let i=B.braces>0&&(C.type==="comma"||C.type==="brace"),B1=b.length&&(C.type==="pipe"||C.type==="paren");if(!c&&C.type!=="paren"&&!i&&!B1){m({type:"star",value:F,output:""});continue}while(D.slice(0,3)==="/**"){let _1=Z[B.index+4];if(_1&&_1!=="/")break;D=D.slice(3),Q1("/**",3)}if(C.type==="bos"&&d()){G.type="globstar",G.value+=F,G.output=E(q),B.output=G.output,B.globstar=!0,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!n&&d()){B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=E(q)+(q.strictSlashes?")":"|$)"),G.value+=F,B.globstar=!0,B.output+=C.output+G.output,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&D[0]==="/"){let _1=D[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=`${E(q)}${O}|${O}${_1})`,G.value+=F,B.output+=C.output+G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&D[0]==="/"){G.type="globstar",G.value+=F,G.output=`(?:^|${O}|${E(q)}${O})`,B.output=G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-G.output.length),G.type="globstar",G.output=E(q),G.value+=F,B.output+=G.output,B.globstar=!0,Q1(F);continue}let x={type:"star",value:F,output:A};if(q.bash===!0){if(x.output=".*?",G.type==="bos"||G.type==="slash")x.output=N+x.output;m(x);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&q.regex===!0){x.output=F,m(x);continue}if(B.index===B.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot")B.output+=y,G.output+=y;else if(q.dot===!0)B.output+=_,G.output+=_;else B.output+=N,G.output+=N;if(f()!=="*")B.output+=j,G.output+=j}m(x)}while(B.brackets>0){if(q.strictBrackets===!0)throw SyntaxError(s8("closing","]"));B.output=w5.escapeLast(B.output,"["),s("brackets")}while(B.parens>0){if(q.strictBrackets===!0)throw SyntaxError(s8("closing",")"));B.output=w5.escapeLast(B.output,"("),s("parens")}while(B.braces>0){if(q.strictBrackets===!0)throw SyntaxError(s8("closing","}"));B.output=w5.escapeLast(B.output,"{"),s("braces")}if(q.strictSlashes!==!0&&(G.type==="star"||G.type==="bracket"))m({type:"maybe_slash",value:"",output:`${O}?`});if(B.backtrack===!0){B.output="";for(let D of B.tokens)if(B.output+=D.output!=null?D.output:D.value,D.suffix)B.output+=D.suffix}return B},wj,Oj,Nj,n9,_Z,Rj,Cj=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),f1=(Z,J,q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>f1(M,J,q));return(M)=>{for(let O of $){let j=O(M);if(j)return j}return!1}}let Q=Cj(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=J||{},X=_Z.isWindows(J),z=Q?f1.compileRe(Z,J):f1.makeRe(Z,J,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...J,ignore:null,onMatch:null,onResult:null};W=f1(Y.ignore,$,q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:j}=f1.test($,z,J,{glob:Z,posix:X}),L={glob:Z,state:V,regex:z,posix:X,input:$,output:j,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(L);if(M===!1)return L.isMatch=!1,H?L:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(L);return L.isMatch=!1,H?L:!1}if(typeof Y.onMatch==="function")Y.onMatch(L);return H?L:!0};if(q)K.state=V;return K},Ij,yI,e8,_j=function(J){let q=[];return e8[J.type](q,J),q},Dj="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public",Tj="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl",Aj,n4=0,X6=1,S8=2,F0,Z6,DZ,T8,U6,J6,TZ,j1,FQ,AZ,s9,r9,V0,a,C2="ArrowFunctionExpression",Sj="BinaryExpression",I2="BlockStatement",_2="CallExpression",yj="ChainExpression",Ej="ConditionalExpression",N5="ExpressionStatement",D2="Identifier",bj="ImportDefaultSpecifier",xj="ImportNamespaceSpecifier",kj="LogicalExpression",fj="NewExpression",A4="Program",vj="Property",hj="ReturnStatement",gj="SequenceExpression",SZ="sourceMa",mj="[ \\f\\r\\t\\v\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]",uj,T2="_rollupAnnotations",A2="_rollupRemoved",dj,A9,cj,o9,S2="variables",Z1,z6,Z5,H4,t6,LQ,y2,p6,V5,wQ=(Z)=>typeof Z==="string"&&/^\d+$/.test(Z),nj,Y8,yZ,OQ,NQ,aj,V4,P9,RQ,CQ,IQ,R8,S9,sj,r4,E2,b2,S5,rj="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",_Q=64,P5,bZ,xZ,u1,x5,C8,l,r,DQ,U,Q5,c5,r8,e9,o4,oj,l1,A8,AQ,G8,N0,W0,fZ,e4,vZ,gZ,h2,g2,m2,mZ,u2,Z7,d2,ZB,l2,c2,V6,i6=7,y8,uZ,a2,s2,r2,o2,t2,e2,dZ,y4,ZY,lZ,K0,JY,J7,qY,QY,YY,XY,q7,W6,R0,cZ,zY,VY,WY,KY,$Y,ZZ,PQ,pZ,iZ,GY,E4="_interopDefault",JZ="_interopDefaultLegacy",e6="_interopNamespace",s6="_interopNamespaceDefault",$0="_interopNamespaceDefaultOnly",b4="_mergeNamespaces",C0,Q7=(Z,J)=>Z==="esModule"||J&&(Z==="auto"||Z==="true"),I0,zB=(Z,J)=>Q7(Z,J)&&C0[Z]===E4,nZ=(Z,J,q,Q,Y,X,z)=>{let V=new Set(Z);for(let W of QZ)if(J.has(W))V.add(W);return QZ.map((W)=>V.has(W)?UY[W](q,Q,Y,X,z,V):"").join("")},UY,SQ=({_:Z,getObject:J})=>`e${Z}:${Z}${J([["default","e"]],{lineBreakIndent:null})}`,yQ=({_:Z,getPropertyAccess:J})=>`e${J("default")}${Z}:${Z}e`,EQ=(Z,J,q,Q,Y,X)=>{let{_:z,cnst:V,getObject:W,getPropertyAccess:K,n:$,s:H}=q,M=`{${$}`+(Q?KB:BY)(Z,J+Z+Z,q)+`${J}${Z}}`;return`${J}${V} n${z}=${z}Object.create(null${X?`,${z}{${z}[Symbol.toStringTag]:${z}${G0(W)}${z}}`:""});${$}${J}if${z}(e)${z}{${$}${J}${Z}${VB(M,!Q,q)}${$}${J}}${$}${J}n${K("default")}${z}=${z}e;${$}${J}return ${qZ(Y,"n")}${H}${$}`},VB=(Z,J,{_:q,cnst:Q,getFunctionIntro:Y,s:X})=>Q!=="var"||J?`for${q}(${Q} k in e)${q}${Z}`:`Object.keys(e).forEach(${Y(["k"],{isAsync:!1,name:null})}${Z})${X}`,WB=(Z,J,q,{_:Q,cnst:Y,getDirectReturnFunction:X,getFunctionIntro:z,n:V})=>{if(J){let[W,K]=X(["e"],{functionReturn:!1,lineBreakIndent:{base:q,t:q},name:null});return`m.forEach(${W}e${Q}&&${Q}typeof e${Q}!==${Q}'string'${Q}&&${Q}!Array.isArray(e)${Q}&&${Q}Object.keys(e).forEach(${z(["k"],{isAsync:!1,name:null})}${Z})${K});`}return`for${Q}(var i${Q}=${Q}0;${Q}i${Q}<${Q}m.length;${Q}i++)${Q}{${V}${q}${q}${Y} e${Q}=${Q}m[i];${V}${q}${q}if${Q}(typeof e${Q}!==${Q}'string'${Q}&&${Q}!Array.isArray(e))${Q}{${Q}for${Q}(${Y} k in e)${Q}${Z}${Q}}${V}${q}}`},KB=(Z,J,q)=>{let{_:Q,n:Y}=q;return`${J}if${Q}(k${Q}!==${Q}'default')${Q}{${Y}`+jY(Z,J+Z,q)+`${J}}${Y}`},jY=(Z,J,{_:q,cnst:Q,getDirectReturnFunction:Y,n:X})=>{let[z,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${J}${Q} d${q}=${q}Object.getOwnPropertyDescriptor(e,${q}k);${X}${J}Object.defineProperty(n,${q}k,${q}d.get${q}?${q}d${q}:${q}{${X}${J}${Z}enumerable:${q}true,${X}${J}${Z}get:${q}${z}e[k]${V}${X}${J}});${X}`},$B=(Z,J,{_:q,cnst:Q,getDirectReturnFunction:Y,n:X})=>{let[z,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${J}${Q} d${q}=${q}Object.getOwnPropertyDescriptor(e,${q}k);${X}${J}if${q}(d)${q}{${X}${J}${Z}Object.defineProperty(n,${q}k,${q}d.get${q}?${q}d${q}:${q}{${X}${J}${Z}${Z}enumerable:${q}true,${X}${J}${Z}${Z}get:${q}${z}e[k]${V}${X}${J}${Z}});${X}${J}}${X}`},BY=(Z,J,{_:q,n:Q})=>`${J}n[k]${q}=${q}e[k];${Q}`,qZ=(Z,J)=>Z?`Object.freeze(${J})`:J,bQ=(Z,J,{_:q,getObject:Q})=>Z?`Object.defineProperty(${J},${q}Symbol.toStringTag,${q}${G0(Q)})`:J,QZ,MY,GB,HY,FY,LY,wY,n6="ROLLUP_ASSET_URL_",K4="ROLLUP_CHUNK_URL_",q8="ROLLUP_FILE_URL_",OY,UB,jB,i5=(Z,J="URL")=>`new ${J}(${Z}).href`,y9=(Z,J=!1)=>i5(`'${Z}', ${J?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`),$4=(Z)=>(J,{chunkId:q})=>{let Q=Z(q);return J===null?`({ url: ${Q} })`:J==="url"?Q:"undefined"},E9=(Z,J=!1)=>`${J?"typeof document === 'undefined' ? location.href : ":""}(document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('${Z}', document.baseURI).href)`,BB,kQ,NY,RY,CY,aZ,IY,_Y,DY,TY,AY,PY,sZ,SY,yY,EY,rZ,oZ,g5,tZ,bY,xY,kY,MB,fY,vY,hY,eZ,mY,uY,dY,fQ,K6="_missingExportShim",lY,Q6,G5,X8,x4=()=>{},U0,s1,i1,RB,vQ,DB=(Z)=>Z&&new Map(Array.from(Z,([J,q])=>[J,new Set(q)])),AB=(Z,J,q,{_:Q,getDirectReturnFunction:Y,n:X})=>{if(J){let[z,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`Object.defineProperty(exports,${Q}k,${Q}{${X}${q}${q}enumerable:${Q}true,${X}${q}${q}get:${Q}${z}${Z}[k]${V}${X}${q}})`}return`exports[k]${Q}=${Q}${Z}[k]`},SB,L4=(Z,J)=>Z.split(".").map(J).join(""),uB=({dependencies:Z,exports:J})=>{let q=new Set(J.map((Q)=>Q.exported));q.add("default");for(let{reexports:Q}of Z)if(Q){for(let Y of Q)if(Y.reexported!=="*")q.add(Y.reexported)}return q},dB=(Z,J,{_:q,cnst:Q,getObject:Y,n:X})=>Z?`${X}${J}${Q} _starExcludes${q}=${q}${Y([...Z].map((z)=>[z,"1"]),{lineBreakIndent:{base:J,t:J}})};`:"",lB=(Z,J,{_:q,n:Q})=>Z.length?`${Q}${J}var ${Z.join(`,${q}`)};`:"",cB=(Z,J,q)=>J3(Z.filter((Q)=>Q.hoisted).map((Q)=>({name:Q.exported,value:Q.local})),J,q),pB=(Z,J,q)=>J3(Z.filter((Q)=>Q.expression).map((Q)=>({name:Q.exported,value:Q.local})),J,q),iB=(Z,J,q)=>J3(Z.filter((Q)=>Q.local===K6).map((Q)=>({name:Q.exported,value:K6})),J,q),sB,k4=()=>aG("sha256"),tB,JM,qM,QM,q3,eY,GM=(Z)=>{let J=new Set;return new Proxy(Z,{deleteProperty(q,Q){if(typeof Q==="string")J.delete(Q.toLowerCase());return Reflect.deleteProperty(q,Q)},get(q,Q){if(Q===q3)return J;return Reflect.get(q,Q)},set(q,Q,Y){if(typeof Q==="string")J.add(Q.toLowerCase());return Reflect.set(q,Q,Y)}})},uQ,jM,dQ=(Z,J)=>J?`${Z}
|
|
39
|
-
${
|
|
36
|
+
`)))},u4.once(m4,Q)}),Y=await Promise.race([q(),J]);return u4.off(m4,Q),Y}function dX(Z,q,Q,J,Y=/$./){let X=new Set(q),z=Object.keys(Z).filter((V)=>!(X.has(V)||Y.test(V)));if(z.length>0)J({code:"UNKNOWN_OPTION",message:`Unknown ${Q}: ${z.join(", ")}. Allowed options: ${[...X].sort().join(", ")}`})}function bH(Z){var q,Q,J;let Y=new Set,X=(q=Z.context)!==null&&q!==void 0?q:"undefined",z=xH(Z),V=Z.strictDeprecations||!1,W=uH(Z,z,V),K={acorn:kH(Z),acornInjectPlugins:fH(Z),cache:vH(Z),context:X,experimentalCacheExpiry:(Q=Z.experimentalCacheExpiry)!==null&&Q!==void 0?Q:10,external:pX(Z.external),inlineDynamicImports:hH(Z,z,V),input:gH(Z),makeAbsoluteExternalsRelative:(J=Z.makeAbsoluteExternalsRelative)!==null&&J!==void 0?J:!0,manualChunks:mH(Z,z,V),maxParallelFileOps:W,maxParallelFileReads:W,moduleContext:dH(Z,X),onwarn:z,perf:Z.perf||!1,plugins:H6(Z.plugins),preserveEntrySignatures:lH(Z,Y),preserveModules:cH(Z,z,V),preserveSymlinks:Z.preserveSymlinks||!1,shimMissingExports:Z.shimMissingExports||!1,strictDeprecations:V,treeshake:pH(Z,z,V)};return dX(Z,[...Object.keys(K),"watch"],"input options",K.onwarn,/^(output)$/),{options:K,unsetOptions:Y}}function sH(Z){let q=nH.exec(Z),Q=q?q[0]:"";return Q+Z.substr(Q.length).replace(iH,"_")}function aH(Z){try{new URL(Z)}catch(q){return!1}return!0}function rH(Z,q,Q){var J,Y,X,z,V,W,K;let $=new Set(Q),H=Z.compact||!1,M=tH(Z),O=eH(Z,q),L=ZF(Z,O,q),B=oH(Z,L,q),C=qF(Z,q),y=WF(Z,C),P={amd:JF(Z),assetFileNames:(J=Z.assetFileNames)!==null&&J!==void 0?J:"assets/[name]-[hash][extname]",banner:B4(Z,"banner"),chunkFileNames:(Y=Z.chunkFileNames)!==null&&Y!==void 0?Y:"[name]-[hash].js",compact:H,dir:YF(Z,B),dynamicImportFunction:XF(Z,q),entryFileNames:zF(Z,$),esModule:(X=Z.esModule)!==null&&X!==void 0?X:!0,exports:VF(Z,$),extend:Z.extend||!1,externalLiveBindings:(z=Z.externalLiveBindings)!==null&&z!==void 0?z:!0,file:B,footer:B4(Z,"footer"),format:M,freeze:(V=Z.freeze)!==null&&V!==void 0?V:!0,generatedCode:y,globals:Z.globals||{},hoistTransitiveImports:(W=Z.hoistTransitiveImports)!==null&&W!==void 0?W:!0,indent:KF(Z,H),inlineDynamicImports:O,interop:$F(Z,q),intro:B4(Z,"intro"),manualChunks:GF(Z,O,L,q),minifyInternalExports:UF(Z,M,H),name:Z.name,namespaceToStringTag:jF(Z,y,q),noConflict:Z.noConflict||!1,outro:B4(Z,"outro"),paths:Z.paths||{},plugins:H6(Z.plugins),preferConst:C,preserveModules:L,preserveModulesRoot:QF(Z),sanitizeFileName:typeof Z.sanitizeFileName==="function"?Z.sanitizeFileName:Z.sanitizeFileName===!1?(_)=>_:sH,sourcemap:Z.sourcemap||!1,sourcemapBaseUrl:BF(Z),sourcemapExcludeSources:Z.sourcemapExcludeSources||!1,sourcemapFile:Z.sourcemapFile,sourcemapPathTransform:Z.sourcemapPathTransform,strict:(K=Z.strict)!==null&&K!==void 0?K:!0,systemNullSetters:Z.systemNullSetters||!1,validate:Z.validate||!1};return dX(Z,Object.keys(P),"output options",q.onwarn),{options:P,unsetOptions:$}}function VF(Z,q){let Q=Z.exports;if(Q==null)q.add("exports");else if(!["default","named","none","auto"].includes(Q))return e(IU(Q));return Q||"auto"}function B3(Z){return MF(Z,null)}async function MF(Z,q){let{options:Q,unsetOptions:J}=await HF(Z,q!==null);IB(Q);let Y=new mX(Q,q),X=Z.cache!==!1;delete Q.cache,delete Z.cache,a1("BUILD",1),await uX(Y.pluginDriver,async()=>{try{await Y.pluginDriver.hookParallel("buildStart",[Q]),await Y.build()}catch(V){let W=Object.keys(Y.watchFiles);if(W.length>0)V.watchFiles=W;throw await Y.pluginDriver.hookParallel("buildEnd",[V]),await Y.pluginDriver.hookParallel("closeBundle",[]),V}await Y.pluginDriver.hookParallel("buildEnd",[])}),i1("BUILD",1);let z={cache:X?Y.getCache():void 0,async close(){if(z.closed)return;z.closed=!0,await Y.pluginDriver.hookParallel("closeBundle",[])},closed:!1,async generate(V){if(z.closed)return e(GJ());return W2(!1,Q,J,V,Y)},watchFiles:Object.keys(Y.watchFiles),async write(V){if(z.closed)return e(GJ());return W2(!0,Q,J,V,Y)}};if(Q.perf)z.getTimings=NB;return z}async function HF(Z,q){if(!Z)throw Error("You must supply an options object to rollup");let Q=hX("options",H6(Z.plugins)),{options:J,unsetOptions:Y}=bH(await Q.reduce(FF(q),Promise.resolve(Z)));return iX(J.plugins,G3),{options:J,unsetOptions:Y}}function FF(Z){return async(q,Q)=>{return await("handler"in Q.options?Q.options.handler:Q.options).call({meta:{rollupVersion:BZ,watchMode:Z}},await q)||q}}function iX(Z,q){Z.forEach((Q,J)=>{if(!Q.name)Q.name=`${q}${J+1}`})}function W2(Z,q,Q,J,Y){let{options:X,outputPluginDriver:z,unsetOptions:V}=LF(J,Y.pluginDriver,q,Q);return uX(z,async()=>{let K=await new qX(X,V,q,z,Y).generate(Z);if(Z){if(!X.dir&&!X.file)return e({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.'});await Promise.all(Object.values(K).map(($)=>Y.fileOperationQueue.run(()=>NF($,X)))),await z.hookParallel("writeBundle",[X,K])}return OF(K)})}function LF(Z,q,Q,J){if(!Z)throw Error("You must supply an options object");let Y=H6(Z.plugins);iX(Y,U3);let X=q.createOutputPluginDriver(Y);return{...wF(Q,J,Z,X),outputPluginDriver:X}}function wF(Z,q,Q,J){return rH(J.hookReduceArg0Sync("outputOptions",[Q.output||Q],(Y,X)=>X||Y,(Y)=>{let X=()=>Y.error($U());return{...Y,emitFile:X,setAssetSource:X}}),Z,q)}function OF(Z){return{output:Object.values(Z).filter((q)=>Object.keys(q).length>0).sort((q,Q)=>K2(q)-K2(Q))}}function K2(Z){if(Z.type==="asset")return q0.ASSET;if(Z.isEntry)return q0.ENTRY_CHUNK;return q0.SECONDARY_CHUNK}async function NF(Z,q){let Q=U5(q.dir||f5(q.file),Z.fileName);await D8.mkdir(f5(Q),{recursive:!0});let J,Y;if(Z.type==="asset")Y=Z.source;else if(Y=Z.code,q.sourcemap&&Z.map){let X;if(q.sourcemap==="inline")X=Z.map.toUrl();else{let{sourcemapBaseUrl:z}=q,V=`${z8(Z.fileName)}.map`;X=z?new URL(V,z).toString():V,J=D8.writeFile(`${Q}.map`,Z.map.toString())}if(q.sourcemap!=="hidden")Y+=`//# ${SZ}=${X}
|
|
37
|
+
`}return Promise.all([D8.writeFile(Q,Y),J])}var BZ="2.80.0",G2,u9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t8,d9=()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")},eG,c6=`
|
|
38
|
+
`,n8,XJ,zJ,d1,C4,J0,$1,D1,ZU,c9,Q6,r1,x1,B2,Y1,E1=0,h5=1,P1=2,LZ,qU,wZ,p9,d4,$8,X0,n1,o6,s8,XU,zU,VU,WU,W1,pU,l4,H2,iU=(Z)=>/\d/.test(Z[0]),F2=(Z)=>iU(Z)||l4.has(Z)||Z==="arguments",L2,c4,aU,b5="\\\\/",UJ,p5="\\.",rU="\\+",oU="\\?",p4="\\/",tU="(?=.)",w2="[^/]",RZ,O2,CZ,eU,Zj,qj,Qj,Jj,Yj,N2,Xj,zj,i4,jJ,C9,Vj,s6,Wj,I9,_9,R2,D9,T9,Kj,$j,BJ,Gj,MJ,Uj,HJ=(Z)=>{return Z===R2||Z===s6},FJ=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},jj=(Z,q)=>{let Q=q||{},J=Z.length-1,Y=Q.parts===!0||Q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,L=!1,B=!1,C=!1,y=!1,P=!1,_=!1,v=!1,h=!1,d=0,E,N,A={value:"",depth:0,isGlob:!1},T=()=>K>=J,j=()=>W.charCodeAt(K+1),x=()=>{return E=N,W.charCodeAt(++K)};while(K<J){N=x();let u;if(N===s6){if(P=A.backslashes=!0,N=x(),N===D9)y=!0;continue}if(y===!0||N===D9){d++;while(T()!==!0&&(N=x())){if(N===s6){P=A.backslashes=!0,x();continue}if(N===D9){d++;continue}if(y!==!0&&N===I9&&(N=x())===I9){if(M=A.isBrace=!0,L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===Wj){if(M=A.isBrace=!0,L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Gj){if(d--,d===0){y=!1,M=A.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===R2){if(X.push(K),z.push(A),A={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===I9&&K===$+1){$+=2;continue}H=K+1;continue}if(Q.noext!==!0){if((N===$j||N===Vj||N===C9||N===BJ||N===_9)===!0&&j()===T9){if(L=A.isGlob=!0,B=A.isExtglob=!0,h=!0,N===_9&&K===$)v=!0;if(Y===!0){while(T()!==!0&&(N=x())){if(N===s6){P=A.backslashes=!0,N=x();continue}if(N===MJ){L=A.isGlob=!0,h=!0;break}}continue}break}}if(N===C9){if(E===C9)C=A.isGlobstar=!0;if(L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===BJ){if(L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Kj){while(T()!==!0&&(u=x())){if(u===s6){P=A.backslashes=!0,x();continue}if(u===Uj){O=A.isBracket=!0,L=A.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(Q.nonegate!==!0&&N===_9&&K===$){_=A.negated=!0,$++;continue}if(Q.noparen!==!0&&N===T9){if(L=A.isGlob=!0,Y===!0){while(T()!==!0&&(N=x())){if(N===T9){P=A.backslashes=!0,N=x();continue}if(N===MJ){h=!0;break}}continue}break}if(L===!0){if(h=!0,Y===!0)continue;break}}if(Q.noext===!0)B=!1,L=!1;let b=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(b&&L===!0&&H>0)b=W.slice(0,H),G=W.slice(H);else if(L===!0)b="",G=W;else b=W;if(b&&b!==""&&b!=="/"&&b!==W){if(HJ(b.charCodeAt(b.length-1)))b=b.slice(0,-1)}if(Q.unescape===!0){if(G)G=jJ.removeBackslashes(G);if(b&&P===!0)b=jJ.removeBackslashes(b)}let F={prefix:S,input:Z,start:$,base:b,glob:G,isBrace:M,isBracket:O,isGlob:L,isExtglob:B,isGlobstar:C,negated:_,negatedExtglob:v};if(Q.tokens===!0){if(F.maxDepth=0,!HJ(N))z.push(A);F.tokens=z}if(Q.parts===!0||Q.tokens===!0){let u;for(let f=0;f<X.length;f++){let o=u?u+1:$,t=X[f],J1=Z.slice(o,t);if(Q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=J1;FJ(z[f]),F.maxDepth+=z[f].depth}if(f!==0||J1!=="")V.push(J1);u=t}if(u&&u+1<Z.length){let f=Z.slice(u+1);if(V.push(f),Q.tokens)z[z.length-1].value=f,FJ(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F},Bj,D4,w5,T4,Mj,Hj,Fj,C2,Lj=(Z,q)=>{if(typeof q.expandRange==="function")return q.expandRange(...Z,q);return Z.sort(),`[${Z.join("-")}]`},a8=(Z,q)=>{return`Missing ${Z}: "${q}" - use "\\\\${q}" to match literal characters`},IZ=(Z,q)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=C2[Z]||Z;let Q={...q},J=typeof Q.maxLength==="number"?Math.min(T4,Q.maxLength):T4,Y=Z.length;if(Y>J)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${J}`);let X={type:"bos",value:"",output:Q.prepend||""},z=[X],V=Q.capture?"":"?:",W=w5.isWindows(q),K=D4.globChars(W),$=D4.extglobChars(K),{DOT_LITERAL:H,PLUS_LITERAL:M,SLASH_LITERAL:O,ONE_CHAR:L,DOTS_SLASH:B,NO_DOT:C,NO_DOT_SLASH:y,NO_DOTS_SLASH:P,QMARK:_,QMARK_NO_DOT:v,STAR:h,START_ANCHOR:d}=K,E=(D)=>{return`(${V}(?:(?!${d}${D.dot?B:H}).)*?)`},N=Q.dot?"":C,A=Q.dot?_:v,T=Q.bash===!0?E(Q):h;if(Q.capture)T=`(${T})`;if(typeof Q.noext==="boolean")Q.noextglob=Q.noext;let j={input:Z,index:-1,start:0,dot:Q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=w5.removePrefix(Z,j),Y=Z.length;let x=[],b=[],S=[],G=X,F,u=()=>j.index===Y-1,f=j.peek=(D=1)=>Z[j.index+D],o=j.advance=()=>Z[++j.index]||"",t=()=>Z.slice(j.index+1),J1=(D="",k=0)=>{j.consumed+=D,j.index+=k},N1=(D)=>{j.output+=D.output!=null?D.output:D.value,J1(D.value)},R1=()=>{let D=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))o(),j.start++,D++;if(D%2===0)return!1;return j.negated=!0,j.start++,!0},F1=(D)=>{j[D]++,S.push(D)},a=(D)=>{j[D]--,S.pop()},m=(D)=>{if(G.type==="globstar"){let k=j.braces>0&&(D.type==="comma"||D.type==="brace"),I=D.extglob===!0||x.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!k&&!I)j.output=j.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=T,j.output+=G.output}if(x.length&&D.type!=="paren")x[x.length-1].inner+=D.value;if(D.value||D.output)N1(D);if(G&&G.type==="text"&&D.type==="text"){G.value+=D.value,G.output=(G.output||"")+D.value;return}D.prev=G,z.push(D),G=D},L1=(D,k)=>{let I={...$[k],conditions:1,inner:""};I.prev=G,I.parens=j.parens,I.output=j.output;let g=(Q.capture?"(":"")+I.open;F1("parens"),m({type:D,value:k,output:j.output?"":L}),m({type:"paren",extglob:!0,value:o(),output:g}),x.push(I)},p=(D)=>{let k=D.close+(Q.capture?")":""),I;if(D.type==="negate"){let g=T;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))g=E(Q);if(g!==T||u()||/^\)+$/.test(t()))k=D.close=`)$))${g}`;if(D.inner.includes("*")&&(I=t())&&/^\.[^\\/.]+$/.test(I)){let c=IZ(I,{...q,fastpaths:!1}).output;k=D.close=`)${c})${g})`}if(D.prev.type==="bos")j.negatedExtglob=!0}m({type:"paren",extglob:!0,value:F,output:k}),a("parens")};if(Q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,k=Z.replace(Fj,(I,g,c,n,i,B1)=>{if(n==="\\")return D=!0,I;if(n==="?"){if(g)return g+n+(i?_.repeat(i.length):"");if(B1===0)return A+(i?_.repeat(i.length):"");return _.repeat(c.length)}if(n===".")return H.repeat(c.length);if(n==="*"){if(g)return g+n+(i?T:"");return T}return g?I:`\\${I}`});if(D===!0)if(Q.unescape===!0)k=k.replace(/\\/g,"");else k=k.replace(/\\+/g,(I)=>{return I.length%2===0?"\\\\":I?"\\":""});if(k===Z&&Q.contains===!0)return j.output=Z,j;return j.output=w5.wrapOutput(k,j,q),j}while(!u()){if(F=o(),F==="\x00")continue;if(F==="\\"){let I=f();if(I==="/"&&Q.bash!==!0)continue;if(I==="."||I===";")continue;if(!I){F+="\\",m({type:"text",value:F});continue}let g=/^\\+/.exec(t()),c=0;if(g&&g[0].length>2){if(c=g[0].length,j.index+=c,c%2!==0)F+="\\"}if(Q.unescape===!0)F=o();else F+=o();if(j.brackets===0){m({type:"text",value:F});continue}}if(j.brackets>0&&(F!=="]"||G.value==="["||G.value==="[^")){if(Q.posix!==!1&&F===":"){let I=G.value.slice(1);if(I.includes("[")){if(G.posix=!0,I.includes(":")){let g=G.value.lastIndexOf("["),c=G.value.slice(0,g),n=G.value.slice(g+2),i=Mj[n];if(i){if(G.value=c+i,j.backtrack=!0,o(),!X.output&&z.indexOf(G)===1)X.output=L;continue}}}}if(F==="["&&f()!==":"||F==="-"&&f()==="]")F=`\\${F}`;if(F==="]"&&(G.value==="["||G.value==="[^"))F=`\\${F}`;if(Q.posix===!0&&F==="!"&&G.value==="[")F="^";G.value+=F,N1({value:F});continue}if(j.quotes===1&&F!=='"'){F=w5.escapeRegex(F),G.value+=F,N1({value:F});continue}if(F==='"'){if(j.quotes=j.quotes===1?0:1,Q.keepQuotes===!0)m({type:"text",value:F});continue}if(F==="("){F1("parens"),m({type:"paren",value:F});continue}if(F===")"){if(j.parens===0&&Q.strictBrackets===!0)throw SyntaxError(a8("opening","("));let I=x[x.length-1];if(I&&j.parens===I.parens+1){p(x.pop());continue}m({type:"paren",value:F,output:j.parens?")":"\\)"}),a("parens");continue}if(F==="["){if(Q.nobracket===!0||!t().includes("]")){if(Q.nobracket!==!0&&Q.strictBrackets===!0)throw SyntaxError(a8("closing","]"));F=`\\${F}`}else F1("brackets");m({type:"bracket",value:F});continue}if(F==="]"){if(Q.nobracket===!0||G&&G.type==="bracket"&&G.value.length===1){m({type:"text",value:F,output:`\\${F}`});continue}if(j.brackets===0){if(Q.strictBrackets===!0)throw SyntaxError(a8("opening","["));m({type:"text",value:F,output:`\\${F}`});continue}a("brackets");let I=G.value.slice(1);if(G.posix!==!0&&I[0]==="^"&&!I.includes("/"))F=`/${F}`;if(G.value+=F,N1({value:F}),Q.literalBrackets===!1||w5.hasRegexChars(I))continue;let g=w5.escapeRegex(G.value);if(j.output=j.output.slice(0,-G.value.length),Q.literalBrackets===!0){j.output+=g,G.value=g;continue}G.value=`(${V}${g}|${G.value})`,j.output+=G.value;continue}if(F==="{"&&Q.nobrace!==!0){F1("braces");let I={type:"brace",value:F,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};b.push(I),m(I);continue}if(F==="}"){let I=b[b.length-1];if(Q.nobrace===!0||!I){m({type:"text",value:F,output:F});continue}let g=")";if(I.dots===!0){let c=z.slice(),n=[];for(let i=c.length-1;i>=0;i--){if(z.pop(),c[i].type==="brace")break;if(c[i].type!=="dots")n.unshift(c[i].value)}g=Lj(n,Q),j.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let c=j.output.slice(0,I.outputIndex),n=j.tokens.slice(I.tokensIndex);I.value=I.output="\\{",F=g="\\}",j.output=c;for(let i of n)j.output+=i.output||i.value}m({type:"brace",value:F,output:g}),a("braces"),b.pop();continue}if(F==="|"){if(x.length>0)x[x.length-1].conditions++;m({type:"text",value:F});continue}if(F===","){let I=F,g=b[b.length-1];if(g&&S[S.length-1]==="braces")g.comma=!0,I="|";m({type:"comma",value:F,output:I});continue}if(F==="/"){if(G.type==="dot"&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",z.pop(),G=X;continue}m({type:"slash",value:F,output:O});continue}if(F==="."){if(j.braces>0&&G.type==="dot"){if(G.value===".")G.output=H;let I=b[b.length-1];G.type="dots",G.output+=F,G.value+=F,I.dots=!0;continue}if(j.braces+j.parens===0&&G.type!=="bos"&&G.type!=="slash"){m({type:"text",value:F,output:H});continue}m({type:"dot",value:F,output:H});continue}if(F==="?"){if(!(G&&G.value==="(")&&Q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("qmark",F);continue}if(G&&G.type==="paren"){let g=f(),c=F;if(g==="<"&&!w5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(G.value==="("&&!/[!=<:]/.test(g)||g==="<"&&!/<([!=]|\w+>)/.test(t()))c=`\\${F}`;m({type:"text",value:F,output:c});continue}if(Q.dot!==!0&&(G.type==="slash"||G.type==="bos")){m({type:"qmark",value:F,output:v});continue}m({type:"qmark",value:F,output:_});continue}if(F==="!"){if(Q.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){L1("negate",F);continue}}if(Q.nonegate!==!0&&j.index===0){R1();continue}}if(F==="+"){if(Q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("plus",F);continue}if(G&&G.value==="("||Q.regex===!1){m({type:"plus",value:F,output:M});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||j.parens>0){m({type:"plus",value:F});continue}m({type:"plus",value:M});continue}if(F==="@"){if(Q.noextglob!==!0&&f()==="("&&f(2)!=="?"){m({type:"at",extglob:!0,value:F,output:""});continue}m({type:"text",value:F});continue}if(F!=="*"){if(F==="$"||F==="^")F=`\\${F}`;let I=Hj.exec(t());if(I)F+=I[0],j.index+=I[0].length;m({type:"text",value:F});continue}if(G&&(G.type==="globstar"||G.star===!0)){G.type="star",G.star=!0,G.value+=F,G.output=T,j.backtrack=!0,j.globstar=!0,J1(F);continue}let D=t();if(Q.noextglob!==!0&&/^\([^?]/.test(D)){L1("star",F);continue}if(G.type==="star"){if(Q.noglobstar===!0){J1(F);continue}let I=G.prev,g=I.prev,c=I.type==="slash"||I.type==="bos",n=g&&(g.type==="star"||g.type==="globstar");if(Q.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:F,output:""});continue}let i=j.braces>0&&(I.type==="comma"||I.type==="brace"),B1=x.length&&(I.type==="pipe"||I.type==="paren");if(!c&&I.type!=="paren"&&!i&&!B1){m({type:"star",value:F,output:""});continue}while(D.slice(0,3)==="/**"){let _1=Z[j.index+4];if(_1&&_1!=="/")break;D=D.slice(3),J1("/**",3)}if(I.type==="bos"&&u()){G.type="globstar",G.value+=F,G.output=E(Q),j.output=G.output,j.globstar=!0,J1(F);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!n&&u()){j.output=j.output.slice(0,-(I.output+G.output).length),I.output=`(?:${I.output}`,G.type="globstar",G.output=E(Q)+(Q.strictSlashes?")":"|$)"),G.value+=F,j.globstar=!0,j.output+=I.output+G.output,J1(F);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&D[0]==="/"){let _1=D[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(I.output+G.output).length),I.output=`(?:${I.output}`,G.type="globstar",G.output=`${E(Q)}${O}|${O}${_1})`,G.value+=F,j.output+=I.output+G.output,j.globstar=!0,J1(F+o()),m({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&D[0]==="/"){G.type="globstar",G.value+=F,G.output=`(?:^|${O}|${E(Q)}${O})`,j.output=G.output,j.globstar=!0,J1(F+o()),m({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-G.output.length),G.type="globstar",G.output=E(Q),G.value+=F,j.output+=G.output,j.globstar=!0,J1(F);continue}let k={type:"star",value:F,output:T};if(Q.bash===!0){if(k.output=".*?",G.type==="bos"||G.type==="slash")k.output=N+k.output;m(k);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&Q.regex===!0){k.output=F,m(k);continue}if(j.index===j.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot")j.output+=y,G.output+=y;else if(Q.dot===!0)j.output+=P,G.output+=P;else j.output+=N,G.output+=N;if(f()!=="*")j.output+=L,G.output+=L}m(k)}while(j.brackets>0){if(Q.strictBrackets===!0)throw SyntaxError(a8("closing","]"));j.output=w5.escapeLast(j.output,"["),a("brackets")}while(j.parens>0){if(Q.strictBrackets===!0)throw SyntaxError(a8("closing",")"));j.output=w5.escapeLast(j.output,"("),a("parens")}while(j.braces>0){if(Q.strictBrackets===!0)throw SyntaxError(a8("closing","}"));j.output=w5.escapeLast(j.output,"{"),a("braces")}if(Q.strictSlashes!==!0&&(G.type==="star"||G.type==="bracket"))m({type:"maybe_slash",value:"",output:`${O}?`});if(j.backtrack===!0){j.output="";for(let D of j.tokens)if(j.output+=D.output!=null?D.output:D.value,D.suffix)j.output+=D.suffix}return j},wj,Oj,Nj,n9,_Z,Rj,Cj=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),f1=(Z,q,Q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>f1(M,q,Q));return(M)=>{for(let O of $){let L=O(M);if(L)return L}return!1}}let J=Cj(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!J)throw TypeError("Expected pattern to be a non-empty string");let Y=q||{},X=_Z.isWindows(q),z=J?f1.compileRe(Z,q):f1.makeRe(Z,q,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...q,ignore:null,onMatch:null,onResult:null};W=f1(Y.ignore,$,Q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:L}=f1.test($,z,q,{glob:Z,posix:X}),B={glob:Z,state:V,regex:z,posix:X,input:$,output:L,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(B);if(M===!1)return B.isMatch=!1,H?B:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(B);return B.isMatch=!1,H?B:!1}if(typeof Y.onMatch==="function")Y.onMatch(B);return H?B:!0};if(Q)K.state=V;return K},Ij,EI,e8,_j=function(q){let Q=[];return e8[q.type](Q,q),Q},Dj="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public",Tj="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl",Aj,n4=0,X6=1,S8=2,F0,Z6,DZ,T8,U6,q6,TZ,j1,LJ,AZ,a9,r9,V0,s,I2="ArrowFunctionExpression",Sj="BinaryExpression",_2="BlockStatement",D2="CallExpression",yj="ChainExpression",Ej="ConditionalExpression",N5="ExpressionStatement",T2="Identifier",bj="ImportDefaultSpecifier",xj="ImportNamespaceSpecifier",kj="LogicalExpression",fj="NewExpression",A4="Program",vj="Property",hj="ReturnStatement",gj="SequenceExpression",SZ="sourceMa",mj="[ \\f\\r\\t\\v\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]",uj,A2="_rollupAnnotations",P2="_rollupRemoved",dj,A9,cj,o9,y2="variables",Z1,z6,Z5,H4,t6,wJ,E2,p6,V5,OJ=(Z)=>typeof Z==="string"&&/^\d+$/.test(Z),nj,Y8,yZ,NJ,RJ,sj,V4,P9,CJ,IJ,_J,R8,S9,aj,r4,b2,x2,S5,rj="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",DJ=64,P5,bZ,xZ,u1,x5,C8,l,r,TJ,U,J5,c5,r8,e9,o4,oj,l1,A8,PJ,G8,N0,W0,fZ,e4,vZ,gZ,g2,m2,u2,mZ,d2,Z7,l2,ZB,c2,p2,V6,i6=7,y8,uZ,a2,r2,o2,t2,e2,ZY,dZ,y4,qY,lZ,K0,QY,q7,JY,YY,XY,zY,Q7,W6,R0,cZ,VY,WY,KY,$Y,GY,ZZ,SJ,pZ,iZ,UY,E4="_interopDefault",qZ="_interopDefaultLegacy",e6="_interopNamespace",a6="_interopNamespaceDefault",$0="_interopNamespaceDefaultOnly",b4="_mergeNamespaces",C0,J7=(Z,q)=>Z==="esModule"||q&&(Z==="auto"||Z==="true"),I0,zB=(Z,q)=>J7(Z,q)&&C0[Z]===E4,nZ=(Z,q,Q,J,Y,X,z)=>{let V=new Set(Z);for(let W of JZ)if(q.has(W))V.add(W);return JZ.map((W)=>V.has(W)?jY[W](Q,J,Y,X,z,V):"").join("")},jY,yJ=({_:Z,getObject:q})=>`e${Z}:${Z}${q([["default","e"]],{lineBreakIndent:null})}`,EJ=({_:Z,getPropertyAccess:q})=>`e${q("default")}${Z}:${Z}e`,bJ=(Z,q,Q,J,Y,X)=>{let{_:z,cnst:V,getObject:W,getPropertyAccess:K,n:$,s:H}=Q,M=`{${$}`+(J?KB:MY)(Z,q+Z+Z,Q)+`${q}${Z}}`;return`${q}${V} n${z}=${z}Object.create(null${X?`,${z}{${z}[Symbol.toStringTag]:${z}${G0(W)}${z}}`:""});${$}${q}if${z}(e)${z}{${$}${q}${Z}${VB(M,!J,Q)}${$}${q}}${$}${q}n${K("default")}${z}=${z}e;${$}${q}return ${QZ(Y,"n")}${H}${$}`},VB=(Z,q,{_:Q,cnst:J,getFunctionIntro:Y,s:X})=>J!=="var"||q?`for${Q}(${J} k in e)${Q}${Z}`:`Object.keys(e).forEach(${Y(["k"],{isAsync:!1,name:null})}${Z})${X}`,WB=(Z,q,Q,{_:J,cnst:Y,getDirectReturnFunction:X,getFunctionIntro:z,n:V})=>{if(q){let[W,K]=X(["e"],{functionReturn:!1,lineBreakIndent:{base:Q,t:Q},name:null});return`m.forEach(${W}e${J}&&${J}typeof e${J}!==${J}'string'${J}&&${J}!Array.isArray(e)${J}&&${J}Object.keys(e).forEach(${z(["k"],{isAsync:!1,name:null})}${Z})${K});`}return`for${J}(var i${J}=${J}0;${J}i${J}<${J}m.length;${J}i++)${J}{${V}${Q}${Q}${Y} e${J}=${J}m[i];${V}${Q}${Q}if${J}(typeof e${J}!==${J}'string'${J}&&${J}!Array.isArray(e))${J}{${J}for${J}(${Y} k in e)${J}${Z}${J}}${V}${Q}}`},KB=(Z,q,Q)=>{let{_:J,n:Y}=Q;return`${q}if${J}(k${J}!==${J}'default')${J}{${Y}`+BY(Z,q+Z,Q)+`${q}}${Y}`},BY=(Z,q,{_:Q,cnst:J,getDirectReturnFunction:Y,n:X})=>{let[z,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${q}${J} d${Q}=${Q}Object.getOwnPropertyDescriptor(e,${Q}k);${X}${q}Object.defineProperty(n,${Q}k,${Q}d.get${Q}?${Q}d${Q}:${Q}{${X}${q}${Z}enumerable:${Q}true,${X}${q}${Z}get:${Q}${z}e[k]${V}${X}${q}});${X}`},$B=(Z,q,{_:Q,cnst:J,getDirectReturnFunction:Y,n:X})=>{let[z,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${q}${J} d${Q}=${Q}Object.getOwnPropertyDescriptor(e,${Q}k);${X}${q}if${Q}(d)${Q}{${X}${q}${Z}Object.defineProperty(n,${Q}k,${Q}d.get${Q}?${Q}d${Q}:${Q}{${X}${q}${Z}${Z}enumerable:${Q}true,${X}${q}${Z}${Z}get:${Q}${z}e[k]${V}${X}${q}${Z}});${X}${q}}${X}`},MY=(Z,q,{_:Q,n:J})=>`${q}n[k]${Q}=${Q}e[k];${J}`,QZ=(Z,q)=>Z?`Object.freeze(${q})`:q,xJ=(Z,q,{_:Q,getObject:J})=>Z?`Object.defineProperty(${q},${Q}Symbol.toStringTag,${Q}${G0(J)})`:q,JZ,HY,GB,FY,LY,wY,OY,n6="ROLLUP_ASSET_URL_",K4="ROLLUP_CHUNK_URL_",Q8="ROLLUP_FILE_URL_",NY,UB,jB,i5=(Z,q="URL")=>`new ${q}(${Z}).href`,y9=(Z,q=!1)=>i5(`'${Z}', ${q?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`),$4=(Z)=>(q,{chunkId:Q})=>{let J=Z(Q);return q===null?`({ url: ${J} })`:q==="url"?J:"undefined"},E9=(Z,q=!1)=>`${q?"typeof document === 'undefined' ? location.href : ":""}(document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('${Z}', document.baseURI).href)`,BB,fJ,RY,CY,IY,sZ,_Y,DY,TY,AY,PY,SY,aZ,yY,EY,bY,rZ,oZ,g5,tZ,xY,kY,fY,MB,vY,hY,gY,eZ,uY,dY,lY,vJ,K6="_missingExportShim",cY,J6,G5,X8,x4=()=>{},U0,a1,i1,RB,hJ,DB=(Z)=>Z&&new Map(Array.from(Z,([q,Q])=>[q,new Set(Q)])),AB=(Z,q,Q,{_:J,getDirectReturnFunction:Y,n:X})=>{if(q){let[z,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`Object.defineProperty(exports,${J}k,${J}{${X}${Q}${Q}enumerable:${J}true,${X}${Q}${Q}get:${J}${z}${Z}[k]${V}${X}${Q}})`}return`exports[k]${J}=${J}${Z}[k]`},SB,L4=(Z,q)=>Z.split(".").map(q).join(""),uB=({dependencies:Z,exports:q})=>{let Q=new Set(q.map((J)=>J.exported));Q.add("default");for(let{reexports:J}of Z)if(J){for(let Y of J)if(Y.reexported!=="*")Q.add(Y.reexported)}return Q},dB=(Z,q,{_:Q,cnst:J,getObject:Y,n:X})=>Z?`${X}${q}${J} _starExcludes${Q}=${Q}${Y([...Z].map((z)=>[z,"1"]),{lineBreakIndent:{base:q,t:q}})};`:"",lB=(Z,q,{_:Q,n:J})=>Z.length?`${J}${q}var ${Z.join(`,${Q}`)};`:"",cB=(Z,q,Q)=>q3(Z.filter((J)=>J.hoisted).map((J)=>({name:J.exported,value:J.local})),q,Q),pB=(Z,q,Q)=>q3(Z.filter((J)=>J.expression).map((J)=>({name:J.exported,value:J.local})),q,Q),iB=(Z,q,Q)=>q3(Z.filter((J)=>J.local===K6).map((J)=>({name:J.exported,value:K6})),q,Q),aB,k4=()=>sG("sha256"),tB,qM,QM,JM,Q3,ZX,GM=(Z)=>{let q=new Set;return new Proxy(Z,{deleteProperty(Q,J){if(typeof J==="string")q.delete(J.toLowerCase());return Reflect.deleteProperty(Q,J)},get(Q,J){if(J===Q3)return q;return Reflect.get(Q,J)},set(Q,J,Y){if(typeof J==="string")q.add(J.toLowerCase());return Reflect.set(Q,J,Y)}})},dJ,jM,lJ=(Z,q)=>q?`${Z}
|
|
39
|
+
${q}`:Z,cJ=(Z,q)=>q?`${Z}
|
|
40
40
|
|
|
41
|
-
${
|
|
42
|
-
`,Q-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R5).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=R.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=J.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&J.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(M0),this.regexpState=null,this.privateNameStack=[]},m5,Y5,uM,W7=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1},z1,K3,dM,lM,Z0=1,KZ=2,BX=4,y5,A5=function(J,q,Q,Y,X){this.token=J,this.isExpr=!!q,this.preserveSpace=!!Q,this.override=Y,this.generator=!!X},y1,M6,G1,pM,h4,U8,iM=function(J){this.flags=J,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1},K7=function(J,q,Q){if(this.type="",this.start=q,this.end=0,J.options.locations)this.loc=new V7(J,Q);if(J.options.directSourceFile)this.sourceFile=J.options.directSourceFile;if(J.options.ranges)this.range=[q,0]},T0,FX="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",LX,wX,OX,nM,aM,oQ="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",NX="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",RX,CX,IX,sM,rM,_X,$Z,r6,O4,X1,o5=function(J){this.parser=J,this.validFlags="gim"+(J.options.ecmaVersion>=6?"uy":"")+(J.options.ecmaVersion>=9?"s":"")+(J.options.ecmaVersion>=13?"d":""),this.unicodeProperties=_X[J.options.ecmaVersion>=13?13:J.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]},$3=function(J){if(this.type=J.type,this.value=J.value,this.start=J.start,this.end=J.end,J.options.locations)this.loc=new V7(J,J.startLoc,J.endLoc);if(J.options.ranges)this.range=[J.start,J.end]},H1,bX,YH="8.7.1",G3="at position ",U3="at output position ",VH,GH,g9="resolveDependencies",kX,RH,CH,m4="beforeExit",u4,Y2=(Z)=>console.warn(Z.message||Z),PH,SH,yH=(Z)=>Z&&typeof Z==="object"?Z:{},EH=(Z,J,q)=>(Q)=>{if(typeof Q==="string"){let Y=Z[Q];if(Y)return Y;e(m1(J,lX(J),`valid values are ${q}${V8(Object.keys(Z))}. You can also supply an object for more fine-grained control`,Q))}return yH(Q)},dX=(Z,J,q,Q)=>{let Y=Z===null||Z===void 0?void 0:Z.preset;if(Y){let X=J[Y];if(X)return{...X,...Z};else e(m1(`${q}.preset`,lX(q),`valid values are ${V8(Object.keys(J))}`,Y))}return EH(J,q,Q)(Z)},lX=(Z)=>Z.split(".").join("").toLowerCase(),xH=(Z)=>{let{onwarn:J}=Z;return J?(q)=>{q.toString=()=>{let Q="";if(q.plugin)Q+=`(${q.plugin} plugin) `;if(q.loc)Q+=`${V1(q.loc.file)} (${q.loc.line}:${q.loc.column}) `;return Q+=q.message,Q},J(q,Y2)}:Y2},kH=(Z)=>({allowAwaitOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,sourceType:"module",...Z.acorn}),fH=(Z)=>H6(Z.acornInjectPlugins),vH=(Z)=>{var J;return((J=Z.cache)===null||J===void 0?void 0:J.cache)||Z.cache},cX=(Z)=>{if(Z===!0)return()=>!0;if(typeof Z==="function")return(J,...q)=>!J.startsWith("\x00")&&Z(J,...q)||!1;if(Z){let J=new Set,q=[];for(let Q of H6(Z))if(Q instanceof RegExp)q.push(Q);else J.add(Q);return(Q,...Y)=>J.has(Q)||q.some((X)=>X.test(Q))}return()=>!1},hH=(Z,J,q)=>{let Q=Z.inlineDynamicImports;if(Q)G6('The "inlineDynamicImports" option is deprecated. Use the "output.inlineDynamicImports" option instead.',!1,J,q);return Q},gH=(Z)=>{let J=Z.input;return J==null?[]:typeof J==="string"?[J]:J},mH=(Z,J,q)=>{let Q=Z.manualChunks;if(Q)G6('The "manualChunks" option is deprecated. Use the "output.manualChunks" option instead.',!1,J,q);return Q},uH=(Z,J,q)=>{var Q;let Y=Z.maxParallelFileReads;if(typeof Y==="number")G6('The "maxParallelFileReads" option is deprecated. Use the "maxParallelFileOps" option instead.',!1,J,q);let X=(Q=Z.maxParallelFileOps)!==null&&Q!==void 0?Q:Y;if(typeof X==="number"){if(X<=0)return 1/0;return X}return 20},dH=(Z,J)=>{let q=Z.moduleContext;if(typeof q==="function")return(Q)=>{var Y;return(Y=q(Q))!==null&&Y!==void 0?Y:J};if(q){let Q=Object.create(null);for(let[Y,X]of Object.entries(q))Q[U5(Y)]=X;return(Y)=>Q[Y]||J}return()=>J},lH=(Z,J)=>{let q=Z.preserveEntrySignatures;if(q==null)J.add("preserveEntrySignatures");return q!==null&&q!==void 0?q:"strict"},cH=(Z,J,q)=>{let Q=Z.preserveModules;if(Q)G6('The "preserveModules" option is deprecated. Use the "output.preserveModules" option instead.',!1,J,q);return Q},pH=(Z,J,q)=>{let Q=Z.treeshake;if(Q===!1)return!1;let Y=dX(Z.treeshake,PH,"treeshake","false, true, ");if(typeof Y.pureExternalModules<"u")G6(`The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead. "treeshake.pureExternalModules: true" is equivalent to "treeshake.moduleSideEffects: 'no-external'"`,!0,J,q);return{annotations:Y.annotations!==!1,correctVarValueBeforeDeclaration:Y.correctVarValueBeforeDeclaration===!0,moduleSideEffects:typeof Q==="object"&&Q.pureExternalModules?X2(Q.moduleSideEffects,Q.pureExternalModules):X2(Y.moduleSideEffects,void 0),propertyReadSideEffects:Y.propertyReadSideEffects==="always"?"always":Y.propertyReadSideEffects!==!1,tryCatchDeoptimization:Y.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:Y.unknownGlobalSideEffects!==!1}},X2=(Z,J)=>{if(typeof Z==="boolean")return()=>Z;if(Z==="no-external")return(Q,Y)=>!Y;if(typeof Z==="function")return(Q,Y)=>!Q.startsWith("\x00")?Z(Q,Y)!==!1:!0;if(Array.isArray(Z)){let Q=new Set(Z);return(Y)=>Q.has(Y)}if(Z)e(m1("treeshake.moduleSideEffects","treeshake",'please use one of false, "no-external", a function or an array'));let q=cX(J);return(Q,Y)=>!(Y&&q(Q))},iH,nH,oH=(Z,J,q)=>{let{file:Q}=Z;if(typeof Q==="string"){if(J)return e(m1("output.file","outputdir",'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(q.input))return e(m1("output.file","outputdir",'you must set "output.dir" instead of "output.file" when providing named inputs'))}return Q},tH=(Z)=>{let J=Z.format;switch(J){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return J;default:return e({message:'You must specify "output.format", which can be one of "amd", "cjs", "system", "es", "iife" or "umd".',url:"https://rollupjs.org/guide/en/#outputformat"})}},eH=(Z,J)=>{var q;let Q=((q=Z.inlineDynamicImports)!==null&&q!==void 0?q:J.inlineDynamicImports)||!1,{input:Y}=J;if(Q&&(Array.isArray(Y)?Y:Object.keys(Y)).length>1)return e(m1("output.inlineDynamicImports","outputinlinedynamicimports",'multiple inputs are not supported when "output.inlineDynamicImports" is true'));return Q},ZF=(Z,J,q)=>{var Q;let Y=((Q=Z.preserveModules)!==null&&Q!==void 0?Q:q.preserveModules)||!1;if(Y){if(J)return e(m1("output.inlineDynamicImports","outputinlinedynamicimports",'this option is not supported for "output.preserveModules"'));if(q.preserveEntrySignatures===!1)return e(m1("preserveEntrySignatures","preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return Y},JF=(Z,J)=>{let q=Z.preferConst;if(q!=null)j5('The "output.preferConst" option is deprecated. Use the "output.generatedCode.constBindings" option instead.',!1,J);return!!q},qF=(Z)=>{let{preserveModulesRoot:J}=Z;if(J===null||J===void 0)return;return U5(J)},QF=(Z)=>{let J={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...Z.amd};if((J.autoId||J.basePath)&&J.id)return e(m1("output.amd.id","outputamd",'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"'));if(J.basePath&&!J.autoId)return e(m1("output.amd.basePath","outputamd",'this option only works with "output.amd.autoId"'));let q;if(J.autoId)q={autoId:!0,basePath:J.basePath,define:J.define,forceJsExtensionForImports:J.forceJsExtensionForImports};else q={autoId:!1,define:J.define,forceJsExtensionForImports:J.forceJsExtensionForImports,id:J.id};return q},B4=(Z,J)=>{let q=Z[J];if(typeof q==="function")return q;return()=>q||""},YF=(Z,J)=>{let{dir:q}=Z;if(typeof q==="string"&&typeof J==="string")return e(m1("output.dir","outputdir",'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks'));return q},XF=(Z,J)=>{let q=Z.dynamicImportFunction;if(q)j5('The "output.dynamicImportFunction" option is deprecated. Use the "renderDynamicImport" plugin hook instead.',!1,J);return q},zF=(Z,J)=>{let q=Z.entryFileNames;if(q==null)J.add("entryFileNames");return q!==null&&q!==void 0?q:"[name].js"},WF=(Z,J)=>{let q=dX(Z.generatedCode,SH,"output.generatedCode","");return{arrowFunctions:q.arrowFunctions===!0,constBindings:q.constBindings===!0||J,objectShorthand:q.objectShorthand===!0,reservedNamesAsProps:q.reservedNamesAsProps===!0,symbols:q.symbols===!0}},KF=(Z,J)=>{if(J)return"";let q=Z.indent;return q===!1?"":q!==null&&q!==void 0?q:!0},z2,$F=(Z,J)=>{let q=Z.interop,Q=new Set,Y=(X)=>{if(!Q.has(X)){if(Q.add(X),!z2.has(X))return e(m1("output.interop","outputinterop",`use one of ${Array.from(z2,(z)=>JSON.stringify(z)).join(", ")}`,X));if(typeof X==="boolean")j5({message:`The boolean value "${X}" for the "output.interop" option is deprecated. Use ${X?'"auto"':'"esModule", "default" or "defaultOnly"'} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"},!1,J)}return X};if(typeof q==="function"){let X=Object.create(null),z=null;return(V)=>V===null?z||Y(z=q(V)):(V in X)?X[V]:Y(X[V]=q(V))}return q===void 0?()=>!0:()=>Y(q)},GF=(Z,J,q,Q)=>{let Y=Z.manualChunks||Q.manualChunks;if(Y){if(J)return e(m1("output.manualChunks","outputmanualchunks",'this option is not supported for "output.inlineDynamicImports"'));if(q)return e(m1("output.manualChunks","outputmanualchunks",'this option is not supported for "output.preserveModules"'))}return Y||{}},UF=(Z,J,q)=>{var Q;return(Q=Z.minifyInternalExports)!==null&&Q!==void 0?Q:q||J==="es"||J==="system"},jF=(Z,J,q)=>{let Q=Z.namespaceToStringTag;if(Q!=null)return j5('The "output.namespaceToStringTag" option is deprecated. Use the "output.generatedCode.symbols" option instead.',!1,q),Q;return J.symbols||!1},BF=(Z)=>{let{sourcemapBaseUrl:J}=Z;if(J){if(sH(J))return J;return e(m1("output.sourcemapBaseUrl","outputsourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(J)}`))}},J0;var iX=pW(()=>{$2={};for(t8=0;t8<u9.length;t8++)$2[u9.charCodeAt(t8)]=t8;if(typeof window<"u"&&typeof window.btoa==="function")d9=(Z)=>window.btoa(unescape(encodeURIComponent(Z)));else if(typeof Buffer==="function")d9=(Z)=>Buffer.from(Z,"utf-8").toString("base64");eG=Object.prototype.toString;n8={insertLeft:!1,insertRight:!1,storeName:!1};YQ=Object.prototype.hasOwnProperty;XQ=/[/\\]/;d1=Symbol("Unknown Key"),C4=Symbol("Unknown Non-Accessor Key"),Q0=Symbol("Unknown Integer"),$1=[],D1=[d1],ZU=[C4],c9=[Q0],q6=Symbol("Entities");r1=new Y0;x1=Symbol("Unknown Value"),j2=Symbol("Unknown Truthy Value");Y1=new class extends B5{},LZ={thisArg:null,type:E1},JU=[Y1],wZ={args:JU,thisArg:null,type:h5},p9=[],d4={args:p9,thisArg:null,type:P1,withNew:!1};$8=class $8 extends B5{constructor(Z){super();this.name=Z,this.alwaysRendered=!1,this.initReached=!1,this.isId=!1,this.isReassigned=!1,this.kind=null,this.renderBaseName=null,this.renderName=null}addReference(Z){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getName(Z){let J=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${Z(J)}`:J}hasEffectsOnInteractionAtPath(Z,{type:J},q){return J!==E1||Z.length>0}include(){this.included=!0}markCalledFromTryStatement(){}setRenderNames(Z,J){this.renderBaseName=Z,this.renderName=J}};X0=class X0 extends $8{constructor(Z,J){super(J);this.referenced=!1,this.module=Z,this.isNamespace=J==="*"}addReference(Z){if(this.referenced=!0,this.name==="default"||this.name==="*")this.module.suggestName(Z.name)}hasEffectsOnInteractionAtPath(Z,{type:J}){return J!==E1||Z.length>(this.isNamespace?1:0)}include(){if(!this.included)this.included=!0,this.module.used=!0}};n1=Object.freeze(Object.create(null)),o6=Object.freeze({}),a8=Object.freeze([]);XU=/^(?:\/|(?:[A-Za-z]:)?[\\|/])/,zU=/^\.?\.(\/|$)/;VU=/\\/g;WU=/^(\.\.\/)*\.\.$/;(function(Z){Z.ALREADY_CLOSED="ALREADY_CLOSED",Z.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",Z.ASSET_NOT_FOUND="ASSET_NOT_FOUND",Z.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",Z.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",Z.BAD_LOADER="BAD_LOADER",Z.CANNOT_EMIT_FROM_OPTIONS_HOOK="CANNOT_EMIT_FROM_OPTIONS_HOOK",Z.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",Z.CHUNK_INVALID="CHUNK_INVALID",Z.CIRCULAR_REEXPORT="CIRCULAR_REEXPORT",Z.CYCLIC_CROSS_CHUNK_REEXPORT="CYCLIC_CROSS_CHUNK_REEXPORT",Z.DEPRECATED_FEATURE="DEPRECATED_FEATURE",Z.EXTERNAL_SYNTHETIC_EXPORTS="EXTERNAL_SYNTHETIC_EXPORTS",Z.FILE_NAME_CONFLICT="FILE_NAME_CONFLICT",Z.FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY="FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY",Z.FILE_NOT_FOUND="FILE_NOT_FOUND",Z.INPUT_HOOK_IN_OUTPUT_PLUGIN="INPUT_HOOK_IN_OUTPUT_PLUGIN",Z.INVALID_CHUNK="INVALID_CHUNK",Z.INVALID_EXPORT_OPTION="INVALID_EXPORT_OPTION",Z.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",Z.INVALID_OPTION="INVALID_OPTION",Z.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",Z.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",Z.MISSING_EXPORT="MISSING_EXPORT",Z.MISSING_IMPLICIT_DEPENDANT="MISSING_IMPLICIT_DEPENDANT",Z.MIXED_EXPORTS="MIXED_EXPORTS",Z.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",Z.AMBIGUOUS_EXTERNAL_NAMESPACES="AMBIGUOUS_EXTERNAL_NAMESPACES",Z.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE="NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",Z.PLUGIN_ERROR="PLUGIN_ERROR",Z.PREFER_NAMED_EXPORTS="PREFER_NAMED_EXPORTS",Z.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT="SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",Z.UNEXPECTED_NAMED_IMPORT="UNEXPECTED_NAMED_IMPORT",Z.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",Z.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT",Z.VALIDATION_ERROR="VALIDATION_ERROR"})(W1||(W1={}));pU=new Set(["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","NaN","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]),l4=pU,M2=/[^$_a-zA-Z0-9]/g;F2={exports:{}},c4={},sU=GZ,GQ=`[^${b5}]`,RZ=`(?:${p4}|$)`,w2=`(?:^|${p4})`,CZ=`${p5}{1,2}${RZ}`,eU=`(?!${p5})`,Zj=`(?!${w2}${CZ})`,Jj=`(?!${p5}{0,1}${RZ})`,qj=`(?!${CZ})`,Qj=`[^.${p4}]`,Yj=`${L2}*?`,O2={DOT_LITERAL:p5,PLUS_LITERAL:rU,QMARK_LITERAL:oU,SLASH_LITERAL:p4,ONE_CHAR:tU,QMARK:L2,END_ANCHOR:RZ,DOTS_SLASH:CZ,NO_DOT:eU,NO_DOTS:Zj,NO_DOT_SLASH:Jj,NO_DOTS_SLASH:qj,QMARK_NO_DOT:Qj,STAR:Yj,START_ANCHOR:w2},Xj={...O2,SLASH_LITERAL:`[${b5}]`,QMARK:GQ,STAR:`${GQ}*?`,DOTS_SLASH:`${p5}{1,2}(?:[${b5}]|$)`,NO_DOT:`(?!${p5})`,NO_DOTS:`(?!(?:^|[${b5}])${p5}{1,2}(?:[${b5}]|$))`,NO_DOT_SLASH:`(?!${p5}{0,1}(?:[${b5}]|$))`,NO_DOTS_SLASH:`(?!${p5}{1,2}(?:[${b5}]|$))`,QMARK_NO_DOT:`[^.${b5}]`,START_ANCHOR:`(?:^|[${b5}])`,END_ANCHOR:`(?:[${b5}]|$)`},zj={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},i4={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:zj,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:sU.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?Xj:O2}};(function(Z){let J=GZ,q=process.platform==="win32",{REGEX_BACKSLASH:Q,REGEX_REMOVE_BACKSLASH:Y,REGEX_SPECIAL_CHARS:X,REGEX_SPECIAL_CHARS_GLOBAL:z}=i4;Z.isObject=(V)=>V!==null&&typeof V==="object"&&!Array.isArray(V),Z.hasRegexChars=(V)=>X.test(V),Z.isRegexChar=(V)=>V.length===1&&Z.hasRegexChars(V),Z.escapeRegex=(V)=>V.replace(z,"\\$1"),Z.toPosixSlashes=(V)=>V.replace(Q,"/"),Z.removeBackslashes=(V)=>{return V.replace(Y,(W)=>{return W==="\\"?"":W})},Z.supportsLookbehinds=()=>{let V=process.version.slice(1).split(".").map(Number);if(V.length===3&&V[0]>=9||V[0]===8&&V[1]>=10)return!0;return!1},Z.isWindows=(V)=>{if(V&&typeof V.windows==="boolean")return V.windows;return q===!0||J.sep==="\\"},Z.escapeLast=(V,W,K)=>{let $=V.lastIndexOf(W,K);if($===-1)return V;if(V[$-1]==="\\")return Z.escapeLast(V,W,$-1);return`${V.slice(0,$)}\\${V.slice($)}`},Z.removePrefix=(V,W={})=>{let K=V;if(K.startsWith("./"))K=K.slice(2),W.prefix="./";return K},Z.wrapOutput=(V,W={},K={})=>{let $=K.contains?"":"^",H=K.contains?"":"$",M=`${$}(?:${V})${H}`;if(W.negated===!0)M=`(?:^(?!${M}).*$)`;return M}})(c4);UQ=c4,{CHAR_ASTERISK:C9,CHAR_AT:Vj,CHAR_BACKWARD_SLASH:a6,CHAR_COMMA:Wj,CHAR_DOT:I9,CHAR_EXCLAMATION_MARK:_9,CHAR_FORWARD_SLASH:N2,CHAR_LEFT_CURLY_BRACE:D9,CHAR_LEFT_PARENTHESES:T9,CHAR_LEFT_SQUARE_BRACKET:Kj,CHAR_PLUS:$j,CHAR_QUESTION_MARK:jQ,CHAR_RIGHT_CURLY_BRACE:Gj,CHAR_RIGHT_PARENTHESES:BQ,CHAR_RIGHT_SQUARE_BRACKET:Uj}=i4,Bj=jj,D4=i4,w5=c4,{MAX_LENGTH:T4,POSIX_REGEX_SOURCE:Mj,REGEX_NON_SPECIAL_CHARS:Hj,REGEX_SPECIAL_CHARS_BACKREF:Fj,REPLACEMENTS:R2}=D4;IZ.fastpaths=(Z,J)=>{let q={...J},Q=typeof q.maxLength==="number"?Math.min(T4,q.maxLength):T4,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=R2[Z]||Z;let X=w5.isWindows(J),{DOT_LITERAL:z,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:$,NO_DOTS:H,NO_DOTS_SLASH:M,STAR:O,START_ANCHOR:j}=D4.globChars(X),L=q.dot?H:$,I=q.dot?M:$,y=q.capture?"":"?:",_={negated:!1,prefix:""},T=q.bash===!0?".*?":O;if(q.capture)T=`(${T})`;let g=(N)=>{if(N.noglobstar===!0)return T;return`(${y}(?:(?!${j}${N.dot?K:z}).)*?)`},h=(N)=>{switch(N){case"*":return`${L}${W}${T}`;case".*":return`${z}${W}${T}`;case"*.*":return`${L}${T}${z}${W}${T}`;case"*/*":return`${L}${T}${V}${W}${I}${T}`;case"**":return L+g(q);case"**/*":return`(?:${L}${g(q)}${V})?${I}${W}${T}`;case"**/*.*":return`(?:${L}${g(q)}${V})?${I}${T}${z}${W}${T}`;case"**/.*":return`(?:${L}${g(q)}${V})?${z}${W}${T}`;default:{let P=/^(.*?)\.(\w+)$/.exec(N);if(!P)return;let A=h(P[1]);if(!A)return;return A+z+P[2]}}},u=w5.removePrefix(Z,_),E=h(u);if(E&&q.strictSlashes!==!0)E+=`${V}?`;return E};wj=IZ,Oj=GZ,Nj=Bj,n9=wj,_Z=c4,Rj=i4;f1.test=(Z,J,q,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=q||{},z=X.format||(Y?_Z.toPosixSlashes:null),V=Z===Q,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===Q;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=f1.matchBase(Z,J,q,Y);else V=J.exec(W);return{isMatch:Boolean(V),match:V,output:W}};f1.matchBase=(Z,J,q,Q=_Z.isWindows(q))=>{return(J instanceof RegExp?J:f1.makeRe(J,q)).test(Oj.basename(Z))};f1.isMatch=(Z,J,q)=>f1(J,q)(Z);f1.parse=(Z,J)=>{if(Array.isArray(Z))return Z.map((q)=>f1.parse(q,J));return n9(Z,{...J,fastpaths:!1})};f1.scan=(Z,J)=>Nj(Z,J);f1.compileRe=(Z,J,q=!1,Q=!1)=>{if(q===!0)return Z.output;let Y=J||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=f1.toRegex(V,J);if(Q===!0)W.state=Z;return W};f1.makeRe=(Z,J={},q=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(J.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=n9.fastpaths(Z,J);if(!Y.output)Y=n9(Z,J);return f1.compileRe(Y,J,q,Q)};f1.toRegex=(Z,J)=>{try{let q=J||{};return new RegExp(Z,q.flags||(q.nocase?"i":""))}catch(q){if(J&&J.debug===!0)throw q;return/$^/}};f1.constants=Rj;Ij=f1;(function(Z){Z.exports=Ij})(F2);yI=aU(F2.exports),e8={ArrayPattern(Z,J){for(let q of J.elements)if(q)e8[q.type](Z,q)},AssignmentPattern(Z,J){e8[J.left.type](Z,J.left)},Identifier(Z,J){Z.push(J.name)},MemberExpression(){},ObjectPattern(Z,J){for(let q of J.properties)if(q.type==="RestElement")e8.RestElement(Z,q);else e8[q.value.type](Z,q.value)},RestElement(Z,J){e8[J.argument.type](Z,J.argument)}},Aj=new Set(`${Dj} ${Tj}`.split(" "));Aj.add("");F0=new class extends B5{getLiteralValueAtPath(){return}},Z6={value:{hasEffectsWhenCalled:null,returns:Y1}},DZ=new class extends B5{getReturnExpressionWhenCalledAtPath(J){if(J.length===1)return w0(s9,J[0]);return Y1}hasEffectsOnInteractionAtPath(J,q,Q){if(q.type===E1)return J.length>1;if(q.type===P1&&J.length===1)return L0(s9,J[0],q,Q);return!0}},T8={value:{hasEffectsWhenCalled:null,returns:DZ}},U6=new class extends B5{getReturnExpressionWhenCalledAtPath(J){if(J.length===1)return w0(r9,J[0]);return Y1}hasEffectsOnInteractionAtPath(J,q,Q){if(q.type===E1)return J.length>1;if(q.type===P1&&J.length===1)return L0(r9,J[0],q,Q);return!0}},J6={value:{hasEffectsWhenCalled:null,returns:U6}},TZ=new class extends B5{getReturnExpressionWhenCalledAtPath(J){if(J.length===1)return w0(V0,J[0]);return Y1}hasEffectsOnInteractionAtPath(J,q,Q){if(q.type===E1)return J.length>1;if(q.type===P1&&J.length===1)return L0(V0,J[0],q,Q);return!0}},j1={value:{hasEffectsWhenCalled:null,returns:TZ}},FQ={value:{hasEffectsWhenCalled({args:Z},J){let q=Z[1];return Z.length<2||typeof q.getLiteralValueAtPath($1,r1,{deoptimizeCache(){}})==="symbol"&&q.hasEffectsOnInteractionAtPath($1,d4,J)},returns:TZ}},AZ=s4({hasOwnProperty:T8,isPrototypeOf:T8,propertyIsEnumerable:T8,toLocaleString:j1,toString:j1,valueOf:Z6}),s9=s4({valueOf:T8},AZ),r9=s4({toExponential:j1,toFixed:j1,toLocaleString:j1,toPrecision:j1,valueOf:J6},AZ),V0=s4({anchor:j1,at:Z6,big:j1,blink:j1,bold:j1,charAt:j1,charCodeAt:J6,codePointAt:Z6,concat:j1,endsWith:T8,fixed:j1,fontcolor:j1,fontsize:j1,includes:T8,indexOf:J6,italics:j1,lastIndexOf:J6,link:j1,localeCompare:J6,match:Z6,matchAll:Z6,normalize:j1,padEnd:j1,padStart:j1,repeat:j1,replace:FQ,replaceAll:FQ,search:J6,slice:j1,small:j1,split:Z6,startsWith:T8,strike:j1,sub:j1,substr:j1,substring:j1,sup:j1,toLocaleLowerCase:j1,toLocaleUpperCase:j1,toLowerCase:j1,toString:j1,toUpperCase:j1,trim:j1,trimEnd:j1,trimLeft:j1,trimRight:j1,trimStart:j1,valueOf:j1},AZ);a={};a.Program=a.BlockStatement=a.StaticBlock=function(Z,J,q){for(var Q=0,Y=Z.body;Q<Y.length;Q+=1){var X=Y[Q];q(X,J,"Statement")}};a.Statement=PZ;a.EmptyStatement=E8;a.ExpressionStatement=a.ParenthesizedExpression=a.ChainExpression=function(Z,J,q){return q(Z.expression,J,"Expression")};a.IfStatement=function(Z,J,q){if(q(Z.test,J,"Expression"),q(Z.consequent,J,"Statement"),Z.alternate)q(Z.alternate,J,"Statement")};a.LabeledStatement=function(Z,J,q){return q(Z.body,J,"Statement")};a.BreakStatement=a.ContinueStatement=E8;a.WithStatement=function(Z,J,q){q(Z.object,J,"Expression"),q(Z.body,J,"Statement")};a.SwitchStatement=function(Z,J,q){q(Z.discriminant,J,"Expression");for(var Q=0,Y=Z.cases;Q<Y.length;Q+=1){var X=Y[Q];if(X.test)q(X.test,J,"Expression");for(var z=0,V=X.consequent;z<V.length;z+=1){var W=V[z];q(W,J,"Statement")}}};a.SwitchCase=function(Z,J,q){if(Z.test)q(Z.test,J,"Expression");for(var Q=0,Y=Z.consequent;Q<Y.length;Q+=1){var X=Y[Q];q(X,J,"Statement")}};a.ReturnStatement=a.YieldExpression=a.AwaitExpression=function(Z,J,q){if(Z.argument)q(Z.argument,J,"Expression")};a.ThrowStatement=a.SpreadElement=function(Z,J,q){return q(Z.argument,J,"Expression")};a.TryStatement=function(Z,J,q){if(q(Z.block,J,"Statement"),Z.handler)q(Z.handler,J);if(Z.finalizer)q(Z.finalizer,J,"Statement")};a.CatchClause=function(Z,J,q){if(Z.param)q(Z.param,J,"Pattern");q(Z.body,J,"Statement")};a.WhileStatement=a.DoWhileStatement=function(Z,J,q){q(Z.test,J,"Expression"),q(Z.body,J,"Statement")};a.ForStatement=function(Z,J,q){if(Z.init)q(Z.init,J,"ForInit");if(Z.test)q(Z.test,J,"Expression");if(Z.update)q(Z.update,J,"Expression");q(Z.body,J,"Statement")};a.ForInStatement=a.ForOfStatement=function(Z,J,q){q(Z.left,J,"ForInit"),q(Z.right,J,"Expression"),q(Z.body,J,"Statement")};a.ForInit=function(Z,J,q){if(Z.type==="VariableDeclaration")q(Z,J);else q(Z,J,"Expression")};a.DebuggerStatement=E8;a.FunctionDeclaration=function(Z,J,q){return q(Z,J,"Function")};a.VariableDeclaration=function(Z,J,q){for(var Q=0,Y=Z.declarations;Q<Y.length;Q+=1){var X=Y[Q];q(X,J)}};a.VariableDeclarator=function(Z,J,q){if(q(Z.id,J,"Pattern"),Z.init)q(Z.init,J,"Expression")};a.Function=function(Z,J,q){if(Z.id)q(Z.id,J,"Pattern");for(var Q=0,Y=Z.params;Q<Y.length;Q+=1){var X=Y[Q];q(X,J,"Pattern")}q(Z.body,J,Z.expression?"Expression":"Statement")};a.Pattern=function(Z,J,q){if(Z.type==="Identifier")q(Z,J,"VariablePattern");else if(Z.type==="MemberExpression")q(Z,J,"MemberPattern");else q(Z,J)};a.VariablePattern=E8;a.MemberPattern=PZ;a.RestElement=function(Z,J,q){return q(Z.argument,J,"Pattern")};a.ArrayPattern=function(Z,J,q){for(var Q=0,Y=Z.elements;Q<Y.length;Q+=1){var X=Y[Q];if(X)q(X,J,"Pattern")}};a.ObjectPattern=function(Z,J,q){for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];if(X.type==="Property"){if(X.computed)q(X.key,J,"Expression");q(X.value,J,"Pattern")}else if(X.type==="RestElement")q(X.argument,J,"Pattern")}};a.Expression=PZ;a.ThisExpression=a.Super=a.MetaProperty=E8;a.ArrayExpression=function(Z,J,q){for(var Q=0,Y=Z.elements;Q<Y.length;Q+=1){var X=Y[Q];if(X)q(X,J,"Expression")}};a.ObjectExpression=function(Z,J,q){for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];q(X,J)}};a.FunctionExpression=a.ArrowFunctionExpression=a.FunctionDeclaration;a.SequenceExpression=function(Z,J,q){for(var Q=0,Y=Z.expressions;Q<Y.length;Q+=1){var X=Y[Q];q(X,J,"Expression")}};a.TemplateLiteral=function(Z,J,q){for(var Q=0,Y=Z.quasis;Q<Y.length;Q+=1){var X=Y[Q];q(X,J)}for(var z=0,V=Z.expressions;z<V.length;z+=1){var W=V[z];q(W,J,"Expression")}};a.TemplateElement=E8;a.UnaryExpression=a.UpdateExpression=function(Z,J,q){q(Z.argument,J,"Expression")};a.BinaryExpression=a.LogicalExpression=function(Z,J,q){q(Z.left,J,"Expression"),q(Z.right,J,"Expression")};a.AssignmentExpression=a.AssignmentPattern=function(Z,J,q){q(Z.left,J,"Pattern"),q(Z.right,J,"Expression")};a.ConditionalExpression=function(Z,J,q){q(Z.test,J,"Expression"),q(Z.consequent,J,"Expression"),q(Z.alternate,J,"Expression")};a.NewExpression=a.CallExpression=function(Z,J,q){if(q(Z.callee,J,"Expression"),Z.arguments)for(var Q=0,Y=Z.arguments;Q<Y.length;Q+=1){var X=Y[Q];q(X,J,"Expression")}};a.MemberExpression=function(Z,J,q){if(q(Z.object,J,"Expression"),Z.computed)q(Z.property,J,"Expression")};a.ExportNamedDeclaration=a.ExportDefaultDeclaration=function(Z,J,q){if(Z.declaration)q(Z.declaration,J,Z.type==="ExportNamedDeclaration"||Z.declaration.id?"Statement":"Expression");if(Z.source)q(Z.source,J,"Expression")};a.ExportAllDeclaration=function(Z,J,q){if(Z.exported)q(Z.exported,J);q(Z.source,J,"Expression")};a.ImportDeclaration=function(Z,J,q){for(var Q=0,Y=Z.specifiers;Q<Y.length;Q+=1){var X=Y[Q];q(X,J)}q(Z.source,J,"Expression")};a.ImportExpression=function(Z,J,q){q(Z.source,J,"Expression")};a.ImportSpecifier=a.ImportDefaultSpecifier=a.ImportNamespaceSpecifier=a.Identifier=a.PrivateIdentifier=a.Literal=E8;a.TaggedTemplateExpression=function(Z,J,q){q(Z.tag,J,"Expression"),q(Z.quasi,J,"Expression")};a.ClassDeclaration=a.ClassExpression=function(Z,J,q){return q(Z,J,"Class")};a.Class=function(Z,J,q){if(Z.id)q(Z.id,J,"Pattern");if(Z.superClass)q(Z.superClass,J,"Expression");q(Z.body,J)};a.ClassBody=function(Z,J,q){for(var Q=0,Y=Z.body;Q<Y.length;Q+=1){var X=Y[Q];q(X,J)}};a.MethodDefinition=a.PropertyDefinition=a.Property=function(Z,J,q){if(Z.computed)q(Z.key,J,"Expression");if(Z.value)q(Z.value,J,"Expression")};SZ+="ppingURL";uj=new RegExp(`^#${mj}+${SZ}=.+`);dj=/[^\s(]/g,A9=/\S/g;cj=/[@#]__PURE__/;o9={Literal:[],Program:["body"]};Z1=class Z1 extends B5{constructor(Z,J,q){super();this.deoptimized=!1,this.esTreeNode=Z,this.keys=o9[Z.type]||ij(Z),this.parent=J,this.context=J.context,this.createScope(q),this.parseNode(Z),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}addExportedVariables(Z,J){}bind(){for(let Z of this.keys){let J=this[Z];if(J===null)continue;if(Array.isArray(J))for(let q of J)q===null||q===void 0||q.bind();else J.bind()}}createScope(Z){this.scope=Z}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();for(let J of this.keys){let q=this[J];if(q===null)continue;if(Array.isArray(q)){for(let Q of q)if(Q===null||Q===void 0?void 0:Q.hasEffects(Z))return!0}else if(q.hasEffects(Z))return!0}return!1}hasEffectsAsAssignmentTarget(Z,J){return this.hasEffects(Z)||this.hasEffectsOnInteractionAtPath($1,this.assignmentInteraction,Z)}include(Z,J,q){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0;for(let Q of this.keys){let Y=this[Q];if(Y===null)continue;if(Array.isArray(Y))for(let X of Y)X===null||X===void 0||X.include(Z,J);else Y.include(Z,J)}}includeAsAssignmentTarget(Z,J,q){this.include(Z,J)}initialise(){}insertSemicolon(Z){if(Z.original[this.end-1]!==";")Z.appendLeft(this.end,";")}parseNode(Z){for(let[J,q]of Object.entries(Z)){if(this.hasOwnProperty(J))continue;if(J.charCodeAt(0)===95){if(J===T2)this.annotations=q;else if(J===A2)for(let{start:Q,end:Y}of q)this.context.magicString.remove(Q,Y)}else if(typeof q!=="object"||q===null)this[J]=q;else if(Array.isArray(q)){this[J]=[];for(let Q of q)this[J].push(Q===null?null:new(this.context.getNodeConstructor(Q.type))(Q,this,this.scope))}else this[J]=new(this.context.getNodeConstructor(q.type))(q,this,this.scope)}}render(Z,J){for(let q of this.keys){let Q=this[q];if(Q===null)continue;if(Array.isArray(Q))for(let Y of Q)Y===null||Y===void 0||Y.render(Z,J);else Q.render(Z,J)}}setAssignedValue(Z){this.assignmentInteraction={args:[Z],thisArg:null,type:h5}}shouldBeIncluded(Z){return this.included||!Z.brokenFlow&&this.hasEffects(a4())}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.keys){let J=this[Z];if(J===null)continue;if(Array.isArray(J))for(let q of J)q===null||q===void 0||q.deoptimizePath(D1);else J.deoptimizePath(D1)}this.context.requestTreeshakingPass()}};z6=class z6 extends Z1{deoptimizeThisOnInteractionAtPath(Z,J,q){if(J.length>0)this.argument.deoptimizeThisOnInteractionAtPath(Z,[d1,...J],q)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();let{propertyReadSideEffects:J}=this.context.options.treeshake;return this.argument.hasEffects(Z)||J&&(J==="always"||this.argument.hasEffectsOnInteractionAtPath(D1,LZ,Z))}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([d1,d1]),this.context.requestTreeshakingPass()}};Z5=class Z5 extends B5{constructor(Z){super();this.description=Z}deoptimizeThisOnInteractionAtPath({type:Z,thisArg:J},q){if(Z===P1&&q.length===0&&this.description.mutatesSelfAsArray)J.deoptimizePath(c9)}getReturnExpressionWhenCalledAtPath(Z,{thisArg:J}){if(Z.length>0)return Y1;return this.description.returnsPrimitive||(this.description.returns==="self"?J||Y1:this.description.returns())}hasEffectsOnInteractionAtPath(Z,J,q){var Q,Y;let{type:X}=J;if(Z.length>(X===E1?1:0))return!0;if(X===P1){if(this.description.mutatesSelfAsArray===!0&&((Q=J.thisArg)===null||Q===void 0?void 0:Q.hasEffectsOnInteractionAtPath(c9,wZ,q)))return!0;if(this.description.callsArgs){for(let z of this.description.callsArgs)if((Y=J.args[z])===null||Y===void 0?void 0:Y.hasEffectsOnInteractionAtPath($1,d4,q))return!0}}return!1}};H4=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:DZ})],t6=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:TZ})],LQ=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:U6})],y2=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Y1})],p6=/^\d+$/;V5=class V5 extends B5{constructor(Z,J,q=!1){super();if(this.prototypeExpression=J,this.immutable=q,this.allProperties=[],this.deoptimizedPaths=Object.create(null),this.expressionsToBeDeoptimizedByKey=Object.create(null),this.gettersByKey=Object.create(null),this.hasLostTrack=!1,this.hasUnknownDeoptimizedInteger=!1,this.hasUnknownDeoptimizedProperty=!1,this.propertiesAndGettersByKey=Object.create(null),this.propertiesAndSettersByKey=Object.create(null),this.settersByKey=Object.create(null),this.thisParametersToBeDeoptimized=new Set,this.unknownIntegerProps=[],this.unmatchableGetters=[],this.unmatchablePropertiesAndGetters=[],this.unmatchableSetters=[],Array.isArray(Z))this.buildPropertyMaps(Z);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=Z;for(let Q of Object.values(Z))this.allProperties.push(...Q)}}deoptimizeAllProperties(Z){var J;let q=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(Z)this.hasUnknownDeoptimizedProperty=!0;else this.hasLostTrack=!0;if(q)return;for(let Q of Object.values(this.propertiesAndGettersByKey).concat(Object.values(this.settersByKey)))for(let Y of Q)Y.deoptimizePath(D1);(J=this.prototypeExpression)===null||J===void 0||J.deoptimizePath([d1,d1]),this.deoptimizeCachedEntities()}deoptimizeIntegerProperties(){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)return;this.hasUnknownDeoptimizedInteger=!0;for(let[Z,J]of Object.entries(this.propertiesAndGettersByKey))if(p6.test(Z))for(let q of J)q.deoptimizePath(D1);this.deoptimizeCachedIntegerEntities()}deoptimizePath(Z){var J;if(this.hasLostTrack||this.immutable)return;let q=Z[0];if(Z.length===1){if(typeof q!=="string"){if(q===Q0)return this.deoptimizeIntegerProperties();return this.deoptimizeAllProperties(q===C4)}if(!this.deoptimizedPaths[q]){this.deoptimizedPaths[q]=!0;let Y=this.expressionsToBeDeoptimizedByKey[q];if(Y)for(let X of Y)X.deoptimizeCache()}}let Q=Z.length===1?D1:Z.slice(1);for(let Y of typeof q==="string"?(this.propertiesAndGettersByKey[q]||this.unmatchablePropertiesAndGetters).concat(this.settersByKey[q]||this.unmatchableSetters):this.allProperties)Y.deoptimizePath(Q);(J=this.prototypeExpression)===null||J===void 0||J.deoptimizePath(Z.length===1?[...Z,d1]:Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){var Q;let[Y,...X]=J;if(this.hasLostTrack||(Z.type===P1||J.length>1)&&(this.hasUnknownDeoptimizedProperty||typeof Y==="string"&&this.deoptimizedPaths[Y])){Z.thisArg.deoptimizePath(D1);return}let[z,V,W]=Z.type===P1||J.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:Z.type===E1?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof Y==="string"){if(z[Y]){let K=V[Y];if(K)for(let $ of K)$.deoptimizeThisOnInteractionAtPath(Z,X,q);if(!this.immutable)this.thisParametersToBeDeoptimized.add(Z.thisArg);return}for(let K of W)K.deoptimizeThisOnInteractionAtPath(Z,X,q);if(p6.test(Y))for(let K of this.unknownIntegerProps)K.deoptimizeThisOnInteractionAtPath(Z,X,q)}else{for(let K of Object.values(V).concat([W]))for(let $ of K)$.deoptimizeThisOnInteractionAtPath(Z,X,q);for(let K of this.unknownIntegerProps)K.deoptimizeThisOnInteractionAtPath(Z,X,q)}if(!this.immutable)this.thisParametersToBeDeoptimized.add(Z.thisArg);(Q=this.prototypeExpression)===null||Q===void 0||Q.deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){if(Z.length===0)return j2;let Q=Z[0],Y=this.getMemberExpressionAndTrackDeopt(Q,q);if(Y)return Y.getLiteralValueAtPath(Z.slice(1),J,q);if(this.prototypeExpression)return this.prototypeExpression.getLiteralValueAtPath(Z,J,q);if(Z.length===1)return;return x1}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){if(Z.length===0)return Y1;let[Y,...X]=Z,z=this.getMemberExpressionAndTrackDeopt(Y,Q);if(z)return z.getReturnExpressionWhenCalledAtPath(X,J,q,Q);if(this.prototypeExpression)return this.prototypeExpression.getReturnExpressionWhenCalledAtPath(Z,J,q,Q);return Y1}hasEffectsOnInteractionAtPath(Z,J,q){let[Q,...Y]=Z;if(Y.length||J.type===P1){let W=this.getMemberExpression(Q);if(W)return W.hasEffectsOnInteractionAtPath(Y,J,q);if(this.prototypeExpression)return this.prototypeExpression.hasEffectsOnInteractionAtPath(Z,J,q);return!0}if(Q===C4)return!1;if(this.hasLostTrack)return!0;let[X,z,V]=J.type===E1?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof Q==="string"){if(X[Q]){let W=z[Q];if(W){for(let K of W)if(K.hasEffectsOnInteractionAtPath(Y,J,q))return!0}return!1}for(let W of V)if(W.hasEffectsOnInteractionAtPath(Y,J,q))return!0}else for(let W of Object.values(z).concat([V]))for(let K of W)if(K.hasEffectsOnInteractionAtPath(Y,J,q))return!0;if(this.prototypeExpression)return this.prototypeExpression.hasEffectsOnInteractionAtPath(Z,J,q);return!1}buildPropertyMaps(Z){let{allProperties:J,propertiesAndGettersByKey:q,propertiesAndSettersByKey:Q,settersByKey:Y,gettersByKey:X,unknownIntegerProps:z,unmatchablePropertiesAndGetters:V,unmatchableGetters:W,unmatchableSetters:K}=this,$=[];for(let H=Z.length-1;H>=0;H--){let{key:M,kind:O,property:j}=Z[H];if(J.push(j),typeof M!=="string"){if(M===Q0){z.push(j);continue}if(O==="set")K.push(j);if(O==="get")W.push(j);if(O!=="get")$.push(j);if(O!=="set")V.push(j)}else if(O==="set"){if(!Q[M])Q[M]=[j,...$],Y[M]=[j,...K]}else if(O==="get"){if(!q[M])q[M]=[j,...V],X[M]=[j,...W]}else{if(!Q[M])Q[M]=[j,...$];if(!q[M])q[M]=[j,...V]}}}deoptimizeCachedEntities(){for(let Z of Object.values(this.expressionsToBeDeoptimizedByKey))for(let J of Z)J.deoptimizeCache();for(let Z of this.thisParametersToBeDeoptimized)Z.deoptimizePath(D1)}deoptimizeCachedIntegerEntities(){for(let[Z,J]of Object.entries(this.expressionsToBeDeoptimizedByKey))if(p6.test(Z))for(let q of J)q.deoptimizeCache();for(let Z of this.thisParametersToBeDeoptimized)Z.deoptimizePath(c9)}getMemberExpression(Z){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||typeof Z!=="string"||this.hasUnknownDeoptimizedInteger&&p6.test(Z)||this.deoptimizedPaths[Z])return Y1;let J=this.propertiesAndGettersByKey[Z];if((J===null||J===void 0?void 0:J.length)===1)return J[0];if(J||this.unmatchablePropertiesAndGetters.length>0||this.unknownIntegerProps.length&&p6.test(Z))return Y1;return null}getMemberExpressionAndTrackDeopt(Z,J){if(typeof Z!=="string")return Y1;let q=this.getMemberExpression(Z);if(!(q===Y1||this.immutable))(this.expressionsToBeDeoptimizedByKey[Z]=this.expressionsToBeDeoptimizedByKey[Z]||[]).push(J);return q}};nj=new class extends B5{deoptimizeThisOnInteractionAtPath({type:J,thisArg:q},Q){if(J===P1&&Q.length===1&&!wQ(Q[0]))q.deoptimizePath(D1)}getLiteralValueAtPath(J){return J.length===1&&wQ(J[0])?void 0:x1}hasEffectsOnInteractionAtPath(J,{type:q}){return J.length>1||q===P1}},Y8=new V5({__proto__:null,hasOwnProperty:H4,isPrototypeOf:H4,propertyIsEnumerable:H4,toLocaleString:t6,toString:t6,valueOf:y2},nj,!0),yZ=[{key:Q0,kind:"init",property:Y1},{key:"length",kind:"init",property:U6}],OQ=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:DZ})],NQ=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:U6})],aj=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:()=>new V5(yZ,r4),returnsPrimitive:null})],V4=[new Z5({callsArgs:null,mutatesSelfAsArray:"deopt-only",returns:()=>new V5(yZ,r4),returnsPrimitive:null})],P9=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:()=>new V5(yZ,r4),returnsPrimitive:null})],RQ=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:U6})],CQ=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Y1})],IQ=[new Z5({callsArgs:null,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Y1})],R8=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Y1})],S9=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],sj=[new Z5({callsArgs:[0],mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],r4=new V5({__proto__:null,at:IQ,concat:V4,copyWithin:S9,entries:V4,every:OQ,fill:S9,filter:P9,find:R8,findIndex:NQ,findLast:R8,findLastIndex:NQ,flat:V4,flatMap:P9,forEach:R8,group:R8,groupToMap:R8,includes:H4,indexOf:LQ,join:t6,keys:y2,lastIndexOf:LQ,map:P9,pop:CQ,push:RQ,reduce:R8,reduceRight:R8,reverse:S9,shift:CQ,slice:V4,some:OQ,sort:sj,splice:aj,toLocaleString:t6,toString:t6,unshift:RQ,values:IQ},Y8,!0);E2=class E2 extends Z1{constructor(){super(...arguments);this.objectEntity=null}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getObjectEntity().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffectsOnInteractionAtPath(Z,J,q){return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,J,q)}applyDeoptimizations(){this.deoptimized=!0;let Z=!1;for(let J=0;J<this.elements.length;J++){let q=this.elements[J];if(q){if(Z||q instanceof z6)Z=!0,q.deoptimizePath(D1)}}this.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=[{key:"length",kind:"init",property:U6}],J=!1;for(let q=0;q<this.elements.length;q++){let Q=this.elements[q];if(J||Q instanceof z6){if(Q)J=!0,Z.unshift({key:Q0,kind:"init",property:Q})}else if(!Q)Z.push({key:String(q),kind:"init",property:F0});else Z.push({key:String(q),kind:"init",property:Q})}return this.objectEntity=new V5(Z,r4)}};b2=class b2 extends Z1{addExportedVariables(Z,J){for(let q of this.elements)q===null||q===void 0||q.addExportedVariables(Z,J)}declare(Z){let J=[];for(let q of this.elements)if(q!==null)J.push(...q.declare(Z,Y1));return J}deoptimizePath(){for(let Z of this.elements)Z===null||Z===void 0||Z.deoptimizePath($1)}hasEffectsOnInteractionAtPath(Z,J,q){for(let Q of this.elements)if(Q===null||Q===void 0?void 0:Q.hasEffectsOnInteractionAtPath($1,J,q))return!0;return!1}markDeclarationReached(){for(let Z of this.elements)Z===null||Z===void 0||Z.markDeclarationReached()}};S5=class S5 extends $8{constructor(Z,J,q,Q){super(Z);this.calledFromTryStatement=!1,this.additionalInitializers=null,this.expressionsToBeDeoptimized=[],this.declarations=J?[J]:[],this.init=q,this.deoptimizationTracker=Q.deoptimizationTracker,this.module=Q.module}addDeclaration(Z,J){this.declarations.push(Z);let q=this.markInitializersForDeoptimization();if(J!==null)q.push(J)}consolidateInitializers(){if(this.additionalInitializers!==null){for(let Z of this.additionalInitializers)Z.deoptimizePath(D1);this.additionalInitializers=null}}deoptimizePath(Z){var J,q;if(this.isReassigned||this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;if(Z.length===0){if(!this.isReassigned){this.isReassigned=!0;let Q=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[];for(let Y of Q)Y.deoptimizeCache();(J=this.init)===null||J===void 0||J.deoptimizePath(D1)}}else(q=this.init)===null||q===void 0||q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){if(this.isReassigned||!this.init)return Z.thisArg.deoptimizePath(D1);q.withTrackedEntityAtPath(J,this.init,()=>this.init.deoptimizeThisOnInteractionAtPath(Z,J,q),void 0)}getLiteralValueAtPath(Z,J,q){if(this.isReassigned||!this.init)return x1;return J.withTrackedEntityAtPath(Z,this.init,()=>{return this.expressionsToBeDeoptimized.push(q),this.init.getLiteralValueAtPath(Z,J,q)},x1)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){if(this.isReassigned||!this.init)return Y1;return q.withTrackedEntityAtPath(Z,this.init,()=>{return this.expressionsToBeDeoptimized.push(Q),this.init.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)},Y1)}hasEffectsOnInteractionAtPath(Z,J,q){switch(J.type){case E1:if(this.isReassigned)return!0;return this.init&&!q.accessed.trackEntityAtPathAndGetIfTracked(Z,this)&&this.init.hasEffectsOnInteractionAtPath(Z,J,q);case h5:if(this.included)return!0;if(Z.length===0)return!1;if(this.isReassigned)return!0;return this.init&&!q.assigned.trackEntityAtPathAndGetIfTracked(Z,this)&&this.init.hasEffectsOnInteractionAtPath(Z,J,q);case P1:if(this.isReassigned)return!0;return this.init&&!(J.withNew?q.instantiated:q.called).trackEntityAtPathAndGetIfTracked(Z,J.args,this)&&this.init.hasEffectsOnInteractionAtPath(Z,J,q)}}include(){if(!this.included){this.included=!0;for(let Z of this.declarations){if(!Z.included)Z.include(a9(),!1);let J=Z.parent;while(!J.included){if(J.included=!0,J.type===A4)break;J=J.parent}}}}includeCallArguments(Z,J){if(this.isReassigned||this.init&&Z.includedCallArguments.has(this.init))for(let q of J)q.include(Z,!1);else if(this.init)Z.includedCallArguments.add(this.init),this.init.includeCallArguments(Z,J),Z.includedCallArguments.delete(this.init)}markCalledFromTryStatement(){this.calledFromTryStatement=!0}markInitializersForDeoptimization(){if(this.additionalInitializers===null)this.additionalInitializers=this.init===null?[]:[this.init],this.init=Y1,this.isReassigned=!0;return this.additionalInitializers}};P5=class P5 extends EZ{constructor(Z){super();this.accessedOutsideVariables=new Map,this.parent=Z,Z.children.push(this)}addAccessedDynamicImport(Z){if((this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(Z),this.parent instanceof P5)this.parent.addAccessedDynamicImport(Z)}addAccessedGlobals(Z,J){let q=J.get(this)||new Set;for(let Q of Z)q.add(Q);if(J.set(this,q),this.parent instanceof P5)this.parent.addAccessedGlobals(Z,J)}addNamespaceMemberAccess(Z,J){this.accessedOutsideVariables.set(Z,J),this.parent.addNamespaceMemberAccess(Z,J)}addReturnExpression(Z){this.parent instanceof P5&&this.parent.addReturnExpression(Z)}addUsedOutsideNames(Z,J,q,Q){for(let X of this.accessedOutsideVariables.values())if(X.included){if(Z.add(X.getBaseVariableName()),J==="system"&&q.has(X))Z.add("exports")}let Y=Q.get(this);if(Y)for(let X of Y)Z.add(X)}contains(Z){return this.variables.has(Z)||this.parent.contains(Z)}deconflict(Z,J,q){let Q=new Set;if(this.addUsedOutsideNames(Q,Z,J,q),this.accessedDynamicImports){for(let Y of this.accessedDynamicImports)if(Y.inlineNamespace)Q.add(Y.inlineNamespace.getBaseVariableName())}for(let[Y,X]of this.variables)if(X.included||X.alwaysRendered)X.setRenderNames(null,k5(Y,Q));for(let Y of this.children)Y.deconflict(Z,J,q)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findVariable(Z){let J=this.variables.get(Z)||this.accessedOutsideVariables.get(Z);if(J)return J;let q=this.parent.findVariable(Z);return this.accessedOutsideVariables.set(Z,q),q}};bZ=class bZ extends P5{constructor(Z,J){super(Z);this.parameters=[],this.hasRest=!1,this.context=J,this.hoistedBodyVarScope=new P5(this)}addParameterDeclaration(Z){let J=Z.name,q=this.hoistedBodyVarScope.variables.get(J);if(q)q.addDeclaration(Z,null);else q=new S5(J,Z,Y1,this.context);return this.variables.set(J,q),q}addParameterVariables(Z,J){this.parameters=Z;for(let q of Z)for(let Q of q)Q.alwaysRendered=!0;this.hasRest=J}includeCallArguments(Z,J){let q=!1,Q=!1,Y=this.hasRest&&this.parameters[this.parameters.length-1];for(let X of J)if(X instanceof z6){for(let z of J)z.include(Z,!1);break}for(let X=J.length-1;X>=0;X--){let z=this.parameters[X]||Y,V=J[X];if(z)if(q=!1,z.length===0)Q=!0;else for(let W of z){if(W.included)Q=!0;if(W.calledFromTryStatement)q=!0}if(!Q&&V.shouldBeIncluded(Z))Q=!0;if(Q)V.include(Z,q)}}};xZ=class xZ extends bZ{constructor(){super(...arguments);this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(Z){this.returnExpressions.push(Z)}getReturnExpression(){if(this.returnExpression===null)this.updateReturnExpression();return this.returnExpression}updateReturnExpression(){if(this.returnExpressions.length===1)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=Y1;for(let Z of this.returnExpressions)Z.deoptimizePath(D1)}}};u1=Symbol("Value Properties"),x5={hasEffectsWhenCalled(){return!1}},C8={hasEffectsWhenCalled(){return!0}},l={__proto__:null,[u1]:C8},r={__proto__:null,[u1]:x5},DQ={__proto__:null,[u1]:{hasEffectsWhenCalled({args:Z},J){return!Z.length||Z[0].hasEffectsOnInteractionAtPath(ZU,wZ,J)}}},U={__proto__:null,[u1]:C8,prototype:l},Q5={__proto__:null,[u1]:x5,prototype:l},c5={__proto__:null,[u1]:x5,from:r,of:r,prototype:l},r8={__proto__:null,[u1]:x5,supportedLocalesOf:Q5},e9={global:l,globalThis:l,self:l,window:l,__proto__:null,[u1]:C8,Array:{__proto__:null,[u1]:C8,from:l,isArray:r,of:r,prototype:l},ArrayBuffer:{__proto__:null,[u1]:x5,isView:r,prototype:l},Atomics:l,BigInt:U,BigInt64Array:U,BigUint64Array:U,Boolean:Q5,constructor:U,DataView:Q5,Date:{__proto__:null,[u1]:x5,now:r,parse:r,prototype:l,UTC:r},decodeURI:r,decodeURIComponent:r,encodeURI:r,encodeURIComponent:r,Error:Q5,escape:r,eval:l,EvalError:Q5,Float32Array:c5,Float64Array:c5,Function:U,hasOwnProperty:l,Infinity:l,Int16Array:c5,Int32Array:c5,Int8Array:c5,isFinite:r,isNaN:r,isPrototypeOf:l,JSON:l,Map:Q5,Math:{__proto__:null,[u1]:C8,abs:r,acos:r,acosh:r,asin:r,asinh:r,atan:r,atan2:r,atanh:r,cbrt:r,ceil:r,clz32:r,cos:r,cosh:r,exp:r,expm1:r,floor:r,fround:r,hypot:r,imul:r,log:r,log10:r,log1p:r,log2:r,max:r,min:r,pow:r,random:r,round:r,sign:r,sin:r,sinh:r,sqrt:r,tan:r,tanh:r,trunc:r},NaN:l,Number:{__proto__:null,[u1]:x5,isFinite:r,isInteger:r,isNaN:r,isSafeInteger:r,parseFloat:r,parseInt:r,prototype:l},Object:{__proto__:null,[u1]:x5,create:r,defineProperty:DQ,defineProperties:DQ,getOwnPropertyDescriptor:r,getOwnPropertyNames:r,getOwnPropertySymbols:r,getPrototypeOf:r,hasOwn:r,is:r,isExtensible:r,isFrozen:r,isSealed:r,keys:r,fromEntries:r,entries:r,prototype:l},parseFloat:r,parseInt:r,Promise:{__proto__:null,[u1]:C8,all:l,prototype:l,race:l,reject:l,resolve:l},propertyIsEnumerable:l,Proxy:l,RangeError:Q5,ReferenceError:Q5,Reflect:l,RegExp:Q5,Set:Q5,SharedArrayBuffer:U,String:{__proto__:null,[u1]:x5,fromCharCode:r,fromCodePoint:r,prototype:l,raw:r},Symbol:{__proto__:null,[u1]:x5,for:r,keyFor:r,prototype:l},SyntaxError:Q5,toLocaleString:l,toString:l,TypeError:Q5,Uint16Array:c5,Uint32Array:c5,Uint8Array:c5,Uint8ClampedArray:c5,unescape:r,URIError:Q5,valueOf:l,WeakMap:Q5,WeakSet:Q5,clearInterval:U,clearTimeout:U,console:l,Intl:{__proto__:null,[u1]:C8,Collator:r8,DateTimeFormat:r8,ListFormat:r8,NumberFormat:r8,PluralRules:r8,RelativeTimeFormat:r8},setInterval:U,setTimeout:U,TextDecoder:U,TextEncoder:U,URL:U,URLSearchParams:U,AbortController:U,AbortSignal:U,addEventListener:l,alert:l,AnalyserNode:U,Animation:U,AnimationEvent:U,applicationCache:l,ApplicationCache:U,ApplicationCacheErrorEvent:U,atob:l,Attr:U,Audio:U,AudioBuffer:U,AudioBufferSourceNode:U,AudioContext:U,AudioDestinationNode:U,AudioListener:U,AudioNode:U,AudioParam:U,AudioProcessingEvent:U,AudioScheduledSourceNode:U,AudioWorkletNode:U,BarProp:U,BaseAudioContext:U,BatteryManager:U,BeforeUnloadEvent:U,BiquadFilterNode:U,Blob:U,BlobEvent:U,blur:l,BroadcastChannel:U,btoa:l,ByteLengthQueuingStrategy:U,Cache:U,caches:l,CacheStorage:U,cancelAnimationFrame:l,cancelIdleCallback:l,CanvasCaptureMediaStreamTrack:U,CanvasGradient:U,CanvasPattern:U,CanvasRenderingContext2D:U,ChannelMergerNode:U,ChannelSplitterNode:U,CharacterData:U,clientInformation:l,ClipboardEvent:U,close:l,closed:l,CloseEvent:U,Comment:U,CompositionEvent:U,confirm:l,ConstantSourceNode:U,ConvolverNode:U,CountQueuingStrategy:U,createImageBitmap:l,Credential:U,CredentialsContainer:U,crypto:l,Crypto:U,CryptoKey:U,CSS:U,CSSConditionRule:U,CSSFontFaceRule:U,CSSGroupingRule:U,CSSImportRule:U,CSSKeyframeRule:U,CSSKeyframesRule:U,CSSMediaRule:U,CSSNamespaceRule:U,CSSPageRule:U,CSSRule:U,CSSRuleList:U,CSSStyleDeclaration:U,CSSStyleRule:U,CSSStyleSheet:U,CSSSupportsRule:U,CustomElementRegistry:U,customElements:l,CustomEvent:U,DataTransfer:U,DataTransferItem:U,DataTransferItemList:U,defaultstatus:l,defaultStatus:l,DelayNode:U,DeviceMotionEvent:U,DeviceOrientationEvent:U,devicePixelRatio:l,dispatchEvent:l,document:l,Document:U,DocumentFragment:U,DocumentType:U,DOMError:U,DOMException:U,DOMImplementation:U,DOMMatrix:U,DOMMatrixReadOnly:U,DOMParser:U,DOMPoint:U,DOMPointReadOnly:U,DOMQuad:U,DOMRect:U,DOMRectReadOnly:U,DOMStringList:U,DOMStringMap:U,DOMTokenList:U,DragEvent:U,DynamicsCompressorNode:U,Element:U,ErrorEvent:U,Event:U,EventSource:U,EventTarget:U,external:l,fetch:l,File:U,FileList:U,FileReader:U,find:l,focus:l,FocusEvent:U,FontFace:U,FontFaceSetLoadEvent:U,FormData:U,frames:l,GainNode:U,Gamepad:U,GamepadButton:U,GamepadEvent:U,getComputedStyle:l,getSelection:l,HashChangeEvent:U,Headers:U,history:l,History:U,HTMLAllCollection:U,HTMLAnchorElement:U,HTMLAreaElement:U,HTMLAudioElement:U,HTMLBaseElement:U,HTMLBodyElement:U,HTMLBRElement:U,HTMLButtonElement:U,HTMLCanvasElement:U,HTMLCollection:U,HTMLContentElement:U,HTMLDataElement:U,HTMLDataListElement:U,HTMLDetailsElement:U,HTMLDialogElement:U,HTMLDirectoryElement:U,HTMLDivElement:U,HTMLDListElement:U,HTMLDocument:U,HTMLElement:U,HTMLEmbedElement:U,HTMLFieldSetElement:U,HTMLFontElement:U,HTMLFormControlsCollection:U,HTMLFormElement:U,HTMLFrameElement:U,HTMLFrameSetElement:U,HTMLHeadElement:U,HTMLHeadingElement:U,HTMLHRElement:U,HTMLHtmlElement:U,HTMLIFrameElement:U,HTMLImageElement:U,HTMLInputElement:U,HTMLLabelElement:U,HTMLLegendElement:U,HTMLLIElement:U,HTMLLinkElement:U,HTMLMapElement:U,HTMLMarqueeElement:U,HTMLMediaElement:U,HTMLMenuElement:U,HTMLMetaElement:U,HTMLMeterElement:U,HTMLModElement:U,HTMLObjectElement:U,HTMLOListElement:U,HTMLOptGroupElement:U,HTMLOptionElement:U,HTMLOptionsCollection:U,HTMLOutputElement:U,HTMLParagraphElement:U,HTMLParamElement:U,HTMLPictureElement:U,HTMLPreElement:U,HTMLProgressElement:U,HTMLQuoteElement:U,HTMLScriptElement:U,HTMLSelectElement:U,HTMLShadowElement:U,HTMLSlotElement:U,HTMLSourceElement:U,HTMLSpanElement:U,HTMLStyleElement:U,HTMLTableCaptionElement:U,HTMLTableCellElement:U,HTMLTableColElement:U,HTMLTableElement:U,HTMLTableRowElement:U,HTMLTableSectionElement:U,HTMLTemplateElement:U,HTMLTextAreaElement:U,HTMLTimeElement:U,HTMLTitleElement:U,HTMLTrackElement:U,HTMLUListElement:U,HTMLUnknownElement:U,HTMLVideoElement:U,IDBCursor:U,IDBCursorWithValue:U,IDBDatabase:U,IDBFactory:U,IDBIndex:U,IDBKeyRange:U,IDBObjectStore:U,IDBOpenDBRequest:U,IDBRequest:U,IDBTransaction:U,IDBVersionChangeEvent:U,IdleDeadline:U,IIRFilterNode:U,Image:U,ImageBitmap:U,ImageBitmapRenderingContext:U,ImageCapture:U,ImageData:U,indexedDB:l,innerHeight:l,innerWidth:l,InputEvent:U,IntersectionObserver:U,IntersectionObserverEntry:U,isSecureContext:l,KeyboardEvent:U,KeyframeEffect:U,length:l,localStorage:l,location:l,Location:U,locationbar:l,matchMedia:l,MediaDeviceInfo:U,MediaDevices:U,MediaElementAudioSourceNode:U,MediaEncryptedEvent:U,MediaError:U,MediaKeyMessageEvent:U,MediaKeySession:U,MediaKeyStatusMap:U,MediaKeySystemAccess:U,MediaList:U,MediaQueryList:U,MediaQueryListEvent:U,MediaRecorder:U,MediaSettingsRange:U,MediaSource:U,MediaStream:U,MediaStreamAudioDestinationNode:U,MediaStreamAudioSourceNode:U,MediaStreamEvent:U,MediaStreamTrack:U,MediaStreamTrackEvent:U,menubar:l,MessageChannel:U,MessageEvent:U,MessagePort:U,MIDIAccess:U,MIDIConnectionEvent:U,MIDIInput:U,MIDIInputMap:U,MIDIMessageEvent:U,MIDIOutput:U,MIDIOutputMap:U,MIDIPort:U,MimeType:U,MimeTypeArray:U,MouseEvent:U,moveBy:l,moveTo:l,MutationEvent:U,MutationObserver:U,MutationRecord:U,name:l,NamedNodeMap:U,NavigationPreloadManager:U,navigator:l,Navigator:U,NetworkInformation:U,Node:U,NodeFilter:l,NodeIterator:U,NodeList:U,Notification:U,OfflineAudioCompletionEvent:U,OfflineAudioContext:U,offscreenBuffering:l,OffscreenCanvas:U,open:l,openDatabase:l,Option:U,origin:l,OscillatorNode:U,outerHeight:l,outerWidth:l,PageTransitionEvent:U,pageXOffset:l,pageYOffset:l,PannerNode:U,parent:l,Path2D:U,PaymentAddress:U,PaymentRequest:U,PaymentRequestUpdateEvent:U,PaymentResponse:U,performance:l,Performance:U,PerformanceEntry:U,PerformanceLongTaskTiming:U,PerformanceMark:U,PerformanceMeasure:U,PerformanceNavigation:U,PerformanceNavigationTiming:U,PerformanceObserver:U,PerformanceObserverEntryList:U,PerformancePaintTiming:U,PerformanceResourceTiming:U,PerformanceTiming:U,PeriodicWave:U,Permissions:U,PermissionStatus:U,personalbar:l,PhotoCapabilities:U,Plugin:U,PluginArray:U,PointerEvent:U,PopStateEvent:U,postMessage:l,Presentation:U,PresentationAvailability:U,PresentationConnection:U,PresentationConnectionAvailableEvent:U,PresentationConnectionCloseEvent:U,PresentationConnectionList:U,PresentationReceiver:U,PresentationRequest:U,print:l,ProcessingInstruction:U,ProgressEvent:U,PromiseRejectionEvent:U,prompt:l,PushManager:U,PushSubscription:U,PushSubscriptionOptions:U,queueMicrotask:l,RadioNodeList:U,Range:U,ReadableStream:U,RemotePlayback:U,removeEventListener:l,Request:U,requestAnimationFrame:l,requestIdleCallback:l,resizeBy:l,ResizeObserver:U,ResizeObserverEntry:U,resizeTo:l,Response:U,RTCCertificate:U,RTCDataChannel:U,RTCDataChannelEvent:U,RTCDtlsTransport:U,RTCIceCandidate:U,RTCIceTransport:U,RTCPeerConnection:U,RTCPeerConnectionIceEvent:U,RTCRtpReceiver:U,RTCRtpSender:U,RTCSctpTransport:U,RTCSessionDescription:U,RTCStatsReport:U,RTCTrackEvent:U,screen:l,Screen:U,screenLeft:l,ScreenOrientation:U,screenTop:l,screenX:l,screenY:l,ScriptProcessorNode:U,scroll:l,scrollbars:l,scrollBy:l,scrollTo:l,scrollX:l,scrollY:l,SecurityPolicyViolationEvent:U,Selection:U,ServiceWorker:U,ServiceWorkerContainer:U,ServiceWorkerRegistration:U,sessionStorage:l,ShadowRoot:U,SharedWorker:U,SourceBuffer:U,SourceBufferList:U,speechSynthesis:l,SpeechSynthesisEvent:U,SpeechSynthesisUtterance:U,StaticRange:U,status:l,statusbar:l,StereoPannerNode:U,stop:l,Storage:U,StorageEvent:U,StorageManager:U,styleMedia:l,StyleSheet:U,StyleSheetList:U,SubtleCrypto:U,SVGAElement:U,SVGAngle:U,SVGAnimatedAngle:U,SVGAnimatedBoolean:U,SVGAnimatedEnumeration:U,SVGAnimatedInteger:U,SVGAnimatedLength:U,SVGAnimatedLengthList:U,SVGAnimatedNumber:U,SVGAnimatedNumberList:U,SVGAnimatedPreserveAspectRatio:U,SVGAnimatedRect:U,SVGAnimatedString:U,SVGAnimatedTransformList:U,SVGAnimateElement:U,SVGAnimateMotionElement:U,SVGAnimateTransformElement:U,SVGAnimationElement:U,SVGCircleElement:U,SVGClipPathElement:U,SVGComponentTransferFunctionElement:U,SVGDefsElement:U,SVGDescElement:U,SVGDiscardElement:U,SVGElement:U,SVGEllipseElement:U,SVGFEBlendElement:U,SVGFEColorMatrixElement:U,SVGFEComponentTransferElement:U,SVGFECompositeElement:U,SVGFEConvolveMatrixElement:U,SVGFEDiffuseLightingElement:U,SVGFEDisplacementMapElement:U,SVGFEDistantLightElement:U,SVGFEDropShadowElement:U,SVGFEFloodElement:U,SVGFEFuncAElement:U,SVGFEFuncBElement:U,SVGFEFuncGElement:U,SVGFEFuncRElement:U,SVGFEGaussianBlurElement:U,SVGFEImageElement:U,SVGFEMergeElement:U,SVGFEMergeNodeElement:U,SVGFEMorphologyElement:U,SVGFEOffsetElement:U,SVGFEPointLightElement:U,SVGFESpecularLightingElement:U,SVGFESpotLightElement:U,SVGFETileElement:U,SVGFETurbulenceElement:U,SVGFilterElement:U,SVGForeignObjectElement:U,SVGGElement:U,SVGGeometryElement:U,SVGGradientElement:U,SVGGraphicsElement:U,SVGImageElement:U,SVGLength:U,SVGLengthList:U,SVGLinearGradientElement:U,SVGLineElement:U,SVGMarkerElement:U,SVGMaskElement:U,SVGMatrix:U,SVGMetadataElement:U,SVGMPathElement:U,SVGNumber:U,SVGNumberList:U,SVGPathElement:U,SVGPatternElement:U,SVGPoint:U,SVGPointList:U,SVGPolygonElement:U,SVGPolylineElement:U,SVGPreserveAspectRatio:U,SVGRadialGradientElement:U,SVGRect:U,SVGRectElement:U,SVGScriptElement:U,SVGSetElement:U,SVGStopElement:U,SVGStringList:U,SVGStyleElement:U,SVGSVGElement:U,SVGSwitchElement:U,SVGSymbolElement:U,SVGTextContentElement:U,SVGTextElement:U,SVGTextPathElement:U,SVGTextPositioningElement:U,SVGTitleElement:U,SVGTransform:U,SVGTransformList:U,SVGTSpanElement:U,SVGUnitTypes:U,SVGUseElement:U,SVGViewElement:U,TaskAttributionTiming:U,Text:U,TextEvent:U,TextMetrics:U,TextTrack:U,TextTrackCue:U,TextTrackCueList:U,TextTrackList:U,TimeRanges:U,toolbar:l,top:l,Touch:U,TouchEvent:U,TouchList:U,TrackEvent:U,TransitionEvent:U,TreeWalker:U,UIEvent:U,ValidityState:U,visualViewport:l,VisualViewport:U,VTTCue:U,WaveShaperNode:U,WebAssembly:l,WebGL2RenderingContext:U,WebGLActiveInfo:U,WebGLBuffer:U,WebGLContextEvent:U,WebGLFramebuffer:U,WebGLProgram:U,WebGLQuery:U,WebGLRenderbuffer:U,WebGLRenderingContext:U,WebGLSampler:U,WebGLShader:U,WebGLShaderPrecisionFormat:U,WebGLSync:U,WebGLTexture:U,WebGLTransformFeedback:U,WebGLUniformLocation:U,WebGLVertexArrayObject:U,WebSocket:U,WheelEvent:U,Window:U,Worker:U,WritableStream:U,XMLDocument:U,XMLHttpRequest:U,XMLHttpRequestEventTarget:U,XMLHttpRequestUpload:U,XMLSerializer:U,XPathEvaluator:U,XPathExpression:U,XPathResult:U,XSLTProcessor:U};for(let Z of["window","global","self","globalThis"])e9[Z]=e9;o4=class o4 extends $8{constructor(){super(...arguments);this.isReassigned=!0}getLiteralValueAtPath(Z,J,q){return W4([this.name,...Z])?j2:x1}hasEffectsOnInteractionAtPath(Z,J,q){switch(J.type){case E1:if(Z.length===0)return this.name!=="undefined"&&!W4([this.name]);return!W4([this.name,...Z].slice(0,-1));case h5:return!0;case P1:{let Q=W4([this.name,...Z]);return!Q||Q.hasEffectsWhenCalled(J,q)}}}};oj={__proto__:null,class:!0,const:!0,let:!0,var:!0};l1=class l1 extends Z1{constructor(){super(...arguments);this.variable=null,this.isTDZAccess=null}addExportedVariables(Z,J){if(J.has(this.variable))Z.push(this.variable)}bind(){if(!this.variable&&x2(this,this.parent))this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)}declare(Z,J){let q,{treeshake:Q}=this.context.options;switch(Z){case"var":if(q=this.scope.addDeclaration(this,this.context,J,!0),Q&&Q.correctVarValueBeforeDeclaration)q.markInitializersForDeoptimization();break;case"function":q=this.scope.addDeclaration(this,this.context,J,!1);break;case"let":case"const":case"class":q=this.scope.addDeclaration(this,this.context,J,!1);break;case"parameter":q=this.scope.addParameterDeclaration(this);break;default:throw Error(`Internal Error: Unexpected identifier kind ${Z}.`)}return q.kind=Z,[this.variable=q]}deoptimizePath(Z){var J;if(Z.length===0&&!this.scope.contains(this.name))this.disallowImportReassignment();(J=this.variable)===null||J===void 0||J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.variable.deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getVariableRespectingTDZ().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();if(this.isPossibleTDZ()&&this.variable.kind!=="var")return!0;return this.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof o4&&this.variable.hasEffectsOnInteractionAtPath($1,LZ,Z)}hasEffectsOnInteractionAtPath(Z,J,q){switch(J.type){case E1:return this.variable!==null&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(Z,J,q);case h5:return(Z.length>0?this.getVariableRespectingTDZ():this.variable).hasEffectsOnInteractionAtPath(Z,J,q);case P1:return this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(Z,J,q)}}include(){if(!this.deoptimized)this.applyDeoptimizations();if(!this.included){if(this.included=!0,this.variable!==null)this.context.includeVariableInModule(this.variable)}}includeCallArguments(Z,J){this.variable.includeCallArguments(Z,J)}isPossibleTDZ(){if(this.isTDZAccess!==null)return this.isTDZAccess;if(!(this.variable instanceof S5)||!this.variable.kind||!(this.variable.kind in oj))return this.isTDZAccess=!1;let Z;if(this.variable.declarations&&this.variable.declarations.length===1&&(Z=this.variable.declarations[0])&&this.start<Z.start&&TQ(this)===TQ(Z))return this.isTDZAccess=!0;if(!this.variable.initReached)return this.isTDZAccess=!0;return this.isTDZAccess=!1}markDeclarationReached(){this.variable.initReached=!0}render(Z,{snippets:{getPropertyAccess:J}},{renderedParentType:q,isCalleeOfRenderedParent:Q,isShorthandProperty:Y}=n1){if(this.variable){let X=this.variable.getName(J);if(X!==this.name){if(Z.overwrite(this.start,this.end,X,{contentOnly:!0,storeName:!0}),Y)Z.prependRight(this.start,`${this.name}: `)}if(X==="eval"&&q===_2&&Q)Z.appendRight(this.start,"0, ")}}applyDeoptimizations(){if(this.deoptimized=!0,this.variable instanceof S5)this.variable.consolidateInitializers(),this.context.requestTreeshakingPass()}disallowImportReassignment(){return this.context.error({code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment to import '${this.name}'`},this.start)}getVariableRespectingTDZ(){if(this.isPossibleTDZ())return Y1;return this.variable}};A8={isNoStatement:!0};AQ=/\S/g;G8=class G8 extends P5{addDeclaration(Z,J,q,Q){if(Q){let Y=this.parent.addDeclaration(Z,J,q,Q);return Y.markInitializersForDeoptimization(),Y}else return super.addDeclaration(Z,J,q,!1)}};N0=class N0 extends Z1{initialise(){if(this.directive&&this.directive!=="use strict"&&this.parent.type===A4)this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(Z,J){if(super.render(Z,J),this.included)this.insertSemicolon(Z)}shouldBeIncluded(Z){if(this.directive&&this.directive!=="use strict")return this.parent.type!==A4;return super.shouldBeIncluded(Z)}applyDeoptimizations(){}};W0=class W0 extends Z1{constructor(){super(...arguments);this.directlyIncluded=!1}addImplicitReturnExpressionToScope(){let Z=this.body[this.body.length-1];if(!Z||Z.type!==hj)this.scope.addReturnExpression(Y1)}createScope(Z){this.scope=this.parent.preventChildBlockScope?Z:new G8(Z)}hasEffects(Z){if(this.deoptimizeBody)return!0;for(let J of this.body){if(Z.brokenFlow)break;if(J.hasEffects(Z))return!0}return!1}include(Z,J){if(!(this.deoptimizeBody&&this.directlyIncluded)){if(this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody)J=!0;for(let q of this.body)if(J||q.shouldBeIncluded(Z))q.include(Z,J)}}initialise(){let Z=this.body[0];this.deoptimizeBody=Z instanceof N0&&Z.directive==="use asm"}render(Z,J){if(this.body.length)O0(this.body,Z,this.start+1,this.end-1,J);else super.render(Z,J)}};fZ=class fZ extends Z1{constructor(){super(...arguments);this.declarationInit=null}addExportedVariables(Z,J){this.argument.addExportedVariables(Z,J)}declare(Z,J){return this.declarationInit=J,this.argument.declare(Z,Y1)}deoptimizePath(Z){Z.length===0&&this.argument.deoptimizePath($1)}hasEffectsOnInteractionAtPath(Z,J,q){return Z.length>0||this.argument.hasEffectsOnInteractionAtPath($1,J,q)}markDeclarationReached(){this.argument.markDeclarationReached()}applyDeoptimizations(){if(this.deoptimized=!0,this.declarationInit!==null)this.declarationInit.deoptimizePath([d1,d1]),this.context.requestTreeshakingPass()}};e4=class e4 extends Z1{constructor(){super(...arguments);this.objectEntity=null,this.deoptimizedReturn=!1}deoptimizePath(Z){if(this.getObjectEntity().deoptimizePath(Z),Z.length===1&&Z[0]===d1)this.scope.getReturnExpression().deoptimizePath(D1)}deoptimizeThisOnInteractionAtPath(Z,J,q){if(J.length>0)this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getObjectEntity().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){if(Z.length>0)return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,J,q,Q);if(this.async){if(!this.deoptimizedReturn)this.deoptimizedReturn=!0,this.scope.getReturnExpression().deoptimizePath(D1),this.context.requestTreeshakingPass();return Y1}return this.scope.getReturnExpression()}hasEffectsOnInteractionAtPath(Z,J,q){if(Z.length>0||J.type!==P1)return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,J,q);if(this.async){let{propertyReadSideEffects:Q}=this.context.options.treeshake,Y=this.scope.getReturnExpression();if(Y.hasEffectsOnInteractionAtPath(["then"],d4,q)||Q&&(Q==="always"||Y.hasEffectsOnInteractionAtPath(["then"],LZ,q)))return!0}for(let Q of this.params)if(Q.hasEffects(q))return!0;return!1}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0;let{brokenFlow:q}=Z;Z.brokenFlow=n4,this.body.include(Z,J),Z.brokenFlow=q}includeCallArguments(Z,J){this.scope.includeCallArguments(Z,J)}initialise(){if(this.scope.addParameterVariables(this.params.map((Z)=>Z.declare("parameter",Y1)),this.params[this.params.length-1]instanceof fZ),this.body instanceof W0)this.body.addImplicitReturnExpressionToScope();else this.scope.addReturnExpression(this.body)}parseNode(Z){if(Z.body.type===I2)this.body=new W0(Z.body,this,this.scope.hoistedBodyVarScope);super.parseNode(Z)}applyDeoptimizations(){}};e4.prototype.preventChildBlockScope=!0;vZ=class vZ extends e4{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new xZ(Z,this.context)}hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!1}hasEffectsOnInteractionAtPath(Z,J,q){if(super.hasEffectsOnInteractionAtPath(Z,J,q))return!0;if(J.type===P1){let{ignore:Q,brokenFlow:Y}=q;if(q.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0},this.body.hasEffects(q))return!0;q.ignore=Q,q.brokenFlow=Y}return!1}include(Z,J){super.include(Z,J);for(let q of this.params)if(!(q instanceof l1))q.include(Z,J)}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;return this.objectEntity=new V5([],Y8)}};gZ=class gZ extends Z1{addExportedVariables(Z,J){for(let q of this.properties)if(q.type===vj)q.value.addExportedVariables(Z,J);else q.argument.addExportedVariables(Z,J)}declare(Z,J){let q=[];for(let Q of this.properties)q.push(...Q.declare(Z,J));return q}deoptimizePath(Z){if(Z.length===0)for(let J of this.properties)J.deoptimizePath(Z)}hasEffectsOnInteractionAtPath(Z,J,q){for(let Q of this.properties)if(Q.hasEffectsOnInteractionAtPath($1,J,q))return!0;return!1}markDeclarationReached(){for(let Z of this.properties)Z.markDeclarationReached()}};h2=class h2 extends Z1{hasEffects(Z){let{deoptimized:J,left:q,right:Q}=this;if(!J)this.applyDeoptimizations();return Q.hasEffects(Z)||q.hasEffectsAsAssignmentTarget(Z,this.operator!=="=")}hasEffectsOnInteractionAtPath(Z,J,q){return this.right.hasEffectsOnInteractionAtPath(Z,J,q)}include(Z,J){let{deoptimized:q,left:Q,right:Y,operator:X}=this;if(!q)this.applyDeoptimizations();if(this.included=!0,J||X!=="="||Q.included||Q.hasEffectsAsAssignmentTarget(a4(),!1))Q.includeAsAssignmentTarget(Z,J,X!=="=");Y.include(Z,J)}initialise(){this.left.setAssignedValue(this.right)}render(Z,J,{preventASI:q,renderedParentType:Q,renderedSurroundingElement:Y}=n1){let{left:X,right:z,start:V,end:W,parent:K}=this;if(X.included)X.render(Z,J),z.render(Z,J);else{let $=W8(Z.original,o1(Z.original,"=",X.end)+1);if(Z.remove(V,$),q)t4(Z,$,z.start);z.render(Z,J,{renderedParentType:Q||K.type,renderedSurroundingElement:Y||K.type})}if(J.format==="system")if(X instanceof l1){let $=X.variable,H=J.exportNamesByVariable.get($);if(H){if(H.length===1)hZ($,V,W,Z,J);else v2($,V,W,K.type!==N5,Z,J);return}}else{let $=[];if(X.addExportedVariables($,J.exportNamesByVariable),$.length>0){tj($,V,W,Y===N5,Z,J);return}}if(X.included&&X instanceof gZ&&(Y===N5||Y===C2))Z.appendRight(V,"("),Z.prependLeft(W,")")}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.right.deoptimizePath(D1),this.context.requestTreeshakingPass()}};g2=class g2 extends Z1{addExportedVariables(Z,J){this.left.addExportedVariables(Z,J)}declare(Z,J){return this.left.declare(Z,J)}deoptimizePath(Z){Z.length===0&&this.left.deoptimizePath(Z)}hasEffectsOnInteractionAtPath(Z,J,q){return Z.length>0||this.left.hasEffectsOnInteractionAtPath($1,J,q)}markDeclarationReached(){this.left.markDeclarationReached()}render(Z,J,{isShorthandProperty:q}=n1){this.left.render(Z,J,{isShorthandProperty:q}),this.right.render(Z,J)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.right.deoptimizePath(D1),this.context.requestTreeshakingPass()}};m2=class m2 extends S5{constructor(Z){super("arguments",null,Y1,Z)}hasEffectsOnInteractionAtPath(Z,{type:J}){return J!==E1||Z.length>1}};mZ=class mZ extends S5{constructor(Z){super("this",null,null,Z);this.deoptimizedPaths=[],this.entitiesToBeDeoptimized=new Set,this.thisDeoptimizationList=[],this.thisDeoptimizations=new I4}addEntityToBeDeoptimized(Z){for(let J of this.deoptimizedPaths)Z.deoptimizePath(J);for(let{interaction:J,path:q}of this.thisDeoptimizationList)Z.deoptimizeThisOnInteractionAtPath(J,q,r1);this.entitiesToBeDeoptimized.add(Z)}deoptimizePath(Z){if(Z.length===0||this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;this.deoptimizedPaths.push(Z);for(let J of this.entitiesToBeDeoptimized)J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J){let q={interaction:Z,path:J};if(!this.thisDeoptimizations.trackEntityAtPathAndGetIfTracked(J,Z.type,Z.thisArg)){for(let Q of this.entitiesToBeDeoptimized)Q.deoptimizeThisOnInteractionAtPath(Z,J,r1);this.thisDeoptimizationList.push(q)}}hasEffectsOnInteractionAtPath(Z,J,q){return this.getInit(q).hasEffectsOnInteractionAtPath(Z,J,q)||super.hasEffectsOnInteractionAtPath(Z,J,q)}getInit(Z){return Z.replacedVariableInits.get(this)||Y1}};u2=class u2 extends xZ{constructor(Z,J){super(Z,J);this.variables.set("arguments",this.argumentsVariable=new m2(J)),this.variables.set("this",this.thisVariable=new mZ(J))}findLexicalBoundary(){return this}includeCallArguments(Z,J){if(super.includeCallArguments(Z,J),this.argumentsVariable.included){for(let q of J)if(!q.included)q.include(Z,!1)}}};Z7=class Z7 extends e4{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new u2(Z,this.context)}deoptimizeThisOnInteractionAtPath(Z,J,q){if(super.deoptimizeThisOnInteractionAtPath(Z,J,q),Z.type===P1&&J.length===0)this.scope.thisVariable.addEntityToBeDeoptimized(Z.thisArg)}hasEffects(Z){var J;if(!this.deoptimized)this.applyDeoptimizations();return!!((J=this.id)===null||J===void 0?void 0:J.hasEffects(Z))}hasEffectsOnInteractionAtPath(Z,J,q){if(super.hasEffectsOnInteractionAtPath(Z,J,q))return!0;if(J.type===P1){let Q=q.replacedVariableInits.get(this.scope.thisVariable);q.replacedVariableInits.set(this.scope.thisVariable,J.withNew?new V5(Object.create(null),Y8):Y1);let{brokenFlow:Y,ignore:X}=q;if(q.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0},this.body.hasEffects(q))return!0;if(q.brokenFlow=Y,Q)q.replacedVariableInits.set(this.scope.thisVariable,Q);else q.replacedVariableInits.delete(this.scope.thisVariable);q.ignore=X}return!1}include(Z,J){var q;super.include(Z,J),(q=this.id)===null||q===void 0||q.include();let Q=this.scope.argumentsVariable.included;for(let Y of this.params)if(!(Y instanceof l1)||Q)Y.include(Z,J)}initialise(){var Z;super.initialise(),(Z=this.id)===null||Z===void 0||Z.declare("function",this)}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;return this.objectEntity=new V5([{key:"prototype",kind:"init",property:new V5([],Y8)}],Y8)}};d2=class d2 extends Z1{hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!0}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();if(!this.included){this.included=!0;Z:if(!this.context.usesTopLevelAwait){let q=this.parent;do if(q instanceof Z7||q instanceof vZ)break Z;while(q=q.parent);this.context.usesTopLevelAwait=!0}}this.argument.include(Z,J)}};ZB={"!=":(Z,J)=>Z!=J,"!==":(Z,J)=>Z!==J,"%":(Z,J)=>Z%J,"&":(Z,J)=>Z&J,"*":(Z,J)=>Z*J,"**":(Z,J)=>Z**J,"+":(Z,J)=>Z+J,"-":(Z,J)=>Z-J,"/":(Z,J)=>Z/J,"<":(Z,J)=>Z<J,"<<":(Z,J)=>Z<<J,"<=":(Z,J)=>Z<=J,"==":(Z,J)=>Z==J,"===":(Z,J)=>Z===J,">":(Z,J)=>Z>J,">=":(Z,J)=>Z>=J,">>":(Z,J)=>Z>>J,">>>":(Z,J)=>Z>>>J,"^":(Z,J)=>Z^J,"|":(Z,J)=>Z|J};l2=class l2 extends Z1{deoptimizeCache(){}getLiteralValueAtPath(Z,J,q){if(Z.length>0)return x1;let Q=this.left.getLiteralValueAtPath($1,J,q);if(typeof Q==="symbol")return x1;let Y=this.right.getLiteralValueAtPath($1,J,q);if(typeof Y==="symbol")return x1;let X=ZB[this.operator];if(!X)return x1;return X(Q,Y)}hasEffects(Z){if(this.operator==="+"&&this.parent instanceof N0&&this.left.getLiteralValueAtPath($1,r1,this)==="")return!0;return super.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,{type:J}){return J!==E1||Z.length>1}render(Z,J,{renderedSurroundingElement:q}=n1){this.left.render(Z,J,{renderedSurroundingElement:q}),this.right.render(Z,J)}};c2=class c2 extends Z1{hasEffects(Z){if(this.label){if(!Z.ignore.labels.has(this.label.name))return!0;Z.includedLabels.add(this.label.name),Z.brokenFlow=S8}else{if(!Z.ignore.breaks)return!0;Z.brokenFlow=X6}return!1}include(Z){if(this.included=!0,this.label)this.label.include(),Z.includedLabels.add(this.label.name);Z.brokenFlow=this.label?S8:X6}};V6=class V6 extends Z1{deoptimizeThisOnInteractionAtPath(){}getLiteralValueAtPath(Z){if(Z.length>0||this.value===null&&this.context.code.charCodeAt(this.start)!==110||typeof this.value==="bigint"||this.context.code.charCodeAt(this.start)===47)return x1;return this.value}getReturnExpressionWhenCalledAtPath(Z){if(Z.length!==1)return Y1;return w0(this.members,Z[0])}hasEffectsOnInteractionAtPath(Z,J,q){switch(J.type){case E1:return Z.length>(this.value===null?0:1);case h5:return!0;case P1:return Z.length!==1||L0(this.members,Z[0],J,q)}}initialise(){this.members=Pj(this.value)}parseNode(Z){this.value=Z.value,this.regex=Z.regex,super.parseNode(Z)}render(Z){if(typeof this.value==="string")Z.indentExclusionRanges.push([this.start+1,this.end-1])}};y8=class y8 extends Z1{constructor(){super(...arguments);this.variable=null,this.assignmentDeoptimized=!1,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null}bind(){this.bound=!0;let Z=i2(this),J=Z&&this.scope.findVariable(Z[0].key);if(J&&J.isNamespace){let q=n2(J,Z.slice(1),this.context);if(!q)super.bind();else if(typeof q==="string")this.replacement=q;else this.variable=q,this.scope.addNamespaceMemberAccess(QB(Z),q)}else super.bind()}deoptimizeCache(){let Z=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.propertyKey=d1,this.object.deoptimizePath(D1);for(let J of Z)J.deoptimizeCache()}deoptimizePath(Z){if(Z.length===0)this.disallowNamespaceReassignment();if(this.variable)this.variable.deoptimizePath(Z);else if(!this.replacement){if(Z.length<i6){let J=this.getPropertyKey();this.object.deoptimizePath([J===d1?C4:J,...Z])}}}deoptimizeThisOnInteractionAtPath(Z,J,q){if(this.variable)this.variable.deoptimizeThisOnInteractionAtPath(Z,J,q);else if(!this.replacement)if(J.length<i6)this.object.deoptimizeThisOnInteractionAtPath(Z,[this.getPropertyKey(),...J],q);else Z.thisArg.deoptimizePath(D1)}getLiteralValueAtPath(Z,J,q){if(this.variable)return this.variable.getLiteralValueAtPath(Z,J,q);if(this.replacement)return x1;if(this.expressionsToBeDeoptimized.push(q),Z.length<i6)return this.object.getLiteralValueAtPath([this.getPropertyKey(),...Z],J,q);return x1}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){if(this.variable)return this.variable.getReturnExpressionWhenCalledAtPath(Z,J,q,Q);if(this.replacement)return Y1;if(this.expressionsToBeDeoptimized.push(Q),Z.length<i6)return this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(),...Z],J,q,Q);return Y1}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();return this.property.hasEffects(Z)||this.object.hasEffects(Z)||this.hasAccessEffect(Z)}hasEffectsAsAssignmentTarget(Z,J){if(J&&!this.deoptimized)this.applyDeoptimizations();if(!this.assignmentDeoptimized)this.applyAssignmentDeoptimization();return this.property.hasEffects(Z)||this.object.hasEffects(Z)||J&&this.hasAccessEffect(Z)||this.hasEffectsOnInteractionAtPath($1,this.assignmentInteraction,Z)}hasEffectsOnInteractionAtPath(Z,J,q){if(this.variable)return this.variable.hasEffectsOnInteractionAtPath(Z,J,q);if(this.replacement)return!0;if(Z.length<i6)return this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey(),...Z],J,q);return!0}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();this.includeProperties(Z,J)}includeAsAssignmentTarget(Z,J,q){if(!this.assignmentDeoptimized)this.applyAssignmentDeoptimization();if(q)this.include(Z,J);else this.includeProperties(Z,J)}includeCallArguments(Z,J){if(this.variable)this.variable.includeCallArguments(Z,J);else super.includeCallArguments(Z,J)}initialise(){this.propertyKey=JB(this),this.accessInteraction={thisArg:this.object,type:E1}}render(Z,J,{renderedParentType:q,isCalleeOfRenderedParent:Q,renderedSurroundingElement:Y}=n1){if(this.variable||this.replacement){let{snippets:{getPropertyAccess:X}}=J,z=this.variable?this.variable.getName(X):this.replacement;if(q&&Q)z="0, "+z;Z.overwrite(this.start,this.end,z,{contentOnly:!0,storeName:!0})}else{if(q&&Q)Z.appendRight(this.start,"0, ");this.object.render(Z,J,{renderedSurroundingElement:Y}),this.property.render(Z,J)}}setAssignedValue(Z){this.assignmentInteraction={args:[Z],thisArg:this.object,type:h5}}applyDeoptimizations(){this.deoptimized=!0;let{propertyReadSideEffects:Z}=this.context.options.treeshake;if(this.bound&&Z&&!(this.variable||this.replacement)){let J=this.getPropertyKey();this.object.deoptimizeThisOnInteractionAtPath(this.accessInteraction,[J],r1),this.context.requestTreeshakingPass()}}applyAssignmentDeoptimization(){this.assignmentDeoptimized=!0;let{propertyReadSideEffects:Z}=this.context.options.treeshake;if(this.bound&&Z&&!(this.variable||this.replacement))this.object.deoptimizeThisOnInteractionAtPath(this.assignmentInteraction,[this.getPropertyKey()],r1),this.context.requestTreeshakingPass()}disallowNamespaceReassignment(){if(this.object instanceof l1){if(this.scope.findVariable(this.object.name).isNamespace){if(this.variable)this.context.includeVariableInModule(this.variable);this.context.warn({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:`Illegal reassignment to import '${this.object.name}'`},this.start)}}}getPropertyKey(){if(this.propertyKey===null){this.propertyKey=d1;let Z=this.property.getLiteralValueAtPath($1,r1,this);return this.propertyKey=typeof Z==="symbol"?d1:String(Z)}return this.propertyKey}hasAccessEffect(Z){let{propertyReadSideEffects:J}=this.context.options.treeshake;return!(this.variable||this.replacement)&&J&&(J==="always"||this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey()],this.accessInteraction,Z))}includeProperties(Z,J){if(!this.included){if(this.included=!0,this.variable)this.context.includeVariableInModule(this.variable)}this.object.include(Z,J),this.property.include(Z,J)}};uZ=class uZ extends Z1{constructor(){super(...arguments);this.returnExpression=null,this.deoptimizableDependentExpressions=[],this.expressionsToBeDeoptimized=new Set}deoptimizeCache(){if(this.returnExpression!==Y1){this.returnExpression=Y1;for(let Z of this.deoptimizableDependentExpressions)Z.deoptimizeCache();for(let Z of this.expressionsToBeDeoptimized)Z.deoptimizePath(D1)}}deoptimizePath(Z){if(Z.length===0||this.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;let J=this.getReturnExpression();if(J!==Y1)J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){let Q=this.getReturnExpression(q);if(Q===Y1)Z.thisArg.deoptimizePath(D1);else q.withTrackedEntityAtPath(J,Q,()=>{this.expressionsToBeDeoptimized.add(Z.thisArg),Q.deoptimizeThisOnInteractionAtPath(Z,J,q)},void 0)}getLiteralValueAtPath(Z,J,q){let Q=this.getReturnExpression(J);if(Q===Y1)return x1;return J.withTrackedEntityAtPath(Z,Q,()=>{return this.deoptimizableDependentExpressions.push(q),Q.getLiteralValueAtPath(Z,J,q)},x1)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){let Y=this.getReturnExpression(q);if(this.returnExpression===Y1)return Y1;return q.withTrackedEntityAtPath(Z,Y,()=>{return this.deoptimizableDependentExpressions.push(Q),Y.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)},Y1)}hasEffectsOnInteractionAtPath(Z,J,q){let{type:Q}=J;if(Q===P1){if((J.withNew?q.instantiated:q.called).trackEntityAtPathAndGetIfTracked(Z,J.args,this))return!1}else if((Q===h5?q.assigned:q.accessed).trackEntityAtPathAndGetIfTracked(Z,this))return!1;return this.getReturnExpression().hasEffectsOnInteractionAtPath(Z,J,q)}};a2=class a2 extends uZ{bind(){if(super.bind(),this.callee instanceof l1){if(this.scope.findVariable(this.callee.name).isNamespace)this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.callee.name}')`},this.start);if(this.callee.name==="eval")this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)}this.interaction={args:this.arguments,thisArg:this.callee instanceof y8&&!this.callee.variable?this.callee.object:null,type:P1,withNew:!1}}hasEffects(Z){try{for(let J of this.arguments)if(J.hasEffects(Z))return!0;if(this.context.options.treeshake.annotations&&this.annotations)return!1;return this.callee.hasEffects(Z)||this.callee.hasEffectsOnInteractionAtPath($1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();if(J){if(super.include(Z,J),J===S2&&this.callee instanceof l1&&this.callee.variable)this.callee.variable.markCalledFromTryStatement()}else this.included=!0,this.callee.include(Z,!1);this.callee.includeCallArguments(Z,this.arguments)}render(Z,J,{renderedSurroundingElement:q}=n1){this.callee.render(Z,J,{isCalleeOfRenderedParent:!0,renderedSurroundingElement:q}),p2(Z,J,this)}applyDeoptimizations(){if(this.deoptimized=!0,this.interaction.thisArg)this.callee.deoptimizeThisOnInteractionAtPath(this.interaction,$1,r1);for(let Z of this.arguments)Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}getReturnExpression(Z=r1){if(this.returnExpression===null)return this.returnExpression=Y1,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath($1,this.interaction,Z,this);return this.returnExpression}};s2=class s2 extends bZ{addDeclaration(Z,J,q,Q){let Y=this.variables.get(Z.name);if(Y)return this.parent.addDeclaration(Z,J,F0,Q),Y.addDeclaration(Z,q),Y;return this.parent.addDeclaration(Z,J,q,Q)}};r2=class r2 extends Z1{createScope(Z){this.scope=new s2(Z,this.context)}parseNode(Z){let{param:J}=Z;if(J)this.param=new(this.context.getNodeConstructor(J.type))(J,this,this.scope),this.param.declare("parameter",Y1);super.parseNode(Z)}};o2=class o2 extends Z1{};t2=class t2 extends P5{constructor(Z,J,q){super(Z);this.variables.set("this",this.thisVariable=new S5("this",null,J,q)),this.instanceScope=new P5(this),this.instanceScope.variables.set("this",new mZ(q))}findLexicalBoundary(){return this}};e2=class e2 extends Z1{createScope(Z){this.scope=new t2(Z,this.parent,this.context)}include(Z,J){this.included=!0,this.context.includeVariableInModule(this.scope.thisVariable);for(let q of this.body)q.include(Z,J)}parseNode(Z){let J=this.body=[];for(let q of Z.body)J.push(new(this.context.getNodeConstructor(q.type))(q,this,q.static?this.scope:this.scope.instanceScope));super.parseNode(Z)}applyDeoptimizations(){}};dZ=class dZ extends Z1{constructor(){super(...arguments);this.accessedValue=null}deoptimizeCache(){}deoptimizePath(Z){this.getAccessedValue().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){if(Z.type===E1&&this.kind==="get"&&J.length===0)return this.value.deoptimizeThisOnInteractionAtPath({args:p9,thisArg:Z.thisArg,type:P1,withNew:!1},$1,q);if(Z.type===h5&&this.kind==="set"&&J.length===0)return this.value.deoptimizeThisOnInteractionAtPath({args:Z.args,thisArg:Z.thisArg,type:P1,withNew:!1},$1,q);this.getAccessedValue().deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getAccessedValue().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.getAccessedValue().getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffects(Z){return this.key.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,J,q){if(this.kind==="get"&&J.type===E1&&Z.length===0)return this.value.hasEffectsOnInteractionAtPath($1,{args:p9,thisArg:J.thisArg,type:P1,withNew:!1},q);if(this.kind==="set"&&J.type===h5)return this.value.hasEffectsOnInteractionAtPath($1,{args:J.args,thisArg:J.thisArg,type:P1,withNew:!1},q);return this.getAccessedValue().hasEffectsOnInteractionAtPath(Z,J,q)}applyDeoptimizations(){}getAccessedValue(){if(this.accessedValue===null)if(this.kind==="get")return this.accessedValue=Y1,this.accessedValue=this.value.getReturnExpressionWhenCalledAtPath($1,d4,r1,this);else return this.accessedValue=this.value;return this.accessedValue}};y4=class y4 extends dZ{applyDeoptimizations(){}};ZY=class ZY extends B5{constructor(Z,J){super();this.object=Z,this.key=J}deoptimizePath(Z){this.object.deoptimizePath([this.key,...Z])}deoptimizeThisOnInteractionAtPath(Z,J,q){this.object.deoptimizeThisOnInteractionAtPath(Z,[this.key,...J],q)}getLiteralValueAtPath(Z,J,q){return this.object.getLiteralValueAtPath([this.key,...Z],J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.object.getReturnExpressionWhenCalledAtPath([this.key,...Z],J,q,Q)}hasEffectsOnInteractionAtPath(Z,J,q){return this.object.hasEffectsOnInteractionAtPath([this.key,...Z],J,q)}};lZ=class lZ extends Z1{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new P5(Z)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getObjectEntity().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffects(Z){var J,q;if(!this.deoptimized)this.applyDeoptimizations();let Q=((J=this.superClass)===null||J===void 0?void 0:J.hasEffects(Z))||this.body.hasEffects(Z);return(q=this.id)===null||q===void 0||q.markDeclarationReached(),Q||super.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,J,q){var Q;if(J.type===P1&&Z.length===0)return!J.withNew||(this.classConstructor!==null?this.classConstructor.hasEffectsOnInteractionAtPath(Z,J,q):(Q=this.superClass)===null||Q===void 0?void 0:Q.hasEffectsOnInteractionAtPath(Z,J,q))||!1;else return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,J,q)}include(Z,J){var q;if(!this.deoptimized)this.applyDeoptimizations();if(this.included=!0,(q=this.superClass)===null||q===void 0||q.include(Z,J),this.body.include(Z,J),this.id)this.id.markDeclarationReached(),this.id.include()}initialise(){var Z;(Z=this.id)===null||Z===void 0||Z.declare("class",this);for(let J of this.body.body)if(J instanceof y4&&J.kind==="constructor"){this.classConstructor=J;return}this.classConstructor=null}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.body.body)if(!(Z.static||Z instanceof y4&&Z.kind==="constructor"))Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=[],J=[];for(let q of this.body.body){let Q=q.static?Z:J,Y=q.kind;if(Q===J&&!Y)continue;let X=Y==="set"||Y==="get"?Y:"init",z;if(q.computed){let V=q.key.getLiteralValueAtPath($1,r1,this);if(typeof V==="symbol"){Q.push({key:d1,kind:X,property:q});continue}else z=String(V)}else z=q.key instanceof l1?q.key.name:String(q.key.value);Q.push({key:z,kind:X,property:q})}return Z.unshift({key:"prototype",kind:"init",property:new V5(J,this.superClass?new ZY(this.superClass,"prototype"):Y8)}),this.objectEntity=new V5(Z,this.superClass||Y8)}};K0=class K0 extends lZ{initialise(){if(super.initialise(),this.id!==null)this.id.variable.isId=!0}parseNode(Z){if(Z.id!==null)this.id=new l1(Z.id,this,this.scope.parent);super.parseNode(Z)}render(Z,J){let{exportNamesByVariable:q,format:Q,snippets:{_:Y}}=J;if(Q==="system"&&this.id&&q.has(this.id.variable))Z.appendLeft(this.end,`${Y}${b8([this.id.variable],J)};`);super.render(Z,J)}};JY=class JY extends lZ{render(Z,J,{renderedSurroundingElement:q}=n1){if(super.render(Z,J),q===N5)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}};J7=class J7 extends B5{constructor(Z){super();this.expressions=Z,this.included=!1}deoptimizePath(Z){for(let J of this.expressions)J.deoptimizePath(Z)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return new J7(this.expressions.map((Y)=>Y.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)))}hasEffectsOnInteractionAtPath(Z,J,q){for(let Q of this.expressions)if(Q.hasEffectsOnInteractionAtPath(Z,J,q))return!0;return!1}};qY=class qY extends Z1{constructor(){super(...arguments);this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null}deoptimizeCache(){if(this.usedBranch!==null){let Z=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null,Z.deoptimizePath(D1);for(let J of this.expressionsToBeDeoptimized)J.deoptimizeCache()}}deoptimizePath(Z){let J=this.getUsedBranch();if(!J)this.consequent.deoptimizePath(Z),this.alternate.deoptimizePath(Z);else J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.consequent.deoptimizeThisOnInteractionAtPath(Z,J,q),this.alternate.deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){let Q=this.getUsedBranch();if(!Q)return x1;return this.expressionsToBeDeoptimized.push(q),Q.getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){let Y=this.getUsedBranch();if(!Y)return new J7([this.consequent.getReturnExpressionWhenCalledAtPath(Z,J,q,Q),this.alternate.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)]);return this.expressionsToBeDeoptimized.push(Q),Y.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffects(Z){if(this.test.hasEffects(Z))return!0;let J=this.getUsedBranch();if(!J)return this.consequent.hasEffects(Z)||this.alternate.hasEffects(Z);return J.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,J,q){let Q=this.getUsedBranch();if(!Q)return this.consequent.hasEffectsOnInteractionAtPath(Z,J,q)||this.alternate.hasEffectsOnInteractionAtPath(Z,J,q);return Q.hasEffectsOnInteractionAtPath(Z,J,q)}include(Z,J){this.included=!0;let q=this.getUsedBranch();if(J||this.test.shouldBeIncluded(Z)||q===null)this.test.include(Z,J),this.consequent.include(Z,J),this.alternate.include(Z,J);else q.include(Z,J)}includeCallArguments(Z,J){let q=this.getUsedBranch();if(!q)this.consequent.includeCallArguments(Z,J),this.alternate.includeCallArguments(Z,J);else q.includeCallArguments(Z,J)}render(Z,J,{isCalleeOfRenderedParent:q,preventASI:Q,renderedParentType:Y,renderedSurroundingElement:X}=n1){let z=this.getUsedBranch();if(!this.test.included){let V=o1(Z.original,":",this.consequent.end),W=W8(Z.original,(this.consequent.included?o1(Z.original,"?",this.test.end):V)+1);if(Q)t4(Z,W,z.start);if(Z.remove(this.start,W),this.consequent.included)Z.remove(V,this.end);k2(this,Z),z.render(Z,J,{isCalleeOfRenderedParent:q,preventASI:!0,renderedParentType:Y||this.parent.type,renderedSurroundingElement:X||this.parent.type})}else this.test.render(Z,J,{renderedSurroundingElement:X}),this.consequent.render(Z,J),this.alternate.render(Z,J)}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;let Z=this.test.getLiteralValueAtPath($1,r1,this);return typeof Z==="symbol"?null:this.usedBranch=Z?this.consequent:this.alternate}};QY=class QY extends Z1{hasEffects(Z){if(this.label){if(!Z.ignore.labels.has(this.label.name))return!0;Z.includedLabels.add(this.label.name),Z.brokenFlow=S8}else{if(!Z.ignore.continues)return!0;Z.brokenFlow=X6}return!1}include(Z){if(this.included=!0,this.label)this.label.include(),Z.includedLabels.add(this.label.name);Z.brokenFlow=this.label?S8:X6}};YY=class YY extends Z1{hasEffects(Z){if(this.test.hasEffects(Z))return!0;let{brokenFlow:J,ignore:{breaks:q,continues:Q}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=q,Z.ignore.continues=Q,Z.brokenFlow=J,!1}include(Z,J){this.included=!0,this.test.include(Z,J);let{brokenFlow:q}=Z;this.body.include(Z,J,{asSingleStatement:!0}),Z.brokenFlow=q}};XY=class XY extends Z1{hasEffects(){return!1}};q7=class q7 extends Z1{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(Z,J,q){Z.remove(q.start,q.end)}applyDeoptimizations(){}};q7.prototype.needsBoundaries=!0;W6=class W6 extends Z7{initialise(){if(super.initialise(),this.id!==null)this.id.variable.isId=!0}parseNode(Z){if(Z.id!==null)this.id=new l1(Z.id,this,this.scope.parent);super.parseNode(Z)}};R0=class R0 extends Z1{include(Z,J){if(super.include(Z,J),J)this.context.includeVariableInModule(this.variable)}initialise(){let Z=this.declaration;this.declarationName=Z.id&&Z.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(Z,J,q){let{start:Q,end:Y}=q,X=YB(Z.original,this.start);if(this.declaration instanceof W6)this.renderNamedDeclaration(Z,X,"function","(",this.declaration.id===null,J);else if(this.declaration instanceof K0)this.renderNamedDeclaration(Z,X,"class","{",this.declaration.id===null,J);else if(this.variable.getOriginalVariable()!==this.variable){kZ(this,Z,Q,Y);return}else if(this.variable.included)this.renderVariableDeclaration(Z,X,J);else{if(Z.remove(this.start,X),this.declaration.render(Z,J,{renderedSurroundingElement:N5}),Z.original[this.end-1]!==";")Z.appendLeft(this.end,";");return}this.declaration.render(Z,J)}applyDeoptimizations(){}renderNamedDeclaration(Z,J,q,Q,Y,X){let{exportNamesByVariable:z,format:V,snippets:{getPropertyAccess:W}}=X,K=this.variable.getName(W);if(Z.remove(this.start,J),Y)Z.appendLeft(XB(Z.original,q,Q,J),` ${K}`);if(V==="system"&&this.declaration instanceof K0&&z.has(this.variable))Z.appendLeft(this.end,` ${b8([this.variable],X)};`)}renderVariableDeclaration(Z,J,{format:q,exportNamesByVariable:Q,snippets:{cnst:Y,getPropertyAccess:X}}){let z=Z.original.charCodeAt(this.end-1)===59,V=q==="system"&&Q.get(this.variable);if(V)Z.overwrite(this.start,J,`${Y} ${this.variable.getName(X)} = exports('${V[0]}', `),Z.appendRight(z?this.end-1:this.end,")"+(z?"":";"));else if(Z.overwrite(this.start,J,`${Y} ${this.variable.getName(X)} = `),!z)Z.appendLeft(this.end,";")}};R0.prototype.needsBoundaries=!0;cZ=class cZ extends Z1{bind(){var Z;(Z=this.declaration)===null||Z===void 0||Z.bind()}hasEffects(Z){var J;return!!((J=this.declaration)===null||J===void 0?void 0:J.hasEffects(Z))}initialise(){this.context.addExport(this)}render(Z,J,q){let{start:Q,end:Y}=q;if(this.declaration===null)Z.remove(Q,Y);else Z.remove(this.start,this.declaration.start),this.declaration.render(Z,J,{end:Y,start:Q})}applyDeoptimizations(){}};cZ.prototype.needsBoundaries=!0;zY=class zY extends Z1{applyDeoptimizations(){}};VY=class VY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){let{deoptimized:J,left:q,right:Q}=this;if(!J)this.applyDeoptimizations();if(q.hasEffectsAsAssignmentTarget(Z,!1)||Q.hasEffects(Z))return!0;let{brokenFlow:Y,ignore:{breaks:X,continues:z}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=X,Z.ignore.continues=z,Z.brokenFlow=Y,!1}include(Z,J){let{body:q,deoptimized:Q,left:Y,right:X}=this;if(!Q)this.applyDeoptimizations();this.included=!0,Y.includeAsAssignmentTarget(Z,J||!0,!1),X.include(Z,J);let{brokenFlow:z}=Z;q.include(Z,J,{asSingleStatement:!0}),Z.brokenFlow=z}initialise(){this.left.setAssignedValue(Y1)}render(Z,J){if(this.left.render(Z,J,A8),this.right.render(Z,J,A8),Z.original.charCodeAt(this.right.start-1)===110)Z.prependLeft(this.right.start," ");this.body.render(Z,J)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.context.requestTreeshakingPass()}};WY=class WY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!0}include(Z,J){let{body:q,deoptimized:Q,left:Y,right:X}=this;if(!Q)this.applyDeoptimizations();this.included=!0,Y.includeAsAssignmentTarget(Z,J||!0,!1),X.include(Z,J);let{brokenFlow:z}=Z;q.include(Z,J,{asSingleStatement:!0}),Z.brokenFlow=z}initialise(){this.left.setAssignedValue(Y1)}render(Z,J){if(this.left.render(Z,J,A8),this.right.render(Z,J,A8),Z.original.charCodeAt(this.right.start-1)===102)Z.prependLeft(this.right.start," ");this.body.render(Z,J)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.context.requestTreeshakingPass()}};KY=class KY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){var J,q,Q;if(((J=this.init)===null||J===void 0?void 0:J.hasEffects(Z))||((q=this.test)===null||q===void 0?void 0:q.hasEffects(Z))||((Q=this.update)===null||Q===void 0?void 0:Q.hasEffects(Z)))return!0;let{brokenFlow:Y,ignore:{breaks:X,continues:z}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=X,Z.ignore.continues=z,Z.brokenFlow=Y,!1}include(Z,J){var q,Q,Y;this.included=!0,(q=this.init)===null||q===void 0||q.include(Z,J,{asSingleStatement:!0}),(Q=this.test)===null||Q===void 0||Q.include(Z,J);let{brokenFlow:X}=Z;(Y=this.update)===null||Y===void 0||Y.include(Z,J),this.body.include(Z,J,{asSingleStatement:!0}),Z.brokenFlow=X}render(Z,J){var q,Q,Y;(q=this.init)===null||q===void 0||q.render(Z,J,A8),(Q=this.test)===null||Q===void 0||Q.render(Z,J,A8),(Y=this.update)===null||Y===void 0||Y.render(Z,J,A8),this.body.render(Z,J)}};$Y=class $Y extends Z7{render(Z,J,{renderedSurroundingElement:q}=n1){if(super.render(Z,J),q===N5)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}};ZZ=class ZZ extends G8{constructor(){super(...arguments);this.hoistedDeclarations=[]}addDeclaration(Z,J,q,Q){return this.hoistedDeclarations.push(Z),super.addDeclaration(Z,J,q,Q)}};PQ=Symbol("unset");pZ=class pZ extends Z1{constructor(){super(...arguments);this.testValue=PQ}deoptimizeCache(){this.testValue=x1}hasEffects(Z){var J;if(this.test.hasEffects(Z))return!0;let q=this.getTestValue();if(typeof q==="symbol"){let{brokenFlow:Q}=Z;if(this.consequent.hasEffects(Z))return!0;let Y=Z.brokenFlow;if(Z.brokenFlow=Q,this.alternate===null)return!1;if(this.alternate.hasEffects(Z))return!0;return Z.brokenFlow=Z.brokenFlow<Y?Z.brokenFlow:Y,!1}return q?this.consequent.hasEffects(Z):!!((J=this.alternate)===null||J===void 0?void 0:J.hasEffects(Z))}include(Z,J){if(this.included=!0,J)this.includeRecursively(J,Z);else{let q=this.getTestValue();if(typeof q==="symbol")this.includeUnknownTest(Z);else this.includeKnownTest(Z,q)}}parseNode(Z){if(this.consequentScope=new ZZ(this.scope),this.consequent=new(this.context.getNodeConstructor(Z.consequent.type))(Z.consequent,this,this.consequentScope),Z.alternate)this.alternateScope=new ZZ(this.scope),this.alternate=new(this.context.getNodeConstructor(Z.alternate.type))(Z.alternate,this,this.alternateScope);super.parseNode(Z)}render(Z,J){let{snippets:{getPropertyAccess:q}}=J,Q=this.getTestValue(),Y=[],X=this.test.included,z=!this.context.options.treeshake;if(X)this.test.render(Z,J);else Z.remove(this.start,this.consequent.start);if(this.consequent.included&&(z||typeof Q==="symbol"||Q))this.consequent.render(Z,J);else Z.overwrite(this.consequent.start,this.consequent.end,X?";":""),Y.push(...this.consequentScope.hoistedDeclarations);if(this.alternate)if(this.alternate.included&&(z||typeof Q==="symbol"||!Q)){if(X){if(Z.original.charCodeAt(this.alternate.start-1)===101)Z.prependLeft(this.alternate.start," ")}else Z.remove(this.consequent.end,this.alternate.start);this.alternate.render(Z,J)}else{if(X&&this.shouldKeepAlternateBranch())Z.overwrite(this.alternate.start,this.end,";");else Z.remove(this.consequent.end,this.end);Y.push(...this.alternateScope.hoistedDeclarations)}this.renderHoistedDeclarations(Y,Z,q)}applyDeoptimizations(){}getTestValue(){if(this.testValue===PQ)return this.testValue=this.test.getLiteralValueAtPath($1,r1,this);return this.testValue}includeKnownTest(Z,J){var q;if(this.test.shouldBeIncluded(Z))this.test.include(Z,!1);if(J&&this.consequent.shouldBeIncluded(Z))this.consequent.include(Z,!1,{asSingleStatement:!0});if(!J&&((q=this.alternate)===null||q===void 0?void 0:q.shouldBeIncluded(Z)))this.alternate.include(Z,!1,{asSingleStatement:!0})}includeRecursively(Z,J){var q;this.test.include(J,Z),this.consequent.include(J,Z),(q=this.alternate)===null||q===void 0||q.include(J,Z)}includeUnknownTest(Z){var J;this.test.include(Z,!1);let{brokenFlow:q}=Z,Q=n4;if(this.consequent.shouldBeIncluded(Z))this.consequent.include(Z,!1,{asSingleStatement:!0}),Q=Z.brokenFlow,Z.brokenFlow=q;if((J=this.alternate)===null||J===void 0?void 0:J.shouldBeIncluded(Z))this.alternate.include(Z,!1,{asSingleStatement:!0}),Z.brokenFlow=Z.brokenFlow<Q?Z.brokenFlow:Q}renderHoistedDeclarations(Z,J,q){let Q=[...new Set(Z.map((Y)=>{let X=Y.variable;return X.included?X.getName(q):""}))].filter(Boolean).join(", ");if(Q){let Y=this.parent.type,X=Y!==A4&&Y!==I2;if(J.prependRight(this.start,`${X?"{ ":""}var ${Q}; `),X)J.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let Z=this.parent;do{if(Z instanceof pZ&&Z.alternate)return!0;if(Z instanceof W0)return!1;Z=Z.parent}while(Z);return!1}};iZ=class iZ extends Z1{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(Z,J,q){Z.remove(q.start,q.end)}applyDeoptimizations(){}};iZ.prototype.needsBoundaries=!0;GY=class GY extends Z1{applyDeoptimizations(){}};C0={auto:E4,default:null,defaultOnly:null,esModule:null,false:null,true:JZ},I0={auto:e6,default:s6,defaultOnly:$0,esModule:null,false:null,true:e6},UY={[JZ](Z,J,q){let{_:Q,getDirectReturnFunction:Y,n:X}=J,[z,V]=Y(["e"],{functionReturn:!0,lineBreakIndent:null,name:JZ});return`${z}e${Q}&&${Q}typeof e${Q}===${Q}'object'${Q}&&${Q}'default'${Q}in e${Q}?${Q}${q?SQ(J):yQ(J)}${V}${X}${X}`},[E4](Z,J,q){let{_:Q,getDirectReturnFunction:Y,n:X}=J,[z,V]=Y(["e"],{functionReturn:!0,lineBreakIndent:null,name:E4});return`${z}e${Q}&&${Q}e.__esModule${Q}?${Q}${q?SQ(J):yQ(J)}${V}${X}${X}`},[$0](Z,J,q,Q,Y){let{getDirectReturnFunction:X,getObject:z,n:V}=J,[W,K]=X(["e"],{functionReturn:!0,lineBreakIndent:null,name:$0});return`${W}${qZ(Q,bQ(Y,z([["__proto__","null"],["default","e"]],{lineBreakIndent:null}),J))}${K}${V}${V}`},[s6](Z,J,q,Q,Y){let{_:X,n:z}=J;return`function ${s6}(e)${X}{${z}`+EQ(Z,Z,J,q,Q,Y)+`}${z}${z}`},[e6](Z,J,q,Q,Y,X){let{_:z,getDirectReturnFunction:V,n:W}=J;if(X.has(s6)){let[K,$]=V(["e"],{functionReturn:!0,lineBreakIndent:null,name:e6});return`${K}e${z}&&${z}e.__esModule${z}?${z}e${z}:${z}${s6}(e)${$}${W}${W}`}return`function ${e6}(e)${z}{${W}${Z}if${z}(e${z}&&${z}e.__esModule)${z}return e;${W}`+EQ(Z,Z,J,q,Q,Y)+`}${W}${W}`},[b4](Z,J,q,Q,Y){let{_:X,cnst:z,n:V}=J,W=z==="var"&&q;return`function ${b4}(n, m)${X}{${V}${Z}${WB(`{${V}${Z}${Z}${Z}if${X}(k${X}!==${X}'default'${X}&&${X}!(k in n))${X}{${V}`+(q?W?jY:$B:BY)(Z,Z+Z+Z+Z,J)+`${Z}${Z}${Z}}${V}${Z}${Z}}`,W,Z,J)}${V}${Z}return ${qZ(Q,bQ(Y,"n",J))};${V}}${V}${V}`}},QZ=Object.keys(UY);MY=class MY extends Z1{constructor(){super(...arguments);this.inlineNamespace=null,this.mechanism=null,this.resolution=null}hasEffects(){return!0}include(Z,J){if(!this.included)this.included=!0,this.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this);this.source.include(Z,J)}initialise(){this.context.addDynamicImport(this)}render(Z,J){if(this.inlineNamespace){let{snippets:{getDirectReturnFunction:q,getPropertyAccess:Q}}=J,[Y,X]=q([],{functionReturn:!0,lineBreakIndent:null,name:null});Z.overwrite(this.start,this.end,`Promise.resolve().then(${Y}${this.inlineNamespace.getName(Q)}${X})`,{contentOnly:!0});return}if(this.mechanism)Z.overwrite(this.start,o1(Z.original,"(",this.start+6)+1,this.mechanism.left,{contentOnly:!0}),Z.overwrite(this.end-1,this.end,this.mechanism.right,{contentOnly:!0});this.source.render(Z,J)}renderFinalResolution(Z,J,q,{getDirectReturnFunction:Q}){if(Z.overwrite(this.source.start,this.source.end,J),q){let[Y,X]=Q(["n"],{functionReturn:!0,lineBreakIndent:null,name:null});Z.prependLeft(this.end,`.then(${Y}n.${q}${X})`)}}setExternalResolution(Z,J,q,Q,Y,X){let{format:z}=q;this.inlineNamespace=null,this.resolution=J;let V=[...GB[z]||[]],W;if({helper:W,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(J,Z,q,Q,Y),W)V.push(W);if(V.length>0)this.scope.addAccessedGlobals(V,X)}setInternalResolution(Z){this.inlineNamespace=Z}applyDeoptimizations(){}getDynamicImportMechanismAndHelper(Z,J,{compact:q,dynamicImportFunction:Q,format:Y,generatedCode:{arrowFunctions:X},interop:z},{_:V,getDirectReturnFunction:W,getDirectReturnIifeLeft:K},$){let H=$.hookFirstSync("renderDynamicImport",[{customResolution:typeof this.resolution==="string"?this.resolution:null,format:Y,moduleId:this.context.module.id,targetModuleId:this.resolution&&typeof this.resolution!=="string"?this.resolution.id:null}]);if(H)return{helper:null,mechanism:H};let M=!this.resolution||typeof this.resolution==="string";switch(Y){case"cjs":{let O=xQ(Z,J,z),j="require(",L=")";if(O)j=`/*#__PURE__*/${O}(${j}`,L+=")";let[I,y]=W([],{functionReturn:!0,lineBreakIndent:null,name:null});if(j=`Promise.resolve().then(${I}${j}`,L+=`${y})`,!X&&M)j=K(["t"],`${j}t${L}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),L=")";return{helper:O,mechanism:{left:j,right:L}}}case"amd":{let O=q?"c":"resolve",j=q?"e":"reject",L=xQ(Z,J,z),[I,y]=W(["m"],{functionReturn:!1,lineBreakIndent:null,name:null}),_=L?`${I}${O}(/*#__PURE__*/${L}(m))${y}`:O,[T,g]=W([O,j],{functionReturn:!1,lineBreakIndent:null,name:null}),h=`new Promise(${T}require([`,u=`],${V}${_},${V}${j})${g})`;if(!X&&M)h=K(["t"],`${h}t${u}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),u=")";return{helper:L,mechanism:{left:h,right:u}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}};case"es":if(Q)return{helper:null,mechanism:{left:`${Q}(`,right:")"}}}return{helper:null,mechanism:null}}};GB={amd:["require"],cjs:["require"],system:["module"]};HY=class HY extends Z1{applyDeoptimizations(){}};FY=class FY extends Z1{applyDeoptimizations(){}};LY=class LY extends Z1{hasEffects(Z){let J=Z.brokenFlow;if(Z.ignore.labels.add(this.label.name),this.body.hasEffects(Z))return!0;if(Z.ignore.labels.delete(this.label.name),Z.includedLabels.has(this.label.name))Z.includedLabels.delete(this.label.name),Z.brokenFlow=J;return!1}include(Z,J){this.included=!0;let q=Z.brokenFlow;if(this.body.include(Z,J),J||Z.includedLabels.has(this.label.name))this.label.include(),Z.includedLabels.delete(this.label.name),Z.brokenFlow=q}render(Z,J){if(this.label.included)this.label.render(Z,J);else Z.remove(this.start,W8(Z.original,o1(Z.original,":",this.label.end)+1));this.body.render(Z,J)}};wY=class wY extends Z1{constructor(){super(...arguments);this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null}deoptimizeCache(){if(this.usedBranch){let Z=this.usedBranch===this.left?this.right:this.left;this.usedBranch=null,Z.deoptimizePath(D1);for(let J of this.expressionsToBeDeoptimized)J.deoptimizeCache();this.context.requestTreeshakingPass()}}deoptimizePath(Z){let J=this.getUsedBranch();if(!J)this.left.deoptimizePath(Z),this.right.deoptimizePath(Z);else J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.left.deoptimizeThisOnInteractionAtPath(Z,J,q),this.right.deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){let Q=this.getUsedBranch();if(!Q)return x1;return this.expressionsToBeDeoptimized.push(q),Q.getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){let Y=this.getUsedBranch();if(!Y)return new J7([this.left.getReturnExpressionWhenCalledAtPath(Z,J,q,Q),this.right.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)]);return this.expressionsToBeDeoptimized.push(Q),Y.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffects(Z){if(this.left.hasEffects(Z))return!0;if(this.getUsedBranch()!==this.left)return this.right.hasEffects(Z);return!1}hasEffectsOnInteractionAtPath(Z,J,q){let Q=this.getUsedBranch();if(!Q)return this.left.hasEffectsOnInteractionAtPath(Z,J,q)||this.right.hasEffectsOnInteractionAtPath(Z,J,q);return Q.hasEffectsOnInteractionAtPath(Z,J,q)}include(Z,J){this.included=!0;let q=this.getUsedBranch();if(J||q===this.right&&this.left.shouldBeIncluded(Z)||!q)this.left.include(Z,J),this.right.include(Z,J);else q.include(Z,J)}render(Z,J,{isCalleeOfRenderedParent:q,preventASI:Q,renderedParentType:Y,renderedSurroundingElement:X}=n1){if(!this.left.included||!this.right.included){let z=o1(Z.original,this.operator,this.left.end);if(this.right.included){let V=W8(Z.original,z+2);if(Z.remove(this.start,V),Q)t4(Z,V,this.right.start)}else Z.remove(z,this.end);k2(this,Z),this.getUsedBranch().render(Z,J,{isCalleeOfRenderedParent:q,preventASI:Q,renderedParentType:Y||this.parent.type,renderedSurroundingElement:X||this.parent.type})}else this.left.render(Z,J,{preventASI:Q,renderedSurroundingElement:X}),this.right.render(Z,J)}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;let Z=this.left.getLiteralValueAtPath($1,r1,this);if(typeof Z==="symbol")return null;else this.usedBranch=this.operator==="||"&&Z||this.operator==="&&"&&!Z||this.operator==="??"&&Z!=null?this.left:this.right}return this.usedBranch}};OY=class OY extends Z1{addAccessedGlobals(Z,J){let q=this.metaProperty,Q=(q&&(q.startsWith(q8)||q.startsWith(n6)||q.startsWith(K4))?jB:UB)[Z];if(Q.length>0)this.scope.addAccessedGlobals(Q,J)}getReferencedFileName(Z){let J=this.metaProperty;if(J&&J.startsWith(q8))return Z.getFileName(J.substring(q8.length));return null}hasEffects(){return!1}hasEffectsOnInteractionAtPath(Z,{type:J}){return Z.length>1||J!==E1}include(){if(!this.included){if(this.included=!0,this.meta.name==="import"){this.context.addImportMeta(this);let Z=this.parent;this.metaProperty=Z instanceof y8&&typeof Z.propertyKey==="string"?Z.propertyKey:null}}}renderFinalMechanism(Z,J,q,Q,Y){var X;let z=this.parent,V=this.metaProperty;if(V&&(V.startsWith(q8)||V.startsWith(n6)||V.startsWith(K4))){let K=null,$=null,H=null,M;if(V.startsWith(q8))K=V.substring(q8.length),M=Y.getFileName(K);else if(V.startsWith(n6))j5(`Using the "${n6}" prefix to reference files is deprecated. Use the "${q8}" prefix instead.`,!0,this.context.options),$=V.substring(n6.length),M=Y.getFileName($);else j5(`Using the "${K4}" prefix to reference files is deprecated. Use the "${q8}" prefix instead.`,!0,this.context.options),H=V.substring(K4.length),M=Y.getFileName(H);let O=z0(UZ(f5(J),M)),j;if($!==null)j=Y.hookFirstSync("resolveAssetUrl",[{assetFileName:M,chunkId:J,format:q,moduleId:this.context.module.id,relativeAssetPath:O}]);if(!j)j=Y.hookFirstSync("resolveFileUrl",[{assetReferenceId:$,chunkId:J,chunkReferenceId:H,fileName:M,format:q,moduleId:this.context.module.id,referenceId:K||$||H,relativePath:O}])||BB[q](O);Z.overwrite(z.start,z.end,j,{contentOnly:!0});return}let W=Y.hookFirstSync("resolveImportMeta",[V,{chunkId:J,format:q,moduleId:this.context.module.id}])||((X=kQ[q])===null||X===void 0?void 0:X.call(kQ,V,{chunkId:J,snippets:Q}));if(typeof W==="string")if(z instanceof y8)Z.overwrite(z.start,z.end,W,{contentOnly:!0});else Z.overwrite(this.start,this.end,W,{contentOnly:!0})}};UB={amd:["document","module","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},jB={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},BB={amd:(Z)=>{if(Z[0]!==".")Z="./"+Z;return i5(`require.toUrl('${Z}'), document.baseURI`)},cjs:(Z)=>`(typeof document === 'undefined' ? ${i5(`'file:' + __dirname + '/${Z}'`,"(require('u' + 'rl').URL)")} : ${y9(Z)})`,es:(Z)=>i5(`'${Z}', import.meta.url`),iife:(Z)=>y9(Z),system:(Z)=>i5(`'${Z}', module.meta.url`),umd:(Z)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${i5(`'file:' + __dirname + '/${Z}'`,"(require('u' + 'rl').URL)")} : ${y9(Z,!0)})`},kQ={amd:$4(()=>i5("module.uri, document.baseURI")),cjs:$4((Z)=>`(typeof document === 'undefined' ? ${i5("'file:' + __filename","(require('u' + 'rl').URL)")} : ${E9(Z)})`),iife:$4((Z)=>E9(Z)),system:(Z,{snippets:{getPropertyAccess:J}})=>Z===null?"module.meta":`module.meta${J(Z)}`,umd:$4((Z)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${i5("'file:' + __filename","(require('u' + 'rl').URL)")} : ${E9(Z,!0)})`)};NY=class NY extends Z1{hasEffects(Z){try{for(let J of this.arguments)if(J.hasEffects(Z))return!0;if(this.context.options.treeshake.annotations&&this.annotations)return!1;return this.callee.hasEffects(Z)||this.callee.hasEffectsOnInteractionAtPath($1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}hasEffectsOnInteractionAtPath(Z,{type:J}){return Z.length>0||J!==E1}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();if(J)super.include(Z,J);else this.included=!0,this.callee.include(Z,!1);this.callee.includeCallArguments(Z,this.arguments)}initialise(){this.interaction={args:this.arguments,thisArg:null,type:P1,withNew:!0}}render(Z,J){this.callee.render(Z,J),p2(Z,J,this)}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.arguments)Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}};RY=class RY extends Z1{constructor(){super(...arguments);this.objectEntity=null}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getObjectEntity().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffectsOnInteractionAtPath(Z,J,q){return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,J,q)}render(Z,J,{renderedSurroundingElement:q}=n1){if(super.render(Z,J),q===N5||q===C2)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}applyDeoptimizations(){}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=Y8,J=[];for(let q of this.properties){if(q instanceof z6){J.push({key:d1,kind:"init",property:q});continue}let Q;if(q.computed){let Y=q.key.getLiteralValueAtPath($1,r1,this);if(typeof Y==="symbol"){J.push({key:d1,kind:q.kind,property:q});continue}else Q=String(Y)}else if(Q=q.key instanceof l1?q.key.name:String(q.key.value),Q==="__proto__"&&q.kind==="init"){Z=q.value instanceof V6&&q.value.value===null?null:q.value;continue}J.push({key:Q,kind:q.kind,property:q})}return this.objectEntity=new V5(J,Z)}};CY=class CY extends Z1{};aZ=class aZ extends Z1{constructor(){super(...arguments);this.hasCachedEffect=!1}hasEffects(Z){if(this.hasCachedEffect)return!0;for(let J of this.body)if(J.hasEffects(Z))return this.hasCachedEffect=!0;return!1}include(Z,J){this.included=!0;for(let q of this.body)if(J||q.shouldBeIncluded(Z))q.include(Z,J)}render(Z,J){if(this.body.length)O0(this.body,Z,this.start,this.end,J);else super.render(Z,J)}applyDeoptimizations(){}};IY=class IY extends dZ{constructor(){super(...arguments);this.declarationInit=null}declare(Z,J){return this.declarationInit=J,this.value.declare(Z,Y1)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();let J=this.context.options.treeshake.propertyReadSideEffects;return this.parent.type==="ObjectPattern"&&J==="always"||this.key.hasEffects(Z)||this.value.hasEffects(Z)}markDeclarationReached(){this.value.markDeclarationReached()}render(Z,J){if(!this.shorthand)this.key.render(Z,J);this.value.render(Z,J,{isShorthandProperty:this.shorthand})}applyDeoptimizations(){if(this.deoptimized=!0,this.declarationInit!==null)this.declarationInit.deoptimizePath([d1,d1]),this.context.requestTreeshakingPass()}};_Y=class _Y extends Z1{deoptimizePath(Z){var J;(J=this.value)===null||J===void 0||J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){var Q;(Q=this.value)===null||Q===void 0||Q.deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.value?this.value.getLiteralValueAtPath(Z,J,q):x1}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.value?this.value.getReturnExpressionWhenCalledAtPath(Z,J,q,Q):Y1}hasEffects(Z){var J;return this.key.hasEffects(Z)||this.static&&!!((J=this.value)===null||J===void 0?void 0:J.hasEffects(Z))}hasEffectsOnInteractionAtPath(Z,J,q){return!this.value||this.value.hasEffectsOnInteractionAtPath(Z,J,q)}applyDeoptimizations(){}};DY=class DY extends Z1{hasEffects(Z){var J;if(!Z.ignore.returnYield||((J=this.argument)===null||J===void 0?void 0:J.hasEffects(Z)))return!0;return Z.brokenFlow=S8,!1}include(Z,J){var q;this.included=!0,(q=this.argument)===null||q===void 0||q.include(Z,J),Z.brokenFlow=S8}initialise(){this.scope.addReturnExpression(this.argument||Y1)}render(Z,J){if(this.argument){if(this.argument.render(Z,J,{preventASI:!0}),this.argument.start===this.start+6)Z.prependLeft(this.start+6," ")}}};TY=class TY extends Z1{deoptimizePath(Z){this.expressions[this.expressions.length-1].deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.expressions[this.expressions.length-1].deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(Z,J,q)}hasEffects(Z){for(let J of this.expressions)if(J.hasEffects(Z))return!0;return!1}hasEffectsOnInteractionAtPath(Z,J,q){return this.expressions[this.expressions.length-1].hasEffectsOnInteractionAtPath(Z,J,q)}include(Z,J){this.included=!0;let q=this.expressions[this.expressions.length-1];for(let Q of this.expressions)if(J||Q===q&&!(this.parent instanceof N0)||Q.shouldBeIncluded(Z))Q.include(Z,J)}render(Z,J,{renderedParentType:q,isCalleeOfRenderedParent:Q,preventASI:Y}=n1){let X=0,z=null,V=this.expressions[this.expressions.length-1];for(let{node:W,separator:K,start:$,end:H}of f2(this.expressions,Z,this.start,this.end)){if(!W.included){kZ(W,Z,$,H);continue}if(X++,z=K,X===1&&Y)t4(Z,$,W.start);if(X===1){let M=q||this.parent.type;W.render(Z,J,{isCalleeOfRenderedParent:Q&&W===V,renderedParentType:M,renderedSurroundingElement:M})}else W.render(Z,J)}if(z)Z.remove(z,this.end)}};AY=class AY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){for(let J of this.body)if(J.hasEffects(Z))return!0;return!1}include(Z,J){this.included=!0;for(let q of this.body)if(J||q.shouldBeIncluded(Z))q.include(Z,J)}render(Z,J){if(this.body.length)O0(this.body,Z,this.start+1,this.end-1,J);else super.render(Z,J)}};PY=class PY extends Z1{bind(){this.variable=this.scope.findVariable("this")}deoptimizePath(Z){this.variable.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.variable.deoptimizeThisOnInteractionAtPath(Z,J,q)}include(){if(!this.included)this.included=!0,this.context.includeVariableInModule(this.variable)}};sZ=class sZ extends Z1{hasEffects(Z){var J;if((J=this.test)===null||J===void 0?void 0:J.hasEffects(Z))return!0;for(let q of this.consequent){if(Z.brokenFlow)break;if(q.hasEffects(Z))return!0}return!1}include(Z,J){var q;this.included=!0,(q=this.test)===null||q===void 0||q.include(Z,J);for(let Q of this.consequent)if(J||Q.shouldBeIncluded(Z))Q.include(Z,J)}render(Z,J,q){if(this.consequent.length){this.test&&this.test.render(Z,J);let Q=this.test?this.test.end:o1(Z.original,"default",this.start)+7,Y=o1(Z.original,":",Q)+1;O0(this.consequent,Z,Y,q.end,J)}else super.render(Z,J)}};sZ.prototype.needsBoundaries=!0;SY=class SY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){if(this.discriminant.hasEffects(Z))return!0;let{brokenFlow:J,ignore:{breaks:q}}=Z,Q=1/0;Z.ignore.breaks=!0;for(let Y of this.cases){if(Y.hasEffects(Z))return!0;Q=Z.brokenFlow<Q?Z.brokenFlow:Q,Z.brokenFlow=J}if(this.defaultCase!==null&&Q!==X6)Z.brokenFlow=Q;return Z.ignore.breaks=q,!1}include(Z,J){this.included=!0,this.discriminant.include(Z,J);let{brokenFlow:q}=Z,Q=1/0,Y=J||this.defaultCase!==null&&this.defaultCase<this.cases.length-1;for(let X=this.cases.length-1;X>=0;X--){let z=this.cases[X];if(z.included)Y=!0;if(!Y){let V=a4();V.ignore.breaks=!0,Y=z.hasEffects(V)}if(Y)z.include(Z,J),Q=Q<Z.brokenFlow?Q:Z.brokenFlow,Z.brokenFlow=q;else Q=q}if(Y&&this.defaultCase!==null&&Q!==X6)Z.brokenFlow=Q}initialise(){for(let Z=0;Z<this.cases.length;Z++)if(this.cases[Z].test===null){this.defaultCase=Z;return}this.defaultCase=null}render(Z,J){if(this.discriminant.render(Z,J),this.cases.length>0)O0(this.cases,Z,this.cases[0].start,this.end-1,J)}};yY=class yY extends uZ{bind(){if(super.bind(),this.tag.type===D2){let Z=this.tag.name;if(this.scope.findVariable(Z).isNamespace)this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${Z}')`},this.start)}}hasEffects(Z){try{for(let J of this.quasi.expressions)if(J.hasEffects(Z))return!0;return this.tag.hasEffects(Z)||this.tag.hasEffectsOnInteractionAtPath($1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();if(J)super.include(Z,J);else this.included=!0,this.tag.include(Z,J),this.quasi.include(Z,J);this.tag.includeCallArguments(Z,this.interaction.args);let q=this.getReturnExpression();if(!q.included)q.include(Z,!1)}initialise(){this.interaction={args:[Y1,...this.quasi.expressions],thisArg:this.tag instanceof y8&&!this.tag.variable?this.tag.object:null,type:P1,withNew:!1}}render(Z,J){this.tag.render(Z,J,{isCalleeOfRenderedParent:!0}),this.quasi.render(Z,J)}applyDeoptimizations(){if(this.deoptimized=!0,this.interaction.thisArg)this.tag.deoptimizeThisOnInteractionAtPath(this.interaction,$1,r1);for(let Z of this.quasi.expressions)Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}getReturnExpression(Z=r1){if(this.returnExpression===null)return this.returnExpression=Y1,this.returnExpression=this.tag.getReturnExpressionWhenCalledAtPath($1,this.interaction,Z,this);return this.returnExpression}};EY=class EY extends Z1{bind(){}hasEffects(){return!1}include(){this.included=!0}parseNode(Z){this.value=Z.value,super.parseNode(Z)}render(){}};rZ=class rZ extends Z1{deoptimizeThisOnInteractionAtPath(){}getLiteralValueAtPath(Z){if(Z.length>0||this.quasis.length!==1)return x1;return this.quasis[0].value.cooked}getReturnExpressionWhenCalledAtPath(Z){if(Z.length!==1)return Y1;return w0(V0,Z[0])}hasEffectsOnInteractionAtPath(Z,J,q){if(J.type===E1)return Z.length>1;if(J.type===P1&&Z.length===1)return L0(V0,Z[0],J,q);return!0}render(Z,J){Z.indentExclusionRanges.push([this.start,this.end]),super.render(Z,J)}};oZ=class oZ extends $8{constructor(){super("undefined")}getLiteralValueAtPath(){return}};g5=class g5 extends S5{constructor(Z,J,q){super(Z,J,J.declaration,q);this.hasId=!1,this.originalId=null,this.originalVariable=null;let Q=J.declaration;if((Q instanceof W6||Q instanceof K0)&&Q.id)this.hasId=!0,this.originalId=Q.id;else if(Q instanceof l1)this.originalId=Q}addReference(Z){if(!this.hasId)this.name=Z.name}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){let Z=this.getOriginalVariable();if(Z===this)return super.getBaseVariableName();else return Z.getBaseVariableName()}getDirectOriginalVariable(){return this.originalId&&(this.hasId||!(this.originalId.isPossibleTDZ()||this.originalId.variable.isReassigned||this.originalId.variable instanceof oZ||("syntheticNamespace"in this.originalId.variable)))?this.originalId.variable:null}getName(Z){let J=this.getOriginalVariable();if(J===this)return super.getName(Z);else return J.getName(Z)}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let Z=this,J,q=new Set;do q.add(Z),J=Z,Z=J.getDirectOriginalVariable();while(Z instanceof g5&&!q.has(Z));return this.originalVariable=Z||J}};tZ=class tZ extends P5{constructor(Z,J){super(Z);this.context=J,this.variables.set("this",new S5("this",null,F0,J))}addExportDefaultDeclaration(Z,J,q){let Q=new g5(Z,J,q);return this.variables.set("default",Q),Q}addNamespaceMemberAccess(){}deconflict(Z,J,q){for(let Q of this.children)Q.deconflict(Z,J,q)}findLexicalBoundary(){return this}findVariable(Z){let J=this.variables.get(Z)||this.accessedOutsideVariables.get(Z);if(J)return J;let q=this.context.traceVariable(Z)||this.parent.findVariable(Z);if(q instanceof o4)this.accessedOutsideVariables.set(Z,q);return q}};bY=class bY extends Z1{bind(){this.variable=this.scope.findVariable("this")}deoptimizePath(Z){this.variable.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.variable.deoptimizeThisOnInteractionAtPath(Z.thisArg===this?{...Z,thisArg:this.variable}:Z,J,q)}hasEffectsOnInteractionAtPath(Z,J,q){if(Z.length===0)return J.type!==E1;return this.variable.hasEffectsOnInteractionAtPath(Z,J,q)}include(){if(!this.included)this.included=!0,this.context.includeVariableInModule(this.variable)}initialise(){if(this.alias=this.scope.findLexicalBoundary()instanceof tZ?this.context.moduleContext:null,this.alias==="undefined")this.context.warn({code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:"https://rollupjs.org/guide/en/#error-this-is-undefined"},this.start)}render(Z){if(this.alias!==null)Z.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}};xY=class xY extends Z1{hasEffects(){return!0}include(Z,J){this.included=!0,this.argument.include(Z,J),Z.brokenFlow=S8}render(Z,J){if(this.argument.render(Z,J,{preventASI:!0}),this.argument.start===this.start+5)Z.prependLeft(this.start+5," ")}};kY=class kY extends Z1{constructor(){super(...arguments);this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(Z){var J;return(this.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(Z))||!!((J=this.finalizer)===null||J===void 0?void 0:J.hasEffects(Z))}include(Z,J){var q,Q;let Y=(q=this.context.options.treeshake)===null||q===void 0?void 0:q.tryCatchDeoptimization,{brokenFlow:X}=Z;if(!this.directlyIncluded||!Y){if(this.included=!0,this.directlyIncluded=!0,this.block.include(Z,Y?S2:J),Z.includedLabels.size>0)this.includedLabelsAfterBlock=[...Z.includedLabels];Z.brokenFlow=X}else if(this.includedLabelsAfterBlock)for(let z of this.includedLabelsAfterBlock)Z.includedLabels.add(z);if(this.handler!==null)this.handler.include(Z,J),Z.brokenFlow=X;(Q=this.finalizer)===null||Q===void 0||Q.include(Z,J)}};MB={"!":(Z)=>!Z,"+":(Z)=>+Z,"-":(Z)=>-Z,delete:()=>x1,typeof:(Z)=>typeof Z,void:()=>{return},"~":(Z)=>~Z};fY=class fY extends Z1{getLiteralValueAtPath(Z,J,q){if(Z.length>0)return x1;let Q=this.argument.getLiteralValueAtPath($1,J,q);if(typeof Q==="symbol")return x1;return MB[this.operator](Q)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();if(this.operator==="typeof"&&this.argument instanceof l1)return!1;return this.argument.hasEffects(Z)||this.operator==="delete"&&this.argument.hasEffectsOnInteractionAtPath($1,wZ,Z)}hasEffectsOnInteractionAtPath(Z,{type:J}){return J!==E1||Z.length>(this.operator==="void"?0:1)}applyDeoptimizations(){if(this.deoptimized=!0,this.operator==="delete")this.argument.deoptimizePath($1),this.context.requestTreeshakingPass()}};vY=class vY extends Z1{hasEffects(){return!0}include(Z){super.include(Z,!0)}};hY=class hY extends Z1{hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();return this.argument.hasEffectsAsAssignmentTarget(Z,!0)}hasEffectsOnInteractionAtPath(Z,{type:J}){return Z.length>1||J!==E1}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0,this.argument.includeAsAssignmentTarget(Z,J,!0)}initialise(){this.argument.setAssignedValue(Y1)}render(Z,J){let{exportNamesByVariable:q,format:Q,snippets:{_:Y}}=J;if(this.argument.render(Z,J),Q==="system"){let X=this.argument.variable,z=q.get(X);if(z)if(this.prefix)if(z.length===1)hZ(X,this.start,this.end,Z,J);else v2(X,this.start,this.end,this.parent.type!==N5,Z,J);else{let V=this.operator[0];ej(X,this.start,this.end,this.parent.type!==N5,Z,J,`${Y}${V}${Y}1`)}}}applyDeoptimizations(){if(this.deoptimized=!0,this.argument.deoptimizePath($1),this.argument instanceof l1){let Z=this.scope.findVariable(this.argument.name);Z.isReassigned=!0}this.context.requestTreeshakingPass()}};eZ=class eZ extends Z1{deoptimizePath(){for(let Z of this.declarations)Z.deoptimizePath($1)}hasEffectsOnInteractionAtPath(){return!1}include(Z,J,{asSingleStatement:q}=n1){this.included=!0;for(let Q of this.declarations){if(J||Q.shouldBeIncluded(Z))Q.include(Z,J);if(q)Q.id.include(Z,J)}}initialise(){for(let Z of this.declarations)Z.declareDeclarator(this.kind)}render(Z,J,q=n1){if(HB(this.declarations,J.exportNamesByVariable)){for(let Q of this.declarations)Q.render(Z,J);if(!q.isNoStatement&&Z.original.charCodeAt(this.end-1)!==59)Z.appendLeft(this.end,";")}else this.renderReplacedDeclarations(Z,J)}applyDeoptimizations(){}renderDeclarationEnd(Z,J,q,Q,Y,X,z){if(Z.original.charCodeAt(this.end-1)===59)Z.remove(this.end-1,this.end);if(J+=";",q!==null){if(Z.original.charCodeAt(Q-1)===10&&(Z.original.charCodeAt(this.end)===10||Z.original.charCodeAt(this.end)===13)){if(Q--,Z.original.charCodeAt(Q)===13)Q--}if(Q===q+1)Z.overwrite(q,Y,J);else Z.overwrite(q,q+1,J),Z.remove(Q,Y)}else Z.appendLeft(Y,J);if(X.length>0)Z.appendLeft(Y,` ${b8(X,z)};`)}renderReplacedDeclarations(Z,J){let q=f2(this.declarations,Z,this.start+this.kind.length,this.end-(Z.original.charCodeAt(this.end-1)===59?1:0)),Q,Y;Y=W8(Z.original,this.start+this.kind.length);let X=Y-1;Z.remove(this.start,X);let z=!1,V=!1,W="",K,$,H=[],M=FB(q,J,H);for(let{node:O,start:j,separator:L,contentEnd:I,end:y}of q){if(!O.included){Z.remove(j,y);continue}if(O.render(Z,J),K="",$="",!O.id.included||O.id instanceof l1&&gY(O.id.variable,J.exportNamesByVariable)){if(V)W+=";";z=!1}else{if(M&&M===O.id.variable){let _=o1(Z.original,"=",O.id.end);hZ(M,W8(Z.original,_+1),L===null?I:L,Z,J)}if(z)W+=",";else{if(V)W+=";";K+=`${this.kind} `,z=!0}}if(Y===X+1)Z.overwrite(X,Y,W+K);else Z.overwrite(X,X+1,W),Z.appendLeft(Y,K);Q=I,Y=y,V=!0,X=L,W=$}this.renderDeclarationEnd(Z,W,X,Q,Y,H,J)}};mY=class mY extends Z1{declareDeclarator(Z){this.id.declare(Z,this.init||F0)}deoptimizePath(Z){this.id.deoptimizePath(Z)}hasEffects(Z){var J;let q=(J=this.init)===null||J===void 0?void 0:J.hasEffects(Z);return this.id.markDeclarationReached(),q||this.id.hasEffects(Z)}include(Z,J){var q;if(this.included=!0,(q=this.init)===null||q===void 0||q.include(Z,J),this.id.markDeclarationReached(),J||this.id.shouldBeIncluded(Z))this.id.include(Z,J)}render(Z,J){let{exportNamesByVariable:q,snippets:{_:Q}}=J,Y=this.id.included;if(Y)this.id.render(Z,J);else{let X=o1(Z.original,"=",this.id.end);Z.remove(this.start,W8(Z.original,X+1))}if(this.init)this.init.render(Z,J,Y?n1:{renderedSurroundingElement:N5});else if(this.id instanceof l1&&gY(this.id.variable,q))Z.appendLeft(this.end,`${Q}=${Q}void 0`)}applyDeoptimizations(){}};uY=class uY extends Z1{hasEffects(Z){if(this.test.hasEffects(Z))return!0;let{brokenFlow:J,ignore:{breaks:q,continues:Q}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=q,Z.ignore.continues=Q,Z.brokenFlow=J,!1}include(Z,J){this.included=!0,this.test.include(Z,J);let{brokenFlow:q}=Z;this.body.include(Z,J,{asSingleStatement:!0}),Z.brokenFlow=q}};dY=class dY extends Z1{hasEffects(Z){var J;if(!this.deoptimized)this.applyDeoptimizations();return!(Z.ignore.returnYield&&!((J=this.argument)===null||J===void 0?void 0:J.hasEffects(Z)))}render(Z,J){if(this.argument){if(this.argument.render(Z,J,{preventASI:!0}),this.argument.start===this.start+5)Z.prependLeft(this.start+5," ")}}};fQ={ArrayExpression:E2,ArrayPattern:b2,ArrowFunctionExpression:vZ,AssignmentExpression:h2,AssignmentPattern:g2,AwaitExpression:d2,BinaryExpression:l2,BlockStatement:W0,BreakStatement:c2,CallExpression:a2,CatchClause:r2,ChainExpression:o2,ClassBody:e2,ClassDeclaration:K0,ClassExpression:JY,ConditionalExpression:qY,ContinueStatement:QY,DoWhileStatement:YY,EmptyStatement:XY,ExportAllDeclaration:q7,ExportDefaultDeclaration:R0,ExportNamedDeclaration:cZ,ExportSpecifier:zY,ExpressionStatement:N0,ForInStatement:VY,ForOfStatement:WY,ForStatement:KY,FunctionDeclaration:W6,FunctionExpression:$Y,Identifier:l1,IfStatement:pZ,ImportDeclaration:iZ,ImportDefaultSpecifier:GY,ImportExpression:MY,ImportNamespaceSpecifier:HY,ImportSpecifier:FY,LabeledStatement:LY,Literal:V6,LogicalExpression:wY,MemberExpression:y8,MetaProperty:OY,MethodDefinition:y4,NewExpression:NY,ObjectExpression:RY,ObjectPattern:gZ,PrivateIdentifier:CY,Program:aZ,Property:IY,PropertyDefinition:_Y,RestElement:fZ,ReturnStatement:DY,SequenceExpression:TY,SpreadElement:z6,StaticBlock:AY,Super:PY,SwitchCase:sZ,SwitchStatement:SY,TaggedTemplateExpression:yY,TemplateElement:EY,TemplateLiteral:rZ,ThisExpression:bY,ThrowStatement:xY,TryStatement:kY,UnaryExpression:fY,UnknownNode:vY,UpdateExpression:hY,VariableDeclaration:eZ,VariableDeclarator:mY,WhileStatement:uY,YieldExpression:dY};lY=class lY extends $8{constructor(Z){super(K6);this.module=Z}include(){super.include(),this.module.needsExportShim=!0}};Q6=class Q6 extends $8{constructor(Z){super(Z.getModuleName());this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=Z,this.module=Z.module}addReference(Z){this.references.push(Z),this.name=Z.name}getMemberVariables(){if(this.memberVariables)return this.memberVariables;let Z=Object.create(null);for(let J of this.context.getExports().concat(this.context.getReexports()))if(J[0]!=="*"&&J!==this.module.info.syntheticNamedExports){let q=this.context.traceExport(J);if(q)Z[J]=q}return this.memberVariables=Z}include(){this.included=!0,this.context.includeAllExports()}prepare(Z){if(this.mergedNamespaces.length>0)this.module.scope.addAccessedGlobals([b4],Z)}renderBlock(Z){let{exportNamesByVariable:J,format:q,freeze:Q,indent:Y,namespaceToStringTag:X,snippets:{_:z,cnst:V,getObject:W,getPropertyAccess:K,n:$,s:H}}=Z,M=this.getMemberVariables(),O=Object.entries(M).map(([I,y])=>{if(this.referencedEarly||y.isReassigned)return[null,`get ${I}${z}()${z}{${z}return ${y.getName(K)}${H}${z}}`];return[I,y.getName(K)]});O.unshift([null,`__proto__:${z}null`]);let j=W(O,{lineBreakIndent:{base:"",t:Y}});if(this.mergedNamespaces.length>0){let I=this.mergedNamespaces.map((y)=>y.getName(K));j=`/*#__PURE__*/${b4}(${j},${z}[${I.join(`,${z}`)}])`}else{if(X)j=`/*#__PURE__*/Object.defineProperty(${j},${z}Symbol.toStringTag,${z}${G0(W)})`;if(Q)j=`/*#__PURE__*/Object.freeze(${j})`}let L=this.getName(K);if(j=`${V} ${L}${z}=${z}${j};`,q==="system"&&J.has(this))j+=`${$}${b8([this],Z)};`;return j}renderFirst(){return this.referencedEarly}setMergedNamespaces(Z){this.mergedNamespaces=Z;let J=this.context.getModuleExecIndex();for(let q of this.references)if(q.context.getModuleExecIndex()<=J){this.referencedEarly=!0;break}}};Q6.prototype.isNamespace=!0;G5=class G5 extends $8{constructor(Z,J,q){super(J);this.baseVariable=null,this.context=Z,this.module=Z.module,this.syntheticNamespace=q}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let Z=this.syntheticNamespace;while(Z instanceof g5||Z instanceof G5){if(Z instanceof g5){let J=Z.getOriginalVariable();if(J===Z)break;Z=J}if(Z instanceof G5)Z=Z.syntheticNamespace}return this.baseVariable=Z}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(Z){return`${this.syntheticNamespace.getName(Z)}${Z(this.name)}`}include(){this.included=!0,this.context.includeVariableInModule(this.syntheticNamespace)}setRenderNames(Z,J){super.setRenderNames(Z,J)}};(function(Z){Z[Z.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",Z[Z.ANALYSE=1]="ANALYSE",Z[Z.GENERATE=2]="GENERATE"})(X8||(X8={}));U0=new Map;s1=x4,i1=x4,RB=["load","resolveDynamicImport","resolveId","transform"];vQ={identifier:null,localName:K6};SB={assert:!0,buffer:!0,console:!0,constants:!0,domain:!0,events:!0,http:!0,https:!0,os:!0,path:!0,process:!0,punycode:!0,querystring:!0,stream:!0,string_decoder:!0,timers:!0,tty:!0,url:!0,util:!0,vm:!0,zlib:!0};sB={amd:yB,cjs:EB,es:xB,iife:hB,system:gB,umd:aB};tB={amd:G4,cjs:G4,es:mQ,iife:G4,system:mQ,umd:G4};JM=/[\\'\r\n\u2028\u2029]/,qM=/(['\r\n\u2028\u2029])/g,QM=/\\/g;q3=Symbol("bundleKeys"),eY={type:"placeholder"};uQ=[".js",".jsx",".ts",".tsx"];jM=/[?#]/;pQ=/^(?!\d)[\w$]+$/;PM=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239],JX=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],v9={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},yM={5:h9,"5module":h9+" export import",6:h9+" const class extends export import super"},EM=/^in(stanceof)?$/,bM=new RegExp("["+qX+"]"),xM=new RegExp("["+qX+SM+"]");L5={beforeExpr:!0},z5={startsExpr:!0},Q3={};R={num:new C1("num",z5),regexp:new C1("regexp",z5),string:new C1("string",z5),name:new C1("name",z5),privateId:new C1("privateId",z5),eof:new C1("eof"),bracketL:new C1("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new C1("]"),braceL:new C1("{",{beforeExpr:!0,startsExpr:!0}),braceR:new C1("}"),parenL:new C1("(",{beforeExpr:!0,startsExpr:!0}),parenR:new C1(")"),comma:new C1(",",L5),semi:new C1(";",L5),colon:new C1(":",L5),dot:new C1("."),question:new C1("?",L5),questionDot:new C1("?."),arrow:new C1("=>",L5),template:new C1("template"),invalidTemplate:new C1("invalidTemplate"),ellipsis:new C1("...",L5),backQuote:new C1("`",z5),dollarBraceL:new C1("${",{beforeExpr:!0,startsExpr:!0}),eq:new C1("=",{beforeExpr:!0,isAssign:!0}),assign:new C1("_=",{beforeExpr:!0,isAssign:!0}),incDec:new C1("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new C1("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:F5("||",1),logicalAND:F5("&&",2),bitwiseOR:F5("|",3),bitwiseXOR:F5("^",4),bitwiseAND:F5("&",5),equality:F5("==/!=/===/!==",6),relational:F5("</>/<=/>=",7),bitShift:F5("<</>>/>>>",8),plusMin:new C1("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:F5("%",10),star:F5("*",10),slash:F5("/",10),starstar:new C1("**",{beforeExpr:!0}),coalesce:F5("??",1),_break:w1("break"),_case:w1("case",L5),_catch:w1("catch"),_continue:w1("continue"),_debugger:w1("debugger"),_default:w1("default",L5),_do:w1("do",{isLoop:!0,beforeExpr:!0}),_else:w1("else",L5),_finally:w1("finally"),_for:w1("for",{isLoop:!0}),_function:w1("function",z5),_if:w1("if"),_return:w1("return",L5),_switch:w1("switch"),_throw:w1("throw",L5),_try:w1("try"),_var:w1("var"),_const:w1("const"),_while:w1("while",{isLoop:!0}),_with:w1("with"),_new:w1("new",{beforeExpr:!0,startsExpr:!0}),_this:w1("this",z5),_super:w1("super",z5),_class:w1("class",z5),_extends:w1("extends",L5),_export:w1("export"),_import:w1("import",z5),_null:w1("null",z5),_true:w1("true",z5),_false:w1("false",z5),_in:w1("in",{beforeExpr:!0,binop:7}),_instanceof:w1("instanceof",{beforeExpr:!0,binop:7}),_typeof:w1("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w1("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w1("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R5=/\r\n?|\n|\u2028|\u2029/,kM=new RegExp(R5.source,"g");YX=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,O5=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,XX=Object.prototype,fM=XX.hasOwnProperty,vM=XX.toString,_0=Object.hasOwn||function(Z,J){return fM.call(Z,J)},sQ=Array.isArray||function(Z){return vM.call(Z)==="[object Array]"};hM=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;B0.prototype.offset=function(J){return new B0(this.line,this.column+J)};WZ={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};z3=M0|B6|D0;m5={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};c1.prototype.parse=function(){var J=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(J)};m5.inFunction.get=function(){return(this.currentVarScope().flags&B6)>0};m5.inGenerator.get=function(){return(this.currentVarScope().flags&VX)>0&&!this.currentVarScope().inClassFieldInit};m5.inAsync.get=function(){return(this.currentVarScope().flags&Y3)>0&&!this.currentVarScope().inClassFieldInit};m5.canAwait.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var J=this.scopeStack[Z];if(J.inClassFieldInit||J.flags&D0)return!1;if(J.flags&B6)return(J.flags&Y3)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};m5.allowSuper.get=function(){var Z=this.currentThisScope(),J=Z.flags,q=Z.inClassFieldInit;return(J&X3)>0||q||this.options.allowSuperOutsideMethod};m5.allowDirectSuper.get=function(){return(this.currentThisScope().flags&$X)>0};m5.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};m5.allowNewDotTarget.get=function(){var Z=this.currentThisScope(),J=Z.flags,q=Z.inClassFieldInit;return(J&(B6|D0))>0||q};m5.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&D0)>0};c1.extend=function(){var J=[],q=arguments.length;while(q--)J[q]=arguments[q];var Q=this;for(var Y=0;Y<J.length;Y++)Q=J[Y](Q);return Q};c1.parse=function(J,q){return new this(q,J).parse()};c1.parseExpressionAt=function(J,q,Q){var Y=new this(Q,J,q);return Y.nextToken(),Y.parseExpression()};c1.tokenizer=function(J,q){return new this(q,J)};Object.defineProperties(c1.prototype,m5);Y5=c1.prototype,uM=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Y5.strictDirective=function(Z){if(this.options.ecmaVersion<5)return!1;for(;;){O5.lastIndex=Z,Z+=O5.exec(this.input)[0].length;var J=uM.exec(this.input.slice(Z));if(!J)return!1;if((J[1]||J[2])==="use strict"){O5.lastIndex=Z+J[0].length;var q=O5.exec(this.input),Q=q.index+q[0].length,Y=this.input.charAt(Q);return Y===";"||Y==="}"||R5.test(q[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(Q+1)==="=")}if(Z+=J[0].length,O5.lastIndex=Z,Z+=O5.exec(this.input)[0].length,this.input[Z]===";")Z++}};Y5.eat=function(Z){if(this.type===Z)return this.next(),!0;else return!1};Y5.isContextual=function(Z){return this.type===R.name&&this.value===Z&&!this.containsEsc};Y5.eatContextual=function(Z){if(!this.isContextual(Z))return!1;return this.next(),!0};Y5.expectContextual=function(Z){if(!this.eatContextual(Z))this.unexpected()};Y5.canInsertSemicolon=function(){return this.type===R.eof||this.type===R.braceR||R5.test(this.input.slice(this.lastTokEnd,this.start))};Y5.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};Y5.semicolon=function(){if(!this.eat(R.semi)&&!this.insertSemicolon())this.unexpected()};Y5.afterTrailingComma=function(Z,J){if(this.type===Z){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!J)this.next();return!0}};Y5.expect=function(Z){this.eat(Z)||this.unexpected()};Y5.unexpected=function(Z){this.raise(Z!=null?Z:this.start,"Unexpected token")};Y5.checkPatternErrors=function(Z,J){if(!Z)return;if(Z.trailingComma>-1)this.raiseRecoverable(Z.trailingComma,"Comma is not permitted after the rest element");var q=J?Z.parenthesizedAssign:Z.parenthesizedBind;if(q>-1)this.raiseRecoverable(q,"Parenthesized pattern")};Y5.checkExpressionErrors=function(Z,J){if(!Z)return!1;var{shorthandAssign:q,doubleProto:Q}=Z;if(!J)return q>=0||Q>=0;if(q>=0)this.raise(q,"Shorthand property assignments are valid only in destructuring patterns");if(Q>=0)this.raiseRecoverable(Q,"Redefinition of __proto__ property")};Y5.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};Y5.isSimpleAssignTarget=function(Z){if(Z.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(Z.expression);return Z.type==="Identifier"||Z.type==="MemberExpression"};z1=c1.prototype;z1.parseTopLevel=function(Z){var J=Object.create(null);if(!Z.body)Z.body=[];while(this.type!==R.eof){var q=this.parseStatement(null,!0,J);Z.body.push(q)}if(this.inModule)for(var Q=0,Y=Object.keys(this.undefinedExports);Q<Y.length;Q+=1){var X=Y[Q];this.raiseRecoverable(this.undefinedExports[X].start,"Export '"+X+"' is not defined")}return this.adaptDirectivePrologue(Z.body),this.next(),Z.sourceType=this.options.sourceType,this.finishNode(Z,"Program")};K3={kind:"loop"},dM={kind:"switch"};z1.isLet=function(Z){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;O5.lastIndex=this.pos;var J=O5.exec(this.input),q=this.pos+J[0].length,Q=this.input.charCodeAt(q);if(Q===91||Q===92||Q>55295&&Q<56320)return!0;if(Z)return!1;if(Q===123)return!0;if(r5(Q,!0)){var Y=q+1;while($6(Q=this.input.charCodeAt(Y),!0))++Y;if(Q===92||Q>55295&&Q<56320)return!0;var X=this.input.slice(q,Y);if(!EM.test(X))return!0}return!1};z1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;O5.lastIndex=this.pos;var Z=O5.exec(this.input),J=this.pos+Z[0].length,q;return!R5.test(this.input.slice(this.pos,J))&&this.input.slice(J,J+8)==="function"&&(J+8===this.input.length||!($6(q=this.input.charCodeAt(J+8))||q>55295&&q<56320))};z1.parseStatement=function(Z,J,q){var Q=this.type,Y=this.startNode(),X;if(this.isLet(Z))Q=R._var,X="let";switch(Q){case R._break:case R._continue:return this.parseBreakContinueStatement(Y,Q.keyword);case R._debugger:return this.parseDebuggerStatement(Y);case R._do:return this.parseDoStatement(Y);case R._for:return this.parseForStatement(Y);case R._function:if(Z&&(this.strict||Z!=="if"&&Z!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!Z);case R._class:if(Z)this.unexpected();return this.parseClass(Y,!0);case R._if:return this.parseIfStatement(Y);case R._return:return this.parseReturnStatement(Y);case R._switch:return this.parseSwitchStatement(Y);case R._throw:return this.parseThrowStatement(Y);case R._try:return this.parseTryStatement(Y);case R._const:case R._var:if(X=X||this.value,Z&&X!=="var")this.unexpected();return this.parseVarStatement(Y,X);case R._while:return this.parseWhileStatement(Y);case R._with:return this.parseWithStatement(Y);case R.braceL:return this.parseBlock(!0,Y);case R.semi:return this.parseEmptyStatement(Y);case R._export:case R._import:if(this.options.ecmaVersion>10&&Q===R._import){O5.lastIndex=this.pos;var z=O5.exec(this.input),V=this.pos+z[0].length,W=this.input.charCodeAt(V);if(W===40||W===46)return this.parseExpressionStatement(Y,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!J)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return Q===R._import?this.parseImport(Y):this.parseExport(Y,q);default:if(this.isAsyncFunction()){if(Z)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!0,!Z)}var K=this.value,$=this.parseExpression();if(Q===R.name&&$.type==="Identifier"&&this.eat(R.colon))return this.parseLabeledStatement(Y,K,$,Z);else return this.parseExpressionStatement(Y,$)}};z1.parseBreakContinueStatement=function(Z,J){var q=J==="break";if(this.next(),this.eat(R.semi)||this.insertSemicolon())Z.label=null;else if(this.type!==R.name)this.unexpected();else Z.label=this.parseIdent(),this.semicolon();var Q=0;for(;Q<this.labels.length;++Q){var Y=this.labels[Q];if(Z.label==null||Y.name===Z.label.name){if(Y.kind!=null&&(q||Y.kind==="loop"))break;if(Z.label&&q)break}}if(Q===this.labels.length)this.raise(Z.start,"Unsyntactic "+J);return this.finishNode(Z,q?"BreakStatement":"ContinueStatement")};z1.parseDebuggerStatement=function(Z){return this.next(),this.semicolon(),this.finishNode(Z,"DebuggerStatement")};z1.parseDoStatement=function(Z){if(this.next(),this.labels.push(K3),Z.body=this.parseStatement("do"),this.labels.pop(),this.expect(R._while),Z.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(R.semi);else this.semicolon();return this.finishNode(Z,"DoWhileStatement")};z1.parseForStatement=function(Z){this.next();var J=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K3),this.enterScope(0),this.expect(R.parenL),this.type===R.semi){if(J>-1)this.unexpected(J);return this.parseFor(Z,null)}var q=this.isLet();if(this.type===R._var||this.type===R._const||q){var Q=this.startNode(),Y=q?"let":this.value;if(this.next(),this.parseVar(Q,!0,Y),this.finishNode(Q,"VariableDeclaration"),(this.type===R._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Q.declarations.length===1){if(this.options.ecmaVersion>=9)if(this.type===R._in){if(J>-1)this.unexpected(J)}else Z.await=J>-1;return this.parseForIn(Z,Q)}if(J>-1)this.unexpected(J);return this.parseFor(Z,Q)}var X=this.isContextual("let"),z=!1,V=new W7,W=this.parseExpression(J>-1?"await":!0,V);if(this.type===R._in||(z=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(this.options.ecmaVersion>=9)if(this.type===R._in){if(J>-1)this.unexpected(J)}else Z.await=J>-1;if(X&&z)this.raise(W.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(W,!1,V),this.checkLValPattern(W),this.parseForIn(Z,W)}else this.checkExpressionErrors(V,!0);if(J>-1)this.unexpected(J);return this.parseFor(Z,W)};z1.parseFunctionStatement=function(Z,J,q){return this.next(),this.parseFunction(Z,Z0|(q?0:KZ),!1,J)};z1.parseIfStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),Z.consequent=this.parseStatement("if"),Z.alternate=this.eat(R._else)?this.parseStatement("if"):null,this.finishNode(Z,"IfStatement")};z1.parseReturnStatement=function(Z){if(!this.inFunction&&!this.options.allowReturnOutsideFunction)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(R.semi)||this.insertSemicolon())Z.argument=null;else Z.argument=this.parseExpression(),this.semicolon();return this.finishNode(Z,"ReturnStatement")};z1.parseSwitchStatement=function(Z){this.next(),Z.discriminant=this.parseParenExpression(),Z.cases=[],this.expect(R.braceL),this.labels.push(dM),this.enterScope(0);var J;for(var q=!1;this.type!==R.braceR;)if(this.type===R._case||this.type===R._default){var Q=this.type===R._case;if(J)this.finishNode(J,"SwitchCase");if(Z.cases.push(J=this.startNode()),J.consequent=[],this.next(),Q)J.test=this.parseExpression();else{if(q)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");q=!0,J.test=null}this.expect(R.colon)}else{if(!J)this.unexpected();J.consequent.push(this.parseStatement(null))}if(this.exitScope(),J)this.finishNode(J,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(Z,"SwitchStatement")};z1.parseThrowStatement=function(Z){if(this.next(),R5.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return Z.argument=this.parseExpression(),this.semicolon(),this.finishNode(Z,"ThrowStatement")};lM=[];z1.parseTryStatement=function(Z){if(this.next(),Z.block=this.parseBlock(),Z.handler=null,this.type===R._catch){var J=this.startNode();if(this.next(),this.eat(R.parenL)){J.param=this.parseBindingAtom();var q=J.param.type==="Identifier";this.enterScope(q?KX:0),this.checkLValPattern(J.param,q?UX:a5),this.expect(R.parenR)}else{if(this.options.ecmaVersion<10)this.unexpected();J.param=null,this.enterScope(0)}J.body=this.parseBlock(!1),this.exitScope(),Z.handler=this.finishNode(J,"CatchClause")}if(Z.finalizer=this.eat(R._finally)?this.parseBlock():null,!Z.handler&&!Z.finalizer)this.raise(Z.start,"Missing catch or finally clause");return this.finishNode(Z,"TryStatement")};z1.parseVarStatement=function(Z,J){return this.next(),this.parseVar(Z,!1,J),this.semicolon(),this.finishNode(Z,"VariableDeclaration")};z1.parseWhileStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),this.labels.push(K3),Z.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(Z,"WhileStatement")};z1.parseWithStatement=function(Z){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),Z.object=this.parseParenExpression(),Z.body=this.parseStatement("with"),this.finishNode(Z,"WithStatement")};z1.parseEmptyStatement=function(Z){return this.next(),this.finishNode(Z,"EmptyStatement")};z1.parseLabeledStatement=function(Z,J,q,Q){for(var Y=0,X=this.labels;Y<X.length;Y+=1){var z=X[Y];if(z.name===J)this.raise(q.start,"Label '"+J+"' is already declared")}var V=this.type.isLoop?"loop":this.type===R._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var K=this.labels[W];if(K.statementStart===Z.start)K.statementStart=this.start,K.kind=V;else break}return this.labels.push({name:J,kind:V,statementStart:this.start}),Z.body=this.parseStatement(Q?Q.indexOf("label")===-1?Q+"label":Q:"label"),this.labels.pop(),Z.label=q,this.finishNode(Z,"LabeledStatement")};z1.parseExpressionStatement=function(Z,J){return Z.expression=J,this.semicolon(),this.finishNode(Z,"ExpressionStatement")};z1.parseBlock=function(Z,J,q){if(Z===void 0)Z=!0;if(J===void 0)J=this.startNode();if(J.body=[],this.expect(R.braceL),Z)this.enterScope(0);while(this.type!==R.braceR){var Q=this.parseStatement(null);J.body.push(Q)}if(q)this.strict=!1;if(this.next(),Z)this.exitScope();return this.finishNode(J,"BlockStatement")};z1.parseFor=function(Z,J){return Z.init=J,this.expect(R.semi),Z.test=this.type===R.semi?null:this.parseExpression(),this.expect(R.semi),Z.update=this.type===R.parenR?null:this.parseExpression(),this.expect(R.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,"ForStatement")};z1.parseForIn=function(Z,J){var q=this.type===R._in;if(this.next(),J.type==="VariableDeclaration"&&J.declarations[0].init!=null&&(!q||this.options.ecmaVersion<8||this.strict||J.kind!=="var"||J.declarations[0].id.type!=="Identifier"))this.raise(J.start,(q?"for-in":"for-of")+" loop variable declaration may not have an initializer");return Z.left=J,Z.right=q?this.parseExpression():this.parseMaybeAssign(),this.expect(R.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,q?"ForInStatement":"ForOfStatement")};z1.parseVar=function(Z,J,q){Z.declarations=[],Z.kind=q;for(;;){var Q=this.startNode();if(this.parseVarId(Q,q),this.eat(R.eq))Q.init=this.parseMaybeAssign(J);else if(q==="const"&&!(this.type===R._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(Q.id.type!=="Identifier"&&!(J&&(this.type===R._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else Q.init=null;if(Z.declarations.push(this.finishNode(Q,"VariableDeclarator")),!this.eat(R.comma))break}return Z};z1.parseVarId=function(Z,J){Z.id=this.parseBindingAtom(),this.checkLValPattern(Z.id,J==="var"?W3:a5,!1)};z1.parseFunction=function(Z,J,q,Q,Y){if(this.initFunction(Z),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Q){if(this.type===R.star&&J&KZ)this.unexpected();Z.generator=this.eat(R.star)}if(this.options.ecmaVersion>=8)Z.async=!!Q;if(J&Z0){if(Z.id=J&BX&&this.type!==R.name?null:this.parseIdent(),Z.id&&!(J&KZ))this.checkLValSimple(Z.id,this.strict||Z.generator||Z.async?this.treatFunctionsAsVar?W3:a5:GX)}var X=this.yieldPos,z=this.awaitPos,V=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(V3(Z.async,Z.generator)),!(J&Z0))Z.id=this.type===R.name?this.parseIdent():null;return this.parseFunctionParams(Z),this.parseFunctionBody(Z,q,!1,Y),this.yieldPos=X,this.awaitPos=z,this.awaitIdentPos=V,this.finishNode(Z,J&Z0?"FunctionDeclaration":"FunctionExpression")};z1.parseFunctionParams=function(Z){this.expect(R.parenL),Z.params=this.parseBindingList(R.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};z1.parseClass=function(Z,J){this.next();var q=this.strict;this.strict=!0,this.parseClassId(Z,J),this.parseClassSuper(Z);var Q=this.enterClassBody(),Y=this.startNode(),X=!1;Y.body=[],this.expect(R.braceL);while(this.type!==R.braceR){var z=this.parseClassElement(Z.superClass!==null);if(z){if(Y.body.push(z),z.type==="MethodDefinition"&&z.kind==="constructor"){if(X)this.raise(z.start,"Duplicate constructor in the same class");X=!0}else if(z.key&&z.key.type==="PrivateIdentifier"&&cM(Q,z))this.raiseRecoverable(z.key.start,"Identifier '#"+z.key.name+"' has already been declared")}}return this.strict=q,this.next(),Z.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(Z,J?"ClassDeclaration":"ClassExpression")};z1.parseClassElement=function(Z){if(this.eat(R.semi))return null;var J=this.options.ecmaVersion,q=this.startNode(),Q="",Y=!1,X=!1,z="method",V=!1;if(this.eatContextual("static")){if(J>=13&&this.eat(R.braceL))return this.parseClassStaticBlock(q),q;if(this.isClassElementNameStart()||this.type===R.star)V=!0;else Q="static"}if(q.static=V,!Q&&J>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===R.star)&&!this.canInsertSemicolon())X=!0;else Q="async";if(!Q&&(J>=9||!X)&&this.eat(R.star))Y=!0;if(!Q&&!X&&!Y){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())z=W;else Q=W}if(Q)q.computed=!1,q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),q.key.name=Q,this.finishNode(q.key,"Identifier");else this.parseClassElementName(q);if(J<13||this.type===R.parenL||z!=="method"||Y||X){var K=!q.static&&v4(q,"constructor"),$=K&&Z;if(K&&z!=="method")this.raise(q.key.start,"Constructor can't have get/set modifier");q.kind=K?"constructor":z,this.parseClassMethod(q,Y,X,$)}else this.parseClassField(q);return q};z1.isClassElementNameStart=function(){return this.type===R.name||this.type===R.privateId||this.type===R.num||this.type===R.string||this.type===R.bracketL||this.type.keyword};z1.parseClassElementName=function(Z){if(this.type===R.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");Z.computed=!1,Z.key=this.parsePrivateIdent()}else this.parsePropertyName(Z)};z1.parseClassMethod=function(Z,J,q,Q){var Y=Z.key;if(Z.kind==="constructor"){if(J)this.raise(Y.start,"Constructor can't be a generator");if(q)this.raise(Y.start,"Constructor can't be an async method")}else if(Z.static&&v4(Z,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var X=Z.value=this.parseMethod(J,q,Q);if(Z.kind==="get"&&X.params.length!==0)this.raiseRecoverable(X.start,"getter should have no params");if(Z.kind==="set"&&X.params.length!==1)this.raiseRecoverable(X.start,"setter should have exactly one param");if(Z.kind==="set"&&X.params[0].type==="RestElement")this.raiseRecoverable(X.params[0].start,"Setter cannot use rest params");return this.finishNode(Z,"MethodDefinition")};z1.parseClassField=function(Z){if(v4(Z,"constructor"))this.raise(Z.key.start,"Classes can't have a field named 'constructor'");else if(Z.static&&v4(Z,"prototype"))this.raise(Z.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(R.eq)){var J=this.currentThisScope(),q=J.inClassFieldInit;J.inClassFieldInit=!0,Z.value=this.parseMaybeAssign(),J.inClassFieldInit=q}else Z.value=null;return this.semicolon(),this.finishNode(Z,"PropertyDefinition")};z1.parseClassStaticBlock=function(Z){Z.body=[];var J=this.labels;this.labels=[],this.enterScope(D0|X3);while(this.type!==R.braceR){var q=this.parseStatement(null);Z.body.push(q)}return this.next(),this.exitScope(),this.labels=J,this.finishNode(Z,"StaticBlock")};z1.parseClassId=function(Z,J){if(this.type===R.name){if(Z.id=this.parseIdent(),J)this.checkLValSimple(Z.id,a5,!1)}else{if(J===!0)this.unexpected();Z.id=null}};z1.parseClassSuper=function(Z){Z.superClass=this.eat(R._extends)?this.parseExprSubscripts(!1):null};z1.enterClassBody=function(){var Z={declared:Object.create(null),used:[]};return this.privateNameStack.push(Z),Z.declared};z1.exitClassBody=function(){var Z=this.privateNameStack.pop(),J=Z.declared,q=Z.used,Q=this.privateNameStack.length,Y=Q===0?null:this.privateNameStack[Q-1];for(var X=0;X<q.length;++X){var z=q[X];if(!_0(J,z.name))if(Y)Y.used.push(z);else this.raiseRecoverable(z.start,"Private field '#"+z.name+"' must be declared in an enclosing class")}};z1.parseExport=function(Z,J){if(this.next(),this.eat(R.star)){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))Z.exported=this.parseModuleExportName(),this.checkExport(J,Z.exported,this.lastTokStart);else Z.exported=null;if(this.expectContextual("from"),this.type!==R.string)this.unexpected();return Z.source=this.parseExprAtom(),this.semicolon(),this.finishNode(Z,"ExportAllDeclaration")}if(this.eat(R._default)){this.checkExport(J,"default",this.lastTokStart);var q;if(this.type===R._function||(q=this.isAsyncFunction())){var Q=this.startNode();if(this.next(),q)this.next();Z.declaration=this.parseFunction(Q,Z0|BX,!1,q)}else if(this.type===R._class){var Y=this.startNode();Z.declaration=this.parseClass(Y,"nullableID")}else Z.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(Z,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){if(Z.declaration=this.parseStatement(null),Z.declaration.type==="VariableDeclaration")this.checkVariableExport(J,Z.declaration.declarations);else this.checkExport(J,Z.declaration.id,Z.declaration.id.start);Z.specifiers=[],Z.source=null}else{if(Z.declaration=null,Z.specifiers=this.parseExportSpecifiers(J),this.eatContextual("from")){if(this.type!==R.string)this.unexpected();Z.source=this.parseExprAtom()}else{for(var X=0,z=Z.specifiers;X<z.length;X+=1){var V=z[X];if(this.checkUnreserved(V.local),this.checkLocalExport(V.local),V.local.type==="Literal")this.raise(V.local.start,"A string literal cannot be used as an exported binding without `from`.")}Z.source=null}this.semicolon()}return this.finishNode(Z,"ExportNamedDeclaration")};z1.checkExport=function(Z,J,q){if(!Z)return;if(typeof J!=="string")J=J.type==="Identifier"?J.name:J.value;if(_0(Z,J))this.raiseRecoverable(q,"Duplicate export '"+J+"'");Z[J]=!0};z1.checkPatternExport=function(Z,J){var q=J.type;if(q==="Identifier")this.checkExport(Z,J,J.start);else if(q==="ObjectPattern")for(var Q=0,Y=J.properties;Q<Y.length;Q+=1){var X=Y[Q];this.checkPatternExport(Z,X)}else if(q==="ArrayPattern")for(var z=0,V=J.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkPatternExport(Z,W)}else if(q==="Property")this.checkPatternExport(Z,J.value);else if(q==="AssignmentPattern")this.checkPatternExport(Z,J.left);else if(q==="RestElement")this.checkPatternExport(Z,J.argument);else if(q==="ParenthesizedExpression")this.checkPatternExport(Z,J.expression)};z1.checkVariableExport=function(Z,J){if(!Z)return;for(var q=0,Q=J;q<Q.length;q+=1){var Y=Q[q];this.checkPatternExport(Z,Y.id)}};z1.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};z1.parseExportSpecifiers=function(Z){var J=[],q=!0;this.expect(R.braceL);while(!this.eat(R.braceR)){if(!q){if(this.expect(R.comma),this.afterTrailingComma(R.braceR))break}else q=!1;var Q=this.startNode();Q.local=this.parseModuleExportName(),Q.exported=this.eatContextual("as")?this.parseModuleExportName():Q.local,this.checkExport(Z,Q.exported,Q.exported.start),J.push(this.finishNode(Q,"ExportSpecifier"))}return J};z1.parseImport=function(Z){if(this.next(),this.type===R.string)Z.specifiers=lM,Z.source=this.parseExprAtom();else Z.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),Z.source=this.type===R.string?this.parseExprAtom():this.unexpected();return this.semicolon(),this.finishNode(Z,"ImportDeclaration")};z1.parseImportSpecifiers=function(){var Z=[],J=!0;if(this.type===R.name){var q=this.startNode();if(q.local=this.parseIdent(),this.checkLValSimple(q.local,a5),Z.push(this.finishNode(q,"ImportDefaultSpecifier")),!this.eat(R.comma))return Z}if(this.type===R.star){var Q=this.startNode();return this.next(),this.expectContextual("as"),Q.local=this.parseIdent(),this.checkLValSimple(Q.local,a5),Z.push(this.finishNode(Q,"ImportNamespaceSpecifier")),Z}this.expect(R.braceL);while(!this.eat(R.braceR)){if(!J){if(this.expect(R.comma),this.afterTrailingComma(R.braceR))break}else J=!1;var Y=this.startNode();if(Y.imported=this.parseModuleExportName(),this.eatContextual("as"))Y.local=this.parseIdent();else this.checkUnreserved(Y.imported),Y.local=Y.imported;this.checkLValSimple(Y.local,a5),Z.push(this.finishNode(Y,"ImportSpecifier"))}return Z};z1.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===R.string){var Z=this.parseLiteral(this.value);if(hM.test(Z.value))this.raise(Z.start,"An export name cannot include a lone surrogate.");return Z}return this.parseIdent(!0)};z1.adaptDirectivePrologue=function(Z){for(var J=0;J<Z.length&&this.isDirectiveCandidate(Z[J]);++J)Z[J].directive=Z[J].expression.raw.slice(1,-1)};z1.isDirectiveCandidate=function(Z){return Z.type==="ExpressionStatement"&&Z.expression.type==="Literal"&&typeof Z.expression.value==="string"&&(this.input[Z.start]==='"'||this.input[Z.start]==="'")};y5=c1.prototype;y5.toAssignable=function(Z,J,q){if(this.options.ecmaVersion>=6&&Z)switch(Z.type){case"Identifier":if(this.inAsync&&Z.name==="await")this.raise(Z.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(Z.type="ObjectPattern",q)this.checkPatternErrors(q,!0);for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];if(this.toAssignable(X,J),X.type==="RestElement"&&(X.argument.type==="ArrayPattern"||X.argument.type==="ObjectPattern"))this.raise(X.argument.start,"Unexpected token")}break;case"Property":if(Z.kind!=="init")this.raise(Z.key.start,"Object pattern can't contain getter or setter");this.toAssignable(Z.value,J);break;case"ArrayExpression":if(Z.type="ArrayPattern",q)this.checkPatternErrors(q,!0);this.toAssignableList(Z.elements,J);break;case"SpreadElement":if(Z.type="RestElement",this.toAssignable(Z.argument,J),Z.argument.type==="AssignmentPattern")this.raise(Z.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(Z.operator!=="=")this.raise(Z.left.end,"Only '=' operator can be used for specifying default value.");Z.type="AssignmentPattern",delete Z.operator,this.toAssignable(Z.left,J);break;case"ParenthesizedExpression":this.toAssignable(Z.expression,J,q);break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!J)break;default:this.raise(Z.start,"Assigning to rvalue")}else if(q)this.checkPatternErrors(q,!0);return Z};y5.toAssignableList=function(Z,J){var q=Z.length;for(var Q=0;Q<q;Q++){var Y=Z[Q];if(Y)this.toAssignable(Y,J)}if(q){var X=Z[q-1];if(this.options.ecmaVersion===6&&J&&X&&X.type==="RestElement"&&X.argument.type!=="Identifier")this.unexpected(X.argument.start)}return Z};y5.parseSpread=function(Z){var J=this.startNode();return this.next(),J.argument=this.parseMaybeAssign(!1,Z),this.finishNode(J,"SpreadElement")};y5.parseRestBinding=function(){var Z=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==R.name)this.unexpected();return Z.argument=this.parseBindingAtom(),this.finishNode(Z,"RestElement")};y5.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case R.bracketL:var Z=this.startNode();return this.next(),Z.elements=this.parseBindingList(R.bracketR,!0,!0),this.finishNode(Z,"ArrayPattern");case R.braceL:return this.parseObj(!0)}return this.parseIdent()};y5.parseBindingList=function(Z,J,q){var Q=[],Y=!0;while(!this.eat(Z)){if(Y)Y=!1;else this.expect(R.comma);if(J&&this.type===R.comma)Q.push(null);else if(q&&this.afterTrailingComma(Z))break;else if(this.type===R.ellipsis){var X=this.parseRestBinding();if(this.parseBindingListItem(X),Q.push(X),this.type===R.comma)this.raise(this.start,"Comma is not permitted after the rest element");this.expect(Z);break}else{var z=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(z),Q.push(z)}}return Q};y5.parseBindingListItem=function(Z){return Z};y5.parseMaybeDefault=function(Z,J,q){if(q=q||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(R.eq))return q;var Q=this.startNodeAt(Z,J);return Q.left=q,Q.right=this.parseMaybeAssign(),this.finishNode(Q,"AssignmentPattern")};y5.checkLValSimple=function(Z,J,q){if(J===void 0)J=f4;var Q=J!==f4;switch(Z.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(Z.name))this.raiseRecoverable(Z.start,(Q?"Binding ":"Assigning to ")+Z.name+" in strict mode");if(Q){if(J===a5&&Z.name==="let")this.raiseRecoverable(Z.start,"let is disallowed as a lexically bound name");if(q){if(_0(q,Z.name))this.raiseRecoverable(Z.start,"Argument name clash");q[Z.name]=!0}if(J!==jX)this.declareName(Z.name,J,Z.start)}break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(Q)this.raiseRecoverable(Z.start,"Binding member expression");break;case"ParenthesizedExpression":if(Q)this.raiseRecoverable(Z.start,"Binding parenthesized expression");return this.checkLValSimple(Z.expression,J,q);default:this.raise(Z.start,(Q?"Binding":"Assigning to")+" rvalue")}};y5.checkLValPattern=function(Z,J,q){if(J===void 0)J=f4;switch(Z.type){case"ObjectPattern":for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];this.checkLValInnerPattern(X,J,q)}break;case"ArrayPattern":for(var z=0,V=Z.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkLValInnerPattern(W,J,q)}break;default:this.checkLValSimple(Z,J,q)}};y5.checkLValInnerPattern=function(Z,J,q){if(J===void 0)J=f4;switch(Z.type){case"Property":this.checkLValInnerPattern(Z.value,J,q);break;case"AssignmentPattern":this.checkLValPattern(Z.left,J,q);break;case"RestElement":this.checkLValPattern(Z.argument,J,q);break;default:this.checkLValPattern(Z,J,q)}};y1={b_stat:new A5("{",!1),b_expr:new A5("{",!0),b_tmpl:new A5("${",!1),p_stat:new A5("(",!1),p_expr:new A5("(",!0),q_tmpl:new A5("`",!0,!0,function(Z){return Z.tryReadTemplateToken()}),f_stat:new A5("function",!1),f_expr:new A5("function",!0),f_expr_gen:new A5("function",!0,!1,null,!0),f_gen:new A5("function",!1,!1,null,!0)},M6=c1.prototype;M6.initialContext=function(){return[y1.b_stat]};M6.curContext=function(){return this.context[this.context.length-1]};M6.braceIsBlock=function(Z){var J=this.curContext();if(J===y1.f_expr||J===y1.f_stat)return!0;if(Z===R.colon&&(J===y1.b_stat||J===y1.b_expr))return!J.isExpr;if(Z===R._return||Z===R.name&&this.exprAllowed)return R5.test(this.input.slice(this.lastTokEnd,this.start));if(Z===R._else||Z===R.semi||Z===R.eof||Z===R.parenR||Z===R.arrow)return!0;if(Z===R.braceL)return J===y1.b_stat;if(Z===R._var||Z===R._const||Z===R.name)return!1;return!this.exprAllowed};M6.inGeneratorContext=function(){for(var Z=this.context.length-1;Z>=1;Z--){var J=this.context[Z];if(J.token==="function")return J.generator}return!1};M6.updateContext=function(Z){var J,q=this.type;if(q.keyword&&Z===R.dot)this.exprAllowed=!1;else if(J=q.updateContext)J.call(this,Z);else this.exprAllowed=q.beforeExpr};M6.overrideContext=function(Z){if(this.curContext()!==Z)this.context[this.context.length-1]=Z};R.parenR.updateContext=R.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var Z=this.context.pop();if(Z===y1.b_stat&&this.curContext().token==="function")Z=this.context.pop();this.exprAllowed=!Z.isExpr};R.braceL.updateContext=function(Z){this.context.push(this.braceIsBlock(Z)?y1.b_stat:y1.b_expr),this.exprAllowed=!0};R.dollarBraceL.updateContext=function(){this.context.push(y1.b_tmpl),this.exprAllowed=!0};R.parenL.updateContext=function(Z){var J=Z===R._if||Z===R._for||Z===R._with||Z===R._while;this.context.push(J?y1.p_stat:y1.p_expr),this.exprAllowed=!0};R.incDec.updateContext=function(){};R._function.updateContext=R._class.updateContext=function(Z){if(Z.beforeExpr&&Z!==R._else&&!(Z===R.semi&&this.curContext()!==y1.p_stat)&&!(Z===R._return&&R5.test(this.input.slice(this.lastTokEnd,this.start)))&&!((Z===R.colon||Z===R.braceL)&&this.curContext()===y1.b_stat))this.context.push(y1.f_expr);else this.context.push(y1.f_stat);this.exprAllowed=!1};R.backQuote.updateContext=function(){if(this.curContext()===y1.q_tmpl)this.context.pop();else this.context.push(y1.q_tmpl);this.exprAllowed=!1};R.star.updateContext=function(Z){if(Z===R._function){var J=this.context.length-1;if(this.context[J]===y1.f_expr)this.context[J]=y1.f_expr_gen;else this.context[J]=y1.f_gen}this.exprAllowed=!0};R.name.updateContext=function(Z){var J=!1;if(this.options.ecmaVersion>=6&&Z!==R.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())J=!0}this.exprAllowed=J};G1=c1.prototype;G1.checkPropClash=function(Z,J,q){if(this.options.ecmaVersion>=9&&Z.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(Z.computed||Z.method||Z.shorthand))return;var Q=Z.key,Y;switch(Q.type){case"Identifier":Y=Q.name;break;case"Literal":Y=String(Q.value);break;default:return}var X=Z.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&X==="init"){if(J.proto)if(q){if(q.doubleProto<0)q.doubleProto=Q.start}else this.raiseRecoverable(Q.start,"Redefinition of __proto__ property");J.proto=!0}return}Y="$"+Y;var z=J[Y];if(z){var V;if(X==="init")V=this.strict&&z.init||z.get||z.set;else V=z.init||z[X];if(V)this.raiseRecoverable(Q.start,"Redefinition of property")}else z=J[Y]={init:!1,get:!1,set:!1};z[X]=!0};G1.parseExpression=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseMaybeAssign(Z,J);if(this.type===R.comma){var X=this.startNodeAt(q,Q);X.expressions=[Y];while(this.eat(R.comma))X.expressions.push(this.parseMaybeAssign(Z,J));return this.finishNode(X,"SequenceExpression")}return Y};G1.parseMaybeAssign=function(Z,J,q){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(Z);else this.exprAllowed=!1;var Q=!1,Y=-1,X=-1,z=-1;if(J)Y=J.parenthesizedAssign,X=J.trailingComma,z=J.doubleProto,J.parenthesizedAssign=J.trailingComma=-1;else J=new W7,Q=!0;var V=this.start,W=this.startLoc;if(this.type===R.parenL||this.type===R.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=Z==="await";var K=this.parseMaybeConditional(Z,J);if(q)K=q.call(this,K,V,W);if(this.type.isAssign){var $=this.startNodeAt(V,W);if($.operator=this.value,this.type===R.eq)K=this.toAssignable(K,!1,J);if(!Q)J.parenthesizedAssign=J.trailingComma=J.doubleProto=-1;if(J.shorthandAssign>=K.start)J.shorthandAssign=-1;if(this.type===R.eq)this.checkLValPattern(K);else this.checkLValSimple(K);if($.left=K,this.next(),$.right=this.parseMaybeAssign(Z),z>-1)J.doubleProto=z;return this.finishNode($,"AssignmentExpression")}else if(Q)this.checkExpressionErrors(J,!0);if(Y>-1)J.parenthesizedAssign=Y;if(X>-1)J.trailingComma=X;return K};G1.parseMaybeConditional=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseExprOps(Z,J);if(this.checkExpressionErrors(J))return Y;if(this.eat(R.question)){var X=this.startNodeAt(q,Q);return X.test=Y,X.consequent=this.parseMaybeAssign(),this.expect(R.colon),X.alternate=this.parseMaybeAssign(Z),this.finishNode(X,"ConditionalExpression")}return Y};G1.parseExprOps=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseMaybeUnary(J,!1,!1,Z);if(this.checkExpressionErrors(J))return Y;return Y.start===q&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,q,Q,-1,Z)};G1.parseExprOp=function(Z,J,q,Q,Y){var X=this.type.binop;if(X!=null&&(!Y||this.type!==R._in)){if(X>Q){var z=this.type===R.logicalOR||this.type===R.logicalAND,V=this.type===R.coalesce;if(V)X=R.logicalAND.binop;var W=this.value;this.next();var K=this.start,$=this.startLoc,H=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),K,$,X,Y),M=this.buildBinary(J,q,Z,H,W,z||V);if(z&&this.type===R.coalesce||V&&(this.type===R.logicalOR||this.type===R.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,J,q,Q,Y)}}return Z};G1.buildBinary=function(Z,J,q,Q,Y,X){if(Q.type==="PrivateIdentifier")this.raise(Q.start,"Private identifier can only be left side of binary expression");var z=this.startNodeAt(Z,J);return z.left=q,z.operator=Y,z.right=Q,this.finishNode(z,X?"LogicalExpression":"BinaryExpression")};G1.parseMaybeUnary=function(Z,J,q,Q){var Y=this.start,X=this.startLoc,z;if(this.isContextual("await")&&this.canAwait)z=this.parseAwait(Q),J=!0;else if(this.type.prefix){var V=this.startNode(),W=this.type===R.incDec;if(V.operator=this.value,V.prefix=!0,this.next(),V.argument=this.parseMaybeUnary(null,!0,W,Q),this.checkExpressionErrors(Z,!0),W)this.checkLValSimple(V.argument);else if(this.strict&&V.operator==="delete"&&V.argument.type==="Identifier")this.raiseRecoverable(V.start,"Deleting local variable in strict mode");else if(V.operator==="delete"&&MX(V.argument))this.raiseRecoverable(V.start,"Private fields can not be deleted");else J=!0;z=this.finishNode(V,W?"UpdateExpression":"UnaryExpression")}else if(!J&&this.type===R.privateId){if(Q||this.privateNameStack.length===0)this.unexpected();if(z=this.parsePrivateIdent(),this.type!==R._in)this.unexpected()}else{if(z=this.parseExprSubscripts(Z,Q),this.checkExpressionErrors(Z))return z;while(this.type.postfix&&!this.canInsertSemicolon()){var K=this.startNodeAt(Y,X);K.operator=this.value,K.prefix=!1,K.argument=z,this.checkLValSimple(z),this.next(),z=this.finishNode(K,"UpdateExpression")}}if(!q&&this.eat(R.starstar))if(J)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,X,z,this.parseMaybeUnary(null,!1,!1,Q),"**",!1);else return z};G1.parseExprSubscripts=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseExprAtom(Z,J);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var X=this.parseSubscripts(Y,q,Q,!1,J);if(Z&&X.type==="MemberExpression"){if(Z.parenthesizedAssign>=X.start)Z.parenthesizedAssign=-1;if(Z.parenthesizedBind>=X.start)Z.parenthesizedBind=-1;if(Z.trailingComma>=X.start)Z.trailingComma=-1}return X};G1.parseSubscripts=function(Z,J,q,Q,Y){var X=this.options.ecmaVersion>=8&&Z.type==="Identifier"&&Z.name==="async"&&this.lastTokEnd===Z.end&&!this.canInsertSemicolon()&&Z.end-Z.start===5&&this.potentialArrowAt===Z.start,z=!1;while(!0){var V=this.parseSubscript(Z,J,q,Q,X,z,Y);if(V.optional)z=!0;if(V===Z||V.type==="ArrowFunctionExpression"){if(z){var W=this.startNodeAt(J,q);W.expression=V,V=this.finishNode(W,"ChainExpression")}return V}Z=V}};G1.parseSubscript=function(Z,J,q,Q,Y,X,z){var V=this.options.ecmaVersion>=11,W=V&&this.eat(R.questionDot);if(Q&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(R.bracketL);if(K||W&&this.type!==R.parenL&&this.type!==R.backQuote||this.eat(R.dot)){var $=this.startNodeAt(J,q);if($.object=Z,K)$.property=this.parseExpression(),this.expect(R.bracketR);else if(this.type===R.privateId&&Z.type!=="Super")$.property=this.parsePrivateIdent();else $.property=this.parseIdent(this.options.allowReserved!=="never");if($.computed=!!K,V)$.optional=W;Z=this.finishNode($,"MemberExpression")}else if(!Q&&this.eat(R.parenL)){var H=new W7,M=this.yieldPos,O=this.awaitPos,j=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var L=this.parseExprList(R.parenR,this.options.ecmaVersion>=8,!1,H);if(Y&&!W&&!this.canInsertSemicolon()&&this.eat(R.arrow)){if(this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=O,this.awaitIdentPos=j,this.parseArrowExpression(this.startNodeAt(J,q),L,!0,z)}this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,this.awaitIdentPos=j||this.awaitIdentPos;var I=this.startNodeAt(J,q);if(I.callee=Z,I.arguments=L,V)I.optional=W;Z=this.finishNode(I,"CallExpression")}else if(this.type===R.backQuote){if(W||X)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(J,q);y.tag=Z,y.quasi=this.parseTemplate({isTagged:!0}),Z=this.finishNode(y,"TaggedTemplateExpression")}return Z};G1.parseExprAtom=function(Z,J){if(this.type===R.slash)this.readRegexp();var q,Q=this.potentialArrowAt===this.start;switch(this.type){case R._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(q=this.startNode(),this.next(),this.type===R.parenL&&!this.allowDirectSuper)this.raise(q.start,"super() call outside constructor of a subclass");if(this.type!==R.dot&&this.type!==R.bracketL&&this.type!==R.parenL)this.unexpected();return this.finishNode(q,"Super");case R._this:return q=this.startNode(),this.next(),this.finishNode(q,"ThisExpression");case R.name:var Y=this.start,X=this.startLoc,z=this.containsEsc,V=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!z&&V.name==="async"&&!this.canInsertSemicolon()&&this.eat(R._function))return this.overrideContext(y1.f_expr),this.parseFunction(this.startNodeAt(Y,X),0,!1,!0,J);if(Q&&!this.canInsertSemicolon()){if(this.eat(R.arrow))return this.parseArrowExpression(this.startNodeAt(Y,X),[V],!1,J);if(this.options.ecmaVersion>=8&&V.name==="async"&&this.type===R.name&&!z&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(V=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(R.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(Y,X),[V],!0,J)}}return V;case R.regexp:var W=this.value;return q=this.parseLiteral(W.value),q.regex={pattern:W.pattern,flags:W.flags},q;case R.num:case R.string:return this.parseLiteral(this.value);case R._null:case R._true:case R._false:return q=this.startNode(),q.value=this.type===R._null?null:this.type===R._true,q.raw=this.type.keyword,this.next(),this.finishNode(q,"Literal");case R.parenL:var K=this.start,$=this.parseParenAndDistinguishExpression(Q,J);if(Z){if(Z.parenthesizedAssign<0&&!this.isSimpleAssignTarget($))Z.parenthesizedAssign=K;if(Z.parenthesizedBind<0)Z.parenthesizedBind=K}return $;case R.bracketL:return q=this.startNode(),this.next(),q.elements=this.parseExprList(R.bracketR,!0,!0,Z),this.finishNode(q,"ArrayExpression");case R.braceL:return this.overrideContext(y1.b_expr),this.parseObj(!1,Z);case R._function:return q=this.startNode(),this.next(),this.parseFunction(q,0);case R._class:return this.parseClass(this.startNode(),!1);case R._new:return this.parseNew();case R.backQuote:return this.parseTemplate();case R._import:if(this.options.ecmaVersion>=11)return this.parseExprImport();else return this.unexpected();default:this.unexpected()}};G1.parseExprImport=function(){var Z=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");var J=this.parseIdent(!0);switch(this.type){case R.parenL:return this.parseDynamicImport(Z);case R.dot:return Z.meta=J,this.parseImportMeta(Z);default:this.unexpected()}};G1.parseDynamicImport=function(Z){if(this.next(),Z.source=this.parseMaybeAssign(),!this.eat(R.parenR)){var J=this.start;if(this.eat(R.comma)&&this.eat(R.parenR))this.raiseRecoverable(J,"Trailing comma is not allowed in import()");else this.unexpected(J)}return this.finishNode(Z,"ImportExpression")};G1.parseImportMeta=function(Z){this.next();var J=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="meta")this.raiseRecoverable(Z.property.start,"The only valid meta property for import is 'import.meta'");if(J)this.raiseRecoverable(Z.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(Z.start,"Cannot use 'import.meta' outside a module");return this.finishNode(Z,"MetaProperty")};G1.parseLiteral=function(Z){var J=this.startNode();if(J.value=Z,J.raw=this.input.slice(this.start,this.end),J.raw.charCodeAt(J.raw.length-1)===110)J.bigint=J.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(J,"Literal")};G1.parseParenExpression=function(){this.expect(R.parenL);var Z=this.parseExpression();return this.expect(R.parenR),Z};G1.parseParenAndDistinguishExpression=function(Z,J){var q=this.start,Q=this.startLoc,Y,X=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var z=this.start,V=this.startLoc,W=[],K=!0,$=!1,H=new W7,M=this.yieldPos,O=this.awaitPos,j;this.yieldPos=0,this.awaitPos=0;while(this.type!==R.parenR)if(K?K=!1:this.expect(R.comma),X&&this.afterTrailingComma(R.parenR,!0)){$=!0;break}else if(this.type===R.ellipsis){if(j=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===R.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,H,this.parseParenItem));var L=this.lastTokEnd,I=this.lastTokEndLoc;if(this.expect(R.parenR),Z&&!this.canInsertSemicolon()&&this.eat(R.arrow))return this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=O,this.parseParenArrowList(q,Q,W,J);if(!W.length||$)this.unexpected(this.lastTokStart);if(j)this.unexpected(j);if(this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,W.length>1)Y=this.startNodeAt(z,V),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",L,I);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(q,Q);return y.expression=Y,this.finishNode(y,"ParenthesizedExpression")}else return Y};G1.parseParenItem=function(Z){return Z};G1.parseParenArrowList=function(Z,J,q,Q){return this.parseArrowExpression(this.startNodeAt(Z,J),q,!1,Q)};pM=[];G1.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var Z=this.startNode(),J=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(R.dot)){Z.meta=J;var q=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="target")this.raiseRecoverable(Z.property.start,"The only valid meta property for new is 'new.target'");if(q)this.raiseRecoverable(Z.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(Z.start,"'new.target' can only be used in functions and class static block");return this.finishNode(Z,"MetaProperty")}var Q=this.start,Y=this.startLoc,X=this.type===R._import;if(Z.callee=this.parseSubscripts(this.parseExprAtom(),Q,Y,!0,!1),X&&Z.callee.type==="ImportExpression")this.raise(Q,"Cannot use new with import()");if(this.eat(R.parenL))Z.arguments=this.parseExprList(R.parenR,this.options.ecmaVersion>=8,!1);else Z.arguments=pM;return this.finishNode(Z,"NewExpression")};G1.parseTemplateElement=function(Z){var J=Z.isTagged,q=this.startNode();if(this.type===R.invalidTemplate){if(!J)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");q.value={raw:this.value,cooked:null}}else q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
43
|
-
`),cooked:this.value};return this.next(),q.tail=this.type===R.backQuote,this.finishNode(q,"TemplateElement")};G1.parseTemplate=function(Z){if(Z===void 0)Z={};var J=Z.isTagged;if(J===void 0)J=!1;var q=this.startNode();this.next(),q.expressions=[];var Q=this.parseTemplateElement({isTagged:J});q.quasis=[Q];while(!Q.tail){if(this.type===R.eof)this.raise(this.pos,"Unterminated template literal");this.expect(R.dollarBraceL),q.expressions.push(this.parseExpression()),this.expect(R.braceR),q.quasis.push(Q=this.parseTemplateElement({isTagged:J}))}return this.next(),this.finishNode(q,"TemplateLiteral")};G1.isAsyncProp=function(Z){return!Z.computed&&Z.key.type==="Identifier"&&Z.key.name==="async"&&(this.type===R.name||this.type===R.num||this.type===R.string||this.type===R.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===R.star)&&!R5.test(this.input.slice(this.lastTokEnd,this.start))};G1.parseObj=function(Z,J){var q=this.startNode(),Q=!0,Y={};q.properties=[],this.next();while(!this.eat(R.braceR)){if(!Q){if(this.expect(R.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(R.braceR))break}else Q=!1;var X=this.parseProperty(Z,J);if(!Z)this.checkPropClash(X,Y,J);q.properties.push(X)}return this.finishNode(q,Z?"ObjectPattern":"ObjectExpression")};G1.parseProperty=function(Z,J){var q=this.startNode(),Q,Y,X,z;if(this.options.ecmaVersion>=9&&this.eat(R.ellipsis)){if(Z){if(q.argument=this.parseIdent(!1),this.type===R.comma)this.raise(this.start,"Comma is not permitted after the rest element");return this.finishNode(q,"RestElement")}if(this.type===R.parenL&&J){if(J.parenthesizedAssign<0)J.parenthesizedAssign=this.start;if(J.parenthesizedBind<0)J.parenthesizedBind=this.start}if(q.argument=this.parseMaybeAssign(!1,J),this.type===R.comma&&J&&J.trailingComma<0)J.trailingComma=this.start;return this.finishNode(q,"SpreadElement")}if(this.options.ecmaVersion>=6){if(q.method=!1,q.shorthand=!1,Z||J)X=this.start,z=this.startLoc;if(!Z)Q=this.eat(R.star)}var V=this.containsEsc;if(this.parsePropertyName(q),!Z&&!V&&this.options.ecmaVersion>=8&&!Q&&this.isAsyncProp(q))Y=!0,Q=this.options.ecmaVersion>=9&&this.eat(R.star),this.parsePropertyName(q,J);else Y=!1;return this.parsePropertyValue(q,Z,Q,Y,X,z,J,V),this.finishNode(q,"Property")};G1.parsePropertyValue=function(Z,J,q,Q,Y,X,z,V){if((q||Q)&&this.type===R.colon)this.unexpected();if(this.eat(R.colon))Z.value=J?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,z),Z.kind="init";else if(this.options.ecmaVersion>=6&&this.type===R.parenL){if(J)this.unexpected();Z.kind="init",Z.method=!0,Z.value=this.parseMethod(q,Q)}else if(!J&&!V&&this.options.ecmaVersion>=5&&!Z.computed&&Z.key.type==="Identifier"&&(Z.key.name==="get"||Z.key.name==="set")&&(this.type!==R.comma&&this.type!==R.braceR&&this.type!==R.eq)){if(q||Q)this.unexpected();Z.kind=Z.key.name,this.parsePropertyName(Z),Z.value=this.parseMethod(!1);var W=Z.kind==="get"?0:1;if(Z.value.params.length!==W){var K=Z.value.start;if(Z.kind==="get")this.raiseRecoverable(K,"getter should have no params");else this.raiseRecoverable(K,"setter should have exactly one param")}else if(Z.kind==="set"&&Z.value.params[0].type==="RestElement")this.raiseRecoverable(Z.value.params[0].start,"Setter cannot use rest params")}else if(this.options.ecmaVersion>=6&&!Z.computed&&Z.key.type==="Identifier"){if(q||Q)this.unexpected();if(this.checkUnreserved(Z.key),Z.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(Z.kind="init",J)Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key));else if(this.type===R.eq&&z){if(z.shorthandAssign<0)z.shorthandAssign=this.start;Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key))}else Z.value=this.copyNode(Z.key);Z.shorthand=!0}else this.unexpected()};G1.parsePropertyName=function(Z){if(this.options.ecmaVersion>=6)if(this.eat(R.bracketL))return Z.computed=!0,Z.key=this.parseMaybeAssign(),this.expect(R.bracketR),Z.key;else Z.computed=!1;return Z.key=this.type===R.num||this.type===R.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};G1.initFunction=function(Z){if(Z.id=null,this.options.ecmaVersion>=6)Z.generator=Z.expression=!1;if(this.options.ecmaVersion>=8)Z.async=!1};G1.parseMethod=function(Z,J,q){var Q=this.startNode(),Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.initFunction(Q),this.options.ecmaVersion>=6)Q.generator=Z;if(this.options.ecmaVersion>=8)Q.async=!!J;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(V3(J,Q.generator)|X3|(q?$X:0)),this.expect(R.parenL),Q.params=this.parseBindingList(R.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Q,!1,!0,!1),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(Q,"FunctionExpression")};G1.parseArrowExpression=function(Z,J,q,Q){var Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.enterScope(V3(q,!1)|WX),this.initFunction(Z),this.options.ecmaVersion>=8)Z.async=!!q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,Z.params=this.toAssignableList(J,!0),this.parseFunctionBody(Z,!0,!1,Q),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(Z,"ArrowFunctionExpression")};G1.parseFunctionBody=function(Z,J,q,Q){var Y=J&&this.type!==R.braceL,X=this.strict,z=!1;if(Y)Z.body=this.parseMaybeAssign(Q),Z.expression=!0,this.checkParams(Z,!1);else{var V=this.options.ecmaVersion>=7&&!this.isSimpleParamList(Z.params);if(!X||V){if(z=this.strictDirective(this.end),z&&V)this.raiseRecoverable(Z.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],z)this.strict=!0;if(this.checkParams(Z,!X&&!z&&!J&&!q&&this.isSimpleParamList(Z.params)),this.strict&&Z.id)this.checkLValSimple(Z.id,jX);Z.body=this.parseBlock(!1,void 0,z&&!X),Z.expression=!1,this.adaptDirectivePrologue(Z.body.body),this.labels=W}this.exitScope()};G1.isSimpleParamList=function(Z){for(var J=0,q=Z;J<q.length;J+=1){var Q=q[J];if(Q.type!=="Identifier")return!1}return!0};G1.checkParams=function(Z,J){var q=Object.create(null);for(var Q=0,Y=Z.params;Q<Y.length;Q+=1){var X=Y[Q];this.checkLValInnerPattern(X,W3,J?null:q)}};G1.parseExprList=function(Z,J,q,Q){var Y=[],X=!0;while(!this.eat(Z)){if(!X){if(this.expect(R.comma),J&&this.afterTrailingComma(Z))break}else X=!1;var z=void 0;if(q&&this.type===R.comma)z=null;else if(this.type===R.ellipsis){if(z=this.parseSpread(Q),Q&&this.type===R.comma&&Q.trailingComma<0)Q.trailingComma=this.start}else z=this.parseMaybeAssign(!1,Q);Y.push(z)}return Y};G1.checkUnreserved=function(Z){var{start:J,end:q,name:Q}=Z;if(this.inGenerator&&Q==="yield")this.raiseRecoverable(J,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&Q==="await")this.raiseRecoverable(J,"Cannot use 'await' as identifier inside an async function");if(this.currentThisScope().inClassFieldInit&&Q==="arguments")this.raiseRecoverable(J,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(Q==="arguments"||Q==="await"))this.raise(J,"Cannot use "+Q+" in class static initialization block");if(this.keywords.test(Q))this.raise(J,"Unexpected keyword '"+Q+"'");if(this.options.ecmaVersion<6&&this.input.slice(J,q).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(Q)){if(!this.inAsync&&Q==="await")this.raiseRecoverable(J,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(J,"The keyword '"+Q+"' is reserved")}};G1.parseIdent=function(Z,J){var q=this.startNode();if(this.type===R.name)q.name=this.value;else if(this.type.keyword){if(q.name=this.type.keyword,(q.name==="class"||q.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop()}else this.unexpected();if(this.next(!!Z),this.finishNode(q,"Identifier"),!Z){if(this.checkUnreserved(q),q.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=q.start}return q};G1.parsePrivateIdent=function(){var Z=this.startNode();if(this.type===R.privateId)Z.name=this.value;else this.unexpected();if(this.next(),this.finishNode(Z,"PrivateIdentifier"),this.privateNameStack.length===0)this.raise(Z.start,"Private field '#"+Z.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(Z);return Z};G1.parseYield=function(Z){if(!this.yieldPos)this.yieldPos=this.start;var J=this.startNode();if(this.next(),this.type===R.semi||this.canInsertSemicolon()||this.type!==R.star&&!this.type.startsExpr)J.delegate=!1,J.argument=null;else J.delegate=this.eat(R.star),J.argument=this.parseMaybeAssign(Z);return this.finishNode(J,"YieldExpression")};G1.parseAwait=function(Z){if(!this.awaitPos)this.awaitPos=this.start;var J=this.startNode();return this.next(),J.argument=this.parseMaybeUnary(null,!0,!1,Z),this.finishNode(J,"AwaitExpression")};h4=c1.prototype;h4.raise=function(Z,J){var q=zX(this.input,Z);J+=" ("+q.line+":"+q.column+")";var Q=SyntaxError(J);throw Q.pos=Z,Q.loc=q,Q.raisedAt=this.pos,Q};h4.raiseRecoverable=h4.raise;h4.curPosition=function(){if(this.options.locations)return new B0(this.curLine,this.pos-this.lineStart)};U8=c1.prototype;U8.enterScope=function(Z){this.scopeStack.push(new iM(Z))};U8.exitScope=function(){this.scopeStack.pop()};U8.treatFunctionsAsVarInScope=function(Z){return Z.flags&B6||!this.inModule&&Z.flags&M0};U8.declareName=function(Z,J,q){var Q=!1;if(J===a5){var Y=this.currentScope();if(Q=Y.lexical.indexOf(Z)>-1||Y.functions.indexOf(Z)>-1||Y.var.indexOf(Z)>-1,Y.lexical.push(Z),this.inModule&&Y.flags&M0)delete this.undefinedExports[Z]}else if(J===UX){var X=this.currentScope();X.lexical.push(Z)}else if(J===GX){var z=this.currentScope();if(this.treatFunctionsAsVar)Q=z.lexical.indexOf(Z)>-1;else Q=z.lexical.indexOf(Z)>-1||z.var.indexOf(Z)>-1;z.functions.push(Z)}else for(var V=this.scopeStack.length-1;V>=0;--V){var W=this.scopeStack[V];if(W.lexical.indexOf(Z)>-1&&!(W.flags&KX&&W.lexical[0]===Z)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(Z)>-1){Q=!0;break}if(W.var.push(Z),this.inModule&&W.flags&M0)delete this.undefinedExports[Z];if(W.flags&z3)break}if(Q)this.raiseRecoverable(q,"Identifier '"+Z+"' has already been declared")};U8.checkLocalExport=function(Z){if(this.scopeStack[0].lexical.indexOf(Z.name)===-1&&this.scopeStack[0].var.indexOf(Z.name)===-1)this.undefinedExports[Z.name]=Z};U8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};U8.currentVarScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var J=this.scopeStack[Z];if(J.flags&z3)return J}};U8.currentThisScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var J=this.scopeStack[Z];if(J.flags&z3&&!(J.flags&WX))return J}};T0=c1.prototype;T0.startNode=function(){return new K7(this,this.start,this.startLoc)};T0.startNodeAt=function(Z,J){return new K7(this,Z,J)};T0.finishNode=function(Z,J){return HX.call(this,Z,J,this.lastTokEnd,this.lastTokEndLoc)};T0.finishNodeAt=function(Z,J,q,Q){return HX.call(this,Z,J,q,Q)};T0.copyNode=function(Z){var J=new K7(this,Z.start,this.startLoc);for(var q in Z)J[q]=Z[q];return J};LX=FX+" Extended_Pictographic",wX=LX,OX=wX+" EBase EComp EMod EPres ExtPict",nM=OX,aM={9:FX,10:LX,11:wX,12:OX,13:nM},RX=NX+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",CX=RX+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",IX=CX+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",sM=IX+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",rM={9:NX,10:RX,11:CX,12:IX,13:sM},_X={};for(r6=0,O4=[9,10,11,12,13];r6<O4.length;r6+=1)$Z=O4[r6],oM($Z);X1=c1.prototype;o5.prototype.reset=function(J,q,Q){var Y=Q.indexOf("u")!==-1;this.start=J|0,this.source=q+"",this.flags=Q,this.switchU=Y&&this.parser.options.ecmaVersion>=6,this.switchN=Y&&this.parser.options.ecmaVersion>=9};o5.prototype.raise=function(J){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+J)};o5.prototype.at=function(J,q){if(q===void 0)q=!1;var Q=this.source,Y=Q.length;if(J>=Y)return-1;var X=Q.charCodeAt(J);if(!(q||this.switchU)||X<=55295||X>=57344||J+1>=Y)return X;var z=Q.charCodeAt(J+1);return z>=56320&&z<=57343?(X<<10)+z-56613888:X};o5.prototype.nextIndex=function(J,q){if(q===void 0)q=!1;var Q=this.source,Y=Q.length;if(J>=Y)return Y;var X=Q.charCodeAt(J),z;if(!(q||this.switchU)||X<=55295||X>=57344||J+1>=Y||(z=Q.charCodeAt(J+1))<56320||z>57343)return J+1;return J+2};o5.prototype.current=function(J){if(J===void 0)J=!1;return this.at(this.pos,J)};o5.prototype.lookahead=function(J){if(J===void 0)J=!1;return this.at(this.nextIndex(this.pos,J),J)};o5.prototype.advance=function(J){if(J===void 0)J=!1;this.pos=this.nextIndex(this.pos,J)};o5.prototype.eat=function(J,q){if(q===void 0)q=!1;if(this.current(q)===J)return this.advance(q),!0;return!1};X1.validateRegExpFlags=function(Z){var{validFlags:J,flags:q}=Z;for(var Q=0;Q<q.length;Q++){var Y=q.charAt(Q);if(J.indexOf(Y)===-1)this.raise(Z.start,"Invalid regular expression flag");if(q.indexOf(Y,Q+1)>-1)this.raise(Z.start,"Duplicate regular expression flag")}};X1.validateRegExpPattern=function(Z){if(this.regexp_pattern(Z),!Z.switchN&&this.options.ecmaVersion>=9&&Z.groupNames.length>0)Z.switchN=!0,this.regexp_pattern(Z)};X1.regexp_pattern=function(Z){if(Z.pos=0,Z.lastIntValue=0,Z.lastStringValue="",Z.lastAssertionIsQuantifiable=!1,Z.numCapturingParens=0,Z.maxBackReference=0,Z.groupNames.length=0,Z.backReferenceNames.length=0,this.regexp_disjunction(Z),Z.pos!==Z.source.length){if(Z.eat(41))Z.raise("Unmatched ')'");if(Z.eat(93)||Z.eat(125))Z.raise("Lone quantifier brackets")}if(Z.maxBackReference>Z.numCapturingParens)Z.raise("Invalid escape");for(var J=0,q=Z.backReferenceNames;J<q.length;J+=1){var Q=q[J];if(Z.groupNames.indexOf(Q)===-1)Z.raise("Invalid named capture referenced")}};X1.regexp_disjunction=function(Z){this.regexp_alternative(Z);while(Z.eat(124))this.regexp_alternative(Z);if(this.regexp_eatQuantifier(Z,!0))Z.raise("Nothing to repeat");if(Z.eat(123))Z.raise("Lone quantifier brackets")};X1.regexp_alternative=function(Z){while(Z.pos<Z.source.length&&this.regexp_eatTerm(Z));};X1.regexp_eatTerm=function(Z){if(this.regexp_eatAssertion(Z)){if(Z.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(Z)){if(Z.switchU)Z.raise("Invalid quantifier")}return!0}if(Z.switchU?this.regexp_eatAtom(Z):this.regexp_eatExtendedAtom(Z))return this.regexp_eatQuantifier(Z),!0;return!1};X1.regexp_eatAssertion=function(Z){var J=Z.pos;if(Z.lastAssertionIsQuantifiable=!1,Z.eat(94)||Z.eat(36))return!0;if(Z.eat(92)){if(Z.eat(66)||Z.eat(98))return!0;Z.pos=J}if(Z.eat(40)&&Z.eat(63)){var q=!1;if(this.options.ecmaVersion>=9)q=Z.eat(60);if(Z.eat(61)||Z.eat(33)){if(this.regexp_disjunction(Z),!Z.eat(41))Z.raise("Unterminated group");return Z.lastAssertionIsQuantifiable=!q,!0}}return Z.pos=J,!1};X1.regexp_eatQuantifier=function(Z,J){if(J===void 0)J=!1;if(this.regexp_eatQuantifierPrefix(Z,J))return Z.eat(63),!0;return!1};X1.regexp_eatQuantifierPrefix=function(Z,J){return Z.eat(42)||Z.eat(43)||Z.eat(63)||this.regexp_eatBracedQuantifier(Z,J)};X1.regexp_eatBracedQuantifier=function(Z,J){var q=Z.pos;if(Z.eat(123)){var Q=0,Y=-1;if(this.regexp_eatDecimalDigits(Z)){if(Q=Z.lastIntValue,Z.eat(44)&&this.regexp_eatDecimalDigits(Z))Y=Z.lastIntValue;if(Z.eat(125)){if(Y!==-1&&Y<Q&&!J)Z.raise("numbers out of order in {} quantifier");return!0}}if(Z.switchU&&!J)Z.raise("Incomplete quantifier");Z.pos=q}return!1};X1.regexp_eatAtom=function(Z){return this.regexp_eatPatternCharacters(Z)||Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)};X1.regexp_eatReverseSolidusAtomEscape=function(Z){var J=Z.pos;if(Z.eat(92)){if(this.regexp_eatAtomEscape(Z))return!0;Z.pos=J}return!1};X1.regexp_eatUncapturingGroup=function(Z){var J=Z.pos;if(Z.eat(40)){if(Z.eat(63)&&Z.eat(58)){if(this.regexp_disjunction(Z),Z.eat(41))return!0;Z.raise("Unterminated group")}Z.pos=J}return!1};X1.regexp_eatCapturingGroup=function(Z){if(Z.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(Z);else if(Z.current()===63)Z.raise("Invalid group");if(this.regexp_disjunction(Z),Z.eat(41))return Z.numCapturingParens+=1,!0;Z.raise("Unterminated group")}return!1};X1.regexp_eatExtendedAtom=function(Z){return Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)||this.regexp_eatInvalidBracedQuantifier(Z)||this.regexp_eatExtendedPatternCharacter(Z)};X1.regexp_eatInvalidBracedQuantifier=function(Z){if(this.regexp_eatBracedQuantifier(Z,!0))Z.raise("Nothing to repeat");return!1};X1.regexp_eatSyntaxCharacter=function(Z){var J=Z.current();if(DX(J))return Z.lastIntValue=J,Z.advance(),!0;return!1};X1.regexp_eatPatternCharacters=function(Z){var J=Z.pos,q=0;while((q=Z.current())!==-1&&!DX(q))Z.advance();return Z.pos!==J};X1.regexp_eatExtendedPatternCharacter=function(Z){var J=Z.current();if(J!==-1&&J!==36&&!(J>=40&&J<=43)&&J!==46&&J!==63&&J!==91&&J!==94&&J!==124)return Z.advance(),!0;return!1};X1.regexp_groupSpecifier=function(Z){if(Z.eat(63)){if(this.regexp_eatGroupName(Z)){if(Z.groupNames.indexOf(Z.lastStringValue)!==-1)Z.raise("Duplicate capture group name");Z.groupNames.push(Z.lastStringValue);return}Z.raise("Invalid group")}};X1.regexp_eatGroupName=function(Z){if(Z.lastStringValue="",Z.eat(60)){if(this.regexp_eatRegExpIdentifierName(Z)&&Z.eat(62))return!0;Z.raise("Invalid capture group name")}return!1};X1.regexp_eatRegExpIdentifierName=function(Z){if(Z.lastStringValue="",this.regexp_eatRegExpIdentifierStart(Z)){Z.lastStringValue+=K8(Z.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(Z))Z.lastStringValue+=K8(Z.lastIntValue);return!0}return!1};X1.regexp_eatRegExpIdentifierStart=function(Z){var J=Z.pos,q=this.options.ecmaVersion>=11,Q=Z.current(q);if(Z.advance(q),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,q))Q=Z.lastIntValue;if(tM(Q))return Z.lastIntValue=Q,!0;return Z.pos=J,!1};X1.regexp_eatRegExpIdentifierPart=function(Z){var J=Z.pos,q=this.options.ecmaVersion>=11,Q=Z.current(q);if(Z.advance(q),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,q))Q=Z.lastIntValue;if(eM(Q))return Z.lastIntValue=Q,!0;return Z.pos=J,!1};X1.regexp_eatAtomEscape=function(Z){if(this.regexp_eatBackReference(Z)||this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)||Z.switchN&&this.regexp_eatKGroupName(Z))return!0;if(Z.switchU){if(Z.current()===99)Z.raise("Invalid unicode escape");Z.raise("Invalid escape")}return!1};X1.regexp_eatBackReference=function(Z){var J=Z.pos;if(this.regexp_eatDecimalEscape(Z)){var q=Z.lastIntValue;if(Z.switchU){if(q>Z.maxBackReference)Z.maxBackReference=q;return!0}if(q<=Z.numCapturingParens)return!0;Z.pos=J}return!1};X1.regexp_eatKGroupName=function(Z){if(Z.eat(107)){if(this.regexp_eatGroupName(Z))return Z.backReferenceNames.push(Z.lastStringValue),!0;Z.raise("Invalid named reference")}return!1};X1.regexp_eatCharacterEscape=function(Z){return this.regexp_eatControlEscape(Z)||this.regexp_eatCControlLetter(Z)||this.regexp_eatZero(Z)||this.regexp_eatHexEscapeSequence(Z)||this.regexp_eatRegExpUnicodeEscapeSequence(Z,!1)||!Z.switchU&&this.regexp_eatLegacyOctalEscapeSequence(Z)||this.regexp_eatIdentityEscape(Z)};X1.regexp_eatCControlLetter=function(Z){var J=Z.pos;if(Z.eat(99)){if(this.regexp_eatControlLetter(Z))return!0;Z.pos=J}return!1};X1.regexp_eatZero=function(Z){if(Z.current()===48&&!$7(Z.lookahead()))return Z.lastIntValue=0,Z.advance(),!0;return!1};X1.regexp_eatControlEscape=function(Z){var J=Z.current();if(J===116)return Z.lastIntValue=9,Z.advance(),!0;if(J===110)return Z.lastIntValue=10,Z.advance(),!0;if(J===118)return Z.lastIntValue=11,Z.advance(),!0;if(J===102)return Z.lastIntValue=12,Z.advance(),!0;if(J===114)return Z.lastIntValue=13,Z.advance(),!0;return!1};X1.regexp_eatControlLetter=function(Z){var J=Z.current();if(TX(J))return Z.lastIntValue=J%32,Z.advance(),!0;return!1};X1.regexp_eatRegExpUnicodeEscapeSequence=function(Z,J){if(J===void 0)J=!1;var q=Z.pos,Q=J||Z.switchU;if(Z.eat(117)){if(this.regexp_eatFixedHexDigits(Z,4)){var Y=Z.lastIntValue;if(Q&&Y>=55296&&Y<=56319){var X=Z.pos;if(Z.eat(92)&&Z.eat(117)&&this.regexp_eatFixedHexDigits(Z,4)){var z=Z.lastIntValue;if(z>=56320&&z<=57343)return Z.lastIntValue=(Y-55296)*1024+(z-56320)+65536,!0}Z.pos=X,Z.lastIntValue=Y}return!0}if(Q&&Z.eat(123)&&this.regexp_eatHexDigits(Z)&&Z.eat(125)&&ZH(Z.lastIntValue))return!0;if(Q)Z.raise("Invalid unicode escape");Z.pos=q}return!1};X1.regexp_eatIdentityEscape=function(Z){if(Z.switchU){if(this.regexp_eatSyntaxCharacter(Z))return!0;if(Z.eat(47))return Z.lastIntValue=47,!0;return!1}var J=Z.current();if(J!==99&&(!Z.switchN||J!==107))return Z.lastIntValue=J,Z.advance(),!0;return!1};X1.regexp_eatDecimalEscape=function(Z){Z.lastIntValue=0;var J=Z.current();if(J>=49&&J<=57){do Z.lastIntValue=10*Z.lastIntValue+(J-48),Z.advance();while((J=Z.current())>=48&&J<=57);return!0}return!1};X1.regexp_eatCharacterClassEscape=function(Z){var J=Z.current();if(JH(J))return Z.lastIntValue=-1,Z.advance(),!0;if(Z.switchU&&this.options.ecmaVersion>=9&&(J===80||J===112)){if(Z.lastIntValue=-1,Z.advance(),Z.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(Z)&&Z.eat(125))return!0;Z.raise("Invalid property name")}return!1};X1.regexp_eatUnicodePropertyValueExpression=function(Z){var J=Z.pos;if(this.regexp_eatUnicodePropertyName(Z)&&Z.eat(61)){var q=Z.lastStringValue;if(this.regexp_eatUnicodePropertyValue(Z)){var Q=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(Z,q,Q),!0}}if(Z.pos=J,this.regexp_eatLoneUnicodePropertyNameOrValue(Z)){var Y=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(Z,Y),!0}return!1};X1.regexp_validateUnicodePropertyNameAndValue=function(Z,J,q){if(!_0(Z.unicodeProperties.nonBinary,J))Z.raise("Invalid property name");if(!Z.unicodeProperties.nonBinary[J].test(q))Z.raise("Invalid property value")};X1.regexp_validateUnicodePropertyNameOrValue=function(Z,J){if(!Z.unicodeProperties.binary.test(J))Z.raise("Invalid property name")};X1.regexp_eatUnicodePropertyName=function(Z){var J=0;Z.lastStringValue="";while(AX(J=Z.current()))Z.lastStringValue+=K8(J),Z.advance();return Z.lastStringValue!==""};X1.regexp_eatUnicodePropertyValue=function(Z){var J=0;Z.lastStringValue="";while(qH(J=Z.current()))Z.lastStringValue+=K8(J),Z.advance();return Z.lastStringValue!==""};X1.regexp_eatLoneUnicodePropertyNameOrValue=function(Z){return this.regexp_eatUnicodePropertyValue(Z)};X1.regexp_eatCharacterClass=function(Z){if(Z.eat(91)){if(Z.eat(94),this.regexp_classRanges(Z),Z.eat(93))return!0;Z.raise("Unterminated character class")}return!1};X1.regexp_classRanges=function(Z){while(this.regexp_eatClassAtom(Z)){var J=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassAtom(Z)){var q=Z.lastIntValue;if(Z.switchU&&(J===-1||q===-1))Z.raise("Invalid character class");if(J!==-1&&q!==-1&&J>q)Z.raise("Range out of order in character class")}}};X1.regexp_eatClassAtom=function(Z){var J=Z.pos;if(Z.eat(92)){if(this.regexp_eatClassEscape(Z))return!0;if(Z.switchU){var q=Z.current();if(q===99||yX(q))Z.raise("Invalid class escape");Z.raise("Invalid escape")}Z.pos=J}var Q=Z.current();if(Q!==93)return Z.lastIntValue=Q,Z.advance(),!0;return!1};X1.regexp_eatClassEscape=function(Z){var J=Z.pos;if(Z.eat(98))return Z.lastIntValue=8,!0;if(Z.switchU&&Z.eat(45))return Z.lastIntValue=45,!0;if(!Z.switchU&&Z.eat(99)){if(this.regexp_eatClassControlLetter(Z))return!0;Z.pos=J}return this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)};X1.regexp_eatClassControlLetter=function(Z){var J=Z.current();if($7(J)||J===95)return Z.lastIntValue=J%32,Z.advance(),!0;return!1};X1.regexp_eatHexEscapeSequence=function(Z){var J=Z.pos;if(Z.eat(120)){if(this.regexp_eatFixedHexDigits(Z,2))return!0;if(Z.switchU)Z.raise("Invalid escape");Z.pos=J}return!1};X1.regexp_eatDecimalDigits=function(Z){var J=Z.pos,q=0;Z.lastIntValue=0;while($7(q=Z.current()))Z.lastIntValue=10*Z.lastIntValue+(q-48),Z.advance();return Z.pos!==J};X1.regexp_eatHexDigits=function(Z){var J=Z.pos,q=0;Z.lastIntValue=0;while(PX(q=Z.current()))Z.lastIntValue=16*Z.lastIntValue+SX(q),Z.advance();return Z.pos!==J};X1.regexp_eatLegacyOctalEscapeSequence=function(Z){if(this.regexp_eatOctalDigit(Z)){var J=Z.lastIntValue;if(this.regexp_eatOctalDigit(Z)){var q=Z.lastIntValue;if(J<=3&&this.regexp_eatOctalDigit(Z))Z.lastIntValue=J*64+q*8+Z.lastIntValue;else Z.lastIntValue=J*8+q}else Z.lastIntValue=J;return!0}return!1};X1.regexp_eatOctalDigit=function(Z){var J=Z.current();if(yX(J))return Z.lastIntValue=J-48,Z.advance(),!0;return Z.lastIntValue=0,!1};X1.regexp_eatFixedHexDigits=function(Z,J){var q=Z.pos;Z.lastIntValue=0;for(var Q=0;Q<J;++Q){var Y=Z.current();if(!PX(Y))return Z.pos=q,!1;Z.lastIntValue=16*Z.lastIntValue+SX(Y),Z.advance()}return!0};H1=c1.prototype;H1.next=function(Z){if(!Z&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new $3(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};H1.getToken=function(){return this.next(),new $3(this)};if(typeof Symbol<"u")H1[Symbol.iterator]=function(){var Z=this;return{next:function(){var J=Z.getToken();return{done:J.type===R.eof,value:J}}}};H1.nextToken=function(){var Z=this.curContext();if(!Z||!Z.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(R.eof);if(Z.override)return Z.override(this);else this.readToken(this.fullCharCodeAtPos())};H1.readToken=function(Z){if(r5(Z,this.options.ecmaVersion>=6)||Z===92)return this.readWord();return this.getTokenFromCode(Z)};H1.fullCharCodeAtPos=function(){var Z=this.input.charCodeAt(this.pos);if(Z<=55295||Z>=56320)return Z;var J=this.input.charCodeAt(this.pos+1);return J<=56319||J>=57344?Z:(Z<<10)+J-56613888};H1.skipBlockComment=function(){var Z=this.options.onComment&&this.curPosition(),J=this.pos,q=this.input.indexOf("*/",this.pos+=2);if(q===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=q+2,this.options.locations)for(var Q=void 0,Y=J;(Q=QX(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=Q;if(this.options.onComment)this.options.onComment(!0,this.input.slice(J+2,q),J,this.pos,Z,this.curPosition())};H1.skipLineComment=function(Z){var J=this.pos,q=this.options.onComment&&this.curPosition(),Q=this.input.charCodeAt(this.pos+=Z);while(this.pos<this.input.length&&!j6(Q))Q=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(J+Z,this.pos),J,this.pos,q,this.curPosition())};H1.skipSpace=function(){Z:while(this.pos<this.input.length){var Z=this.input.charCodeAt(this.pos);switch(Z){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break Z}break;default:if(Z>8&&Z<14||Z>=5760&&YX.test(String.fromCharCode(Z)))++this.pos;else break Z}}};H1.finishToken=function(Z,J){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var q=this.type;this.type=Z,this.value=J,this.updateContext(q)};H1.readToken_dot=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z>=48&&Z<=57)return this.readNumber(!0);var J=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&Z===46&&J===46)return this.pos+=3,this.finishToken(R.ellipsis);else return++this.pos,this.finishToken(R.dot)};H1.readToken_slash=function(){var Z=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(Z===61)return this.finishOp(R.assign,2);return this.finishOp(R.slash,1)};H1.readToken_mult_modulo_exp=function(Z){var J=this.input.charCodeAt(this.pos+1),q=1,Q=Z===42?R.star:R.modulo;if(this.options.ecmaVersion>=7&&Z===42&&J===42)++q,Q=R.starstar,J=this.input.charCodeAt(this.pos+2);if(J===61)return this.finishOp(R.assign,q+1);return this.finishOp(Q,q)};H1.readToken_pipe_amp=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===Z){if(this.options.ecmaVersion>=12){var q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(R.assign,3)}return this.finishOp(Z===124?R.logicalOR:R.logicalAND,2)}if(J===61)return this.finishOp(R.assign,2);return this.finishOp(Z===124?R.bitwiseOR:R.bitwiseAND,1)};H1.readToken_caret=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(R.assign,2);return this.finishOp(R.bitwiseXOR,1)};H1.readToken_plus_min=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===Z){if(J===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R5.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(R.incDec,2)}if(J===61)return this.finishOp(R.assign,2);return this.finishOp(R.plusMin,1)};H1.readToken_lt_gt=function(Z){var J=this.input.charCodeAt(this.pos+1),q=1;if(J===Z){if(q=Z===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+q)===61)return this.finishOp(R.assign,q+1);return this.finishOp(R.bitShift,q)}if(J===33&&Z===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(J===61)q=2;return this.finishOp(R.relational,q)};H1.readToken_eq_excl=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===61)return this.finishOp(R.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(Z===61&&J===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(R.arrow);return this.finishOp(Z===61?R.eq:R.prefix,1)};H1.readToken_question=function(){var Z=this.options.ecmaVersion;if(Z>=11){var J=this.input.charCodeAt(this.pos+1);if(J===46){var q=this.input.charCodeAt(this.pos+2);if(q<48||q>57)return this.finishOp(R.questionDot,2)}if(J===63){if(Z>=12){var Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(R.assign,3)}return this.finishOp(R.coalesce,2)}}return this.finishOp(R.question,1)};H1.readToken_numberSign=function(){var Z=this.options.ecmaVersion,J=35;if(Z>=13){if(++this.pos,J=this.fullCharCodeAtPos(),r5(J,!0)||J===92)return this.finishToken(R.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+K8(J)+"'")};H1.getTokenFromCode=function(Z){switch(Z){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(R.parenL);case 41:return++this.pos,this.finishToken(R.parenR);case 59:return++this.pos,this.finishToken(R.semi);case 44:return++this.pos,this.finishToken(R.comma);case 91:return++this.pos,this.finishToken(R.bracketL);case 93:return++this.pos,this.finishToken(R.bracketR);case 123:return++this.pos,this.finishToken(R.braceL);case 125:return++this.pos,this.finishToken(R.braceR);case 58:return++this.pos,this.finishToken(R.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(R.backQuote);case 48:var J=this.input.charCodeAt(this.pos+1);if(J===120||J===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(J===111||J===79)return this.readRadixNumber(8);if(J===98||J===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(Z);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(Z);case 124:case 38:return this.readToken_pipe_amp(Z);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(Z);case 60:case 62:return this.readToken_lt_gt(Z);case 61:case 33:return this.readToken_eq_excl(Z);case 63:return this.readToken_question();case 126:return this.finishOp(R.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+K8(Z)+"'")};H1.finishOp=function(Z,J){var q=this.input.slice(this.pos,this.pos+J);return this.pos+=J,this.finishToken(Z,q)};H1.readRegexp=function(){var Z,J,q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(q,"Unterminated regular expression");var Q=this.input.charAt(this.pos);if(R5.test(Q))this.raise(q,"Unterminated regular expression");if(!Z){if(Q==="[")J=!0;else if(Q==="]"&&J)J=!1;else if(Q==="/"&&!J)break;Z=Q==="\\"}else Z=!1;++this.pos}var Y=this.input.slice(q,this.pos);++this.pos;var X=this.pos,z=this.readWord1();if(this.containsEsc)this.unexpected(X);var V=this.regexpState||(this.regexpState=new o5(this));V.reset(q,Y,z),this.validateRegExpFlags(V),this.validateRegExpPattern(V);var W=null;try{W=new RegExp(Y,z)}catch(K){}return this.finishToken(R.regexp,{pattern:Y,flags:z,value:W})};H1.readInt=function(Z,J,q){var Q=this.options.ecmaVersion>=12&&J===void 0,Y=q&&this.input.charCodeAt(this.pos)===48,X=this.pos,z=0,V=0;for(var W=0,K=J==null?1/0:J;W<K;++W,++this.pos){var $=this.input.charCodeAt(this.pos),H=void 0;if(Q&&$===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(V===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");V=$;continue}if($>=97)H=$-97+10;else if($>=65)H=$-65+10;else if($>=48&&$<=57)H=$-48;else H=1/0;if(H>=Z)break;V=$,z=z*Z+H}if(Q&&V===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===X||J!=null&&this.pos-X!==J)return null;return z};H1.readRadixNumber=function(Z){var J=this.pos;this.pos+=2;var q=this.readInt(Z);if(q==null)this.raise(this.start+2,"Expected number in radix "+Z);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)q=EX(this.input.slice(J,this.pos)),++this.pos;else if(r5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(R.num,q)};H1.readNumber=function(Z){var J=this.pos;if(!Z&&this.readInt(10,void 0,!0)===null)this.raise(J,"Invalid number");var q=this.pos-J>=2&&this.input.charCodeAt(J)===48;if(q&&this.strict)this.raise(J,"Invalid number");var Q=this.input.charCodeAt(this.pos);if(!q&&!Z&&this.options.ecmaVersion>=11&&Q===110){var Y=EX(this.input.slice(J,this.pos));if(++this.pos,r5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(R.num,Y)}if(q&&/[89]/.test(this.input.slice(J,this.pos)))q=!1;if(Q===46&&!q)++this.pos,this.readInt(10),Q=this.input.charCodeAt(this.pos);if((Q===69||Q===101)&&!q){if(Q=this.input.charCodeAt(++this.pos),Q===43||Q===45)++this.pos;if(this.readInt(10)===null)this.raise(J,"Invalid number")}if(r5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var X=QH(this.input.slice(J,this.pos),q);return this.finishToken(R.num,X)};H1.readCodePoint=function(){var Z=this.input.charCodeAt(this.pos),J;if(Z===123){if(this.options.ecmaVersion<6)this.unexpected();var q=++this.pos;if(J=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,J>1114111)this.invalidStringToken(q,"Code point out of bounds")}else J=this.readHexChar(4);return J};H1.readString=function(Z){var J="",q=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var Q=this.input.charCodeAt(this.pos);if(Q===Z)break;if(Q===92)J+=this.input.slice(q,this.pos),J+=this.readEscapedChar(!1),q=this.pos;else if(Q===8232||Q===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(j6(Q))this.raise(this.start,"Unterminated string constant");++this.pos}}return J+=this.input.slice(q,this.pos++),this.finishToken(R.string,J)};bX={};H1.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(Z){if(Z===bX)this.readInvalidTemplateToken();else throw Z}this.inTemplateElement=!1};H1.invalidStringToken=function(Z,J){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw bX;else this.raise(Z,J)};H1.readTmplToken=function(){var Z="",J=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var q=this.input.charCodeAt(this.pos);if(q===96||q===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===R.template||this.type===R.invalidTemplate))if(q===36)return this.pos+=2,this.finishToken(R.dollarBraceL);else return++this.pos,this.finishToken(R.backQuote);return Z+=this.input.slice(J,this.pos),this.finishToken(R.template,Z)}if(q===92)Z+=this.input.slice(J,this.pos),Z+=this.readEscapedChar(!0),J=this.pos;else if(j6(q)){switch(Z+=this.input.slice(J,this.pos),++this.pos,q){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:Z+=`
|
|
44
|
-
`;break;default:Z+=String.fromCharCode(
|
|
45
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return K8(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(Z){var q=this.pos-1;return this.invalidStringToken(q,"Invalid escape sequence in template string"),null}default:if(J>=48&&J<=55){var Q=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Y=parseInt(Q,8);if(Y>255)Q=Q.slice(0,-1),Y=parseInt(Q,8);if(this.pos+=Q.length-1,J=this.input.charCodeAt(this.pos),(Q!=="0"||J===56||J===57)&&(this.strict||Z))this.invalidStringToken(this.pos-1-Q.length,Z?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Y)}if(j6(J))return"";return String.fromCharCode(J)}};H1.readHexChar=function(Z){var J=this.pos,q=this.readInt(16,Z);if(q===null)this.invalidStringToken(J,"Bad character escape sequence");return q};H1.readWord1=function(){this.containsEsc=!1;var Z="",J=!0,q=this.pos,Q=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Y=this.fullCharCodeAtPos();if($6(Y,Q))this.pos+=Y<=65535?1:2;else if(Y===92){this.containsEsc=!0,Z+=this.input.slice(q,this.pos);var X=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var z=this.readCodePoint();if(!(J?r5:$6)(z,Q))this.invalidStringToken(X,"Invalid Unicode escape");Z+=K8(z),q=this.pos}else break;J=!1}return Z+this.input.slice(q,this.pos)};H1.readWord=function(){var Z=this.readWord1(),J=R.name;if(this.keywords.test(Z))J=Q3[Z];return this.finishToken(J,Z)};c1.acorn={Parser:c1,version:YH,defaultOptions:WZ,Position:B0,SourceLocation:V7,getLineInfo:zX,Node:K7,TokenType:C1,tokTypes:R,keywordTypes:Q3,TokContext:A5,tokContexts:y1,isIdentifierChar:$6,isIdentifierStart:r5,Token:$3,isNewLine:j6,lineBreak:R5,lineBreakG:kM,nonASCIIwhitespace:YX};VH=[{active:!0,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}];GH={delete(){return!1},get(){return},has(){return!1},set(){}};kX=class kX extends EZ{constructor(){super();this.parent=null,this.variables.set("undefined",new oZ)}findVariable(Z){let J=this.variables.get(Z);if(!J)J=new o4(Z),this.variables.set(Z,J);return J}};RH={buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1},CH=Object.keys(RH);u4=new sG;u4.setMaxListeners(0);jZ.on(m4,()=>u4.emit(m4));PH={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},SH={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}};iH=/[\x00-\x1F\x7F<>*#"{}|^[\]`;?:&=+$,]/g,nH=/^[a-z]:/i;z2=new Set(["auto","esModule","default","defaultOnly",!0,!1]);(function(Z){Z[Z.ENTRY_CHUNK=0]="ENTRY_CHUNK",Z[Z.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",Z[Z.ASSET=2]="ASSET"})(J0||(J0={}))});var oX=U1((IF)=>{function nX(Z,J,q){throw Error(q?`No known conditions for "${J}" specifier in "${Z}" package`:`Missing "${J}" specifier in "${Z}" package`)}function aX(Z,J,q,Q){let Y,X,z=H3(Z,q),V=function(K){let $=new Set(["default",...K.conditions||[]]);return K.unsafe||$.add(K.require?"require":"import"),K.unsafe||$.add(K.browser?"browser":"node"),$}(Q||{}),W=J[z];if(W===void 0){let K,$,H,M;for(M in J)$&&M.length<$.length||(M[M.length-1]==="/"&&z.startsWith(M)?(X=z.substring(M.length),$=M):M.length>1&&(H=M.indexOf("*",1),~H&&(K=RegExp("^"+M.substring(0,H)+"(.*)"+M.substring(1+H)+"$").exec(z),K&&K[1]&&(X=K[1],$=M))));W=J[$]}return W||nX(Z,z),Y=M3(W,V),Y||nX(Z,z,1),X&&function(K,$){let H,M=0,O=K.length,j=/[*]/g,L=/[/]$/;for(;M<O;M++)K[M]=j.test(H=K[M])?H.replace(j,$):L.test(H)?H+$:H}(Y,X),Y}function H3(Z,J,q){if(Z===J||J===".")return".";let Q=Z+"/",Y=Q.length,X=J.slice(0,Y)===Q,z=X?J.slice(Y):J;return z[0]==="#"?z:X||!q?z.slice(0,2)==="./"?z:"./"+z:z}function M3(Z,J,q){if(Z){if(typeof Z=="string")return q&&q.add(Z),[Z];let Q,Y;if(Array.isArray(Z)){for(Y=q||new Set,Q=0;Q<Z.length;Q++)M3(Z[Q],J,Y);if(!q&&Y.size)return[...Y]}else for(Q in Z)if(J.has(Q))return M3(Z[Q],J,q)}}function RF(Z,J={}){let q,Q=0,Y=J.browser,X=J.fields||["module","main"],z=typeof Y=="string";for(Y&&!X.includes("browser")&&(X.unshift("browser"),z&&(Y=H3(Z.name,Y,!0)));Q<X.length;Q++)if(q=Z[X[Q]]){if(typeof q=="string");else{if(typeof q!="object"||X[Q]!="browser")continue;if(z&&(q=q[Y],q==null))return Y}return typeof q=="string"?"./"+q.replace(/^\.?\//,""):q}}function sX(Z,J,q){let Q,Y=Z.exports;if(Y){if(typeof Y=="string")Y={".":Y};else for(Q in Y){Q[0]!=="."&&(Y={".":Y});break}return aX(Z.name,Y,J||".",q)}}function rX(Z,J,q){if(Z.imports)return aX(Z.name,Z.imports,J,q)}function CF(Z,J,q){return(J=H3(Z.name,J||"."))[0]==="#"?rX(Z,J,q):sX(Z,J,q)}IF.exports=sX;IF.imports=rX;IF.legacy=RF;IF.resolve=CF});var A0=U1((hI,eX)=>{var PF=a1("path"),tX={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},SF={...tX,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},yF={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};eX.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:yF,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:PF.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?SF:tX}}});var G7=U1((hF)=>{var EF=a1("path"),bF=process.platform==="win32",{REGEX_BACKSLASH:xF,REGEX_REMOVE_BACKSLASH:kF,REGEX_SPECIAL_CHARS:fF,REGEX_SPECIAL_CHARS_GLOBAL:vF}=A0();hF.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);hF.hasRegexChars=(Z)=>fF.test(Z);hF.isRegexChar=(Z)=>Z.length===1&&hF.hasRegexChars(Z);hF.escapeRegex=(Z)=>Z.replace(vF,"\\$1");hF.toPosixSlashes=(Z)=>Z.replace(xF,"/");hF.removeBackslashes=(Z)=>{return Z.replace(kF,(J)=>{return J==="\\"?"":J})};hF.supportsLookbehinds=()=>{let Z=process.version.slice(1).split(".").map(Number);if(Z.length===3&&Z[0]>=9||Z[0]===8&&Z[1]>=10)return!0;return!1};hF.isWindows=(Z)=>{if(Z&&typeof Z.windows==="boolean")return Z.windows;return bF===!0||EF.sep==="\\"};hF.escapeLast=(Z,J,q)=>{let Q=Z.lastIndexOf(J,q);if(Q===-1)return Z;if(Z[Q-1]==="\\")return hF.escapeLast(Z,J,Q-1);return`${Z.slice(0,Q)}\\${Z.slice(Q)}`};hF.removePrefix=(Z,J={})=>{let q=Z;if(q.startsWith("./"))q=q.slice(2),J.prefix="./";return q};hF.wrapOutput=(Z,J={},q={})=>{let Q=q.contains?"":"^",Y=q.contains?"":"$",X=`${Q}(?:${Z})${Y}`;if(J.negated===!0)X=`(?:^(?!${X}).*$)`;return X}});var Kz=U1((mI,Wz)=>{var qz=G7(),{CHAR_ASTERISK:F3,CHAR_AT:aF,CHAR_BACKWARD_SLASH:P0,CHAR_COMMA:sF,CHAR_DOT:L3,CHAR_EXCLAMATION_MARK:w3,CHAR_FORWARD_SLASH:Vz,CHAR_LEFT_CURLY_BRACE:O3,CHAR_LEFT_PARENTHESES:N3,CHAR_LEFT_SQUARE_BRACKET:rF,CHAR_PLUS:oF,CHAR_QUESTION_MARK:Qz,CHAR_RIGHT_CURLY_BRACE:tF,CHAR_RIGHT_PARENTHESES:Yz,CHAR_RIGHT_SQUARE_BRACKET:eF}=A0(),Xz=(Z)=>{return Z===Vz||Z===P0},zz=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},ZL=(Z,J)=>{let q=J||{},Q=Z.length-1,Y=q.parts===!0||q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,j=!1,L=!1,I=!1,y=!1,_=!1,T=!1,g=!1,h=!1,u=0,E,N,P={value:"",depth:0,isGlob:!1},A=()=>K>=Q,B=()=>W.charCodeAt(K+1),b=()=>{return E=N,W.charCodeAt(++K)};while(K<Q){N=b();let d;if(N===P0){if(_=P.backslashes=!0,N=b(),N===O3)y=!0;continue}if(y===!0||N===O3){u++;while(A()!==!0&&(N=b())){if(N===P0){_=P.backslashes=!0,b();continue}if(N===O3){u++;continue}if(y!==!0&&N===L3&&(N=b())===L3){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===sF){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===tF){if(u--,u===0){y=!1,M=P.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===Vz){if(X.push(K),z.push(P),P={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===L3&&K===$+1){$+=2;continue}H=K+1;continue}if(q.noext!==!0){if((N===oF||N===aF||N===F3||N===Qz||N===w3)===!0&&B()===N3){if(j=P.isGlob=!0,L=P.isExtglob=!0,h=!0,N===w3&&K===$)g=!0;if(Y===!0){while(A()!==!0&&(N=b())){if(N===P0){_=P.backslashes=!0,N=b();continue}if(N===Yz){j=P.isGlob=!0,h=!0;break}}continue}break}}if(N===F3){if(E===F3)I=P.isGlobstar=!0;if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Qz){if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===rF){while(A()!==!0&&(d=b())){if(d===P0){_=P.backslashes=!0,b();continue}if(d===eF){O=P.isBracket=!0,j=P.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(q.nonegate!==!0&&N===w3&&K===$){T=P.negated=!0,$++;continue}if(q.noparen!==!0&&N===N3){if(j=P.isGlob=!0,Y===!0){while(A()!==!0&&(N=b())){if(N===N3){_=P.backslashes=!0,N=b();continue}if(N===Yz){h=!0;break}}continue}break}if(j===!0){if(h=!0,Y===!0)continue;break}}if(q.noext===!0)L=!1,j=!1;let k=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(k&&j===!0&&H>0)k=W.slice(0,H),G=W.slice(H);else if(j===!0)k="",G=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(Xz(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(q.unescape===!0){if(G)G=qz.removeBackslashes(G);if(k&&_===!0)k=qz.removeBackslashes(k)}let F={prefix:S,input:Z,start:$,base:k,glob:G,isBrace:M,isBracket:O,isGlob:j,isExtglob:L,isGlobstar:I,negated:T,negatedExtglob:g};if(q.tokens===!0){if(F.maxDepth=0,!Xz(N))z.push(P);F.tokens=z}if(q.parts===!0||q.tokens===!0){let d;for(let f=0;f<X.length;f++){let o=d?d+1:$,t=X[f],Q1=Z.slice(o,t);if(q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=Q1;zz(z[f]),F.maxDepth+=z[f].depth}if(f!==0||Q1!=="")V.push(Q1);d=t}if(d&&d+1<Z.length){let f=Z.slice(d+1);if(V.push(f),q.tokens)z[z.length-1].value=f,zz(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F};Wz.exports=ZL});var Bz=U1((uI,jz)=>{var S0=A0(),J5=G7(),{MAX_LENGTH:U7,POSIX_REGEX_SOURCE:JL,REGEX_NON_SPECIAL_CHARS:qL,REGEX_SPECIAL_CHARS_BACKREF:QL,REPLACEMENTS:$z}=S0,YL=(Z,J)=>{if(typeof J.expandRange==="function")return J.expandRange(...Z,J);Z.sort();let q=`[${Z.join("-")}]`;try{new RegExp(q)}catch(Q){return Z.map((Y)=>J5.escapeRegex(Y)).join("..")}return q},F6=(Z,J)=>{return`Missing ${Z}: "${J}" - use "\\\\${J}" to match literal characters`},Gz=(Z)=>{let J=[],q=0,Q=0,Y=0,X="",z=!1;for(let V of Z){if(z===!0){X+=V,z=!1;continue}if(V==="\\"){X+=V,z=!0;continue}if(V==='"'){Y=Y===1?0:1,X+=V;continue}if(Y===0){if(V==="[")q++;else if(V==="]"&&q>0)q--;else if(q===0){if(V==="(")Q++;else if(V===")"&&Q>0)Q--;else if(V==="|"&&Q===0){J.push(X),X="";continue}}}X+=V}return J.push(X),J},XL=(Z)=>{let J=!1;for(let q of Z){if(J===!0){J=!1;continue}if(q==="\\"){J=!0;continue}if(/[?*+@!()[\]{}]/.test(q))return!1}return!0},Uz=(Z)=>{let J=Z.trim(),q=!0;while(q===!0)if(q=!1,/^@\([^\\()[\]{}|]+\)$/.test(J))J=J.slice(2,-1),q=!0;if(!XL(J))return;return J.replace(/\\(.)/g,"$1")},zL=(Z)=>{let J=Z.map(Uz).filter(Boolean);for(let q=0;q<J.length;q++)for(let Q=q+1;Q<J.length;Q++){let Y=J[q],X=J[Q],z=Y[0];if(!z||Y!==z.repeat(Y.length)||X!==z.repeat(X.length))continue;if(Y===X||Y.startsWith(X)||X.startsWith(Y))return!0}return!1},R3=(Z,J=!0)=>{if(Z[0]!=="+"&&Z[0]!=="*"||Z[1]!=="(")return;let q=0,Q=0,Y=0,X=!1;for(let z=1;z<Z.length;z++){let V=Z[z];if(X===!0){X=!1;continue}if(V==="\\"){X=!0;continue}if(V==='"'){Y=Y===1?0:1;continue}if(Y===1)continue;if(V==="["){q++;continue}if(V==="]"&&q>0){q--;continue}if(q>0)continue;if(V==="("){Q++;continue}if(V===")"){if(Q--,Q===0){if(J===!0&&z!==Z.length-1)return;return{type:Z[0],body:Z.slice(2,z),end:z}}}}},VL=(Z)=>{let J=0,q=[];while(J<Z.length){let Y=R3(Z.slice(J),!1);if(!Y||Y.type!=="*")return;let X=Gz(Y.body).map((V)=>V.trim());if(X.length!==1)return;let z=Uz(X[0]);if(!z||z.length!==1)return;q.push(z),J+=Y.end+1}if(q.length<1)return;return`${q.length===1?J5.escapeRegex(q[0]):`[${q.map((Y)=>J5.escapeRegex(Y)).join("")}]`}*`},WL=(Z)=>{let J=0,q=Z.trim(),Q=R3(q);while(Q)J++,q=Q.body.trim(),Q=R3(q);return J},KL=(Z,J)=>{if(J.maxExtglobRecursion===!1)return{risky:!1};let q=typeof J.maxExtglobRecursion==="number"?J.maxExtglobRecursion:S0.DEFAULT_MAX_EXTGLOB_RECURSION,Q=Gz(Z).map((Y)=>Y.trim());if(Q.length>1){if(Q.some((Y)=>Y==="")||Q.some((Y)=>/^[*?]+$/.test(Y))||zL(Q))return{risky:!0}}for(let Y of Q){let X=VL(Y);if(X)return{risky:!0,safeOutput:X};if(WL(Y)>q)return{risky:!0}}return{risky:!1}},C3=(Z,J)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=$z[Z]||Z;let q={...J},Q=typeof q.maxLength==="number"?Math.min(U7,q.maxLength):U7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let X={type:"bos",value:"",output:q.prepend||""},z=[X],V=q.capture?"":"?:",W=J5.isWindows(J),K=S0.globChars(W),$=S0.extglobChars(K),{DOT_LITERAL:H,PLUS_LITERAL:M,SLASH_LITERAL:O,ONE_CHAR:j,DOTS_SLASH:L,NO_DOT:I,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK:T,QMARK_NO_DOT:g,STAR:h,START_ANCHOR:u}=K,E=(D)=>{return`(${V}(?:(?!${u}${D.dot?L:H}).)*?)`},N=q.dot?"":I,P=q.dot?T:g,A=q.bash===!0?E(q):h;if(q.capture)A=`(${A})`;if(typeof q.noext==="boolean")q.noextglob=q.noext;let B={input:Z,index:-1,start:0,dot:q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=J5.removePrefix(Z,B),Y=Z.length;let b=[],k=[],S=[],G=X,F,d=()=>B.index===Y-1,f=B.peek=(D=1)=>Z[B.index+D],o=B.advance=()=>Z[++B.index]||"",t=()=>Z.slice(B.index+1),Q1=(D="",x=0)=>{B.consumed+=D,B.index+=x},N1=(D)=>{B.output+=D.output!=null?D.output:D.value,Q1(D.value)},R1=()=>{let D=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))o(),B.start++,D++;if(D%2===0)return!1;return B.negated=!0,B.start++,!0},F1=(D)=>{B[D]++,S.push(D)},s=(D)=>{B[D]--,S.pop()},m=(D)=>{if(G.type==="globstar"){let x=B.braces>0&&(D.type==="comma"||D.type==="brace"),C=D.extglob===!0||b.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!x&&!C)B.output=B.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=A,B.output+=G.output}if(b.length&&D.type!=="paren")b[b.length-1].inner+=D.value;if(D.value||D.output)N1(D);if(G&&G.type==="text"&&D.type==="text"){G.value+=D.value,G.output=(G.output||"")+D.value;return}D.prev=G,z.push(D),G=D},L1=(D,x)=>{let C={...$[x],conditions:1,inner:""};C.prev=G,C.parens=B.parens,C.output=B.output,C.startIndex=B.index,C.tokensIndex=z.length;let v=(q.capture?"(":"")+C.open;F1("parens"),m({type:D,value:x,output:B.output?"":j}),m({type:"paren",extglob:!0,value:o(),output:v}),b.push(C)},p=(D)=>{let x=Z.slice(D.startIndex,B.index+1),C=Z.slice(D.startIndex+2,B.index),v=KL(C,q);if((D.type==="plus"||D.type==="star")&&v.risky){let i=v.safeOutput?(D.output?"":j)+(q.capture?`(${v.safeOutput})`:v.safeOutput):void 0,B1=z[D.tokensIndex];B1.type="text",B1.value=x,B1.output=i||J5.escapeRegex(x);for(let _1=D.tokensIndex+1;_1<z.length;_1++)z[_1].value="",z[_1].output="",delete z[_1].suffix;B.output=D.output+B1.output,B.backtrack=!0,m({type:"paren",extglob:!0,value:F,output:""}),s("parens");return}let c=D.close+(q.capture?")":""),n;if(D.type==="negate"){let i=A;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))i=E(q);if(i!==A||d()||/^\)+$/.test(t()))c=D.close=`)$))${i}`;if(D.inner.includes("*")&&(n=t())&&/^\.[^\\/.]+$/.test(n)){let B1=C3(n,{...J,fastpaths:!1}).output;c=D.close=`)${B1})${i})`}if(D.prev.type==="bos")B.negatedExtglob=!0}m({type:"paren",extglob:!0,value:F,output:c}),s("parens")};if(q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,x=Z.replace(QL,(C,v,c,n,i,B1)=>{if(n==="\\")return D=!0,C;if(n==="?"){if(v)return v+n+(i?T.repeat(i.length):"");if(B1===0)return P+(i?T.repeat(i.length):"");return T.repeat(c.length)}if(n===".")return H.repeat(c.length);if(n==="*"){if(v)return v+n+(i?A:"");return A}return v?C:`\\${C}`});if(D===!0)if(q.unescape===!0)x=x.replace(/\\/g,"");else x=x.replace(/\\+/g,(C)=>{return C.length%2===0?"\\\\":C?"\\":""});if(x===Z&&q.contains===!0)return B.output=Z,B;return B.output=J5.wrapOutput(x,B,J),B}while(!d()){if(F=o(),F==="\x00")continue;if(F==="\\"){let C=f();if(C==="/"&&q.bash!==!0)continue;if(C==="."||C===";")continue;if(!C){F+="\\",m({type:"text",value:F});continue}let v=/^\\+/.exec(t()),c=0;if(v&&v[0].length>2){if(c=v[0].length,B.index+=c,c%2!==0)F+="\\"}if(q.unescape===!0)F=o();else F+=o();if(B.brackets===0){m({type:"text",value:F});continue}}if(B.brackets>0&&(F!=="]"||G.value==="["||G.value==="[^")){if(q.posix!==!1&&F===":"){let C=G.value.slice(1);if(C.includes("[")){if(G.posix=!0,C.includes(":")){let v=G.value.lastIndexOf("["),c=G.value.slice(0,v),n=G.value.slice(v+2),i=JL[n];if(i){if(G.value=c+i,B.backtrack=!0,o(),!X.output&&z.indexOf(G)===1)X.output=j;continue}}}}if(F==="["&&f()!==":"||F==="-"&&f()==="]")F=`\\${F}`;if(F==="]"&&(G.value==="["||G.value==="[^"))F=`\\${F}`;if(q.posix===!0&&F==="!"&&G.value==="[")F="^";G.value+=F,N1({value:F});continue}if(B.quotes===1&&F!=='"'){F=J5.escapeRegex(F),G.value+=F,N1({value:F});continue}if(F==='"'){if(B.quotes=B.quotes===1?0:1,q.keepQuotes===!0)m({type:"text",value:F});continue}if(F==="("){F1("parens"),m({type:"paren",value:F});continue}if(F===")"){if(B.parens===0&&q.strictBrackets===!0)throw SyntaxError(F6("opening","("));let C=b[b.length-1];if(C&&B.parens===C.parens+1){p(b.pop());continue}m({type:"paren",value:F,output:B.parens?")":"\\)"}),s("parens");continue}if(F==="["){if(q.nobracket===!0||!t().includes("]")){if(q.nobracket!==!0&&q.strictBrackets===!0)throw SyntaxError(F6("closing","]"));F=`\\${F}`}else F1("brackets");m({type:"bracket",value:F});continue}if(F==="]"){if(q.nobracket===!0||G&&G.type==="bracket"&&G.value.length===1){m({type:"text",value:F,output:`\\${F}`});continue}if(B.brackets===0){if(q.strictBrackets===!0)throw SyntaxError(F6("opening","["));m({type:"text",value:F,output:`\\${F}`});continue}s("brackets");let C=G.value.slice(1);if(G.posix!==!0&&C[0]==="^"&&!C.includes("/"))F=`/${F}`;if(G.value+=F,N1({value:F}),q.literalBrackets===!1||J5.hasRegexChars(C))continue;let v=J5.escapeRegex(G.value);if(B.output=B.output.slice(0,-G.value.length),q.literalBrackets===!0){B.output+=v,G.value=v;continue}G.value=`(${V}${v}|${G.value})`,B.output+=G.value;continue}if(F==="{"&&q.nobrace!==!0){F1("braces");let C={type:"brace",value:F,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};k.push(C),m(C);continue}if(F==="}"){let C=k[k.length-1];if(q.nobrace===!0||!C){m({type:"text",value:F,output:F});continue}let v=")";if(C.dots===!0){let c=z.slice(),n=[];for(let i=c.length-1;i>=0;i--){if(z.pop(),c[i].type==="brace")break;if(c[i].type!=="dots")n.unshift(c[i].value)}v=YL(n,q),B.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){let c=B.output.slice(0,C.outputIndex),n=B.tokens.slice(C.tokensIndex);C.value=C.output="\\{",F=v="\\}",B.output=c;for(let i of n)B.output+=i.output||i.value}m({type:"brace",value:F,output:v}),s("braces"),k.pop();continue}if(F==="|"){if(b.length>0)b[b.length-1].conditions++;m({type:"text",value:F});continue}if(F===","){let C=F,v=k[k.length-1];if(v&&S[S.length-1]==="braces")v.comma=!0,C="|";m({type:"comma",value:F,output:C});continue}if(F==="/"){if(G.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",z.pop(),G=X;continue}m({type:"slash",value:F,output:O});continue}if(F==="."){if(B.braces>0&&G.type==="dot"){if(G.value===".")G.output=H;let C=k[k.length-1];G.type="dots",G.output+=F,G.value+=F,C.dots=!0;continue}if(B.braces+B.parens===0&&G.type!=="bos"&&G.type!=="slash"){m({type:"text",value:F,output:H});continue}m({type:"dot",value:F,output:H});continue}if(F==="?"){if(!(G&&G.value==="(")&&q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("qmark",F);continue}if(G&&G.type==="paren"){let v=f(),c=F;if(v==="<"&&!J5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(G.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(t()))c=`\\${F}`;m({type:"text",value:F,output:c});continue}if(q.dot!==!0&&(G.type==="slash"||G.type==="bos")){m({type:"qmark",value:F,output:g});continue}m({type:"qmark",value:F,output:T});continue}if(F==="!"){if(q.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){L1("negate",F);continue}}if(q.nonegate!==!0&&B.index===0){R1();continue}}if(F==="+"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("plus",F);continue}if(G&&G.value==="("||q.regex===!1){m({type:"plus",value:F,output:M});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||B.parens>0){m({type:"plus",value:F});continue}m({type:"plus",value:M});continue}if(F==="@"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){m({type:"at",extglob:!0,value:F,output:""});continue}m({type:"text",value:F});continue}if(F!=="*"){if(F==="$"||F==="^")F=`\\${F}`;let C=qL.exec(t());if(C)F+=C[0],B.index+=C[0].length;m({type:"text",value:F});continue}if(G&&(G.type==="globstar"||G.star===!0)){G.type="star",G.star=!0,G.value+=F,G.output=A,B.backtrack=!0,B.globstar=!0,Q1(F);continue}let D=t();if(q.noextglob!==!0&&/^\([^?]/.test(D)){L1("star",F);continue}if(G.type==="star"){if(q.noglobstar===!0){Q1(F);continue}let C=G.prev,v=C.prev,c=C.type==="slash"||C.type==="bos",n=v&&(v.type==="star"||v.type==="globstar");if(q.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:F,output:""});continue}let i=B.braces>0&&(C.type==="comma"||C.type==="brace"),B1=b.length&&(C.type==="pipe"||C.type==="paren");if(!c&&C.type!=="paren"&&!i&&!B1){m({type:"star",value:F,output:""});continue}while(D.slice(0,3)==="/**"){let _1=Z[B.index+4];if(_1&&_1!=="/")break;D=D.slice(3),Q1("/**",3)}if(C.type==="bos"&&d()){G.type="globstar",G.value+=F,G.output=E(q),B.output=G.output,B.globstar=!0,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!n&&d()){B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=E(q)+(q.strictSlashes?")":"|$)"),G.value+=F,B.globstar=!0,B.output+=C.output+G.output,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&D[0]==="/"){let _1=D[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=`${E(q)}${O}|${O}${_1})`,G.value+=F,B.output+=C.output+G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&D[0]==="/"){G.type="globstar",G.value+=F,G.output=`(?:^|${O}|${E(q)}${O})`,B.output=G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-G.output.length),G.type="globstar",G.output=E(q),G.value+=F,B.output+=G.output,B.globstar=!0,Q1(F);continue}let x={type:"star",value:F,output:A};if(q.bash===!0){if(x.output=".*?",G.type==="bos"||G.type==="slash")x.output=N+x.output;m(x);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&q.regex===!0){x.output=F,m(x);continue}if(B.index===B.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot")B.output+=y,G.output+=y;else if(q.dot===!0)B.output+=_,G.output+=_;else B.output+=N,G.output+=N;if(f()!=="*")B.output+=j,G.output+=j}m(x)}while(B.brackets>0){if(q.strictBrackets===!0)throw SyntaxError(F6("closing","]"));B.output=J5.escapeLast(B.output,"["),s("brackets")}while(B.parens>0){if(q.strictBrackets===!0)throw SyntaxError(F6("closing",")"));B.output=J5.escapeLast(B.output,"("),s("parens")}while(B.braces>0){if(q.strictBrackets===!0)throw SyntaxError(F6("closing","}"));B.output=J5.escapeLast(B.output,"{"),s("braces")}if(q.strictSlashes!==!0&&(G.type==="star"||G.type==="bracket"))m({type:"maybe_slash",value:"",output:`${O}?`});if(B.backtrack===!0){B.output="";for(let D of B.tokens)if(B.output+=D.output!=null?D.output:D.value,D.suffix)B.output+=D.suffix}return B};C3.fastpaths=(Z,J)=>{let q={...J},Q=typeof q.maxLength==="number"?Math.min(U7,q.maxLength):U7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=$z[Z]||Z;let X=J5.isWindows(J),{DOT_LITERAL:z,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:$,NO_DOTS:H,NO_DOTS_SLASH:M,STAR:O,START_ANCHOR:j}=S0.globChars(X),L=q.dot?H:$,I=q.dot?M:$,y=q.capture?"":"?:",_={negated:!1,prefix:""},T=q.bash===!0?".*?":O;if(q.capture)T=`(${T})`;let g=(N)=>{if(N.noglobstar===!0)return T;return`(${y}(?:(?!${j}${N.dot?K:z}).)*?)`},h=(N)=>{switch(N){case"*":return`${L}${W}${T}`;case".*":return`${z}${W}${T}`;case"*.*":return`${L}${T}${z}${W}${T}`;case"*/*":return`${L}${T}${V}${W}${I}${T}`;case"**":return L+g(q);case"**/*":return`(?:${L}${g(q)}${V})?${I}${W}${T}`;case"**/*.*":return`(?:${L}${g(q)}${V})?${I}${T}${z}${W}${T}`;case"**/.*":return`(?:${L}${g(q)}${V})?${z}${W}${T}`;default:{let P=/^(.*?)\.(\w+)$/.exec(N);if(!P)return;let A=h(P[1]);if(!A)return;return A+z+P[2]}}},u=J5.removePrefix(Z,_),E=h(u);if(E&&q.strictSlashes!==!0)E+=`${V}?`;return E};jz.exports=C3});var Hz=U1((dI,Mz)=>{var $L=a1("path"),GL=Kz(),I3=Bz(),_3=G7(),UL=A0(),jL=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),v1=(Z,J,q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>v1(M,J,q));return(M)=>{for(let O of $){let j=O(M);if(j)return j}return!1}}let Q=jL(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=J||{},X=_3.isWindows(J),z=Q?v1.compileRe(Z,J):v1.makeRe(Z,J,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...J,ignore:null,onMatch:null,onResult:null};W=v1(Y.ignore,$,q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:j}=v1.test($,z,J,{glob:Z,posix:X}),L={glob:Z,state:V,regex:z,posix:X,input:$,output:j,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(L);if(M===!1)return L.isMatch=!1,H?L:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(L);return L.isMatch=!1,H?L:!1}if(typeof Y.onMatch==="function")Y.onMatch(L);return H?L:!0};if(q)K.state=V;return K};v1.test=(Z,J,q,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=q||{},z=X.format||(Y?_3.toPosixSlashes:null),V=Z===Q,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===Q;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=v1.matchBase(Z,J,q,Y);else V=J.exec(W);return{isMatch:Boolean(V),match:V,output:W}};v1.matchBase=(Z,J,q,Q=_3.isWindows(q))=>{return(J instanceof RegExp?J:v1.makeRe(J,q)).test($L.basename(Z))};v1.isMatch=(Z,J,q)=>v1(J,q)(Z);v1.parse=(Z,J)=>{if(Array.isArray(Z))return Z.map((q)=>v1.parse(q,J));return I3(Z,{...J,fastpaths:!1})};v1.scan=(Z,J)=>GL(Z,J);v1.compileRe=(Z,J,q=!1,Q=!1)=>{if(q===!0)return Z.output;let Y=J||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=v1.toRegex(V,J);if(Q===!0)W.state=Z;return W};v1.makeRe=(Z,J={},q=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(J.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=I3.fastpaths(Z,J);if(!Y.output)Y=I3(Z,J);return v1.compileRe(Y,J,q,Q)};v1.toRegex=(Z,J)=>{try{let q=J||{};return new RegExp(Z,q.flags||(q.nocase?"i":""))}catch(q){if(J&&J.debug===!0)throw q;return/$^/}};v1.constants=UL;Mz.exports=v1});var _z=U1((Iz)=>{Object.defineProperty(Iz,"__esModule",{value:!0});var N6=a1("path"),BL=Hz();function ML(Z){return Z&&typeof Z==="object"&&"default"in Z?Z:{default:Z}}var HL=ML(BL),Lz=function(J,q=".js"){let Q=`${J}`;if(!N6.extname(J))Q+=q;return Q};class O6{constructor(){O6.prototype.__init.call(this),O6.prototype.__init2.call(this),O6.prototype.__init3.call(this),O6.prototype.__init4.call(this)}__init(){this.should_skip=!1}__init2(){this.should_remove=!1}__init3(){this.replacement=null}__init4(){this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z}}replace(Z,J,q,Q){if(Z)if(q!==null)Z[J][q]=Q;else Z[J]=Q}remove(Z,J,q){if(Z)if(q!==null)Z[J].splice(q,1);else delete Z[J]}}class wz extends O6{constructor(Z){super();this.enter=Z.enter,this.leave=Z.leave}visit(Z,J,q,Q,Y,X){if(Z){if(q){let z=this.should_skip,V=this.should_remove,W=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,q.call(this.context,Z,J,Y,X),this.replacement)Z=this.replacement,this.replace(J,Y,X,Z);if(this.should_remove)this.remove(J,Y,X);let K=this.should_skip,$=this.should_remove;if(this.should_skip=z,this.should_remove=V,this.replacement=W,K)return Z;if($)return null}for(let z in Z){let V=Z[z];if(typeof V!=="object")continue;else if(Array.isArray(V)){for(let W=0;W<V.length;W+=1)if(V[W]!==null&&typeof V[W].type==="string"){if(!this.visit(V[W],Z,q,Q,z,W))W--}}else if(V!==null&&typeof V.type==="string")this.visit(V,Z,q,Q,z,null)}if(Q){let z=this.replacement,V=this.should_remove;if(this.replacement=null,this.should_remove=!1,Q.call(this.context,Z,J,Y,X),this.replacement)Z=this.replacement,this.replace(J,Y,X,Z);if(this.should_remove)this.remove(J,Y,X);let W=this.should_remove;if(this.replacement=z,this.should_remove=V,W)return null}}return Z}}function FL(Z,J){return new wz(J).visit(Z,null,J.enter,J.leave)}var L6={ArrayPattern(Z,J){for(let q of J.elements)if(q)L6[q.type](Z,q)},AssignmentPattern(Z,J){L6[J.left.type](Z,J.left)},Identifier(Z,J){Z.push(J.name)},MemberExpression(){},ObjectPattern(Z,J){for(let q of J.properties)if(q.type==="RestElement")L6.RestElement(Z,q);else L6[q.value.type](Z,q.value)},RestElement(Z,J){L6[J.argument.type](Z,J.argument)}},j7=function(J){let q=[];return L6[J.type](q,J),q},LL={const:!0,let:!0};class w6{constructor(Z={}){if(this.parent=Z.parent,this.isBlockScope=!!Z.block,this.declarations=Object.create(null),Z.params)Z.params.forEach((J)=>{j7(J).forEach((q)=>{this.declarations[q]=!0})})}addDeclaration(Z,J,q){if(!J&&this.isBlockScope)this.parent.addDeclaration(Z,J,q);else if(Z.id)j7(Z.id).forEach((Q)=>{this.declarations[Q]=!0})}contains(Z){return this.declarations[Z]||(this.parent?this.parent.contains(Z):!1)}}var Oz=function(J,q="scope"){let Q=new w6;return FL(J,{enter(Y,X){let z=Y;if(/(Function|Class)Declaration/.test(z.type))Q.addDeclaration(z,!1,!1);if(z.type==="VariableDeclaration"){let{kind:W}=z,K=LL[W];z.declarations.forEach(($)=>{Q.addDeclaration($,K,!0)})}let V;if(/Function/.test(z.type)){let W=z;if(V=new w6({parent:Q,block:!1,params:W.params}),W.type==="FunctionExpression"&&W.id)V.addDeclaration(W,!1,!1)}if(/For(In|Of)?Statement/.test(z.type))V=new w6({parent:Q,block:!0});if(z.type==="BlockStatement"&&!/Function/.test(X.type))V=new w6({parent:Q,block:!0});if(z.type==="CatchClause")V=new w6({parent:Q,params:z.param?[z.param]:[],block:!0});if(V)Object.defineProperty(z,q,{value:V,configurable:!0}),Q=V},leave(Y){if(Y[q])Q=Q.parent}}),Q};function wL(Z){return Array.isArray(Z)}function Fz(Z){if(wL(Z))return Z;if(Z==null)return[];return[Z]}var R6=function(J){return J.split(N6.win32.sep).join(N6.posix.sep)};function OL(Z,J){if(J===!1||N6.isAbsolute(Z)||Z.startsWith("*"))return R6(Z);let q=R6(N6.resolve(J||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return N6.posix.join(q,R6(Z))}var Nz=function(J,q,Q){let Y=Q&&Q.resolve,X=(W)=>W instanceof RegExp?W:{test:(K)=>{let $=OL(W,Y);return HL.default($,{dot:!0})(K)}},z=Fz(J).map(X),V=Fz(q).map(X);return function(K){if(typeof K!=="string")return!1;if(/\0/.test(K))return!1;let $=R6(K);for(let H=0;H<V.length;++H)if(V[H].test($))return!1;for(let H=0;H<z.length;++H)if(z[H].test($))return!0;return!z.length}},NL="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public",RL="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl",Rz=new Set(`${NL} ${RL}`.split(" "));Rz.add("");var M7=function(J){let q=J.replace(/-(\w)/g,(Q,Y)=>Y.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g,"_");if(/\d/.test(q[0])||Rz.has(q))q=`_${q}`;return q||"_"};function B7(Z){return(JSON.stringify(Z)||"undefined").replace(/[\u2028\u2029]/g,(J)=>`\\u${`000${J.charCodeAt(0).toString(16)}`.slice(-4)}`)}function CL(Z,J,q){let Q="[",Y=J?`
|
|
46
|
-
${
|
|
47
|
-
${
|
|
48
|
-
${
|
|
49
|
-
${
|
|
50
|
-
`,z=
|
|
41
|
+
${q}`:Z,NM=(Z,q)=>Z.execIndex>q.execIndex?1:-1,pJ=(Z,q)=>q?`(${Z})`:Z,iJ,PM,QX,SM="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",JX="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",v9,h9="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",yM,EM,bM,xM,C1=function(q,Q){if(Q===void 0)Q={};this.label=q,this.keyword=Q.keyword,this.beforeExpr=!!Q.beforeExpr,this.startsExpr=!!Q.startsExpr,this.isLoop=!!Q.isLoop,this.isAssign=!!Q.isAssign,this.prefix=!!Q.prefix,this.postfix=!!Q.postfix,this.binop=Q.binop||null,this.updateContext=null},L5,z5,J3,R,R5,kM,XX,O5,zX,fM,vM,_0,rJ,hM,B0=function(q,Q){this.line=q,this.column=Q},V7=function(q,Q,J){if(this.start=Q,this.end=J,q.sourceFile!==null)this.source=q.sourceFile},WZ,oJ=!1,M0=1,B6=2,Y3=4,WX=8,KX=16,$X=32,X3=64,GX=128,D0=256,z3,f4=0,W3=1,s5=2,UX=3,jX=4,BX=5,c1=function(q,Q,J){this.options=q=gM(q),this.sourceFile=q.sourceFile,this.keywords=_8(yM[q.ecmaVersion>=6?6:q.sourceType==="module"?"5module":5]);var Y="";if(q.allowReserved!==!0){if(Y=v9[q.ecmaVersion>=6?6:q.ecmaVersion===5?5:3],q.sourceType==="module")Y+=" await"}this.reservedWords=_8(Y);var X=(Y?Y+" ":"")+v9.strict;if(this.reservedWordsStrict=_8(X),this.reservedWordsStrictBind=_8(X+" "+v9.strictBind),this.input=String(Q),this.containsEsc=!1,J)this.pos=J,this.lineStart=this.input.lastIndexOf(`
|
|
42
|
+
`,J-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R5).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=R.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=q.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&q.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(M0),this.regexpState=null,this.privateNameStack=[]},m5,Y5,uM,W7=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1},z1,K3,dM,lM,Z0=1,KZ=2,MX=4,y5,A5=function(q,Q,J,Y,X){this.token=q,this.isExpr=!!Q,this.preserveSpace=!!J,this.override=Y,this.generator=!!X},y1,M6,G1,pM,h4,U8,iM=function(q){this.flags=q,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1},K7=function(q,Q,J){if(this.type="",this.start=Q,this.end=0,q.options.locations)this.loc=new V7(q,J);if(q.options.directSourceFile)this.sourceFile=q.options.directSourceFile;if(q.options.ranges)this.range=[Q,0]},T0,LX="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",wX,OX,NX,nM,sM,tJ="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",RX="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",CX,IX,_X,aM,rM,DX,$Z,r6,O4,X1,o5=function(q){this.parser=q,this.validFlags="gim"+(q.options.ecmaVersion>=6?"uy":"")+(q.options.ecmaVersion>=9?"s":"")+(q.options.ecmaVersion>=13?"d":""),this.unicodeProperties=DX[q.options.ecmaVersion>=13?13:q.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]},$3=function(q){if(this.type=q.type,this.value=q.value,this.start=q.start,this.end=q.end,q.options.locations)this.loc=new V7(q,q.startLoc,q.endLoc);if(q.options.ranges)this.range=[q.start,q.end]},H1,xX,YH="8.7.1",G3="at position ",U3="at output position ",VH,GH,g9="resolveDependencies",fX,RH,CH,m4="beforeExit",u4,X2=(Z)=>console.warn(Z.message||Z),PH,SH,yH=(Z)=>Z&&typeof Z==="object"?Z:{},EH=(Z,q,Q)=>(J)=>{if(typeof J==="string"){let Y=Z[J];if(Y)return Y;e(m1(q,cX(q),`valid values are ${Q}${V8(Object.keys(Z))}. You can also supply an object for more fine-grained control`,J))}return yH(J)},lX=(Z,q,Q,J)=>{let Y=Z===null||Z===void 0?void 0:Z.preset;if(Y){let X=q[Y];if(X)return{...X,...Z};else e(m1(`${Q}.preset`,cX(Q),`valid values are ${V8(Object.keys(q))}`,Y))}return EH(q,Q,J)(Z)},cX=(Z)=>Z.split(".").join("").toLowerCase(),xH=(Z)=>{let{onwarn:q}=Z;return q?(Q)=>{Q.toString=()=>{let J="";if(Q.plugin)J+=`(${Q.plugin} plugin) `;if(Q.loc)J+=`${V1(Q.loc.file)} (${Q.loc.line}:${Q.loc.column}) `;return J+=Q.message,J},q(Q,X2)}:X2},kH=(Z)=>({allowAwaitOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,sourceType:"module",...Z.acorn}),fH=(Z)=>H6(Z.acornInjectPlugins),vH=(Z)=>{var q;return((q=Z.cache)===null||q===void 0?void 0:q.cache)||Z.cache},pX=(Z)=>{if(Z===!0)return()=>!0;if(typeof Z==="function")return(q,...Q)=>!q.startsWith("\x00")&&Z(q,...Q)||!1;if(Z){let q=new Set,Q=[];for(let J of H6(Z))if(J instanceof RegExp)Q.push(J);else q.add(J);return(J,...Y)=>q.has(J)||Q.some((X)=>X.test(J))}return()=>!1},hH=(Z,q,Q)=>{let J=Z.inlineDynamicImports;if(J)G6('The "inlineDynamicImports" option is deprecated. Use the "output.inlineDynamicImports" option instead.',!1,q,Q);return J},gH=(Z)=>{let q=Z.input;return q==null?[]:typeof q==="string"?[q]:q},mH=(Z,q,Q)=>{let J=Z.manualChunks;if(J)G6('The "manualChunks" option is deprecated. Use the "output.manualChunks" option instead.',!1,q,Q);return J},uH=(Z,q,Q)=>{var J;let Y=Z.maxParallelFileReads;if(typeof Y==="number")G6('The "maxParallelFileReads" option is deprecated. Use the "maxParallelFileOps" option instead.',!1,q,Q);let X=(J=Z.maxParallelFileOps)!==null&&J!==void 0?J:Y;if(typeof X==="number"){if(X<=0)return 1/0;return X}return 20},dH=(Z,q)=>{let Q=Z.moduleContext;if(typeof Q==="function")return(J)=>{var Y;return(Y=Q(J))!==null&&Y!==void 0?Y:q};if(Q){let J=Object.create(null);for(let[Y,X]of Object.entries(Q))J[U5(Y)]=X;return(Y)=>J[Y]||q}return()=>q},lH=(Z,q)=>{let Q=Z.preserveEntrySignatures;if(Q==null)q.add("preserveEntrySignatures");return Q!==null&&Q!==void 0?Q:"strict"},cH=(Z,q,Q)=>{let J=Z.preserveModules;if(J)G6('The "preserveModules" option is deprecated. Use the "output.preserveModules" option instead.',!1,q,Q);return J},pH=(Z,q,Q)=>{let J=Z.treeshake;if(J===!1)return!1;let Y=lX(Z.treeshake,PH,"treeshake","false, true, ");if(typeof Y.pureExternalModules<"u")G6(`The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead. "treeshake.pureExternalModules: true" is equivalent to "treeshake.moduleSideEffects: 'no-external'"`,!0,q,Q);return{annotations:Y.annotations!==!1,correctVarValueBeforeDeclaration:Y.correctVarValueBeforeDeclaration===!0,moduleSideEffects:typeof J==="object"&&J.pureExternalModules?z2(J.moduleSideEffects,J.pureExternalModules):z2(Y.moduleSideEffects,void 0),propertyReadSideEffects:Y.propertyReadSideEffects==="always"?"always":Y.propertyReadSideEffects!==!1,tryCatchDeoptimization:Y.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:Y.unknownGlobalSideEffects!==!1}},z2=(Z,q)=>{if(typeof Z==="boolean")return()=>Z;if(Z==="no-external")return(J,Y)=>!Y;if(typeof Z==="function")return(J,Y)=>!J.startsWith("\x00")?Z(J,Y)!==!1:!0;if(Array.isArray(Z)){let J=new Set(Z);return(Y)=>J.has(Y)}if(Z)e(m1("treeshake.moduleSideEffects","treeshake",'please use one of false, "no-external", a function or an array'));let Q=pX(q);return(J,Y)=>!(Y&&Q(J))},iH,nH,oH=(Z,q,Q)=>{let{file:J}=Z;if(typeof J==="string"){if(q)return e(m1("output.file","outputdir",'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(Q.input))return e(m1("output.file","outputdir",'you must set "output.dir" instead of "output.file" when providing named inputs'))}return J},tH=(Z)=>{let q=Z.format;switch(q){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return q;default:return e({message:'You must specify "output.format", which can be one of "amd", "cjs", "system", "es", "iife" or "umd".',url:"https://rollupjs.org/guide/en/#outputformat"})}},eH=(Z,q)=>{var Q;let J=((Q=Z.inlineDynamicImports)!==null&&Q!==void 0?Q:q.inlineDynamicImports)||!1,{input:Y}=q;if(J&&(Array.isArray(Y)?Y:Object.keys(Y)).length>1)return e(m1("output.inlineDynamicImports","outputinlinedynamicimports",'multiple inputs are not supported when "output.inlineDynamicImports" is true'));return J},ZF=(Z,q,Q)=>{var J;let Y=((J=Z.preserveModules)!==null&&J!==void 0?J:Q.preserveModules)||!1;if(Y){if(q)return e(m1("output.inlineDynamicImports","outputinlinedynamicimports",'this option is not supported for "output.preserveModules"'));if(Q.preserveEntrySignatures===!1)return e(m1("preserveEntrySignatures","preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return Y},qF=(Z,q)=>{let Q=Z.preferConst;if(Q!=null)j5('The "output.preferConst" option is deprecated. Use the "output.generatedCode.constBindings" option instead.',!1,q);return!!Q},QF=(Z)=>{let{preserveModulesRoot:q}=Z;if(q===null||q===void 0)return;return U5(q)},JF=(Z)=>{let q={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...Z.amd};if((q.autoId||q.basePath)&&q.id)return e(m1("output.amd.id","outputamd",'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"'));if(q.basePath&&!q.autoId)return e(m1("output.amd.basePath","outputamd",'this option only works with "output.amd.autoId"'));let Q;if(q.autoId)Q={autoId:!0,basePath:q.basePath,define:q.define,forceJsExtensionForImports:q.forceJsExtensionForImports};else Q={autoId:!1,define:q.define,forceJsExtensionForImports:q.forceJsExtensionForImports,id:q.id};return Q},B4=(Z,q)=>{let Q=Z[q];if(typeof Q==="function")return Q;return()=>Q||""},YF=(Z,q)=>{let{dir:Q}=Z;if(typeof Q==="string"&&typeof q==="string")return e(m1("output.dir","outputdir",'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks'));return Q},XF=(Z,q)=>{let Q=Z.dynamicImportFunction;if(Q)j5('The "output.dynamicImportFunction" option is deprecated. Use the "renderDynamicImport" plugin hook instead.',!1,q);return Q},zF=(Z,q)=>{let Q=Z.entryFileNames;if(Q==null)q.add("entryFileNames");return Q!==null&&Q!==void 0?Q:"[name].js"},WF=(Z,q)=>{let Q=lX(Z.generatedCode,SH,"output.generatedCode","");return{arrowFunctions:Q.arrowFunctions===!0,constBindings:Q.constBindings===!0||q,objectShorthand:Q.objectShorthand===!0,reservedNamesAsProps:Q.reservedNamesAsProps===!0,symbols:Q.symbols===!0}},KF=(Z,q)=>{if(q)return"";let Q=Z.indent;return Q===!1?"":Q!==null&&Q!==void 0?Q:!0},V2,$F=(Z,q)=>{let Q=Z.interop,J=new Set,Y=(X)=>{if(!J.has(X)){if(J.add(X),!V2.has(X))return e(m1("output.interop","outputinterop",`use one of ${Array.from(V2,(z)=>JSON.stringify(z)).join(", ")}`,X));if(typeof X==="boolean")j5({message:`The boolean value "${X}" for the "output.interop" option is deprecated. Use ${X?'"auto"':'"esModule", "default" or "defaultOnly"'} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"},!1,q)}return X};if(typeof Q==="function"){let X=Object.create(null),z=null;return(V)=>V===null?z||Y(z=Q(V)):(V in X)?X[V]:Y(X[V]=Q(V))}return Q===void 0?()=>!0:()=>Y(Q)},GF=(Z,q,Q,J)=>{let Y=Z.manualChunks||J.manualChunks;if(Y){if(q)return e(m1("output.manualChunks","outputmanualchunks",'this option is not supported for "output.inlineDynamicImports"'));if(Q)return e(m1("output.manualChunks","outputmanualchunks",'this option is not supported for "output.preserveModules"'))}return Y||{}},UF=(Z,q,Q)=>{var J;return(J=Z.minifyInternalExports)!==null&&J!==void 0?J:Q||q==="es"||q==="system"},jF=(Z,q,Q)=>{let J=Z.namespaceToStringTag;if(J!=null)return j5('The "output.namespaceToStringTag" option is deprecated. Use the "output.generatedCode.symbols" option instead.',!1,Q),J;return q.symbols||!1},BF=(Z)=>{let{sourcemapBaseUrl:q}=Z;if(q){if(aH(q))return q;return e(m1("output.sourcemapBaseUrl","outputsourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(q)}`))}},q0;var nX=iW(()=>{G2={};for(t8=0;t8<u9.length;t8++)G2[u9.charCodeAt(t8)]=t8;if(typeof window<"u"&&typeof window.btoa==="function")d9=(Z)=>window.btoa(unescape(encodeURIComponent(Z)));else if(typeof Buffer==="function")d9=(Z)=>Buffer.from(Z,"utf-8").toString("base64");eG=Object.prototype.toString;n8={insertLeft:!1,insertRight:!1,storeName:!1};XJ=Object.prototype.hasOwnProperty;zJ=/[/\\]/;d1=Symbol("Unknown Key"),C4=Symbol("Unknown Non-Accessor Key"),J0=Symbol("Unknown Integer"),$1=[],D1=[d1],ZU=[C4],c9=[J0],Q6=Symbol("Entities");r1=new Y0;x1=Symbol("Unknown Value"),B2=Symbol("Unknown Truthy Value");Y1=new class extends B5{},LZ={thisArg:null,type:E1},qU=[Y1],wZ={args:qU,thisArg:null,type:h5},p9=[],d4={args:p9,thisArg:null,type:P1,withNew:!1};$8=class $8 extends B5{constructor(Z){super();this.name=Z,this.alwaysRendered=!1,this.initReached=!1,this.isId=!1,this.isReassigned=!1,this.kind=null,this.renderBaseName=null,this.renderName=null}addReference(Z){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getName(Z){let q=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${Z(q)}`:q}hasEffectsOnInteractionAtPath(Z,{type:q},Q){return q!==E1||Z.length>0}include(){this.included=!0}markCalledFromTryStatement(){}setRenderNames(Z,q){this.renderBaseName=Z,this.renderName=q}};X0=class X0 extends $8{constructor(Z,q){super(q);this.referenced=!1,this.module=Z,this.isNamespace=q==="*"}addReference(Z){if(this.referenced=!0,this.name==="default"||this.name==="*")this.module.suggestName(Z.name)}hasEffectsOnInteractionAtPath(Z,{type:q}){return q!==E1||Z.length>(this.isNamespace?1:0)}include(){if(!this.included)this.included=!0,this.module.used=!0}};n1=Object.freeze(Object.create(null)),o6=Object.freeze({}),s8=Object.freeze([]);XU=/^(?:\/|(?:[A-Za-z]:)?[\\|/])/,zU=/^\.?\.(\/|$)/;VU=/\\/g;WU=/^(\.\.\/)*\.\.$/;(function(Z){Z.ALREADY_CLOSED="ALREADY_CLOSED",Z.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",Z.ASSET_NOT_FOUND="ASSET_NOT_FOUND",Z.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",Z.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",Z.BAD_LOADER="BAD_LOADER",Z.CANNOT_EMIT_FROM_OPTIONS_HOOK="CANNOT_EMIT_FROM_OPTIONS_HOOK",Z.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",Z.CHUNK_INVALID="CHUNK_INVALID",Z.CIRCULAR_REEXPORT="CIRCULAR_REEXPORT",Z.CYCLIC_CROSS_CHUNK_REEXPORT="CYCLIC_CROSS_CHUNK_REEXPORT",Z.DEPRECATED_FEATURE="DEPRECATED_FEATURE",Z.EXTERNAL_SYNTHETIC_EXPORTS="EXTERNAL_SYNTHETIC_EXPORTS",Z.FILE_NAME_CONFLICT="FILE_NAME_CONFLICT",Z.FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY="FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY",Z.FILE_NOT_FOUND="FILE_NOT_FOUND",Z.INPUT_HOOK_IN_OUTPUT_PLUGIN="INPUT_HOOK_IN_OUTPUT_PLUGIN",Z.INVALID_CHUNK="INVALID_CHUNK",Z.INVALID_EXPORT_OPTION="INVALID_EXPORT_OPTION",Z.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",Z.INVALID_OPTION="INVALID_OPTION",Z.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",Z.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",Z.MISSING_EXPORT="MISSING_EXPORT",Z.MISSING_IMPLICIT_DEPENDANT="MISSING_IMPLICIT_DEPENDANT",Z.MIXED_EXPORTS="MIXED_EXPORTS",Z.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",Z.AMBIGUOUS_EXTERNAL_NAMESPACES="AMBIGUOUS_EXTERNAL_NAMESPACES",Z.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE="NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",Z.PLUGIN_ERROR="PLUGIN_ERROR",Z.PREFER_NAMED_EXPORTS="PREFER_NAMED_EXPORTS",Z.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT="SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",Z.UNEXPECTED_NAMED_IMPORT="UNEXPECTED_NAMED_IMPORT",Z.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",Z.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT",Z.VALIDATION_ERROR="VALIDATION_ERROR"})(W1||(W1={}));pU=new Set(["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","NaN","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]),l4=pU,H2=/[^$_a-zA-Z0-9]/g;L2={exports:{}},c4={},aU=GZ,UJ=`[^${b5}]`,RZ=`(?:${p4}|$)`,O2=`(?:^|${p4})`,CZ=`${p5}{1,2}${RZ}`,eU=`(?!${p5})`,Zj=`(?!${O2}${CZ})`,qj=`(?!${p5}{0,1}${RZ})`,Qj=`(?!${CZ})`,Jj=`[^.${p4}]`,Yj=`${w2}*?`,N2={DOT_LITERAL:p5,PLUS_LITERAL:rU,QMARK_LITERAL:oU,SLASH_LITERAL:p4,ONE_CHAR:tU,QMARK:w2,END_ANCHOR:RZ,DOTS_SLASH:CZ,NO_DOT:eU,NO_DOTS:Zj,NO_DOT_SLASH:qj,NO_DOTS_SLASH:Qj,QMARK_NO_DOT:Jj,STAR:Yj,START_ANCHOR:O2},Xj={...N2,SLASH_LITERAL:`[${b5}]`,QMARK:UJ,STAR:`${UJ}*?`,DOTS_SLASH:`${p5}{1,2}(?:[${b5}]|$)`,NO_DOT:`(?!${p5})`,NO_DOTS:`(?!(?:^|[${b5}])${p5}{1,2}(?:[${b5}]|$))`,NO_DOT_SLASH:`(?!${p5}{0,1}(?:[${b5}]|$))`,NO_DOTS_SLASH:`(?!${p5}{1,2}(?:[${b5}]|$))`,QMARK_NO_DOT:`[^.${b5}]`,START_ANCHOR:`(?:^|[${b5}])`,END_ANCHOR:`(?:[${b5}]|$)`},zj={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},i4={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:zj,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:aU.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?Xj:N2}};(function(Z){let q=GZ,Q=process.platform==="win32",{REGEX_BACKSLASH:J,REGEX_REMOVE_BACKSLASH:Y,REGEX_SPECIAL_CHARS:X,REGEX_SPECIAL_CHARS_GLOBAL:z}=i4;Z.isObject=(V)=>V!==null&&typeof V==="object"&&!Array.isArray(V),Z.hasRegexChars=(V)=>X.test(V),Z.isRegexChar=(V)=>V.length===1&&Z.hasRegexChars(V),Z.escapeRegex=(V)=>V.replace(z,"\\$1"),Z.toPosixSlashes=(V)=>V.replace(J,"/"),Z.removeBackslashes=(V)=>{return V.replace(Y,(W)=>{return W==="\\"?"":W})},Z.supportsLookbehinds=()=>{let V=process.version.slice(1).split(".").map(Number);if(V.length===3&&V[0]>=9||V[0]===8&&V[1]>=10)return!0;return!1},Z.isWindows=(V)=>{if(V&&typeof V.windows==="boolean")return V.windows;return Q===!0||q.sep==="\\"},Z.escapeLast=(V,W,K)=>{let $=V.lastIndexOf(W,K);if($===-1)return V;if(V[$-1]==="\\")return Z.escapeLast(V,W,$-1);return`${V.slice(0,$)}\\${V.slice($)}`},Z.removePrefix=(V,W={})=>{let K=V;if(K.startsWith("./"))K=K.slice(2),W.prefix="./";return K},Z.wrapOutput=(V,W={},K={})=>{let $=K.contains?"":"^",H=K.contains?"":"$",M=`${$}(?:${V})${H}`;if(W.negated===!0)M=`(?:^(?!${M}).*$)`;return M}})(c4);jJ=c4,{CHAR_ASTERISK:C9,CHAR_AT:Vj,CHAR_BACKWARD_SLASH:s6,CHAR_COMMA:Wj,CHAR_DOT:I9,CHAR_EXCLAMATION_MARK:_9,CHAR_FORWARD_SLASH:R2,CHAR_LEFT_CURLY_BRACE:D9,CHAR_LEFT_PARENTHESES:T9,CHAR_LEFT_SQUARE_BRACKET:Kj,CHAR_PLUS:$j,CHAR_QUESTION_MARK:BJ,CHAR_RIGHT_CURLY_BRACE:Gj,CHAR_RIGHT_PARENTHESES:MJ,CHAR_RIGHT_SQUARE_BRACKET:Uj}=i4,Bj=jj,D4=i4,w5=c4,{MAX_LENGTH:T4,POSIX_REGEX_SOURCE:Mj,REGEX_NON_SPECIAL_CHARS:Hj,REGEX_SPECIAL_CHARS_BACKREF:Fj,REPLACEMENTS:C2}=D4;IZ.fastpaths=(Z,q)=>{let Q={...q},J=typeof Q.maxLength==="number"?Math.min(T4,Q.maxLength):T4,Y=Z.length;if(Y>J)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${J}`);Z=C2[Z]||Z;let X=w5.isWindows(q),{DOT_LITERAL:z,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:$,NO_DOTS:H,NO_DOTS_SLASH:M,STAR:O,START_ANCHOR:L}=D4.globChars(X),B=Q.dot?H:$,C=Q.dot?M:$,y=Q.capture?"":"?:",P={negated:!1,prefix:""},_=Q.bash===!0?".*?":O;if(Q.capture)_=`(${_})`;let v=(N)=>{if(N.noglobstar===!0)return _;return`(${y}(?:(?!${L}${N.dot?K:z}).)*?)`},h=(N)=>{switch(N){case"*":return`${B}${W}${_}`;case".*":return`${z}${W}${_}`;case"*.*":return`${B}${_}${z}${W}${_}`;case"*/*":return`${B}${_}${V}${W}${C}${_}`;case"**":return B+v(Q);case"**/*":return`(?:${B}${v(Q)}${V})?${C}${W}${_}`;case"**/*.*":return`(?:${B}${v(Q)}${V})?${C}${_}${z}${W}${_}`;case"**/.*":return`(?:${B}${v(Q)}${V})?${z}${W}${_}`;default:{let A=/^(.*?)\.(\w+)$/.exec(N);if(!A)return;let T=h(A[1]);if(!T)return;return T+z+A[2]}}},d=w5.removePrefix(Z,P),E=h(d);if(E&&Q.strictSlashes!==!0)E+=`${V}?`;return E};wj=IZ,Oj=GZ,Nj=Bj,n9=wj,_Z=c4,Rj=i4;f1.test=(Z,q,Q,{glob:J,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=Q||{},z=X.format||(Y?_Z.toPosixSlashes:null),V=Z===J,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===J;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=f1.matchBase(Z,q,Q,Y);else V=q.exec(W);return{isMatch:Boolean(V),match:V,output:W}};f1.matchBase=(Z,q,Q,J=_Z.isWindows(Q))=>{return(q instanceof RegExp?q:f1.makeRe(q,Q)).test(Oj.basename(Z))};f1.isMatch=(Z,q,Q)=>f1(q,Q)(Z);f1.parse=(Z,q)=>{if(Array.isArray(Z))return Z.map((Q)=>f1.parse(Q,q));return n9(Z,{...q,fastpaths:!1})};f1.scan=(Z,q)=>Nj(Z,q);f1.compileRe=(Z,q,Q=!1,J=!1)=>{if(Q===!0)return Z.output;let Y=q||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=f1.toRegex(V,q);if(J===!0)W.state=Z;return W};f1.makeRe=(Z,q={},Q=!1,J=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=n9.fastpaths(Z,q);if(!Y.output)Y=n9(Z,q);return f1.compileRe(Y,q,Q,J)};f1.toRegex=(Z,q)=>{try{let Q=q||{};return new RegExp(Z,Q.flags||(Q.nocase?"i":""))}catch(Q){if(q&&q.debug===!0)throw Q;return/$^/}};f1.constants=Rj;Ij=f1;(function(Z){Z.exports=Ij})(L2);EI=sU(L2.exports),e8={ArrayPattern(Z,q){for(let Q of q.elements)if(Q)e8[Q.type](Z,Q)},AssignmentPattern(Z,q){e8[q.left.type](Z,q.left)},Identifier(Z,q){Z.push(q.name)},MemberExpression(){},ObjectPattern(Z,q){for(let Q of q.properties)if(Q.type==="RestElement")e8.RestElement(Z,Q);else e8[Q.value.type](Z,Q.value)},RestElement(Z,q){e8[q.argument.type](Z,q.argument)}},Aj=new Set(`${Dj} ${Tj}`.split(" "));Aj.add("");F0=new class extends B5{getLiteralValueAtPath(){return}},Z6={value:{hasEffectsWhenCalled:null,returns:Y1}},DZ=new class extends B5{getReturnExpressionWhenCalledAtPath(q){if(q.length===1)return w0(a9,q[0]);return Y1}hasEffectsOnInteractionAtPath(q,Q,J){if(Q.type===E1)return q.length>1;if(Q.type===P1&&q.length===1)return L0(a9,q[0],Q,J);return!0}},T8={value:{hasEffectsWhenCalled:null,returns:DZ}},U6=new class extends B5{getReturnExpressionWhenCalledAtPath(q){if(q.length===1)return w0(r9,q[0]);return Y1}hasEffectsOnInteractionAtPath(q,Q,J){if(Q.type===E1)return q.length>1;if(Q.type===P1&&q.length===1)return L0(r9,q[0],Q,J);return!0}},q6={value:{hasEffectsWhenCalled:null,returns:U6}},TZ=new class extends B5{getReturnExpressionWhenCalledAtPath(q){if(q.length===1)return w0(V0,q[0]);return Y1}hasEffectsOnInteractionAtPath(q,Q,J){if(Q.type===E1)return q.length>1;if(Q.type===P1&&q.length===1)return L0(V0,q[0],Q,J);return!0}},j1={value:{hasEffectsWhenCalled:null,returns:TZ}},LJ={value:{hasEffectsWhenCalled({args:Z},q){let Q=Z[1];return Z.length<2||typeof Q.getLiteralValueAtPath($1,r1,{deoptimizeCache(){}})==="symbol"&&Q.hasEffectsOnInteractionAtPath($1,d4,q)},returns:TZ}},AZ=a4({hasOwnProperty:T8,isPrototypeOf:T8,propertyIsEnumerable:T8,toLocaleString:j1,toString:j1,valueOf:Z6}),a9=a4({valueOf:T8},AZ),r9=a4({toExponential:j1,toFixed:j1,toLocaleString:j1,toPrecision:j1,valueOf:q6},AZ),V0=a4({anchor:j1,at:Z6,big:j1,blink:j1,bold:j1,charAt:j1,charCodeAt:q6,codePointAt:Z6,concat:j1,endsWith:T8,fixed:j1,fontcolor:j1,fontsize:j1,includes:T8,indexOf:q6,italics:j1,lastIndexOf:q6,link:j1,localeCompare:q6,match:Z6,matchAll:Z6,normalize:j1,padEnd:j1,padStart:j1,repeat:j1,replace:LJ,replaceAll:LJ,search:q6,slice:j1,small:j1,split:Z6,startsWith:T8,strike:j1,sub:j1,substr:j1,substring:j1,sup:j1,toLocaleLowerCase:j1,toLocaleUpperCase:j1,toLowerCase:j1,toString:j1,toUpperCase:j1,trim:j1,trimEnd:j1,trimLeft:j1,trimRight:j1,trimStart:j1,valueOf:j1},AZ);s={};s.Program=s.BlockStatement=s.StaticBlock=function(Z,q,Q){for(var J=0,Y=Z.body;J<Y.length;J+=1){var X=Y[J];Q(X,q,"Statement")}};s.Statement=PZ;s.EmptyStatement=E8;s.ExpressionStatement=s.ParenthesizedExpression=s.ChainExpression=function(Z,q,Q){return Q(Z.expression,q,"Expression")};s.IfStatement=function(Z,q,Q){if(Q(Z.test,q,"Expression"),Q(Z.consequent,q,"Statement"),Z.alternate)Q(Z.alternate,q,"Statement")};s.LabeledStatement=function(Z,q,Q){return Q(Z.body,q,"Statement")};s.BreakStatement=s.ContinueStatement=E8;s.WithStatement=function(Z,q,Q){Q(Z.object,q,"Expression"),Q(Z.body,q,"Statement")};s.SwitchStatement=function(Z,q,Q){Q(Z.discriminant,q,"Expression");for(var J=0,Y=Z.cases;J<Y.length;J+=1){var X=Y[J];if(X.test)Q(X.test,q,"Expression");for(var z=0,V=X.consequent;z<V.length;z+=1){var W=V[z];Q(W,q,"Statement")}}};s.SwitchCase=function(Z,q,Q){if(Z.test)Q(Z.test,q,"Expression");for(var J=0,Y=Z.consequent;J<Y.length;J+=1){var X=Y[J];Q(X,q,"Statement")}};s.ReturnStatement=s.YieldExpression=s.AwaitExpression=function(Z,q,Q){if(Z.argument)Q(Z.argument,q,"Expression")};s.ThrowStatement=s.SpreadElement=function(Z,q,Q){return Q(Z.argument,q,"Expression")};s.TryStatement=function(Z,q,Q){if(Q(Z.block,q,"Statement"),Z.handler)Q(Z.handler,q);if(Z.finalizer)Q(Z.finalizer,q,"Statement")};s.CatchClause=function(Z,q,Q){if(Z.param)Q(Z.param,q,"Pattern");Q(Z.body,q,"Statement")};s.WhileStatement=s.DoWhileStatement=function(Z,q,Q){Q(Z.test,q,"Expression"),Q(Z.body,q,"Statement")};s.ForStatement=function(Z,q,Q){if(Z.init)Q(Z.init,q,"ForInit");if(Z.test)Q(Z.test,q,"Expression");if(Z.update)Q(Z.update,q,"Expression");Q(Z.body,q,"Statement")};s.ForInStatement=s.ForOfStatement=function(Z,q,Q){Q(Z.left,q,"ForInit"),Q(Z.right,q,"Expression"),Q(Z.body,q,"Statement")};s.ForInit=function(Z,q,Q){if(Z.type==="VariableDeclaration")Q(Z,q);else Q(Z,q,"Expression")};s.DebuggerStatement=E8;s.FunctionDeclaration=function(Z,q,Q){return Q(Z,q,"Function")};s.VariableDeclaration=function(Z,q,Q){for(var J=0,Y=Z.declarations;J<Y.length;J+=1){var X=Y[J];Q(X,q)}};s.VariableDeclarator=function(Z,q,Q){if(Q(Z.id,q,"Pattern"),Z.init)Q(Z.init,q,"Expression")};s.Function=function(Z,q,Q){if(Z.id)Q(Z.id,q,"Pattern");for(var J=0,Y=Z.params;J<Y.length;J+=1){var X=Y[J];Q(X,q,"Pattern")}Q(Z.body,q,Z.expression?"Expression":"Statement")};s.Pattern=function(Z,q,Q){if(Z.type==="Identifier")Q(Z,q,"VariablePattern");else if(Z.type==="MemberExpression")Q(Z,q,"MemberPattern");else Q(Z,q)};s.VariablePattern=E8;s.MemberPattern=PZ;s.RestElement=function(Z,q,Q){return Q(Z.argument,q,"Pattern")};s.ArrayPattern=function(Z,q,Q){for(var J=0,Y=Z.elements;J<Y.length;J+=1){var X=Y[J];if(X)Q(X,q,"Pattern")}};s.ObjectPattern=function(Z,q,Q){for(var J=0,Y=Z.properties;J<Y.length;J+=1){var X=Y[J];if(X.type==="Property"){if(X.computed)Q(X.key,q,"Expression");Q(X.value,q,"Pattern")}else if(X.type==="RestElement")Q(X.argument,q,"Pattern")}};s.Expression=PZ;s.ThisExpression=s.Super=s.MetaProperty=E8;s.ArrayExpression=function(Z,q,Q){for(var J=0,Y=Z.elements;J<Y.length;J+=1){var X=Y[J];if(X)Q(X,q,"Expression")}};s.ObjectExpression=function(Z,q,Q){for(var J=0,Y=Z.properties;J<Y.length;J+=1){var X=Y[J];Q(X,q)}};s.FunctionExpression=s.ArrowFunctionExpression=s.FunctionDeclaration;s.SequenceExpression=function(Z,q,Q){for(var J=0,Y=Z.expressions;J<Y.length;J+=1){var X=Y[J];Q(X,q,"Expression")}};s.TemplateLiteral=function(Z,q,Q){for(var J=0,Y=Z.quasis;J<Y.length;J+=1){var X=Y[J];Q(X,q)}for(var z=0,V=Z.expressions;z<V.length;z+=1){var W=V[z];Q(W,q,"Expression")}};s.TemplateElement=E8;s.UnaryExpression=s.UpdateExpression=function(Z,q,Q){Q(Z.argument,q,"Expression")};s.BinaryExpression=s.LogicalExpression=function(Z,q,Q){Q(Z.left,q,"Expression"),Q(Z.right,q,"Expression")};s.AssignmentExpression=s.AssignmentPattern=function(Z,q,Q){Q(Z.left,q,"Pattern"),Q(Z.right,q,"Expression")};s.ConditionalExpression=function(Z,q,Q){Q(Z.test,q,"Expression"),Q(Z.consequent,q,"Expression"),Q(Z.alternate,q,"Expression")};s.NewExpression=s.CallExpression=function(Z,q,Q){if(Q(Z.callee,q,"Expression"),Z.arguments)for(var J=0,Y=Z.arguments;J<Y.length;J+=1){var X=Y[J];Q(X,q,"Expression")}};s.MemberExpression=function(Z,q,Q){if(Q(Z.object,q,"Expression"),Z.computed)Q(Z.property,q,"Expression")};s.ExportNamedDeclaration=s.ExportDefaultDeclaration=function(Z,q,Q){if(Z.declaration)Q(Z.declaration,q,Z.type==="ExportNamedDeclaration"||Z.declaration.id?"Statement":"Expression");if(Z.source)Q(Z.source,q,"Expression")};s.ExportAllDeclaration=function(Z,q,Q){if(Z.exported)Q(Z.exported,q);Q(Z.source,q,"Expression")};s.ImportDeclaration=function(Z,q,Q){for(var J=0,Y=Z.specifiers;J<Y.length;J+=1){var X=Y[J];Q(X,q)}Q(Z.source,q,"Expression")};s.ImportExpression=function(Z,q,Q){Q(Z.source,q,"Expression")};s.ImportSpecifier=s.ImportDefaultSpecifier=s.ImportNamespaceSpecifier=s.Identifier=s.PrivateIdentifier=s.Literal=E8;s.TaggedTemplateExpression=function(Z,q,Q){Q(Z.tag,q,"Expression"),Q(Z.quasi,q,"Expression")};s.ClassDeclaration=s.ClassExpression=function(Z,q,Q){return Q(Z,q,"Class")};s.Class=function(Z,q,Q){if(Z.id)Q(Z.id,q,"Pattern");if(Z.superClass)Q(Z.superClass,q,"Expression");Q(Z.body,q)};s.ClassBody=function(Z,q,Q){for(var J=0,Y=Z.body;J<Y.length;J+=1){var X=Y[J];Q(X,q)}};s.MethodDefinition=s.PropertyDefinition=s.Property=function(Z,q,Q){if(Z.computed)Q(Z.key,q,"Expression");if(Z.value)Q(Z.value,q,"Expression")};SZ+="ppingURL";uj=new RegExp(`^#${mj}+${SZ}=.+`);dj=/[^\s(]/g,A9=/\S/g;cj=/[@#]__PURE__/;o9={Literal:[],Program:["body"]};Z1=class Z1 extends B5{constructor(Z,q,Q){super();this.deoptimized=!1,this.esTreeNode=Z,this.keys=o9[Z.type]||ij(Z),this.parent=q,this.context=q.context,this.createScope(Q),this.parseNode(Z),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}addExportedVariables(Z,q){}bind(){for(let Z of this.keys){let q=this[Z];if(q===null)continue;if(Array.isArray(q))for(let Q of q)Q===null||Q===void 0||Q.bind();else q.bind()}}createScope(Z){this.scope=Z}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();for(let q of this.keys){let Q=this[q];if(Q===null)continue;if(Array.isArray(Q)){for(let J of Q)if(J===null||J===void 0?void 0:J.hasEffects(Z))return!0}else if(Q.hasEffects(Z))return!0}return!1}hasEffectsAsAssignmentTarget(Z,q){return this.hasEffects(Z)||this.hasEffectsOnInteractionAtPath($1,this.assignmentInteraction,Z)}include(Z,q,Q){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0;for(let J of this.keys){let Y=this[J];if(Y===null)continue;if(Array.isArray(Y))for(let X of Y)X===null||X===void 0||X.include(Z,q);else Y.include(Z,q)}}includeAsAssignmentTarget(Z,q,Q){this.include(Z,q)}initialise(){}insertSemicolon(Z){if(Z.original[this.end-1]!==";")Z.appendLeft(this.end,";")}parseNode(Z){for(let[q,Q]of Object.entries(Z)){if(this.hasOwnProperty(q))continue;if(q.charCodeAt(0)===95){if(q===A2)this.annotations=Q;else if(q===P2)for(let{start:J,end:Y}of Q)this.context.magicString.remove(J,Y)}else if(typeof Q!=="object"||Q===null)this[q]=Q;else if(Array.isArray(Q)){this[q]=[];for(let J of Q)this[q].push(J===null?null:new(this.context.getNodeConstructor(J.type))(J,this,this.scope))}else this[q]=new(this.context.getNodeConstructor(Q.type))(Q,this,this.scope)}}render(Z,q){for(let Q of this.keys){let J=this[Q];if(J===null)continue;if(Array.isArray(J))for(let Y of J)Y===null||Y===void 0||Y.render(Z,q);else J.render(Z,q)}}setAssignedValue(Z){this.assignmentInteraction={args:[Z],thisArg:null,type:h5}}shouldBeIncluded(Z){return this.included||!Z.brokenFlow&&this.hasEffects(s4())}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.keys){let q=this[Z];if(q===null)continue;if(Array.isArray(q))for(let Q of q)Q===null||Q===void 0||Q.deoptimizePath(D1);else q.deoptimizePath(D1)}this.context.requestTreeshakingPass()}};z6=class z6 extends Z1{deoptimizeThisOnInteractionAtPath(Z,q,Q){if(q.length>0)this.argument.deoptimizeThisOnInteractionAtPath(Z,[d1,...q],Q)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();let{propertyReadSideEffects:q}=this.context.options.treeshake;return this.argument.hasEffects(Z)||q&&(q==="always"||this.argument.hasEffectsOnInteractionAtPath(D1,LZ,Z))}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([d1,d1]),this.context.requestTreeshakingPass()}};Z5=class Z5 extends B5{constructor(Z){super();this.description=Z}deoptimizeThisOnInteractionAtPath({type:Z,thisArg:q},Q){if(Z===P1&&Q.length===0&&this.description.mutatesSelfAsArray)q.deoptimizePath(c9)}getReturnExpressionWhenCalledAtPath(Z,{thisArg:q}){if(Z.length>0)return Y1;return this.description.returnsPrimitive||(this.description.returns==="self"?q||Y1:this.description.returns())}hasEffectsOnInteractionAtPath(Z,q,Q){var J,Y;let{type:X}=q;if(Z.length>(X===E1?1:0))return!0;if(X===P1){if(this.description.mutatesSelfAsArray===!0&&((J=q.thisArg)===null||J===void 0?void 0:J.hasEffectsOnInteractionAtPath(c9,wZ,Q)))return!0;if(this.description.callsArgs){for(let z of this.description.callsArgs)if((Y=q.args[z])===null||Y===void 0?void 0:Y.hasEffectsOnInteractionAtPath($1,d4,Q))return!0}}return!1}};H4=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:DZ})],t6=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:TZ})],wJ=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:U6})],E2=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Y1})],p6=/^\d+$/;V5=class V5 extends B5{constructor(Z,q,Q=!1){super();if(this.prototypeExpression=q,this.immutable=Q,this.allProperties=[],this.deoptimizedPaths=Object.create(null),this.expressionsToBeDeoptimizedByKey=Object.create(null),this.gettersByKey=Object.create(null),this.hasLostTrack=!1,this.hasUnknownDeoptimizedInteger=!1,this.hasUnknownDeoptimizedProperty=!1,this.propertiesAndGettersByKey=Object.create(null),this.propertiesAndSettersByKey=Object.create(null),this.settersByKey=Object.create(null),this.thisParametersToBeDeoptimized=new Set,this.unknownIntegerProps=[],this.unmatchableGetters=[],this.unmatchablePropertiesAndGetters=[],this.unmatchableSetters=[],Array.isArray(Z))this.buildPropertyMaps(Z);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=Z;for(let J of Object.values(Z))this.allProperties.push(...J)}}deoptimizeAllProperties(Z){var q;let Q=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(Z)this.hasUnknownDeoptimizedProperty=!0;else this.hasLostTrack=!0;if(Q)return;for(let J of Object.values(this.propertiesAndGettersByKey).concat(Object.values(this.settersByKey)))for(let Y of J)Y.deoptimizePath(D1);(q=this.prototypeExpression)===null||q===void 0||q.deoptimizePath([d1,d1]),this.deoptimizeCachedEntities()}deoptimizeIntegerProperties(){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)return;this.hasUnknownDeoptimizedInteger=!0;for(let[Z,q]of Object.entries(this.propertiesAndGettersByKey))if(p6.test(Z))for(let Q of q)Q.deoptimizePath(D1);this.deoptimizeCachedIntegerEntities()}deoptimizePath(Z){var q;if(this.hasLostTrack||this.immutable)return;let Q=Z[0];if(Z.length===1){if(typeof Q!=="string"){if(Q===J0)return this.deoptimizeIntegerProperties();return this.deoptimizeAllProperties(Q===C4)}if(!this.deoptimizedPaths[Q]){this.deoptimizedPaths[Q]=!0;let Y=this.expressionsToBeDeoptimizedByKey[Q];if(Y)for(let X of Y)X.deoptimizeCache()}}let J=Z.length===1?D1:Z.slice(1);for(let Y of typeof Q==="string"?(this.propertiesAndGettersByKey[Q]||this.unmatchablePropertiesAndGetters).concat(this.settersByKey[Q]||this.unmatchableSetters):this.allProperties)Y.deoptimizePath(J);(q=this.prototypeExpression)===null||q===void 0||q.deoptimizePath(Z.length===1?[...Z,d1]:Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){var J;let[Y,...X]=q;if(this.hasLostTrack||(Z.type===P1||q.length>1)&&(this.hasUnknownDeoptimizedProperty||typeof Y==="string"&&this.deoptimizedPaths[Y])){Z.thisArg.deoptimizePath(D1);return}let[z,V,W]=Z.type===P1||q.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:Z.type===E1?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof Y==="string"){if(z[Y]){let K=V[Y];if(K)for(let $ of K)$.deoptimizeThisOnInteractionAtPath(Z,X,Q);if(!this.immutable)this.thisParametersToBeDeoptimized.add(Z.thisArg);return}for(let K of W)K.deoptimizeThisOnInteractionAtPath(Z,X,Q);if(p6.test(Y))for(let K of this.unknownIntegerProps)K.deoptimizeThisOnInteractionAtPath(Z,X,Q)}else{for(let K of Object.values(V).concat([W]))for(let $ of K)$.deoptimizeThisOnInteractionAtPath(Z,X,Q);for(let K of this.unknownIntegerProps)K.deoptimizeThisOnInteractionAtPath(Z,X,Q)}if(!this.immutable)this.thisParametersToBeDeoptimized.add(Z.thisArg);(J=this.prototypeExpression)===null||J===void 0||J.deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){if(Z.length===0)return B2;let J=Z[0],Y=this.getMemberExpressionAndTrackDeopt(J,Q);if(Y)return Y.getLiteralValueAtPath(Z.slice(1),q,Q);if(this.prototypeExpression)return this.prototypeExpression.getLiteralValueAtPath(Z,q,Q);if(Z.length===1)return;return x1}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){if(Z.length===0)return Y1;let[Y,...X]=Z,z=this.getMemberExpressionAndTrackDeopt(Y,J);if(z)return z.getReturnExpressionWhenCalledAtPath(X,q,Q,J);if(this.prototypeExpression)return this.prototypeExpression.getReturnExpressionWhenCalledAtPath(Z,q,Q,J);return Y1}hasEffectsOnInteractionAtPath(Z,q,Q){let[J,...Y]=Z;if(Y.length||q.type===P1){let W=this.getMemberExpression(J);if(W)return W.hasEffectsOnInteractionAtPath(Y,q,Q);if(this.prototypeExpression)return this.prototypeExpression.hasEffectsOnInteractionAtPath(Z,q,Q);return!0}if(J===C4)return!1;if(this.hasLostTrack)return!0;let[X,z,V]=q.type===E1?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof J==="string"){if(X[J]){let W=z[J];if(W){for(let K of W)if(K.hasEffectsOnInteractionAtPath(Y,q,Q))return!0}return!1}for(let W of V)if(W.hasEffectsOnInteractionAtPath(Y,q,Q))return!0}else for(let W of Object.values(z).concat([V]))for(let K of W)if(K.hasEffectsOnInteractionAtPath(Y,q,Q))return!0;if(this.prototypeExpression)return this.prototypeExpression.hasEffectsOnInteractionAtPath(Z,q,Q);return!1}buildPropertyMaps(Z){let{allProperties:q,propertiesAndGettersByKey:Q,propertiesAndSettersByKey:J,settersByKey:Y,gettersByKey:X,unknownIntegerProps:z,unmatchablePropertiesAndGetters:V,unmatchableGetters:W,unmatchableSetters:K}=this,$=[];for(let H=Z.length-1;H>=0;H--){let{key:M,kind:O,property:L}=Z[H];if(q.push(L),typeof M!=="string"){if(M===J0){z.push(L);continue}if(O==="set")K.push(L);if(O==="get")W.push(L);if(O!=="get")$.push(L);if(O!=="set")V.push(L)}else if(O==="set"){if(!J[M])J[M]=[L,...$],Y[M]=[L,...K]}else if(O==="get"){if(!Q[M])Q[M]=[L,...V],X[M]=[L,...W]}else{if(!J[M])J[M]=[L,...$];if(!Q[M])Q[M]=[L,...V]}}}deoptimizeCachedEntities(){for(let Z of Object.values(this.expressionsToBeDeoptimizedByKey))for(let q of Z)q.deoptimizeCache();for(let Z of this.thisParametersToBeDeoptimized)Z.deoptimizePath(D1)}deoptimizeCachedIntegerEntities(){for(let[Z,q]of Object.entries(this.expressionsToBeDeoptimizedByKey))if(p6.test(Z))for(let Q of q)Q.deoptimizeCache();for(let Z of this.thisParametersToBeDeoptimized)Z.deoptimizePath(c9)}getMemberExpression(Z){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||typeof Z!=="string"||this.hasUnknownDeoptimizedInteger&&p6.test(Z)||this.deoptimizedPaths[Z])return Y1;let q=this.propertiesAndGettersByKey[Z];if((q===null||q===void 0?void 0:q.length)===1)return q[0];if(q||this.unmatchablePropertiesAndGetters.length>0||this.unknownIntegerProps.length&&p6.test(Z))return Y1;return null}getMemberExpressionAndTrackDeopt(Z,q){if(typeof Z!=="string")return Y1;let Q=this.getMemberExpression(Z);if(!(Q===Y1||this.immutable))(this.expressionsToBeDeoptimizedByKey[Z]=this.expressionsToBeDeoptimizedByKey[Z]||[]).push(q);return Q}};nj=new class extends B5{deoptimizeThisOnInteractionAtPath({type:q,thisArg:Q},J){if(q===P1&&J.length===1&&!OJ(J[0]))Q.deoptimizePath(D1)}getLiteralValueAtPath(q){return q.length===1&&OJ(q[0])?void 0:x1}hasEffectsOnInteractionAtPath(q,{type:Q}){return q.length>1||Q===P1}},Y8=new V5({__proto__:null,hasOwnProperty:H4,isPrototypeOf:H4,propertyIsEnumerable:H4,toLocaleString:t6,toString:t6,valueOf:E2},nj,!0),yZ=[{key:J0,kind:"init",property:Y1},{key:"length",kind:"init",property:U6}],NJ=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:DZ})],RJ=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:U6})],sj=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:()=>new V5(yZ,r4),returnsPrimitive:null})],V4=[new Z5({callsArgs:null,mutatesSelfAsArray:"deopt-only",returns:()=>new V5(yZ,r4),returnsPrimitive:null})],P9=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:()=>new V5(yZ,r4),returnsPrimitive:null})],CJ=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:U6})],IJ=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Y1})],_J=[new Z5({callsArgs:null,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Y1})],R8=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Y1})],S9=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],aj=[new Z5({callsArgs:[0],mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],r4=new V5({__proto__:null,at:_J,concat:V4,copyWithin:S9,entries:V4,every:NJ,fill:S9,filter:P9,find:R8,findIndex:RJ,findLast:R8,findLastIndex:RJ,flat:V4,flatMap:P9,forEach:R8,group:R8,groupToMap:R8,includes:H4,indexOf:wJ,join:t6,keys:E2,lastIndexOf:wJ,map:P9,pop:IJ,push:CJ,reduce:R8,reduceRight:R8,reverse:S9,shift:IJ,slice:V4,some:NJ,sort:aj,splice:sj,toLocaleString:t6,toString:t6,unshift:CJ,values:_J},Y8,!0);b2=class b2 extends Z1{constructor(){super(...arguments);this.objectEntity=null}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){return this.getObjectEntity().getLiteralValueAtPath(Z,q,Q)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,q,Q,J)}hasEffectsOnInteractionAtPath(Z,q,Q){return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,q,Q)}applyDeoptimizations(){this.deoptimized=!0;let Z=!1;for(let q=0;q<this.elements.length;q++){let Q=this.elements[q];if(Q){if(Z||Q instanceof z6)Z=!0,Q.deoptimizePath(D1)}}this.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=[{key:"length",kind:"init",property:U6}],q=!1;for(let Q=0;Q<this.elements.length;Q++){let J=this.elements[Q];if(q||J instanceof z6){if(J)q=!0,Z.unshift({key:J0,kind:"init",property:J})}else if(!J)Z.push({key:String(Q),kind:"init",property:F0});else Z.push({key:String(Q),kind:"init",property:J})}return this.objectEntity=new V5(Z,r4)}};x2=class x2 extends Z1{addExportedVariables(Z,q){for(let Q of this.elements)Q===null||Q===void 0||Q.addExportedVariables(Z,q)}declare(Z){let q=[];for(let Q of this.elements)if(Q!==null)q.push(...Q.declare(Z,Y1));return q}deoptimizePath(){for(let Z of this.elements)Z===null||Z===void 0||Z.deoptimizePath($1)}hasEffectsOnInteractionAtPath(Z,q,Q){for(let J of this.elements)if(J===null||J===void 0?void 0:J.hasEffectsOnInteractionAtPath($1,q,Q))return!0;return!1}markDeclarationReached(){for(let Z of this.elements)Z===null||Z===void 0||Z.markDeclarationReached()}};S5=class S5 extends $8{constructor(Z,q,Q,J){super(Z);this.calledFromTryStatement=!1,this.additionalInitializers=null,this.expressionsToBeDeoptimized=[],this.declarations=q?[q]:[],this.init=Q,this.deoptimizationTracker=J.deoptimizationTracker,this.module=J.module}addDeclaration(Z,q){this.declarations.push(Z);let Q=this.markInitializersForDeoptimization();if(q!==null)Q.push(q)}consolidateInitializers(){if(this.additionalInitializers!==null){for(let Z of this.additionalInitializers)Z.deoptimizePath(D1);this.additionalInitializers=null}}deoptimizePath(Z){var q,Q;if(this.isReassigned||this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;if(Z.length===0){if(!this.isReassigned){this.isReassigned=!0;let J=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[];for(let Y of J)Y.deoptimizeCache();(q=this.init)===null||q===void 0||q.deoptimizePath(D1)}}else(Q=this.init)===null||Q===void 0||Q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){if(this.isReassigned||!this.init)return Z.thisArg.deoptimizePath(D1);Q.withTrackedEntityAtPath(q,this.init,()=>this.init.deoptimizeThisOnInteractionAtPath(Z,q,Q),void 0)}getLiteralValueAtPath(Z,q,Q){if(this.isReassigned||!this.init)return x1;return q.withTrackedEntityAtPath(Z,this.init,()=>{return this.expressionsToBeDeoptimized.push(Q),this.init.getLiteralValueAtPath(Z,q,Q)},x1)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){if(this.isReassigned||!this.init)return Y1;return Q.withTrackedEntityAtPath(Z,this.init,()=>{return this.expressionsToBeDeoptimized.push(J),this.init.getReturnExpressionWhenCalledAtPath(Z,q,Q,J)},Y1)}hasEffectsOnInteractionAtPath(Z,q,Q){switch(q.type){case E1:if(this.isReassigned)return!0;return this.init&&!Q.accessed.trackEntityAtPathAndGetIfTracked(Z,this)&&this.init.hasEffectsOnInteractionAtPath(Z,q,Q);case h5:if(this.included)return!0;if(Z.length===0)return!1;if(this.isReassigned)return!0;return this.init&&!Q.assigned.trackEntityAtPathAndGetIfTracked(Z,this)&&this.init.hasEffectsOnInteractionAtPath(Z,q,Q);case P1:if(this.isReassigned)return!0;return this.init&&!(q.withNew?Q.instantiated:Q.called).trackEntityAtPathAndGetIfTracked(Z,q.args,this)&&this.init.hasEffectsOnInteractionAtPath(Z,q,Q)}}include(){if(!this.included){this.included=!0;for(let Z of this.declarations){if(!Z.included)Z.include(s9(),!1);let q=Z.parent;while(!q.included){if(q.included=!0,q.type===A4)break;q=q.parent}}}}includeCallArguments(Z,q){if(this.isReassigned||this.init&&Z.includedCallArguments.has(this.init))for(let Q of q)Q.include(Z,!1);else if(this.init)Z.includedCallArguments.add(this.init),this.init.includeCallArguments(Z,q),Z.includedCallArguments.delete(this.init)}markCalledFromTryStatement(){this.calledFromTryStatement=!0}markInitializersForDeoptimization(){if(this.additionalInitializers===null)this.additionalInitializers=this.init===null?[]:[this.init],this.init=Y1,this.isReassigned=!0;return this.additionalInitializers}};P5=class P5 extends EZ{constructor(Z){super();this.accessedOutsideVariables=new Map,this.parent=Z,Z.children.push(this)}addAccessedDynamicImport(Z){if((this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(Z),this.parent instanceof P5)this.parent.addAccessedDynamicImport(Z)}addAccessedGlobals(Z,q){let Q=q.get(this)||new Set;for(let J of Z)Q.add(J);if(q.set(this,Q),this.parent instanceof P5)this.parent.addAccessedGlobals(Z,q)}addNamespaceMemberAccess(Z,q){this.accessedOutsideVariables.set(Z,q),this.parent.addNamespaceMemberAccess(Z,q)}addReturnExpression(Z){this.parent instanceof P5&&this.parent.addReturnExpression(Z)}addUsedOutsideNames(Z,q,Q,J){for(let X of this.accessedOutsideVariables.values())if(X.included){if(Z.add(X.getBaseVariableName()),q==="system"&&Q.has(X))Z.add("exports")}let Y=J.get(this);if(Y)for(let X of Y)Z.add(X)}contains(Z){return this.variables.has(Z)||this.parent.contains(Z)}deconflict(Z,q,Q){let J=new Set;if(this.addUsedOutsideNames(J,Z,q,Q),this.accessedDynamicImports){for(let Y of this.accessedDynamicImports)if(Y.inlineNamespace)J.add(Y.inlineNamespace.getBaseVariableName())}for(let[Y,X]of this.variables)if(X.included||X.alwaysRendered)X.setRenderNames(null,k5(Y,J));for(let Y of this.children)Y.deconflict(Z,q,Q)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findVariable(Z){let q=this.variables.get(Z)||this.accessedOutsideVariables.get(Z);if(q)return q;let Q=this.parent.findVariable(Z);return this.accessedOutsideVariables.set(Z,Q),Q}};bZ=class bZ extends P5{constructor(Z,q){super(Z);this.parameters=[],this.hasRest=!1,this.context=q,this.hoistedBodyVarScope=new P5(this)}addParameterDeclaration(Z){let q=Z.name,Q=this.hoistedBodyVarScope.variables.get(q);if(Q)Q.addDeclaration(Z,null);else Q=new S5(q,Z,Y1,this.context);return this.variables.set(q,Q),Q}addParameterVariables(Z,q){this.parameters=Z;for(let Q of Z)for(let J of Q)J.alwaysRendered=!0;this.hasRest=q}includeCallArguments(Z,q){let Q=!1,J=!1,Y=this.hasRest&&this.parameters[this.parameters.length-1];for(let X of q)if(X instanceof z6){for(let z of q)z.include(Z,!1);break}for(let X=q.length-1;X>=0;X--){let z=this.parameters[X]||Y,V=q[X];if(z)if(Q=!1,z.length===0)J=!0;else for(let W of z){if(W.included)J=!0;if(W.calledFromTryStatement)Q=!0}if(!J&&V.shouldBeIncluded(Z))J=!0;if(J)V.include(Z,Q)}}};xZ=class xZ extends bZ{constructor(){super(...arguments);this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(Z){this.returnExpressions.push(Z)}getReturnExpression(){if(this.returnExpression===null)this.updateReturnExpression();return this.returnExpression}updateReturnExpression(){if(this.returnExpressions.length===1)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=Y1;for(let Z of this.returnExpressions)Z.deoptimizePath(D1)}}};u1=Symbol("Value Properties"),x5={hasEffectsWhenCalled(){return!1}},C8={hasEffectsWhenCalled(){return!0}},l={__proto__:null,[u1]:C8},r={__proto__:null,[u1]:x5},TJ={__proto__:null,[u1]:{hasEffectsWhenCalled({args:Z},q){return!Z.length||Z[0].hasEffectsOnInteractionAtPath(ZU,wZ,q)}}},U={__proto__:null,[u1]:C8,prototype:l},J5={__proto__:null,[u1]:x5,prototype:l},c5={__proto__:null,[u1]:x5,from:r,of:r,prototype:l},r8={__proto__:null,[u1]:x5,supportedLocalesOf:J5},e9={global:l,globalThis:l,self:l,window:l,__proto__:null,[u1]:C8,Array:{__proto__:null,[u1]:C8,from:l,isArray:r,of:r,prototype:l},ArrayBuffer:{__proto__:null,[u1]:x5,isView:r,prototype:l},Atomics:l,BigInt:U,BigInt64Array:U,BigUint64Array:U,Boolean:J5,constructor:U,DataView:J5,Date:{__proto__:null,[u1]:x5,now:r,parse:r,prototype:l,UTC:r},decodeURI:r,decodeURIComponent:r,encodeURI:r,encodeURIComponent:r,Error:J5,escape:r,eval:l,EvalError:J5,Float32Array:c5,Float64Array:c5,Function:U,hasOwnProperty:l,Infinity:l,Int16Array:c5,Int32Array:c5,Int8Array:c5,isFinite:r,isNaN:r,isPrototypeOf:l,JSON:l,Map:J5,Math:{__proto__:null,[u1]:C8,abs:r,acos:r,acosh:r,asin:r,asinh:r,atan:r,atan2:r,atanh:r,cbrt:r,ceil:r,clz32:r,cos:r,cosh:r,exp:r,expm1:r,floor:r,fround:r,hypot:r,imul:r,log:r,log10:r,log1p:r,log2:r,max:r,min:r,pow:r,random:r,round:r,sign:r,sin:r,sinh:r,sqrt:r,tan:r,tanh:r,trunc:r},NaN:l,Number:{__proto__:null,[u1]:x5,isFinite:r,isInteger:r,isNaN:r,isSafeInteger:r,parseFloat:r,parseInt:r,prototype:l},Object:{__proto__:null,[u1]:x5,create:r,defineProperty:TJ,defineProperties:TJ,getOwnPropertyDescriptor:r,getOwnPropertyNames:r,getOwnPropertySymbols:r,getPrototypeOf:r,hasOwn:r,is:r,isExtensible:r,isFrozen:r,isSealed:r,keys:r,fromEntries:r,entries:r,prototype:l},parseFloat:r,parseInt:r,Promise:{__proto__:null,[u1]:C8,all:l,prototype:l,race:l,reject:l,resolve:l},propertyIsEnumerable:l,Proxy:l,RangeError:J5,ReferenceError:J5,Reflect:l,RegExp:J5,Set:J5,SharedArrayBuffer:U,String:{__proto__:null,[u1]:x5,fromCharCode:r,fromCodePoint:r,prototype:l,raw:r},Symbol:{__proto__:null,[u1]:x5,for:r,keyFor:r,prototype:l},SyntaxError:J5,toLocaleString:l,toString:l,TypeError:J5,Uint16Array:c5,Uint32Array:c5,Uint8Array:c5,Uint8ClampedArray:c5,unescape:r,URIError:J5,valueOf:l,WeakMap:J5,WeakSet:J5,clearInterval:U,clearTimeout:U,console:l,Intl:{__proto__:null,[u1]:C8,Collator:r8,DateTimeFormat:r8,ListFormat:r8,NumberFormat:r8,PluralRules:r8,RelativeTimeFormat:r8},setInterval:U,setTimeout:U,TextDecoder:U,TextEncoder:U,URL:U,URLSearchParams:U,AbortController:U,AbortSignal:U,addEventListener:l,alert:l,AnalyserNode:U,Animation:U,AnimationEvent:U,applicationCache:l,ApplicationCache:U,ApplicationCacheErrorEvent:U,atob:l,Attr:U,Audio:U,AudioBuffer:U,AudioBufferSourceNode:U,AudioContext:U,AudioDestinationNode:U,AudioListener:U,AudioNode:U,AudioParam:U,AudioProcessingEvent:U,AudioScheduledSourceNode:U,AudioWorkletNode:U,BarProp:U,BaseAudioContext:U,BatteryManager:U,BeforeUnloadEvent:U,BiquadFilterNode:U,Blob:U,BlobEvent:U,blur:l,BroadcastChannel:U,btoa:l,ByteLengthQueuingStrategy:U,Cache:U,caches:l,CacheStorage:U,cancelAnimationFrame:l,cancelIdleCallback:l,CanvasCaptureMediaStreamTrack:U,CanvasGradient:U,CanvasPattern:U,CanvasRenderingContext2D:U,ChannelMergerNode:U,ChannelSplitterNode:U,CharacterData:U,clientInformation:l,ClipboardEvent:U,close:l,closed:l,CloseEvent:U,Comment:U,CompositionEvent:U,confirm:l,ConstantSourceNode:U,ConvolverNode:U,CountQueuingStrategy:U,createImageBitmap:l,Credential:U,CredentialsContainer:U,crypto:l,Crypto:U,CryptoKey:U,CSS:U,CSSConditionRule:U,CSSFontFaceRule:U,CSSGroupingRule:U,CSSImportRule:U,CSSKeyframeRule:U,CSSKeyframesRule:U,CSSMediaRule:U,CSSNamespaceRule:U,CSSPageRule:U,CSSRule:U,CSSRuleList:U,CSSStyleDeclaration:U,CSSStyleRule:U,CSSStyleSheet:U,CSSSupportsRule:U,CustomElementRegistry:U,customElements:l,CustomEvent:U,DataTransfer:U,DataTransferItem:U,DataTransferItemList:U,defaultstatus:l,defaultStatus:l,DelayNode:U,DeviceMotionEvent:U,DeviceOrientationEvent:U,devicePixelRatio:l,dispatchEvent:l,document:l,Document:U,DocumentFragment:U,DocumentType:U,DOMError:U,DOMException:U,DOMImplementation:U,DOMMatrix:U,DOMMatrixReadOnly:U,DOMParser:U,DOMPoint:U,DOMPointReadOnly:U,DOMQuad:U,DOMRect:U,DOMRectReadOnly:U,DOMStringList:U,DOMStringMap:U,DOMTokenList:U,DragEvent:U,DynamicsCompressorNode:U,Element:U,ErrorEvent:U,Event:U,EventSource:U,EventTarget:U,external:l,fetch:l,File:U,FileList:U,FileReader:U,find:l,focus:l,FocusEvent:U,FontFace:U,FontFaceSetLoadEvent:U,FormData:U,frames:l,GainNode:U,Gamepad:U,GamepadButton:U,GamepadEvent:U,getComputedStyle:l,getSelection:l,HashChangeEvent:U,Headers:U,history:l,History:U,HTMLAllCollection:U,HTMLAnchorElement:U,HTMLAreaElement:U,HTMLAudioElement:U,HTMLBaseElement:U,HTMLBodyElement:U,HTMLBRElement:U,HTMLButtonElement:U,HTMLCanvasElement:U,HTMLCollection:U,HTMLContentElement:U,HTMLDataElement:U,HTMLDataListElement:U,HTMLDetailsElement:U,HTMLDialogElement:U,HTMLDirectoryElement:U,HTMLDivElement:U,HTMLDListElement:U,HTMLDocument:U,HTMLElement:U,HTMLEmbedElement:U,HTMLFieldSetElement:U,HTMLFontElement:U,HTMLFormControlsCollection:U,HTMLFormElement:U,HTMLFrameElement:U,HTMLFrameSetElement:U,HTMLHeadElement:U,HTMLHeadingElement:U,HTMLHRElement:U,HTMLHtmlElement:U,HTMLIFrameElement:U,HTMLImageElement:U,HTMLInputElement:U,HTMLLabelElement:U,HTMLLegendElement:U,HTMLLIElement:U,HTMLLinkElement:U,HTMLMapElement:U,HTMLMarqueeElement:U,HTMLMediaElement:U,HTMLMenuElement:U,HTMLMetaElement:U,HTMLMeterElement:U,HTMLModElement:U,HTMLObjectElement:U,HTMLOListElement:U,HTMLOptGroupElement:U,HTMLOptionElement:U,HTMLOptionsCollection:U,HTMLOutputElement:U,HTMLParagraphElement:U,HTMLParamElement:U,HTMLPictureElement:U,HTMLPreElement:U,HTMLProgressElement:U,HTMLQuoteElement:U,HTMLScriptElement:U,HTMLSelectElement:U,HTMLShadowElement:U,HTMLSlotElement:U,HTMLSourceElement:U,HTMLSpanElement:U,HTMLStyleElement:U,HTMLTableCaptionElement:U,HTMLTableCellElement:U,HTMLTableColElement:U,HTMLTableElement:U,HTMLTableRowElement:U,HTMLTableSectionElement:U,HTMLTemplateElement:U,HTMLTextAreaElement:U,HTMLTimeElement:U,HTMLTitleElement:U,HTMLTrackElement:U,HTMLUListElement:U,HTMLUnknownElement:U,HTMLVideoElement:U,IDBCursor:U,IDBCursorWithValue:U,IDBDatabase:U,IDBFactory:U,IDBIndex:U,IDBKeyRange:U,IDBObjectStore:U,IDBOpenDBRequest:U,IDBRequest:U,IDBTransaction:U,IDBVersionChangeEvent:U,IdleDeadline:U,IIRFilterNode:U,Image:U,ImageBitmap:U,ImageBitmapRenderingContext:U,ImageCapture:U,ImageData:U,indexedDB:l,innerHeight:l,innerWidth:l,InputEvent:U,IntersectionObserver:U,IntersectionObserverEntry:U,isSecureContext:l,KeyboardEvent:U,KeyframeEffect:U,length:l,localStorage:l,location:l,Location:U,locationbar:l,matchMedia:l,MediaDeviceInfo:U,MediaDevices:U,MediaElementAudioSourceNode:U,MediaEncryptedEvent:U,MediaError:U,MediaKeyMessageEvent:U,MediaKeySession:U,MediaKeyStatusMap:U,MediaKeySystemAccess:U,MediaList:U,MediaQueryList:U,MediaQueryListEvent:U,MediaRecorder:U,MediaSettingsRange:U,MediaSource:U,MediaStream:U,MediaStreamAudioDestinationNode:U,MediaStreamAudioSourceNode:U,MediaStreamEvent:U,MediaStreamTrack:U,MediaStreamTrackEvent:U,menubar:l,MessageChannel:U,MessageEvent:U,MessagePort:U,MIDIAccess:U,MIDIConnectionEvent:U,MIDIInput:U,MIDIInputMap:U,MIDIMessageEvent:U,MIDIOutput:U,MIDIOutputMap:U,MIDIPort:U,MimeType:U,MimeTypeArray:U,MouseEvent:U,moveBy:l,moveTo:l,MutationEvent:U,MutationObserver:U,MutationRecord:U,name:l,NamedNodeMap:U,NavigationPreloadManager:U,navigator:l,Navigator:U,NetworkInformation:U,Node:U,NodeFilter:l,NodeIterator:U,NodeList:U,Notification:U,OfflineAudioCompletionEvent:U,OfflineAudioContext:U,offscreenBuffering:l,OffscreenCanvas:U,open:l,openDatabase:l,Option:U,origin:l,OscillatorNode:U,outerHeight:l,outerWidth:l,PageTransitionEvent:U,pageXOffset:l,pageYOffset:l,PannerNode:U,parent:l,Path2D:U,PaymentAddress:U,PaymentRequest:U,PaymentRequestUpdateEvent:U,PaymentResponse:U,performance:l,Performance:U,PerformanceEntry:U,PerformanceLongTaskTiming:U,PerformanceMark:U,PerformanceMeasure:U,PerformanceNavigation:U,PerformanceNavigationTiming:U,PerformanceObserver:U,PerformanceObserverEntryList:U,PerformancePaintTiming:U,PerformanceResourceTiming:U,PerformanceTiming:U,PeriodicWave:U,Permissions:U,PermissionStatus:U,personalbar:l,PhotoCapabilities:U,Plugin:U,PluginArray:U,PointerEvent:U,PopStateEvent:U,postMessage:l,Presentation:U,PresentationAvailability:U,PresentationConnection:U,PresentationConnectionAvailableEvent:U,PresentationConnectionCloseEvent:U,PresentationConnectionList:U,PresentationReceiver:U,PresentationRequest:U,print:l,ProcessingInstruction:U,ProgressEvent:U,PromiseRejectionEvent:U,prompt:l,PushManager:U,PushSubscription:U,PushSubscriptionOptions:U,queueMicrotask:l,RadioNodeList:U,Range:U,ReadableStream:U,RemotePlayback:U,removeEventListener:l,Request:U,requestAnimationFrame:l,requestIdleCallback:l,resizeBy:l,ResizeObserver:U,ResizeObserverEntry:U,resizeTo:l,Response:U,RTCCertificate:U,RTCDataChannel:U,RTCDataChannelEvent:U,RTCDtlsTransport:U,RTCIceCandidate:U,RTCIceTransport:U,RTCPeerConnection:U,RTCPeerConnectionIceEvent:U,RTCRtpReceiver:U,RTCRtpSender:U,RTCSctpTransport:U,RTCSessionDescription:U,RTCStatsReport:U,RTCTrackEvent:U,screen:l,Screen:U,screenLeft:l,ScreenOrientation:U,screenTop:l,screenX:l,screenY:l,ScriptProcessorNode:U,scroll:l,scrollbars:l,scrollBy:l,scrollTo:l,scrollX:l,scrollY:l,SecurityPolicyViolationEvent:U,Selection:U,ServiceWorker:U,ServiceWorkerContainer:U,ServiceWorkerRegistration:U,sessionStorage:l,ShadowRoot:U,SharedWorker:U,SourceBuffer:U,SourceBufferList:U,speechSynthesis:l,SpeechSynthesisEvent:U,SpeechSynthesisUtterance:U,StaticRange:U,status:l,statusbar:l,StereoPannerNode:U,stop:l,Storage:U,StorageEvent:U,StorageManager:U,styleMedia:l,StyleSheet:U,StyleSheetList:U,SubtleCrypto:U,SVGAElement:U,SVGAngle:U,SVGAnimatedAngle:U,SVGAnimatedBoolean:U,SVGAnimatedEnumeration:U,SVGAnimatedInteger:U,SVGAnimatedLength:U,SVGAnimatedLengthList:U,SVGAnimatedNumber:U,SVGAnimatedNumberList:U,SVGAnimatedPreserveAspectRatio:U,SVGAnimatedRect:U,SVGAnimatedString:U,SVGAnimatedTransformList:U,SVGAnimateElement:U,SVGAnimateMotionElement:U,SVGAnimateTransformElement:U,SVGAnimationElement:U,SVGCircleElement:U,SVGClipPathElement:U,SVGComponentTransferFunctionElement:U,SVGDefsElement:U,SVGDescElement:U,SVGDiscardElement:U,SVGElement:U,SVGEllipseElement:U,SVGFEBlendElement:U,SVGFEColorMatrixElement:U,SVGFEComponentTransferElement:U,SVGFECompositeElement:U,SVGFEConvolveMatrixElement:U,SVGFEDiffuseLightingElement:U,SVGFEDisplacementMapElement:U,SVGFEDistantLightElement:U,SVGFEDropShadowElement:U,SVGFEFloodElement:U,SVGFEFuncAElement:U,SVGFEFuncBElement:U,SVGFEFuncGElement:U,SVGFEFuncRElement:U,SVGFEGaussianBlurElement:U,SVGFEImageElement:U,SVGFEMergeElement:U,SVGFEMergeNodeElement:U,SVGFEMorphologyElement:U,SVGFEOffsetElement:U,SVGFEPointLightElement:U,SVGFESpecularLightingElement:U,SVGFESpotLightElement:U,SVGFETileElement:U,SVGFETurbulenceElement:U,SVGFilterElement:U,SVGForeignObjectElement:U,SVGGElement:U,SVGGeometryElement:U,SVGGradientElement:U,SVGGraphicsElement:U,SVGImageElement:U,SVGLength:U,SVGLengthList:U,SVGLinearGradientElement:U,SVGLineElement:U,SVGMarkerElement:U,SVGMaskElement:U,SVGMatrix:U,SVGMetadataElement:U,SVGMPathElement:U,SVGNumber:U,SVGNumberList:U,SVGPathElement:U,SVGPatternElement:U,SVGPoint:U,SVGPointList:U,SVGPolygonElement:U,SVGPolylineElement:U,SVGPreserveAspectRatio:U,SVGRadialGradientElement:U,SVGRect:U,SVGRectElement:U,SVGScriptElement:U,SVGSetElement:U,SVGStopElement:U,SVGStringList:U,SVGStyleElement:U,SVGSVGElement:U,SVGSwitchElement:U,SVGSymbolElement:U,SVGTextContentElement:U,SVGTextElement:U,SVGTextPathElement:U,SVGTextPositioningElement:U,SVGTitleElement:U,SVGTransform:U,SVGTransformList:U,SVGTSpanElement:U,SVGUnitTypes:U,SVGUseElement:U,SVGViewElement:U,TaskAttributionTiming:U,Text:U,TextEvent:U,TextMetrics:U,TextTrack:U,TextTrackCue:U,TextTrackCueList:U,TextTrackList:U,TimeRanges:U,toolbar:l,top:l,Touch:U,TouchEvent:U,TouchList:U,TrackEvent:U,TransitionEvent:U,TreeWalker:U,UIEvent:U,ValidityState:U,visualViewport:l,VisualViewport:U,VTTCue:U,WaveShaperNode:U,WebAssembly:l,WebGL2RenderingContext:U,WebGLActiveInfo:U,WebGLBuffer:U,WebGLContextEvent:U,WebGLFramebuffer:U,WebGLProgram:U,WebGLQuery:U,WebGLRenderbuffer:U,WebGLRenderingContext:U,WebGLSampler:U,WebGLShader:U,WebGLShaderPrecisionFormat:U,WebGLSync:U,WebGLTexture:U,WebGLTransformFeedback:U,WebGLUniformLocation:U,WebGLVertexArrayObject:U,WebSocket:U,WheelEvent:U,Window:U,Worker:U,WritableStream:U,XMLDocument:U,XMLHttpRequest:U,XMLHttpRequestEventTarget:U,XMLHttpRequestUpload:U,XMLSerializer:U,XPathEvaluator:U,XPathExpression:U,XPathResult:U,XSLTProcessor:U};for(let Z of["window","global","self","globalThis"])e9[Z]=e9;o4=class o4 extends $8{constructor(){super(...arguments);this.isReassigned=!0}getLiteralValueAtPath(Z,q,Q){return W4([this.name,...Z])?B2:x1}hasEffectsOnInteractionAtPath(Z,q,Q){switch(q.type){case E1:if(Z.length===0)return this.name!=="undefined"&&!W4([this.name]);return!W4([this.name,...Z].slice(0,-1));case h5:return!0;case P1:{let J=W4([this.name,...Z]);return!J||J.hasEffectsWhenCalled(q,Q)}}}};oj={__proto__:null,class:!0,const:!0,let:!0,var:!0};l1=class l1 extends Z1{constructor(){super(...arguments);this.variable=null,this.isTDZAccess=null}addExportedVariables(Z,q){if(q.has(this.variable))Z.push(this.variable)}bind(){if(!this.variable&&k2(this,this.parent))this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)}declare(Z,q){let Q,{treeshake:J}=this.context.options;switch(Z){case"var":if(Q=this.scope.addDeclaration(this,this.context,q,!0),J&&J.correctVarValueBeforeDeclaration)Q.markInitializersForDeoptimization();break;case"function":Q=this.scope.addDeclaration(this,this.context,q,!1);break;case"let":case"const":case"class":Q=this.scope.addDeclaration(this,this.context,q,!1);break;case"parameter":Q=this.scope.addParameterDeclaration(this);break;default:throw Error(`Internal Error: Unexpected identifier kind ${Z}.`)}return Q.kind=Z,[this.variable=Q]}deoptimizePath(Z){var q;if(Z.length===0&&!this.scope.contains(this.name))this.disallowImportReassignment();(q=this.variable)===null||q===void 0||q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){this.variable.deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){return this.getVariableRespectingTDZ().getLiteralValueAtPath(Z,q,Q)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){return this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(Z,q,Q,J)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();if(this.isPossibleTDZ()&&this.variable.kind!=="var")return!0;return this.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof o4&&this.variable.hasEffectsOnInteractionAtPath($1,LZ,Z)}hasEffectsOnInteractionAtPath(Z,q,Q){switch(q.type){case E1:return this.variable!==null&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(Z,q,Q);case h5:return(Z.length>0?this.getVariableRespectingTDZ():this.variable).hasEffectsOnInteractionAtPath(Z,q,Q);case P1:return this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(Z,q,Q)}}include(){if(!this.deoptimized)this.applyDeoptimizations();if(!this.included){if(this.included=!0,this.variable!==null)this.context.includeVariableInModule(this.variable)}}includeCallArguments(Z,q){this.variable.includeCallArguments(Z,q)}isPossibleTDZ(){if(this.isTDZAccess!==null)return this.isTDZAccess;if(!(this.variable instanceof S5)||!this.variable.kind||!(this.variable.kind in oj))return this.isTDZAccess=!1;let Z;if(this.variable.declarations&&this.variable.declarations.length===1&&(Z=this.variable.declarations[0])&&this.start<Z.start&&AJ(this)===AJ(Z))return this.isTDZAccess=!0;if(!this.variable.initReached)return this.isTDZAccess=!0;return this.isTDZAccess=!1}markDeclarationReached(){this.variable.initReached=!0}render(Z,{snippets:{getPropertyAccess:q}},{renderedParentType:Q,isCalleeOfRenderedParent:J,isShorthandProperty:Y}=n1){if(this.variable){let X=this.variable.getName(q);if(X!==this.name){if(Z.overwrite(this.start,this.end,X,{contentOnly:!0,storeName:!0}),Y)Z.prependRight(this.start,`${this.name}: `)}if(X==="eval"&&Q===D2&&J)Z.appendRight(this.start,"0, ")}}applyDeoptimizations(){if(this.deoptimized=!0,this.variable instanceof S5)this.variable.consolidateInitializers(),this.context.requestTreeshakingPass()}disallowImportReassignment(){return this.context.error({code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment to import '${this.name}'`},this.start)}getVariableRespectingTDZ(){if(this.isPossibleTDZ())return Y1;return this.variable}};A8={isNoStatement:!0};PJ=/\S/g;G8=class G8 extends P5{addDeclaration(Z,q,Q,J){if(J){let Y=this.parent.addDeclaration(Z,q,Q,J);return Y.markInitializersForDeoptimization(),Y}else return super.addDeclaration(Z,q,Q,!1)}};N0=class N0 extends Z1{initialise(){if(this.directive&&this.directive!=="use strict"&&this.parent.type===A4)this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(Z,q){if(super.render(Z,q),this.included)this.insertSemicolon(Z)}shouldBeIncluded(Z){if(this.directive&&this.directive!=="use strict")return this.parent.type!==A4;return super.shouldBeIncluded(Z)}applyDeoptimizations(){}};W0=class W0 extends Z1{constructor(){super(...arguments);this.directlyIncluded=!1}addImplicitReturnExpressionToScope(){let Z=this.body[this.body.length-1];if(!Z||Z.type!==hj)this.scope.addReturnExpression(Y1)}createScope(Z){this.scope=this.parent.preventChildBlockScope?Z:new G8(Z)}hasEffects(Z){if(this.deoptimizeBody)return!0;for(let q of this.body){if(Z.brokenFlow)break;if(q.hasEffects(Z))return!0}return!1}include(Z,q){if(!(this.deoptimizeBody&&this.directlyIncluded)){if(this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody)q=!0;for(let Q of this.body)if(q||Q.shouldBeIncluded(Z))Q.include(Z,q)}}initialise(){let Z=this.body[0];this.deoptimizeBody=Z instanceof N0&&Z.directive==="use asm"}render(Z,q){if(this.body.length)O0(this.body,Z,this.start+1,this.end-1,q);else super.render(Z,q)}};fZ=class fZ extends Z1{constructor(){super(...arguments);this.declarationInit=null}addExportedVariables(Z,q){this.argument.addExportedVariables(Z,q)}declare(Z,q){return this.declarationInit=q,this.argument.declare(Z,Y1)}deoptimizePath(Z){Z.length===0&&this.argument.deoptimizePath($1)}hasEffectsOnInteractionAtPath(Z,q,Q){return Z.length>0||this.argument.hasEffectsOnInteractionAtPath($1,q,Q)}markDeclarationReached(){this.argument.markDeclarationReached()}applyDeoptimizations(){if(this.deoptimized=!0,this.declarationInit!==null)this.declarationInit.deoptimizePath([d1,d1]),this.context.requestTreeshakingPass()}};e4=class e4 extends Z1{constructor(){super(...arguments);this.objectEntity=null,this.deoptimizedReturn=!1}deoptimizePath(Z){if(this.getObjectEntity().deoptimizePath(Z),Z.length===1&&Z[0]===d1)this.scope.getReturnExpression().deoptimizePath(D1)}deoptimizeThisOnInteractionAtPath(Z,q,Q){if(q.length>0)this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){return this.getObjectEntity().getLiteralValueAtPath(Z,q,Q)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){if(Z.length>0)return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,q,Q,J);if(this.async){if(!this.deoptimizedReturn)this.deoptimizedReturn=!0,this.scope.getReturnExpression().deoptimizePath(D1),this.context.requestTreeshakingPass();return Y1}return this.scope.getReturnExpression()}hasEffectsOnInteractionAtPath(Z,q,Q){if(Z.length>0||q.type!==P1)return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,q,Q);if(this.async){let{propertyReadSideEffects:J}=this.context.options.treeshake,Y=this.scope.getReturnExpression();if(Y.hasEffectsOnInteractionAtPath(["then"],d4,Q)||J&&(J==="always"||Y.hasEffectsOnInteractionAtPath(["then"],LZ,Q)))return!0}for(let J of this.params)if(J.hasEffects(Q))return!0;return!1}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0;let{brokenFlow:Q}=Z;Z.brokenFlow=n4,this.body.include(Z,q),Z.brokenFlow=Q}includeCallArguments(Z,q){this.scope.includeCallArguments(Z,q)}initialise(){if(this.scope.addParameterVariables(this.params.map((Z)=>Z.declare("parameter",Y1)),this.params[this.params.length-1]instanceof fZ),this.body instanceof W0)this.body.addImplicitReturnExpressionToScope();else this.scope.addReturnExpression(this.body)}parseNode(Z){if(Z.body.type===_2)this.body=new W0(Z.body,this,this.scope.hoistedBodyVarScope);super.parseNode(Z)}applyDeoptimizations(){}};e4.prototype.preventChildBlockScope=!0;vZ=class vZ extends e4{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new xZ(Z,this.context)}hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!1}hasEffectsOnInteractionAtPath(Z,q,Q){if(super.hasEffectsOnInteractionAtPath(Z,q,Q))return!0;if(q.type===P1){let{ignore:J,brokenFlow:Y}=Q;if(Q.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0},this.body.hasEffects(Q))return!0;Q.ignore=J,Q.brokenFlow=Y}return!1}include(Z,q){super.include(Z,q);for(let Q of this.params)if(!(Q instanceof l1))Q.include(Z,q)}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;return this.objectEntity=new V5([],Y8)}};gZ=class gZ extends Z1{addExportedVariables(Z,q){for(let Q of this.properties)if(Q.type===vj)Q.value.addExportedVariables(Z,q);else Q.argument.addExportedVariables(Z,q)}declare(Z,q){let Q=[];for(let J of this.properties)Q.push(...J.declare(Z,q));return Q}deoptimizePath(Z){if(Z.length===0)for(let q of this.properties)q.deoptimizePath(Z)}hasEffectsOnInteractionAtPath(Z,q,Q){for(let J of this.properties)if(J.hasEffectsOnInteractionAtPath($1,q,Q))return!0;return!1}markDeclarationReached(){for(let Z of this.properties)Z.markDeclarationReached()}};g2=class g2 extends Z1{hasEffects(Z){let{deoptimized:q,left:Q,right:J}=this;if(!q)this.applyDeoptimizations();return J.hasEffects(Z)||Q.hasEffectsAsAssignmentTarget(Z,this.operator!=="=")}hasEffectsOnInteractionAtPath(Z,q,Q){return this.right.hasEffectsOnInteractionAtPath(Z,q,Q)}include(Z,q){let{deoptimized:Q,left:J,right:Y,operator:X}=this;if(!Q)this.applyDeoptimizations();if(this.included=!0,q||X!=="="||J.included||J.hasEffectsAsAssignmentTarget(s4(),!1))J.includeAsAssignmentTarget(Z,q,X!=="=");Y.include(Z,q)}initialise(){this.left.setAssignedValue(this.right)}render(Z,q,{preventASI:Q,renderedParentType:J,renderedSurroundingElement:Y}=n1){let{left:X,right:z,start:V,end:W,parent:K}=this;if(X.included)X.render(Z,q),z.render(Z,q);else{let $=W8(Z.original,o1(Z.original,"=",X.end)+1);if(Z.remove(V,$),Q)t4(Z,$,z.start);z.render(Z,q,{renderedParentType:J||K.type,renderedSurroundingElement:Y||K.type})}if(q.format==="system")if(X instanceof l1){let $=X.variable,H=q.exportNamesByVariable.get($);if(H){if(H.length===1)hZ($,V,W,Z,q);else h2($,V,W,K.type!==N5,Z,q);return}}else{let $=[];if(X.addExportedVariables($,q.exportNamesByVariable),$.length>0){tj($,V,W,Y===N5,Z,q);return}}if(X.included&&X instanceof gZ&&(Y===N5||Y===I2))Z.appendRight(V,"("),Z.prependLeft(W,")")}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.right.deoptimizePath(D1),this.context.requestTreeshakingPass()}};m2=class m2 extends Z1{addExportedVariables(Z,q){this.left.addExportedVariables(Z,q)}declare(Z,q){return this.left.declare(Z,q)}deoptimizePath(Z){Z.length===0&&this.left.deoptimizePath(Z)}hasEffectsOnInteractionAtPath(Z,q,Q){return Z.length>0||this.left.hasEffectsOnInteractionAtPath($1,q,Q)}markDeclarationReached(){this.left.markDeclarationReached()}render(Z,q,{isShorthandProperty:Q}=n1){this.left.render(Z,q,{isShorthandProperty:Q}),this.right.render(Z,q)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.right.deoptimizePath(D1),this.context.requestTreeshakingPass()}};u2=class u2 extends S5{constructor(Z){super("arguments",null,Y1,Z)}hasEffectsOnInteractionAtPath(Z,{type:q}){return q!==E1||Z.length>1}};mZ=class mZ extends S5{constructor(Z){super("this",null,null,Z);this.deoptimizedPaths=[],this.entitiesToBeDeoptimized=new Set,this.thisDeoptimizationList=[],this.thisDeoptimizations=new I4}addEntityToBeDeoptimized(Z){for(let q of this.deoptimizedPaths)Z.deoptimizePath(q);for(let{interaction:q,path:Q}of this.thisDeoptimizationList)Z.deoptimizeThisOnInteractionAtPath(q,Q,r1);this.entitiesToBeDeoptimized.add(Z)}deoptimizePath(Z){if(Z.length===0||this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;this.deoptimizedPaths.push(Z);for(let q of this.entitiesToBeDeoptimized)q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q){let Q={interaction:Z,path:q};if(!this.thisDeoptimizations.trackEntityAtPathAndGetIfTracked(q,Z.type,Z.thisArg)){for(let J of this.entitiesToBeDeoptimized)J.deoptimizeThisOnInteractionAtPath(Z,q,r1);this.thisDeoptimizationList.push(Q)}}hasEffectsOnInteractionAtPath(Z,q,Q){return this.getInit(Q).hasEffectsOnInteractionAtPath(Z,q,Q)||super.hasEffectsOnInteractionAtPath(Z,q,Q)}getInit(Z){return Z.replacedVariableInits.get(this)||Y1}};d2=class d2 extends xZ{constructor(Z,q){super(Z,q);this.variables.set("arguments",this.argumentsVariable=new u2(q)),this.variables.set("this",this.thisVariable=new mZ(q))}findLexicalBoundary(){return this}includeCallArguments(Z,q){if(super.includeCallArguments(Z,q),this.argumentsVariable.included){for(let Q of q)if(!Q.included)Q.include(Z,!1)}}};Z7=class Z7 extends e4{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new d2(Z,this.context)}deoptimizeThisOnInteractionAtPath(Z,q,Q){if(super.deoptimizeThisOnInteractionAtPath(Z,q,Q),Z.type===P1&&q.length===0)this.scope.thisVariable.addEntityToBeDeoptimized(Z.thisArg)}hasEffects(Z){var q;if(!this.deoptimized)this.applyDeoptimizations();return!!((q=this.id)===null||q===void 0?void 0:q.hasEffects(Z))}hasEffectsOnInteractionAtPath(Z,q,Q){if(super.hasEffectsOnInteractionAtPath(Z,q,Q))return!0;if(q.type===P1){let J=Q.replacedVariableInits.get(this.scope.thisVariable);Q.replacedVariableInits.set(this.scope.thisVariable,q.withNew?new V5(Object.create(null),Y8):Y1);let{brokenFlow:Y,ignore:X}=Q;if(Q.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0},this.body.hasEffects(Q))return!0;if(Q.brokenFlow=Y,J)Q.replacedVariableInits.set(this.scope.thisVariable,J);else Q.replacedVariableInits.delete(this.scope.thisVariable);Q.ignore=X}return!1}include(Z,q){var Q;super.include(Z,q),(Q=this.id)===null||Q===void 0||Q.include();let J=this.scope.argumentsVariable.included;for(let Y of this.params)if(!(Y instanceof l1)||J)Y.include(Z,q)}initialise(){var Z;super.initialise(),(Z=this.id)===null||Z===void 0||Z.declare("function",this)}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;return this.objectEntity=new V5([{key:"prototype",kind:"init",property:new V5([],Y8)}],Y8)}};l2=class l2 extends Z1{hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!0}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();if(!this.included){this.included=!0;Z:if(!this.context.usesTopLevelAwait){let Q=this.parent;do if(Q instanceof Z7||Q instanceof vZ)break Z;while(Q=Q.parent);this.context.usesTopLevelAwait=!0}}this.argument.include(Z,q)}};ZB={"!=":(Z,q)=>Z!=q,"!==":(Z,q)=>Z!==q,"%":(Z,q)=>Z%q,"&":(Z,q)=>Z&q,"*":(Z,q)=>Z*q,"**":(Z,q)=>Z**q,"+":(Z,q)=>Z+q,"-":(Z,q)=>Z-q,"/":(Z,q)=>Z/q,"<":(Z,q)=>Z<q,"<<":(Z,q)=>Z<<q,"<=":(Z,q)=>Z<=q,"==":(Z,q)=>Z==q,"===":(Z,q)=>Z===q,">":(Z,q)=>Z>q,">=":(Z,q)=>Z>=q,">>":(Z,q)=>Z>>q,">>>":(Z,q)=>Z>>>q,"^":(Z,q)=>Z^q,"|":(Z,q)=>Z|q};c2=class c2 extends Z1{deoptimizeCache(){}getLiteralValueAtPath(Z,q,Q){if(Z.length>0)return x1;let J=this.left.getLiteralValueAtPath($1,q,Q);if(typeof J==="symbol")return x1;let Y=this.right.getLiteralValueAtPath($1,q,Q);if(typeof Y==="symbol")return x1;let X=ZB[this.operator];if(!X)return x1;return X(J,Y)}hasEffects(Z){if(this.operator==="+"&&this.parent instanceof N0&&this.left.getLiteralValueAtPath($1,r1,this)==="")return!0;return super.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,{type:q}){return q!==E1||Z.length>1}render(Z,q,{renderedSurroundingElement:Q}=n1){this.left.render(Z,q,{renderedSurroundingElement:Q}),this.right.render(Z,q)}};p2=class p2 extends Z1{hasEffects(Z){if(this.label){if(!Z.ignore.labels.has(this.label.name))return!0;Z.includedLabels.add(this.label.name),Z.brokenFlow=S8}else{if(!Z.ignore.breaks)return!0;Z.brokenFlow=X6}return!1}include(Z){if(this.included=!0,this.label)this.label.include(),Z.includedLabels.add(this.label.name);Z.brokenFlow=this.label?S8:X6}};V6=class V6 extends Z1{deoptimizeThisOnInteractionAtPath(){}getLiteralValueAtPath(Z){if(Z.length>0||this.value===null&&this.context.code.charCodeAt(this.start)!==110||typeof this.value==="bigint"||this.context.code.charCodeAt(this.start)===47)return x1;return this.value}getReturnExpressionWhenCalledAtPath(Z){if(Z.length!==1)return Y1;return w0(this.members,Z[0])}hasEffectsOnInteractionAtPath(Z,q,Q){switch(q.type){case E1:return Z.length>(this.value===null?0:1);case h5:return!0;case P1:return Z.length!==1||L0(this.members,Z[0],q,Q)}}initialise(){this.members=Pj(this.value)}parseNode(Z){this.value=Z.value,this.regex=Z.regex,super.parseNode(Z)}render(Z){if(typeof this.value==="string")Z.indentExclusionRanges.push([this.start+1,this.end-1])}};y8=class y8 extends Z1{constructor(){super(...arguments);this.variable=null,this.assignmentDeoptimized=!1,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null}bind(){this.bound=!0;let Z=n2(this),q=Z&&this.scope.findVariable(Z[0].key);if(q&&q.isNamespace){let Q=s2(q,Z.slice(1),this.context);if(!Q)super.bind();else if(typeof Q==="string")this.replacement=Q;else this.variable=Q,this.scope.addNamespaceMemberAccess(JB(Z),Q)}else super.bind()}deoptimizeCache(){let Z=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.propertyKey=d1,this.object.deoptimizePath(D1);for(let q of Z)q.deoptimizeCache()}deoptimizePath(Z){if(Z.length===0)this.disallowNamespaceReassignment();if(this.variable)this.variable.deoptimizePath(Z);else if(!this.replacement){if(Z.length<i6){let q=this.getPropertyKey();this.object.deoptimizePath([q===d1?C4:q,...Z])}}}deoptimizeThisOnInteractionAtPath(Z,q,Q){if(this.variable)this.variable.deoptimizeThisOnInteractionAtPath(Z,q,Q);else if(!this.replacement)if(q.length<i6)this.object.deoptimizeThisOnInteractionAtPath(Z,[this.getPropertyKey(),...q],Q);else Z.thisArg.deoptimizePath(D1)}getLiteralValueAtPath(Z,q,Q){if(this.variable)return this.variable.getLiteralValueAtPath(Z,q,Q);if(this.replacement)return x1;if(this.expressionsToBeDeoptimized.push(Q),Z.length<i6)return this.object.getLiteralValueAtPath([this.getPropertyKey(),...Z],q,Q);return x1}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){if(this.variable)return this.variable.getReturnExpressionWhenCalledAtPath(Z,q,Q,J);if(this.replacement)return Y1;if(this.expressionsToBeDeoptimized.push(J),Z.length<i6)return this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(),...Z],q,Q,J);return Y1}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();return this.property.hasEffects(Z)||this.object.hasEffects(Z)||this.hasAccessEffect(Z)}hasEffectsAsAssignmentTarget(Z,q){if(q&&!this.deoptimized)this.applyDeoptimizations();if(!this.assignmentDeoptimized)this.applyAssignmentDeoptimization();return this.property.hasEffects(Z)||this.object.hasEffects(Z)||q&&this.hasAccessEffect(Z)||this.hasEffectsOnInteractionAtPath($1,this.assignmentInteraction,Z)}hasEffectsOnInteractionAtPath(Z,q,Q){if(this.variable)return this.variable.hasEffectsOnInteractionAtPath(Z,q,Q);if(this.replacement)return!0;if(Z.length<i6)return this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey(),...Z],q,Q);return!0}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();this.includeProperties(Z,q)}includeAsAssignmentTarget(Z,q,Q){if(!this.assignmentDeoptimized)this.applyAssignmentDeoptimization();if(Q)this.include(Z,q);else this.includeProperties(Z,q)}includeCallArguments(Z,q){if(this.variable)this.variable.includeCallArguments(Z,q);else super.includeCallArguments(Z,q)}initialise(){this.propertyKey=qB(this),this.accessInteraction={thisArg:this.object,type:E1}}render(Z,q,{renderedParentType:Q,isCalleeOfRenderedParent:J,renderedSurroundingElement:Y}=n1){if(this.variable||this.replacement){let{snippets:{getPropertyAccess:X}}=q,z=this.variable?this.variable.getName(X):this.replacement;if(Q&&J)z="0, "+z;Z.overwrite(this.start,this.end,z,{contentOnly:!0,storeName:!0})}else{if(Q&&J)Z.appendRight(this.start,"0, ");this.object.render(Z,q,{renderedSurroundingElement:Y}),this.property.render(Z,q)}}setAssignedValue(Z){this.assignmentInteraction={args:[Z],thisArg:this.object,type:h5}}applyDeoptimizations(){this.deoptimized=!0;let{propertyReadSideEffects:Z}=this.context.options.treeshake;if(this.bound&&Z&&!(this.variable||this.replacement)){let q=this.getPropertyKey();this.object.deoptimizeThisOnInteractionAtPath(this.accessInteraction,[q],r1),this.context.requestTreeshakingPass()}}applyAssignmentDeoptimization(){this.assignmentDeoptimized=!0;let{propertyReadSideEffects:Z}=this.context.options.treeshake;if(this.bound&&Z&&!(this.variable||this.replacement))this.object.deoptimizeThisOnInteractionAtPath(this.assignmentInteraction,[this.getPropertyKey()],r1),this.context.requestTreeshakingPass()}disallowNamespaceReassignment(){if(this.object instanceof l1){if(this.scope.findVariable(this.object.name).isNamespace){if(this.variable)this.context.includeVariableInModule(this.variable);this.context.warn({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:`Illegal reassignment to import '${this.object.name}'`},this.start)}}}getPropertyKey(){if(this.propertyKey===null){this.propertyKey=d1;let Z=this.property.getLiteralValueAtPath($1,r1,this);return this.propertyKey=typeof Z==="symbol"?d1:String(Z)}return this.propertyKey}hasAccessEffect(Z){let{propertyReadSideEffects:q}=this.context.options.treeshake;return!(this.variable||this.replacement)&&q&&(q==="always"||this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey()],this.accessInteraction,Z))}includeProperties(Z,q){if(!this.included){if(this.included=!0,this.variable)this.context.includeVariableInModule(this.variable)}this.object.include(Z,q),this.property.include(Z,q)}};uZ=class uZ extends Z1{constructor(){super(...arguments);this.returnExpression=null,this.deoptimizableDependentExpressions=[],this.expressionsToBeDeoptimized=new Set}deoptimizeCache(){if(this.returnExpression!==Y1){this.returnExpression=Y1;for(let Z of this.deoptimizableDependentExpressions)Z.deoptimizeCache();for(let Z of this.expressionsToBeDeoptimized)Z.deoptimizePath(D1)}}deoptimizePath(Z){if(Z.length===0||this.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;let q=this.getReturnExpression();if(q!==Y1)q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){let J=this.getReturnExpression(Q);if(J===Y1)Z.thisArg.deoptimizePath(D1);else Q.withTrackedEntityAtPath(q,J,()=>{this.expressionsToBeDeoptimized.add(Z.thisArg),J.deoptimizeThisOnInteractionAtPath(Z,q,Q)},void 0)}getLiteralValueAtPath(Z,q,Q){let J=this.getReturnExpression(q);if(J===Y1)return x1;return q.withTrackedEntityAtPath(Z,J,()=>{return this.deoptimizableDependentExpressions.push(Q),J.getLiteralValueAtPath(Z,q,Q)},x1)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){let Y=this.getReturnExpression(Q);if(this.returnExpression===Y1)return Y1;return Q.withTrackedEntityAtPath(Z,Y,()=>{return this.deoptimizableDependentExpressions.push(J),Y.getReturnExpressionWhenCalledAtPath(Z,q,Q,J)},Y1)}hasEffectsOnInteractionAtPath(Z,q,Q){let{type:J}=q;if(J===P1){if((q.withNew?Q.instantiated:Q.called).trackEntityAtPathAndGetIfTracked(Z,q.args,this))return!1}else if((J===h5?Q.assigned:Q.accessed).trackEntityAtPathAndGetIfTracked(Z,this))return!1;return this.getReturnExpression().hasEffectsOnInteractionAtPath(Z,q,Q)}};a2=class a2 extends uZ{bind(){if(super.bind(),this.callee instanceof l1){if(this.scope.findVariable(this.callee.name).isNamespace)this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.callee.name}')`},this.start);if(this.callee.name==="eval")this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)}this.interaction={args:this.arguments,thisArg:this.callee instanceof y8&&!this.callee.variable?this.callee.object:null,type:P1,withNew:!1}}hasEffects(Z){try{for(let q of this.arguments)if(q.hasEffects(Z))return!0;if(this.context.options.treeshake.annotations&&this.annotations)return!1;return this.callee.hasEffects(Z)||this.callee.hasEffectsOnInteractionAtPath($1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();if(q){if(super.include(Z,q),q===y2&&this.callee instanceof l1&&this.callee.variable)this.callee.variable.markCalledFromTryStatement()}else this.included=!0,this.callee.include(Z,!1);this.callee.includeCallArguments(Z,this.arguments)}render(Z,q,{renderedSurroundingElement:Q}=n1){this.callee.render(Z,q,{isCalleeOfRenderedParent:!0,renderedSurroundingElement:Q}),i2(Z,q,this)}applyDeoptimizations(){if(this.deoptimized=!0,this.interaction.thisArg)this.callee.deoptimizeThisOnInteractionAtPath(this.interaction,$1,r1);for(let Z of this.arguments)Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}getReturnExpression(Z=r1){if(this.returnExpression===null)return this.returnExpression=Y1,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath($1,this.interaction,Z,this);return this.returnExpression}};r2=class r2 extends bZ{addDeclaration(Z,q,Q,J){let Y=this.variables.get(Z.name);if(Y)return this.parent.addDeclaration(Z,q,F0,J),Y.addDeclaration(Z,Q),Y;return this.parent.addDeclaration(Z,q,Q,J)}};o2=class o2 extends Z1{createScope(Z){this.scope=new r2(Z,this.context)}parseNode(Z){let{param:q}=Z;if(q)this.param=new(this.context.getNodeConstructor(q.type))(q,this,this.scope),this.param.declare("parameter",Y1);super.parseNode(Z)}};t2=class t2 extends Z1{};e2=class e2 extends P5{constructor(Z,q,Q){super(Z);this.variables.set("this",this.thisVariable=new S5("this",null,q,Q)),this.instanceScope=new P5(this),this.instanceScope.variables.set("this",new mZ(Q))}findLexicalBoundary(){return this}};ZY=class ZY extends Z1{createScope(Z){this.scope=new e2(Z,this.parent,this.context)}include(Z,q){this.included=!0,this.context.includeVariableInModule(this.scope.thisVariable);for(let Q of this.body)Q.include(Z,q)}parseNode(Z){let q=this.body=[];for(let Q of Z.body)q.push(new(this.context.getNodeConstructor(Q.type))(Q,this,Q.static?this.scope:this.scope.instanceScope));super.parseNode(Z)}applyDeoptimizations(){}};dZ=class dZ extends Z1{constructor(){super(...arguments);this.accessedValue=null}deoptimizeCache(){}deoptimizePath(Z){this.getAccessedValue().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){if(Z.type===E1&&this.kind==="get"&&q.length===0)return this.value.deoptimizeThisOnInteractionAtPath({args:p9,thisArg:Z.thisArg,type:P1,withNew:!1},$1,Q);if(Z.type===h5&&this.kind==="set"&&q.length===0)return this.value.deoptimizeThisOnInteractionAtPath({args:Z.args,thisArg:Z.thisArg,type:P1,withNew:!1},$1,Q);this.getAccessedValue().deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){return this.getAccessedValue().getLiteralValueAtPath(Z,q,Q)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){return this.getAccessedValue().getReturnExpressionWhenCalledAtPath(Z,q,Q,J)}hasEffects(Z){return this.key.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,q,Q){if(this.kind==="get"&&q.type===E1&&Z.length===0)return this.value.hasEffectsOnInteractionAtPath($1,{args:p9,thisArg:q.thisArg,type:P1,withNew:!1},Q);if(this.kind==="set"&&q.type===h5)return this.value.hasEffectsOnInteractionAtPath($1,{args:q.args,thisArg:q.thisArg,type:P1,withNew:!1},Q);return this.getAccessedValue().hasEffectsOnInteractionAtPath(Z,q,Q)}applyDeoptimizations(){}getAccessedValue(){if(this.accessedValue===null)if(this.kind==="get")return this.accessedValue=Y1,this.accessedValue=this.value.getReturnExpressionWhenCalledAtPath($1,d4,r1,this);else return this.accessedValue=this.value;return this.accessedValue}};y4=class y4 extends dZ{applyDeoptimizations(){}};qY=class qY extends B5{constructor(Z,q){super();this.object=Z,this.key=q}deoptimizePath(Z){this.object.deoptimizePath([this.key,...Z])}deoptimizeThisOnInteractionAtPath(Z,q,Q){this.object.deoptimizeThisOnInteractionAtPath(Z,[this.key,...q],Q)}getLiteralValueAtPath(Z,q,Q){return this.object.getLiteralValueAtPath([this.key,...Z],q,Q)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){return this.object.getReturnExpressionWhenCalledAtPath([this.key,...Z],q,Q,J)}hasEffectsOnInteractionAtPath(Z,q,Q){return this.object.hasEffectsOnInteractionAtPath([this.key,...Z],q,Q)}};lZ=class lZ extends Z1{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new P5(Z)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){return this.getObjectEntity().getLiteralValueAtPath(Z,q,Q)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,q,Q,J)}hasEffects(Z){var q,Q;if(!this.deoptimized)this.applyDeoptimizations();let J=((q=this.superClass)===null||q===void 0?void 0:q.hasEffects(Z))||this.body.hasEffects(Z);return(Q=this.id)===null||Q===void 0||Q.markDeclarationReached(),J||super.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,q,Q){var J;if(q.type===P1&&Z.length===0)return!q.withNew||(this.classConstructor!==null?this.classConstructor.hasEffectsOnInteractionAtPath(Z,q,Q):(J=this.superClass)===null||J===void 0?void 0:J.hasEffectsOnInteractionAtPath(Z,q,Q))||!1;else return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,q,Q)}include(Z,q){var Q;if(!this.deoptimized)this.applyDeoptimizations();if(this.included=!0,(Q=this.superClass)===null||Q===void 0||Q.include(Z,q),this.body.include(Z,q),this.id)this.id.markDeclarationReached(),this.id.include()}initialise(){var Z;(Z=this.id)===null||Z===void 0||Z.declare("class",this);for(let q of this.body.body)if(q instanceof y4&&q.kind==="constructor"){this.classConstructor=q;return}this.classConstructor=null}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.body.body)if(!(Z.static||Z instanceof y4&&Z.kind==="constructor"))Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=[],q=[];for(let Q of this.body.body){let J=Q.static?Z:q,Y=Q.kind;if(J===q&&!Y)continue;let X=Y==="set"||Y==="get"?Y:"init",z;if(Q.computed){let V=Q.key.getLiteralValueAtPath($1,r1,this);if(typeof V==="symbol"){J.push({key:d1,kind:X,property:Q});continue}else z=String(V)}else z=Q.key instanceof l1?Q.key.name:String(Q.key.value);J.push({key:z,kind:X,property:Q})}return Z.unshift({key:"prototype",kind:"init",property:new V5(q,this.superClass?new qY(this.superClass,"prototype"):Y8)}),this.objectEntity=new V5(Z,this.superClass||Y8)}};K0=class K0 extends lZ{initialise(){if(super.initialise(),this.id!==null)this.id.variable.isId=!0}parseNode(Z){if(Z.id!==null)this.id=new l1(Z.id,this,this.scope.parent);super.parseNode(Z)}render(Z,q){let{exportNamesByVariable:Q,format:J,snippets:{_:Y}}=q;if(J==="system"&&this.id&&Q.has(this.id.variable))Z.appendLeft(this.end,`${Y}${b8([this.id.variable],q)};`);super.render(Z,q)}};QY=class QY extends lZ{render(Z,q,{renderedSurroundingElement:Q}=n1){if(super.render(Z,q),Q===N5)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}};q7=class q7 extends B5{constructor(Z){super();this.expressions=Z,this.included=!1}deoptimizePath(Z){for(let q of this.expressions)q.deoptimizePath(Z)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){return new q7(this.expressions.map((Y)=>Y.getReturnExpressionWhenCalledAtPath(Z,q,Q,J)))}hasEffectsOnInteractionAtPath(Z,q,Q){for(let J of this.expressions)if(J.hasEffectsOnInteractionAtPath(Z,q,Q))return!0;return!1}};JY=class JY extends Z1{constructor(){super(...arguments);this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null}deoptimizeCache(){if(this.usedBranch!==null){let Z=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null,Z.deoptimizePath(D1);for(let q of this.expressionsToBeDeoptimized)q.deoptimizeCache()}}deoptimizePath(Z){let q=this.getUsedBranch();if(!q)this.consequent.deoptimizePath(Z),this.alternate.deoptimizePath(Z);else q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){this.consequent.deoptimizeThisOnInteractionAtPath(Z,q,Q),this.alternate.deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){let J=this.getUsedBranch();if(!J)return x1;return this.expressionsToBeDeoptimized.push(Q),J.getLiteralValueAtPath(Z,q,Q)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){let Y=this.getUsedBranch();if(!Y)return new q7([this.consequent.getReturnExpressionWhenCalledAtPath(Z,q,Q,J),this.alternate.getReturnExpressionWhenCalledAtPath(Z,q,Q,J)]);return this.expressionsToBeDeoptimized.push(J),Y.getReturnExpressionWhenCalledAtPath(Z,q,Q,J)}hasEffects(Z){if(this.test.hasEffects(Z))return!0;let q=this.getUsedBranch();if(!q)return this.consequent.hasEffects(Z)||this.alternate.hasEffects(Z);return q.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,q,Q){let J=this.getUsedBranch();if(!J)return this.consequent.hasEffectsOnInteractionAtPath(Z,q,Q)||this.alternate.hasEffectsOnInteractionAtPath(Z,q,Q);return J.hasEffectsOnInteractionAtPath(Z,q,Q)}include(Z,q){this.included=!0;let Q=this.getUsedBranch();if(q||this.test.shouldBeIncluded(Z)||Q===null)this.test.include(Z,q),this.consequent.include(Z,q),this.alternate.include(Z,q);else Q.include(Z,q)}includeCallArguments(Z,q){let Q=this.getUsedBranch();if(!Q)this.consequent.includeCallArguments(Z,q),this.alternate.includeCallArguments(Z,q);else Q.includeCallArguments(Z,q)}render(Z,q,{isCalleeOfRenderedParent:Q,preventASI:J,renderedParentType:Y,renderedSurroundingElement:X}=n1){let z=this.getUsedBranch();if(!this.test.included){let V=o1(Z.original,":",this.consequent.end),W=W8(Z.original,(this.consequent.included?o1(Z.original,"?",this.test.end):V)+1);if(J)t4(Z,W,z.start);if(Z.remove(this.start,W),this.consequent.included)Z.remove(V,this.end);f2(this,Z),z.render(Z,q,{isCalleeOfRenderedParent:Q,preventASI:!0,renderedParentType:Y||this.parent.type,renderedSurroundingElement:X||this.parent.type})}else this.test.render(Z,q,{renderedSurroundingElement:X}),this.consequent.render(Z,q),this.alternate.render(Z,q)}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;let Z=this.test.getLiteralValueAtPath($1,r1,this);return typeof Z==="symbol"?null:this.usedBranch=Z?this.consequent:this.alternate}};YY=class YY extends Z1{hasEffects(Z){if(this.label){if(!Z.ignore.labels.has(this.label.name))return!0;Z.includedLabels.add(this.label.name),Z.brokenFlow=S8}else{if(!Z.ignore.continues)return!0;Z.brokenFlow=X6}return!1}include(Z){if(this.included=!0,this.label)this.label.include(),Z.includedLabels.add(this.label.name);Z.brokenFlow=this.label?S8:X6}};XY=class XY extends Z1{hasEffects(Z){if(this.test.hasEffects(Z))return!0;let{brokenFlow:q,ignore:{breaks:Q,continues:J}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=Q,Z.ignore.continues=J,Z.brokenFlow=q,!1}include(Z,q){this.included=!0,this.test.include(Z,q);let{brokenFlow:Q}=Z;this.body.include(Z,q,{asSingleStatement:!0}),Z.brokenFlow=Q}};zY=class zY extends Z1{hasEffects(){return!1}};Q7=class Q7 extends Z1{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(Z,q,Q){Z.remove(Q.start,Q.end)}applyDeoptimizations(){}};Q7.prototype.needsBoundaries=!0;W6=class W6 extends Z7{initialise(){if(super.initialise(),this.id!==null)this.id.variable.isId=!0}parseNode(Z){if(Z.id!==null)this.id=new l1(Z.id,this,this.scope.parent);super.parseNode(Z)}};R0=class R0 extends Z1{include(Z,q){if(super.include(Z,q),q)this.context.includeVariableInModule(this.variable)}initialise(){let Z=this.declaration;this.declarationName=Z.id&&Z.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(Z,q,Q){let{start:J,end:Y}=Q,X=YB(Z.original,this.start);if(this.declaration instanceof W6)this.renderNamedDeclaration(Z,X,"function","(",this.declaration.id===null,q);else if(this.declaration instanceof K0)this.renderNamedDeclaration(Z,X,"class","{",this.declaration.id===null,q);else if(this.variable.getOriginalVariable()!==this.variable){kZ(this,Z,J,Y);return}else if(this.variable.included)this.renderVariableDeclaration(Z,X,q);else{if(Z.remove(this.start,X),this.declaration.render(Z,q,{renderedSurroundingElement:N5}),Z.original[this.end-1]!==";")Z.appendLeft(this.end,";");return}this.declaration.render(Z,q)}applyDeoptimizations(){}renderNamedDeclaration(Z,q,Q,J,Y,X){let{exportNamesByVariable:z,format:V,snippets:{getPropertyAccess:W}}=X,K=this.variable.getName(W);if(Z.remove(this.start,q),Y)Z.appendLeft(XB(Z.original,Q,J,q),` ${K}`);if(V==="system"&&this.declaration instanceof K0&&z.has(this.variable))Z.appendLeft(this.end,` ${b8([this.variable],X)};`)}renderVariableDeclaration(Z,q,{format:Q,exportNamesByVariable:J,snippets:{cnst:Y,getPropertyAccess:X}}){let z=Z.original.charCodeAt(this.end-1)===59,V=Q==="system"&&J.get(this.variable);if(V)Z.overwrite(this.start,q,`${Y} ${this.variable.getName(X)} = exports('${V[0]}', `),Z.appendRight(z?this.end-1:this.end,")"+(z?"":";"));else if(Z.overwrite(this.start,q,`${Y} ${this.variable.getName(X)} = `),!z)Z.appendLeft(this.end,";")}};R0.prototype.needsBoundaries=!0;cZ=class cZ extends Z1{bind(){var Z;(Z=this.declaration)===null||Z===void 0||Z.bind()}hasEffects(Z){var q;return!!((q=this.declaration)===null||q===void 0?void 0:q.hasEffects(Z))}initialise(){this.context.addExport(this)}render(Z,q,Q){let{start:J,end:Y}=Q;if(this.declaration===null)Z.remove(J,Y);else Z.remove(this.start,this.declaration.start),this.declaration.render(Z,q,{end:Y,start:J})}applyDeoptimizations(){}};cZ.prototype.needsBoundaries=!0;VY=class VY extends Z1{applyDeoptimizations(){}};WY=class WY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){let{deoptimized:q,left:Q,right:J}=this;if(!q)this.applyDeoptimizations();if(Q.hasEffectsAsAssignmentTarget(Z,!1)||J.hasEffects(Z))return!0;let{brokenFlow:Y,ignore:{breaks:X,continues:z}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=X,Z.ignore.continues=z,Z.brokenFlow=Y,!1}include(Z,q){let{body:Q,deoptimized:J,left:Y,right:X}=this;if(!J)this.applyDeoptimizations();this.included=!0,Y.includeAsAssignmentTarget(Z,q||!0,!1),X.include(Z,q);let{brokenFlow:z}=Z;Q.include(Z,q,{asSingleStatement:!0}),Z.brokenFlow=z}initialise(){this.left.setAssignedValue(Y1)}render(Z,q){if(this.left.render(Z,q,A8),this.right.render(Z,q,A8),Z.original.charCodeAt(this.right.start-1)===110)Z.prependLeft(this.right.start," ");this.body.render(Z,q)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.context.requestTreeshakingPass()}};KY=class KY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!0}include(Z,q){let{body:Q,deoptimized:J,left:Y,right:X}=this;if(!J)this.applyDeoptimizations();this.included=!0,Y.includeAsAssignmentTarget(Z,q||!0,!1),X.include(Z,q);let{brokenFlow:z}=Z;Q.include(Z,q,{asSingleStatement:!0}),Z.brokenFlow=z}initialise(){this.left.setAssignedValue(Y1)}render(Z,q){if(this.left.render(Z,q,A8),this.right.render(Z,q,A8),Z.original.charCodeAt(this.right.start-1)===102)Z.prependLeft(this.right.start," ");this.body.render(Z,q)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.context.requestTreeshakingPass()}};$Y=class $Y extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){var q,Q,J;if(((q=this.init)===null||q===void 0?void 0:q.hasEffects(Z))||((Q=this.test)===null||Q===void 0?void 0:Q.hasEffects(Z))||((J=this.update)===null||J===void 0?void 0:J.hasEffects(Z)))return!0;let{brokenFlow:Y,ignore:{breaks:X,continues:z}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=X,Z.ignore.continues=z,Z.brokenFlow=Y,!1}include(Z,q){var Q,J,Y;this.included=!0,(Q=this.init)===null||Q===void 0||Q.include(Z,q,{asSingleStatement:!0}),(J=this.test)===null||J===void 0||J.include(Z,q);let{brokenFlow:X}=Z;(Y=this.update)===null||Y===void 0||Y.include(Z,q),this.body.include(Z,q,{asSingleStatement:!0}),Z.brokenFlow=X}render(Z,q){var Q,J,Y;(Q=this.init)===null||Q===void 0||Q.render(Z,q,A8),(J=this.test)===null||J===void 0||J.render(Z,q,A8),(Y=this.update)===null||Y===void 0||Y.render(Z,q,A8),this.body.render(Z,q)}};GY=class GY extends Z7{render(Z,q,{renderedSurroundingElement:Q}=n1){if(super.render(Z,q),Q===N5)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}};ZZ=class ZZ extends G8{constructor(){super(...arguments);this.hoistedDeclarations=[]}addDeclaration(Z,q,Q,J){return this.hoistedDeclarations.push(Z),super.addDeclaration(Z,q,Q,J)}};SJ=Symbol("unset");pZ=class pZ extends Z1{constructor(){super(...arguments);this.testValue=SJ}deoptimizeCache(){this.testValue=x1}hasEffects(Z){var q;if(this.test.hasEffects(Z))return!0;let Q=this.getTestValue();if(typeof Q==="symbol"){let{brokenFlow:J}=Z;if(this.consequent.hasEffects(Z))return!0;let Y=Z.brokenFlow;if(Z.brokenFlow=J,this.alternate===null)return!1;if(this.alternate.hasEffects(Z))return!0;return Z.brokenFlow=Z.brokenFlow<Y?Z.brokenFlow:Y,!1}return Q?this.consequent.hasEffects(Z):!!((q=this.alternate)===null||q===void 0?void 0:q.hasEffects(Z))}include(Z,q){if(this.included=!0,q)this.includeRecursively(q,Z);else{let Q=this.getTestValue();if(typeof Q==="symbol")this.includeUnknownTest(Z);else this.includeKnownTest(Z,Q)}}parseNode(Z){if(this.consequentScope=new ZZ(this.scope),this.consequent=new(this.context.getNodeConstructor(Z.consequent.type))(Z.consequent,this,this.consequentScope),Z.alternate)this.alternateScope=new ZZ(this.scope),this.alternate=new(this.context.getNodeConstructor(Z.alternate.type))(Z.alternate,this,this.alternateScope);super.parseNode(Z)}render(Z,q){let{snippets:{getPropertyAccess:Q}}=q,J=this.getTestValue(),Y=[],X=this.test.included,z=!this.context.options.treeshake;if(X)this.test.render(Z,q);else Z.remove(this.start,this.consequent.start);if(this.consequent.included&&(z||typeof J==="symbol"||J))this.consequent.render(Z,q);else Z.overwrite(this.consequent.start,this.consequent.end,X?";":""),Y.push(...this.consequentScope.hoistedDeclarations);if(this.alternate)if(this.alternate.included&&(z||typeof J==="symbol"||!J)){if(X){if(Z.original.charCodeAt(this.alternate.start-1)===101)Z.prependLeft(this.alternate.start," ")}else Z.remove(this.consequent.end,this.alternate.start);this.alternate.render(Z,q)}else{if(X&&this.shouldKeepAlternateBranch())Z.overwrite(this.alternate.start,this.end,";");else Z.remove(this.consequent.end,this.end);Y.push(...this.alternateScope.hoistedDeclarations)}this.renderHoistedDeclarations(Y,Z,Q)}applyDeoptimizations(){}getTestValue(){if(this.testValue===SJ)return this.testValue=this.test.getLiteralValueAtPath($1,r1,this);return this.testValue}includeKnownTest(Z,q){var Q;if(this.test.shouldBeIncluded(Z))this.test.include(Z,!1);if(q&&this.consequent.shouldBeIncluded(Z))this.consequent.include(Z,!1,{asSingleStatement:!0});if(!q&&((Q=this.alternate)===null||Q===void 0?void 0:Q.shouldBeIncluded(Z)))this.alternate.include(Z,!1,{asSingleStatement:!0})}includeRecursively(Z,q){var Q;this.test.include(q,Z),this.consequent.include(q,Z),(Q=this.alternate)===null||Q===void 0||Q.include(q,Z)}includeUnknownTest(Z){var q;this.test.include(Z,!1);let{brokenFlow:Q}=Z,J=n4;if(this.consequent.shouldBeIncluded(Z))this.consequent.include(Z,!1,{asSingleStatement:!0}),J=Z.brokenFlow,Z.brokenFlow=Q;if((q=this.alternate)===null||q===void 0?void 0:q.shouldBeIncluded(Z))this.alternate.include(Z,!1,{asSingleStatement:!0}),Z.brokenFlow=Z.brokenFlow<J?Z.brokenFlow:J}renderHoistedDeclarations(Z,q,Q){let J=[...new Set(Z.map((Y)=>{let X=Y.variable;return X.included?X.getName(Q):""}))].filter(Boolean).join(", ");if(J){let Y=this.parent.type,X=Y!==A4&&Y!==_2;if(q.prependRight(this.start,`${X?"{ ":""}var ${J}; `),X)q.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let Z=this.parent;do{if(Z instanceof pZ&&Z.alternate)return!0;if(Z instanceof W0)return!1;Z=Z.parent}while(Z);return!1}};iZ=class iZ extends Z1{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(Z,q,Q){Z.remove(Q.start,Q.end)}applyDeoptimizations(){}};iZ.prototype.needsBoundaries=!0;UY=class UY extends Z1{applyDeoptimizations(){}};C0={auto:E4,default:null,defaultOnly:null,esModule:null,false:null,true:qZ},I0={auto:e6,default:a6,defaultOnly:$0,esModule:null,false:null,true:e6},jY={[qZ](Z,q,Q){let{_:J,getDirectReturnFunction:Y,n:X}=q,[z,V]=Y(["e"],{functionReturn:!0,lineBreakIndent:null,name:qZ});return`${z}e${J}&&${J}typeof e${J}===${J}'object'${J}&&${J}'default'${J}in e${J}?${J}${Q?yJ(q):EJ(q)}${V}${X}${X}`},[E4](Z,q,Q){let{_:J,getDirectReturnFunction:Y,n:X}=q,[z,V]=Y(["e"],{functionReturn:!0,lineBreakIndent:null,name:E4});return`${z}e${J}&&${J}e.__esModule${J}?${J}${Q?yJ(q):EJ(q)}${V}${X}${X}`},[$0](Z,q,Q,J,Y){let{getDirectReturnFunction:X,getObject:z,n:V}=q,[W,K]=X(["e"],{functionReturn:!0,lineBreakIndent:null,name:$0});return`${W}${QZ(J,xJ(Y,z([["__proto__","null"],["default","e"]],{lineBreakIndent:null}),q))}${K}${V}${V}`},[a6](Z,q,Q,J,Y){let{_:X,n:z}=q;return`function ${a6}(e)${X}{${z}`+bJ(Z,Z,q,Q,J,Y)+`}${z}${z}`},[e6](Z,q,Q,J,Y,X){let{_:z,getDirectReturnFunction:V,n:W}=q;if(X.has(a6)){let[K,$]=V(["e"],{functionReturn:!0,lineBreakIndent:null,name:e6});return`${K}e${z}&&${z}e.__esModule${z}?${z}e${z}:${z}${a6}(e)${$}${W}${W}`}return`function ${e6}(e)${z}{${W}${Z}if${z}(e${z}&&${z}e.__esModule)${z}return e;${W}`+bJ(Z,Z,q,Q,J,Y)+`}${W}${W}`},[b4](Z,q,Q,J,Y){let{_:X,cnst:z,n:V}=q,W=z==="var"&&Q;return`function ${b4}(n, m)${X}{${V}${Z}${WB(`{${V}${Z}${Z}${Z}if${X}(k${X}!==${X}'default'${X}&&${X}!(k in n))${X}{${V}`+(Q?W?BY:$B:MY)(Z,Z+Z+Z+Z,q)+`${Z}${Z}${Z}}${V}${Z}${Z}}`,W,Z,q)}${V}${Z}return ${QZ(J,xJ(Y,"n",q))};${V}}${V}${V}`}},JZ=Object.keys(jY);HY=class HY extends Z1{constructor(){super(...arguments);this.inlineNamespace=null,this.mechanism=null,this.resolution=null}hasEffects(){return!0}include(Z,q){if(!this.included)this.included=!0,this.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this);this.source.include(Z,q)}initialise(){this.context.addDynamicImport(this)}render(Z,q){if(this.inlineNamespace){let{snippets:{getDirectReturnFunction:Q,getPropertyAccess:J}}=q,[Y,X]=Q([],{functionReturn:!0,lineBreakIndent:null,name:null});Z.overwrite(this.start,this.end,`Promise.resolve().then(${Y}${this.inlineNamespace.getName(J)}${X})`,{contentOnly:!0});return}if(this.mechanism)Z.overwrite(this.start,o1(Z.original,"(",this.start+6)+1,this.mechanism.left,{contentOnly:!0}),Z.overwrite(this.end-1,this.end,this.mechanism.right,{contentOnly:!0});this.source.render(Z,q)}renderFinalResolution(Z,q,Q,{getDirectReturnFunction:J}){if(Z.overwrite(this.source.start,this.source.end,q),Q){let[Y,X]=J(["n"],{functionReturn:!0,lineBreakIndent:null,name:null});Z.prependLeft(this.end,`.then(${Y}n.${Q}${X})`)}}setExternalResolution(Z,q,Q,J,Y,X){let{format:z}=Q;this.inlineNamespace=null,this.resolution=q;let V=[...GB[z]||[]],W;if({helper:W,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(q,Z,Q,J,Y),W)V.push(W);if(V.length>0)this.scope.addAccessedGlobals(V,X)}setInternalResolution(Z){this.inlineNamespace=Z}applyDeoptimizations(){}getDynamicImportMechanismAndHelper(Z,q,{compact:Q,dynamicImportFunction:J,format:Y,generatedCode:{arrowFunctions:X},interop:z},{_:V,getDirectReturnFunction:W,getDirectReturnIifeLeft:K},$){let H=$.hookFirstSync("renderDynamicImport",[{customResolution:typeof this.resolution==="string"?this.resolution:null,format:Y,moduleId:this.context.module.id,targetModuleId:this.resolution&&typeof this.resolution!=="string"?this.resolution.id:null}]);if(H)return{helper:null,mechanism:H};let M=!this.resolution||typeof this.resolution==="string";switch(Y){case"cjs":{let O=kJ(Z,q,z),L="require(",B=")";if(O)L=`/*#__PURE__*/${O}(${L}`,B+=")";let[C,y]=W([],{functionReturn:!0,lineBreakIndent:null,name:null});if(L=`Promise.resolve().then(${C}${L}`,B+=`${y})`,!X&&M)L=K(["t"],`${L}t${B}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),B=")";return{helper:O,mechanism:{left:L,right:B}}}case"amd":{let O=Q?"c":"resolve",L=Q?"e":"reject",B=kJ(Z,q,z),[C,y]=W(["m"],{functionReturn:!1,lineBreakIndent:null,name:null}),P=B?`${C}${O}(/*#__PURE__*/${B}(m))${y}`:O,[_,v]=W([O,L],{functionReturn:!1,lineBreakIndent:null,name:null}),h=`new Promise(${_}require([`,d=`],${V}${P},${V}${L})${v})`;if(!X&&M)h=K(["t"],`${h}t${d}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),d=")";return{helper:B,mechanism:{left:h,right:d}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}};case"es":if(J)return{helper:null,mechanism:{left:`${J}(`,right:")"}}}return{helper:null,mechanism:null}}};GB={amd:["require"],cjs:["require"],system:["module"]};FY=class FY extends Z1{applyDeoptimizations(){}};LY=class LY extends Z1{applyDeoptimizations(){}};wY=class wY extends Z1{hasEffects(Z){let q=Z.brokenFlow;if(Z.ignore.labels.add(this.label.name),this.body.hasEffects(Z))return!0;if(Z.ignore.labels.delete(this.label.name),Z.includedLabels.has(this.label.name))Z.includedLabels.delete(this.label.name),Z.brokenFlow=q;return!1}include(Z,q){this.included=!0;let Q=Z.brokenFlow;if(this.body.include(Z,q),q||Z.includedLabels.has(this.label.name))this.label.include(),Z.includedLabels.delete(this.label.name),Z.brokenFlow=Q}render(Z,q){if(this.label.included)this.label.render(Z,q);else Z.remove(this.start,W8(Z.original,o1(Z.original,":",this.label.end)+1));this.body.render(Z,q)}};OY=class OY extends Z1{constructor(){super(...arguments);this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null}deoptimizeCache(){if(this.usedBranch){let Z=this.usedBranch===this.left?this.right:this.left;this.usedBranch=null,Z.deoptimizePath(D1);for(let q of this.expressionsToBeDeoptimized)q.deoptimizeCache();this.context.requestTreeshakingPass()}}deoptimizePath(Z){let q=this.getUsedBranch();if(!q)this.left.deoptimizePath(Z),this.right.deoptimizePath(Z);else q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){this.left.deoptimizeThisOnInteractionAtPath(Z,q,Q),this.right.deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){let J=this.getUsedBranch();if(!J)return x1;return this.expressionsToBeDeoptimized.push(Q),J.getLiteralValueAtPath(Z,q,Q)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){let Y=this.getUsedBranch();if(!Y)return new q7([this.left.getReturnExpressionWhenCalledAtPath(Z,q,Q,J),this.right.getReturnExpressionWhenCalledAtPath(Z,q,Q,J)]);return this.expressionsToBeDeoptimized.push(J),Y.getReturnExpressionWhenCalledAtPath(Z,q,Q,J)}hasEffects(Z){if(this.left.hasEffects(Z))return!0;if(this.getUsedBranch()!==this.left)return this.right.hasEffects(Z);return!1}hasEffectsOnInteractionAtPath(Z,q,Q){let J=this.getUsedBranch();if(!J)return this.left.hasEffectsOnInteractionAtPath(Z,q,Q)||this.right.hasEffectsOnInteractionAtPath(Z,q,Q);return J.hasEffectsOnInteractionAtPath(Z,q,Q)}include(Z,q){this.included=!0;let Q=this.getUsedBranch();if(q||Q===this.right&&this.left.shouldBeIncluded(Z)||!Q)this.left.include(Z,q),this.right.include(Z,q);else Q.include(Z,q)}render(Z,q,{isCalleeOfRenderedParent:Q,preventASI:J,renderedParentType:Y,renderedSurroundingElement:X}=n1){if(!this.left.included||!this.right.included){let z=o1(Z.original,this.operator,this.left.end);if(this.right.included){let V=W8(Z.original,z+2);if(Z.remove(this.start,V),J)t4(Z,V,this.right.start)}else Z.remove(z,this.end);f2(this,Z),this.getUsedBranch().render(Z,q,{isCalleeOfRenderedParent:Q,preventASI:J,renderedParentType:Y||this.parent.type,renderedSurroundingElement:X||this.parent.type})}else this.left.render(Z,q,{preventASI:J,renderedSurroundingElement:X}),this.right.render(Z,q)}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;let Z=this.left.getLiteralValueAtPath($1,r1,this);if(typeof Z==="symbol")return null;else this.usedBranch=this.operator==="||"&&Z||this.operator==="&&"&&!Z||this.operator==="??"&&Z!=null?this.left:this.right}return this.usedBranch}};NY=class NY extends Z1{addAccessedGlobals(Z,q){let Q=this.metaProperty,J=(Q&&(Q.startsWith(Q8)||Q.startsWith(n6)||Q.startsWith(K4))?jB:UB)[Z];if(J.length>0)this.scope.addAccessedGlobals(J,q)}getReferencedFileName(Z){let q=this.metaProperty;if(q&&q.startsWith(Q8))return Z.getFileName(q.substring(Q8.length));return null}hasEffects(){return!1}hasEffectsOnInteractionAtPath(Z,{type:q}){return Z.length>1||q!==E1}include(){if(!this.included){if(this.included=!0,this.meta.name==="import"){this.context.addImportMeta(this);let Z=this.parent;this.metaProperty=Z instanceof y8&&typeof Z.propertyKey==="string"?Z.propertyKey:null}}}renderFinalMechanism(Z,q,Q,J,Y){var X;let z=this.parent,V=this.metaProperty;if(V&&(V.startsWith(Q8)||V.startsWith(n6)||V.startsWith(K4))){let K=null,$=null,H=null,M;if(V.startsWith(Q8))K=V.substring(Q8.length),M=Y.getFileName(K);else if(V.startsWith(n6))j5(`Using the "${n6}" prefix to reference files is deprecated. Use the "${Q8}" prefix instead.`,!0,this.context.options),$=V.substring(n6.length),M=Y.getFileName($);else j5(`Using the "${K4}" prefix to reference files is deprecated. Use the "${Q8}" prefix instead.`,!0,this.context.options),H=V.substring(K4.length),M=Y.getFileName(H);let O=z0(UZ(f5(q),M)),L;if($!==null)L=Y.hookFirstSync("resolveAssetUrl",[{assetFileName:M,chunkId:q,format:Q,moduleId:this.context.module.id,relativeAssetPath:O}]);if(!L)L=Y.hookFirstSync("resolveFileUrl",[{assetReferenceId:$,chunkId:q,chunkReferenceId:H,fileName:M,format:Q,moduleId:this.context.module.id,referenceId:K||$||H,relativePath:O}])||BB[Q](O);Z.overwrite(z.start,z.end,L,{contentOnly:!0});return}let W=Y.hookFirstSync("resolveImportMeta",[V,{chunkId:q,format:Q,moduleId:this.context.module.id}])||((X=fJ[Q])===null||X===void 0?void 0:X.call(fJ,V,{chunkId:q,snippets:J}));if(typeof W==="string")if(z instanceof y8)Z.overwrite(z.start,z.end,W,{contentOnly:!0});else Z.overwrite(this.start,this.end,W,{contentOnly:!0})}};UB={amd:["document","module","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},jB={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},BB={amd:(Z)=>{if(Z[0]!==".")Z="./"+Z;return i5(`require.toUrl('${Z}'), document.baseURI`)},cjs:(Z)=>`(typeof document === 'undefined' ? ${i5(`'file:' + __dirname + '/${Z}'`,"(require('u' + 'rl').URL)")} : ${y9(Z)})`,es:(Z)=>i5(`'${Z}', import.meta.url`),iife:(Z)=>y9(Z),system:(Z)=>i5(`'${Z}', module.meta.url`),umd:(Z)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${i5(`'file:' + __dirname + '/${Z}'`,"(require('u' + 'rl').URL)")} : ${y9(Z,!0)})`},fJ={amd:$4(()=>i5("module.uri, document.baseURI")),cjs:$4((Z)=>`(typeof document === 'undefined' ? ${i5("'file:' + __filename","(require('u' + 'rl').URL)")} : ${E9(Z)})`),iife:$4((Z)=>E9(Z)),system:(Z,{snippets:{getPropertyAccess:q}})=>Z===null?"module.meta":`module.meta${q(Z)}`,umd:$4((Z)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${i5("'file:' + __filename","(require('u' + 'rl').URL)")} : ${E9(Z,!0)})`)};RY=class RY extends Z1{hasEffects(Z){try{for(let q of this.arguments)if(q.hasEffects(Z))return!0;if(this.context.options.treeshake.annotations&&this.annotations)return!1;return this.callee.hasEffects(Z)||this.callee.hasEffectsOnInteractionAtPath($1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}hasEffectsOnInteractionAtPath(Z,{type:q}){return Z.length>0||q!==E1}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();if(q)super.include(Z,q);else this.included=!0,this.callee.include(Z,!1);this.callee.includeCallArguments(Z,this.arguments)}initialise(){this.interaction={args:this.arguments,thisArg:null,type:P1,withNew:!0}}render(Z,q){this.callee.render(Z,q),i2(Z,q,this)}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.arguments)Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}};CY=class CY extends Z1{constructor(){super(...arguments);this.objectEntity=null}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){return this.getObjectEntity().getLiteralValueAtPath(Z,q,Q)}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,q,Q,J)}hasEffectsOnInteractionAtPath(Z,q,Q){return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,q,Q)}render(Z,q,{renderedSurroundingElement:Q}=n1){if(super.render(Z,q),Q===N5||Q===I2)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}applyDeoptimizations(){}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=Y8,q=[];for(let Q of this.properties){if(Q instanceof z6){q.push({key:d1,kind:"init",property:Q});continue}let J;if(Q.computed){let Y=Q.key.getLiteralValueAtPath($1,r1,this);if(typeof Y==="symbol"){q.push({key:d1,kind:Q.kind,property:Q});continue}else J=String(Y)}else if(J=Q.key instanceof l1?Q.key.name:String(Q.key.value),J==="__proto__"&&Q.kind==="init"){Z=Q.value instanceof V6&&Q.value.value===null?null:Q.value;continue}q.push({key:J,kind:Q.kind,property:Q})}return this.objectEntity=new V5(q,Z)}};IY=class IY extends Z1{};sZ=class sZ extends Z1{constructor(){super(...arguments);this.hasCachedEffect=!1}hasEffects(Z){if(this.hasCachedEffect)return!0;for(let q of this.body)if(q.hasEffects(Z))return this.hasCachedEffect=!0;return!1}include(Z,q){this.included=!0;for(let Q of this.body)if(q||Q.shouldBeIncluded(Z))Q.include(Z,q)}render(Z,q){if(this.body.length)O0(this.body,Z,this.start,this.end,q);else super.render(Z,q)}applyDeoptimizations(){}};_Y=class _Y extends dZ{constructor(){super(...arguments);this.declarationInit=null}declare(Z,q){return this.declarationInit=q,this.value.declare(Z,Y1)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();let q=this.context.options.treeshake.propertyReadSideEffects;return this.parent.type==="ObjectPattern"&&q==="always"||this.key.hasEffects(Z)||this.value.hasEffects(Z)}markDeclarationReached(){this.value.markDeclarationReached()}render(Z,q){if(!this.shorthand)this.key.render(Z,q);this.value.render(Z,q,{isShorthandProperty:this.shorthand})}applyDeoptimizations(){if(this.deoptimized=!0,this.declarationInit!==null)this.declarationInit.deoptimizePath([d1,d1]),this.context.requestTreeshakingPass()}};DY=class DY extends Z1{deoptimizePath(Z){var q;(q=this.value)===null||q===void 0||q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){var J;(J=this.value)===null||J===void 0||J.deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){return this.value?this.value.getLiteralValueAtPath(Z,q,Q):x1}getReturnExpressionWhenCalledAtPath(Z,q,Q,J){return this.value?this.value.getReturnExpressionWhenCalledAtPath(Z,q,Q,J):Y1}hasEffects(Z){var q;return this.key.hasEffects(Z)||this.static&&!!((q=this.value)===null||q===void 0?void 0:q.hasEffects(Z))}hasEffectsOnInteractionAtPath(Z,q,Q){return!this.value||this.value.hasEffectsOnInteractionAtPath(Z,q,Q)}applyDeoptimizations(){}};TY=class TY extends Z1{hasEffects(Z){var q;if(!Z.ignore.returnYield||((q=this.argument)===null||q===void 0?void 0:q.hasEffects(Z)))return!0;return Z.brokenFlow=S8,!1}include(Z,q){var Q;this.included=!0,(Q=this.argument)===null||Q===void 0||Q.include(Z,q),Z.brokenFlow=S8}initialise(){this.scope.addReturnExpression(this.argument||Y1)}render(Z,q){if(this.argument){if(this.argument.render(Z,q,{preventASI:!0}),this.argument.start===this.start+6)Z.prependLeft(this.start+6," ")}}};AY=class AY extends Z1{deoptimizePath(Z){this.expressions[this.expressions.length-1].deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){this.expressions[this.expressions.length-1].deoptimizeThisOnInteractionAtPath(Z,q,Q)}getLiteralValueAtPath(Z,q,Q){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(Z,q,Q)}hasEffects(Z){for(let q of this.expressions)if(q.hasEffects(Z))return!0;return!1}hasEffectsOnInteractionAtPath(Z,q,Q){return this.expressions[this.expressions.length-1].hasEffectsOnInteractionAtPath(Z,q,Q)}include(Z,q){this.included=!0;let Q=this.expressions[this.expressions.length-1];for(let J of this.expressions)if(q||J===Q&&!(this.parent instanceof N0)||J.shouldBeIncluded(Z))J.include(Z,q)}render(Z,q,{renderedParentType:Q,isCalleeOfRenderedParent:J,preventASI:Y}=n1){let X=0,z=null,V=this.expressions[this.expressions.length-1];for(let{node:W,separator:K,start:$,end:H}of v2(this.expressions,Z,this.start,this.end)){if(!W.included){kZ(W,Z,$,H);continue}if(X++,z=K,X===1&&Y)t4(Z,$,W.start);if(X===1){let M=Q||this.parent.type;W.render(Z,q,{isCalleeOfRenderedParent:J&&W===V,renderedParentType:M,renderedSurroundingElement:M})}else W.render(Z,q)}if(z)Z.remove(z,this.end)}};PY=class PY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){for(let q of this.body)if(q.hasEffects(Z))return!0;return!1}include(Z,q){this.included=!0;for(let Q of this.body)if(q||Q.shouldBeIncluded(Z))Q.include(Z,q)}render(Z,q){if(this.body.length)O0(this.body,Z,this.start+1,this.end-1,q);else super.render(Z,q)}};SY=class SY extends Z1{bind(){this.variable=this.scope.findVariable("this")}deoptimizePath(Z){this.variable.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){this.variable.deoptimizeThisOnInteractionAtPath(Z,q,Q)}include(){if(!this.included)this.included=!0,this.context.includeVariableInModule(this.variable)}};aZ=class aZ extends Z1{hasEffects(Z){var q;if((q=this.test)===null||q===void 0?void 0:q.hasEffects(Z))return!0;for(let Q of this.consequent){if(Z.brokenFlow)break;if(Q.hasEffects(Z))return!0}return!1}include(Z,q){var Q;this.included=!0,(Q=this.test)===null||Q===void 0||Q.include(Z,q);for(let J of this.consequent)if(q||J.shouldBeIncluded(Z))J.include(Z,q)}render(Z,q,Q){if(this.consequent.length){this.test&&this.test.render(Z,q);let J=this.test?this.test.end:o1(Z.original,"default",this.start)+7,Y=o1(Z.original,":",J)+1;O0(this.consequent,Z,Y,Q.end,q)}else super.render(Z,q)}};aZ.prototype.needsBoundaries=!0;yY=class yY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){if(this.discriminant.hasEffects(Z))return!0;let{brokenFlow:q,ignore:{breaks:Q}}=Z,J=1/0;Z.ignore.breaks=!0;for(let Y of this.cases){if(Y.hasEffects(Z))return!0;J=Z.brokenFlow<J?Z.brokenFlow:J,Z.brokenFlow=q}if(this.defaultCase!==null&&J!==X6)Z.brokenFlow=J;return Z.ignore.breaks=Q,!1}include(Z,q){this.included=!0,this.discriminant.include(Z,q);let{brokenFlow:Q}=Z,J=1/0,Y=q||this.defaultCase!==null&&this.defaultCase<this.cases.length-1;for(let X=this.cases.length-1;X>=0;X--){let z=this.cases[X];if(z.included)Y=!0;if(!Y){let V=s4();V.ignore.breaks=!0,Y=z.hasEffects(V)}if(Y)z.include(Z,q),J=J<Z.brokenFlow?J:Z.brokenFlow,Z.brokenFlow=Q;else J=Q}if(Y&&this.defaultCase!==null&&J!==X6)Z.brokenFlow=J}initialise(){for(let Z=0;Z<this.cases.length;Z++)if(this.cases[Z].test===null){this.defaultCase=Z;return}this.defaultCase=null}render(Z,q){if(this.discriminant.render(Z,q),this.cases.length>0)O0(this.cases,Z,this.cases[0].start,this.end-1,q)}};EY=class EY extends uZ{bind(){if(super.bind(),this.tag.type===T2){let Z=this.tag.name;if(this.scope.findVariable(Z).isNamespace)this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${Z}')`},this.start)}}hasEffects(Z){try{for(let q of this.quasi.expressions)if(q.hasEffects(Z))return!0;return this.tag.hasEffects(Z)||this.tag.hasEffectsOnInteractionAtPath($1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();if(q)super.include(Z,q);else this.included=!0,this.tag.include(Z,q),this.quasi.include(Z,q);this.tag.includeCallArguments(Z,this.interaction.args);let Q=this.getReturnExpression();if(!Q.included)Q.include(Z,!1)}initialise(){this.interaction={args:[Y1,...this.quasi.expressions],thisArg:this.tag instanceof y8&&!this.tag.variable?this.tag.object:null,type:P1,withNew:!1}}render(Z,q){this.tag.render(Z,q,{isCalleeOfRenderedParent:!0}),this.quasi.render(Z,q)}applyDeoptimizations(){if(this.deoptimized=!0,this.interaction.thisArg)this.tag.deoptimizeThisOnInteractionAtPath(this.interaction,$1,r1);for(let Z of this.quasi.expressions)Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}getReturnExpression(Z=r1){if(this.returnExpression===null)return this.returnExpression=Y1,this.returnExpression=this.tag.getReturnExpressionWhenCalledAtPath($1,this.interaction,Z,this);return this.returnExpression}};bY=class bY extends Z1{bind(){}hasEffects(){return!1}include(){this.included=!0}parseNode(Z){this.value=Z.value,super.parseNode(Z)}render(){}};rZ=class rZ extends Z1{deoptimizeThisOnInteractionAtPath(){}getLiteralValueAtPath(Z){if(Z.length>0||this.quasis.length!==1)return x1;return this.quasis[0].value.cooked}getReturnExpressionWhenCalledAtPath(Z){if(Z.length!==1)return Y1;return w0(V0,Z[0])}hasEffectsOnInteractionAtPath(Z,q,Q){if(q.type===E1)return Z.length>1;if(q.type===P1&&Z.length===1)return L0(V0,Z[0],q,Q);return!0}render(Z,q){Z.indentExclusionRanges.push([this.start,this.end]),super.render(Z,q)}};oZ=class oZ extends $8{constructor(){super("undefined")}getLiteralValueAtPath(){return}};g5=class g5 extends S5{constructor(Z,q,Q){super(Z,q,q.declaration,Q);this.hasId=!1,this.originalId=null,this.originalVariable=null;let J=q.declaration;if((J instanceof W6||J instanceof K0)&&J.id)this.hasId=!0,this.originalId=J.id;else if(J instanceof l1)this.originalId=J}addReference(Z){if(!this.hasId)this.name=Z.name}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){let Z=this.getOriginalVariable();if(Z===this)return super.getBaseVariableName();else return Z.getBaseVariableName()}getDirectOriginalVariable(){return this.originalId&&(this.hasId||!(this.originalId.isPossibleTDZ()||this.originalId.variable.isReassigned||this.originalId.variable instanceof oZ||("syntheticNamespace"in this.originalId.variable)))?this.originalId.variable:null}getName(Z){let q=this.getOriginalVariable();if(q===this)return super.getName(Z);else return q.getName(Z)}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let Z=this,q,Q=new Set;do Q.add(Z),q=Z,Z=q.getDirectOriginalVariable();while(Z instanceof g5&&!Q.has(Z));return this.originalVariable=Z||q}};tZ=class tZ extends P5{constructor(Z,q){super(Z);this.context=q,this.variables.set("this",new S5("this",null,F0,q))}addExportDefaultDeclaration(Z,q,Q){let J=new g5(Z,q,Q);return this.variables.set("default",J),J}addNamespaceMemberAccess(){}deconflict(Z,q,Q){for(let J of this.children)J.deconflict(Z,q,Q)}findLexicalBoundary(){return this}findVariable(Z){let q=this.variables.get(Z)||this.accessedOutsideVariables.get(Z);if(q)return q;let Q=this.context.traceVariable(Z)||this.parent.findVariable(Z);if(Q instanceof o4)this.accessedOutsideVariables.set(Z,Q);return Q}};xY=class xY extends Z1{bind(){this.variable=this.scope.findVariable("this")}deoptimizePath(Z){this.variable.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,Q){this.variable.deoptimizeThisOnInteractionAtPath(Z.thisArg===this?{...Z,thisArg:this.variable}:Z,q,Q)}hasEffectsOnInteractionAtPath(Z,q,Q){if(Z.length===0)return q.type!==E1;return this.variable.hasEffectsOnInteractionAtPath(Z,q,Q)}include(){if(!this.included)this.included=!0,this.context.includeVariableInModule(this.variable)}initialise(){if(this.alias=this.scope.findLexicalBoundary()instanceof tZ?this.context.moduleContext:null,this.alias==="undefined")this.context.warn({code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:"https://rollupjs.org/guide/en/#error-this-is-undefined"},this.start)}render(Z){if(this.alias!==null)Z.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}};kY=class kY extends Z1{hasEffects(){return!0}include(Z,q){this.included=!0,this.argument.include(Z,q),Z.brokenFlow=S8}render(Z,q){if(this.argument.render(Z,q,{preventASI:!0}),this.argument.start===this.start+5)Z.prependLeft(this.start+5," ")}};fY=class fY extends Z1{constructor(){super(...arguments);this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(Z){var q;return(this.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(Z))||!!((q=this.finalizer)===null||q===void 0?void 0:q.hasEffects(Z))}include(Z,q){var Q,J;let Y=(Q=this.context.options.treeshake)===null||Q===void 0?void 0:Q.tryCatchDeoptimization,{brokenFlow:X}=Z;if(!this.directlyIncluded||!Y){if(this.included=!0,this.directlyIncluded=!0,this.block.include(Z,Y?y2:q),Z.includedLabels.size>0)this.includedLabelsAfterBlock=[...Z.includedLabels];Z.brokenFlow=X}else if(this.includedLabelsAfterBlock)for(let z of this.includedLabelsAfterBlock)Z.includedLabels.add(z);if(this.handler!==null)this.handler.include(Z,q),Z.brokenFlow=X;(J=this.finalizer)===null||J===void 0||J.include(Z,q)}};MB={"!":(Z)=>!Z,"+":(Z)=>+Z,"-":(Z)=>-Z,delete:()=>x1,typeof:(Z)=>typeof Z,void:()=>{return},"~":(Z)=>~Z};vY=class vY extends Z1{getLiteralValueAtPath(Z,q,Q){if(Z.length>0)return x1;let J=this.argument.getLiteralValueAtPath($1,q,Q);if(typeof J==="symbol")return x1;return MB[this.operator](J)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();if(this.operator==="typeof"&&this.argument instanceof l1)return!1;return this.argument.hasEffects(Z)||this.operator==="delete"&&this.argument.hasEffectsOnInteractionAtPath($1,wZ,Z)}hasEffectsOnInteractionAtPath(Z,{type:q}){return q!==E1||Z.length>(this.operator==="void"?0:1)}applyDeoptimizations(){if(this.deoptimized=!0,this.operator==="delete")this.argument.deoptimizePath($1),this.context.requestTreeshakingPass()}};hY=class hY extends Z1{hasEffects(){return!0}include(Z){super.include(Z,!0)}};gY=class gY extends Z1{hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();return this.argument.hasEffectsAsAssignmentTarget(Z,!0)}hasEffectsOnInteractionAtPath(Z,{type:q}){return Z.length>1||q!==E1}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0,this.argument.includeAsAssignmentTarget(Z,q,!0)}initialise(){this.argument.setAssignedValue(Y1)}render(Z,q){let{exportNamesByVariable:Q,format:J,snippets:{_:Y}}=q;if(this.argument.render(Z,q),J==="system"){let X=this.argument.variable,z=Q.get(X);if(z)if(this.prefix)if(z.length===1)hZ(X,this.start,this.end,Z,q);else h2(X,this.start,this.end,this.parent.type!==N5,Z,q);else{let V=this.operator[0];ej(X,this.start,this.end,this.parent.type!==N5,Z,q,`${Y}${V}${Y}1`)}}}applyDeoptimizations(){if(this.deoptimized=!0,this.argument.deoptimizePath($1),this.argument instanceof l1){let Z=this.scope.findVariable(this.argument.name);Z.isReassigned=!0}this.context.requestTreeshakingPass()}};eZ=class eZ extends Z1{deoptimizePath(){for(let Z of this.declarations)Z.deoptimizePath($1)}hasEffectsOnInteractionAtPath(){return!1}include(Z,q,{asSingleStatement:Q}=n1){this.included=!0;for(let J of this.declarations){if(q||J.shouldBeIncluded(Z))J.include(Z,q);if(Q)J.id.include(Z,q)}}initialise(){for(let Z of this.declarations)Z.declareDeclarator(this.kind)}render(Z,q,Q=n1){if(HB(this.declarations,q.exportNamesByVariable)){for(let J of this.declarations)J.render(Z,q);if(!Q.isNoStatement&&Z.original.charCodeAt(this.end-1)!==59)Z.appendLeft(this.end,";")}else this.renderReplacedDeclarations(Z,q)}applyDeoptimizations(){}renderDeclarationEnd(Z,q,Q,J,Y,X,z){if(Z.original.charCodeAt(this.end-1)===59)Z.remove(this.end-1,this.end);if(q+=";",Q!==null){if(Z.original.charCodeAt(J-1)===10&&(Z.original.charCodeAt(this.end)===10||Z.original.charCodeAt(this.end)===13)){if(J--,Z.original.charCodeAt(J)===13)J--}if(J===Q+1)Z.overwrite(Q,Y,q);else Z.overwrite(Q,Q+1,q),Z.remove(J,Y)}else Z.appendLeft(Y,q);if(X.length>0)Z.appendLeft(Y,` ${b8(X,z)};`)}renderReplacedDeclarations(Z,q){let Q=v2(this.declarations,Z,this.start+this.kind.length,this.end-(Z.original.charCodeAt(this.end-1)===59?1:0)),J,Y;Y=W8(Z.original,this.start+this.kind.length);let X=Y-1;Z.remove(this.start,X);let z=!1,V=!1,W="",K,$,H=[],M=FB(Q,q,H);for(let{node:O,start:L,separator:B,contentEnd:C,end:y}of Q){if(!O.included){Z.remove(L,y);continue}if(O.render(Z,q),K="",$="",!O.id.included||O.id instanceof l1&&mY(O.id.variable,q.exportNamesByVariable)){if(V)W+=";";z=!1}else{if(M&&M===O.id.variable){let P=o1(Z.original,"=",O.id.end);hZ(M,W8(Z.original,P+1),B===null?C:B,Z,q)}if(z)W+=",";else{if(V)W+=";";K+=`${this.kind} `,z=!0}}if(Y===X+1)Z.overwrite(X,Y,W+K);else Z.overwrite(X,X+1,W),Z.appendLeft(Y,K);J=C,Y=y,V=!0,X=B,W=$}this.renderDeclarationEnd(Z,W,X,J,Y,H,q)}};uY=class uY extends Z1{declareDeclarator(Z){this.id.declare(Z,this.init||F0)}deoptimizePath(Z){this.id.deoptimizePath(Z)}hasEffects(Z){var q;let Q=(q=this.init)===null||q===void 0?void 0:q.hasEffects(Z);return this.id.markDeclarationReached(),Q||this.id.hasEffects(Z)}include(Z,q){var Q;if(this.included=!0,(Q=this.init)===null||Q===void 0||Q.include(Z,q),this.id.markDeclarationReached(),q||this.id.shouldBeIncluded(Z))this.id.include(Z,q)}render(Z,q){let{exportNamesByVariable:Q,snippets:{_:J}}=q,Y=this.id.included;if(Y)this.id.render(Z,q);else{let X=o1(Z.original,"=",this.id.end);Z.remove(this.start,W8(Z.original,X+1))}if(this.init)this.init.render(Z,q,Y?n1:{renderedSurroundingElement:N5});else if(this.id instanceof l1&&mY(this.id.variable,Q))Z.appendLeft(this.end,`${J}=${J}void 0`)}applyDeoptimizations(){}};dY=class dY extends Z1{hasEffects(Z){if(this.test.hasEffects(Z))return!0;let{brokenFlow:q,ignore:{breaks:Q,continues:J}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=Q,Z.ignore.continues=J,Z.brokenFlow=q,!1}include(Z,q){this.included=!0,this.test.include(Z,q);let{brokenFlow:Q}=Z;this.body.include(Z,q,{asSingleStatement:!0}),Z.brokenFlow=Q}};lY=class lY extends Z1{hasEffects(Z){var q;if(!this.deoptimized)this.applyDeoptimizations();return!(Z.ignore.returnYield&&!((q=this.argument)===null||q===void 0?void 0:q.hasEffects(Z)))}render(Z,q){if(this.argument){if(this.argument.render(Z,q,{preventASI:!0}),this.argument.start===this.start+5)Z.prependLeft(this.start+5," ")}}};vJ={ArrayExpression:b2,ArrayPattern:x2,ArrowFunctionExpression:vZ,AssignmentExpression:g2,AssignmentPattern:m2,AwaitExpression:l2,BinaryExpression:c2,BlockStatement:W0,BreakStatement:p2,CallExpression:a2,CatchClause:o2,ChainExpression:t2,ClassBody:ZY,ClassDeclaration:K0,ClassExpression:QY,ConditionalExpression:JY,ContinueStatement:YY,DoWhileStatement:XY,EmptyStatement:zY,ExportAllDeclaration:Q7,ExportDefaultDeclaration:R0,ExportNamedDeclaration:cZ,ExportSpecifier:VY,ExpressionStatement:N0,ForInStatement:WY,ForOfStatement:KY,ForStatement:$Y,FunctionDeclaration:W6,FunctionExpression:GY,Identifier:l1,IfStatement:pZ,ImportDeclaration:iZ,ImportDefaultSpecifier:UY,ImportExpression:HY,ImportNamespaceSpecifier:FY,ImportSpecifier:LY,LabeledStatement:wY,Literal:V6,LogicalExpression:OY,MemberExpression:y8,MetaProperty:NY,MethodDefinition:y4,NewExpression:RY,ObjectExpression:CY,ObjectPattern:gZ,PrivateIdentifier:IY,Program:sZ,Property:_Y,PropertyDefinition:DY,RestElement:fZ,ReturnStatement:TY,SequenceExpression:AY,SpreadElement:z6,StaticBlock:PY,Super:SY,SwitchCase:aZ,SwitchStatement:yY,TaggedTemplateExpression:EY,TemplateElement:bY,TemplateLiteral:rZ,ThisExpression:xY,ThrowStatement:kY,TryStatement:fY,UnaryExpression:vY,UnknownNode:hY,UpdateExpression:gY,VariableDeclaration:eZ,VariableDeclarator:uY,WhileStatement:dY,YieldExpression:lY};cY=class cY extends $8{constructor(Z){super(K6);this.module=Z}include(){super.include(),this.module.needsExportShim=!0}};J6=class J6 extends $8{constructor(Z){super(Z.getModuleName());this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=Z,this.module=Z.module}addReference(Z){this.references.push(Z),this.name=Z.name}getMemberVariables(){if(this.memberVariables)return this.memberVariables;let Z=Object.create(null);for(let q of this.context.getExports().concat(this.context.getReexports()))if(q[0]!=="*"&&q!==this.module.info.syntheticNamedExports){let Q=this.context.traceExport(q);if(Q)Z[q]=Q}return this.memberVariables=Z}include(){this.included=!0,this.context.includeAllExports()}prepare(Z){if(this.mergedNamespaces.length>0)this.module.scope.addAccessedGlobals([b4],Z)}renderBlock(Z){let{exportNamesByVariable:q,format:Q,freeze:J,indent:Y,namespaceToStringTag:X,snippets:{_:z,cnst:V,getObject:W,getPropertyAccess:K,n:$,s:H}}=Z,M=this.getMemberVariables(),O=Object.entries(M).map(([C,y])=>{if(this.referencedEarly||y.isReassigned)return[null,`get ${C}${z}()${z}{${z}return ${y.getName(K)}${H}${z}}`];return[C,y.getName(K)]});O.unshift([null,`__proto__:${z}null`]);let L=W(O,{lineBreakIndent:{base:"",t:Y}});if(this.mergedNamespaces.length>0){let C=this.mergedNamespaces.map((y)=>y.getName(K));L=`/*#__PURE__*/${b4}(${L},${z}[${C.join(`,${z}`)}])`}else{if(X)L=`/*#__PURE__*/Object.defineProperty(${L},${z}Symbol.toStringTag,${z}${G0(W)})`;if(J)L=`/*#__PURE__*/Object.freeze(${L})`}let B=this.getName(K);if(L=`${V} ${B}${z}=${z}${L};`,Q==="system"&&q.has(this))L+=`${$}${b8([this],Z)};`;return L}renderFirst(){return this.referencedEarly}setMergedNamespaces(Z){this.mergedNamespaces=Z;let q=this.context.getModuleExecIndex();for(let Q of this.references)if(Q.context.getModuleExecIndex()<=q){this.referencedEarly=!0;break}}};J6.prototype.isNamespace=!0;G5=class G5 extends $8{constructor(Z,q,Q){super(q);this.baseVariable=null,this.context=Z,this.module=Z.module,this.syntheticNamespace=Q}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let Z=this.syntheticNamespace;while(Z instanceof g5||Z instanceof G5){if(Z instanceof g5){let q=Z.getOriginalVariable();if(q===Z)break;Z=q}if(Z instanceof G5)Z=Z.syntheticNamespace}return this.baseVariable=Z}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(Z){return`${this.syntheticNamespace.getName(Z)}${Z(this.name)}`}include(){this.included=!0,this.context.includeVariableInModule(this.syntheticNamespace)}setRenderNames(Z,q){super.setRenderNames(Z,q)}};(function(Z){Z[Z.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",Z[Z.ANALYSE=1]="ANALYSE",Z[Z.GENERATE=2]="GENERATE"})(X8||(X8={}));U0=new Map;a1=x4,i1=x4,RB=["load","resolveDynamicImport","resolveId","transform"];hJ={identifier:null,localName:K6};SB={assert:!0,buffer:!0,console:!0,constants:!0,domain:!0,events:!0,http:!0,https:!0,os:!0,path:!0,process:!0,punycode:!0,querystring:!0,stream:!0,string_decoder:!0,timers:!0,tty:!0,url:!0,util:!0,vm:!0,zlib:!0};aB={amd:yB,cjs:EB,es:xB,iife:hB,system:gB,umd:sB};tB={amd:G4,cjs:G4,es:uJ,iife:G4,system:uJ,umd:G4};qM=/[\\'\r\n\u2028\u2029]/,QM=/(['\r\n\u2028\u2029])/g,JM=/\\/g;Q3=Symbol("bundleKeys"),ZX={type:"placeholder"};dJ=[".js",".jsx",".ts",".tsx"];jM=/[?#]/;iJ=/^(?!\d)[\w$]+$/;PM=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239],QX=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],v9={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},yM={5:h9,"5module":h9+" export import",6:h9+" const class extends export import super"},EM=/^in(stanceof)?$/,bM=new RegExp("["+JX+"]"),xM=new RegExp("["+JX+SM+"]");L5={beforeExpr:!0},z5={startsExpr:!0},J3={};R={num:new C1("num",z5),regexp:new C1("regexp",z5),string:new C1("string",z5),name:new C1("name",z5),privateId:new C1("privateId",z5),eof:new C1("eof"),bracketL:new C1("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new C1("]"),braceL:new C1("{",{beforeExpr:!0,startsExpr:!0}),braceR:new C1("}"),parenL:new C1("(",{beforeExpr:!0,startsExpr:!0}),parenR:new C1(")"),comma:new C1(",",L5),semi:new C1(";",L5),colon:new C1(":",L5),dot:new C1("."),question:new C1("?",L5),questionDot:new C1("?."),arrow:new C1("=>",L5),template:new C1("template"),invalidTemplate:new C1("invalidTemplate"),ellipsis:new C1("...",L5),backQuote:new C1("`",z5),dollarBraceL:new C1("${",{beforeExpr:!0,startsExpr:!0}),eq:new C1("=",{beforeExpr:!0,isAssign:!0}),assign:new C1("_=",{beforeExpr:!0,isAssign:!0}),incDec:new C1("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new C1("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:F5("||",1),logicalAND:F5("&&",2),bitwiseOR:F5("|",3),bitwiseXOR:F5("^",4),bitwiseAND:F5("&",5),equality:F5("==/!=/===/!==",6),relational:F5("</>/<=/>=",7),bitShift:F5("<</>>/>>>",8),plusMin:new C1("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:F5("%",10),star:F5("*",10),slash:F5("/",10),starstar:new C1("**",{beforeExpr:!0}),coalesce:F5("??",1),_break:w1("break"),_case:w1("case",L5),_catch:w1("catch"),_continue:w1("continue"),_debugger:w1("debugger"),_default:w1("default",L5),_do:w1("do",{isLoop:!0,beforeExpr:!0}),_else:w1("else",L5),_finally:w1("finally"),_for:w1("for",{isLoop:!0}),_function:w1("function",z5),_if:w1("if"),_return:w1("return",L5),_switch:w1("switch"),_throw:w1("throw",L5),_try:w1("try"),_var:w1("var"),_const:w1("const"),_while:w1("while",{isLoop:!0}),_with:w1("with"),_new:w1("new",{beforeExpr:!0,startsExpr:!0}),_this:w1("this",z5),_super:w1("super",z5),_class:w1("class",z5),_extends:w1("extends",L5),_export:w1("export"),_import:w1("import",z5),_null:w1("null",z5),_true:w1("true",z5),_false:w1("false",z5),_in:w1("in",{beforeExpr:!0,binop:7}),_instanceof:w1("instanceof",{beforeExpr:!0,binop:7}),_typeof:w1("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w1("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w1("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R5=/\r\n?|\n|\u2028|\u2029/,kM=new RegExp(R5.source,"g");XX=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,O5=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,zX=Object.prototype,fM=zX.hasOwnProperty,vM=zX.toString,_0=Object.hasOwn||function(Z,q){return fM.call(Z,q)},rJ=Array.isArray||function(Z){return vM.call(Z)==="[object Array]"};hM=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;B0.prototype.offset=function(q){return new B0(this.line,this.column+q)};WZ={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};z3=M0|B6|D0;m5={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};c1.prototype.parse=function(){var q=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(q)};m5.inFunction.get=function(){return(this.currentVarScope().flags&B6)>0};m5.inGenerator.get=function(){return(this.currentVarScope().flags&WX)>0&&!this.currentVarScope().inClassFieldInit};m5.inAsync.get=function(){return(this.currentVarScope().flags&Y3)>0&&!this.currentVarScope().inClassFieldInit};m5.canAwait.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var q=this.scopeStack[Z];if(q.inClassFieldInit||q.flags&D0)return!1;if(q.flags&B6)return(q.flags&Y3)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};m5.allowSuper.get=function(){var Z=this.currentThisScope(),q=Z.flags,Q=Z.inClassFieldInit;return(q&X3)>0||Q||this.options.allowSuperOutsideMethod};m5.allowDirectSuper.get=function(){return(this.currentThisScope().flags&GX)>0};m5.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};m5.allowNewDotTarget.get=function(){var Z=this.currentThisScope(),q=Z.flags,Q=Z.inClassFieldInit;return(q&(B6|D0))>0||Q};m5.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&D0)>0};c1.extend=function(){var q=[],Q=arguments.length;while(Q--)q[Q]=arguments[Q];var J=this;for(var Y=0;Y<q.length;Y++)J=q[Y](J);return J};c1.parse=function(q,Q){return new this(Q,q).parse()};c1.parseExpressionAt=function(q,Q,J){var Y=new this(J,q,Q);return Y.nextToken(),Y.parseExpression()};c1.tokenizer=function(q,Q){return new this(Q,q)};Object.defineProperties(c1.prototype,m5);Y5=c1.prototype,uM=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Y5.strictDirective=function(Z){if(this.options.ecmaVersion<5)return!1;for(;;){O5.lastIndex=Z,Z+=O5.exec(this.input)[0].length;var q=uM.exec(this.input.slice(Z));if(!q)return!1;if((q[1]||q[2])==="use strict"){O5.lastIndex=Z+q[0].length;var Q=O5.exec(this.input),J=Q.index+Q[0].length,Y=this.input.charAt(J);return Y===";"||Y==="}"||R5.test(Q[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(J+1)==="=")}if(Z+=q[0].length,O5.lastIndex=Z,Z+=O5.exec(this.input)[0].length,this.input[Z]===";")Z++}};Y5.eat=function(Z){if(this.type===Z)return this.next(),!0;else return!1};Y5.isContextual=function(Z){return this.type===R.name&&this.value===Z&&!this.containsEsc};Y5.eatContextual=function(Z){if(!this.isContextual(Z))return!1;return this.next(),!0};Y5.expectContextual=function(Z){if(!this.eatContextual(Z))this.unexpected()};Y5.canInsertSemicolon=function(){return this.type===R.eof||this.type===R.braceR||R5.test(this.input.slice(this.lastTokEnd,this.start))};Y5.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};Y5.semicolon=function(){if(!this.eat(R.semi)&&!this.insertSemicolon())this.unexpected()};Y5.afterTrailingComma=function(Z,q){if(this.type===Z){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!q)this.next();return!0}};Y5.expect=function(Z){this.eat(Z)||this.unexpected()};Y5.unexpected=function(Z){this.raise(Z!=null?Z:this.start,"Unexpected token")};Y5.checkPatternErrors=function(Z,q){if(!Z)return;if(Z.trailingComma>-1)this.raiseRecoverable(Z.trailingComma,"Comma is not permitted after the rest element");var Q=q?Z.parenthesizedAssign:Z.parenthesizedBind;if(Q>-1)this.raiseRecoverable(Q,"Parenthesized pattern")};Y5.checkExpressionErrors=function(Z,q){if(!Z)return!1;var{shorthandAssign:Q,doubleProto:J}=Z;if(!q)return Q>=0||J>=0;if(Q>=0)this.raise(Q,"Shorthand property assignments are valid only in destructuring patterns");if(J>=0)this.raiseRecoverable(J,"Redefinition of __proto__ property")};Y5.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};Y5.isSimpleAssignTarget=function(Z){if(Z.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(Z.expression);return Z.type==="Identifier"||Z.type==="MemberExpression"};z1=c1.prototype;z1.parseTopLevel=function(Z){var q=Object.create(null);if(!Z.body)Z.body=[];while(this.type!==R.eof){var Q=this.parseStatement(null,!0,q);Z.body.push(Q)}if(this.inModule)for(var J=0,Y=Object.keys(this.undefinedExports);J<Y.length;J+=1){var X=Y[J];this.raiseRecoverable(this.undefinedExports[X].start,"Export '"+X+"' is not defined")}return this.adaptDirectivePrologue(Z.body),this.next(),Z.sourceType=this.options.sourceType,this.finishNode(Z,"Program")};K3={kind:"loop"},dM={kind:"switch"};z1.isLet=function(Z){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;O5.lastIndex=this.pos;var q=O5.exec(this.input),Q=this.pos+q[0].length,J=this.input.charCodeAt(Q);if(J===91||J===92||J>55295&&J<56320)return!0;if(Z)return!1;if(J===123)return!0;if(r5(J,!0)){var Y=Q+1;while($6(J=this.input.charCodeAt(Y),!0))++Y;if(J===92||J>55295&&J<56320)return!0;var X=this.input.slice(Q,Y);if(!EM.test(X))return!0}return!1};z1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;O5.lastIndex=this.pos;var Z=O5.exec(this.input),q=this.pos+Z[0].length,Q;return!R5.test(this.input.slice(this.pos,q))&&this.input.slice(q,q+8)==="function"&&(q+8===this.input.length||!($6(Q=this.input.charCodeAt(q+8))||Q>55295&&Q<56320))};z1.parseStatement=function(Z,q,Q){var J=this.type,Y=this.startNode(),X;if(this.isLet(Z))J=R._var,X="let";switch(J){case R._break:case R._continue:return this.parseBreakContinueStatement(Y,J.keyword);case R._debugger:return this.parseDebuggerStatement(Y);case R._do:return this.parseDoStatement(Y);case R._for:return this.parseForStatement(Y);case R._function:if(Z&&(this.strict||Z!=="if"&&Z!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!Z);case R._class:if(Z)this.unexpected();return this.parseClass(Y,!0);case R._if:return this.parseIfStatement(Y);case R._return:return this.parseReturnStatement(Y);case R._switch:return this.parseSwitchStatement(Y);case R._throw:return this.parseThrowStatement(Y);case R._try:return this.parseTryStatement(Y);case R._const:case R._var:if(X=X||this.value,Z&&X!=="var")this.unexpected();return this.parseVarStatement(Y,X);case R._while:return this.parseWhileStatement(Y);case R._with:return this.parseWithStatement(Y);case R.braceL:return this.parseBlock(!0,Y);case R.semi:return this.parseEmptyStatement(Y);case R._export:case R._import:if(this.options.ecmaVersion>10&&J===R._import){O5.lastIndex=this.pos;var z=O5.exec(this.input),V=this.pos+z[0].length,W=this.input.charCodeAt(V);if(W===40||W===46)return this.parseExpressionStatement(Y,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!q)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return J===R._import?this.parseImport(Y):this.parseExport(Y,Q);default:if(this.isAsyncFunction()){if(Z)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!0,!Z)}var K=this.value,$=this.parseExpression();if(J===R.name&&$.type==="Identifier"&&this.eat(R.colon))return this.parseLabeledStatement(Y,K,$,Z);else return this.parseExpressionStatement(Y,$)}};z1.parseBreakContinueStatement=function(Z,q){var Q=q==="break";if(this.next(),this.eat(R.semi)||this.insertSemicolon())Z.label=null;else if(this.type!==R.name)this.unexpected();else Z.label=this.parseIdent(),this.semicolon();var J=0;for(;J<this.labels.length;++J){var Y=this.labels[J];if(Z.label==null||Y.name===Z.label.name){if(Y.kind!=null&&(Q||Y.kind==="loop"))break;if(Z.label&&Q)break}}if(J===this.labels.length)this.raise(Z.start,"Unsyntactic "+q);return this.finishNode(Z,Q?"BreakStatement":"ContinueStatement")};z1.parseDebuggerStatement=function(Z){return this.next(),this.semicolon(),this.finishNode(Z,"DebuggerStatement")};z1.parseDoStatement=function(Z){if(this.next(),this.labels.push(K3),Z.body=this.parseStatement("do"),this.labels.pop(),this.expect(R._while),Z.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(R.semi);else this.semicolon();return this.finishNode(Z,"DoWhileStatement")};z1.parseForStatement=function(Z){this.next();var q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K3),this.enterScope(0),this.expect(R.parenL),this.type===R.semi){if(q>-1)this.unexpected(q);return this.parseFor(Z,null)}var Q=this.isLet();if(this.type===R._var||this.type===R._const||Q){var J=this.startNode(),Y=Q?"let":this.value;if(this.next(),this.parseVar(J,!0,Y),this.finishNode(J,"VariableDeclaration"),(this.type===R._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&J.declarations.length===1){if(this.options.ecmaVersion>=9)if(this.type===R._in){if(q>-1)this.unexpected(q)}else Z.await=q>-1;return this.parseForIn(Z,J)}if(q>-1)this.unexpected(q);return this.parseFor(Z,J)}var X=this.isContextual("let"),z=!1,V=new W7,W=this.parseExpression(q>-1?"await":!0,V);if(this.type===R._in||(z=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(this.options.ecmaVersion>=9)if(this.type===R._in){if(q>-1)this.unexpected(q)}else Z.await=q>-1;if(X&&z)this.raise(W.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(W,!1,V),this.checkLValPattern(W),this.parseForIn(Z,W)}else this.checkExpressionErrors(V,!0);if(q>-1)this.unexpected(q);return this.parseFor(Z,W)};z1.parseFunctionStatement=function(Z,q,Q){return this.next(),this.parseFunction(Z,Z0|(Q?0:KZ),!1,q)};z1.parseIfStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),Z.consequent=this.parseStatement("if"),Z.alternate=this.eat(R._else)?this.parseStatement("if"):null,this.finishNode(Z,"IfStatement")};z1.parseReturnStatement=function(Z){if(!this.inFunction&&!this.options.allowReturnOutsideFunction)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(R.semi)||this.insertSemicolon())Z.argument=null;else Z.argument=this.parseExpression(),this.semicolon();return this.finishNode(Z,"ReturnStatement")};z1.parseSwitchStatement=function(Z){this.next(),Z.discriminant=this.parseParenExpression(),Z.cases=[],this.expect(R.braceL),this.labels.push(dM),this.enterScope(0);var q;for(var Q=!1;this.type!==R.braceR;)if(this.type===R._case||this.type===R._default){var J=this.type===R._case;if(q)this.finishNode(q,"SwitchCase");if(Z.cases.push(q=this.startNode()),q.consequent=[],this.next(),J)q.test=this.parseExpression();else{if(Q)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");Q=!0,q.test=null}this.expect(R.colon)}else{if(!q)this.unexpected();q.consequent.push(this.parseStatement(null))}if(this.exitScope(),q)this.finishNode(q,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(Z,"SwitchStatement")};z1.parseThrowStatement=function(Z){if(this.next(),R5.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return Z.argument=this.parseExpression(),this.semicolon(),this.finishNode(Z,"ThrowStatement")};lM=[];z1.parseTryStatement=function(Z){if(this.next(),Z.block=this.parseBlock(),Z.handler=null,this.type===R._catch){var q=this.startNode();if(this.next(),this.eat(R.parenL)){q.param=this.parseBindingAtom();var Q=q.param.type==="Identifier";this.enterScope(Q?$X:0),this.checkLValPattern(q.param,Q?jX:s5),this.expect(R.parenR)}else{if(this.options.ecmaVersion<10)this.unexpected();q.param=null,this.enterScope(0)}q.body=this.parseBlock(!1),this.exitScope(),Z.handler=this.finishNode(q,"CatchClause")}if(Z.finalizer=this.eat(R._finally)?this.parseBlock():null,!Z.handler&&!Z.finalizer)this.raise(Z.start,"Missing catch or finally clause");return this.finishNode(Z,"TryStatement")};z1.parseVarStatement=function(Z,q){return this.next(),this.parseVar(Z,!1,q),this.semicolon(),this.finishNode(Z,"VariableDeclaration")};z1.parseWhileStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),this.labels.push(K3),Z.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(Z,"WhileStatement")};z1.parseWithStatement=function(Z){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),Z.object=this.parseParenExpression(),Z.body=this.parseStatement("with"),this.finishNode(Z,"WithStatement")};z1.parseEmptyStatement=function(Z){return this.next(),this.finishNode(Z,"EmptyStatement")};z1.parseLabeledStatement=function(Z,q,Q,J){for(var Y=0,X=this.labels;Y<X.length;Y+=1){var z=X[Y];if(z.name===q)this.raise(Q.start,"Label '"+q+"' is already declared")}var V=this.type.isLoop?"loop":this.type===R._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var K=this.labels[W];if(K.statementStart===Z.start)K.statementStart=this.start,K.kind=V;else break}return this.labels.push({name:q,kind:V,statementStart:this.start}),Z.body=this.parseStatement(J?J.indexOf("label")===-1?J+"label":J:"label"),this.labels.pop(),Z.label=Q,this.finishNode(Z,"LabeledStatement")};z1.parseExpressionStatement=function(Z,q){return Z.expression=q,this.semicolon(),this.finishNode(Z,"ExpressionStatement")};z1.parseBlock=function(Z,q,Q){if(Z===void 0)Z=!0;if(q===void 0)q=this.startNode();if(q.body=[],this.expect(R.braceL),Z)this.enterScope(0);while(this.type!==R.braceR){var J=this.parseStatement(null);q.body.push(J)}if(Q)this.strict=!1;if(this.next(),Z)this.exitScope();return this.finishNode(q,"BlockStatement")};z1.parseFor=function(Z,q){return Z.init=q,this.expect(R.semi),Z.test=this.type===R.semi?null:this.parseExpression(),this.expect(R.semi),Z.update=this.type===R.parenR?null:this.parseExpression(),this.expect(R.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,"ForStatement")};z1.parseForIn=function(Z,q){var Q=this.type===R._in;if(this.next(),q.type==="VariableDeclaration"&&q.declarations[0].init!=null&&(!Q||this.options.ecmaVersion<8||this.strict||q.kind!=="var"||q.declarations[0].id.type!=="Identifier"))this.raise(q.start,(Q?"for-in":"for-of")+" loop variable declaration may not have an initializer");return Z.left=q,Z.right=Q?this.parseExpression():this.parseMaybeAssign(),this.expect(R.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,Q?"ForInStatement":"ForOfStatement")};z1.parseVar=function(Z,q,Q){Z.declarations=[],Z.kind=Q;for(;;){var J=this.startNode();if(this.parseVarId(J,Q),this.eat(R.eq))J.init=this.parseMaybeAssign(q);else if(Q==="const"&&!(this.type===R._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(J.id.type!=="Identifier"&&!(q&&(this.type===R._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else J.init=null;if(Z.declarations.push(this.finishNode(J,"VariableDeclarator")),!this.eat(R.comma))break}return Z};z1.parseVarId=function(Z,q){Z.id=this.parseBindingAtom(),this.checkLValPattern(Z.id,q==="var"?W3:s5,!1)};z1.parseFunction=function(Z,q,Q,J,Y){if(this.initFunction(Z),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!J){if(this.type===R.star&&q&KZ)this.unexpected();Z.generator=this.eat(R.star)}if(this.options.ecmaVersion>=8)Z.async=!!J;if(q&Z0){if(Z.id=q&MX&&this.type!==R.name?null:this.parseIdent(),Z.id&&!(q&KZ))this.checkLValSimple(Z.id,this.strict||Z.generator||Z.async?this.treatFunctionsAsVar?W3:s5:UX)}var X=this.yieldPos,z=this.awaitPos,V=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(V3(Z.async,Z.generator)),!(q&Z0))Z.id=this.type===R.name?this.parseIdent():null;return this.parseFunctionParams(Z),this.parseFunctionBody(Z,Q,!1,Y),this.yieldPos=X,this.awaitPos=z,this.awaitIdentPos=V,this.finishNode(Z,q&Z0?"FunctionDeclaration":"FunctionExpression")};z1.parseFunctionParams=function(Z){this.expect(R.parenL),Z.params=this.parseBindingList(R.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};z1.parseClass=function(Z,q){this.next();var Q=this.strict;this.strict=!0,this.parseClassId(Z,q),this.parseClassSuper(Z);var J=this.enterClassBody(),Y=this.startNode(),X=!1;Y.body=[],this.expect(R.braceL);while(this.type!==R.braceR){var z=this.parseClassElement(Z.superClass!==null);if(z){if(Y.body.push(z),z.type==="MethodDefinition"&&z.kind==="constructor"){if(X)this.raise(z.start,"Duplicate constructor in the same class");X=!0}else if(z.key&&z.key.type==="PrivateIdentifier"&&cM(J,z))this.raiseRecoverable(z.key.start,"Identifier '#"+z.key.name+"' has already been declared")}}return this.strict=Q,this.next(),Z.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(Z,q?"ClassDeclaration":"ClassExpression")};z1.parseClassElement=function(Z){if(this.eat(R.semi))return null;var q=this.options.ecmaVersion,Q=this.startNode(),J="",Y=!1,X=!1,z="method",V=!1;if(this.eatContextual("static")){if(q>=13&&this.eat(R.braceL))return this.parseClassStaticBlock(Q),Q;if(this.isClassElementNameStart()||this.type===R.star)V=!0;else J="static"}if(Q.static=V,!J&&q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===R.star)&&!this.canInsertSemicolon())X=!0;else J="async";if(!J&&(q>=9||!X)&&this.eat(R.star))Y=!0;if(!J&&!X&&!Y){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())z=W;else J=W}if(J)Q.computed=!1,Q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Q.key.name=J,this.finishNode(Q.key,"Identifier");else this.parseClassElementName(Q);if(q<13||this.type===R.parenL||z!=="method"||Y||X){var K=!Q.static&&v4(Q,"constructor"),$=K&&Z;if(K&&z!=="method")this.raise(Q.key.start,"Constructor can't have get/set modifier");Q.kind=K?"constructor":z,this.parseClassMethod(Q,Y,X,$)}else this.parseClassField(Q);return Q};z1.isClassElementNameStart=function(){return this.type===R.name||this.type===R.privateId||this.type===R.num||this.type===R.string||this.type===R.bracketL||this.type.keyword};z1.parseClassElementName=function(Z){if(this.type===R.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");Z.computed=!1,Z.key=this.parsePrivateIdent()}else this.parsePropertyName(Z)};z1.parseClassMethod=function(Z,q,Q,J){var Y=Z.key;if(Z.kind==="constructor"){if(q)this.raise(Y.start,"Constructor can't be a generator");if(Q)this.raise(Y.start,"Constructor can't be an async method")}else if(Z.static&&v4(Z,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var X=Z.value=this.parseMethod(q,Q,J);if(Z.kind==="get"&&X.params.length!==0)this.raiseRecoverable(X.start,"getter should have no params");if(Z.kind==="set"&&X.params.length!==1)this.raiseRecoverable(X.start,"setter should have exactly one param");if(Z.kind==="set"&&X.params[0].type==="RestElement")this.raiseRecoverable(X.params[0].start,"Setter cannot use rest params");return this.finishNode(Z,"MethodDefinition")};z1.parseClassField=function(Z){if(v4(Z,"constructor"))this.raise(Z.key.start,"Classes can't have a field named 'constructor'");else if(Z.static&&v4(Z,"prototype"))this.raise(Z.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(R.eq)){var q=this.currentThisScope(),Q=q.inClassFieldInit;q.inClassFieldInit=!0,Z.value=this.parseMaybeAssign(),q.inClassFieldInit=Q}else Z.value=null;return this.semicolon(),this.finishNode(Z,"PropertyDefinition")};z1.parseClassStaticBlock=function(Z){Z.body=[];var q=this.labels;this.labels=[],this.enterScope(D0|X3);while(this.type!==R.braceR){var Q=this.parseStatement(null);Z.body.push(Q)}return this.next(),this.exitScope(),this.labels=q,this.finishNode(Z,"StaticBlock")};z1.parseClassId=function(Z,q){if(this.type===R.name){if(Z.id=this.parseIdent(),q)this.checkLValSimple(Z.id,s5,!1)}else{if(q===!0)this.unexpected();Z.id=null}};z1.parseClassSuper=function(Z){Z.superClass=this.eat(R._extends)?this.parseExprSubscripts(!1):null};z1.enterClassBody=function(){var Z={declared:Object.create(null),used:[]};return this.privateNameStack.push(Z),Z.declared};z1.exitClassBody=function(){var Z=this.privateNameStack.pop(),q=Z.declared,Q=Z.used,J=this.privateNameStack.length,Y=J===0?null:this.privateNameStack[J-1];for(var X=0;X<Q.length;++X){var z=Q[X];if(!_0(q,z.name))if(Y)Y.used.push(z);else this.raiseRecoverable(z.start,"Private field '#"+z.name+"' must be declared in an enclosing class")}};z1.parseExport=function(Z,q){if(this.next(),this.eat(R.star)){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))Z.exported=this.parseModuleExportName(),this.checkExport(q,Z.exported,this.lastTokStart);else Z.exported=null;if(this.expectContextual("from"),this.type!==R.string)this.unexpected();return Z.source=this.parseExprAtom(),this.semicolon(),this.finishNode(Z,"ExportAllDeclaration")}if(this.eat(R._default)){this.checkExport(q,"default",this.lastTokStart);var Q;if(this.type===R._function||(Q=this.isAsyncFunction())){var J=this.startNode();if(this.next(),Q)this.next();Z.declaration=this.parseFunction(J,Z0|MX,!1,Q)}else if(this.type===R._class){var Y=this.startNode();Z.declaration=this.parseClass(Y,"nullableID")}else Z.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(Z,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){if(Z.declaration=this.parseStatement(null),Z.declaration.type==="VariableDeclaration")this.checkVariableExport(q,Z.declaration.declarations);else this.checkExport(q,Z.declaration.id,Z.declaration.id.start);Z.specifiers=[],Z.source=null}else{if(Z.declaration=null,Z.specifiers=this.parseExportSpecifiers(q),this.eatContextual("from")){if(this.type!==R.string)this.unexpected();Z.source=this.parseExprAtom()}else{for(var X=0,z=Z.specifiers;X<z.length;X+=1){var V=z[X];if(this.checkUnreserved(V.local),this.checkLocalExport(V.local),V.local.type==="Literal")this.raise(V.local.start,"A string literal cannot be used as an exported binding without `from`.")}Z.source=null}this.semicolon()}return this.finishNode(Z,"ExportNamedDeclaration")};z1.checkExport=function(Z,q,Q){if(!Z)return;if(typeof q!=="string")q=q.type==="Identifier"?q.name:q.value;if(_0(Z,q))this.raiseRecoverable(Q,"Duplicate export '"+q+"'");Z[q]=!0};z1.checkPatternExport=function(Z,q){var Q=q.type;if(Q==="Identifier")this.checkExport(Z,q,q.start);else if(Q==="ObjectPattern")for(var J=0,Y=q.properties;J<Y.length;J+=1){var X=Y[J];this.checkPatternExport(Z,X)}else if(Q==="ArrayPattern")for(var z=0,V=q.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkPatternExport(Z,W)}else if(Q==="Property")this.checkPatternExport(Z,q.value);else if(Q==="AssignmentPattern")this.checkPatternExport(Z,q.left);else if(Q==="RestElement")this.checkPatternExport(Z,q.argument);else if(Q==="ParenthesizedExpression")this.checkPatternExport(Z,q.expression)};z1.checkVariableExport=function(Z,q){if(!Z)return;for(var Q=0,J=q;Q<J.length;Q+=1){var Y=J[Q];this.checkPatternExport(Z,Y.id)}};z1.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};z1.parseExportSpecifiers=function(Z){var q=[],Q=!0;this.expect(R.braceL);while(!this.eat(R.braceR)){if(!Q){if(this.expect(R.comma),this.afterTrailingComma(R.braceR))break}else Q=!1;var J=this.startNode();J.local=this.parseModuleExportName(),J.exported=this.eatContextual("as")?this.parseModuleExportName():J.local,this.checkExport(Z,J.exported,J.exported.start),q.push(this.finishNode(J,"ExportSpecifier"))}return q};z1.parseImport=function(Z){if(this.next(),this.type===R.string)Z.specifiers=lM,Z.source=this.parseExprAtom();else Z.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),Z.source=this.type===R.string?this.parseExprAtom():this.unexpected();return this.semicolon(),this.finishNode(Z,"ImportDeclaration")};z1.parseImportSpecifiers=function(){var Z=[],q=!0;if(this.type===R.name){var Q=this.startNode();if(Q.local=this.parseIdent(),this.checkLValSimple(Q.local,s5),Z.push(this.finishNode(Q,"ImportDefaultSpecifier")),!this.eat(R.comma))return Z}if(this.type===R.star){var J=this.startNode();return this.next(),this.expectContextual("as"),J.local=this.parseIdent(),this.checkLValSimple(J.local,s5),Z.push(this.finishNode(J,"ImportNamespaceSpecifier")),Z}this.expect(R.braceL);while(!this.eat(R.braceR)){if(!q){if(this.expect(R.comma),this.afterTrailingComma(R.braceR))break}else q=!1;var Y=this.startNode();if(Y.imported=this.parseModuleExportName(),this.eatContextual("as"))Y.local=this.parseIdent();else this.checkUnreserved(Y.imported),Y.local=Y.imported;this.checkLValSimple(Y.local,s5),Z.push(this.finishNode(Y,"ImportSpecifier"))}return Z};z1.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===R.string){var Z=this.parseLiteral(this.value);if(hM.test(Z.value))this.raise(Z.start,"An export name cannot include a lone surrogate.");return Z}return this.parseIdent(!0)};z1.adaptDirectivePrologue=function(Z){for(var q=0;q<Z.length&&this.isDirectiveCandidate(Z[q]);++q)Z[q].directive=Z[q].expression.raw.slice(1,-1)};z1.isDirectiveCandidate=function(Z){return Z.type==="ExpressionStatement"&&Z.expression.type==="Literal"&&typeof Z.expression.value==="string"&&(this.input[Z.start]==='"'||this.input[Z.start]==="'")};y5=c1.prototype;y5.toAssignable=function(Z,q,Q){if(this.options.ecmaVersion>=6&&Z)switch(Z.type){case"Identifier":if(this.inAsync&&Z.name==="await")this.raise(Z.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(Z.type="ObjectPattern",Q)this.checkPatternErrors(Q,!0);for(var J=0,Y=Z.properties;J<Y.length;J+=1){var X=Y[J];if(this.toAssignable(X,q),X.type==="RestElement"&&(X.argument.type==="ArrayPattern"||X.argument.type==="ObjectPattern"))this.raise(X.argument.start,"Unexpected token")}break;case"Property":if(Z.kind!=="init")this.raise(Z.key.start,"Object pattern can't contain getter or setter");this.toAssignable(Z.value,q);break;case"ArrayExpression":if(Z.type="ArrayPattern",Q)this.checkPatternErrors(Q,!0);this.toAssignableList(Z.elements,q);break;case"SpreadElement":if(Z.type="RestElement",this.toAssignable(Z.argument,q),Z.argument.type==="AssignmentPattern")this.raise(Z.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(Z.operator!=="=")this.raise(Z.left.end,"Only '=' operator can be used for specifying default value.");Z.type="AssignmentPattern",delete Z.operator,this.toAssignable(Z.left,q);break;case"ParenthesizedExpression":this.toAssignable(Z.expression,q,Q);break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!q)break;default:this.raise(Z.start,"Assigning to rvalue")}else if(Q)this.checkPatternErrors(Q,!0);return Z};y5.toAssignableList=function(Z,q){var Q=Z.length;for(var J=0;J<Q;J++){var Y=Z[J];if(Y)this.toAssignable(Y,q)}if(Q){var X=Z[Q-1];if(this.options.ecmaVersion===6&&q&&X&&X.type==="RestElement"&&X.argument.type!=="Identifier")this.unexpected(X.argument.start)}return Z};y5.parseSpread=function(Z){var q=this.startNode();return this.next(),q.argument=this.parseMaybeAssign(!1,Z),this.finishNode(q,"SpreadElement")};y5.parseRestBinding=function(){var Z=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==R.name)this.unexpected();return Z.argument=this.parseBindingAtom(),this.finishNode(Z,"RestElement")};y5.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case R.bracketL:var Z=this.startNode();return this.next(),Z.elements=this.parseBindingList(R.bracketR,!0,!0),this.finishNode(Z,"ArrayPattern");case R.braceL:return this.parseObj(!0)}return this.parseIdent()};y5.parseBindingList=function(Z,q,Q){var J=[],Y=!0;while(!this.eat(Z)){if(Y)Y=!1;else this.expect(R.comma);if(q&&this.type===R.comma)J.push(null);else if(Q&&this.afterTrailingComma(Z))break;else if(this.type===R.ellipsis){var X=this.parseRestBinding();if(this.parseBindingListItem(X),J.push(X),this.type===R.comma)this.raise(this.start,"Comma is not permitted after the rest element");this.expect(Z);break}else{var z=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(z),J.push(z)}}return J};y5.parseBindingListItem=function(Z){return Z};y5.parseMaybeDefault=function(Z,q,Q){if(Q=Q||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(R.eq))return Q;var J=this.startNodeAt(Z,q);return J.left=Q,J.right=this.parseMaybeAssign(),this.finishNode(J,"AssignmentPattern")};y5.checkLValSimple=function(Z,q,Q){if(q===void 0)q=f4;var J=q!==f4;switch(Z.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(Z.name))this.raiseRecoverable(Z.start,(J?"Binding ":"Assigning to ")+Z.name+" in strict mode");if(J){if(q===s5&&Z.name==="let")this.raiseRecoverable(Z.start,"let is disallowed as a lexically bound name");if(Q){if(_0(Q,Z.name))this.raiseRecoverable(Z.start,"Argument name clash");Q[Z.name]=!0}if(q!==BX)this.declareName(Z.name,q,Z.start)}break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(J)this.raiseRecoverable(Z.start,"Binding member expression");break;case"ParenthesizedExpression":if(J)this.raiseRecoverable(Z.start,"Binding parenthesized expression");return this.checkLValSimple(Z.expression,q,Q);default:this.raise(Z.start,(J?"Binding":"Assigning to")+" rvalue")}};y5.checkLValPattern=function(Z,q,Q){if(q===void 0)q=f4;switch(Z.type){case"ObjectPattern":for(var J=0,Y=Z.properties;J<Y.length;J+=1){var X=Y[J];this.checkLValInnerPattern(X,q,Q)}break;case"ArrayPattern":for(var z=0,V=Z.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkLValInnerPattern(W,q,Q)}break;default:this.checkLValSimple(Z,q,Q)}};y5.checkLValInnerPattern=function(Z,q,Q){if(q===void 0)q=f4;switch(Z.type){case"Property":this.checkLValInnerPattern(Z.value,q,Q);break;case"AssignmentPattern":this.checkLValPattern(Z.left,q,Q);break;case"RestElement":this.checkLValPattern(Z.argument,q,Q);break;default:this.checkLValPattern(Z,q,Q)}};y1={b_stat:new A5("{",!1),b_expr:new A5("{",!0),b_tmpl:new A5("${",!1),p_stat:new A5("(",!1),p_expr:new A5("(",!0),q_tmpl:new A5("`",!0,!0,function(Z){return Z.tryReadTemplateToken()}),f_stat:new A5("function",!1),f_expr:new A5("function",!0),f_expr_gen:new A5("function",!0,!1,null,!0),f_gen:new A5("function",!1,!1,null,!0)},M6=c1.prototype;M6.initialContext=function(){return[y1.b_stat]};M6.curContext=function(){return this.context[this.context.length-1]};M6.braceIsBlock=function(Z){var q=this.curContext();if(q===y1.f_expr||q===y1.f_stat)return!0;if(Z===R.colon&&(q===y1.b_stat||q===y1.b_expr))return!q.isExpr;if(Z===R._return||Z===R.name&&this.exprAllowed)return R5.test(this.input.slice(this.lastTokEnd,this.start));if(Z===R._else||Z===R.semi||Z===R.eof||Z===R.parenR||Z===R.arrow)return!0;if(Z===R.braceL)return q===y1.b_stat;if(Z===R._var||Z===R._const||Z===R.name)return!1;return!this.exprAllowed};M6.inGeneratorContext=function(){for(var Z=this.context.length-1;Z>=1;Z--){var q=this.context[Z];if(q.token==="function")return q.generator}return!1};M6.updateContext=function(Z){var q,Q=this.type;if(Q.keyword&&Z===R.dot)this.exprAllowed=!1;else if(q=Q.updateContext)q.call(this,Z);else this.exprAllowed=Q.beforeExpr};M6.overrideContext=function(Z){if(this.curContext()!==Z)this.context[this.context.length-1]=Z};R.parenR.updateContext=R.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var Z=this.context.pop();if(Z===y1.b_stat&&this.curContext().token==="function")Z=this.context.pop();this.exprAllowed=!Z.isExpr};R.braceL.updateContext=function(Z){this.context.push(this.braceIsBlock(Z)?y1.b_stat:y1.b_expr),this.exprAllowed=!0};R.dollarBraceL.updateContext=function(){this.context.push(y1.b_tmpl),this.exprAllowed=!0};R.parenL.updateContext=function(Z){var q=Z===R._if||Z===R._for||Z===R._with||Z===R._while;this.context.push(q?y1.p_stat:y1.p_expr),this.exprAllowed=!0};R.incDec.updateContext=function(){};R._function.updateContext=R._class.updateContext=function(Z){if(Z.beforeExpr&&Z!==R._else&&!(Z===R.semi&&this.curContext()!==y1.p_stat)&&!(Z===R._return&&R5.test(this.input.slice(this.lastTokEnd,this.start)))&&!((Z===R.colon||Z===R.braceL)&&this.curContext()===y1.b_stat))this.context.push(y1.f_expr);else this.context.push(y1.f_stat);this.exprAllowed=!1};R.backQuote.updateContext=function(){if(this.curContext()===y1.q_tmpl)this.context.pop();else this.context.push(y1.q_tmpl);this.exprAllowed=!1};R.star.updateContext=function(Z){if(Z===R._function){var q=this.context.length-1;if(this.context[q]===y1.f_expr)this.context[q]=y1.f_expr_gen;else this.context[q]=y1.f_gen}this.exprAllowed=!0};R.name.updateContext=function(Z){var q=!1;if(this.options.ecmaVersion>=6&&Z!==R.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())q=!0}this.exprAllowed=q};G1=c1.prototype;G1.checkPropClash=function(Z,q,Q){if(this.options.ecmaVersion>=9&&Z.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(Z.computed||Z.method||Z.shorthand))return;var J=Z.key,Y;switch(J.type){case"Identifier":Y=J.name;break;case"Literal":Y=String(J.value);break;default:return}var X=Z.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&X==="init"){if(q.proto)if(Q){if(Q.doubleProto<0)Q.doubleProto=J.start}else this.raiseRecoverable(J.start,"Redefinition of __proto__ property");q.proto=!0}return}Y="$"+Y;var z=q[Y];if(z){var V;if(X==="init")V=this.strict&&z.init||z.get||z.set;else V=z.init||z[X];if(V)this.raiseRecoverable(J.start,"Redefinition of property")}else z=q[Y]={init:!1,get:!1,set:!1};z[X]=!0};G1.parseExpression=function(Z,q){var Q=this.start,J=this.startLoc,Y=this.parseMaybeAssign(Z,q);if(this.type===R.comma){var X=this.startNodeAt(Q,J);X.expressions=[Y];while(this.eat(R.comma))X.expressions.push(this.parseMaybeAssign(Z,q));return this.finishNode(X,"SequenceExpression")}return Y};G1.parseMaybeAssign=function(Z,q,Q){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(Z);else this.exprAllowed=!1;var J=!1,Y=-1,X=-1,z=-1;if(q)Y=q.parenthesizedAssign,X=q.trailingComma,z=q.doubleProto,q.parenthesizedAssign=q.trailingComma=-1;else q=new W7,J=!0;var V=this.start,W=this.startLoc;if(this.type===R.parenL||this.type===R.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=Z==="await";var K=this.parseMaybeConditional(Z,q);if(Q)K=Q.call(this,K,V,W);if(this.type.isAssign){var $=this.startNodeAt(V,W);if($.operator=this.value,this.type===R.eq)K=this.toAssignable(K,!1,q);if(!J)q.parenthesizedAssign=q.trailingComma=q.doubleProto=-1;if(q.shorthandAssign>=K.start)q.shorthandAssign=-1;if(this.type===R.eq)this.checkLValPattern(K);else this.checkLValSimple(K);if($.left=K,this.next(),$.right=this.parseMaybeAssign(Z),z>-1)q.doubleProto=z;return this.finishNode($,"AssignmentExpression")}else if(J)this.checkExpressionErrors(q,!0);if(Y>-1)q.parenthesizedAssign=Y;if(X>-1)q.trailingComma=X;return K};G1.parseMaybeConditional=function(Z,q){var Q=this.start,J=this.startLoc,Y=this.parseExprOps(Z,q);if(this.checkExpressionErrors(q))return Y;if(this.eat(R.question)){var X=this.startNodeAt(Q,J);return X.test=Y,X.consequent=this.parseMaybeAssign(),this.expect(R.colon),X.alternate=this.parseMaybeAssign(Z),this.finishNode(X,"ConditionalExpression")}return Y};G1.parseExprOps=function(Z,q){var Q=this.start,J=this.startLoc,Y=this.parseMaybeUnary(q,!1,!1,Z);if(this.checkExpressionErrors(q))return Y;return Y.start===Q&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,Q,J,-1,Z)};G1.parseExprOp=function(Z,q,Q,J,Y){var X=this.type.binop;if(X!=null&&(!Y||this.type!==R._in)){if(X>J){var z=this.type===R.logicalOR||this.type===R.logicalAND,V=this.type===R.coalesce;if(V)X=R.logicalAND.binop;var W=this.value;this.next();var K=this.start,$=this.startLoc,H=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),K,$,X,Y),M=this.buildBinary(q,Q,Z,H,W,z||V);if(z&&this.type===R.coalesce||V&&(this.type===R.logicalOR||this.type===R.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,q,Q,J,Y)}}return Z};G1.buildBinary=function(Z,q,Q,J,Y,X){if(J.type==="PrivateIdentifier")this.raise(J.start,"Private identifier can only be left side of binary expression");var z=this.startNodeAt(Z,q);return z.left=Q,z.operator=Y,z.right=J,this.finishNode(z,X?"LogicalExpression":"BinaryExpression")};G1.parseMaybeUnary=function(Z,q,Q,J){var Y=this.start,X=this.startLoc,z;if(this.isContextual("await")&&this.canAwait)z=this.parseAwait(J),q=!0;else if(this.type.prefix){var V=this.startNode(),W=this.type===R.incDec;if(V.operator=this.value,V.prefix=!0,this.next(),V.argument=this.parseMaybeUnary(null,!0,W,J),this.checkExpressionErrors(Z,!0),W)this.checkLValSimple(V.argument);else if(this.strict&&V.operator==="delete"&&V.argument.type==="Identifier")this.raiseRecoverable(V.start,"Deleting local variable in strict mode");else if(V.operator==="delete"&&HX(V.argument))this.raiseRecoverable(V.start,"Private fields can not be deleted");else q=!0;z=this.finishNode(V,W?"UpdateExpression":"UnaryExpression")}else if(!q&&this.type===R.privateId){if(J||this.privateNameStack.length===0)this.unexpected();if(z=this.parsePrivateIdent(),this.type!==R._in)this.unexpected()}else{if(z=this.parseExprSubscripts(Z,J),this.checkExpressionErrors(Z))return z;while(this.type.postfix&&!this.canInsertSemicolon()){var K=this.startNodeAt(Y,X);K.operator=this.value,K.prefix=!1,K.argument=z,this.checkLValSimple(z),this.next(),z=this.finishNode(K,"UpdateExpression")}}if(!Q&&this.eat(R.starstar))if(q)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,X,z,this.parseMaybeUnary(null,!1,!1,J),"**",!1);else return z};G1.parseExprSubscripts=function(Z,q){var Q=this.start,J=this.startLoc,Y=this.parseExprAtom(Z,q);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var X=this.parseSubscripts(Y,Q,J,!1,q);if(Z&&X.type==="MemberExpression"){if(Z.parenthesizedAssign>=X.start)Z.parenthesizedAssign=-1;if(Z.parenthesizedBind>=X.start)Z.parenthesizedBind=-1;if(Z.trailingComma>=X.start)Z.trailingComma=-1}return X};G1.parseSubscripts=function(Z,q,Q,J,Y){var X=this.options.ecmaVersion>=8&&Z.type==="Identifier"&&Z.name==="async"&&this.lastTokEnd===Z.end&&!this.canInsertSemicolon()&&Z.end-Z.start===5&&this.potentialArrowAt===Z.start,z=!1;while(!0){var V=this.parseSubscript(Z,q,Q,J,X,z,Y);if(V.optional)z=!0;if(V===Z||V.type==="ArrowFunctionExpression"){if(z){var W=this.startNodeAt(q,Q);W.expression=V,V=this.finishNode(W,"ChainExpression")}return V}Z=V}};G1.parseSubscript=function(Z,q,Q,J,Y,X,z){var V=this.options.ecmaVersion>=11,W=V&&this.eat(R.questionDot);if(J&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(R.bracketL);if(K||W&&this.type!==R.parenL&&this.type!==R.backQuote||this.eat(R.dot)){var $=this.startNodeAt(q,Q);if($.object=Z,K)$.property=this.parseExpression(),this.expect(R.bracketR);else if(this.type===R.privateId&&Z.type!=="Super")$.property=this.parsePrivateIdent();else $.property=this.parseIdent(this.options.allowReserved!=="never");if($.computed=!!K,V)$.optional=W;Z=this.finishNode($,"MemberExpression")}else if(!J&&this.eat(R.parenL)){var H=new W7,M=this.yieldPos,O=this.awaitPos,L=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var B=this.parseExprList(R.parenR,this.options.ecmaVersion>=8,!1,H);if(Y&&!W&&!this.canInsertSemicolon()&&this.eat(R.arrow)){if(this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=O,this.awaitIdentPos=L,this.parseArrowExpression(this.startNodeAt(q,Q),B,!0,z)}this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,this.awaitIdentPos=L||this.awaitIdentPos;var C=this.startNodeAt(q,Q);if(C.callee=Z,C.arguments=B,V)C.optional=W;Z=this.finishNode(C,"CallExpression")}else if(this.type===R.backQuote){if(W||X)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(q,Q);y.tag=Z,y.quasi=this.parseTemplate({isTagged:!0}),Z=this.finishNode(y,"TaggedTemplateExpression")}return Z};G1.parseExprAtom=function(Z,q){if(this.type===R.slash)this.readRegexp();var Q,J=this.potentialArrowAt===this.start;switch(this.type){case R._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Q=this.startNode(),this.next(),this.type===R.parenL&&!this.allowDirectSuper)this.raise(Q.start,"super() call outside constructor of a subclass");if(this.type!==R.dot&&this.type!==R.bracketL&&this.type!==R.parenL)this.unexpected();return this.finishNode(Q,"Super");case R._this:return Q=this.startNode(),this.next(),this.finishNode(Q,"ThisExpression");case R.name:var Y=this.start,X=this.startLoc,z=this.containsEsc,V=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!z&&V.name==="async"&&!this.canInsertSemicolon()&&this.eat(R._function))return this.overrideContext(y1.f_expr),this.parseFunction(this.startNodeAt(Y,X),0,!1,!0,q);if(J&&!this.canInsertSemicolon()){if(this.eat(R.arrow))return this.parseArrowExpression(this.startNodeAt(Y,X),[V],!1,q);if(this.options.ecmaVersion>=8&&V.name==="async"&&this.type===R.name&&!z&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(V=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(R.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(Y,X),[V],!0,q)}}return V;case R.regexp:var W=this.value;return Q=this.parseLiteral(W.value),Q.regex={pattern:W.pattern,flags:W.flags},Q;case R.num:case R.string:return this.parseLiteral(this.value);case R._null:case R._true:case R._false:return Q=this.startNode(),Q.value=this.type===R._null?null:this.type===R._true,Q.raw=this.type.keyword,this.next(),this.finishNode(Q,"Literal");case R.parenL:var K=this.start,$=this.parseParenAndDistinguishExpression(J,q);if(Z){if(Z.parenthesizedAssign<0&&!this.isSimpleAssignTarget($))Z.parenthesizedAssign=K;if(Z.parenthesizedBind<0)Z.parenthesizedBind=K}return $;case R.bracketL:return Q=this.startNode(),this.next(),Q.elements=this.parseExprList(R.bracketR,!0,!0,Z),this.finishNode(Q,"ArrayExpression");case R.braceL:return this.overrideContext(y1.b_expr),this.parseObj(!1,Z);case R._function:return Q=this.startNode(),this.next(),this.parseFunction(Q,0);case R._class:return this.parseClass(this.startNode(),!1);case R._new:return this.parseNew();case R.backQuote:return this.parseTemplate();case R._import:if(this.options.ecmaVersion>=11)return this.parseExprImport();else return this.unexpected();default:this.unexpected()}};G1.parseExprImport=function(){var Z=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");var q=this.parseIdent(!0);switch(this.type){case R.parenL:return this.parseDynamicImport(Z);case R.dot:return Z.meta=q,this.parseImportMeta(Z);default:this.unexpected()}};G1.parseDynamicImport=function(Z){if(this.next(),Z.source=this.parseMaybeAssign(),!this.eat(R.parenR)){var q=this.start;if(this.eat(R.comma)&&this.eat(R.parenR))this.raiseRecoverable(q,"Trailing comma is not allowed in import()");else this.unexpected(q)}return this.finishNode(Z,"ImportExpression")};G1.parseImportMeta=function(Z){this.next();var q=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="meta")this.raiseRecoverable(Z.property.start,"The only valid meta property for import is 'import.meta'");if(q)this.raiseRecoverable(Z.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(Z.start,"Cannot use 'import.meta' outside a module");return this.finishNode(Z,"MetaProperty")};G1.parseLiteral=function(Z){var q=this.startNode();if(q.value=Z,q.raw=this.input.slice(this.start,this.end),q.raw.charCodeAt(q.raw.length-1)===110)q.bigint=q.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(q,"Literal")};G1.parseParenExpression=function(){this.expect(R.parenL);var Z=this.parseExpression();return this.expect(R.parenR),Z};G1.parseParenAndDistinguishExpression=function(Z,q){var Q=this.start,J=this.startLoc,Y,X=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var z=this.start,V=this.startLoc,W=[],K=!0,$=!1,H=new W7,M=this.yieldPos,O=this.awaitPos,L;this.yieldPos=0,this.awaitPos=0;while(this.type!==R.parenR)if(K?K=!1:this.expect(R.comma),X&&this.afterTrailingComma(R.parenR,!0)){$=!0;break}else if(this.type===R.ellipsis){if(L=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===R.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,H,this.parseParenItem));var B=this.lastTokEnd,C=this.lastTokEndLoc;if(this.expect(R.parenR),Z&&!this.canInsertSemicolon()&&this.eat(R.arrow))return this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=O,this.parseParenArrowList(Q,J,W,q);if(!W.length||$)this.unexpected(this.lastTokStart);if(L)this.unexpected(L);if(this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,W.length>1)Y=this.startNodeAt(z,V),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",B,C);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(Q,J);return y.expression=Y,this.finishNode(y,"ParenthesizedExpression")}else return Y};G1.parseParenItem=function(Z){return Z};G1.parseParenArrowList=function(Z,q,Q,J){return this.parseArrowExpression(this.startNodeAt(Z,q),Q,!1,J)};pM=[];G1.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var Z=this.startNode(),q=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(R.dot)){Z.meta=q;var Q=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="target")this.raiseRecoverable(Z.property.start,"The only valid meta property for new is 'new.target'");if(Q)this.raiseRecoverable(Z.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(Z.start,"'new.target' can only be used in functions and class static block");return this.finishNode(Z,"MetaProperty")}var J=this.start,Y=this.startLoc,X=this.type===R._import;if(Z.callee=this.parseSubscripts(this.parseExprAtom(),J,Y,!0,!1),X&&Z.callee.type==="ImportExpression")this.raise(J,"Cannot use new with import()");if(this.eat(R.parenL))Z.arguments=this.parseExprList(R.parenR,this.options.ecmaVersion>=8,!1);else Z.arguments=pM;return this.finishNode(Z,"NewExpression")};G1.parseTemplateElement=function(Z){var q=Z.isTagged,Q=this.startNode();if(this.type===R.invalidTemplate){if(!q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");Q.value={raw:this.value,cooked:null}}else Q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
43
|
+
`),cooked:this.value};return this.next(),Q.tail=this.type===R.backQuote,this.finishNode(Q,"TemplateElement")};G1.parseTemplate=function(Z){if(Z===void 0)Z={};var q=Z.isTagged;if(q===void 0)q=!1;var Q=this.startNode();this.next(),Q.expressions=[];var J=this.parseTemplateElement({isTagged:q});Q.quasis=[J];while(!J.tail){if(this.type===R.eof)this.raise(this.pos,"Unterminated template literal");this.expect(R.dollarBraceL),Q.expressions.push(this.parseExpression()),this.expect(R.braceR),Q.quasis.push(J=this.parseTemplateElement({isTagged:q}))}return this.next(),this.finishNode(Q,"TemplateLiteral")};G1.isAsyncProp=function(Z){return!Z.computed&&Z.key.type==="Identifier"&&Z.key.name==="async"&&(this.type===R.name||this.type===R.num||this.type===R.string||this.type===R.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===R.star)&&!R5.test(this.input.slice(this.lastTokEnd,this.start))};G1.parseObj=function(Z,q){var Q=this.startNode(),J=!0,Y={};Q.properties=[],this.next();while(!this.eat(R.braceR)){if(!J){if(this.expect(R.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(R.braceR))break}else J=!1;var X=this.parseProperty(Z,q);if(!Z)this.checkPropClash(X,Y,q);Q.properties.push(X)}return this.finishNode(Q,Z?"ObjectPattern":"ObjectExpression")};G1.parseProperty=function(Z,q){var Q=this.startNode(),J,Y,X,z;if(this.options.ecmaVersion>=9&&this.eat(R.ellipsis)){if(Z){if(Q.argument=this.parseIdent(!1),this.type===R.comma)this.raise(this.start,"Comma is not permitted after the rest element");return this.finishNode(Q,"RestElement")}if(this.type===R.parenL&&q){if(q.parenthesizedAssign<0)q.parenthesizedAssign=this.start;if(q.parenthesizedBind<0)q.parenthesizedBind=this.start}if(Q.argument=this.parseMaybeAssign(!1,q),this.type===R.comma&&q&&q.trailingComma<0)q.trailingComma=this.start;return this.finishNode(Q,"SpreadElement")}if(this.options.ecmaVersion>=6){if(Q.method=!1,Q.shorthand=!1,Z||q)X=this.start,z=this.startLoc;if(!Z)J=this.eat(R.star)}var V=this.containsEsc;if(this.parsePropertyName(Q),!Z&&!V&&this.options.ecmaVersion>=8&&!J&&this.isAsyncProp(Q))Y=!0,J=this.options.ecmaVersion>=9&&this.eat(R.star),this.parsePropertyName(Q,q);else Y=!1;return this.parsePropertyValue(Q,Z,J,Y,X,z,q,V),this.finishNode(Q,"Property")};G1.parsePropertyValue=function(Z,q,Q,J,Y,X,z,V){if((Q||J)&&this.type===R.colon)this.unexpected();if(this.eat(R.colon))Z.value=q?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,z),Z.kind="init";else if(this.options.ecmaVersion>=6&&this.type===R.parenL){if(q)this.unexpected();Z.kind="init",Z.method=!0,Z.value=this.parseMethod(Q,J)}else if(!q&&!V&&this.options.ecmaVersion>=5&&!Z.computed&&Z.key.type==="Identifier"&&(Z.key.name==="get"||Z.key.name==="set")&&(this.type!==R.comma&&this.type!==R.braceR&&this.type!==R.eq)){if(Q||J)this.unexpected();Z.kind=Z.key.name,this.parsePropertyName(Z),Z.value=this.parseMethod(!1);var W=Z.kind==="get"?0:1;if(Z.value.params.length!==W){var K=Z.value.start;if(Z.kind==="get")this.raiseRecoverable(K,"getter should have no params");else this.raiseRecoverable(K,"setter should have exactly one param")}else if(Z.kind==="set"&&Z.value.params[0].type==="RestElement")this.raiseRecoverable(Z.value.params[0].start,"Setter cannot use rest params")}else if(this.options.ecmaVersion>=6&&!Z.computed&&Z.key.type==="Identifier"){if(Q||J)this.unexpected();if(this.checkUnreserved(Z.key),Z.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(Z.kind="init",q)Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key));else if(this.type===R.eq&&z){if(z.shorthandAssign<0)z.shorthandAssign=this.start;Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key))}else Z.value=this.copyNode(Z.key);Z.shorthand=!0}else this.unexpected()};G1.parsePropertyName=function(Z){if(this.options.ecmaVersion>=6)if(this.eat(R.bracketL))return Z.computed=!0,Z.key=this.parseMaybeAssign(),this.expect(R.bracketR),Z.key;else Z.computed=!1;return Z.key=this.type===R.num||this.type===R.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};G1.initFunction=function(Z){if(Z.id=null,this.options.ecmaVersion>=6)Z.generator=Z.expression=!1;if(this.options.ecmaVersion>=8)Z.async=!1};G1.parseMethod=function(Z,q,Q){var J=this.startNode(),Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.initFunction(J),this.options.ecmaVersion>=6)J.generator=Z;if(this.options.ecmaVersion>=8)J.async=!!q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(V3(q,J.generator)|X3|(Q?GX:0)),this.expect(R.parenL),J.params=this.parseBindingList(R.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(J,!1,!0,!1),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(J,"FunctionExpression")};G1.parseArrowExpression=function(Z,q,Q,J){var Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.enterScope(V3(Q,!1)|KX),this.initFunction(Z),this.options.ecmaVersion>=8)Z.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,Z.params=this.toAssignableList(q,!0),this.parseFunctionBody(Z,!0,!1,J),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(Z,"ArrowFunctionExpression")};G1.parseFunctionBody=function(Z,q,Q,J){var Y=q&&this.type!==R.braceL,X=this.strict,z=!1;if(Y)Z.body=this.parseMaybeAssign(J),Z.expression=!0,this.checkParams(Z,!1);else{var V=this.options.ecmaVersion>=7&&!this.isSimpleParamList(Z.params);if(!X||V){if(z=this.strictDirective(this.end),z&&V)this.raiseRecoverable(Z.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],z)this.strict=!0;if(this.checkParams(Z,!X&&!z&&!q&&!Q&&this.isSimpleParamList(Z.params)),this.strict&&Z.id)this.checkLValSimple(Z.id,BX);Z.body=this.parseBlock(!1,void 0,z&&!X),Z.expression=!1,this.adaptDirectivePrologue(Z.body.body),this.labels=W}this.exitScope()};G1.isSimpleParamList=function(Z){for(var q=0,Q=Z;q<Q.length;q+=1){var J=Q[q];if(J.type!=="Identifier")return!1}return!0};G1.checkParams=function(Z,q){var Q=Object.create(null);for(var J=0,Y=Z.params;J<Y.length;J+=1){var X=Y[J];this.checkLValInnerPattern(X,W3,q?null:Q)}};G1.parseExprList=function(Z,q,Q,J){var Y=[],X=!0;while(!this.eat(Z)){if(!X){if(this.expect(R.comma),q&&this.afterTrailingComma(Z))break}else X=!1;var z=void 0;if(Q&&this.type===R.comma)z=null;else if(this.type===R.ellipsis){if(z=this.parseSpread(J),J&&this.type===R.comma&&J.trailingComma<0)J.trailingComma=this.start}else z=this.parseMaybeAssign(!1,J);Y.push(z)}return Y};G1.checkUnreserved=function(Z){var{start:q,end:Q,name:J}=Z;if(this.inGenerator&&J==="yield")this.raiseRecoverable(q,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&J==="await")this.raiseRecoverable(q,"Cannot use 'await' as identifier inside an async function");if(this.currentThisScope().inClassFieldInit&&J==="arguments")this.raiseRecoverable(q,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(J==="arguments"||J==="await"))this.raise(q,"Cannot use "+J+" in class static initialization block");if(this.keywords.test(J))this.raise(q,"Unexpected keyword '"+J+"'");if(this.options.ecmaVersion<6&&this.input.slice(q,Q).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(J)){if(!this.inAsync&&J==="await")this.raiseRecoverable(q,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(q,"The keyword '"+J+"' is reserved")}};G1.parseIdent=function(Z,q){var Q=this.startNode();if(this.type===R.name)Q.name=this.value;else if(this.type.keyword){if(Q.name=this.type.keyword,(Q.name==="class"||Q.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop()}else this.unexpected();if(this.next(!!Z),this.finishNode(Q,"Identifier"),!Z){if(this.checkUnreserved(Q),Q.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Q.start}return Q};G1.parsePrivateIdent=function(){var Z=this.startNode();if(this.type===R.privateId)Z.name=this.value;else this.unexpected();if(this.next(),this.finishNode(Z,"PrivateIdentifier"),this.privateNameStack.length===0)this.raise(Z.start,"Private field '#"+Z.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(Z);return Z};G1.parseYield=function(Z){if(!this.yieldPos)this.yieldPos=this.start;var q=this.startNode();if(this.next(),this.type===R.semi||this.canInsertSemicolon()||this.type!==R.star&&!this.type.startsExpr)q.delegate=!1,q.argument=null;else q.delegate=this.eat(R.star),q.argument=this.parseMaybeAssign(Z);return this.finishNode(q,"YieldExpression")};G1.parseAwait=function(Z){if(!this.awaitPos)this.awaitPos=this.start;var q=this.startNode();return this.next(),q.argument=this.parseMaybeUnary(null,!0,!1,Z),this.finishNode(q,"AwaitExpression")};h4=c1.prototype;h4.raise=function(Z,q){var Q=VX(this.input,Z);q+=" ("+Q.line+":"+Q.column+")";var J=SyntaxError(q);throw J.pos=Z,J.loc=Q,J.raisedAt=this.pos,J};h4.raiseRecoverable=h4.raise;h4.curPosition=function(){if(this.options.locations)return new B0(this.curLine,this.pos-this.lineStart)};U8=c1.prototype;U8.enterScope=function(Z){this.scopeStack.push(new iM(Z))};U8.exitScope=function(){this.scopeStack.pop()};U8.treatFunctionsAsVarInScope=function(Z){return Z.flags&B6||!this.inModule&&Z.flags&M0};U8.declareName=function(Z,q,Q){var J=!1;if(q===s5){var Y=this.currentScope();if(J=Y.lexical.indexOf(Z)>-1||Y.functions.indexOf(Z)>-1||Y.var.indexOf(Z)>-1,Y.lexical.push(Z),this.inModule&&Y.flags&M0)delete this.undefinedExports[Z]}else if(q===jX){var X=this.currentScope();X.lexical.push(Z)}else if(q===UX){var z=this.currentScope();if(this.treatFunctionsAsVar)J=z.lexical.indexOf(Z)>-1;else J=z.lexical.indexOf(Z)>-1||z.var.indexOf(Z)>-1;z.functions.push(Z)}else for(var V=this.scopeStack.length-1;V>=0;--V){var W=this.scopeStack[V];if(W.lexical.indexOf(Z)>-1&&!(W.flags&$X&&W.lexical[0]===Z)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(Z)>-1){J=!0;break}if(W.var.push(Z),this.inModule&&W.flags&M0)delete this.undefinedExports[Z];if(W.flags&z3)break}if(J)this.raiseRecoverable(Q,"Identifier '"+Z+"' has already been declared")};U8.checkLocalExport=function(Z){if(this.scopeStack[0].lexical.indexOf(Z.name)===-1&&this.scopeStack[0].var.indexOf(Z.name)===-1)this.undefinedExports[Z.name]=Z};U8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};U8.currentVarScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var q=this.scopeStack[Z];if(q.flags&z3)return q}};U8.currentThisScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var q=this.scopeStack[Z];if(q.flags&z3&&!(q.flags&KX))return q}};T0=c1.prototype;T0.startNode=function(){return new K7(this,this.start,this.startLoc)};T0.startNodeAt=function(Z,q){return new K7(this,Z,q)};T0.finishNode=function(Z,q){return FX.call(this,Z,q,this.lastTokEnd,this.lastTokEndLoc)};T0.finishNodeAt=function(Z,q,Q,J){return FX.call(this,Z,q,Q,J)};T0.copyNode=function(Z){var q=new K7(this,Z.start,this.startLoc);for(var Q in Z)q[Q]=Z[Q];return q};wX=LX+" Extended_Pictographic",OX=wX,NX=OX+" EBase EComp EMod EPres ExtPict",nM=NX,sM={9:LX,10:wX,11:OX,12:NX,13:nM},CX=RX+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",IX=CX+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",_X=IX+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",aM=_X+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",rM={9:RX,10:CX,11:IX,12:_X,13:aM},DX={};for(r6=0,O4=[9,10,11,12,13];r6<O4.length;r6+=1)$Z=O4[r6],oM($Z);X1=c1.prototype;o5.prototype.reset=function(q,Q,J){var Y=J.indexOf("u")!==-1;this.start=q|0,this.source=Q+"",this.flags=J,this.switchU=Y&&this.parser.options.ecmaVersion>=6,this.switchN=Y&&this.parser.options.ecmaVersion>=9};o5.prototype.raise=function(q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+q)};o5.prototype.at=function(q,Q){if(Q===void 0)Q=!1;var J=this.source,Y=J.length;if(q>=Y)return-1;var X=J.charCodeAt(q);if(!(Q||this.switchU)||X<=55295||X>=57344||q+1>=Y)return X;var z=J.charCodeAt(q+1);return z>=56320&&z<=57343?(X<<10)+z-56613888:X};o5.prototype.nextIndex=function(q,Q){if(Q===void 0)Q=!1;var J=this.source,Y=J.length;if(q>=Y)return Y;var X=J.charCodeAt(q),z;if(!(Q||this.switchU)||X<=55295||X>=57344||q+1>=Y||(z=J.charCodeAt(q+1))<56320||z>57343)return q+1;return q+2};o5.prototype.current=function(q){if(q===void 0)q=!1;return this.at(this.pos,q)};o5.prototype.lookahead=function(q){if(q===void 0)q=!1;return this.at(this.nextIndex(this.pos,q),q)};o5.prototype.advance=function(q){if(q===void 0)q=!1;this.pos=this.nextIndex(this.pos,q)};o5.prototype.eat=function(q,Q){if(Q===void 0)Q=!1;if(this.current(Q)===q)return this.advance(Q),!0;return!1};X1.validateRegExpFlags=function(Z){var{validFlags:q,flags:Q}=Z;for(var J=0;J<Q.length;J++){var Y=Q.charAt(J);if(q.indexOf(Y)===-1)this.raise(Z.start,"Invalid regular expression flag");if(Q.indexOf(Y,J+1)>-1)this.raise(Z.start,"Duplicate regular expression flag")}};X1.validateRegExpPattern=function(Z){if(this.regexp_pattern(Z),!Z.switchN&&this.options.ecmaVersion>=9&&Z.groupNames.length>0)Z.switchN=!0,this.regexp_pattern(Z)};X1.regexp_pattern=function(Z){if(Z.pos=0,Z.lastIntValue=0,Z.lastStringValue="",Z.lastAssertionIsQuantifiable=!1,Z.numCapturingParens=0,Z.maxBackReference=0,Z.groupNames.length=0,Z.backReferenceNames.length=0,this.regexp_disjunction(Z),Z.pos!==Z.source.length){if(Z.eat(41))Z.raise("Unmatched ')'");if(Z.eat(93)||Z.eat(125))Z.raise("Lone quantifier brackets")}if(Z.maxBackReference>Z.numCapturingParens)Z.raise("Invalid escape");for(var q=0,Q=Z.backReferenceNames;q<Q.length;q+=1){var J=Q[q];if(Z.groupNames.indexOf(J)===-1)Z.raise("Invalid named capture referenced")}};X1.regexp_disjunction=function(Z){this.regexp_alternative(Z);while(Z.eat(124))this.regexp_alternative(Z);if(this.regexp_eatQuantifier(Z,!0))Z.raise("Nothing to repeat");if(Z.eat(123))Z.raise("Lone quantifier brackets")};X1.regexp_alternative=function(Z){while(Z.pos<Z.source.length&&this.regexp_eatTerm(Z));};X1.regexp_eatTerm=function(Z){if(this.regexp_eatAssertion(Z)){if(Z.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(Z)){if(Z.switchU)Z.raise("Invalid quantifier")}return!0}if(Z.switchU?this.regexp_eatAtom(Z):this.regexp_eatExtendedAtom(Z))return this.regexp_eatQuantifier(Z),!0;return!1};X1.regexp_eatAssertion=function(Z){var q=Z.pos;if(Z.lastAssertionIsQuantifiable=!1,Z.eat(94)||Z.eat(36))return!0;if(Z.eat(92)){if(Z.eat(66)||Z.eat(98))return!0;Z.pos=q}if(Z.eat(40)&&Z.eat(63)){var Q=!1;if(this.options.ecmaVersion>=9)Q=Z.eat(60);if(Z.eat(61)||Z.eat(33)){if(this.regexp_disjunction(Z),!Z.eat(41))Z.raise("Unterminated group");return Z.lastAssertionIsQuantifiable=!Q,!0}}return Z.pos=q,!1};X1.regexp_eatQuantifier=function(Z,q){if(q===void 0)q=!1;if(this.regexp_eatQuantifierPrefix(Z,q))return Z.eat(63),!0;return!1};X1.regexp_eatQuantifierPrefix=function(Z,q){return Z.eat(42)||Z.eat(43)||Z.eat(63)||this.regexp_eatBracedQuantifier(Z,q)};X1.regexp_eatBracedQuantifier=function(Z,q){var Q=Z.pos;if(Z.eat(123)){var J=0,Y=-1;if(this.regexp_eatDecimalDigits(Z)){if(J=Z.lastIntValue,Z.eat(44)&&this.regexp_eatDecimalDigits(Z))Y=Z.lastIntValue;if(Z.eat(125)){if(Y!==-1&&Y<J&&!q)Z.raise("numbers out of order in {} quantifier");return!0}}if(Z.switchU&&!q)Z.raise("Incomplete quantifier");Z.pos=Q}return!1};X1.regexp_eatAtom=function(Z){return this.regexp_eatPatternCharacters(Z)||Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)};X1.regexp_eatReverseSolidusAtomEscape=function(Z){var q=Z.pos;if(Z.eat(92)){if(this.regexp_eatAtomEscape(Z))return!0;Z.pos=q}return!1};X1.regexp_eatUncapturingGroup=function(Z){var q=Z.pos;if(Z.eat(40)){if(Z.eat(63)&&Z.eat(58)){if(this.regexp_disjunction(Z),Z.eat(41))return!0;Z.raise("Unterminated group")}Z.pos=q}return!1};X1.regexp_eatCapturingGroup=function(Z){if(Z.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(Z);else if(Z.current()===63)Z.raise("Invalid group");if(this.regexp_disjunction(Z),Z.eat(41))return Z.numCapturingParens+=1,!0;Z.raise("Unterminated group")}return!1};X1.regexp_eatExtendedAtom=function(Z){return Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)||this.regexp_eatInvalidBracedQuantifier(Z)||this.regexp_eatExtendedPatternCharacter(Z)};X1.regexp_eatInvalidBracedQuantifier=function(Z){if(this.regexp_eatBracedQuantifier(Z,!0))Z.raise("Nothing to repeat");return!1};X1.regexp_eatSyntaxCharacter=function(Z){var q=Z.current();if(TX(q))return Z.lastIntValue=q,Z.advance(),!0;return!1};X1.regexp_eatPatternCharacters=function(Z){var q=Z.pos,Q=0;while((Q=Z.current())!==-1&&!TX(Q))Z.advance();return Z.pos!==q};X1.regexp_eatExtendedPatternCharacter=function(Z){var q=Z.current();if(q!==-1&&q!==36&&!(q>=40&&q<=43)&&q!==46&&q!==63&&q!==91&&q!==94&&q!==124)return Z.advance(),!0;return!1};X1.regexp_groupSpecifier=function(Z){if(Z.eat(63)){if(this.regexp_eatGroupName(Z)){if(Z.groupNames.indexOf(Z.lastStringValue)!==-1)Z.raise("Duplicate capture group name");Z.groupNames.push(Z.lastStringValue);return}Z.raise("Invalid group")}};X1.regexp_eatGroupName=function(Z){if(Z.lastStringValue="",Z.eat(60)){if(this.regexp_eatRegExpIdentifierName(Z)&&Z.eat(62))return!0;Z.raise("Invalid capture group name")}return!1};X1.regexp_eatRegExpIdentifierName=function(Z){if(Z.lastStringValue="",this.regexp_eatRegExpIdentifierStart(Z)){Z.lastStringValue+=K8(Z.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(Z))Z.lastStringValue+=K8(Z.lastIntValue);return!0}return!1};X1.regexp_eatRegExpIdentifierStart=function(Z){var q=Z.pos,Q=this.options.ecmaVersion>=11,J=Z.current(Q);if(Z.advance(Q),J===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,Q))J=Z.lastIntValue;if(tM(J))return Z.lastIntValue=J,!0;return Z.pos=q,!1};X1.regexp_eatRegExpIdentifierPart=function(Z){var q=Z.pos,Q=this.options.ecmaVersion>=11,J=Z.current(Q);if(Z.advance(Q),J===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,Q))J=Z.lastIntValue;if(eM(J))return Z.lastIntValue=J,!0;return Z.pos=q,!1};X1.regexp_eatAtomEscape=function(Z){if(this.regexp_eatBackReference(Z)||this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)||Z.switchN&&this.regexp_eatKGroupName(Z))return!0;if(Z.switchU){if(Z.current()===99)Z.raise("Invalid unicode escape");Z.raise("Invalid escape")}return!1};X1.regexp_eatBackReference=function(Z){var q=Z.pos;if(this.regexp_eatDecimalEscape(Z)){var Q=Z.lastIntValue;if(Z.switchU){if(Q>Z.maxBackReference)Z.maxBackReference=Q;return!0}if(Q<=Z.numCapturingParens)return!0;Z.pos=q}return!1};X1.regexp_eatKGroupName=function(Z){if(Z.eat(107)){if(this.regexp_eatGroupName(Z))return Z.backReferenceNames.push(Z.lastStringValue),!0;Z.raise("Invalid named reference")}return!1};X1.regexp_eatCharacterEscape=function(Z){return this.regexp_eatControlEscape(Z)||this.regexp_eatCControlLetter(Z)||this.regexp_eatZero(Z)||this.regexp_eatHexEscapeSequence(Z)||this.regexp_eatRegExpUnicodeEscapeSequence(Z,!1)||!Z.switchU&&this.regexp_eatLegacyOctalEscapeSequence(Z)||this.regexp_eatIdentityEscape(Z)};X1.regexp_eatCControlLetter=function(Z){var q=Z.pos;if(Z.eat(99)){if(this.regexp_eatControlLetter(Z))return!0;Z.pos=q}return!1};X1.regexp_eatZero=function(Z){if(Z.current()===48&&!$7(Z.lookahead()))return Z.lastIntValue=0,Z.advance(),!0;return!1};X1.regexp_eatControlEscape=function(Z){var q=Z.current();if(q===116)return Z.lastIntValue=9,Z.advance(),!0;if(q===110)return Z.lastIntValue=10,Z.advance(),!0;if(q===118)return Z.lastIntValue=11,Z.advance(),!0;if(q===102)return Z.lastIntValue=12,Z.advance(),!0;if(q===114)return Z.lastIntValue=13,Z.advance(),!0;return!1};X1.regexp_eatControlLetter=function(Z){var q=Z.current();if(AX(q))return Z.lastIntValue=q%32,Z.advance(),!0;return!1};X1.regexp_eatRegExpUnicodeEscapeSequence=function(Z,q){if(q===void 0)q=!1;var Q=Z.pos,J=q||Z.switchU;if(Z.eat(117)){if(this.regexp_eatFixedHexDigits(Z,4)){var Y=Z.lastIntValue;if(J&&Y>=55296&&Y<=56319){var X=Z.pos;if(Z.eat(92)&&Z.eat(117)&&this.regexp_eatFixedHexDigits(Z,4)){var z=Z.lastIntValue;if(z>=56320&&z<=57343)return Z.lastIntValue=(Y-55296)*1024+(z-56320)+65536,!0}Z.pos=X,Z.lastIntValue=Y}return!0}if(J&&Z.eat(123)&&this.regexp_eatHexDigits(Z)&&Z.eat(125)&&ZH(Z.lastIntValue))return!0;if(J)Z.raise("Invalid unicode escape");Z.pos=Q}return!1};X1.regexp_eatIdentityEscape=function(Z){if(Z.switchU){if(this.regexp_eatSyntaxCharacter(Z))return!0;if(Z.eat(47))return Z.lastIntValue=47,!0;return!1}var q=Z.current();if(q!==99&&(!Z.switchN||q!==107))return Z.lastIntValue=q,Z.advance(),!0;return!1};X1.regexp_eatDecimalEscape=function(Z){Z.lastIntValue=0;var q=Z.current();if(q>=49&&q<=57){do Z.lastIntValue=10*Z.lastIntValue+(q-48),Z.advance();while((q=Z.current())>=48&&q<=57);return!0}return!1};X1.regexp_eatCharacterClassEscape=function(Z){var q=Z.current();if(qH(q))return Z.lastIntValue=-1,Z.advance(),!0;if(Z.switchU&&this.options.ecmaVersion>=9&&(q===80||q===112)){if(Z.lastIntValue=-1,Z.advance(),Z.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(Z)&&Z.eat(125))return!0;Z.raise("Invalid property name")}return!1};X1.regexp_eatUnicodePropertyValueExpression=function(Z){var q=Z.pos;if(this.regexp_eatUnicodePropertyName(Z)&&Z.eat(61)){var Q=Z.lastStringValue;if(this.regexp_eatUnicodePropertyValue(Z)){var J=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(Z,Q,J),!0}}if(Z.pos=q,this.regexp_eatLoneUnicodePropertyNameOrValue(Z)){var Y=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(Z,Y),!0}return!1};X1.regexp_validateUnicodePropertyNameAndValue=function(Z,q,Q){if(!_0(Z.unicodeProperties.nonBinary,q))Z.raise("Invalid property name");if(!Z.unicodeProperties.nonBinary[q].test(Q))Z.raise("Invalid property value")};X1.regexp_validateUnicodePropertyNameOrValue=function(Z,q){if(!Z.unicodeProperties.binary.test(q))Z.raise("Invalid property name")};X1.regexp_eatUnicodePropertyName=function(Z){var q=0;Z.lastStringValue="";while(PX(q=Z.current()))Z.lastStringValue+=K8(q),Z.advance();return Z.lastStringValue!==""};X1.regexp_eatUnicodePropertyValue=function(Z){var q=0;Z.lastStringValue="";while(QH(q=Z.current()))Z.lastStringValue+=K8(q),Z.advance();return Z.lastStringValue!==""};X1.regexp_eatLoneUnicodePropertyNameOrValue=function(Z){return this.regexp_eatUnicodePropertyValue(Z)};X1.regexp_eatCharacterClass=function(Z){if(Z.eat(91)){if(Z.eat(94),this.regexp_classRanges(Z),Z.eat(93))return!0;Z.raise("Unterminated character class")}return!1};X1.regexp_classRanges=function(Z){while(this.regexp_eatClassAtom(Z)){var q=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassAtom(Z)){var Q=Z.lastIntValue;if(Z.switchU&&(q===-1||Q===-1))Z.raise("Invalid character class");if(q!==-1&&Q!==-1&&q>Q)Z.raise("Range out of order in character class")}}};X1.regexp_eatClassAtom=function(Z){var q=Z.pos;if(Z.eat(92)){if(this.regexp_eatClassEscape(Z))return!0;if(Z.switchU){var Q=Z.current();if(Q===99||EX(Q))Z.raise("Invalid class escape");Z.raise("Invalid escape")}Z.pos=q}var J=Z.current();if(J!==93)return Z.lastIntValue=J,Z.advance(),!0;return!1};X1.regexp_eatClassEscape=function(Z){var q=Z.pos;if(Z.eat(98))return Z.lastIntValue=8,!0;if(Z.switchU&&Z.eat(45))return Z.lastIntValue=45,!0;if(!Z.switchU&&Z.eat(99)){if(this.regexp_eatClassControlLetter(Z))return!0;Z.pos=q}return this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)};X1.regexp_eatClassControlLetter=function(Z){var q=Z.current();if($7(q)||q===95)return Z.lastIntValue=q%32,Z.advance(),!0;return!1};X1.regexp_eatHexEscapeSequence=function(Z){var q=Z.pos;if(Z.eat(120)){if(this.regexp_eatFixedHexDigits(Z,2))return!0;if(Z.switchU)Z.raise("Invalid escape");Z.pos=q}return!1};X1.regexp_eatDecimalDigits=function(Z){var q=Z.pos,Q=0;Z.lastIntValue=0;while($7(Q=Z.current()))Z.lastIntValue=10*Z.lastIntValue+(Q-48),Z.advance();return Z.pos!==q};X1.regexp_eatHexDigits=function(Z){var q=Z.pos,Q=0;Z.lastIntValue=0;while(SX(Q=Z.current()))Z.lastIntValue=16*Z.lastIntValue+yX(Q),Z.advance();return Z.pos!==q};X1.regexp_eatLegacyOctalEscapeSequence=function(Z){if(this.regexp_eatOctalDigit(Z)){var q=Z.lastIntValue;if(this.regexp_eatOctalDigit(Z)){var Q=Z.lastIntValue;if(q<=3&&this.regexp_eatOctalDigit(Z))Z.lastIntValue=q*64+Q*8+Z.lastIntValue;else Z.lastIntValue=q*8+Q}else Z.lastIntValue=q;return!0}return!1};X1.regexp_eatOctalDigit=function(Z){var q=Z.current();if(EX(q))return Z.lastIntValue=q-48,Z.advance(),!0;return Z.lastIntValue=0,!1};X1.regexp_eatFixedHexDigits=function(Z,q){var Q=Z.pos;Z.lastIntValue=0;for(var J=0;J<q;++J){var Y=Z.current();if(!SX(Y))return Z.pos=Q,!1;Z.lastIntValue=16*Z.lastIntValue+yX(Y),Z.advance()}return!0};H1=c1.prototype;H1.next=function(Z){if(!Z&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new $3(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};H1.getToken=function(){return this.next(),new $3(this)};if(typeof Symbol<"u")H1[Symbol.iterator]=function(){var Z=this;return{next:function(){var q=Z.getToken();return{done:q.type===R.eof,value:q}}}};H1.nextToken=function(){var Z=this.curContext();if(!Z||!Z.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(R.eof);if(Z.override)return Z.override(this);else this.readToken(this.fullCharCodeAtPos())};H1.readToken=function(Z){if(r5(Z,this.options.ecmaVersion>=6)||Z===92)return this.readWord();return this.getTokenFromCode(Z)};H1.fullCharCodeAtPos=function(){var Z=this.input.charCodeAt(this.pos);if(Z<=55295||Z>=56320)return Z;var q=this.input.charCodeAt(this.pos+1);return q<=56319||q>=57344?Z:(Z<<10)+q-56613888};H1.skipBlockComment=function(){var Z=this.options.onComment&&this.curPosition(),q=this.pos,Q=this.input.indexOf("*/",this.pos+=2);if(Q===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=Q+2,this.options.locations)for(var J=void 0,Y=q;(J=YX(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=J;if(this.options.onComment)this.options.onComment(!0,this.input.slice(q+2,Q),q,this.pos,Z,this.curPosition())};H1.skipLineComment=function(Z){var q=this.pos,Q=this.options.onComment&&this.curPosition(),J=this.input.charCodeAt(this.pos+=Z);while(this.pos<this.input.length&&!j6(J))J=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(q+Z,this.pos),q,this.pos,Q,this.curPosition())};H1.skipSpace=function(){Z:while(this.pos<this.input.length){var Z=this.input.charCodeAt(this.pos);switch(Z){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break Z}break;default:if(Z>8&&Z<14||Z>=5760&&XX.test(String.fromCharCode(Z)))++this.pos;else break Z}}};H1.finishToken=function(Z,q){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var Q=this.type;this.type=Z,this.value=q,this.updateContext(Q)};H1.readToken_dot=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z>=48&&Z<=57)return this.readNumber(!0);var q=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&Z===46&&q===46)return this.pos+=3,this.finishToken(R.ellipsis);else return++this.pos,this.finishToken(R.dot)};H1.readToken_slash=function(){var Z=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(Z===61)return this.finishOp(R.assign,2);return this.finishOp(R.slash,1)};H1.readToken_mult_modulo_exp=function(Z){var q=this.input.charCodeAt(this.pos+1),Q=1,J=Z===42?R.star:R.modulo;if(this.options.ecmaVersion>=7&&Z===42&&q===42)++Q,J=R.starstar,q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(R.assign,Q+1);return this.finishOp(J,Q)};H1.readToken_pipe_amp=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===Z){if(this.options.ecmaVersion>=12){var Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(R.assign,3)}return this.finishOp(Z===124?R.logicalOR:R.logicalAND,2)}if(q===61)return this.finishOp(R.assign,2);return this.finishOp(Z===124?R.bitwiseOR:R.bitwiseAND,1)};H1.readToken_caret=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(R.assign,2);return this.finishOp(R.bitwiseXOR,1)};H1.readToken_plus_min=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===Z){if(q===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R5.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(R.incDec,2)}if(q===61)return this.finishOp(R.assign,2);return this.finishOp(R.plusMin,1)};H1.readToken_lt_gt=function(Z){var q=this.input.charCodeAt(this.pos+1),Q=1;if(q===Z){if(Q=Z===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+Q)===61)return this.finishOp(R.assign,Q+1);return this.finishOp(R.bitShift,Q)}if(q===33&&Z===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(q===61)Q=2;return this.finishOp(R.relational,Q)};H1.readToken_eq_excl=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(R.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(Z===61&&q===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(R.arrow);return this.finishOp(Z===61?R.eq:R.prefix,1)};H1.readToken_question=function(){var Z=this.options.ecmaVersion;if(Z>=11){var q=this.input.charCodeAt(this.pos+1);if(q===46){var Q=this.input.charCodeAt(this.pos+2);if(Q<48||Q>57)return this.finishOp(R.questionDot,2)}if(q===63){if(Z>=12){var J=this.input.charCodeAt(this.pos+2);if(J===61)return this.finishOp(R.assign,3)}return this.finishOp(R.coalesce,2)}}return this.finishOp(R.question,1)};H1.readToken_numberSign=function(){var Z=this.options.ecmaVersion,q=35;if(Z>=13){if(++this.pos,q=this.fullCharCodeAtPos(),r5(q,!0)||q===92)return this.finishToken(R.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+K8(q)+"'")};H1.getTokenFromCode=function(Z){switch(Z){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(R.parenL);case 41:return++this.pos,this.finishToken(R.parenR);case 59:return++this.pos,this.finishToken(R.semi);case 44:return++this.pos,this.finishToken(R.comma);case 91:return++this.pos,this.finishToken(R.bracketL);case 93:return++this.pos,this.finishToken(R.bracketR);case 123:return++this.pos,this.finishToken(R.braceL);case 125:return++this.pos,this.finishToken(R.braceR);case 58:return++this.pos,this.finishToken(R.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(R.backQuote);case 48:var q=this.input.charCodeAt(this.pos+1);if(q===120||q===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(q===111||q===79)return this.readRadixNumber(8);if(q===98||q===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(Z);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(Z);case 124:case 38:return this.readToken_pipe_amp(Z);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(Z);case 60:case 62:return this.readToken_lt_gt(Z);case 61:case 33:return this.readToken_eq_excl(Z);case 63:return this.readToken_question();case 126:return this.finishOp(R.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+K8(Z)+"'")};H1.finishOp=function(Z,q){var Q=this.input.slice(this.pos,this.pos+q);return this.pos+=q,this.finishToken(Z,Q)};H1.readRegexp=function(){var Z,q,Q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(Q,"Unterminated regular expression");var J=this.input.charAt(this.pos);if(R5.test(J))this.raise(Q,"Unterminated regular expression");if(!Z){if(J==="[")q=!0;else if(J==="]"&&q)q=!1;else if(J==="/"&&!q)break;Z=J==="\\"}else Z=!1;++this.pos}var Y=this.input.slice(Q,this.pos);++this.pos;var X=this.pos,z=this.readWord1();if(this.containsEsc)this.unexpected(X);var V=this.regexpState||(this.regexpState=new o5(this));V.reset(Q,Y,z),this.validateRegExpFlags(V),this.validateRegExpPattern(V);var W=null;try{W=new RegExp(Y,z)}catch(K){}return this.finishToken(R.regexp,{pattern:Y,flags:z,value:W})};H1.readInt=function(Z,q,Q){var J=this.options.ecmaVersion>=12&&q===void 0,Y=Q&&this.input.charCodeAt(this.pos)===48,X=this.pos,z=0,V=0;for(var W=0,K=q==null?1/0:q;W<K;++W,++this.pos){var $=this.input.charCodeAt(this.pos),H=void 0;if(J&&$===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(V===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");V=$;continue}if($>=97)H=$-97+10;else if($>=65)H=$-65+10;else if($>=48&&$<=57)H=$-48;else H=1/0;if(H>=Z)break;V=$,z=z*Z+H}if(J&&V===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===X||q!=null&&this.pos-X!==q)return null;return z};H1.readRadixNumber=function(Z){var q=this.pos;this.pos+=2;var Q=this.readInt(Z);if(Q==null)this.raise(this.start+2,"Expected number in radix "+Z);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)Q=bX(this.input.slice(q,this.pos)),++this.pos;else if(r5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(R.num,Q)};H1.readNumber=function(Z){var q=this.pos;if(!Z&&this.readInt(10,void 0,!0)===null)this.raise(q,"Invalid number");var Q=this.pos-q>=2&&this.input.charCodeAt(q)===48;if(Q&&this.strict)this.raise(q,"Invalid number");var J=this.input.charCodeAt(this.pos);if(!Q&&!Z&&this.options.ecmaVersion>=11&&J===110){var Y=bX(this.input.slice(q,this.pos));if(++this.pos,r5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(R.num,Y)}if(Q&&/[89]/.test(this.input.slice(q,this.pos)))Q=!1;if(J===46&&!Q)++this.pos,this.readInt(10),J=this.input.charCodeAt(this.pos);if((J===69||J===101)&&!Q){if(J=this.input.charCodeAt(++this.pos),J===43||J===45)++this.pos;if(this.readInt(10)===null)this.raise(q,"Invalid number")}if(r5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var X=JH(this.input.slice(q,this.pos),Q);return this.finishToken(R.num,X)};H1.readCodePoint=function(){var Z=this.input.charCodeAt(this.pos),q;if(Z===123){if(this.options.ecmaVersion<6)this.unexpected();var Q=++this.pos;if(q=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,q>1114111)this.invalidStringToken(Q,"Code point out of bounds")}else q=this.readHexChar(4);return q};H1.readString=function(Z){var q="",Q=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var J=this.input.charCodeAt(this.pos);if(J===Z)break;if(J===92)q+=this.input.slice(Q,this.pos),q+=this.readEscapedChar(!1),Q=this.pos;else if(J===8232||J===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(j6(J))this.raise(this.start,"Unterminated string constant");++this.pos}}return q+=this.input.slice(Q,this.pos++),this.finishToken(R.string,q)};xX={};H1.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(Z){if(Z===xX)this.readInvalidTemplateToken();else throw Z}this.inTemplateElement=!1};H1.invalidStringToken=function(Z,q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw xX;else this.raise(Z,q)};H1.readTmplToken=function(){var Z="",q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var Q=this.input.charCodeAt(this.pos);if(Q===96||Q===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===R.template||this.type===R.invalidTemplate))if(Q===36)return this.pos+=2,this.finishToken(R.dollarBraceL);else return++this.pos,this.finishToken(R.backQuote);return Z+=this.input.slice(q,this.pos),this.finishToken(R.template,Z)}if(Q===92)Z+=this.input.slice(q,this.pos),Z+=this.readEscapedChar(!0),q=this.pos;else if(j6(Q)){switch(Z+=this.input.slice(q,this.pos),++this.pos,Q){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:Z+=`
|
|
44
|
+
`;break;default:Z+=String.fromCharCode(Q);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;q=this.pos}else++this.pos}};H1.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(R.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};H1.readEscapedChar=function(Z){var q=this.input.charCodeAt(++this.pos);switch(++this.pos,q){case 110:return`
|
|
45
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return K8(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(Z){var Q=this.pos-1;return this.invalidStringToken(Q,"Invalid escape sequence in template string"),null}default:if(q>=48&&q<=55){var J=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Y=parseInt(J,8);if(Y>255)J=J.slice(0,-1),Y=parseInt(J,8);if(this.pos+=J.length-1,q=this.input.charCodeAt(this.pos),(J!=="0"||q===56||q===57)&&(this.strict||Z))this.invalidStringToken(this.pos-1-J.length,Z?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Y)}if(j6(q))return"";return String.fromCharCode(q)}};H1.readHexChar=function(Z){var q=this.pos,Q=this.readInt(16,Z);if(Q===null)this.invalidStringToken(q,"Bad character escape sequence");return Q};H1.readWord1=function(){this.containsEsc=!1;var Z="",q=!0,Q=this.pos,J=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Y=this.fullCharCodeAtPos();if($6(Y,J))this.pos+=Y<=65535?1:2;else if(Y===92){this.containsEsc=!0,Z+=this.input.slice(Q,this.pos);var X=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var z=this.readCodePoint();if(!(q?r5:$6)(z,J))this.invalidStringToken(X,"Invalid Unicode escape");Z+=K8(z),Q=this.pos}else break;q=!1}return Z+this.input.slice(Q,this.pos)};H1.readWord=function(){var Z=this.readWord1(),q=R.name;if(this.keywords.test(Z))q=J3[Z];return this.finishToken(q,Z)};c1.acorn={Parser:c1,version:YH,defaultOptions:WZ,Position:B0,SourceLocation:V7,getLineInfo:VX,Node:K7,TokenType:C1,tokTypes:R,keywordTypes:J3,TokContext:A5,tokContexts:y1,isIdentifierChar:$6,isIdentifierStart:r5,Token:$3,isNewLine:j6,lineBreak:R5,lineBreakG:kM,nonASCIIwhitespace:XX};VH=[{active:!0,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}];GH={delete(){return!1},get(){return},has(){return!1},set(){}};fX=class fX extends EZ{constructor(){super();this.parent=null,this.variables.set("undefined",new oZ)}findVariable(Z){let q=this.variables.get(Z);if(!q)q=new o4(Z),this.variables.set(Z,q);return q}};RH={buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1},CH=Object.keys(RH);u4=new aG;u4.setMaxListeners(0);jZ.on(m4,()=>u4.emit(m4));PH={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},SH={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}};iH=/[\x00-\x1F\x7F<>*#"{}|^[\]`;?:&=+$,]/g,nH=/^[a-z]:/i;V2=new Set(["auto","esModule","default","defaultOnly",!0,!1]);(function(Z){Z[Z.ENTRY_CHUNK=0]="ENTRY_CHUNK",Z[Z.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",Z[Z.ASSET=2]="ASSET"})(q0||(q0={}))});var tX=U1((IF)=>{function sX(Z,q,Q){throw Error(Q?`No known conditions for "${q}" specifier in "${Z}" package`:`Missing "${q}" specifier in "${Z}" package`)}function aX(Z,q,Q,J){let Y,X,z=H3(Z,Q),V=function(K){let $=new Set(["default",...K.conditions||[]]);return K.unsafe||$.add(K.require?"require":"import"),K.unsafe||$.add(K.browser?"browser":"node"),$}(J||{}),W=q[z];if(W===void 0){let K,$,H,M;for(M in q)$&&M.length<$.length||(M[M.length-1]==="/"&&z.startsWith(M)?(X=z.substring(M.length),$=M):M.length>1&&(H=M.indexOf("*",1),~H&&(K=RegExp("^"+M.substring(0,H)+"(.*)"+M.substring(1+H)+"$").exec(z),K&&K[1]&&(X=K[1],$=M))));W=q[$]}return W||sX(Z,z),Y=M3(W,V),Y||sX(Z,z,1),X&&function(K,$){let H,M=0,O=K.length,L=/[*]/g,B=/[/]$/;for(;M<O;M++)K[M]=L.test(H=K[M])?H.replace(L,$):B.test(H)?H+$:H}(Y,X),Y}function H3(Z,q,Q){if(Z===q||q===".")return".";let J=Z+"/",Y=J.length,X=q.slice(0,Y)===J,z=X?q.slice(Y):q;return z[0]==="#"?z:X||!Q?z.slice(0,2)==="./"?z:"./"+z:z}function M3(Z,q,Q){if(Z){if(typeof Z=="string")return Q&&Q.add(Z),[Z];let J,Y;if(Array.isArray(Z)){for(Y=Q||new Set,J=0;J<Z.length;J++)M3(Z[J],q,Y);if(!Q&&Y.size)return[...Y]}else for(J in Z)if(q.has(J))return M3(Z[J],q,Q)}}function RF(Z,q={}){let Q,J=0,Y=q.browser,X=q.fields||["module","main"],z=typeof Y=="string";for(Y&&!X.includes("browser")&&(X.unshift("browser"),z&&(Y=H3(Z.name,Y,!0)));J<X.length;J++)if(Q=Z[X[J]]){if(typeof Q=="string");else{if(typeof Q!="object"||X[J]!="browser")continue;if(z&&(Q=Q[Y],Q==null))return Y}return typeof Q=="string"?"./"+Q.replace(/^\.?\//,""):Q}}function rX(Z,q,Q){let J,Y=Z.exports;if(Y){if(typeof Y=="string")Y={".":Y};else for(J in Y){J[0]!=="."&&(Y={".":Y});break}return aX(Z.name,Y,q||".",Q)}}function oX(Z,q,Q){if(Z.imports)return aX(Z.name,Z.imports,q,Q)}function CF(Z,q,Q){return(q=H3(Z.name,q||"."))[0]==="#"?oX(Z,q,Q):rX(Z,q,Q)}IF.exports=rX;IF.imports=oX;IF.legacy=RF;IF.resolve=CF});var A0=U1((gI,Zz)=>{var PF=s1("path"),eX={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},SF={...eX,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},yF={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Zz.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:yF,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:PF.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?SF:eX}}});var G7=U1((hF)=>{var EF=s1("path"),bF=process.platform==="win32",{REGEX_BACKSLASH:xF,REGEX_REMOVE_BACKSLASH:kF,REGEX_SPECIAL_CHARS:fF,REGEX_SPECIAL_CHARS_GLOBAL:vF}=A0();hF.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);hF.hasRegexChars=(Z)=>fF.test(Z);hF.isRegexChar=(Z)=>Z.length===1&&hF.hasRegexChars(Z);hF.escapeRegex=(Z)=>Z.replace(vF,"\\$1");hF.toPosixSlashes=(Z)=>Z.replace(xF,"/");hF.removeBackslashes=(Z)=>{return Z.replace(kF,(q)=>{return q==="\\"?"":q})};hF.supportsLookbehinds=()=>{let Z=process.version.slice(1).split(".").map(Number);if(Z.length===3&&Z[0]>=9||Z[0]===8&&Z[1]>=10)return!0;return!1};hF.isWindows=(Z)=>{if(Z&&typeof Z.windows==="boolean")return Z.windows;return bF===!0||EF.sep==="\\"};hF.escapeLast=(Z,q,Q)=>{let J=Z.lastIndexOf(q,Q);if(J===-1)return Z;if(Z[J-1]==="\\")return hF.escapeLast(Z,q,J-1);return`${Z.slice(0,J)}\\${Z.slice(J)}`};hF.removePrefix=(Z,q={})=>{let Q=Z;if(Q.startsWith("./"))Q=Q.slice(2),q.prefix="./";return Q};hF.wrapOutput=(Z,q={},Q={})=>{let J=Q.contains?"":"^",Y=Q.contains?"":"$",X=`${J}(?:${Z})${Y}`;if(q.negated===!0)X=`(?:^(?!${X}).*$)`;return X}});var $z=U1((uI,Kz)=>{var Jz=G7(),{CHAR_ASTERISK:F3,CHAR_AT:sF,CHAR_BACKWARD_SLASH:P0,CHAR_COMMA:aF,CHAR_DOT:L3,CHAR_EXCLAMATION_MARK:w3,CHAR_FORWARD_SLASH:Wz,CHAR_LEFT_CURLY_BRACE:O3,CHAR_LEFT_PARENTHESES:N3,CHAR_LEFT_SQUARE_BRACKET:rF,CHAR_PLUS:oF,CHAR_QUESTION_MARK:Yz,CHAR_RIGHT_CURLY_BRACE:tF,CHAR_RIGHT_PARENTHESES:Xz,CHAR_RIGHT_SQUARE_BRACKET:eF}=A0(),zz=(Z)=>{return Z===Wz||Z===P0},Vz=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},ZL=(Z,q)=>{let Q=q||{},J=Z.length-1,Y=Q.parts===!0||Q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,L=!1,B=!1,C=!1,y=!1,P=!1,_=!1,v=!1,h=!1,d=0,E,N,A={value:"",depth:0,isGlob:!1},T=()=>K>=J,j=()=>W.charCodeAt(K+1),x=()=>{return E=N,W.charCodeAt(++K)};while(K<J){N=x();let u;if(N===P0){if(P=A.backslashes=!0,N=x(),N===O3)y=!0;continue}if(y===!0||N===O3){d++;while(T()!==!0&&(N=x())){if(N===P0){P=A.backslashes=!0,x();continue}if(N===O3){d++;continue}if(y!==!0&&N===L3&&(N=x())===L3){if(M=A.isBrace=!0,L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===aF){if(M=A.isBrace=!0,L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===tF){if(d--,d===0){y=!1,M=A.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===Wz){if(X.push(K),z.push(A),A={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===L3&&K===$+1){$+=2;continue}H=K+1;continue}if(Q.noext!==!0){if((N===oF||N===sF||N===F3||N===Yz||N===w3)===!0&&j()===N3){if(L=A.isGlob=!0,B=A.isExtglob=!0,h=!0,N===w3&&K===$)v=!0;if(Y===!0){while(T()!==!0&&(N=x())){if(N===P0){P=A.backslashes=!0,N=x();continue}if(N===Xz){L=A.isGlob=!0,h=!0;break}}continue}break}}if(N===F3){if(E===F3)C=A.isGlobstar=!0;if(L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Yz){if(L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===rF){while(T()!==!0&&(u=x())){if(u===P0){P=A.backslashes=!0,x();continue}if(u===eF){O=A.isBracket=!0,L=A.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(Q.nonegate!==!0&&N===w3&&K===$){_=A.negated=!0,$++;continue}if(Q.noparen!==!0&&N===N3){if(L=A.isGlob=!0,Y===!0){while(T()!==!0&&(N=x())){if(N===N3){P=A.backslashes=!0,N=x();continue}if(N===Xz){h=!0;break}}continue}break}if(L===!0){if(h=!0,Y===!0)continue;break}}if(Q.noext===!0)B=!1,L=!1;let b=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(b&&L===!0&&H>0)b=W.slice(0,H),G=W.slice(H);else if(L===!0)b="",G=W;else b=W;if(b&&b!==""&&b!=="/"&&b!==W){if(zz(b.charCodeAt(b.length-1)))b=b.slice(0,-1)}if(Q.unescape===!0){if(G)G=Jz.removeBackslashes(G);if(b&&P===!0)b=Jz.removeBackslashes(b)}let F={prefix:S,input:Z,start:$,base:b,glob:G,isBrace:M,isBracket:O,isGlob:L,isExtglob:B,isGlobstar:C,negated:_,negatedExtglob:v};if(Q.tokens===!0){if(F.maxDepth=0,!zz(N))z.push(A);F.tokens=z}if(Q.parts===!0||Q.tokens===!0){let u;for(let f=0;f<X.length;f++){let o=u?u+1:$,t=X[f],J1=Z.slice(o,t);if(Q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=J1;Vz(z[f]),F.maxDepth+=z[f].depth}if(f!==0||J1!=="")V.push(J1);u=t}if(u&&u+1<Z.length){let f=Z.slice(u+1);if(V.push(f),Q.tokens)z[z.length-1].value=f,Vz(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F};Kz.exports=ZL});var Mz=U1((dI,Bz)=>{var S0=A0(),q5=G7(),{MAX_LENGTH:U7,POSIX_REGEX_SOURCE:qL,REGEX_NON_SPECIAL_CHARS:QL,REGEX_SPECIAL_CHARS_BACKREF:JL,REPLACEMENTS:Gz}=S0,YL=(Z,q)=>{if(typeof q.expandRange==="function")return q.expandRange(...Z,q);Z.sort();let Q=`[${Z.join("-")}]`;try{new RegExp(Q)}catch(J){return Z.map((Y)=>q5.escapeRegex(Y)).join("..")}return Q},F6=(Z,q)=>{return`Missing ${Z}: "${q}" - use "\\\\${q}" to match literal characters`},Uz=(Z)=>{let q=[],Q=0,J=0,Y=0,X="",z=!1;for(let V of Z){if(z===!0){X+=V,z=!1;continue}if(V==="\\"){X+=V,z=!0;continue}if(V==='"'){Y=Y===1?0:1,X+=V;continue}if(Y===0){if(V==="[")Q++;else if(V==="]"&&Q>0)Q--;else if(Q===0){if(V==="(")J++;else if(V===")"&&J>0)J--;else if(V==="|"&&J===0){q.push(X),X="";continue}}}X+=V}return q.push(X),q},XL=(Z)=>{let q=!1;for(let Q of Z){if(q===!0){q=!1;continue}if(Q==="\\"){q=!0;continue}if(/[?*+@!()[\]{}]/.test(Q))return!1}return!0},jz=(Z)=>{let q=Z.trim(),Q=!0;while(Q===!0)if(Q=!1,/^@\([^\\()[\]{}|]+\)$/.test(q))q=q.slice(2,-1),Q=!0;if(!XL(q))return;return q.replace(/\\(.)/g,"$1")},zL=(Z)=>{let q=Z.map(jz).filter(Boolean);for(let Q=0;Q<q.length;Q++)for(let J=Q+1;J<q.length;J++){let Y=q[Q],X=q[J],z=Y[0];if(!z||Y!==z.repeat(Y.length)||X!==z.repeat(X.length))continue;if(Y===X||Y.startsWith(X)||X.startsWith(Y))return!0}return!1},R3=(Z,q=!0)=>{if(Z[0]!=="+"&&Z[0]!=="*"||Z[1]!=="(")return;let Q=0,J=0,Y=0,X=!1;for(let z=1;z<Z.length;z++){let V=Z[z];if(X===!0){X=!1;continue}if(V==="\\"){X=!0;continue}if(V==='"'){Y=Y===1?0:1;continue}if(Y===1)continue;if(V==="["){Q++;continue}if(V==="]"&&Q>0){Q--;continue}if(Q>0)continue;if(V==="("){J++;continue}if(V===")"){if(J--,J===0){if(q===!0&&z!==Z.length-1)return;return{type:Z[0],body:Z.slice(2,z),end:z}}}}},VL=(Z)=>{let q=0,Q=[];while(q<Z.length){let Y=R3(Z.slice(q),!1);if(!Y||Y.type!=="*")return;let X=Uz(Y.body).map((V)=>V.trim());if(X.length!==1)return;let z=jz(X[0]);if(!z||z.length!==1)return;Q.push(z),q+=Y.end+1}if(Q.length<1)return;return`${Q.length===1?q5.escapeRegex(Q[0]):`[${Q.map((Y)=>q5.escapeRegex(Y)).join("")}]`}*`},WL=(Z)=>{let q=0,Q=Z.trim(),J=R3(Q);while(J)q++,Q=J.body.trim(),J=R3(Q);return q},KL=(Z,q)=>{if(q.maxExtglobRecursion===!1)return{risky:!1};let Q=typeof q.maxExtglobRecursion==="number"?q.maxExtglobRecursion:S0.DEFAULT_MAX_EXTGLOB_RECURSION,J=Uz(Z).map((Y)=>Y.trim());if(J.length>1){if(J.some((Y)=>Y==="")||J.some((Y)=>/^[*?]+$/.test(Y))||zL(J))return{risky:!0}}for(let Y of J){let X=VL(Y);if(X)return{risky:!0,safeOutput:X};if(WL(Y)>Q)return{risky:!0}}return{risky:!1}},C3=(Z,q)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=Gz[Z]||Z;let Q={...q},J=typeof Q.maxLength==="number"?Math.min(U7,Q.maxLength):U7,Y=Z.length;if(Y>J)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${J}`);let X={type:"bos",value:"",output:Q.prepend||""},z=[X],V=Q.capture?"":"?:",W=q5.isWindows(q),K=S0.globChars(W),$=S0.extglobChars(K),{DOT_LITERAL:H,PLUS_LITERAL:M,SLASH_LITERAL:O,ONE_CHAR:L,DOTS_SLASH:B,NO_DOT:C,NO_DOT_SLASH:y,NO_DOTS_SLASH:P,QMARK:_,QMARK_NO_DOT:v,STAR:h,START_ANCHOR:d}=K,E=(D)=>{return`(${V}(?:(?!${d}${D.dot?B:H}).)*?)`},N=Q.dot?"":C,A=Q.dot?_:v,T=Q.bash===!0?E(Q):h;if(Q.capture)T=`(${T})`;if(typeof Q.noext==="boolean")Q.noextglob=Q.noext;let j={input:Z,index:-1,start:0,dot:Q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=q5.removePrefix(Z,j),Y=Z.length;let x=[],b=[],S=[],G=X,F,u=()=>j.index===Y-1,f=j.peek=(D=1)=>Z[j.index+D],o=j.advance=()=>Z[++j.index]||"",t=()=>Z.slice(j.index+1),J1=(D="",k=0)=>{j.consumed+=D,j.index+=k},N1=(D)=>{j.output+=D.output!=null?D.output:D.value,J1(D.value)},R1=()=>{let D=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))o(),j.start++,D++;if(D%2===0)return!1;return j.negated=!0,j.start++,!0},F1=(D)=>{j[D]++,S.push(D)},a=(D)=>{j[D]--,S.pop()},m=(D)=>{if(G.type==="globstar"){let k=j.braces>0&&(D.type==="comma"||D.type==="brace"),I=D.extglob===!0||x.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!k&&!I)j.output=j.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=T,j.output+=G.output}if(x.length&&D.type!=="paren")x[x.length-1].inner+=D.value;if(D.value||D.output)N1(D);if(G&&G.type==="text"&&D.type==="text"){G.value+=D.value,G.output=(G.output||"")+D.value;return}D.prev=G,z.push(D),G=D},L1=(D,k)=>{let I={...$[k],conditions:1,inner:""};I.prev=G,I.parens=j.parens,I.output=j.output,I.startIndex=j.index,I.tokensIndex=z.length;let g=(Q.capture?"(":"")+I.open;F1("parens"),m({type:D,value:k,output:j.output?"":L}),m({type:"paren",extglob:!0,value:o(),output:g}),x.push(I)},p=(D)=>{let k=Z.slice(D.startIndex,j.index+1),I=Z.slice(D.startIndex+2,j.index),g=KL(I,Q);if((D.type==="plus"||D.type==="star")&&g.risky){let i=g.safeOutput?(D.output?"":L)+(Q.capture?`(${g.safeOutput})`:g.safeOutput):void 0,B1=z[D.tokensIndex];B1.type="text",B1.value=k,B1.output=i||q5.escapeRegex(k);for(let _1=D.tokensIndex+1;_1<z.length;_1++)z[_1].value="",z[_1].output="",delete z[_1].suffix;j.output=D.output+B1.output,j.backtrack=!0,m({type:"paren",extglob:!0,value:F,output:""}),a("parens");return}let c=D.close+(Q.capture?")":""),n;if(D.type==="negate"){let i=T;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))i=E(Q);if(i!==T||u()||/^\)+$/.test(t()))c=D.close=`)$))${i}`;if(D.inner.includes("*")&&(n=t())&&/^\.[^\\/.]+$/.test(n)){let B1=C3(n,{...q,fastpaths:!1}).output;c=D.close=`)${B1})${i})`}if(D.prev.type==="bos")j.negatedExtglob=!0}m({type:"paren",extglob:!0,value:F,output:c}),a("parens")};if(Q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,k=Z.replace(JL,(I,g,c,n,i,B1)=>{if(n==="\\")return D=!0,I;if(n==="?"){if(g)return g+n+(i?_.repeat(i.length):"");if(B1===0)return A+(i?_.repeat(i.length):"");return _.repeat(c.length)}if(n===".")return H.repeat(c.length);if(n==="*"){if(g)return g+n+(i?T:"");return T}return g?I:`\\${I}`});if(D===!0)if(Q.unescape===!0)k=k.replace(/\\/g,"");else k=k.replace(/\\+/g,(I)=>{return I.length%2===0?"\\\\":I?"\\":""});if(k===Z&&Q.contains===!0)return j.output=Z,j;return j.output=q5.wrapOutput(k,j,q),j}while(!u()){if(F=o(),F==="\x00")continue;if(F==="\\"){let I=f();if(I==="/"&&Q.bash!==!0)continue;if(I==="."||I===";")continue;if(!I){F+="\\",m({type:"text",value:F});continue}let g=/^\\+/.exec(t()),c=0;if(g&&g[0].length>2){if(c=g[0].length,j.index+=c,c%2!==0)F+="\\"}if(Q.unescape===!0)F=o();else F+=o();if(j.brackets===0){m({type:"text",value:F});continue}}if(j.brackets>0&&(F!=="]"||G.value==="["||G.value==="[^")){if(Q.posix!==!1&&F===":"){let I=G.value.slice(1);if(I.includes("[")){if(G.posix=!0,I.includes(":")){let g=G.value.lastIndexOf("["),c=G.value.slice(0,g),n=G.value.slice(g+2),i=qL[n];if(i){if(G.value=c+i,j.backtrack=!0,o(),!X.output&&z.indexOf(G)===1)X.output=L;continue}}}}if(F==="["&&f()!==":"||F==="-"&&f()==="]")F=`\\${F}`;if(F==="]"&&(G.value==="["||G.value==="[^"))F=`\\${F}`;if(Q.posix===!0&&F==="!"&&G.value==="[")F="^";G.value+=F,N1({value:F});continue}if(j.quotes===1&&F!=='"'){F=q5.escapeRegex(F),G.value+=F,N1({value:F});continue}if(F==='"'){if(j.quotes=j.quotes===1?0:1,Q.keepQuotes===!0)m({type:"text",value:F});continue}if(F==="("){F1("parens"),m({type:"paren",value:F});continue}if(F===")"){if(j.parens===0&&Q.strictBrackets===!0)throw SyntaxError(F6("opening","("));let I=x[x.length-1];if(I&&j.parens===I.parens+1){p(x.pop());continue}m({type:"paren",value:F,output:j.parens?")":"\\)"}),a("parens");continue}if(F==="["){if(Q.nobracket===!0||!t().includes("]")){if(Q.nobracket!==!0&&Q.strictBrackets===!0)throw SyntaxError(F6("closing","]"));F=`\\${F}`}else F1("brackets");m({type:"bracket",value:F});continue}if(F==="]"){if(Q.nobracket===!0||G&&G.type==="bracket"&&G.value.length===1){m({type:"text",value:F,output:`\\${F}`});continue}if(j.brackets===0){if(Q.strictBrackets===!0)throw SyntaxError(F6("opening","["));m({type:"text",value:F,output:`\\${F}`});continue}a("brackets");let I=G.value.slice(1);if(G.posix!==!0&&I[0]==="^"&&!I.includes("/"))F=`/${F}`;if(G.value+=F,N1({value:F}),Q.literalBrackets===!1||q5.hasRegexChars(I))continue;let g=q5.escapeRegex(G.value);if(j.output=j.output.slice(0,-G.value.length),Q.literalBrackets===!0){j.output+=g,G.value=g;continue}G.value=`(${V}${g}|${G.value})`,j.output+=G.value;continue}if(F==="{"&&Q.nobrace!==!0){F1("braces");let I={type:"brace",value:F,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};b.push(I),m(I);continue}if(F==="}"){let I=b[b.length-1];if(Q.nobrace===!0||!I){m({type:"text",value:F,output:F});continue}let g=")";if(I.dots===!0){let c=z.slice(),n=[];for(let i=c.length-1;i>=0;i--){if(z.pop(),c[i].type==="brace")break;if(c[i].type!=="dots")n.unshift(c[i].value)}g=YL(n,Q),j.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let c=j.output.slice(0,I.outputIndex),n=j.tokens.slice(I.tokensIndex);I.value=I.output="\\{",F=g="\\}",j.output=c;for(let i of n)j.output+=i.output||i.value}m({type:"brace",value:F,output:g}),a("braces"),b.pop();continue}if(F==="|"){if(x.length>0)x[x.length-1].conditions++;m({type:"text",value:F});continue}if(F===","){let I=F,g=b[b.length-1];if(g&&S[S.length-1]==="braces")g.comma=!0,I="|";m({type:"comma",value:F,output:I});continue}if(F==="/"){if(G.type==="dot"&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",z.pop(),G=X;continue}m({type:"slash",value:F,output:O});continue}if(F==="."){if(j.braces>0&&G.type==="dot"){if(G.value===".")G.output=H;let I=b[b.length-1];G.type="dots",G.output+=F,G.value+=F,I.dots=!0;continue}if(j.braces+j.parens===0&&G.type!=="bos"&&G.type!=="slash"){m({type:"text",value:F,output:H});continue}m({type:"dot",value:F,output:H});continue}if(F==="?"){if(!(G&&G.value==="(")&&Q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("qmark",F);continue}if(G&&G.type==="paren"){let g=f(),c=F;if(g==="<"&&!q5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(G.value==="("&&!/[!=<:]/.test(g)||g==="<"&&!/<([!=]|\w+>)/.test(t()))c=`\\${F}`;m({type:"text",value:F,output:c});continue}if(Q.dot!==!0&&(G.type==="slash"||G.type==="bos")){m({type:"qmark",value:F,output:v});continue}m({type:"qmark",value:F,output:_});continue}if(F==="!"){if(Q.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){L1("negate",F);continue}}if(Q.nonegate!==!0&&j.index===0){R1();continue}}if(F==="+"){if(Q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("plus",F);continue}if(G&&G.value==="("||Q.regex===!1){m({type:"plus",value:F,output:M});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||j.parens>0){m({type:"plus",value:F});continue}m({type:"plus",value:M});continue}if(F==="@"){if(Q.noextglob!==!0&&f()==="("&&f(2)!=="?"){m({type:"at",extglob:!0,value:F,output:""});continue}m({type:"text",value:F});continue}if(F!=="*"){if(F==="$"||F==="^")F=`\\${F}`;let I=QL.exec(t());if(I)F+=I[0],j.index+=I[0].length;m({type:"text",value:F});continue}if(G&&(G.type==="globstar"||G.star===!0)){G.type="star",G.star=!0,G.value+=F,G.output=T,j.backtrack=!0,j.globstar=!0,J1(F);continue}let D=t();if(Q.noextglob!==!0&&/^\([^?]/.test(D)){L1("star",F);continue}if(G.type==="star"){if(Q.noglobstar===!0){J1(F);continue}let I=G.prev,g=I.prev,c=I.type==="slash"||I.type==="bos",n=g&&(g.type==="star"||g.type==="globstar");if(Q.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:F,output:""});continue}let i=j.braces>0&&(I.type==="comma"||I.type==="brace"),B1=x.length&&(I.type==="pipe"||I.type==="paren");if(!c&&I.type!=="paren"&&!i&&!B1){m({type:"star",value:F,output:""});continue}while(D.slice(0,3)==="/**"){let _1=Z[j.index+4];if(_1&&_1!=="/")break;D=D.slice(3),J1("/**",3)}if(I.type==="bos"&&u()){G.type="globstar",G.value+=F,G.output=E(Q),j.output=G.output,j.globstar=!0,J1(F);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!n&&u()){j.output=j.output.slice(0,-(I.output+G.output).length),I.output=`(?:${I.output}`,G.type="globstar",G.output=E(Q)+(Q.strictSlashes?")":"|$)"),G.value+=F,j.globstar=!0,j.output+=I.output+G.output,J1(F);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&D[0]==="/"){let _1=D[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(I.output+G.output).length),I.output=`(?:${I.output}`,G.type="globstar",G.output=`${E(Q)}${O}|${O}${_1})`,G.value+=F,j.output+=I.output+G.output,j.globstar=!0,J1(F+o()),m({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&D[0]==="/"){G.type="globstar",G.value+=F,G.output=`(?:^|${O}|${E(Q)}${O})`,j.output=G.output,j.globstar=!0,J1(F+o()),m({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-G.output.length),G.type="globstar",G.output=E(Q),G.value+=F,j.output+=G.output,j.globstar=!0,J1(F);continue}let k={type:"star",value:F,output:T};if(Q.bash===!0){if(k.output=".*?",G.type==="bos"||G.type==="slash")k.output=N+k.output;m(k);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&Q.regex===!0){k.output=F,m(k);continue}if(j.index===j.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot")j.output+=y,G.output+=y;else if(Q.dot===!0)j.output+=P,G.output+=P;else j.output+=N,G.output+=N;if(f()!=="*")j.output+=L,G.output+=L}m(k)}while(j.brackets>0){if(Q.strictBrackets===!0)throw SyntaxError(F6("closing","]"));j.output=q5.escapeLast(j.output,"["),a("brackets")}while(j.parens>0){if(Q.strictBrackets===!0)throw SyntaxError(F6("closing",")"));j.output=q5.escapeLast(j.output,"("),a("parens")}while(j.braces>0){if(Q.strictBrackets===!0)throw SyntaxError(F6("closing","}"));j.output=q5.escapeLast(j.output,"{"),a("braces")}if(Q.strictSlashes!==!0&&(G.type==="star"||G.type==="bracket"))m({type:"maybe_slash",value:"",output:`${O}?`});if(j.backtrack===!0){j.output="";for(let D of j.tokens)if(j.output+=D.output!=null?D.output:D.value,D.suffix)j.output+=D.suffix}return j};C3.fastpaths=(Z,q)=>{let Q={...q},J=typeof Q.maxLength==="number"?Math.min(U7,Q.maxLength):U7,Y=Z.length;if(Y>J)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${J}`);Z=Gz[Z]||Z;let X=q5.isWindows(q),{DOT_LITERAL:z,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:$,NO_DOTS:H,NO_DOTS_SLASH:M,STAR:O,START_ANCHOR:L}=S0.globChars(X),B=Q.dot?H:$,C=Q.dot?M:$,y=Q.capture?"":"?:",P={negated:!1,prefix:""},_=Q.bash===!0?".*?":O;if(Q.capture)_=`(${_})`;let v=(N)=>{if(N.noglobstar===!0)return _;return`(${y}(?:(?!${L}${N.dot?K:z}).)*?)`},h=(N)=>{switch(N){case"*":return`${B}${W}${_}`;case".*":return`${z}${W}${_}`;case"*.*":return`${B}${_}${z}${W}${_}`;case"*/*":return`${B}${_}${V}${W}${C}${_}`;case"**":return B+v(Q);case"**/*":return`(?:${B}${v(Q)}${V})?${C}${W}${_}`;case"**/*.*":return`(?:${B}${v(Q)}${V})?${C}${_}${z}${W}${_}`;case"**/.*":return`(?:${B}${v(Q)}${V})?${z}${W}${_}`;default:{let A=/^(.*?)\.(\w+)$/.exec(N);if(!A)return;let T=h(A[1]);if(!T)return;return T+z+A[2]}}},d=q5.removePrefix(Z,P),E=h(d);if(E&&Q.strictSlashes!==!0)E+=`${V}?`;return E};Bz.exports=C3});var Fz=U1((lI,Hz)=>{var $L=s1("path"),GL=$z(),I3=Mz(),_3=G7(),UL=A0(),jL=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),v1=(Z,q,Q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>v1(M,q,Q));return(M)=>{for(let O of $){let L=O(M);if(L)return L}return!1}}let J=jL(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!J)throw TypeError("Expected pattern to be a non-empty string");let Y=q||{},X=_3.isWindows(q),z=J?v1.compileRe(Z,q):v1.makeRe(Z,q,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...q,ignore:null,onMatch:null,onResult:null};W=v1(Y.ignore,$,Q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:L}=v1.test($,z,q,{glob:Z,posix:X}),B={glob:Z,state:V,regex:z,posix:X,input:$,output:L,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(B);if(M===!1)return B.isMatch=!1,H?B:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(B);return B.isMatch=!1,H?B:!1}if(typeof Y.onMatch==="function")Y.onMatch(B);return H?B:!0};if(Q)K.state=V;return K};v1.test=(Z,q,Q,{glob:J,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=Q||{},z=X.format||(Y?_3.toPosixSlashes:null),V=Z===J,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===J;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=v1.matchBase(Z,q,Q,Y);else V=q.exec(W);return{isMatch:Boolean(V),match:V,output:W}};v1.matchBase=(Z,q,Q,J=_3.isWindows(Q))=>{return(q instanceof RegExp?q:v1.makeRe(q,Q)).test($L.basename(Z))};v1.isMatch=(Z,q,Q)=>v1(q,Q)(Z);v1.parse=(Z,q)=>{if(Array.isArray(Z))return Z.map((Q)=>v1.parse(Q,q));return I3(Z,{...q,fastpaths:!1})};v1.scan=(Z,q)=>GL(Z,q);v1.compileRe=(Z,q,Q=!1,J=!1)=>{if(Q===!0)return Z.output;let Y=q||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=v1.toRegex(V,q);if(J===!0)W.state=Z;return W};v1.makeRe=(Z,q={},Q=!1,J=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=I3.fastpaths(Z,q);if(!Y.output)Y=I3(Z,q);return v1.compileRe(Y,q,Q,J)};v1.toRegex=(Z,q)=>{try{let Q=q||{};return new RegExp(Z,Q.flags||(Q.nocase?"i":""))}catch(Q){if(q&&q.debug===!0)throw Q;return/$^/}};v1.constants=UL;Hz.exports=v1});var Dz=U1((_z)=>{Object.defineProperty(_z,"__esModule",{value:!0});var N6=s1("path"),BL=Fz();function ML(Z){return Z&&typeof Z==="object"&&"default"in Z?Z:{default:Z}}var HL=ML(BL),wz=function(q,Q=".js"){let J=`${q}`;if(!N6.extname(q))J+=Q;return J};class O6{constructor(){O6.prototype.__init.call(this),O6.prototype.__init2.call(this),O6.prototype.__init3.call(this),O6.prototype.__init4.call(this)}__init(){this.should_skip=!1}__init2(){this.should_remove=!1}__init3(){this.replacement=null}__init4(){this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z}}replace(Z,q,Q,J){if(Z)if(Q!==null)Z[q][Q]=J;else Z[q]=J}remove(Z,q,Q){if(Z)if(Q!==null)Z[q].splice(Q,1);else delete Z[q]}}class Oz extends O6{constructor(Z){super();this.enter=Z.enter,this.leave=Z.leave}visit(Z,q,Q,J,Y,X){if(Z){if(Q){let z=this.should_skip,V=this.should_remove,W=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,Q.call(this.context,Z,q,Y,X),this.replacement)Z=this.replacement,this.replace(q,Y,X,Z);if(this.should_remove)this.remove(q,Y,X);let K=this.should_skip,$=this.should_remove;if(this.should_skip=z,this.should_remove=V,this.replacement=W,K)return Z;if($)return null}for(let z in Z){let V=Z[z];if(typeof V!=="object")continue;else if(Array.isArray(V)){for(let W=0;W<V.length;W+=1)if(V[W]!==null&&typeof V[W].type==="string"){if(!this.visit(V[W],Z,Q,J,z,W))W--}}else if(V!==null&&typeof V.type==="string")this.visit(V,Z,Q,J,z,null)}if(J){let z=this.replacement,V=this.should_remove;if(this.replacement=null,this.should_remove=!1,J.call(this.context,Z,q,Y,X),this.replacement)Z=this.replacement,this.replace(q,Y,X,Z);if(this.should_remove)this.remove(q,Y,X);let W=this.should_remove;if(this.replacement=z,this.should_remove=V,W)return null}}return Z}}function FL(Z,q){return new Oz(q).visit(Z,null,q.enter,q.leave)}var L6={ArrayPattern(Z,q){for(let Q of q.elements)if(Q)L6[Q.type](Z,Q)},AssignmentPattern(Z,q){L6[q.left.type](Z,q.left)},Identifier(Z,q){Z.push(q.name)},MemberExpression(){},ObjectPattern(Z,q){for(let Q of q.properties)if(Q.type==="RestElement")L6.RestElement(Z,Q);else L6[Q.value.type](Z,Q.value)},RestElement(Z,q){L6[q.argument.type](Z,q.argument)}},j7=function(q){let Q=[];return L6[q.type](Q,q),Q},LL={const:!0,let:!0};class w6{constructor(Z={}){if(this.parent=Z.parent,this.isBlockScope=!!Z.block,this.declarations=Object.create(null),Z.params)Z.params.forEach((q)=>{j7(q).forEach((Q)=>{this.declarations[Q]=!0})})}addDeclaration(Z,q,Q){if(!q&&this.isBlockScope)this.parent.addDeclaration(Z,q,Q);else if(Z.id)j7(Z.id).forEach((J)=>{this.declarations[J]=!0})}contains(Z){return this.declarations[Z]||(this.parent?this.parent.contains(Z):!1)}}var Nz=function(q,Q="scope"){let J=new w6;return FL(q,{enter(Y,X){let z=Y;if(/(Function|Class)Declaration/.test(z.type))J.addDeclaration(z,!1,!1);if(z.type==="VariableDeclaration"){let{kind:W}=z,K=LL[W];z.declarations.forEach(($)=>{J.addDeclaration($,K,!0)})}let V;if(/Function/.test(z.type)){let W=z;if(V=new w6({parent:J,block:!1,params:W.params}),W.type==="FunctionExpression"&&W.id)V.addDeclaration(W,!1,!1)}if(/For(In|Of)?Statement/.test(z.type))V=new w6({parent:J,block:!0});if(z.type==="BlockStatement"&&!/Function/.test(X.type))V=new w6({parent:J,block:!0});if(z.type==="CatchClause")V=new w6({parent:J,params:z.param?[z.param]:[],block:!0});if(V)Object.defineProperty(z,Q,{value:V,configurable:!0}),J=V},leave(Y){if(Y[Q])J=J.parent}}),J};function wL(Z){return Array.isArray(Z)}function Lz(Z){if(wL(Z))return Z;if(Z==null)return[];return[Z]}var R6=function(q){return q.split(N6.win32.sep).join(N6.posix.sep)};function OL(Z,q){if(q===!1||N6.isAbsolute(Z)||Z.startsWith("*"))return R6(Z);let Q=R6(N6.resolve(q||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return N6.posix.join(Q,R6(Z))}var Rz=function(q,Q,J){let Y=J&&J.resolve,X=(W)=>W instanceof RegExp?W:{test:(K)=>{let $=OL(W,Y);return HL.default($,{dot:!0})(K)}},z=Lz(q).map(X),V=Lz(Q).map(X);return function(K){if(typeof K!=="string")return!1;if(/\0/.test(K))return!1;let $=R6(K);for(let H=0;H<V.length;++H)if(V[H].test($))return!1;for(let H=0;H<z.length;++H)if(z[H].test($))return!0;return!z.length}},NL="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public",RL="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl",Cz=new Set(`${NL} ${RL}`.split(" "));Cz.add("");var M7=function(q){let Q=q.replace(/-(\w)/g,(J,Y)=>Y.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g,"_");if(/\d/.test(Q[0])||Cz.has(Q))Q=`_${Q}`;return Q||"_"};function B7(Z){return(JSON.stringify(Z)||"undefined").replace(/[\u2028\u2029]/g,(q)=>`\\u${`000${q.charCodeAt(0).toString(16)}`.slice(-4)}`)}function CL(Z,q,Q){let J="[",Y=q?`
|
|
46
|
+
${Q}${q}`:"";for(let X=0;X<Z.length;X++){let z=Z[X];J+=`${X>0?",":""}${Y}${y0(z,q,Q+q)}`}return`${J}${q?`
|
|
47
|
+
${Q}`:""}]`}function IL(Z,q,Q){let J="{",Y=q?`
|
|
48
|
+
${Q}${q}`:"",X=Object.entries(Z);for(let z=0;z<X.length;z++){let[V,W]=X[z],K=M7(V)===V?V:B7(V);J+=`${z>0?",":""}${Y}${K}:${q?" ":""}${y0(W,q,Q+q)}`}return`${J}${q?`
|
|
49
|
+
${Q}`:""}}`}function y0(Z,q,Q){if(typeof Z==="object"&&Z!==null){if(Array.isArray(Z))return CL(Z,q,Q);if(Z instanceof Date)return`new Date(${Z.getTime()})`;if(Z instanceof RegExp)return Z.toString();return IL(Z,q,Q)}if(typeof Z==="number"){if(Z===1/0)return"Infinity";if(Z===-1/0)return"-Infinity";if(Z===0)return 1/Z===1/0?"0":"-0";if(Z!==Z)return"NaN"}if(typeof Z==="symbol"){let J=Symbol.keyFor(Z);if(J!==void 0)return`Symbol.for(${B7(J)})`}if(typeof Z==="bigint")return`${Z}n`;return B7(Z)}var Iz=function(q,Q={}){let J=Q.compact?"":("indent"in Q)?Q.indent:"\t",Y=Q.compact?"":" ",X=Q.compact?"":`
|
|
50
|
+
`,z=Q.preferConst?"const":"var";if(Q.namedExports===!1||typeof q!=="object"||Array.isArray(q)||q instanceof Date||q instanceof RegExp||q===null){let K=y0(q,Q.compact?null:J,"");return`export default${Y||(/^[{[\-\/]/.test(K)?"":" ")}${K};`}let V="",W=[];for(let[K,$]of Object.entries(q))if(K===M7(K)){if(Q.objectShorthand)W.push(K);else W.push(`${K}:${Y}${K}`);V+=`export ${z} ${K}${Y}=${Y}${y0($,Q.compact?null:J,"")};${X}`}else W.push(`${B7(K)}:${Y}${y0($,Q.compact?null:J,"")}`);return`${V}export default${Y}{${X}${J}${W.join(`,${X}${J}`)}${X}};${X}`},_L={addExtension:wz,attachScopes:Nz,createFilter:Rz,dataToEsm:Iz,extractAssignedNames:j7,makeLegalIdentifier:M7,normalizePath:R6};_z.addExtension=wz;_z.attachScopes=Nz;_z.createFilter=Rz;_z.dataToEsm=Iz;_z.default=_L;_z.extractAssignedNames=j7;_z.makeLegalIdentifier=M7;_z.normalizePath=R6});var Sz=U1((pI,Pz)=>{var x8=s1("path"),Tz=s1("fs"),{resolve:xL}=tX(),{createFilter:kL}=Dz(),F7=s1("svelte/compiler"),H7=Number(F7.VERSION.split(".")[0]),fL=new Set(["emitCss","exclude","extensions","include","onwarn","preprocess"]),vL=/\.svelte(\.[^./\\]+)*\.(js|ts)$/,Az=!1;Pz.exports=function(Z={}){let{compilerOptions:q={},...Q}=Z,J=Q.extensions||[".svelte"],Y=kL(Q.include,Q.exclude);if(H7===3)q.format="esm";for(let W in Q){if(fL.has(W))continue;console.warn(`[rollup-plugin-svelte] Unknown "${W}" option. Please use "compilerOptions" for any Svelte compiler configuration.`)}let X=new Map,{onwarn:z,emitCss:V=!0}=Q;if(V){let W=H7>3?"external":!1;if(q.css)console.warn(`[rollup-plugin-svelte] Forcing \`"compilerOptions.css": ${typeof W==="string"?`"${W}"`:W}\` because "emitCss" was truthy.`);q.css=W}else if(H7>4)q.css="injected";return{name:"svelte",async resolveId(W,K,$){if(X.has(W))return W;if(!K||W[0]==="."||W[0]==="\x00"||x8.isAbsolute(W))return null;let H=W.split("/"),M=H.shift();if(M&&M[0]==="@")M+=`/${H.shift()}`;let O=H.join("/")||".",L,B,C=K;while(C!==(C=x8.dirname(C))){B=x8.join(C,"node_modules",M);let P=x8.join(B,"package.json");if(Tz.existsSync(P)){L=JSON.parse(Tz.readFileSync(P,"utf-8"));break}}if(!L)return;if(O==="."&&L.svelte)return x8.resolve(B,L.svelte);if(!await this.resolve(W,K,{skipSelf:!0,...$}))try{if(xL(L,O,{conditions:["svelte"]}),!Az)console.error(`
|
|
51
51
|
\x1B[1m\x1B[31mWARNING: Your @rollup/plugin-node-resolve configuration's 'exportConditions' array should include 'svelte'. See https://github.com/sveltejs/rollup-plugin-svelte#svelte-exports-condition for more information\x1B[39m\x1B[22m
|
|
52
|
-
`),
|
|
53
|
-
import ${JSON.stringify(
|
|
54
|
-
`,X.set(L,j.css)}if(this.addWatchFile)H.forEach(this.addWatchFile);else j.js.dependencies=H;return j.js}}}});var E0=U1((Q_,cz)=>{var lz={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)",SEP:"/"},hw={...lz,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},gw={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};cz.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:gw,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?hw:lz}}});var b0=U1((cw)=>{var{REGEX_BACKSLASH:mw,REGEX_REMOVE_BACKSLASH:uw,REGEX_SPECIAL_CHARS:dw,REGEX_SPECIAL_CHARS_GLOBAL:lw}=E0();cw.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);cw.hasRegexChars=(Z)=>dw.test(Z);cw.isRegexChar=(Z)=>Z.length===1&&cw.hasRegexChars(Z);cw.escapeRegex=(Z)=>Z.replace(lw,"\\$1");cw.toPosixSlashes=(Z)=>Z.replace(mw,"/");cw.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let Z=navigator.platform.toLowerCase();return Z==="win32"||Z==="windows"}if(typeof process<"u"&&process.platform)return process.platform==="win32";return!1};cw.removeBackslashes=(Z)=>{return Z.replace(uw,(J)=>{return J==="\\"?"":J})};cw.escapeLast=(Z,J,q)=>{let Q=Z.lastIndexOf(J,q);if(Q===-1)return Z;if(Z[Q-1]==="\\")return cw.escapeLast(Z,J,Q-1);return`${Z.slice(0,Q)}\\${Z.slice(Q)}`};cw.removePrefix=(Z,J={})=>{let q=Z;if(q.startsWith("./"))q=q.slice(2),J.prefix="./";return q};cw.wrapOutput=(Z,J={},q={})=>{let Q=q.contains?"":"^",Y=q.contains?"":"$",X=`${Q}(?:${Z})${Y}`;if(J.negated===!0)X=`(?:^(?!${X}).*$)`;return X};cw.basename=(Z,{windows:J}={})=>{let q=Z.split(J?/[\\/]/:"/"),Q=q[q.length-1];if(Q==="")return q[q.length-2];return Q}});var ZV=U1((X_,ez)=>{var nz=b0(),{CHAR_ASTERISK:A3,CHAR_AT:ZO,CHAR_BACKWARD_SLASH:x0,CHAR_COMMA:JO,CHAR_DOT:P3,CHAR_EXCLAMATION_MARK:S3,CHAR_FORWARD_SLASH:tz,CHAR_LEFT_CURLY_BRACE:y3,CHAR_LEFT_PARENTHESES:E3,CHAR_LEFT_SQUARE_BRACKET:qO,CHAR_PLUS:QO,CHAR_QUESTION_MARK:az,CHAR_RIGHT_CURLY_BRACE:YO,CHAR_RIGHT_PARENTHESES:sz,CHAR_RIGHT_SQUARE_BRACKET:XO}=E0(),rz=(Z)=>{return Z===tz||Z===x0},oz=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},zO=(Z,J)=>{let q=J||{},Q=Z.length-1,Y=q.parts===!0||q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,j=!1,L=!1,I=!1,y=!1,_=!1,T=!1,g=!1,h=!1,u=0,E,N,P={value:"",depth:0,isGlob:!1},A=()=>K>=Q,B=()=>W.charCodeAt(K+1),b=()=>{return E=N,W.charCodeAt(++K)};while(K<Q){N=b();let d;if(N===x0){if(_=P.backslashes=!0,N=b(),N===y3)y=!0;continue}if(y===!0||N===y3){u++;while(A()!==!0&&(N=b())){if(N===x0){_=P.backslashes=!0,b();continue}if(N===y3){u++;continue}if(y!==!0&&N===P3&&(N=b())===P3){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===JO){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===YO){if(u--,u===0){y=!1,M=P.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===tz){if(X.push(K),z.push(P),P={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===P3&&K===$+1){$+=2;continue}H=K+1;continue}if(q.noext!==!0){if((N===QO||N===ZO||N===A3||N===az||N===S3)===!0&&B()===E3){if(j=P.isGlob=!0,L=P.isExtglob=!0,h=!0,N===S3&&K===$)g=!0;if(Y===!0){while(A()!==!0&&(N=b())){if(N===x0){_=P.backslashes=!0,N=b();continue}if(N===sz){j=P.isGlob=!0,h=!0;break}}continue}break}}if(N===A3){if(E===A3)I=P.isGlobstar=!0;if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===az){if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===qO){while(A()!==!0&&(d=b())){if(d===x0){_=P.backslashes=!0,b();continue}if(d===XO){O=P.isBracket=!0,j=P.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(q.nonegate!==!0&&N===S3&&K===$){T=P.negated=!0,$++;continue}if(q.noparen!==!0&&N===E3){if(j=P.isGlob=!0,Y===!0){while(A()!==!0&&(N=b())){if(N===E3){_=P.backslashes=!0,N=b();continue}if(N===sz){h=!0;break}}continue}break}if(j===!0){if(h=!0,Y===!0)continue;break}}if(q.noext===!0)L=!1,j=!1;let k=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(k&&j===!0&&H>0)k=W.slice(0,H),G=W.slice(H);else if(j===!0)k="",G=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(rz(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(q.unescape===!0){if(G)G=nz.removeBackslashes(G);if(k&&_===!0)k=nz.removeBackslashes(k)}let F={prefix:S,input:Z,start:$,base:k,glob:G,isBrace:M,isBracket:O,isGlob:j,isExtglob:L,isGlobstar:I,negated:T,negatedExtglob:g};if(q.tokens===!0){if(F.maxDepth=0,!rz(N))z.push(P);F.tokens=z}if(q.parts===!0||q.tokens===!0){let d;for(let f=0;f<X.length;f++){let o=d?d+1:$,t=X[f],Q1=Z.slice(o,t);if(q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=Q1;oz(z[f]),F.maxDepth+=z[f].depth}if(f!==0||Q1!=="")V.push(Q1);d=t}if(d&&d+1<Z.length){let f=Z.slice(d+1);if(V.push(f),q.tokens)z[z.length-1].value=f,oz(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F};ez.exports=zO});var XV=U1((z_,YV)=>{var k0=E0(),M5=b0(),{MAX_LENGTH:w7,POSIX_REGEX_SOURCE:VO,REGEX_NON_SPECIAL_CHARS:WO,REGEX_SPECIAL_CHARS_BACKREF:KO,REPLACEMENTS:JV}=k0,$O=(Z,J)=>{if(typeof J.expandRange==="function")return J.expandRange(...Z,J);Z.sort();let q=`[${Z.join("-")}]`;try{new RegExp(q)}catch(Q){return Z.map((Y)=>M5.escapeRegex(Y)).join("..")}return q},I6=(Z,J)=>{return`Missing ${Z}: "${J}" - use "\\\\${J}" to match literal characters`},qV=(Z)=>{let J=[],q=0,Q=0,Y=0,X="",z=!1;for(let V of Z){if(z===!0){X+=V,z=!1;continue}if(V==="\\"){X+=V,z=!0;continue}if(V==='"'){Y=Y===1?0:1,X+=V;continue}if(Y===0){if(V==="[")q++;else if(V==="]"&&q>0)q--;else if(q===0){if(V==="(")Q++;else if(V===")"&&Q>0)Q--;else if(V==="|"&&Q===0){J.push(X),X="";continue}}}X+=V}return J.push(X),J},GO=(Z)=>{let J=!1;for(let q of Z){if(J===!0){J=!1;continue}if(q==="\\"){J=!0;continue}if(/[?*+@!()[\]{}]/.test(q))return!1}return!0},QV=(Z)=>{let J=Z.trim(),q=!0;while(q===!0)if(q=!1,/^@\([^\\()[\]{}|]+\)$/.test(J))J=J.slice(2,-1),q=!0;if(!GO(J))return;return J.replace(/\\(.)/g,"$1")},UO=(Z)=>{let J=Z.map(QV).filter(Boolean);for(let q=0;q<J.length;q++)for(let Q=q+1;Q<J.length;Q++){let Y=J[q],X=J[Q],z=Y[0];if(!z||Y!==z.repeat(Y.length)||X!==z.repeat(X.length))continue;if(Y===X||Y.startsWith(X)||X.startsWith(Y))return!0}return!1},b3=(Z,J=!0)=>{if(Z[0]!=="+"&&Z[0]!=="*"||Z[1]!=="(")return;let q=0,Q=0,Y=0,X=!1;for(let z=1;z<Z.length;z++){let V=Z[z];if(X===!0){X=!1;continue}if(V==="\\"){X=!0;continue}if(V==='"'){Y=Y===1?0:1;continue}if(Y===1)continue;if(V==="["){q++;continue}if(V==="]"&&q>0){q--;continue}if(q>0)continue;if(V==="("){Q++;continue}if(V===")"){if(Q--,Q===0){if(J===!0&&z!==Z.length-1)return;return{type:Z[0],body:Z.slice(2,z),end:z}}}}},jO=(Z)=>{let J=0,q=[];while(J<Z.length){let Y=b3(Z.slice(J),!1);if(!Y||Y.type!=="*")return;let X=qV(Y.body).map((V)=>V.trim());if(X.length!==1)return;let z=QV(X[0]);if(!z||z.length!==1)return;q.push(z),J+=Y.end+1}if(q.length<1)return;return`${q.length===1?M5.escapeRegex(q[0]):`[${q.map((Y)=>M5.escapeRegex(Y)).join("")}]`}*`},BO=(Z)=>{let J=0,q=Z.trim(),Q=b3(q);while(Q)J++,q=Q.body.trim(),Q=b3(q);return J},MO=(Z,J)=>{if(J.maxExtglobRecursion===!1)return{risky:!1};let q=typeof J.maxExtglobRecursion==="number"?J.maxExtglobRecursion:k0.DEFAULT_MAX_EXTGLOB_RECURSION,Q=qV(Z).map((Y)=>Y.trim());if(Q.length>1){if(Q.some((Y)=>Y==="")||Q.some((Y)=>/^[*?]+$/.test(Y))||UO(Q))return{risky:!0}}for(let Y of Q){let X=jO(Y);if(X)return{risky:!0,safeOutput:X};if(BO(Y)>q)return{risky:!0}}return{risky:!1}},x3=(Z,J)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=JV[Z]||Z;let q={...J},Q=typeof q.maxLength==="number"?Math.min(w7,q.maxLength):w7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let X={type:"bos",value:"",output:q.prepend||""},z=[X],V=q.capture?"":"?:",W=k0.globChars(q.windows),K=k0.extglobChars(W),{DOT_LITERAL:$,PLUS_LITERAL:H,SLASH_LITERAL:M,ONE_CHAR:O,DOTS_SLASH:j,NO_DOT:L,NO_DOT_SLASH:I,NO_DOTS_SLASH:y,QMARK:_,QMARK_NO_DOT:T,STAR:g,START_ANCHOR:h}=W,u=(p)=>{return`(${V}(?:(?!${h}${p.dot?j:$}).)*?)`},E=q.dot?"":L,N=q.dot?_:T,P=q.bash===!0?u(q):g;if(q.capture)P=`(${P})`;if(typeof q.noext==="boolean")q.noextglob=q.noext;let A={input:Z,index:-1,start:0,dot:q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=M5.removePrefix(Z,A),Y=Z.length;let B=[],b=[],k=[],S=X,G,F=()=>A.index===Y-1,d=A.peek=(p=1)=>Z[A.index+p],f=A.advance=()=>Z[++A.index]||"",o=()=>Z.slice(A.index+1),t=(p="",D=0)=>{A.consumed+=p,A.index+=D},Q1=(p)=>{A.output+=p.output!=null?p.output:p.value,t(p.value)},N1=()=>{let p=1;while(d()==="!"&&(d(2)!=="("||d(3)==="?"))f(),A.start++,p++;if(p%2===0)return!1;return A.negated=!0,A.start++,!0},R1=(p)=>{A[p]++,k.push(p)},F1=(p)=>{A[p]--,k.pop()},s=(p)=>{if(S.type==="globstar"){let D=A.braces>0&&(p.type==="comma"||p.type==="brace"),x=p.extglob===!0||B.length&&(p.type==="pipe"||p.type==="paren");if(p.type!=="slash"&&p.type!=="paren"&&!D&&!x)A.output=A.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=P,A.output+=S.output}if(B.length&&p.type!=="paren")B[B.length-1].inner+=p.value;if(p.value||p.output)Q1(p);if(S&&S.type==="text"&&p.type==="text"){S.output=(S.output||S.value)+p.value,S.value+=p.value;return}p.prev=S,z.push(p),S=p},m=(p,D)=>{let x={...K[D],conditions:1,inner:""};x.prev=S,x.parens=A.parens,x.output=A.output,x.startIndex=A.index,x.tokensIndex=z.length;let C=(q.capture?"(":"")+x.open;R1("parens"),s({type:p,value:D,output:A.output?"":O}),s({type:"paren",extglob:!0,value:f(),output:C}),B.push(x)},L1=(p)=>{let D=Z.slice(p.startIndex,A.index+1),x=Z.slice(p.startIndex+2,A.index),C=MO(x,q);if((p.type==="plus"||p.type==="star")&&C.risky){let n=C.safeOutput?(p.output?"":O)+(q.capture?`(${C.safeOutput})`:C.safeOutput):void 0,i=z[p.tokensIndex];i.type="text",i.value=D,i.output=n||M5.escapeRegex(D);for(let B1=p.tokensIndex+1;B1<z.length;B1++)z[B1].value="",z[B1].output="",delete z[B1].suffix;A.output=p.output+i.output,A.backtrack=!0,s({type:"paren",extglob:!0,value:G,output:""}),F1("parens");return}let v=p.close+(q.capture?")":""),c;if(p.type==="negate"){let n=P;if(p.inner&&p.inner.length>1&&p.inner.includes("/"))n=u(q);if(n!==P||F()||/^\)+$/.test(o()))v=p.close=`)$))${n}`;if(p.inner.includes("*")&&(c=o())&&/^\.[^\\/.]+$/.test(c)){let i=x3(c,{...J,fastpaths:!1}).output;v=p.close=`)${i})${n})`}if(p.prev.type==="bos")A.negatedExtglob=!0}s({type:"paren",extglob:!0,value:G,output:v}),F1("parens")};if(q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let p=!1,D=Z.replace(KO,(x,C,v,c,n,i)=>{if(c==="\\")return p=!0,x;if(c==="?"){if(C)return C+c+(n?_.repeat(n.length):"");if(i===0)return N+(n?_.repeat(n.length):"");return _.repeat(v.length)}if(c===".")return $.repeat(v.length);if(c==="*"){if(C)return C+c+(n?P:"");return P}return C?x:`\\${x}`});if(p===!0)if(q.unescape===!0)D=D.replace(/\\/g,"");else D=D.replace(/\\+/g,(x)=>{return x.length%2===0?"\\\\":x?"\\":""});if(D===Z&&q.contains===!0)return A.output=Z,A;return A.output=M5.wrapOutput(D,A,J),A}while(!F()){if(G=f(),G==="\x00")continue;if(G==="\\"){let x=d();if(x==="/"&&q.bash!==!0)continue;if(x==="."||x===";")continue;if(!x){G+="\\",s({type:"text",value:G});continue}let C=/^\\+/.exec(o()),v=0;if(C&&C[0].length>2){if(v=C[0].length,A.index+=v,v%2!==0)G+="\\"}if(q.unescape===!0)G=f();else G+=f();if(A.brackets===0){s({type:"text",value:G});continue}}if(A.brackets>0&&(G!=="]"||S.value==="["||S.value==="[^")){if(q.posix!==!1&&G===":"){let x=S.value.slice(1);if(x.includes("[")){if(S.posix=!0,x.includes(":")){let C=S.value.lastIndexOf("["),v=S.value.slice(0,C),c=S.value.slice(C+2),n=VO[c];if(n){if(S.value=v+n,A.backtrack=!0,f(),!X.output&&z.indexOf(S)===1)X.output=O;continue}}}}if(G==="["&&d()!==":"||G==="-"&&d()==="]")G=`\\${G}`;if(G==="]"&&(S.value==="["||S.value==="[^"))G=`\\${G}`;if(q.posix===!0&&G==="!"&&S.value==="[")G="^";S.value+=G,Q1({value:G});continue}if(A.quotes===1&&G!=='"'){G=M5.escapeRegex(G),S.value+=G,Q1({value:G});continue}if(G==='"'){if(A.quotes=A.quotes===1?0:1,q.keepQuotes===!0)s({type:"text",value:G});continue}if(G==="("){R1("parens"),s({type:"paren",value:G});continue}if(G===")"){if(A.parens===0&&q.strictBrackets===!0)throw SyntaxError(I6("opening","("));let x=B[B.length-1];if(x&&A.parens===x.parens+1){L1(B.pop());continue}s({type:"paren",value:G,output:A.parens?")":"\\)"}),F1("parens");continue}if(G==="["){if(q.nobracket===!0||!o().includes("]")){if(q.nobracket!==!0&&q.strictBrackets===!0)throw SyntaxError(I6("closing","]"));G=`\\${G}`}else R1("brackets");s({type:"bracket",value:G});continue}if(G==="]"){if(q.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){s({type:"text",value:G,output:`\\${G}`});continue}if(A.brackets===0){if(q.strictBrackets===!0)throw SyntaxError(I6("opening","["));s({type:"text",value:G,output:`\\${G}`});continue}F1("brackets");let x=S.value.slice(1);if(S.posix!==!0&&x[0]==="^"&&!x.includes("/"))G=`/${G}`;if(S.value+=G,Q1({value:G}),q.literalBrackets===!1||M5.hasRegexChars(x))continue;let C=M5.escapeRegex(S.value);if(A.output=A.output.slice(0,-S.value.length),q.literalBrackets===!0){A.output+=C,S.value=C;continue}S.value=`(${V}${C}|${S.value})`,A.output+=S.value;continue}if(G==="{"&&q.nobrace!==!0){R1("braces");let x={type:"brace",value:G,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};b.push(x),s(x);continue}if(G==="}"){let x=b[b.length-1];if(q.nobrace===!0||!x){s({type:"text",value:G,output:G});continue}let C=")";if(x.dots===!0){let v=z.slice(),c=[];for(let n=v.length-1;n>=0;n--){if(z.pop(),v[n].type==="brace")break;if(v[n].type!=="dots")c.unshift(v[n].value)}C=$O(c,q),A.backtrack=!0}if(x.comma!==!0&&x.dots!==!0){let v=A.output.slice(0,x.outputIndex),c=A.tokens.slice(x.tokensIndex);x.value=x.output="\\{",G=C="\\}",A.output=v;for(let n of c)A.output+=n.output||n.value}s({type:"brace",value:G,output:C}),F1("braces"),b.pop();continue}if(G==="|"){if(B.length>0)B[B.length-1].conditions++;s({type:"text",value:G});continue}if(G===","){let x=G,C=b[b.length-1];if(C&&k[k.length-1]==="braces")C.comma=!0,x="|";s({type:"comma",value:G,output:x});continue}if(G==="/"){if(S.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",z.pop(),S=X;continue}s({type:"slash",value:G,output:M});continue}if(G==="."){if(A.braces>0&&S.type==="dot"){if(S.value===".")S.output=$;let x=b[b.length-1];S.type="dots",S.output+=G,S.value+=G,x.dots=!0;continue}if(A.braces+A.parens===0&&S.type!=="bos"&&S.type!=="slash"){s({type:"text",value:G,output:$});continue}s({type:"dot",value:G,output:$});continue}if(G==="?"){if(!(S&&S.value==="(")&&q.noextglob!==!0&&d()==="("&&d(2)!=="?"){m("qmark",G);continue}if(S&&S.type==="paren"){let C=d(),v=G;if(S.value==="("&&!/[!=<:]/.test(C)||C==="<"&&!/<([!=]|\w+>)/.test(o()))v=`\\${G}`;s({type:"text",value:G,output:v});continue}if(q.dot!==!0&&(S.type==="slash"||S.type==="bos")){s({type:"qmark",value:G,output:T});continue}s({type:"qmark",value:G,output:_});continue}if(G==="!"){if(q.noextglob!==!0&&d()==="("){if(d(2)!=="?"||!/[!=<:]/.test(d(3))){m("negate",G);continue}}if(q.nonegate!==!0&&A.index===0){N1();continue}}if(G==="+"){if(q.noextglob!==!0&&d()==="("&&d(2)!=="?"){m("plus",G);continue}if(S&&S.value==="("||q.regex===!1){s({type:"plus",value:G,output:H});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||A.parens>0){s({type:"plus",value:G});continue}s({type:"plus",value:H});continue}if(G==="@"){if(q.noextglob!==!0&&d()==="("&&d(2)!=="?"){s({type:"at",extglob:!0,value:G,output:""});continue}s({type:"text",value:G});continue}if(G!=="*"){if(G==="$"||G==="^")G=`\\${G}`;let x=WO.exec(o());if(x)G+=x[0],A.index+=x[0].length;s({type:"text",value:G});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=G,S.output=P,A.backtrack=!0,A.globstar=!0,t(G);continue}let p=o();if(q.noextglob!==!0&&/^\([^?]/.test(p)){m("star",G);continue}if(S.type==="star"){if(q.noglobstar===!0){t(G);continue}let x=S.prev,C=x.prev,v=x.type==="slash"||x.type==="bos",c=C&&(C.type==="star"||C.type==="globstar");if(q.bash===!0&&(!v||p[0]&&p[0]!=="/")){s({type:"star",value:G,output:""});continue}let n=A.braces>0&&(x.type==="comma"||x.type==="brace"),i=B.length&&(x.type==="pipe"||x.type==="paren");if(!v&&x.type!=="paren"&&!n&&!i){s({type:"star",value:G,output:""});continue}while(p.slice(0,3)==="/**"){let B1=Z[A.index+4];if(B1&&B1!=="/")break;p=p.slice(3),t("/**",3)}if(x.type==="bos"&&F()){S.type="globstar",S.value+=G,S.output=u(q),A.output=S.output,A.globstar=!0,t(G);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&!c&&F()){A.output=A.output.slice(0,-(x.output+S.output).length),x.output=`(?:${x.output}`,S.type="globstar",S.output=u(q)+(q.strictSlashes?")":"|$)"),S.value+=G,A.globstar=!0,A.output+=x.output+S.output,t(G);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&p[0]==="/"){let B1=p[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(x.output+S.output).length),x.output=`(?:${x.output}`,S.type="globstar",S.output=`${u(q)}${M}|${M}${B1})`,S.value+=G,A.output+=x.output+S.output,A.globstar=!0,t(G+f()),s({type:"slash",value:"/",output:""});continue}if(x.type==="bos"&&p[0]==="/"){S.type="globstar",S.value+=G,S.output=`(?:^|${M}|${u(q)}${M})`,A.output=S.output,A.globstar=!0,t(G+f()),s({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-S.output.length),S.type="globstar",S.output=u(q),S.value+=G,A.output+=S.output,A.globstar=!0,t(G);continue}let D={type:"star",value:G,output:P};if(q.bash===!0){if(D.output=".*?",S.type==="bos"||S.type==="slash")D.output=E+D.output;s(D);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&q.regex===!0){D.output=G,s(D);continue}if(A.index===A.start||S.type==="slash"||S.type==="dot"){if(S.type==="dot")A.output+=I,S.output+=I;else if(q.dot===!0)A.output+=y,S.output+=y;else A.output+=E,S.output+=E;if(d()!=="*")A.output+=O,S.output+=O}s(D)}while(A.brackets>0){if(q.strictBrackets===!0)throw SyntaxError(I6("closing","]"));A.output=M5.escapeLast(A.output,"["),F1("brackets")}while(A.parens>0){if(q.strictBrackets===!0)throw SyntaxError(I6("closing",")"));A.output=M5.escapeLast(A.output,"("),F1("parens")}while(A.braces>0){if(q.strictBrackets===!0)throw SyntaxError(I6("closing","}"));A.output=M5.escapeLast(A.output,"{"),F1("braces")}if(q.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket"))s({type:"maybe_slash",value:"",output:`${M}?`});if(A.backtrack===!0){A.output="";for(let p of A.tokens)if(A.output+=p.output!=null?p.output:p.value,p.suffix)A.output+=p.suffix}return A};x3.fastpaths=(Z,J)=>{let q={...J},Q=typeof q.maxLength==="number"?Math.min(w7,q.maxLength):w7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=JV[Z]||Z;let{DOT_LITERAL:X,SLASH_LITERAL:z,ONE_CHAR:V,DOTS_SLASH:W,NO_DOT:K,NO_DOTS:$,NO_DOTS_SLASH:H,STAR:M,START_ANCHOR:O}=k0.globChars(q.windows),j=q.dot?$:K,L=q.dot?H:K,I=q.capture?"":"?:",y={negated:!1,prefix:""},_=q.bash===!0?".*?":M;if(q.capture)_=`(${_})`;let T=(E)=>{if(E.noglobstar===!0)return _;return`(${I}(?:(?!${O}${E.dot?W:X}).)*?)`},g=(E)=>{switch(E){case"*":return`${j}${V}${_}`;case".*":return`${X}${V}${_}`;case"*.*":return`${j}${_}${X}${V}${_}`;case"*/*":return`${j}${_}${z}${V}${L}${_}`;case"**":return j+T(q);case"**/*":return`(?:${j}${T(q)}${z})?${L}${V}${_}`;case"**/*.*":return`(?:${j}${T(q)}${z})?${L}${_}${X}${V}${_}`;case"**/.*":return`(?:${j}${T(q)}${z})?${X}${V}${_}`;default:{let N=/^(.*?)\.(\w+)$/.exec(E);if(!N)return;let P=g(N[1]);if(!P)return;return P+X+N[2]}}},h=M5.removePrefix(Z,y),u=g(h);if(u&&q.strictSlashes!==!0)u+=`${z}?`;return u};YV.exports=x3});var WV=U1((V_,VV)=>{var HO=ZV(),k3=XV(),zV=b0(),FO=E0(),LO=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),h1=(Z,J,q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>h1(M,J,q));return(M)=>{for(let O of $){let j=O(M);if(j)return j}return!1}}let Q=LO(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=J||{},X=Y.windows,z=Q?h1.compileRe(Z,J):h1.makeRe(Z,J,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...J,ignore:null,onMatch:null,onResult:null};W=h1(Y.ignore,$,q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:j}=h1.test($,z,J,{glob:Z,posix:X}),L={glob:Z,state:V,regex:z,posix:X,input:$,output:j,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(L);if(M===!1)return L.isMatch=!1,H?L:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(L);return L.isMatch=!1,H?L:!1}if(typeof Y.onMatch==="function")Y.onMatch(L);return H?L:!0};if(q)K.state=V;return K};h1.test=(Z,J,q,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=q||{},z=X.format||(Y?zV.toPosixSlashes:null),V=Z===Q,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===Q;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=h1.matchBase(Z,J,q,Y);else V=J.exec(W);return{isMatch:Boolean(V),match:V,output:W}};h1.matchBase=(Z,J,q)=>{return(J instanceof RegExp?J:h1.makeRe(J,q)).test(zV.basename(Z))};h1.isMatch=(Z,J,q)=>h1(J,q)(Z);h1.parse=(Z,J)=>{if(Array.isArray(Z))return Z.map((q)=>h1.parse(q,J));return k3(Z,{...J,fastpaths:!1})};h1.scan=(Z,J)=>HO(Z,J);h1.compileRe=(Z,J,q=!1,Q=!1)=>{if(q===!0)return Z.output;let Y=J||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=h1.toRegex(V,J);if(Q===!0)W.state=Z;return W};h1.makeRe=(Z,J={},q=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(J.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=k3.fastpaths(Z,J);if(!Y.output)Y=k3(Z,J);return h1.compileRe(Y,J,q,Q)};h1.toRegex=(Z,J)=>{try{let q=J||{};return new RegExp(Z,q.flags||(q.nocase?"i":""))}catch(q){if(J&&J.debug===!0)throw q;return/$^/}};h1.constants=FO;VV.exports=h1});var UV=U1((W_,GV)=>{var KV=WV(),wO=b0();function $V(Z,J,q=!1){if(J&&(J.windows===null||J.windows===void 0))J={...J,windows:wO.isWindows()};return KV(Z,J,q)}Object.assign($V,KV);GV.exports=$V});var H5;(function(Z){Z.start="/**",Z.nostart="/***",Z.delim="*",Z.end="*/"})(H5=H5||(H5={}));function u7(Z){return/^\s+$/.test(Z)}function BJ(Z){let J=Z.match(/\r+$/);return J==null?["",Z]:[Z.slice(-J[0].length),Z.slice(0,-J[0].length)]}function l5(Z){let J=Z.match(/^\s+/);return J==null?["",Z]:[Z.slice(0,J[0].length),Z.slice(J[0].length)]}function MJ(Z){return Z.split(/\n/)}function HJ(Z={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},Z)}function d7(Z={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},Z)}var nW=/^@\S+/;function l7({fence:Z="```"}={}){let J=aW(Z),q=(Q,Y)=>J(Q)?!Y:Y;return function(Y){let X=[[]],z=!1;for(let V of Y){if(nW.test(V.tokens.description)&&!z)X.push([V]);else X[X.length-1].push(V);z=q(V.tokens.description,z)}return X}}function aW(Z){if(typeof Z==="string")return(J)=>J.split(Z).length%2===0;return Z}function c7({startLine:Z=0,markers:J=H5}={}){let q=null,Q=Z;return function(X){let z=X,V=d7();if([V.lineEnd,z]=BJ(z),[V.start,z]=l5(z),q===null&&z.startsWith(J.start)&&!z.startsWith(J.nostart))q=[],V.delimiter=z.slice(0,J.start.length),z=z.slice(J.start.length),[V.postDelimiter,z]=l5(z);if(q===null)return Q++,null;let W=z.trimRight().endsWith(J.end);if(V.delimiter===""&&z.startsWith(J.delim)&&!z.startsWith(J.end))V.delimiter=J.delim,z=z.slice(J.delim.length),[V.postDelimiter,z]=l5(z);if(W){let K=z.trimRight();V.end=z.slice(K.length-J.end.length),z=K.slice(0,-J.end.length)}if(V.description=z,q.push({number:Q,source:X,tokens:V}),Q++,W){let K=q.slice();return q=null,K}return null}}function p7({tokenizers:Z}){return function(q){var Q;let Y=HJ({source:q});for(let X of Z)if(Y=X(Y),(Q=Y.problems[Y.problems.length-1])===null||Q===void 0?void 0:Q.critical)break;return Y}}function i0(){return(Z)=>{let{tokens:J}=Z.source[0],q=J.description.match(/\s*(@(\S+))(\s*)/);if(q===null)return Z.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:Z.source[0].number,critical:!0}),Z;return J.tag=q[1],J.postTag=q[3],J.description=J.description.slice(q[0].length),Z.tag=q[2],Z}}function n0(Z="compact"){let J=rW(Z);return(q)=>{let Q=0,Y=[];for(let[V,{tokens:W}]of q.source.entries()){let K="";if(V===0&&W.description[0]!=="{")return q;for(let $ of W.description){if($==="{")Q++;if($==="}")Q--;if(K+=$,Q===0)break}if(Y.push([W,K]),Q===0)break}if(Q!==0)return q.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:q.source[0].number,critical:!0}),q;let X=[],z=Y[0][0].postDelimiter.length;for(let[V,[W,K]]of Y.entries()){if(W.type=K,V>0)W.type=W.postDelimiter.slice(z)+K,W.postDelimiter=W.postDelimiter.slice(0,z);[W.postType,W.description]=l5(W.description.slice(K.length)),X.push(W.type)}return X[0]=X[0].slice(1),X[X.length-1]=X[X.length-1].slice(0,-1),q.type=J(X),q}}var sW=(Z)=>Z.trim();function rW(Z){if(Z==="compact")return(J)=>J.map(sW).join("");else if(Z==="preserve")return(J)=>J.join(`
|
|
55
|
-
`);else return Z}var
|
|
56
|
-
`)}function n7({startLine:Z=0,fence:
|
|
57
|
-
`)}var QK={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var qC=Object.keys(QK);function E6(Z,J={}){return n7(J)(Z)}var RC=a7();class r0{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z}}replace(Z,J,q,Q){if(Z&&J)if(q!=null)Z[J][q]=Q;else Z[J]=Q}remove(Z,J,q){if(Z&&J)if(q!==null&&q!==void 0)Z[J].splice(q,1);else delete Z[J]}}class r7 extends r0{constructor(Z,J){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(q)=>this.replacement=q},this.enter=Z,this.leave=J}visit(Z,J,q,Q){if(Z){if(this.enter){let X=this.should_skip,z=this.should_remove,V=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,Z,J,q,Q),this.replacement)Z=this.replacement,this.replace(J,q,Q,Z);if(this.should_remove)this.remove(J,q,Q);let W=this.should_skip,K=this.should_remove;if(this.should_skip=X,this.should_remove=z,this.replacement=V,W)return Z;if(K)return null}let Y;for(Y in Z){let X=Z[Y];if(X&&typeof X==="object"){if(Array.isArray(X)){let z=X;for(let V=0;V<z.length;V+=1){let W=z[V];if(FJ(W)){if(!this.visit(W,Z,Y,V))V--}}}else if(FJ(X))this.visit(X,Z,Y,null)}}if(this.leave){let X=this.replacement,z=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,Z,J,q,Q),this.replacement)Z=this.replacement,this.replace(J,q,Q,Z);if(this.should_remove)this.remove(J,q,Q);let V=this.should_remove;if(this.replacement=X,this.should_remove=z,V)return null}}return Z}}function FJ(Z){return Z!==null&&typeof Z==="object"&&"type"in Z&&typeof Z.type==="string"}function o0(Z,{enter:J,leave:q}){return new r7(J,q).visit(Z,null)}import{compile as YK,parse as XK}from"svelte/compiler";var LJ={a:"HTMLAnchorElement",abbr:"HTMLElement",address:"HTMLElement",applet:"HTMLUnknownElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLElement",bdi:"HTMLElement",bdo:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",colgroup:"HTMLTableColElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",kbd:"HTMLElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",main:"HTMLElement",map:"HTMLMapElement",mark:"HTMLElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",picture:"HTMLPictureElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",rp:"HTMLElement",rt:"HTMLElement",ruby:"HTMLElement",s:"HTMLElement",samp:"HTMLElement",script:"HTMLScriptElement",search:"HTMLElement",section:"HTMLElement",select:"HTMLSelectElement",slot:"HTMLSlotElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableCellElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableCellElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",u:"HTMLElement",ul:"HTMLUListElement",var:"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};function wJ(Z){return Z in LJ?LJ[Z]:"HTMLElement"}var zK=/(?:const|let|function)\s+(\w+)\s*[=(]/,VK=/^-\s*/,WK=/\w/,KK=/^\s*$/;function t0(Z){if(!Z)return;let J=Z.lastIndexOf("-");return J>=0?Z.substring(J+1).trim():Z.trim()}function L8(Z){if(Z===void 0)return;let J=Z.replace(VK,"").trim();return J===""?"":J}function OJ(Z){if(Z==="var")return"let";if(Z==="using"||Z==="await using")return"const";return Z}var $K=null,GK=/(\}|\};)$/,UK=/[-_.:/\s]+/,NJ=/^@component/,jK=/\r/g,BK=/[\r\n]+/g;class T1{options;syntaxMode="legacy";source;compiled;parsed;rest_props;extends;componentComment;reactive_vars=new Set;vars=new Set;props=new Map;moduleExports=new Map;slots=new Map;events=new Map;eventDescriptions=new Map;forwardedEvents=new Map;typedefs=new Map;generics=null;bindings=new Map;contexts=new Map;variableInfoCache=new Map;propLocalToPublicName=new Map;restPropLocals=new Set;snippetPropLocals=new Set;componentScope=new Map;scopeDeclarations=new WeakMap;activeScopes=[];sourceLinesCache;constructor(Z){this.options=Z}static mapToArray(Z){return Array.from(Z,([J,q])=>q)}static assignValue(Z){return Z===void 0||Z===""?void 0:Z}resolvePublicPropName(Z){return this.propLocalToPublicName.get(Z)??Z}trackPropLocalName(Z,J=Z){this.propLocalToPublicName.set(J,Z)}getPropByLocalOrPublic(Z){return this.props.get(this.resolvePublicPropName(Z))}getPropTypeByLocalOrPublic(Z){return this.getPropByLocalOrPublic(Z)?.type}declareScopeBinding(Z,J,q){if(T1.assignValue(J)===void 0||Z.has(J))return;Z.set(J,q)}resolveIdentifierToReactiveProp(Z){for(let J=this.activeScopes.length-1;J>=0;J-=1){let q=this.activeScopes[J]?.get(Z);if(!q)continue;return q.kind==="prop"?q.publicPropName:void 0}return}collectPatternIdentifiers(Z,J=new Set){if(!Z||typeof Z!=="object"||!("type"in Z))return J;switch(Z.type){case"Identifier":J.add(Z.name);break;case"AssignmentPattern":this.collectPatternIdentifiers(Z.left,J);break;case"ArrayPattern":for(let q of Z.elements)this.collectPatternIdentifiers(q??void 0,J);break;case"ObjectPattern":for(let q of Z.properties)if(q.type==="Property")this.collectPatternIdentifiers(q.value,J);else if(q.type==="RestElement")this.collectPatternIdentifiers(q.argument,J);break;case"RestElement":this.collectPatternIdentifiers(Z.argument,J);break}return J}markReactivePropsFromMutationTarget(Z){let J=this.collectPatternIdentifiers(Z);if(!J)return;for(let q of J){let Q=this.resolveIdentifierToReactiveProp(q);if(Q)this.reactive_vars.add(Q)}}isScopeOwner(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return!1;switch(String(Z.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}isFunctionScopeOwner(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return!1;let J=String(Z.type);return J==="FunctionDeclaration"||J==="FunctionExpression"||J==="ArrowFunctionExpression"}getOrCreateScope(Z){let J=this.scopeDeclarations.get(Z);if(!J)J=new Map,this.scopeDeclarations.set(Z,J);return J}declareVariableDeclaration(Z,J,q,Q){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="VariableDeclaration")return;let Y=Q?.allowRunesProps??!1,X=Q?.forceProp??!1,z=Z;for(let V of z.declarations){if(Y&&this.isCallExpressionNamed(V.init,"$props")){for(let $ of this.extractRunesScopeBindings(z,V))this.declareScopeBinding($.kind==="prop"?J:q,$.name,$.kind==="prop"?{kind:"prop",publicPropName:$.publicPropName}:{kind:"local"});continue}let W=z.kind==="var"?q:J,K=X?"prop":"local";for(let $ of this.collectPatternIdentifiers(V.id))this.declareScopeBinding(W,$,K==="prop"?{kind:"prop",publicPropName:$}:{kind:"local"})}}declareFunctionLikeScopeBindings(Z,J){if("id"in Z&&Z.id&&typeof Z.id==="object"&&"name"in Z.id&&typeof Z.id.name==="string")this.declareScopeBinding(J,Z.id.name,{kind:"local"});for(let q of Z.params)for(let Q of this.collectPatternIdentifiers(q))this.declareScopeBinding(J,Q,{kind:"local"})}collectDirectBlockDeclarations(Z,J,q){if(!Array.isArray(Z))return;for(let Q of Z){if(!Q||typeof Q!=="object"||!("type"in Q))continue;switch(Q.type){case"VariableDeclaration":this.declareVariableDeclaration(Q,J,q);break;case"FunctionDeclaration":if(Q.id?.name)this.declareScopeBinding(J,Q.id.name,{kind:"local"});break;case"ClassDeclaration":if(Q.id?.name)this.declareScopeBinding(J,Q.id.name,{kind:"local"});break}}}extractRunesScopeBindings(Z,J){let q=[];if(J.id.type==="Identifier")return q.push({kind:"local",name:J.id.name}),q;if(J.id.type!=="ObjectPattern")return q;for(let Q of J.id.properties){if(Q.type==="RestElement"){if(Q.argument.type==="Identifier")q.push({kind:"local",name:Q.argument.name});continue}if(Q.computed)continue;let Y=this.getPropertyName(Q.key);if(!Y)continue;let X;if(Q.value.type==="Identifier")X=Q.value.name;else if(Q.value.type==="AssignmentPattern"&&Q.value.left.type==="Identifier")X=Q.value.left.name;if(!X)continue;q.push({kind:"prop",name:X,publicPropName:Y})}return q}collectComponentScopeDeclarations(Z){if(!Z||typeof Z!=="object")return;let J="content"in Z&&Z.content&&typeof Z.content==="object"&&"body"in Z.content&&Array.isArray(Z.content.body)?Z.content:("body"in Z)&&Array.isArray(Z.body)?Z:void 0;if(!J||!("body"in J)||!Array.isArray(J.body))return;for(let q of J.body){if(!q||typeof q!=="object"||!("type"in q))continue;switch(q.type){case"ImportDeclaration":for(let Q of q.specifiers??[])if(Q.local?.name)this.declareScopeBinding(this.componentScope,Q.local.name,{kind:"local"});break;case"VariableDeclaration":this.declareVariableDeclaration(q,this.componentScope,this.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(q.id?.name)this.declareScopeBinding(this.componentScope,q.id.name,{kind:"local"});break;case"ClassDeclaration":if(q.id?.name)this.declareScopeBinding(this.componentScope,q.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!q.declaration||typeof q.declaration!=="object"||!("type"in q.declaration))break;if(q.declaration.type==="VariableDeclaration")this.declareVariableDeclaration(q.declaration,this.componentScope,this.componentScope,{forceProp:!0});else if(q.declaration.type==="FunctionDeclaration"&&q.declaration.id?.name)this.declareScopeBinding(this.componentScope,q.declaration.id.name,{kind:"prop",publicPropName:q.declaration.id.name});break}}}collectNestedScopeDeclarations(Z){let J=[this.componentScope];o0(Z,{enter:(q)=>{if(!this.isScopeOwner(q))return;let Q=this.getOrCreateScope(q),Y=J[J.length-1]??this.componentScope;switch(String(q.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":this.declareFunctionLikeScopeBindings(q,Q);break;case"BlockStatement":this.collectDirectBlockDeclarations(q.body,Q,Y);break;case"CatchClause":if("param"in q)for(let z of this.collectPatternIdentifiers(q.param))this.declareScopeBinding(Q,z,{kind:"local"});break;case"EachBlock":{let z=q;for(let V of this.collectPatternIdentifiers(z.context))this.declareScopeBinding(Q,V,{kind:"local"});if(typeof z.index==="string")this.declareScopeBinding(Q,z.index,{kind:"local"});else if(z.index&&"name"in z.index)this.declareScopeBinding(Q,z.index.name,{kind:"local"});break}case"ThenBlock":if("value"in q)for(let z of this.collectPatternIdentifiers(q.value))this.declareScopeBinding(Q,z,{kind:"local"});break;case"CatchBlock":if("error"in q)for(let z of this.collectPatternIdentifiers(q.error))this.declareScopeBinding(Q,z,{kind:"local"});break}if(this.isFunctionScopeOwner(q))J.push(Q)},leave:(q)=>{if(this.isFunctionScopeOwner(q))J.pop()}})}buildScopeDeclarations(Z){this.componentScope.clear(),this.scopeDeclarations=new WeakMap,this.activeScopes.length=0,this.collectComponentScopeDeclarations(this.parsed?.instance),this.collectNestedScopeDeclarations(Z)}createRestPropsFromParent(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return;let J=String(Z.type);if(J!=="InlineComponent"&&J!=="Element")return;let q="name"in Z&&typeof Z.name==="string"?Z.name:void 0;if(!q)return;let Q=J==="InlineComponent"?{type:"InlineComponent",name:q}:{type:"Element",name:q};if(J==="Element"&&q==="svelte:element"&&"tag"in Z&&typeof Z.tag==="string")Q.thisValue=Z.tag;return Q}maybeSetRestProps(Z){if(this.rest_props!==void 0)return;let J=this.createRestPropsFromParent(Z);if(J)this.rest_props=J}isCallExpressionNamed(Z,J){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return!1;let q=Z;return!!q.callee&&typeof q.callee==="object"&&"name"in q.callee&&q.callee.name===J}getPropertyName(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return;if(Z.type==="Identifier")return Z.name;if(Z.type==="Literal")return Z.value==null?void 0:String(Z.value);return}logUnsupportedRunesPattern(Z){if(this.options?.verbose&&this.syntaxMode==="runes")console.warn(`Warning: ${Z}`)}static formatComment(Z){let J=Z;if(!J.startsWith("/*"))J=`/*${J}`;if(!J.endsWith("*/"))J+="*/";return J}getCommentTags(Z){let J=Z[0]?.tags??[],q=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","event","typedef","callback"]),Q,Y=[],X,z=[];for(let V of J)if(V.tag==="type")Q=V;else if(V.tag==="param")Y.push(V);else if(V.tag==="returns"||V.tag==="return")X=V;else if(!q.has(V.tag))z.push(V);return{type:Q,param:Y,returns:X,additional:z,description:Z[0]?.description}}static findJSDocComment(Z){if(!Z||Z.length===0)return;let J=Z[Z.length-1];return J&&typeof J==="object"&&"value"in J?J:void 0}findAdjacentJSDocComment(Z,J){if(!Z||Z.length===0||J===void 0||!this.source)return;for(let q=Z.length-1;q>=0;q--){let Q=Z[q];if(!Q||typeof Q!=="object"||!("value"in Q)||!("end"in Q))continue;if(typeof Q.end!=="number")continue;let Y=this.source.slice(Q.end,J);if(KK.test(Y))return Q}return}processNodeJSDoc(Z){if(!Z?.leadingComments)return;let J=this.findAdjacentJSDocComment(Z.leadingComments,Z.start);if(!J)return;return this.processJSDocComment([J])}processJSDocComment(Z){if(!Z)return;let J=T1.findJSDocComment(Z);if(!J)return;let q=E6(T1.formatComment(J.value),{spacing:"preserve"}),{type:Q,param:Y,returns:X,additional:z,description:V}=this.getCommentTags(q),W,K,$,H;if(Q)W=this.aliasType(Q.type);if(Y.length>0)K=Y.filter((O)=>!O.name.includes(".")).map((O)=>({name:O.name,type:this.aliasType(O.type),description:L8(O.description),optional:O.optional||!1}));if(X)$=this.aliasType(X.type);let M=T1.assignValue(V?.trim());if(M||z.length>0){let O=[];if(M)O.push(M);for(let j of z){let L=`@${j.tag}${j.name?` ${j.name}`:""}${j.description?` ${j.description}`:""}`;O.push(L)}H=O.join(`
|
|
58
|
-
`)}return{type:W,params:K,returnType:$,description:H}}isNumericConstant(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return!1;if(Z.type!=="MemberExpression")return!1;let J=Z,q=J.object&&"name"in J.object?J.object.name:void 0,Q=J.property&&"name"in J.property?J.property.name:void 0;if(!q||!Q)return!1;if(q==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(Q);if(q==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(Q);return!1}sourceAtPos(Z,J){return this.source?.slice(Z,J)}processInitializer(Z){let J,q,Q=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:J,type:q,isFunction:Q};if(Z.type==="ObjectExpression"||Z.type==="BinaryExpression"||Z.type==="ArrayExpression"||Z.type==="ArrowFunctionExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end)?.replace(BK," ");if(q=J,Q=Z.type==="ArrowFunctionExpression",Z.type==="BinaryExpression"){let X=Z;if(X.left&&typeof X.left==="object"&&"type"in X.left&&X.left.type==="Literal"&&"value"in X.left&&typeof X.left.value==="string")q="string"}if(Z.type==="ArrowFunctionExpression")q="(...args: any[]) => any",J=void 0}else if(Z.type==="UnaryExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end);if(Y.argument){if(typeof Y.argument==="object"&&"type"in Y.argument&&Y.argument.type==="UnaryExpression")q=this.processInitializer(Y.argument).type;else if(typeof Y.argument==="object"&&"value"in Y.argument)q=typeof Y.argument.value}}else if(Z.type==="NewExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end);if(Y.callee&&typeof Y.callee==="object"&&"type"in Y.callee&&Y.callee.type==="Identifier"){let X=Y.callee.name;if(X==="Date")q="Date";else if(X==="Map")q="Map<any, any>";else if(X==="Set")q="Set<any>";else if(X==="WeakMap")q="WeakMap<object, any>";else if(X==="WeakSet")q="WeakSet<object>";else if(X==="Array")q="any[]";else if(X==="RegExp"||X==="Regexp")q="RegExp";else if(X==="Error")q="Error";else q=X}}else if(Z.type==="CallExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end)}else if(Z.type==="Identifier"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end)}else if(Z.type==="MemberExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end);if(this.isNumericConstant(Z))q="number"}else if(Z.type==="TemplateLiteral"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end);q="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(J=Z.raw,"value"in Z)q=Z.value==null?void 0:typeof Z.value}return{value:J,type:q,isFunction:Q}}unwrapBindableInitializer(Z){if(this.isCallExpressionNamed(Z,"$bindable"))return{init:Z.arguments[0],bindable:!0};return{init:Z,bindable:!1}}parseRunesPropsDeclaration(Z){for(let J of Z.declarations){if(!this.isCallExpressionNamed(J.init,"$props"))continue;let q=this.processNodeJSDoc(Z);if(J.id.type==="Identifier"){this.restPropLocals.add(J.id.name);continue}if(J.id.type!=="ObjectPattern"){this.logUnsupportedRunesPattern("Skipping unsupported $props() declaration pattern.");continue}for(let Q of J.id.properties){if(Q.type==="RestElement"){if(Q.argument.type==="Identifier")this.restPropLocals.add(Q.argument.name);else this.logUnsupportedRunesPattern("Skipping unsupported rest element in $props() destructuring.");continue}if(Q.computed){this.logUnsupportedRunesPattern("Skipping computed property in $props() destructuring.");continue}let Y=this.getPropertyName(Q.key);if(!Y){this.logUnsupportedRunesPattern("Skipping unsupported property name in $props() destructuring.");continue}let X,z;if(Q.value.type==="Identifier")X=Q.value.name;else if(Q.value.type==="AssignmentPattern"){if(Q.value.left.type!=="Identifier"){this.logUnsupportedRunesPattern(`Skipping nested pattern for prop "${Y}" in $props() destructuring.`);continue}X=Q.value.left.name,z=Q.value.right}else{this.logUnsupportedRunesPattern(`Skipping nested pattern for prop "${Y}" in $props() destructuring.`);continue}if(!X)continue;if(this.trackPropLocalName(Y,X),Y==="children")this.snippetPropLocals.add(X);let{init:V,bindable:W}=this.unwrapBindableInitializer(z),K=V==null?{isFunction:!1}:this.processInitializer(V),{value:$,type:H,isFunction:M}=K,O=q?.type??H;if(W)this.reactive_vars.add(Y);this.addProp(Y,{name:Y,kind:"let",description:q?.description,type:O,value:$,params:q?.params,returnType:q?.returnType,isFunction:M,isFunctionDeclaration:!1,isRequired:V==null,constant:!1,reactive:W})}}}inferSlotPropValueFromExpression(Z){let J={value:void 0,replace:!1};if(!Z||typeof Z!=="object"||!("type"in Z))return J;if(Z.type==="Identifier")J.value=Z.name,J.replace=!0;else if(Z.type==="Literal")J.value=String(Z.value);else if(Z.type==="MemberExpression")J.value=this.resolveMemberExpressionType(Z);else if((Z.type==="ObjectExpression"||Z.type==="TemplateLiteral")&&"start"in Z&&"end"in Z&&typeof Z.start==="number"&&typeof Z.end==="number")J.value=this.sourceAtPos(Z.start,Z.end);return J}buildSlotPropsFromObjectExpression(Z){let J={};for(let q of Z.properties){if(q.type!=="Property"||q.computed)continue;let Q=this.getPropertyName(q.key);if(!Q)continue;J[Q]=this.inferSlotPropValueFromExpression(q.value)}return J}extractRenderTagInfo(Z){let J=Z;if(J&&typeof J==="object"&&"type"in J&&J.type==="ChainExpression")J=J.expression;if(!J||typeof J!=="object"||!("type"in J)||J.type!=="CallExpression")return null;let q=J;if(!q.callee||typeof q.callee!=="object"||!("type"in q.callee))return null;if(q.callee.type!=="Identifier")return null;return{localName:q.callee.name,argument:q.arguments[0]}}addProp(Z,J){if(T1.assignValue(Z)===void 0)return;if(this.trackPropLocalName(Z),this.props.has(Z)){let q=this.props.get(Z);this.props.set(Z,{...q,...J})}else this.props.set(Z,J)}addModuleExport(Z,J){if(T1.assignValue(Z)===void 0)return;if(this.moduleExports.has(Z)){let q=this.moduleExports.get(Z);this.moduleExports.set(Z,{...q,...J})}else this.moduleExports.set(Z,J)}aliasType(Z){if(Z==="*")return"any";return Z.trim()}extractPropertyType(Z,J){let q=Z.trim();if(!q.startsWith("{")||!q.endsWith("}"))return;let Q=q.slice(1,-1),Y=[],X=0,z="";for(let V of Q)if(V==="{"||V==="<"||V==="("||V==="[")X++,z+=V;else if(V==="}"||V===">"||V===")"||V==="]")X--,z+=V;else if((V===";"||V===",")&&X===0)Y.push(z.trim()),z="";else z+=V;if(z.trim())Y.push(z.trim());for(let V of Y){if(!V.startsWith(J))continue;let W=V.slice(J.length);if(W.length>0&&WK.test(W[0]))continue;let K=W.trimStart();if(K.startsWith("?"))K=K.slice(1).trimStart();if(K.startsWith(":"))return K.slice(1).trim()}return}resolveMemberExpressionType(Z){let J=Z;if(J.computed||J.object?.type!=="Identifier"||J.property?.type!=="Identifier")return;let q=J.object.name,Q=J.property.name;if(!q||!Q)return;let Y=this.getPropTypeByLocalOrPublic(q)??this.findVariableTypeAndDescription(q)?.type;if(!Y)return;return this.extractPropertyType(Y,Q)}addSlot({slot_name:Z,slot_props:J,slot_fallback:q,slot_description:Q}){let Y=Z===void 0||Z==="",X=Y?$K:Z??"",z=T1.assignValue(q),V=T1.assignValue(J),W=t0(Q);if(this.slots.has(X)){let K=this.slots.get(X);if(K)this.slots.set(X,{...K,default:K.default??Y,fallback:z,slot_props:K.slot_props===void 0?V:K.slot_props,description:K.description||W})}else this.slots.set(X,{name:X,default:Y,fallback:z,slot_props:J,description:W})}addDispatchedEvent({name:Z,detail:J,has_argument:q,description:Q}){if(Z===void 0)return;let Y=!q&&!J?"null":T1.assignValue(J),X=t0(Q);if(this.events.has(Z)){let z=this.events.get(Z);this.events.set(Z,{...z,detail:z.detail===void 0?Y:z.detail,description:z.description||X})}else this.events.set(Z,{type:"dispatched",name:Z,detail:Y,description:X})}parseCustomTypes(){if(!this.source)return;for(let{tags:Z,description:J,source:q}of E6(this.source,{spacing:"preserve"})){let Q,Y,X,z=[],V,W,K,$=[],H,M,O=[],j,L=!1,I=!0,y=new Map,_=new Set;for(let E of Z)if(E.source&&E.source.length>0)_.add(E.source[0].number);for(let E of q)if(!E.tokens.tag&&E.tokens.description&&E.tokens.description.trim()!=="}")y.set(E.number,E.tokens.description);let T=(E)=>{if(!E||E.length===0)return;let N=E[0].number,P=[],A=!1;for(let B=N-1;B>=1;B--){if(_.has(B))break;let b=y.get(B);if(b)P.unshift(b),A=!0;else if(A){let k=q.find((G)=>G.number===B);if(!(!k||!k.tokens.tag&&(!k.tokens.description||k.tokens.description.trim()==="")))break}}return P.length>0?P.join(`
|
|
59
|
-
`).trim():void 0},
|
|
60
|
-
${Y}${K}: ${X};`;return`/** ${$} */ ${Y}${K}: ${X};`}return`${Y}${K}: ${X};`}).join(
|
|
61
|
-
`:" ");return
|
|
62
|
-
${
|
|
63
|
-
}`:`{ ${
|
|
64
|
-
`);let Z=this.sourceLinesCache;for(let
|
|
65
|
-
`),K=E6(W,{spacing:"preserve"}),{type:$,description:H}=this.getCommentTags(K);if($)this.variableInfoCache.set(Y,{type:this.aliasType($.type),description:H||$.description});break}}}}}static VAR_NAME_REGEX_CACHE=new Map;static getVarNameRegexes(Z){let
|
|
66
|
-
`);let
|
|
67
|
-
`),
|
|
68
|
-
`),this.buildVariableInfoCache(),this.parseCustomTypes(),this.parsed?.module)o0(this.parsed?.module,{enter:(j)=>{if(j.type==="ExportNamedDeclaration"){if(j.declaration==null)return;if(!j.declaration||typeof j.declaration!=="object"||!("type"in j.declaration))return;let L,I,y,_=!1,T,g,h=!1,u,E;if(j.declaration.type==="FunctionDeclaration"){let P=j.declaration;if(!P.id?.name)return;L=P.id.name,I="function",T=void 0,g="() => any",h=!0,_=!0}else if(j.declaration.type==="VariableDeclaration"){let P=j.declaration,A=P.declarations[0];if(!A||typeof A!=="object"||!("id"in A))return;let{id:B,init:b}=A;if(!B||typeof B!=="object"||!("name"in B))return;L=B.name,I=OJ(P.kind),{value:T,type:g,isFunction:h}=b==null?{isFunction:!1}:this.processInitializer(b)}else return;let N=this.processNodeJSDoc(j);if(N){if(N.type)g=N.type;if(u=N.params,E=N.returnType,N.description)y=N.description}if(_&&g==="() => any"&&E)if(u&&u.length>0)g=`(${u.map((B)=>{let b=B.optional?"?":"";return`${B.name}${b}: ${B.type}`}).join(", ")}) => ${E}`;else g=`() => ${E}`;if(!y&&g&&this.typedefs.has(g))y=this.typedefs.get(g)?.description;this.addModuleExport(L,{name:L,kind:I,description:y,type:g,value:T,params:u,returnType:E,isFunction:h,isFunctionDeclaration:_,isRequired:!1,constant:I==="const",reactive:!1})}}});let Y,X=[],z={type:"ComponentRoot",instance:this.parsed.instance,html:this.parsed.html};if(this.buildScopeDeclarations(z),this.activeScopes.push(this.componentScope),o0(z,{enter:(j,L,I)=>{let y=this.scopeDeclarations.get(j);if(y)this.activeScopes.push(y);if(j.type==="AssignmentExpression")this.markReactivePropsFromMutationTarget(j.left);if(j.type==="UpdateExpression")this.markReactivePropsFromMutationTarget(j.argument);if(j.type==="CallExpression"){let _=j,T=_.callee&&typeof _.callee==="object"&&"name"in _.callee?_.callee.name:void 0;if(T==="createEventDispatcher"){if(L&&typeof L==="object"&&"id"in L&&L.id&&typeof L.id==="object"&&"name"in L.id)Y=L.id.name}if(T==="setContext")this.parseSetContextCall(j,L??void 0);if(T)X.push({name:T,arguments:_.arguments})}if(j&&typeof j==="object"&&"type"in j&&String(j.type)==="Spread"){let _=j;if(_.expression?.name==="$$restProps"||this.restPropLocals.has(_.expression?.name??""))this.maybeSetRestProps(L)}if(j.type==="VariableDeclaration"){if(this.vars.add(j),L&&typeof L==="object"&&"type"in L&&L.type==="Program"&&j.declarations.some((_)=>this.isCallExpressionNamed(_.init,"$props")))this.parseRunesPropsDeclaration(j)}if(j.type==="ExportNamedDeclaration"){if(j.declaration==null&&j.specifiers.length===0)return;let _;if(j.declaration==null&&j.specifiers[0]?.type==="ExportSpecifier"){let k=j.specifiers[0],S=k.local&&typeof k.local==="object"&&"name"in k.local?k.local.name:void 0,G=k.exported&&typeof k.exported==="object"&&"name"in k.exported?k.exported.name:void 0;if(!S||!G)return;let F;for(let d of Array.from(this.vars))if(d.declarations.some((f)=>f.id&&typeof f.id==="object"&&("type"in f.id)&&f.id.type==="Identifier"&&f.id.name===S)){F=d;break}j.declaration=F,_=G}if(j.declaration==null)return;if(!j.declaration||typeof j.declaration!=="object"||!("type"in j.declaration))return;let T,g,h=!1,u,E,N=!1,P,A,B=!1;if(j.declaration.type==="FunctionDeclaration"){let k=j.declaration;if(!k.id?.name)return;_??=k.id.name,T="function",u=void 0,E="() => any",N=!0,h=!0,B=!1}else if(j.declaration.type==="VariableDeclaration"){let k=j.declaration,S=k.declarations[0];if(!S||typeof S!=="object"||!("id"in S))return;let{id:G,init:F}=S;if(G&&typeof G==="object"&&"name"in G)_??=G.name;else return;T=OJ(k.kind),B=T==="let"&&F==null,{value:u,type:E,isFunction:N}=F==null?{isFunction:!1}:this.processInitializer(F)}else return;let b=this.processNodeJSDoc(j);if(b){if(b.type)E=b.type;if(P=b.params,A=b.returnType,b.description)g=b.description}if(h&&E==="() => any"&&A)if(P&&P.length>0)E=`(${P.map((G)=>{let F=G.optional?"?":"";return`${G.name}${F}: ${G.type}`}).join(", ")}) => ${A}`;else E=`() => ${A}`;if(!g&&E&&this.typedefs.has(E))g=this.typedefs.get(E)?.description;this.addProp(_,{name:_,kind:T,description:g,type:E,value:u,params:P,returnType:A,isFunction:N,isFunctionDeclaration:h,isRequired:B,constant:T==="const",reactive:this.reactive_vars.has(_)})}if(j&&typeof j==="object"&&"type"in j&&String(j.type)==="Comment"){let T=j?.data?.trim()??"";if(NJ.test(T))this.componentComment=T.replace(NJ,"").replace(jK,"")}if(j&&typeof j==="object"&&"type"in j&&String(j.type)==="Slot"){let _=j,T=_.attributes?.find((u)=>u.name==="name")?.value?.[0]?.data,g=(_.attributes||[]).filter((u)=>u.name!=="name").reduce((u,E)=>{let N={value:void 0,replace:!1},P=E.value;if(P===void 0)return u;if(P[0]){let A=P[0],{type:B,expression:b,raw:k,start:S,end:G}=A;if(B==="Text"&&k!==void 0)N.value=k;else if(B==="AttributeShorthand"&&b&&typeof b==="object"&&"name"in b)N.value=b.name,N.replace=!0;if(b&&typeof b==="object"&&"type"in b){if(b.type==="Literal"&&"value"in b)N.value=String(b.value);else if(b.type==="MemberExpression")N.value=this.resolveMemberExpressionType(b);else if(b.type!=="Identifier"){if(S!==void 0&&G!==void 0){if(b.type==="ObjectExpression"||b.type==="TemplateLiteral")N.value=this.sourceAtPos(S+1,G-1)}}}}if(E.name)u[E.name]=N;return u},{}),h=_.children?.map(({start:u,end:E})=>{if(u===void 0||E===void 0)return"";return this.sourceAtPos(u,E)??""}).join("").trim();this.addSlot({slot_name:T,slot_props:JSON.stringify(g,null,2),slot_fallback:h})}if(j&&typeof j==="object"&&"type"in j&&String(j.type)==="RenderTag"){let _=j,T=this.extractRenderTagInfo(_.expression);if(T){let g=this.propLocalToPublicName.get(T.localName);if(g){this.snippetPropLocals.add(T.localName);let h;if(T.argument==null)h=JSON.stringify({},null,2);else if(typeof T.argument==="object"&&"type"in T.argument&&T.argument.type==="ObjectExpression")h=JSON.stringify(this.buildSlotPropsFromObjectExpression(T.argument),null,2);else this.logUnsupportedRunesPattern(`Skipping unsupported {@render ...} argument for snippet prop "${g}".`);this.addSlot({slot_name:g==="children"?void 0:g,slot_props:h})}}}if(j&&typeof j==="object"&&"type"in j&&String(j.type)==="EventHandler"){let _=j;if(_.expression==null&&_.name){if(L!=null&&typeof L==="object"&&"name"in L){let T=typeof L.name==="string"?L.name:void 0,g="type"in L?String(L.type):void 0;if(T&&g){let h=g==="InlineComponent"?{type:"InlineComponent",name:T}:{type:"Element",name:T};this.forwardedEvents.set(_.name,h);let u=this.events.get(_.name),E=this.eventDescriptions.get(_.name),N=t0(E);if(!u)this.events.set(_.name,{type:"forwarded",name:_.name,element:h,description:N});else if(u.type==="forwarded"&&N&&!u.description)this.events.set(_.name,{...u,description:N})}}}}if(L&&typeof L==="object"&&"type"in L&&(String(L.type)==="Element"||String(L.type)==="InlineComponent")&&j&&typeof j==="object"&&"type"in j&&String(j.type)==="Binding"){let _=j;if(_.expression?.name){let T=this.resolveIdentifierToReactiveProp(_.expression.name);if(T)this.reactive_vars.add(T)}if(String(L.type)==="Element"&&_.name==="this"&&_.expression?.name&&"name"in L&&typeof L.name==="string"){let T=this.resolveIdentifierToReactiveProp(_.expression.name);if(!T)return;let g=L.name;if(this.bindings.has(T)){let h=this.bindings.get(T);if(h&&!h.elements.includes(g))this.bindings.set(T,{...h,elements:[...h.elements,g]})}else this.bindings.set(T,{elements:[g]})}}},leave:(j)=>{if(this.scopeDeclarations.has(j))this.activeScopes.pop()}}),Y!==void 0){for(let j of X)if(j.name===Y){let L=j.arguments[0],I=L&&typeof L==="object"&&"value"in L?L.value:void 0,y=j.arguments[1],_=y&&typeof y==="object"&&"value"in y?y.value:void 0;if(I!=null)this.addDispatchedEvent({name:String(I),detail:_==null?"":String(_),has_argument:Boolean(y)})}}let V=new Set;if(Y!==void 0){for(let j of X)if(j.name===Y){let L=j.arguments[0],I=L&&typeof L==="object"&&"value"in L?L.value:void 0;if(I!=null)V.add(String(I))}}this.forwardedEvents.forEach((j,L)=>{let I=this.events.get(L);if(I&&I.type==="dispatched"&&!V.has(L)){let y=this.eventDescriptions.get(L),_=t0(y),T={type:"forwarded",name:L,element:j,description:_};if(I.detail!==void 0&&I.detail!=="undefined")T.detail=I.detail;this.events.set(L,T)}});let W=T1.mapToArray(this.props).map((j)=>{if(this.bindings.has(j.name)){let L=this.bindings.get(j.name)?.elements.sort().map((I)=>wJ(I)).join(" | ");return{...j,type:`null | ${L}`,reactive:j.reactive||this.reactive_vars.has(j.name)}}return{...j,reactive:j.reactive||this.reactive_vars.has(j.name)}});this.activeScopes.length=0;let K=T1.mapToArray(this.slots).map((j)=>{try{if(!j.slot_props)return j;let L=JSON.parse(j.slot_props),I=[];for(let _ of Object.keys(L)){if(L[_].replace&&L[_].value!==void 0)L[_].value=this.getPropTypeByLocalOrPublic(L[_].value);if(L[_].value===void 0)L[_].value="any";I.push(`${_}: ${L[_].value}`)}let y=I.length===0?"Record<string, never>":`{ ${I.join(", ")} }`;return{...j,slot_props:y}}catch(L){return j}}).sort((j,L)=>{let I=j.name??"",y=L.name??"";if(I<y)return-1;if(I>y)return 1;return 0}),$=T1.mapToArray(this.moduleExports),H=T1.mapToArray(this.events).map((j)=>{if(j.type==="forwarded")return{...j,element:j.element.name};return j}).sort((j,L)=>{let I=j.name.localeCompare(L.name);if(I!==0)return I;let y=j.type.localeCompare(L.type);if(y!==0)return y;if(j.type==="forwarded"&&L.type==="forwarded"){let _=j.element.localeCompare(L.element);if(_!==0)return _}return(j.detail??"").localeCompare(L.detail??"")}),M=T1.mapToArray(this.typedefs),O=T1.mapToArray(this.contexts);return{props:W,moduleExports:$,slots:K,events:H,typedefs:M,generics:this.generics,rest_props:this.rest_props,extends:this.extends,componentComment:this.componentComment,contexts:O}}}var hq=F8(_J(),1),gq=F8(PJ(),1),mq=F8(yJ(),1),uq=F8(Gq(),1);import U9,{dirname as B9,resolve as l8,extname as TG,normalize as AG,sep as PG}from"path";import p8,{realpathSync as SG}from"fs";import{promisify as i8}from"util";import{pathToFileURL as Q4,fileURLToPath as kq}from"url";var bq=F8(Sq(),1);import{extname as jI,sep as Eq,resolve as OG,posix as NG}from"path";function RG(Z){return Array.isArray(Z)}function yq(Z){if(RG(Z))return Z;if(Z==null)return[];return[Z]}function CG(Z,J){if(J===!1)return Z;let q=OG(J||"").split(Eq).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return NG.join(q,Z)}var xq=function(J,q,Q){let Y=Q&&Q.resolve,X=(W)=>W instanceof RegExp?W:{test:(K)=>{let $=CG(W,Y);return bq.default($,{dot:!0})(K)}},z=yq(J).map(X),V=yq(q).map(X);return function(K){if(typeof K!=="string")return!1;if(/\0/.test(K))return!1;let $=K.split(Eq).join("/");for(let H=0;H<V.length;++H)if(V[H].test($))return!1;for(let H=0;H<z.length;++H)if(z[H].test($))return!0;return!z.length}},IG="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public",_G="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl",DG=new Set(`${IG} ${_G}`.split(" "));DG.add("");var yG="13.3.0";i8(p8.access);var dq=i8(p8.readFile),lq=i8(p8.realpath),M9=i8(p8.stat);async function Y4(Z){try{return(await M9(Z)).isFile()}catch{return!1}}async function j9(Z){return await Y4(Z)?lq(Z):Z}var cq=(Z)=>{if(Z.code==="ENOENT")return!1;throw Z},H9=(Z)=>{let J=new Map,q=async(Q,Y)=>{if(J.has(Q)===!1)J.set(Q,Z(Q).catch((X)=>{throw J.delete(Q),X}));try{let z=await J.get(Q);return Y(null,z)}catch(X){return Y(X)}};return q.clear=()=>J.clear(),q},F9=H9(async(Z)=>{try{return(await M9(Z)).isDirectory()}catch(J){return cq(J)}}),L9=H9(async(Z)=>{try{return(await M9(Z)).isFile()}catch(J){return cq(J)}}),w9=H9(dq);function EG(Z){let J=[];if(Z.customResolveOptions){let{customResolveOptions:q}=Z;if(q.moduleDirectory)Z.moduleDirectories=Array.isArray(q.moduleDirectory)?q.moduleDirectory:[q.moduleDirectory],J.push("node-resolve: The `customResolveOptions.moduleDirectory` option has been deprecated. Use `moduleDirectories`, which must be an array.");if(q.preserveSymlinks)throw Error("node-resolve: `customResolveOptions.preserveSymlinks` is no longer an option. We now always use the rollup `preserveSymlinks` option.");["basedir","package","extensions","includeCoreModules","readFile","isFile","isDirectory","realpath","packageFilter","pathFilter","paths","packageIterator"].forEach((Q)=>{if(q[Q])throw Error(`node-resolve: \`customResolveOptions.${Q}\` is no longer an option. If you need this, please open an issue.`)})}return{warnings:J}}function pq(Z){if(Z.startsWith(".")||Z.startsWith("/"))return null;let J=Z.split("/");if(J[0][0]==="@")return`${J[0]}/${J[1]}`;return J[0]}function bG(Z){let J;if(Z.mainFields)({mainFields:J}=Z);else J=["module","main"];if(Z.browser&&J.indexOf("browser")===-1)return["browser"].concat(J);if(!J.length)throw Error("Please ensure at least one `mainFields` value is specified");return J}function iq(Z){let{cache:J,extensions:q,pkg:Q,mainFields:Y,preserveSymlinks:X,useBrowserOverrides:z,rootDir:V,ignoreSideEffectsForRoot:W}=Z,{pkgPath:K}=Z;if(J.has(K))return J.get(K);if(!X)K=SG(K);let $=B9(K),H={packageJson:{...Q},packageJsonPath:K,root:$,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""},M=!1;for(let L=0;L<Y.length;L++){let I=Y[L];if(typeof Q[I]==="string"){Q.main=Q[I],H.resolvedMainField=I,M=!0;break}}let O={cachedPkg:Q,hasModuleSideEffects:()=>null,hasPackageEntry:M!==!1||Y.indexOf("main")!==-1,packageBrowserField:z&&typeof Q.browser==="object"&&Object.keys(Q.browser).reduce((L,I)=>{let y=Q.browser[I];if(y&&y[0]===".")y=l8($,y);if(L[I]=y,I[0]==="."){let _=l8($,I);if(L[_]=y,!TG(I))q.reduce((T,g)=>{return T[_+g]=T[I],T},L)}return L},{}),packageInfo:H},j=O.packageBrowserField;if(z&&typeof Q.browser==="object"&&j.hasOwnProperty(Q.main))H.resolvedEntryPoint=j[Q.main],H.browserMappedMain=!0;else H.resolvedEntryPoint=l8($,Q.main||"index.js"),H.browserMappedMain=!1;if(!W||V!==$){let L=Q.sideEffects;if(typeof L==="boolean")O.hasModuleSideEffects=()=>L;else if(Array.isArray(L)){let I=L.map((y)=>{if(y.includes("/"))return y;return`**/${y}`});O.hasModuleSideEffects=xq(I,null,{resolve:$})}}return J.set(K,O),O}function xG(Z){if(Array.isArray(Z))return Z;else if(typeof Z==="object")return Object.values(Z);return[Z]}function kG(Z,J){return J.some((q)=>Z.endsWith(q))}async function nq(Z,J){let{root:q}=U9.parse(Z),Q=Z;while(Q!==q&&!kG(Q,J)){let Y=U9.join(Q,"package.json");if(await Y4(Y)){let X=p8.readFileSync(Y,"utf-8");return{pkgJson:JSON.parse(X),pkgPath:Q,pkgJsonPath:Y}}Q=U9.resolve(Q,"..")}return null}function fG(Z){try{return!!new URL(Z)}catch(J){return!1}}function aq(Z){return typeof Z==="object"&&Object.keys(Z).every((J)=>!J.startsWith("."))}function fq(Z){return typeof Z==="object"&&!aq(Z)}function vG(Z){let J=Object.keys(Z);return J.some((q)=>q.startsWith("."))&&J.some((q)=>!q.startsWith("."))}function sq(Z,J){return`Could not resolve import "${Z}" in ${J}`}function O9(Z,J,q){let{importSpecifier:Q,importer:Y,pkgJsonPath:X}=Z;return`${sq(Q,Y)} using ${q?"imports":"exports"} defined in ${X}.${J?` ${J}`:""}`}class d6 extends Error{}class rq extends d6{constructor(Z,J){super(O9(Z,`Invalid "exports" field. ${J}`))}}class N8 extends d6{constructor(Z,J,q){super(O9(Z,q,J))}}class d8 extends d6{constructor(Z,J){super(O9(Z,J))}}function vq(Z,J){return Z.split("/").slice(1).some((q)=>[".","..",...J].includes(q))}async function c8(Z,{target:J,subpath:q,pattern:Q,internal:Y}){if(typeof J==="string"){if(!Q&&q.length>0&&!J.endsWith("/"))throw new N8(Z);if(!J.startsWith("./")){if(Y&&!["/","../"].some((z)=>J.startsWith(z))&&!fG(J)){if(Q){let V=await Z.resolveId(J.replace(/\*/g,q),Z.pkgURL.href);return V?Q4(V.location).href:null}let z=await Z.resolveId(`${J}${q}`,Z.pkgURL.href);return z?Q4(z.location).href:null}throw new d8(Z,`Invalid mapping: "${J}".`)}if(vq(J,Z.moduleDirs))throw new d8(Z,`Invalid mapping: "${J}".`);let X=new URL(J,Z.pkgURL);if(!X.href.startsWith(Z.pkgURL.href))throw new d8(Z,`Resolved to ${X.href} which is outside package ${Z.pkgURL.href}`);if(vq(q,Z.moduleDirs))throw new N8(Z);if(Q)return X.href.replace(/\*/g,q);return new URL(q,X).href}if(Array.isArray(J)){let X;for(let z of J)try{let V=await c8(Z,{target:z,subpath:q,pattern:Q,internal:Y});if(V!==void 0)return V}catch(V){if(!(V instanceof d8))throw V;else X=V}if(X)throw X;return null}if(J&&typeof J==="object"){for(let[X,z]of Object.entries(J))if(X==="default"||Z.conditions.includes(X)){let V=await c8(Z,{target:z,subpath:q,pattern:Q,internal:Y});if(V!==void 0)return V}return}if(J===null)return null;throw new d8(Z,"Invalid exports field.")}async function oq(Z,{matchKey:J,matchObj:q,internal:Q}){if(!J.endsWith("*")&&J in q){let X=q[J];return await c8(Z,{target:X,subpath:"",internal:Q})}let Y=Object.keys(q).filter((X)=>X.endsWith("/")||X.endsWith("*")).sort((X,z)=>z.length-X.length);for(let X of Y){let z=X.substring(0,X.length-1);if(X.endsWith("*")&&J.startsWith(z)){let V=q[X],W=J.substring(X.length-1);return await c8(Z,{target:V,subpath:W,pattern:!0,internal:Q})}if(J.startsWith(X)){let V=q[X],W=J.substring(X.length);return await c8(Z,{target:V,subpath:W,internal:Q})}}throw new N8(Z,Q)}async function hG(Z,J,q){if(vG(q))throw new rq(Z,"All keys must either start with ./, or without one.");if(J==="."){let Q;if(typeof q==="string"||Array.isArray(q)||aq(q))Q=q;else if(fq(q))Q=q["."];if(Q){let Y=await c8(Z,{target:Q,subpath:""});if(Y)return Y}}else if(fq(q)){let Q=await oq(Z,{matchKey:J,matchObj:q});if(Q)return Q}throw new N8(Z)}async function gG({importSpecifier:Z,importer:J,moduleDirs:q,conditions:Q,resolveId:Y}){let X=await nq(J,q);if(!X)throw Error(sq(". Could not find a parent package.json."));let{pkgPath:z,pkgJsonPath:V,pkgJson:W}=X,K=Q4(`${z}/`),$={importer:J,importSpecifier:Z,moduleDirs:q,pkgURL:K,pkgJsonPath:V,conditions:Q,resolveId:Y},{imports:H}=W;if(!H)throw new N8($,!0);if(Z==="#"||Z.startsWith("#/"))throw new N8($,!0,"Invalid import specifier.");return oq($,{matchKey:Z,matchObj:H,internal:!0})}var tq=i8(uq.default),mG=i8(p8.readFile);async function uG(Z,J,q,Q){if(Z){let Y=await nq(Z,Q);if(Y&&Y.pkgJson.name===J)return Y}try{let Y=await tq(`${J}/package.json`,q),X=JSON.parse(await mG(Y,"utf-8"));return{pkgJsonPath:Y,pkgJson:X,pkgPath:B9(Y)}}catch(Y){return null}}async function eq({importSpecifier:Z,packageInfoCache:J,extensions:q,mainFields:Q,preserveSymlinks:Y,useBrowserOverrides:X,baseDir:z,moduleDirectories:V,rootDir:W,ignoreSideEffectsForRoot:K}){let $=()=>null,H=!0,M=!1,O,L={basedir:z,readFile:w9,isFile:L9,isDirectory:F9,extensions:q,includeCoreModules:!1,moduleDirectory:V,preserveSymlinks:Y,packageFilter:(y,_)=>{let T=iq({cache:J,extensions:q,pkg:y,pkgPath:_,mainFields:Q,preserveSymlinks:Y,useBrowserOverrides:X,rootDir:W,ignoreSideEffectsForRoot:K});return{packageInfo:O,hasModuleSideEffects:$,hasPackageEntry:H,packageBrowserField:M}=T,T.cachedPkg}},I;try{I=await tq(Z,L)}catch(y){if(y.code!=="MODULE_NOT_FOUND")throw y;return null}return{location:Y?I:await j9(I),hasModuleSideEffects:$,hasPackageEntry:H,packageBrowserField:M,packageInfo:O}}async function dG({importer:Z,importSpecifier:J,exportConditions:q,packageInfoCache:Q,extensions:Y,mainFields:X,preserveSymlinks:z,useBrowserOverrides:V,baseDir:W,moduleDirectories:K,rootDir:$,ignoreSideEffectsForRoot:H}){if(J.startsWith("#")){let O=await gG({importSpecifier:J,importer:Z,moduleDirs:K,conditions:q,resolveId(L){return eq({importSpecifier:L,packageInfoCache:Q,extensions:Y,mainFields:X,preserveSymlinks:z,useBrowserOverrides:V,baseDir:W,moduleDirectories:K})}}),j=kq(O);return{location:z?j:await j9(j),hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1,packageInfo:void 0}}let M=pq(J);if(M){let O=()=>null,j=!0,L=!1,I,T=await uG(Z,M,{basedir:W,readFile:w9,isFile:L9,isDirectory:F9,extensions:Y,includeCoreModules:!1,moduleDirectory:K,preserveSymlinks:z,packageFilter:(g,h)=>{let u=iq({cache:Q,extensions:Y,pkg:g,pkgPath:h,mainFields:X,preserveSymlinks:z,useBrowserOverrides:V,rootDir:$,ignoreSideEffectsForRoot:H});return{packageInfo:I,hasModuleSideEffects:O,hasPackageEntry:j,packageBrowserField:L}=u,u.cachedPkg}},K);if(T&&T.pkgJson.exports){let{pkgJson:g,pkgJsonPath:h}=T,u=M===J?".":`.${J.substring(M.length)}`,E=h.replace("package.json",""),N=Q4(E),A=await hG({importer:Z,importSpecifier:J,moduleDirs:K,pkgURL:N,pkgJsonPath:h,conditions:q},u,g.exports),B=kq(A);if(B)return{location:z?B:await j9(B),hasModuleSideEffects:O,hasPackageEntry:j,packageBrowserField:L,packageInfo:I}}}return null}async function lG({importer:Z,importSpecifierList:J,exportConditions:q,warn:Q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M}){for(let O=0;O<J.length;O++){let j=await eq({importer:Z,importSpecifier:J[O],exportConditions:q,warn:Q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M});if(j)return j}return null}async function cG({importer:Z,importSpecifierList:J,exportConditions:q,warn:Q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M}){try{let O=await dG({importer:Z,importSpecifier:J[0],exportConditions:q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M});if(O)return O}catch(O){if(O instanceof d6)return Q(O),null;throw O}return lG({importer:Z,importSpecifierList:J,exportConditions:q,warn:Q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M})}var q4="\x00node-resolve:empty.js",ZQ=(Z)=>{Object.freeze(Z);for(let J of Object.values(Z))if(typeof J==="object"&&!Object.isFrozen(J))ZQ(J);return Z},JQ=["default","module"],pG=[...JQ,"import"],iG=[...JQ,"require"],qQ={dedupe:[],extensions:[".mjs",".js",".json",".node"],resolveOnly:[],moduleDirectories:["node_modules"],ignoreSideEffectsForRoot:!1},OI=ZQ(gq.default({},qQ));function QQ(Z={}){let{warnings:J}=EG(Z),q={...qQ,...Z},{extensions:Q,jail:Y,moduleDirectories:X,ignoreSideEffectsForRoot:z}=q,V=[...pG,...q.exportConditions||[]],W=[...iG,...q.exportConditions||[]],K=new Map,$=new Map,H=bG(q),M=H.indexOf("browser")!==-1,O=q.preferBuiltins===!0||q.preferBuiltins===!1,j=O?q.preferBuiltins:!0,L=l8(q.rootDir||process.cwd()),{dedupe:I}=q,y;if(typeof I!=="function")I=(E)=>q.dedupe.includes(E)||q.dedupe.includes(pq(E));let _=(E)=>{let N=E.map((P)=>{if(P instanceof RegExp)return P;let A=P.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${A}$`)});return(P)=>!N.length||N.some((A)=>A.test(P))},T=typeof q.resolveOnly==="function"?q.resolveOnly:_(q.resolveOnly),g=new Map,h,u=async(E,N,P,A)=>{let[B,b]=N.split("?"),k=`${b?`?${b}`:""}`;N=B;let S=!P||I(N)?L:B9(P),G=g.get(P);if(M&&G){let C=l8(S,N);if(G[N]===!1||G[C]===!1)return{id:q4};let v=N[0]!=="."&&G[N]||G[C]||G[`${C}.js`]||G[`${C}.json`];if(v)N=v}let F=N.split(/[/\\]/),d=F.shift(),f=!1;if(d[0]==="@"&&F.length>0)d+=`/${F.shift()}`;else if(d[0]===".")d=l8(S,N),f=!0;if(!f&&!T(d)){if(xG(y.input).includes(N))return null;return!1}let o=[N];if(P===void 0&&!N[0].match(/^\.?\.?\//))o.push(`./${N}`);if(P&&N.endsWith(".js")){for(let C of[".ts",".tsx"])if(P.endsWith(C)&&Q.includes(C))o.push(N.replace(/.js$/,C))}let t=(...C)=>E.warn(...C),N1=A&&A["node-resolve"]&&A["node-resolve"].isRequire?W:V;if(M&&!N1.includes("browser"))N1.push("browser");let R1=await cG({importer:P,importSpecifierList:o,exportConditions:N1,warn:t,packageInfoCache:K,extensions:Q,mainFields:H,preserveSymlinks:h,useBrowserOverrides:M,baseDir:S,moduleDirectories:X,rootDir:L,ignoreSideEffectsForRoot:z}),F1=hq.default(N),s=F1&&j?{packageInfo:void 0,hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1}:R1;if(!s)return null;let{packageInfo:m,hasModuleSideEffects:L1,hasPackageEntry:p,packageBrowserField:D}=s,{location:x}=s;if(D){if(Object.prototype.hasOwnProperty.call(D,x)){if(!D[x])return g.set(x,D),{id:q4};x=D[x]}g.set(x,D)}if(p&&!h){if(await Y4(x))x=await lq(x)}if($.set(x,m),p){if(F1&&j){if(!O&&R1&&s!==N)E.warn(`preferring built-in module '${N}' over local alternative at '${R1.location}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`);return!1}else if(Y&&x.indexOf(AG(Y.trim(PG)))!==0)return null}if(q.modulesOnly&&await Y4(x)){let C=await dq(x,"utf-8");if(mq.default(C))return{id:`${x}${k}`,moduleSideEffects:L1(x)};return null}return{id:`${x}${k}`,moduleSideEffects:L1(x)}};return{name:"node-resolve",version:yG,buildStart(E){y=E;for(let N of J)this.warn(N);({preserveSymlinks:h}=E)},generateBundle(){w9.clear(),L9.clear(),F9.clear()},async resolveId(E,N,P){if(E===q4)return E;if(/\0/.test(E))return null;if(/\0/.test(N))N=void 0;let A=await u(this,E,N,P.custom);if(A){let B=await this.resolve(A.id,N,Object.assign({skipSelf:!0},P));if(B){if(B.external)return!1;if(B.id!==A.id)return B;return{...A,meta:B.meta}}}return A},load(E){if(E===q4)return"export default {};";return null},getPackageInfoForId(E){return $.get(E)}}}iX();var fW=F8(Pz(),1);import{existsSync as Sz,readFileSync as hL}from"node:fs";import{join as yz}from"node:path";function C6(Z){if(Z){let q=yz(process.cwd(),Z);if(Sz(q))return Z;else return console.log(`Invalid entry point: ${q}.`),null}let J=yz(process.cwd(),"package.json");if(!Sz(J))return console.log(`Could not locate a package.json file.
|
|
69
|
-
`),null;try{let
|
|
52
|
+
`),Az=!0}catch(P){}},load(W){return X.get(W)||null},async transform(W,K){if(!Y(K))return null;if(H7>4&&vL.test(K)){let B=F7.compileModule(W,{filename:K,dev:q.dev,generate:q.generate});return(B.warnings||[]).forEach((C)=>{if(z)z(C,this.warn);else this.warn(C)}),B.js}let $=x8.extname(K);if(!~J.indexOf($))return null;let H=[],M=x8.relative(process.cwd(),K),O={...q,filename:M};if(Q.preprocess){let B=await F7.preprocess(W,Q.preprocess,{filename:M});if(B.dependencies)H.push(...B.dependencies);if(B.map)O.sourcemap=B.map;W=B.code}let L=F7.compile(W,O);if((L.warnings||[]).forEach((B)=>{if(!V&&(B.code==="css-unused-selector"||B.code==="css_unused_selector"))return;if(z)z(B,this.warn);else this.warn(B)}),V&&L.css&&L.css.code){let B=K.replace(new RegExp(`\\${$}$`),".css");L.js.code+=`
|
|
53
|
+
import ${JSON.stringify(B)};
|
|
54
|
+
`,X.set(B,L.css)}if(this.addWatchFile)H.forEach(this.addWatchFile);else L.js.dependencies=H;return L.js}}}});var E0=U1((Y_,pz)=>{var cz={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)",SEP:"/"},hw={...cz,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},gw={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};pz.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:gw,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?hw:cz}}});var b0=U1((cw)=>{var{REGEX_BACKSLASH:mw,REGEX_REMOVE_BACKSLASH:uw,REGEX_SPECIAL_CHARS:dw,REGEX_SPECIAL_CHARS_GLOBAL:lw}=E0();cw.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);cw.hasRegexChars=(Z)=>dw.test(Z);cw.isRegexChar=(Z)=>Z.length===1&&cw.hasRegexChars(Z);cw.escapeRegex=(Z)=>Z.replace(lw,"\\$1");cw.toPosixSlashes=(Z)=>Z.replace(mw,"/");cw.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let Z=navigator.platform.toLowerCase();return Z==="win32"||Z==="windows"}if(typeof process<"u"&&process.platform)return process.platform==="win32";return!1};cw.removeBackslashes=(Z)=>{return Z.replace(uw,(q)=>{return q==="\\"?"":q})};cw.escapeLast=(Z,q,Q)=>{let J=Z.lastIndexOf(q,Q);if(J===-1)return Z;if(Z[J-1]==="\\")return cw.escapeLast(Z,q,J-1);return`${Z.slice(0,J)}\\${Z.slice(J)}`};cw.removePrefix=(Z,q={})=>{let Q=Z;if(Q.startsWith("./"))Q=Q.slice(2),q.prefix="./";return Q};cw.wrapOutput=(Z,q={},Q={})=>{let J=Q.contains?"":"^",Y=Q.contains?"":"$",X=`${J}(?:${Z})${Y}`;if(q.negated===!0)X=`(?:^(?!${X}).*$)`;return X};cw.basename=(Z,{windows:q}={})=>{let Q=Z.split(q?/[\\/]/:"/"),J=Q[Q.length-1];if(J==="")return Q[Q.length-2];return J}});var qV=U1((z_,ZV)=>{var sz=b0(),{CHAR_ASTERISK:A3,CHAR_AT:ZO,CHAR_BACKWARD_SLASH:x0,CHAR_COMMA:qO,CHAR_DOT:P3,CHAR_EXCLAMATION_MARK:S3,CHAR_FORWARD_SLASH:ez,CHAR_LEFT_CURLY_BRACE:y3,CHAR_LEFT_PARENTHESES:E3,CHAR_LEFT_SQUARE_BRACKET:QO,CHAR_PLUS:JO,CHAR_QUESTION_MARK:az,CHAR_RIGHT_CURLY_BRACE:YO,CHAR_RIGHT_PARENTHESES:rz,CHAR_RIGHT_SQUARE_BRACKET:XO}=E0(),oz=(Z)=>{return Z===ez||Z===x0},tz=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},zO=(Z,q)=>{let Q=q||{},J=Z.length-1,Y=Q.parts===!0||Q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,L=!1,B=!1,C=!1,y=!1,P=!1,_=!1,v=!1,h=!1,d=0,E,N,A={value:"",depth:0,isGlob:!1},T=()=>K>=J,j=()=>W.charCodeAt(K+1),x=()=>{return E=N,W.charCodeAt(++K)};while(K<J){N=x();let u;if(N===x0){if(P=A.backslashes=!0,N=x(),N===y3)y=!0;continue}if(y===!0||N===y3){d++;while(T()!==!0&&(N=x())){if(N===x0){P=A.backslashes=!0,x();continue}if(N===y3){d++;continue}if(y!==!0&&N===P3&&(N=x())===P3){if(M=A.isBrace=!0,L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===qO){if(M=A.isBrace=!0,L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===YO){if(d--,d===0){y=!1,M=A.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===ez){if(X.push(K),z.push(A),A={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===P3&&K===$+1){$+=2;continue}H=K+1;continue}if(Q.noext!==!0){if((N===JO||N===ZO||N===A3||N===az||N===S3)===!0&&j()===E3){if(L=A.isGlob=!0,B=A.isExtglob=!0,h=!0,N===S3&&K===$)v=!0;if(Y===!0){while(T()!==!0&&(N=x())){if(N===x0){P=A.backslashes=!0,N=x();continue}if(N===rz){L=A.isGlob=!0,h=!0;break}}continue}break}}if(N===A3){if(E===A3)C=A.isGlobstar=!0;if(L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===az){if(L=A.isGlob=!0,h=!0,Y===!0)continue;break}if(N===QO){while(T()!==!0&&(u=x())){if(u===x0){P=A.backslashes=!0,x();continue}if(u===XO){O=A.isBracket=!0,L=A.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(Q.nonegate!==!0&&N===S3&&K===$){_=A.negated=!0,$++;continue}if(Q.noparen!==!0&&N===E3){if(L=A.isGlob=!0,Y===!0){while(T()!==!0&&(N=x())){if(N===E3){P=A.backslashes=!0,N=x();continue}if(N===rz){h=!0;break}}continue}break}if(L===!0){if(h=!0,Y===!0)continue;break}}if(Q.noext===!0)B=!1,L=!1;let b=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(b&&L===!0&&H>0)b=W.slice(0,H),G=W.slice(H);else if(L===!0)b="",G=W;else b=W;if(b&&b!==""&&b!=="/"&&b!==W){if(oz(b.charCodeAt(b.length-1)))b=b.slice(0,-1)}if(Q.unescape===!0){if(G)G=sz.removeBackslashes(G);if(b&&P===!0)b=sz.removeBackslashes(b)}let F={prefix:S,input:Z,start:$,base:b,glob:G,isBrace:M,isBracket:O,isGlob:L,isExtglob:B,isGlobstar:C,negated:_,negatedExtglob:v};if(Q.tokens===!0){if(F.maxDepth=0,!oz(N))z.push(A);F.tokens=z}if(Q.parts===!0||Q.tokens===!0){let u;for(let f=0;f<X.length;f++){let o=u?u+1:$,t=X[f],J1=Z.slice(o,t);if(Q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=J1;tz(z[f]),F.maxDepth+=z[f].depth}if(f!==0||J1!=="")V.push(J1);u=t}if(u&&u+1<Z.length){let f=Z.slice(u+1);if(V.push(f),Q.tokens)z[z.length-1].value=f,tz(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F};ZV.exports=zO});var zV=U1((V_,XV)=>{var k0=E0(),M5=b0(),{MAX_LENGTH:w7,POSIX_REGEX_SOURCE:VO,REGEX_NON_SPECIAL_CHARS:WO,REGEX_SPECIAL_CHARS_BACKREF:KO,REPLACEMENTS:QV}=k0,$O=(Z,q)=>{if(typeof q.expandRange==="function")return q.expandRange(...Z,q);Z.sort();let Q=`[${Z.join("-")}]`;try{new RegExp(Q)}catch(J){return Z.map((Y)=>M5.escapeRegex(Y)).join("..")}return Q},I6=(Z,q)=>{return`Missing ${Z}: "${q}" - use "\\\\${q}" to match literal characters`},JV=(Z)=>{let q=[],Q=0,J=0,Y=0,X="",z=!1;for(let V of Z){if(z===!0){X+=V,z=!1;continue}if(V==="\\"){X+=V,z=!0;continue}if(V==='"'){Y=Y===1?0:1,X+=V;continue}if(Y===0){if(V==="[")Q++;else if(V==="]"&&Q>0)Q--;else if(Q===0){if(V==="(")J++;else if(V===")"&&J>0)J--;else if(V==="|"&&J===0){q.push(X),X="";continue}}}X+=V}return q.push(X),q},GO=(Z)=>{let q=!1;for(let Q of Z){if(q===!0){q=!1;continue}if(Q==="\\"){q=!0;continue}if(/[?*+@!()[\]{}]/.test(Q))return!1}return!0},YV=(Z)=>{let q=Z.trim(),Q=!0;while(Q===!0)if(Q=!1,/^@\([^\\()[\]{}|]+\)$/.test(q))q=q.slice(2,-1),Q=!0;if(!GO(q))return;return q.replace(/\\(.)/g,"$1")},UO=(Z)=>{let q=Z.map(YV).filter(Boolean);for(let Q=0;Q<q.length;Q++)for(let J=Q+1;J<q.length;J++){let Y=q[Q],X=q[J],z=Y[0];if(!z||Y!==z.repeat(Y.length)||X!==z.repeat(X.length))continue;if(Y===X||Y.startsWith(X)||X.startsWith(Y))return!0}return!1},b3=(Z,q=!0)=>{if(Z[0]!=="+"&&Z[0]!=="*"||Z[1]!=="(")return;let Q=0,J=0,Y=0,X=!1;for(let z=1;z<Z.length;z++){let V=Z[z];if(X===!0){X=!1;continue}if(V==="\\"){X=!0;continue}if(V==='"'){Y=Y===1?0:1;continue}if(Y===1)continue;if(V==="["){Q++;continue}if(V==="]"&&Q>0){Q--;continue}if(Q>0)continue;if(V==="("){J++;continue}if(V===")"){if(J--,J===0){if(q===!0&&z!==Z.length-1)return;return{type:Z[0],body:Z.slice(2,z),end:z}}}}},jO=(Z)=>{let q=0,Q=[];while(q<Z.length){let Y=b3(Z.slice(q),!1);if(!Y||Y.type!=="*")return;let X=JV(Y.body).map((V)=>V.trim());if(X.length!==1)return;let z=YV(X[0]);if(!z||z.length!==1)return;Q.push(z),q+=Y.end+1}if(Q.length<1)return;return`${Q.length===1?M5.escapeRegex(Q[0]):`[${Q.map((Y)=>M5.escapeRegex(Y)).join("")}]`}*`},BO=(Z)=>{let q=0,Q=Z.trim(),J=b3(Q);while(J)q++,Q=J.body.trim(),J=b3(Q);return q},MO=(Z,q)=>{if(q.maxExtglobRecursion===!1)return{risky:!1};let Q=typeof q.maxExtglobRecursion==="number"?q.maxExtglobRecursion:k0.DEFAULT_MAX_EXTGLOB_RECURSION,J=JV(Z).map((Y)=>Y.trim());if(J.length>1){if(J.some((Y)=>Y==="")||J.some((Y)=>/^[*?]+$/.test(Y))||UO(J))return{risky:!0}}for(let Y of J){let X=jO(Y);if(X)return{risky:!0,safeOutput:X};if(BO(Y)>Q)return{risky:!0}}return{risky:!1}},x3=(Z,q)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=QV[Z]||Z;let Q={...q},J=typeof Q.maxLength==="number"?Math.min(w7,Q.maxLength):w7,Y=Z.length;if(Y>J)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${J}`);let X={type:"bos",value:"",output:Q.prepend||""},z=[X],V=Q.capture?"":"?:",W=k0.globChars(Q.windows),K=k0.extglobChars(W),{DOT_LITERAL:$,PLUS_LITERAL:H,SLASH_LITERAL:M,ONE_CHAR:O,DOTS_SLASH:L,NO_DOT:B,NO_DOT_SLASH:C,NO_DOTS_SLASH:y,QMARK:P,QMARK_NO_DOT:_,STAR:v,START_ANCHOR:h}=W,d=(p)=>{return`(${V}(?:(?!${h}${p.dot?L:$}).)*?)`},E=Q.dot?"":B,N=Q.dot?P:_,A=Q.bash===!0?d(Q):v;if(Q.capture)A=`(${A})`;if(typeof Q.noext==="boolean")Q.noextglob=Q.noext;let T={input:Z,index:-1,start:0,dot:Q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=M5.removePrefix(Z,T),Y=Z.length;let j=[],x=[],b=[],S=X,G,F=()=>T.index===Y-1,u=T.peek=(p=1)=>Z[T.index+p],f=T.advance=()=>Z[++T.index]||"",o=()=>Z.slice(T.index+1),t=(p="",D=0)=>{T.consumed+=p,T.index+=D},J1=(p)=>{T.output+=p.output!=null?p.output:p.value,t(p.value)},N1=()=>{let p=1;while(u()==="!"&&(u(2)!=="("||u(3)==="?"))f(),T.start++,p++;if(p%2===0)return!1;return T.negated=!0,T.start++,!0},R1=(p)=>{T[p]++,b.push(p)},F1=(p)=>{T[p]--,b.pop()},a=(p)=>{if(S.type==="globstar"){let D=T.braces>0&&(p.type==="comma"||p.type==="brace"),k=p.extglob===!0||j.length&&(p.type==="pipe"||p.type==="paren");if(p.type!=="slash"&&p.type!=="paren"&&!D&&!k)T.output=T.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=A,T.output+=S.output}if(j.length&&p.type!=="paren")j[j.length-1].inner+=p.value;if(p.value||p.output)J1(p);if(S&&S.type==="text"&&p.type==="text"){S.output=(S.output||S.value)+p.value,S.value+=p.value;return}p.prev=S,z.push(p),S=p},m=(p,D)=>{let k={...K[D],conditions:1,inner:""};k.prev=S,k.parens=T.parens,k.output=T.output,k.startIndex=T.index,k.tokensIndex=z.length;let I=(Q.capture?"(":"")+k.open;R1("parens"),a({type:p,value:D,output:T.output?"":O}),a({type:"paren",extglob:!0,value:f(),output:I}),j.push(k)},L1=(p)=>{let D=Z.slice(p.startIndex,T.index+1),k=Z.slice(p.startIndex+2,T.index),I=MO(k,Q);if((p.type==="plus"||p.type==="star")&&I.risky){let n=I.safeOutput?(p.output?"":O)+(Q.capture?`(${I.safeOutput})`:I.safeOutput):void 0,i=z[p.tokensIndex];i.type="text",i.value=D,i.output=n||M5.escapeRegex(D);for(let B1=p.tokensIndex+1;B1<z.length;B1++)z[B1].value="",z[B1].output="",delete z[B1].suffix;T.output=p.output+i.output,T.backtrack=!0,a({type:"paren",extglob:!0,value:G,output:""}),F1("parens");return}let g=p.close+(Q.capture?")":""),c;if(p.type==="negate"){let n=A;if(p.inner&&p.inner.length>1&&p.inner.includes("/"))n=d(Q);if(n!==A||F()||/^\)+$/.test(o()))g=p.close=`)$))${n}`;if(p.inner.includes("*")&&(c=o())&&/^\.[^\\/.]+$/.test(c)){let i=x3(c,{...q,fastpaths:!1}).output;g=p.close=`)${i})${n})`}if(p.prev.type==="bos")T.negatedExtglob=!0}a({type:"paren",extglob:!0,value:G,output:g}),F1("parens")};if(Q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let p=!1,D=Z.replace(KO,(k,I,g,c,n,i)=>{if(c==="\\")return p=!0,k;if(c==="?"){if(I)return I+c+(n?P.repeat(n.length):"");if(i===0)return N+(n?P.repeat(n.length):"");return P.repeat(g.length)}if(c===".")return $.repeat(g.length);if(c==="*"){if(I)return I+c+(n?A:"");return A}return I?k:`\\${k}`});if(p===!0)if(Q.unescape===!0)D=D.replace(/\\/g,"");else D=D.replace(/\\+/g,(k)=>{return k.length%2===0?"\\\\":k?"\\":""});if(D===Z&&Q.contains===!0)return T.output=Z,T;return T.output=M5.wrapOutput(D,T,q),T}while(!F()){if(G=f(),G==="\x00")continue;if(G==="\\"){let k=u();if(k==="/"&&Q.bash!==!0)continue;if(k==="."||k===";")continue;if(!k){G+="\\",a({type:"text",value:G});continue}let I=/^\\+/.exec(o()),g=0;if(I&&I[0].length>2){if(g=I[0].length,T.index+=g,g%2!==0)G+="\\"}if(Q.unescape===!0)G=f();else G+=f();if(T.brackets===0){a({type:"text",value:G});continue}}if(T.brackets>0&&(G!=="]"||S.value==="["||S.value==="[^")){if(Q.posix!==!1&&G===":"){let k=S.value.slice(1);if(k.includes("[")){if(S.posix=!0,k.includes(":")){let I=S.value.lastIndexOf("["),g=S.value.slice(0,I),c=S.value.slice(I+2),n=VO[c];if(n){if(S.value=g+n,T.backtrack=!0,f(),!X.output&&z.indexOf(S)===1)X.output=O;continue}}}}if(G==="["&&u()!==":"||G==="-"&&u()==="]")G=`\\${G}`;if(G==="]"&&(S.value==="["||S.value==="[^"))G=`\\${G}`;if(Q.posix===!0&&G==="!"&&S.value==="[")G="^";S.value+=G,J1({value:G});continue}if(T.quotes===1&&G!=='"'){G=M5.escapeRegex(G),S.value+=G,J1({value:G});continue}if(G==='"'){if(T.quotes=T.quotes===1?0:1,Q.keepQuotes===!0)a({type:"text",value:G});continue}if(G==="("){R1("parens"),a({type:"paren",value:G});continue}if(G===")"){if(T.parens===0&&Q.strictBrackets===!0)throw SyntaxError(I6("opening","("));let k=j[j.length-1];if(k&&T.parens===k.parens+1){L1(j.pop());continue}a({type:"paren",value:G,output:T.parens?")":"\\)"}),F1("parens");continue}if(G==="["){if(Q.nobracket===!0||!o().includes("]")){if(Q.nobracket!==!0&&Q.strictBrackets===!0)throw SyntaxError(I6("closing","]"));G=`\\${G}`}else R1("brackets");a({type:"bracket",value:G});continue}if(G==="]"){if(Q.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){a({type:"text",value:G,output:`\\${G}`});continue}if(T.brackets===0){if(Q.strictBrackets===!0)throw SyntaxError(I6("opening","["));a({type:"text",value:G,output:`\\${G}`});continue}F1("brackets");let k=S.value.slice(1);if(S.posix!==!0&&k[0]==="^"&&!k.includes("/"))G=`/${G}`;if(S.value+=G,J1({value:G}),Q.literalBrackets===!1||M5.hasRegexChars(k))continue;let I=M5.escapeRegex(S.value);if(T.output=T.output.slice(0,-S.value.length),Q.literalBrackets===!0){T.output+=I,S.value=I;continue}S.value=`(${V}${I}|${S.value})`,T.output+=S.value;continue}if(G==="{"&&Q.nobrace!==!0){R1("braces");let k={type:"brace",value:G,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};x.push(k),a(k);continue}if(G==="}"){let k=x[x.length-1];if(Q.nobrace===!0||!k){a({type:"text",value:G,output:G});continue}let I=")";if(k.dots===!0){let g=z.slice(),c=[];for(let n=g.length-1;n>=0;n--){if(z.pop(),g[n].type==="brace")break;if(g[n].type!=="dots")c.unshift(g[n].value)}I=$O(c,Q),T.backtrack=!0}if(k.comma!==!0&&k.dots!==!0){let g=T.output.slice(0,k.outputIndex),c=T.tokens.slice(k.tokensIndex);k.value=k.output="\\{",G=I="\\}",T.output=g;for(let n of c)T.output+=n.output||n.value}a({type:"brace",value:G,output:I}),F1("braces"),x.pop();continue}if(G==="|"){if(j.length>0)j[j.length-1].conditions++;a({type:"text",value:G});continue}if(G===","){let k=G,I=x[x.length-1];if(I&&b[b.length-1]==="braces")I.comma=!0,k="|";a({type:"comma",value:G,output:k});continue}if(G==="/"){if(S.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",z.pop(),S=X;continue}a({type:"slash",value:G,output:M});continue}if(G==="."){if(T.braces>0&&S.type==="dot"){if(S.value===".")S.output=$;let k=x[x.length-1];S.type="dots",S.output+=G,S.value+=G,k.dots=!0;continue}if(T.braces+T.parens===0&&S.type!=="bos"&&S.type!=="slash"){a({type:"text",value:G,output:$});continue}a({type:"dot",value:G,output:$});continue}if(G==="?"){if(!(S&&S.value==="(")&&Q.noextglob!==!0&&u()==="("&&u(2)!=="?"){m("qmark",G);continue}if(S&&S.type==="paren"){let I=u(),g=G;if(S.value==="("&&!/[!=<:]/.test(I)||I==="<"&&!/<([!=]|\w+>)/.test(o()))g=`\\${G}`;a({type:"text",value:G,output:g});continue}if(Q.dot!==!0&&(S.type==="slash"||S.type==="bos")){a({type:"qmark",value:G,output:_});continue}a({type:"qmark",value:G,output:P});continue}if(G==="!"){if(Q.noextglob!==!0&&u()==="("){if(u(2)!=="?"||!/[!=<:]/.test(u(3))){m("negate",G);continue}}if(Q.nonegate!==!0&&T.index===0){N1();continue}}if(G==="+"){if(Q.noextglob!==!0&&u()==="("&&u(2)!=="?"){m("plus",G);continue}if(S&&S.value==="("||Q.regex===!1){a({type:"plus",value:G,output:H});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||T.parens>0){a({type:"plus",value:G});continue}a({type:"plus",value:H});continue}if(G==="@"){if(Q.noextglob!==!0&&u()==="("&&u(2)!=="?"){a({type:"at",extglob:!0,value:G,output:""});continue}a({type:"text",value:G});continue}if(G!=="*"){if(G==="$"||G==="^")G=`\\${G}`;let k=WO.exec(o());if(k)G+=k[0],T.index+=k[0].length;a({type:"text",value:G});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=G,S.output=A,T.backtrack=!0,T.globstar=!0,t(G);continue}let p=o();if(Q.noextglob!==!0&&/^\([^?]/.test(p)){m("star",G);continue}if(S.type==="star"){if(Q.noglobstar===!0){t(G);continue}let k=S.prev,I=k.prev,g=k.type==="slash"||k.type==="bos",c=I&&(I.type==="star"||I.type==="globstar");if(Q.bash===!0&&(!g||p[0]&&p[0]!=="/")){a({type:"star",value:G,output:""});continue}let n=T.braces>0&&(k.type==="comma"||k.type==="brace"),i=j.length&&(k.type==="pipe"||k.type==="paren");if(!g&&k.type!=="paren"&&!n&&!i){a({type:"star",value:G,output:""});continue}while(p.slice(0,3)==="/**"){let B1=Z[T.index+4];if(B1&&B1!=="/")break;p=p.slice(3),t("/**",3)}if(k.type==="bos"&&F()){S.type="globstar",S.value+=G,S.output=d(Q),T.output=S.output,T.globstar=!0,t(G);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&!c&&F()){T.output=T.output.slice(0,-(k.output+S.output).length),k.output=`(?:${k.output}`,S.type="globstar",S.output=d(Q)+(Q.strictSlashes?")":"|$)"),S.value+=G,T.globstar=!0,T.output+=k.output+S.output,t(G);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&p[0]==="/"){let B1=p[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(k.output+S.output).length),k.output=`(?:${k.output}`,S.type="globstar",S.output=`${d(Q)}${M}|${M}${B1})`,S.value+=G,T.output+=k.output+S.output,T.globstar=!0,t(G+f()),a({type:"slash",value:"/",output:""});continue}if(k.type==="bos"&&p[0]==="/"){S.type="globstar",S.value+=G,S.output=`(?:^|${M}|${d(Q)}${M})`,T.output=S.output,T.globstar=!0,t(G+f()),a({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-S.output.length),S.type="globstar",S.output=d(Q),S.value+=G,T.output+=S.output,T.globstar=!0,t(G);continue}let D={type:"star",value:G,output:A};if(Q.bash===!0){if(D.output=".*?",S.type==="bos"||S.type==="slash")D.output=E+D.output;a(D);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&Q.regex===!0){D.output=G,a(D);continue}if(T.index===T.start||S.type==="slash"||S.type==="dot"){if(S.type==="dot")T.output+=C,S.output+=C;else if(Q.dot===!0)T.output+=y,S.output+=y;else T.output+=E,S.output+=E;if(u()!=="*")T.output+=O,S.output+=O}a(D)}while(T.brackets>0){if(Q.strictBrackets===!0)throw SyntaxError(I6("closing","]"));T.output=M5.escapeLast(T.output,"["),F1("brackets")}while(T.parens>0){if(Q.strictBrackets===!0)throw SyntaxError(I6("closing",")"));T.output=M5.escapeLast(T.output,"("),F1("parens")}while(T.braces>0){if(Q.strictBrackets===!0)throw SyntaxError(I6("closing","}"));T.output=M5.escapeLast(T.output,"{"),F1("braces")}if(Q.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket"))a({type:"maybe_slash",value:"",output:`${M}?`});if(T.backtrack===!0){T.output="";for(let p of T.tokens)if(T.output+=p.output!=null?p.output:p.value,p.suffix)T.output+=p.suffix}return T};x3.fastpaths=(Z,q)=>{let Q={...q},J=typeof Q.maxLength==="number"?Math.min(w7,Q.maxLength):w7,Y=Z.length;if(Y>J)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${J}`);Z=QV[Z]||Z;let{DOT_LITERAL:X,SLASH_LITERAL:z,ONE_CHAR:V,DOTS_SLASH:W,NO_DOT:K,NO_DOTS:$,NO_DOTS_SLASH:H,STAR:M,START_ANCHOR:O}=k0.globChars(Q.windows),L=Q.dot?$:K,B=Q.dot?H:K,C=Q.capture?"":"?:",y={negated:!1,prefix:""},P=Q.bash===!0?".*?":M;if(Q.capture)P=`(${P})`;let _=(E)=>{if(E.noglobstar===!0)return P;return`(${C}(?:(?!${O}${E.dot?W:X}).)*?)`},v=(E)=>{switch(E){case"*":return`${L}${V}${P}`;case".*":return`${X}${V}${P}`;case"*.*":return`${L}${P}${X}${V}${P}`;case"*/*":return`${L}${P}${z}${V}${B}${P}`;case"**":return L+_(Q);case"**/*":return`(?:${L}${_(Q)}${z})?${B}${V}${P}`;case"**/*.*":return`(?:${L}${_(Q)}${z})?${B}${P}${X}${V}${P}`;case"**/.*":return`(?:${L}${_(Q)}${z})?${X}${V}${P}`;default:{let N=/^(.*?)\.(\w+)$/.exec(E);if(!N)return;let A=v(N[1]);if(!A)return;return A+X+N[2]}}},h=M5.removePrefix(Z,y),d=v(h);if(d&&Q.strictSlashes!==!0)d+=`${z}?`;return d};XV.exports=x3});var KV=U1((W_,WV)=>{var HO=qV(),k3=zV(),VV=b0(),FO=E0(),LO=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),h1=(Z,q,Q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>h1(M,q,Q));return(M)=>{for(let O of $){let L=O(M);if(L)return L}return!1}}let J=LO(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!J)throw TypeError("Expected pattern to be a non-empty string");let Y=q||{},X=Y.windows,z=J?h1.compileRe(Z,q):h1.makeRe(Z,q,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...q,ignore:null,onMatch:null,onResult:null};W=h1(Y.ignore,$,Q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:L}=h1.test($,z,q,{glob:Z,posix:X}),B={glob:Z,state:V,regex:z,posix:X,input:$,output:L,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(B);if(M===!1)return B.isMatch=!1,H?B:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(B);return B.isMatch=!1,H?B:!1}if(typeof Y.onMatch==="function")Y.onMatch(B);return H?B:!0};if(Q)K.state=V;return K};h1.test=(Z,q,Q,{glob:J,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=Q||{},z=X.format||(Y?VV.toPosixSlashes:null),V=Z===J,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===J;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=h1.matchBase(Z,q,Q,Y);else V=q.exec(W);return{isMatch:Boolean(V),match:V,output:W}};h1.matchBase=(Z,q,Q)=>{return(q instanceof RegExp?q:h1.makeRe(q,Q)).test(VV.basename(Z))};h1.isMatch=(Z,q,Q)=>h1(q,Q)(Z);h1.parse=(Z,q)=>{if(Array.isArray(Z))return Z.map((Q)=>h1.parse(Q,q));return k3(Z,{...q,fastpaths:!1})};h1.scan=(Z,q)=>HO(Z,q);h1.compileRe=(Z,q,Q=!1,J=!1)=>{if(Q===!0)return Z.output;let Y=q||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=h1.toRegex(V,q);if(J===!0)W.state=Z;return W};h1.makeRe=(Z,q={},Q=!1,J=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=k3.fastpaths(Z,q);if(!Y.output)Y=k3(Z,q);return h1.compileRe(Y,q,Q,J)};h1.toRegex=(Z,q)=>{try{let Q=q||{};return new RegExp(Z,Q.flags||(Q.nocase?"i":""))}catch(Q){if(q&&q.debug===!0)throw Q;return/$^/}};h1.constants=FO;WV.exports=h1});var jV=U1((K_,UV)=>{var $V=KV(),wO=b0();function GV(Z,q,Q=!1){if(q&&(q.windows===null||q.windows===void 0))q={...q,windows:wO.isWindows()};return $V(Z,q,Q)}Object.assign(GV,$V);UV.exports=GV});var H5;(function(Z){Z.start="/**",Z.nostart="/***",Z.delim="*",Z.end="*/"})(H5=H5||(H5={}));function u7(Z){return/^\s+$/.test(Z)}function Bq(Z){let q=Z.match(/\r+$/);return q==null?["",Z]:[Z.slice(-q[0].length),Z.slice(0,-q[0].length)]}function l5(Z){let q=Z.match(/^\s+/);return q==null?["",Z]:[Z.slice(0,q[0].length),Z.slice(q[0].length)]}function Mq(Z){return Z.split(/\n/)}function Hq(Z={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},Z)}function d7(Z={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},Z)}var sW=/^@\S+/;function l7({fence:Z="```"}={}){let q=aW(Z),Q=(J,Y)=>q(J)?!Y:Y;return function(Y){let X=[[]],z=!1;for(let V of Y){if(sW.test(V.tokens.description)&&!z)X.push([V]);else X[X.length-1].push(V);z=Q(V.tokens.description,z)}return X}}function aW(Z){if(typeof Z==="string")return(q)=>q.split(Z).length%2===0;return Z}function c7({startLine:Z=0,markers:q=H5}={}){let Q=null,J=Z;return function(X){let z=X,V=d7();if([V.lineEnd,z]=Bq(z),[V.start,z]=l5(z),Q===null&&z.startsWith(q.start)&&!z.startsWith(q.nostart))Q=[],V.delimiter=z.slice(0,q.start.length),z=z.slice(q.start.length),[V.postDelimiter,z]=l5(z);if(Q===null)return J++,null;let W=z.trimRight().endsWith(q.end);if(V.delimiter===""&&z.startsWith(q.delim)&&!z.startsWith(q.end))V.delimiter=q.delim,z=z.slice(q.delim.length),[V.postDelimiter,z]=l5(z);if(W){let K=z.trimRight();V.end=z.slice(K.length-q.end.length),z=K.slice(0,-q.end.length)}if(V.description=z,Q.push({number:J,source:X,tokens:V}),J++,W){let K=Q.slice();return Q=null,K}return null}}function p7({tokenizers:Z}){return function(Q){var J;let Y=Hq({source:Q});for(let X of Z)if(Y=X(Y),(J=Y.problems[Y.problems.length-1])===null||J===void 0?void 0:J.critical)break;return Y}}function i0(){return(Z)=>{let{tokens:q}=Z.source[0],Q=q.description.match(/\s*(@(\S+))(\s*)/);if(Q===null)return Z.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:Z.source[0].number,critical:!0}),Z;return q.tag=Q[1],q.postTag=Q[3],q.description=q.description.slice(Q[0].length),Z.tag=Q[2],Z}}function n0(Z="compact"){let q=oW(Z);return(Q)=>{let J=0,Y=[];for(let[V,{tokens:W}]of Q.source.entries()){let K="";if(V===0&&W.description[0]!=="{")return Q;for(let $ of W.description){if($==="{")J++;if($==="}")J--;if(K+=$,J===0)break}if(Y.push([W,K]),J===0)break}if(J!==0)return Q.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:Q.source[0].number,critical:!0}),Q;let X=[],z=Y[0][0].postDelimiter.length;for(let[V,[W,K]]of Y.entries()){if(W.type=K,V>0)W.type=W.postDelimiter.slice(z)+K,W.postDelimiter=W.postDelimiter.slice(0,z);[W.postType,W.description]=l5(W.description.slice(K.length)),X.push(W.type)}return X[0]=X[0].slice(1),X[X.length-1]=X[X.length-1].slice(0,-1),Q.type=q(X),Q}}var rW=(Z)=>Z.trim();function oW(Z){if(Z==="compact")return(q)=>q.map(rW).join("");else if(Z==="preserve")return(q)=>q.join(`
|
|
55
|
+
`);else return Z}var tW=(Z)=>Z&&Z.startsWith('"')&&Z.endsWith('"');function s0(){let Z=(q,{tokens:Q},J)=>Q.type===""?q:J;return(q)=>{let{tokens:Q}=q.source[q.source.reduce(Z,0)],J=Q.description.trimLeft(),Y=J.split('"');if(Y.length>1&&Y[0]===""&&Y.length%2===1)return q.name=Y[1],Q.name=`"${Y[1]}"`,[Q.postName,Q.description]=l5(J.slice(Q.name.length)),q;let X=0,z="",V=!1,W;for(let $ of J){if(X===0&&u7($))break;if($==="[")X++;if($==="]")X--;z+=$}if(X!==0)return q.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:q.source[0].number,critical:!0}),q;let K=z;if(z[0]==="["&&z[z.length-1]==="]"){V=!0,z=z.slice(1,-1);let $=z.split("=");if(z=$[0].trim(),$[1]!==void 0)W=$.slice(1).join("=").trim();if(z==="")return q.problems.push({code:"spec:name:empty-name",message:"empty name",line:q.source[0].number,critical:!0}),q;if(W==="")return q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:q.source[0].number,critical:!0}),q;if(!tW(W)&&/=(?!>)/.test(W))return q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:q.source[0].number,critical:!0}),q}if(q.optional=V,q.name=z,Q.name=K,W!==void 0)q.default=W;return[Q.postName,Q.description]=l5(J.slice(Q.name.length)),q}}function a0(Z="compact",q=H5){let Q=i7(Z);return(J)=>{return J.description=Q(J.source,q),J}}function i7(Z){if(Z==="compact")return eW;if(Z==="preserve")return QK;return Z}function eW(Z,q=H5){return Z.map(({tokens:{description:Q}})=>Q.trim()).filter((Q)=>Q!=="").join(" ")}var ZK=(Z,{tokens:q},Q)=>q.type===""?Z:Q,qK=({tokens:Z})=>(Z.delimiter===""?Z.start:Z.postDelimiter.slice(1))+Z.description;function QK(Z,q=H5){if(Z.length===0)return"";if(Z[0].tokens.description===""&&Z[0].tokens.delimiter===q.start)Z=Z.slice(1);let Q=Z[Z.length-1];if(Q!==void 0&&Q.tokens.description===""&&Q.tokens.end.endsWith(q.end))Z=Z.slice(0,-1);return Z=Z.slice(Z.reduce(ZK,0)),Z.map(qK).join(`
|
|
56
|
+
`)}function n7({startLine:Z=0,fence:q="```",spacing:Q="compact",markers:J=H5,tokenizers:Y=[i0(),n0(Q),s0(),a0(Q)]}={}){if(Z<0||Z%1>0)throw Error("Invalid startLine");let X=c7({startLine:Z,markers:J}),z=l7({fence:q}),V=p7({tokenizers:Y}),W=i7(Q);return function(K){let $=[];for(let H of Mq(K)){let M=X(H);if(M===null)continue;let O=z(M),L=O.slice(1).map(V);$.push({description:W(O[0],J),tags:L,source:M,problems:L.reduce((B,C)=>B.concat(C.problems),[])})}return $}}function JK(Z){return Z.start+Z.delimiter+Z.postDelimiter+Z.tag+Z.postTag+Z.type+Z.postType+Z.name+Z.postName+Z.description+Z.end+Z.lineEnd}function s7(){return(Z)=>Z.source.map(({tokens:q})=>JK(q)).join(`
|
|
57
|
+
`)}var YK={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var JC=Object.keys(YK);function E6(Z,q={}){return n7(q)(Z)}var CC=s7();class r0{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z}}replace(Z,q,Q,J){if(Z&&q)if(Q!=null)Z[q][Q]=J;else Z[q]=J}remove(Z,q,Q){if(Z&&q)if(Q!==null&&Q!==void 0)Z[q].splice(Q,1);else delete Z[q]}}class r7 extends r0{constructor(Z,q){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Q)=>this.replacement=Q},this.enter=Z,this.leave=q}visit(Z,q,Q,J){if(Z){if(this.enter){let X=this.should_skip,z=this.should_remove,V=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,Z,q,Q,J),this.replacement)Z=this.replacement,this.replace(q,Q,J,Z);if(this.should_remove)this.remove(q,Q,J);let W=this.should_skip,K=this.should_remove;if(this.should_skip=X,this.should_remove=z,this.replacement=V,W)return Z;if(K)return null}let Y;for(Y in Z){let X=Z[Y];if(X&&typeof X==="object"){if(Array.isArray(X)){let z=X;for(let V=0;V<z.length;V+=1){let W=z[V];if(Fq(W)){if(!this.visit(W,Z,Y,V))V--}}}else if(Fq(X))this.visit(X,Z,Y,null)}}if(this.leave){let X=this.replacement,z=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,Z,q,Q,J),this.replacement)Z=this.replacement,this.replace(q,Q,J,Z);if(this.should_remove)this.remove(q,Q,J);let V=this.should_remove;if(this.replacement=X,this.should_remove=z,V)return null}}return Z}}function Fq(Z){return Z!==null&&typeof Z==="object"&&"type"in Z&&typeof Z.type==="string"}function o0(Z,{enter:q,leave:Q}){return new r7(q,Q).visit(Z,null)}import{compile as XK,parse as Oq}from"svelte/compiler";var Lq={a:"HTMLAnchorElement",abbr:"HTMLElement",address:"HTMLElement",applet:"HTMLUnknownElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLElement",bdi:"HTMLElement",bdo:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",colgroup:"HTMLTableColElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",kbd:"HTMLElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",main:"HTMLElement",map:"HTMLMapElement",mark:"HTMLElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",picture:"HTMLPictureElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",rp:"HTMLElement",rt:"HTMLElement",ruby:"HTMLElement",s:"HTMLElement",samp:"HTMLElement",script:"HTMLScriptElement",search:"HTMLElement",section:"HTMLElement",select:"HTMLSelectElement",slot:"HTMLSlotElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableCellElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableCellElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",u:"HTMLElement",ul:"HTMLUListElement",var:"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};function wq(Z){return Z in Lq?Lq[Z]:"HTMLElement"}var zK=/(?:const|let|function)\s+(\w+)\s*[=(]/,VK=/^-\s*/,WK=/\w/,KK=/^\s*$/;function t0(Z){if(!Z)return;let q=Z.lastIndexOf("-");return q>=0?Z.substring(q+1).trim():Z.trim()}function L8(Z){if(Z===void 0)return;let q=Z.replace(VK,"").trim();return q===""?"":q}function Nq(Z){if(Z==="var")return"let";if(Z==="using"||Z==="await using")return"const";return Z}var $K=null,GK=/(\}|\};)$/,UK=/[-_.:/\s]+/,Rq=/^@component/,jK=/\r/g,BK=/[\r\n]+/g;class T1{options;syntaxMode="legacy";source;compiled;parsed;rest_props;extends;componentComment;reactive_vars=new Set;vars=new Set;props=new Map;moduleExports=new Map;slots=new Map;events=new Map;eventDescriptions=new Map;forwardedEvents=new Map;typedefs=new Map;generics=null;bindings=new Map;contexts=new Map;variableInfoCache=new Map;propLocalToPublicName=new Map;restPropLocals=new Set;snippetPropLocals=new Set;runesPropTypeMetadataByDeclaratorStart=new Map;componentScope=new Map;scopeDeclarations=new WeakMap;activeScopes=[];sourceLinesCache;constructor(Z){this.options=Z}static mapToArray(Z){return Array.from(Z,([q,Q])=>Q)}static assignValue(Z){return Z===void 0||Z===""?void 0:Z}resolvePublicPropName(Z){return this.propLocalToPublicName.get(Z)??Z}trackPropLocalName(Z,q=Z){this.propLocalToPublicName.set(q,Z)}getPropByLocalOrPublic(Z){return this.props.get(this.resolvePublicPropName(Z))}getPropTypeByLocalOrPublic(Z){return this.getPropByLocalOrPublic(Z)?.type}getRunesPropTypeMetadata(Z,q){if(Z===void 0)return;return this.runesPropTypeMetadataByDeclaratorStart.get(Z)?.get(q)}declareScopeBinding(Z,q,Q){if(T1.assignValue(q)===void 0||Z.has(q))return;Z.set(q,Q)}resolveIdentifierToReactiveProp(Z){for(let q=this.activeScopes.length-1;q>=0;q-=1){let Q=this.activeScopes[q]?.get(Z);if(!Q)continue;return Q.kind==="prop"?Q.publicPropName:void 0}return}collectPatternIdentifiers(Z,q=new Set){if(!Z||typeof Z!=="object"||!("type"in Z))return q;switch(Z.type){case"Identifier":q.add(Z.name);break;case"AssignmentPattern":this.collectPatternIdentifiers(Z.left,q);break;case"ArrayPattern":for(let Q of Z.elements)this.collectPatternIdentifiers(Q??void 0,q);break;case"ObjectPattern":for(let Q of Z.properties)if(Q.type==="Property")this.collectPatternIdentifiers(Q.value,q);else if(Q.type==="RestElement")this.collectPatternIdentifiers(Q.argument,q);break;case"RestElement":this.collectPatternIdentifiers(Z.argument,q);break}return q}markReactivePropsFromMutationTarget(Z){let q=this.collectPatternIdentifiers(Z);if(!q)return;for(let Q of q){let J=this.resolveIdentifierToReactiveProp(Q);if(J)this.reactive_vars.add(J)}}isScopeOwner(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return!1;switch(String(Z.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}isFunctionScopeOwner(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return!1;let q=String(Z.type);return q==="FunctionDeclaration"||q==="FunctionExpression"||q==="ArrowFunctionExpression"}getOrCreateScope(Z){let q=this.scopeDeclarations.get(Z);if(!q)q=new Map,this.scopeDeclarations.set(Z,q);return q}declareVariableDeclaration(Z,q,Q,J){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="VariableDeclaration")return;let Y=J?.allowRunesProps??!1,X=J?.forceProp??!1,z=Z;for(let V of z.declarations){if(Y&&this.isCallExpressionNamed(V.init,"$props")){for(let $ of this.extractRunesScopeBindings(z,V))this.declareScopeBinding($.kind==="prop"?q:Q,$.name,$.kind==="prop"?{kind:"prop",publicPropName:$.publicPropName}:{kind:"local"});continue}let W=z.kind==="var"?Q:q,K=X?"prop":"local";for(let $ of this.collectPatternIdentifiers(V.id))this.declareScopeBinding(W,$,K==="prop"?{kind:"prop",publicPropName:$}:{kind:"local"})}}declareFunctionLikeScopeBindings(Z,q){if("id"in Z&&Z.id&&typeof Z.id==="object"&&"name"in Z.id&&typeof Z.id.name==="string")this.declareScopeBinding(q,Z.id.name,{kind:"local"});for(let Q of Z.params)for(let J of this.collectPatternIdentifiers(Q))this.declareScopeBinding(q,J,{kind:"local"})}collectDirectBlockDeclarations(Z,q,Q){if(!Array.isArray(Z))return;for(let J of Z){if(!J||typeof J!=="object"||!("type"in J))continue;switch(J.type){case"VariableDeclaration":this.declareVariableDeclaration(J,q,Q);break;case"FunctionDeclaration":if(J.id?.name)this.declareScopeBinding(q,J.id.name,{kind:"local"});break;case"ClassDeclaration":if(J.id?.name)this.declareScopeBinding(q,J.id.name,{kind:"local"});break}}}extractRunesScopeBindings(Z,q){let Q=[];if(q.id.type==="Identifier")return Q.push({kind:"local",name:q.id.name}),Q;if(q.id.type!=="ObjectPattern")return Q;for(let J of q.id.properties){if(J.type==="RestElement"){if(J.argument.type==="Identifier")Q.push({kind:"local",name:J.argument.name});continue}if(J.computed)continue;let Y=this.getPropertyName(J.key);if(!Y)continue;let X;if(J.value.type==="Identifier")X=J.value.name;else if(J.value.type==="AssignmentPattern"&&J.value.left.type==="Identifier")X=J.value.left.name;if(!X)continue;Q.push({kind:"prop",name:X,publicPropName:Y})}return Q}collectComponentScopeDeclarations(Z){if(!Z||typeof Z!=="object")return;let q="content"in Z&&Z.content&&typeof Z.content==="object"&&"body"in Z.content&&Array.isArray(Z.content.body)?Z.content:("body"in Z)&&Array.isArray(Z.body)?Z:void 0;if(!q||!("body"in q)||!Array.isArray(q.body))return;for(let Q of q.body){if(!Q||typeof Q!=="object"||!("type"in Q))continue;switch(Q.type){case"ImportDeclaration":for(let J of Q.specifiers??[])if(J.local?.name)this.declareScopeBinding(this.componentScope,J.local.name,{kind:"local"});break;case"VariableDeclaration":this.declareVariableDeclaration(Q,this.componentScope,this.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(Q.id?.name)this.declareScopeBinding(this.componentScope,Q.id.name,{kind:"local"});break;case"ClassDeclaration":if(Q.id?.name)this.declareScopeBinding(this.componentScope,Q.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!Q.declaration||typeof Q.declaration!=="object"||!("type"in Q.declaration))break;if(Q.declaration.type==="VariableDeclaration")this.declareVariableDeclaration(Q.declaration,this.componentScope,this.componentScope,{forceProp:!0});else if(Q.declaration.type==="FunctionDeclaration"&&Q.declaration.id?.name)this.declareScopeBinding(this.componentScope,Q.declaration.id.name,{kind:"prop",publicPropName:Q.declaration.id.name});break}}}collectNestedScopeDeclarations(Z){let q=[this.componentScope];o0(Z,{enter:(Q)=>{if(!this.isScopeOwner(Q))return;let J=this.getOrCreateScope(Q),Y=q[q.length-1]??this.componentScope;switch(String(Q.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":this.declareFunctionLikeScopeBindings(Q,J);break;case"BlockStatement":this.collectDirectBlockDeclarations(Q.body,J,Y);break;case"CatchClause":if("param"in Q)for(let z of this.collectPatternIdentifiers(Q.param))this.declareScopeBinding(J,z,{kind:"local"});break;case"EachBlock":{let z=Q;for(let V of this.collectPatternIdentifiers(z.context))this.declareScopeBinding(J,V,{kind:"local"});if(typeof z.index==="string")this.declareScopeBinding(J,z.index,{kind:"local"});else if(z.index&&"name"in z.index)this.declareScopeBinding(J,z.index.name,{kind:"local"});break}case"ThenBlock":if("value"in Q)for(let z of this.collectPatternIdentifiers(Q.value))this.declareScopeBinding(J,z,{kind:"local"});break;case"CatchBlock":if("error"in Q)for(let z of this.collectPatternIdentifiers(Q.error))this.declareScopeBinding(J,z,{kind:"local"});break}if(this.isFunctionScopeOwner(Q))q.push(J)},leave:(Q)=>{if(this.isFunctionScopeOwner(Q))q.pop()}})}buildScopeDeclarations(Z){this.componentScope.clear(),this.scopeDeclarations=new WeakMap,this.activeScopes.length=0,this.collectComponentScopeDeclarations(this.parsed?.instance),this.collectNestedScopeDeclarations(Z)}createRestPropsFromParent(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return;let q=String(Z.type);if(q!=="InlineComponent"&&q!=="Element")return;let Q="name"in Z&&typeof Z.name==="string"?Z.name:void 0;if(!Q)return;let J=q==="InlineComponent"?{type:"InlineComponent",name:Q}:{type:"Element",name:Q};if(q==="Element"&&Q==="svelte:element"&&"tag"in Z&&typeof Z.tag==="string")J.thisValue=Z.tag;return J}maybeSetRestProps(Z){if(this.rest_props!==void 0)return;let q=this.createRestPropsFromParent(Z);if(q)this.rest_props=q}isCallExpressionNamed(Z,q){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return!1;let Q=Z;return!!Q.callee&&typeof Q.callee==="object"&&"name"in Q.callee&&Q.callee.name===q}getPropertyName(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return;if(Z.type==="Identifier")return Z.name;if(Z.type==="Literal")return Z.value==null?void 0:String(Z.value);return}logUnsupportedRunesPattern(Z){if(this.options?.verbose&&this.syntaxMode==="runes")console.warn(`Warning: ${Z}`)}static formatComment(Z){let q=Z;if(!q.startsWith("/*"))q=`/*${q}`;if(!q.endsWith("*/"))q+="*/";return q}getCommentTags(Z){let q=Z[0]?.tags??[],Q=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback"]),J,Y=[],X,z=[];for(let V of q)if(V.tag==="type")J=V;else if(V.tag==="param")Y.push(V);else if(V.tag==="returns"||V.tag==="return")X=V;else if(!Q.has(V.tag))z.push(V);return{type:J,param:Y,returns:X,additional:z,description:Z[0]?.description}}static findJSDocComment(Z){if(!Z||Z.length===0)return;let q=Z[Z.length-1];return q&&typeof q==="object"&&"value"in q?q:void 0}findAdjacentJSDocComment(Z,q){if(!Z||Z.length===0||q===void 0||!this.source)return;for(let Q=Z.length-1;Q>=0;Q--){let J=Z[Q];if(!J||typeof J!=="object"||!("value"in J)||!("end"in J))continue;if(typeof J.end!=="number")continue;let Y=this.source.slice(J.end,q);if(KK.test(Y))return J}return}processNodeJSDoc(Z){if(!Z?.leadingComments)return;let q=this.findAdjacentJSDocComment(Z.leadingComments,Z.start);if(!q)return;return this.processJSDocComment([q])}processLeadingCommentsJSDoc(Z){if(!Z?.leadingComments)return;return this.processNodeJSDoc(Z)}processJSDocComment(Z){if(!Z)return;let q=T1.findJSDocComment(Z);if(!q)return;let Q=E6(T1.formatComment(q.value),{spacing:"preserve"}),{type:J,param:Y,returns:X,additional:z,description:V}=this.getCommentTags(Q),W,K,$,H;if(J)W=this.aliasType(J.type);if(Y.length>0)K=Y.filter((O)=>!O.name.includes(".")).map((O)=>({name:O.name,type:this.aliasType(O.type),description:L8(O.description),optional:O.optional||!1}));if(X)$=this.aliasType(X.type);let M=T1.assignValue(V?.trim());if(M||z.length>0){let O=[];if(M)O.push(M);for(let L of z){let B=`@${L.tag}${L.name?` ${L.name}`:""}${L.description?` ${L.description}`:""}`;O.push(B)}H=O.join(`
|
|
58
|
+
`)}return{type:W,params:K,returnType:$,description:H}}buildRunesPropTypeMetadata(){if(this.runesPropTypeMetadataByDeclaratorStart.clear(),!this.source)return;let q=Oq(this.source,{modern:!0}).instance?.content?.body??[];for(let Q of q){if(!Q||typeof Q!=="object"||!("declarations"in Q))continue;for(let J of Q.declarations??[]){if(!this.isCallExpressionNamed(J.init,"$props"))continue;if(J.id?.type!=="ObjectPattern")continue;let Y=J.id.typeAnnotation?.typeAnnotation;if(!Y||Y.type!=="TSTypeLiteral")continue;let X=new Map;for(let z of Y.members??[]){if(!z||z.type!=="TSPropertySignature"||z.computed)continue;if(!z.key)continue;let V=this.getPropertyName(z.key);if(!V)continue;let W=z.typeAnnotation?.start,K=z.typeAnnotation?.end;if(W===void 0||K===void 0)continue;let $=this.sourceAtPos(W+1,K)?.trim();if(!$)continue;X.set(V,{type:$,optional:z.optional===!0})}if(J.start!==void 0&&X.size>0)this.runesPropTypeMetadataByDeclaratorStart.set(J.start,X)}}}isNumericConstant(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return!1;if(Z.type!=="MemberExpression")return!1;let q=Z,Q=q.object&&"name"in q.object?q.object.name:void 0,J=q.property&&"name"in q.property?q.property.name:void 0;if(!Q||!J)return!1;if(Q==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(J);if(Q==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(J);return!1}sourceAtPos(Z,q){return this.source?.slice(Z,q)}processInitializer(Z){let q,Q,J=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:q,type:Q,isFunction:J};if(Z.type==="ObjectExpression"||Z.type==="BinaryExpression"||Z.type==="ArrayExpression"||Z.type==="ArrowFunctionExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")q=this.sourceAtPos(Y.start,Y.end)?.replace(BK," ");if(Q=q,J=Z.type==="ArrowFunctionExpression",Z.type==="BinaryExpression"){let X=Z;if(X.left&&typeof X.left==="object"&&"type"in X.left&&X.left.type==="Literal"&&"value"in X.left&&typeof X.left.value==="string")Q="string"}if(Z.type==="ArrowFunctionExpression")Q="(...args: any[]) => any",q=void 0}else if(Z.type==="UnaryExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")q=this.sourceAtPos(Y.start,Y.end);if(Y.argument){if(typeof Y.argument==="object"&&"type"in Y.argument&&Y.argument.type==="UnaryExpression")Q=this.processInitializer(Y.argument).type;else if(typeof Y.argument==="object"&&"value"in Y.argument)Q=typeof Y.argument.value}}else if(Z.type==="NewExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")q=this.sourceAtPos(Y.start,Y.end);if(Y.callee&&typeof Y.callee==="object"&&"type"in Y.callee&&Y.callee.type==="Identifier"){let X=Y.callee.name;if(X==="Date")Q="Date";else if(X==="Map")Q="Map<any, any>";else if(X==="Set")Q="Set<any>";else if(X==="WeakMap")Q="WeakMap<object, any>";else if(X==="WeakSet")Q="WeakSet<object>";else if(X==="Array")Q="any[]";else if(X==="RegExp"||X==="Regexp")Q="RegExp";else if(X==="Error")Q="Error";else Q=X}}else if(Z.type==="CallExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")q=this.sourceAtPos(Y.start,Y.end)}else if(Z.type==="Identifier"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")q=this.sourceAtPos(Y.start,Y.end)}else if(Z.type==="MemberExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")q=this.sourceAtPos(Y.start,Y.end);if(this.isNumericConstant(Z))Q="number"}else if(Z.type==="TemplateLiteral"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")q=this.sourceAtPos(Y.start,Y.end);Q="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(q=Z.raw,"value"in Z)Q=Z.value==null?void 0:typeof Z.value}return{value:q,type:Q,isFunction:J}}unwrapBindableInitializer(Z){if(this.isCallExpressionNamed(Z,"$bindable"))return{init:Z.arguments[0],bindable:!0};return{init:Z,bindable:!1}}parseRunesPropsDeclaration(Z){for(let q of Z.declarations){if(!this.isCallExpressionNamed(q.init,"$props"))continue;let Q=this.processNodeJSDoc(Z);if(q.id.type==="Identifier"){this.restPropLocals.add(q.id.name);continue}if(q.id.type!=="ObjectPattern"){this.logUnsupportedRunesPattern("Skipping unsupported $props() declaration pattern.");continue}let J=q.id.properties.filter((Y)=>{if(Y.type!=="Property"||Y.computed)return!1;if(!this.getPropertyName(Y.key))return!1;if(Y.value.type==="Identifier")return!0;return Y.value.type==="AssignmentPattern"&&Y.value.left.type==="Identifier"}).length;for(let Y of q.id.properties){if(Y.type==="RestElement"){if(Y.argument.type==="Identifier")this.restPropLocals.add(Y.argument.name);else this.logUnsupportedRunesPattern("Skipping unsupported rest element in $props() destructuring.");continue}if(Y.computed){this.logUnsupportedRunesPattern("Skipping computed property in $props() destructuring.");continue}let X=this.getPropertyName(Y.key);if(!X){this.logUnsupportedRunesPattern("Skipping unsupported property name in $props() destructuring.");continue}let z,V;if(Y.value.type==="Identifier")z=Y.value.name;else if(Y.value.type==="AssignmentPattern"){if(Y.value.left.type!=="Identifier"){this.logUnsupportedRunesPattern(`Skipping nested pattern for prop "${X}" in $props() destructuring.`);continue}z=Y.value.left.name,V=Y.value.right}else{this.logUnsupportedRunesPattern(`Skipping nested pattern for prop "${X}" in $props() destructuring.`);continue}if(!z)continue;if(this.trackPropLocalName(X,z),X==="children")this.snippetPropLocals.add(z);let W=this.processLeadingCommentsJSDoc(Y)??(J===1?Q:void 0),K=this.getRunesPropTypeMetadata(q.start,X),{init:$,bindable:H}=this.unwrapBindableInitializer(V),M=$==null?{isFunction:!1}:this.processInitializer($),{value:O,type:L,isFunction:B}=M,C=!!W?.params?.length||W?.returnType!==void 0||W?.type?.includes("=>"),y=W?.type??K?.type??L;if(H)this.reactive_vars.add(X);this.addProp(X,{name:X,kind:"let",description:W?.description,type:y,value:O,params:W?.params,returnType:W?.returnType,isFunction:Boolean(B||C),isFunctionDeclaration:!1,isRequired:$==null&&K?.optional!==!0,constant:!1,reactive:H})}}}inferSlotPropValueFromExpression(Z){let q={value:void 0,replace:!1};if(!Z||typeof Z!=="object"||!("type"in Z))return q;if(Z.type==="Identifier")q.value=Z.name,q.replace=!0;else if(Z.type==="Literal")q.value=String(Z.value);else if(Z.type==="MemberExpression")q.value=this.resolveMemberExpressionType(Z);else if((Z.type==="ObjectExpression"||Z.type==="TemplateLiteral")&&"start"in Z&&"end"in Z&&typeof Z.start==="number"&&typeof Z.end==="number")q.value=this.sourceAtPos(Z.start,Z.end);return q}buildSlotPropsFromObjectExpression(Z){let q={};for(let Q of Z.properties){if(Q.type!=="Property"||Q.computed)continue;let J=this.getPropertyName(Q.key);if(!J)continue;q[J]=this.inferSlotPropValueFromExpression(Q.value)}return q}extractRenderTagInfo(Z){let q=Z;if(q&&typeof q==="object"&&"type"in q&&q.type==="ChainExpression")q=q.expression;if(!q||typeof q!=="object"||!("type"in q)||q.type!=="CallExpression")return null;let Q=q;if(!Q.callee||typeof Q.callee!=="object"||!("type"in Q.callee))return null;if(Q.callee.type!=="Identifier")return null;return{localName:Q.callee.name,argument:Q.arguments[0]}}addProp(Z,q){if(T1.assignValue(Z)===void 0)return;if(this.trackPropLocalName(Z),this.props.has(Z)){let Q=this.props.get(Z);this.props.set(Z,{...Q,...q})}else this.props.set(Z,q)}addModuleExport(Z,q){if(T1.assignValue(Z)===void 0)return;if(this.moduleExports.has(Z)){let Q=this.moduleExports.get(Z);this.moduleExports.set(Z,{...Q,...q})}else this.moduleExports.set(Z,q)}aliasType(Z){if(Z==="*")return"any";return Z.trim()}extractPropertyType(Z,q){let Q=Z.trim();if(!Q.startsWith("{")||!Q.endsWith("}"))return;let J=Q.slice(1,-1),Y=[],X=0,z="";for(let V of J)if(V==="{"||V==="<"||V==="("||V==="[")X++,z+=V;else if(V==="}"||V===">"||V===")"||V==="]")X--,z+=V;else if((V===";"||V===",")&&X===0)Y.push(z.trim()),z="";else z+=V;if(z.trim())Y.push(z.trim());for(let V of Y){if(!V.startsWith(q))continue;let W=V.slice(q.length);if(W.length>0&&WK.test(W[0]))continue;let K=W.trimStart();if(K.startsWith("?"))K=K.slice(1).trimStart();if(K.startsWith(":"))return K.slice(1).trim()}return}resolveMemberExpressionType(Z){let q=Z;if(q.computed||q.object?.type!=="Identifier"||q.property?.type!=="Identifier")return;let Q=q.object.name,J=q.property.name;if(!Q||!J)return;let Y=this.getPropTypeByLocalOrPublic(Q)??this.findVariableTypeAndDescription(Q)?.type;if(!Y)return;return this.extractPropertyType(Y,J)}addSlot({slot_name:Z,slot_props:q,slot_fallback:Q,slot_description:J}){let Y=Z===void 0||Z==="",X=Y?$K:Z??"",z=T1.assignValue(Q),V=T1.assignValue(q),W=t0(J);if(this.slots.has(X)){let K=this.slots.get(X);if(K)this.slots.set(X,{...K,default:K.default??Y,fallback:z,slot_props:K.slot_props===void 0?V:K.slot_props,description:K.description||W})}else this.slots.set(X,{name:X,default:Y,fallback:z,slot_props:q,description:W})}addDispatchedEvent({name:Z,detail:q,has_argument:Q,description:J}){if(Z===void 0)return;let Y=!Q&&!q?"null":T1.assignValue(q),X=t0(J);if(this.events.has(Z)){let z=this.events.get(Z);this.events.set(Z,{...z,detail:z.detail===void 0?Y:z.detail,description:z.description||X})}else this.events.set(Z,{type:"dispatched",name:Z,detail:Y,description:X})}normalizeRunesCallbackProps(Z){if(this.syntaxMode!=="runes")return;for(let[q,Q]of Array.from(this.events.entries())){if(Q.type!=="dispatched")continue;if(Z.has(q)||this.forwardedEvents.has(q))continue;let J=`on${q}`,Y=this.props.get(J);if(!Y)continue;let X=Y.type!==void 0||Y.params!==void 0||Y.returnType!==void 0,z=Q.detail===void 0||Q.detail==="undefined"||Q.detail==="null"?"() => void":`(detail: ${Q.detail}) => void`;this.props.set(J,{...Y,description:Y.description??Q.description,type:X?Y.type:z,isFunction:!0}),this.events.delete(q)}}parseCustomTypes(){if(!this.source)return;for(let{tags:Z,description:q,source:Q}of E6(this.source,{spacing:"preserve"})){let J,Y,X,z=[],V,W,K,$=[],H,M,O=[],L,B=!1,C=!0,y=new Map,P=new Set;for(let E of Z)if(E.source&&E.source.length>0)P.add(E.source[0].number);for(let E of Q)if(!E.tokens.tag&&E.tokens.description&&E.tokens.description.trim()!=="}")y.set(E.number,E.tokens.description);let _=(E)=>{if(!E||E.length===0)return;let N=E[0].number,A=[],T=!1;for(let j=N-1;j>=1;j--){if(P.has(j))break;let x=y.get(j);if(x)A.unshift(x),T=!0;else if(T){let b=Q.find((G)=>G.number===j);if(!(!b||!b.tokens.tag&&(!b.tokens.description||b.tokens.description.trim()==="")))break}}return A.length>0?A.join(`
|
|
59
|
+
`).trim():void 0},v=()=>{if(J!==void 0){let E;if(z.length>0)E=this.buildEventDetailFromProperties(z,J,!0);else E=Y||"";this.addDispatchedEvent({name:J,detail:E,has_argument:!1,description:X}),this.eventDescriptions.set(J,X),z.length=0,J=void 0,Y=void 0,X=void 0}},h=()=>{if(V!==void 0){let E,N;if($.length>0)E=this.buildEventDetailFromProperties($,void 0,!0),N=`type ${V} = ${E}`;else if(W)E=W,N=GK.test(E)?`interface ${V} ${E}`:`type ${V} = ${E}`;else E="{}",N=`type ${V} = ${E}`;this.typedefs.set(V,{type:E,name:V,description:T1.assignValue(K),ts:N}),$.length=0,V=void 0,W=void 0,K=void 0}},d=()=>{if(H!==void 0){let A=`(${O.map(({name:j,type:x,optional:b})=>{return`${j}${b?"?":""}: ${x}`}).join(", ")}) => ${L||"void"}`,T=`type ${H} = ${A}`;this.typedefs.set(H,{type:A,name:H,description:T1.assignValue(M),ts:T}),O.length=0,L=void 0,H=void 0,M=void 0}};for(let{tag:E,type:N,name:A,description:T,optional:j,default:x,source:b}of Z){let S=this.aliasType(N),G=_(b);switch(E){case"extends":case"extendProps":if(this.extends={interface:A,import:S},C)C=!1;break;case"restProps":{let F=A?T?`${A} ${T}`:A:T,f=L8(F)||G;if(!f&&C&&!B&&q)f=q,B=!0;if(this.rest_props={type:"Element",name:S,description:f||void 0},C)C=!1;break}case"slot":case"snippet":{let u=L8(T)||G;if(!u&&C&&!B&&q)u=q,B=!0;if(C)C=!1;this.addSlot({slot_name:A,slot_props:S,slot_description:u||void 0});break}case"event":{if(v(),J=A,Y=S,X=L8(T)||G,!X&&C&&!B&&q)X=q,B=!0;if(C)C=!1;break}case"type":if(J!==void 0)Y=S;break;case"param":if(H!==void 0)O.push({name:A,type:S,optional:j||!1});break;case"returns":case"return":if(H!==void 0)L=S;break;case"property":{let F={name:A,type:S,description:L8(T),optional:j||!1,default:x};if(J!==void 0)z.push(F);else if(V!==void 0)$.push(F);break}case"typedef":{if(h(),V=A,W=S,K=L8(T)||G,!K&&C&&!B&&q)K=q,B=!0;if(C)C=!1;break}case"callback":{if(d(),H=A,M=L8(T)||G,!M&&C&&!B&&q)M=q,B=!0;if(C)C=!1;break}case"generics":if(this.generics=[A,S],C)C=!1;break}}v(),h(),d()}}buildEventDetailFromProperties(Z,q,Q=!1){if(Z.length===0)return"null";let J=Z.map(({name:Y,type:X,description:z,optional:V,default:W})=>{let K=V?"?":"",$=z||"";if(W&&$)$=`${$} @default ${W}`;else if(W)$=`@default ${W}`;if($){if(Q)return`/** ${$} */
|
|
60
|
+
${Y}${K}: ${X};`;return`/** ${$} */ ${Y}${K}: ${X};`}return`${Y}${K}: ${X};`}).join(Q?`
|
|
61
|
+
`:" ");return Q?`{
|
|
62
|
+
${J}
|
|
63
|
+
}`:`{ ${J} }`}generateContextTypeName(Z){return`${Z.split(UK).map((J)=>J.charAt(0).toUpperCase()+J.slice(1)).join("")}Context`}buildVariableInfoCache(){if(!this.source)return;if(!this.sourceLinesCache)this.sourceLinesCache=this.source.split(`
|
|
64
|
+
`);let Z=this.sourceLinesCache;for(let q=0;q<Z.length;q++){let J=Z[q].trim().match(zK);if(J){let Y=J[1];for(let X=q-1;X>=0;X--){let z=Z[X].trim();if(z&&!z.startsWith("*")&&!z.startsWith("/*")&&!z.startsWith("//"))break;if(z.startsWith("/**")){let V=[];for(let M=X;M<q;M++)V.push(Z[M]);let W=V.join(`
|
|
65
|
+
`),K=E6(W,{spacing:"preserve"}),{type:$,description:H}=this.getCommentTags(K);if($)this.variableInfoCache.set(Y,{type:this.aliasType($.type),description:H||$.description});break}}}}}static VAR_NAME_REGEX_CACHE=new Map;static getVarNameRegexes(Z){let q=T1.VAR_NAME_REGEX_CACHE.get(Z);if(!q){let Q=Z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");q=[new RegExp(`const\\s+${Q}\\s*=`),new RegExp(`let\\s+${Q}\\s*=`),new RegExp(`function\\s+${Q}\\s*\\(`)],T1.VAR_NAME_REGEX_CACHE.set(Z,q)}return q}findVariableTypeAndDescription(Z){let q=this.getPropByLocalOrPublic(Z);if(q?.type)return{type:q.type,description:q.description};let Q=this.variableInfoCache.get(Z);if(Q)return Q;if(!this.source)return null;if(!this.sourceLinesCache)this.sourceLinesCache=this.source.split(`
|
|
66
|
+
`);let J=this.sourceLinesCache,[Y,X,z]=T1.getVarNameRegexes(Z);for(let V=0;V<J.length;V++){let W=J[V].trim(),K=W.match(Y),$=W.match(X),H=W.match(z);if(K||$||H)for(let M=V-1;M>=0;M--){let O=J[M].trim();if(O&&!O.startsWith("*")&&!O.startsWith("/*")&&!O.startsWith("//"))break;if(O.startsWith("/**")){let L=[];for(let _=M;_<V;_++)L.push(J[_]);let B=L.join(`
|
|
67
|
+
`),C=E6(B,{spacing:"preserve"}),{type:y,description:P}=this.getCommentTags(C);if(y)return{type:this.aliasType(y.type),description:P||y.description};break}}}return null}parseContextValue(Z,q){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="ObjectExpression"){let Q=[],J=Z;for(let Y of J.properties)if(Y.type==="Property"){let X=Y,z=X.key&&"name"in X.key?X.key.name:X.key&&("value"in X.key)?String(X.key.value):void 0;if(!z)continue;let V="any",W;if(X.value&&typeof X.value==="object"&&"type"in X.value){if(X.value.type==="Identifier"){let K=X.value.name,$=this.findVariableTypeAndDescription(K);if($)V=$.type,W=$.description;else if(this.options?.verbose)console.warn(`Warning: Context "${q}" property "${z}" has no type annotation. Using "any".`)}else if(X.value.type==="ArrowFunctionExpression"||X.value.type==="FunctionExpression")V=`(${X.value.params?.map((H)=>{if(H&&typeof H==="object"&&"name"in H)return`${H.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(X.value.type==="Literal"){let K=X.value;V=K.value==null?"null":typeof K.value}}Q.push({name:z,type:V,description:W,optional:!1})}return{key:q,typeName:this.generateContextTypeName(q),properties:Q,description:void 0}}else if(Z.type==="Identifier"){let J=Z.name,Y=this.findVariableTypeAndDescription(J);if(Y)return{key:q,typeName:this.generateContextTypeName(q),properties:[{name:J,type:Y.type,description:Y.description,optional:!1}]};else if(this.options?.verbose)console.warn(`Warning: Context "${q}" variable "${J}" has no type annotation. Using "any".`);return{key:q,typeName:this.generateContextTypeName(q),properties:[{name:J,type:"any",description:void 0,optional:!1}]}}return null}parseSetContextCall(Z,q){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let Q=Z,J=Q.arguments[0];if(!J)return;let Y=null;if(J.type==="Literal"){let V=J;Y=typeof V.value==="string"?V.value:String(V.value)}else if(J.type==="TemplateLiteral"){if(J.quasis?.length===1){let V=J.quasis[0].value.cooked;Y=V==null?null:V}else if(this.options?.verbose)console.warn("Warning: Skipping setContext with dynamic template literal key")}else if(this.options?.verbose)console.warn(`Warning: Skipping setContext with non-literal key (type: ${J.type})`);if(!Y)return;let X=Q.arguments[1];if(!X)return;let z=this.parseContextValue(X,Y);if(z)if(this.contexts.has(Y)){if(this.options?.verbose)console.warn(`Warning: Multiple setContext calls with key "${Y}". Using first occurrence.`)}else this.contexts.set(Y,z)}cleanup(){this.syntaxMode="legacy",this.source=void 0,this.compiled=void 0,this.parsed=void 0,this.rest_props=void 0,this.extends=void 0,this.componentComment=void 0,this.reactive_vars.clear(),this.props.clear(),this.moduleExports.clear(),this.slots.clear(),this.events.clear(),this.eventDescriptions.clear(),this.forwardedEvents.clear(),this.typedefs.clear(),this.generics=null,this.bindings.clear(),this.contexts.clear(),this.variableInfoCache.clear(),this.propLocalToPublicName.clear(),this.restPropLocals.clear(),this.snippetPropLocals.clear(),this.runesPropTypeMetadataByDeclaratorStart.clear(),this.componentScope.clear(),this.scopeDeclarations=new WeakMap,this.activeScopes.length=0,this.sourceLinesCache=void 0}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(Z){return T1.SCRIPT_BLOCK_REGEX.lastIndex=0,Z.replace(T1.SCRIPT_BLOCK_REGEX,(q,Q,J,Y)=>{T1.TS_DIRECTIVE_REGEX.lastIndex=0;let X=J.replace(T1.TS_DIRECTIVE_REGEX,"");return Q+X+Y})}parseSvelteComponent(Z,q){if(this.options?.verbose)console.log(`[parsing] "${q.moduleName}" ${q.filePath}`);this.cleanup();let Q=T1.stripTypeScriptDirectivesFromScripts(Z);this.source=Q,this.buildRunesPropTypeMetadata();let J=XK(Q,{generate:!1,modernAst:!1});if(this.compiled=J,this.syntaxMode=J.metadata.runes?"runes":"legacy",this.parsed=J.ast||Oq(Q,{modern:!1}),this.sourceLinesCache=this.source.split(`
|
|
68
|
+
`),this.buildVariableInfoCache(),this.parseCustomTypes(),this.parsed?.module)o0(this.parsed?.module,{enter:(B)=>{if(B.type==="ExportNamedDeclaration"){if(B.declaration==null)return;if(!B.declaration||typeof B.declaration!=="object"||!("type"in B.declaration))return;let C,y,P,_=!1,v,h,d=!1,E,N;if(B.declaration.type==="FunctionDeclaration"){let T=B.declaration;if(!T.id?.name)return;C=T.id.name,y="function",v=void 0,h="() => any",d=!0,_=!0}else if(B.declaration.type==="VariableDeclaration"){let T=B.declaration,j=T.declarations[0];if(!j||typeof j!=="object"||!("id"in j))return;let{id:x,init:b}=j;if(!x||typeof x!=="object"||!("name"in x))return;C=x.name,y=Nq(T.kind),{value:v,type:h,isFunction:d}=b==null?{isFunction:!1}:this.processInitializer(b)}else return;let A=this.processNodeJSDoc(B);if(A){if(A.type)h=A.type;if(E=A.params,N=A.returnType,A.description)P=A.description}if(_&&h==="() => any"&&N)if(E&&E.length>0)h=`(${E.map((x)=>{let b=x.optional?"?":"";return`${x.name}${b}: ${x.type}`}).join(", ")}) => ${N}`;else h=`() => ${N}`;if(!P&&h&&this.typedefs.has(h))P=this.typedefs.get(h)?.description;this.addModuleExport(C,{name:C,kind:y,description:P,type:h,value:v,params:E,returnType:N,isFunction:d,isFunctionDeclaration:_,isRequired:!1,constant:y==="const",reactive:!1})}}});let Y,X=[],z={type:"ComponentRoot",instance:this.parsed.instance,html:this.parsed.html};if(this.buildScopeDeclarations(z),this.activeScopes.push(this.componentScope),o0(z,{enter:(B,C,y)=>{let P=this.scopeDeclarations.get(B);if(P)this.activeScopes.push(P);if(B.type==="AssignmentExpression")this.markReactivePropsFromMutationTarget(B.left);if(B.type==="UpdateExpression")this.markReactivePropsFromMutationTarget(B.argument);if(B.type==="CallExpression"){let _=B,v=_.callee&&typeof _.callee==="object"&&"name"in _.callee?_.callee.name:void 0;if(v==="createEventDispatcher"){if(C&&typeof C==="object"&&"id"in C&&C.id&&typeof C.id==="object"&&"name"in C.id)Y=C.id.name}if(v==="setContext")this.parseSetContextCall(B,C??void 0);if(v)X.push({name:v,arguments:_.arguments})}if(B&&typeof B==="object"&&"type"in B&&String(B.type)==="Spread"){let _=B;if(_.expression?.name==="$$restProps"||this.restPropLocals.has(_.expression?.name??""))this.maybeSetRestProps(C)}if(B.type==="VariableDeclaration"){if(this.vars.add(B),C&&typeof C==="object"&&"type"in C&&C.type==="Program"&&B.declarations.some((_)=>this.isCallExpressionNamed(_.init,"$props")))this.parseRunesPropsDeclaration(B)}if(B.type==="ExportNamedDeclaration"){if(B.declaration==null&&B.specifiers.length===0)return;let _;if(B.declaration==null&&B.specifiers[0]?.type==="ExportSpecifier"){let S=B.specifiers[0],G=S.local&&typeof S.local==="object"&&"name"in S.local?S.local.name:void 0,F=S.exported&&typeof S.exported==="object"&&"name"in S.exported?S.exported.name:void 0;if(!G||!F)return;let u;for(let f of Array.from(this.vars))if(f.declarations.some((o)=>o.id&&typeof o.id==="object"&&("type"in o.id)&&o.id.type==="Identifier"&&o.id.name===G)){u=f;break}B.declaration=u,_=F}if(B.declaration==null)return;if(!B.declaration||typeof B.declaration!=="object"||!("type"in B.declaration))return;let v,h,d=!1,E,N,A=!1,T,j,x=!1;if(B.declaration.type==="FunctionDeclaration"){let S=B.declaration;if(!S.id?.name)return;_??=S.id.name,v="function",E=void 0,N="() => any",A=!0,d=!0,x=!1}else if(B.declaration.type==="VariableDeclaration"){let S=B.declaration,G=S.declarations[0];if(!G||typeof G!=="object"||!("id"in G))return;let{id:F,init:u}=G;if(F&&typeof F==="object"&&"name"in F)_??=F.name;else return;v=Nq(S.kind),x=v==="let"&&u==null,{value:E,type:N,isFunction:A}=u==null?{isFunction:!1}:this.processInitializer(u)}else return;let b=this.processNodeJSDoc(B);if(b){if(b.type)N=b.type;if(T=b.params,j=b.returnType,b.description)h=b.description}if(d&&N==="() => any"&&j)if(T&&T.length>0)N=`(${T.map((F)=>{let u=F.optional?"?":"";return`${F.name}${u}: ${F.type}`}).join(", ")}) => ${j}`;else N=`() => ${j}`;if(!h&&N&&this.typedefs.has(N))h=this.typedefs.get(N)?.description;this.addProp(_,{name:_,kind:v,description:h,type:N,value:E,params:T,returnType:j,isFunction:A,isFunctionDeclaration:d,isRequired:x,constant:v==="const",reactive:this.reactive_vars.has(_)})}if(B&&typeof B==="object"&&"type"in B&&String(B.type)==="Comment"){let v=B?.data?.trim()??"";if(Rq.test(v))this.componentComment=v.replace(Rq,"").replace(jK,"")}if(B&&typeof B==="object"&&"type"in B&&String(B.type)==="Slot"){let _=B,v=_.attributes?.find((E)=>E.name==="name")?.value?.[0]?.data,h=(_.attributes||[]).filter((E)=>E.name!=="name").reduce((E,N)=>{let A={value:void 0,replace:!1},T=N.value;if(T===void 0)return E;if(T[0]){let j=T[0],{type:x,expression:b,raw:S,start:G,end:F}=j;if(x==="Text"&&S!==void 0)A.value=S;else if(x==="AttributeShorthand"&&b&&typeof b==="object"&&"name"in b)A.value=b.name,A.replace=!0;if(b&&typeof b==="object"&&"type"in b){if(b.type==="Literal"&&"value"in b)A.value=String(b.value);else if(b.type==="MemberExpression")A.value=this.resolveMemberExpressionType(b);else if(b.type!=="Identifier"){if(G!==void 0&&F!==void 0){if(b.type==="ObjectExpression"||b.type==="TemplateLiteral")A.value=this.sourceAtPos(G+1,F-1)}}}}if(N.name)E[N.name]=A;return E},{}),d=_.children?.map(({start:E,end:N})=>{if(E===void 0||N===void 0)return"";return this.sourceAtPos(E,N)??""}).join("").trim();this.addSlot({slot_name:v,slot_props:JSON.stringify(h,null,2),slot_fallback:d})}if(B&&typeof B==="object"&&"type"in B&&String(B.type)==="RenderTag"){let _=B,v=this.extractRenderTagInfo(_.expression);if(v){let h=this.propLocalToPublicName.get(v.localName);if(h){this.snippetPropLocals.add(v.localName);let d;if(v.argument==null)d=JSON.stringify({},null,2);else if(typeof v.argument==="object"&&"type"in v.argument&&v.argument.type==="ObjectExpression")d=JSON.stringify(this.buildSlotPropsFromObjectExpression(v.argument),null,2);else this.logUnsupportedRunesPattern(`Skipping unsupported {@render ...} argument for snippet prop "${h}".`);this.addSlot({slot_name:h==="children"?void 0:h,slot_props:d})}}}if(B&&typeof B==="object"&&"type"in B&&String(B.type)==="EventHandler"){let _=B;if(_.expression==null&&_.name){if(C!=null&&typeof C==="object"&&"name"in C){let v=typeof C.name==="string"?C.name:void 0,h="type"in C?String(C.type):void 0;if(v&&h){let d=h==="InlineComponent"?{type:"InlineComponent",name:v}:{type:"Element",name:v};this.forwardedEvents.set(_.name,d);let E=this.events.get(_.name),N=this.eventDescriptions.get(_.name),A=t0(N);if(!E)this.events.set(_.name,{type:"forwarded",name:_.name,element:d,description:A});else if(E.type==="forwarded"&&A&&!E.description)this.events.set(_.name,{...E,description:A})}}}}if(C&&typeof C==="object"&&"type"in C&&(String(C.type)==="Element"||String(C.type)==="InlineComponent")&&B&&typeof B==="object"&&"type"in B&&String(B.type)==="Binding"){let _=B;if(_.expression?.name){let v=this.resolveIdentifierToReactiveProp(_.expression.name);if(v)this.reactive_vars.add(v)}if(String(C.type)==="Element"&&_.name==="this"&&_.expression?.name&&"name"in C&&typeof C.name==="string"){let v=this.resolveIdentifierToReactiveProp(_.expression.name);if(!v)return;let h=C.name;if(this.bindings.has(v)){let d=this.bindings.get(v);if(d&&!d.elements.includes(h))this.bindings.set(v,{...d,elements:[...d.elements,h]})}else this.bindings.set(v,{elements:[h]})}}},leave:(B)=>{if(this.scopeDeclarations.has(B))this.activeScopes.pop()}}),Y!==void 0){for(let B of X)if(B.name===Y){let C=B.arguments[0],y=C&&typeof C==="object"&&"value"in C?C.value:void 0,P=B.arguments[1],_=P&&typeof P==="object"&&"value"in P?P.value:void 0;if(y!=null)this.addDispatchedEvent({name:String(y),detail:_==null?"":String(_),has_argument:Boolean(P)})}}let V=new Set;if(Y!==void 0){for(let B of X)if(B.name===Y){let C=B.arguments[0],y=C&&typeof C==="object"&&"value"in C?C.value:void 0;if(y!=null)V.add(String(y))}}this.forwardedEvents.forEach((B,C)=>{let y=this.events.get(C);if(y&&y.type==="dispatched"&&!V.has(C)){let P=this.eventDescriptions.get(C),_=t0(P),v={type:"forwarded",name:C,element:B,description:_};if(y.detail!==void 0&&y.detail!=="undefined")v.detail=y.detail;this.events.set(C,v)}}),this.normalizeRunesCallbackProps(V);let W=this.syntaxMode==="runes"?new Set(Array.from(this.snippetPropLocals,(B)=>this.resolvePublicPropName(B))):new Set,K=T1.mapToArray(this.props).filter((B)=>!W.has(B.name)).map((B)=>{if(this.bindings.has(B.name)){let C=this.bindings.get(B.name)?.elements.sort().map((y)=>wq(y)).join(" | ");return{...B,type:`null | ${C}`,reactive:B.reactive||this.reactive_vars.has(B.name)}}return{...B,reactive:B.reactive||this.reactive_vars.has(B.name)}});this.activeScopes.length=0;let $=T1.mapToArray(this.slots).map((B)=>{try{if(!B.slot_props)return B;let C=JSON.parse(B.slot_props),y=[];for(let _ of Object.keys(C)){if(C[_].replace&&C[_].value!==void 0)C[_].value=this.getPropTypeByLocalOrPublic(C[_].value);if(C[_].value===void 0)C[_].value="any";y.push(`${_}: ${C[_].value}`)}let P=y.length===0?"Record<string, never>":`{ ${y.join(", ")} }`;return{...B,slot_props:P}}catch(C){return B}}).sort((B,C)=>{let y=B.name??"",P=C.name??"";if(y<P)return-1;if(y>P)return 1;return 0}),H=T1.mapToArray(this.moduleExports),M=T1.mapToArray(this.events).map((B)=>{if(B.type==="forwarded")return{...B,element:B.element.name};return B}).sort((B,C)=>{let y=B.name.localeCompare(C.name);if(y!==0)return y;let P=B.type.localeCompare(C.type);if(P!==0)return P;if(B.type==="forwarded"&&C.type==="forwarded"){let _=B.element.localeCompare(C.element);if(_!==0)return _}return(B.detail??"").localeCompare(C.detail??"")}),O=T1.mapToArray(this.typedefs),L=T1.mapToArray(this.contexts);return{props:K,moduleExports:H,slots:$,events:M,typedefs:O,generics:this.generics,rest_props:this.rest_props,extends:this.extends,componentComment:this.componentComment,contexts:L}}}var gQ=F8(Dq(),1),mQ=F8(Sq(),1),uQ=F8(Eq(),1),dQ=F8(UQ(),1);import U9,{dirname as B9,resolve as l8,extname as TG,normalize as AG,sep as PG}from"path";import p8,{realpathSync as SG}from"fs";import{promisify as i8}from"util";import{pathToFileURL as J4,fileURLToPath as fQ}from"url";var xQ=F8(yQ(),1);import{extname as BI,sep as bQ,resolve as OG,posix as NG}from"path";function RG(Z){return Array.isArray(Z)}function EQ(Z){if(RG(Z))return Z;if(Z==null)return[];return[Z]}function CG(Z,q){if(q===!1)return Z;let Q=OG(q||"").split(bQ).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return NG.join(Q,Z)}var kQ=function(q,Q,J){let Y=J&&J.resolve,X=(W)=>W instanceof RegExp?W:{test:(K)=>{let $=CG(W,Y);return xQ.default($,{dot:!0})(K)}},z=EQ(q).map(X),V=EQ(Q).map(X);return function(K){if(typeof K!=="string")return!1;if(/\0/.test(K))return!1;let $=K.split(bQ).join("/");for(let H=0;H<V.length;++H)if(V[H].test($))return!1;for(let H=0;H<z.length;++H)if(z[H].test($))return!0;return!z.length}},IG="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public",_G="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl",DG=new Set(`${IG} ${_G}`.split(" "));DG.add("");var yG="13.3.0";i8(p8.access);var lQ=i8(p8.readFile),cQ=i8(p8.realpath),M9=i8(p8.stat);async function Y4(Z){try{return(await M9(Z)).isFile()}catch{return!1}}async function j9(Z){return await Y4(Z)?cQ(Z):Z}var pQ=(Z)=>{if(Z.code==="ENOENT")return!1;throw Z},H9=(Z)=>{let q=new Map,Q=async(J,Y)=>{if(q.has(J)===!1)q.set(J,Z(J).catch((X)=>{throw q.delete(J),X}));try{let z=await q.get(J);return Y(null,z)}catch(X){return Y(X)}};return Q.clear=()=>q.clear(),Q},F9=H9(async(Z)=>{try{return(await M9(Z)).isDirectory()}catch(q){return pQ(q)}}),L9=H9(async(Z)=>{try{return(await M9(Z)).isFile()}catch(q){return pQ(q)}}),w9=H9(lQ);function EG(Z){let q=[];if(Z.customResolveOptions){let{customResolveOptions:Q}=Z;if(Q.moduleDirectory)Z.moduleDirectories=Array.isArray(Q.moduleDirectory)?Q.moduleDirectory:[Q.moduleDirectory],q.push("node-resolve: The `customResolveOptions.moduleDirectory` option has been deprecated. Use `moduleDirectories`, which must be an array.");if(Q.preserveSymlinks)throw Error("node-resolve: `customResolveOptions.preserveSymlinks` is no longer an option. We now always use the rollup `preserveSymlinks` option.");["basedir","package","extensions","includeCoreModules","readFile","isFile","isDirectory","realpath","packageFilter","pathFilter","paths","packageIterator"].forEach((J)=>{if(Q[J])throw Error(`node-resolve: \`customResolveOptions.${J}\` is no longer an option. If you need this, please open an issue.`)})}return{warnings:q}}function iQ(Z){if(Z.startsWith(".")||Z.startsWith("/"))return null;let q=Z.split("/");if(q[0][0]==="@")return`${q[0]}/${q[1]}`;return q[0]}function bG(Z){let q;if(Z.mainFields)({mainFields:q}=Z);else q=["module","main"];if(Z.browser&&q.indexOf("browser")===-1)return["browser"].concat(q);if(!q.length)throw Error("Please ensure at least one `mainFields` value is specified");return q}function nQ(Z){let{cache:q,extensions:Q,pkg:J,mainFields:Y,preserveSymlinks:X,useBrowserOverrides:z,rootDir:V,ignoreSideEffectsForRoot:W}=Z,{pkgPath:K}=Z;if(q.has(K))return q.get(K);if(!X)K=SG(K);let $=B9(K),H={packageJson:{...J},packageJsonPath:K,root:$,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""},M=!1;for(let B=0;B<Y.length;B++){let C=Y[B];if(typeof J[C]==="string"){J.main=J[C],H.resolvedMainField=C,M=!0;break}}let O={cachedPkg:J,hasModuleSideEffects:()=>null,hasPackageEntry:M!==!1||Y.indexOf("main")!==-1,packageBrowserField:z&&typeof J.browser==="object"&&Object.keys(J.browser).reduce((B,C)=>{let y=J.browser[C];if(y&&y[0]===".")y=l8($,y);if(B[C]=y,C[0]==="."){let P=l8($,C);if(B[P]=y,!TG(C))Q.reduce((_,v)=>{return _[P+v]=_[C],_},B)}return B},{}),packageInfo:H},L=O.packageBrowserField;if(z&&typeof J.browser==="object"&&L.hasOwnProperty(J.main))H.resolvedEntryPoint=L[J.main],H.browserMappedMain=!0;else H.resolvedEntryPoint=l8($,J.main||"index.js"),H.browserMappedMain=!1;if(!W||V!==$){let B=J.sideEffects;if(typeof B==="boolean")O.hasModuleSideEffects=()=>B;else if(Array.isArray(B)){let C=B.map((y)=>{if(y.includes("/"))return y;return`**/${y}`});O.hasModuleSideEffects=kQ(C,null,{resolve:$})}}return q.set(K,O),O}function xG(Z){if(Array.isArray(Z))return Z;else if(typeof Z==="object")return Object.values(Z);return[Z]}function kG(Z,q){return q.some((Q)=>Z.endsWith(Q))}async function sQ(Z,q){let{root:Q}=U9.parse(Z),J=Z;while(J!==Q&&!kG(J,q)){let Y=U9.join(J,"package.json");if(await Y4(Y)){let X=p8.readFileSync(Y,"utf-8");return{pkgJson:JSON.parse(X),pkgPath:J,pkgJsonPath:Y}}J=U9.resolve(J,"..")}return null}function fG(Z){try{return!!new URL(Z)}catch(q){return!1}}function aQ(Z){return typeof Z==="object"&&Object.keys(Z).every((q)=>!q.startsWith("."))}function vQ(Z){return typeof Z==="object"&&!aQ(Z)}function vG(Z){let q=Object.keys(Z);return q.some((Q)=>Q.startsWith("."))&&q.some((Q)=>!Q.startsWith("."))}function rQ(Z,q){return`Could not resolve import "${Z}" in ${q}`}function O9(Z,q,Q){let{importSpecifier:J,importer:Y,pkgJsonPath:X}=Z;return`${rQ(J,Y)} using ${Q?"imports":"exports"} defined in ${X}.${q?` ${q}`:""}`}class d6 extends Error{}class oQ extends d6{constructor(Z,q){super(O9(Z,`Invalid "exports" field. ${q}`))}}class N8 extends d6{constructor(Z,q,Q){super(O9(Z,Q,q))}}class d8 extends d6{constructor(Z,q){super(O9(Z,q))}}function hQ(Z,q){return Z.split("/").slice(1).some((Q)=>[".","..",...q].includes(Q))}async function c8(Z,{target:q,subpath:Q,pattern:J,internal:Y}){if(typeof q==="string"){if(!J&&Q.length>0&&!q.endsWith("/"))throw new N8(Z);if(!q.startsWith("./")){if(Y&&!["/","../"].some((z)=>q.startsWith(z))&&!fG(q)){if(J){let V=await Z.resolveId(q.replace(/\*/g,Q),Z.pkgURL.href);return V?J4(V.location).href:null}let z=await Z.resolveId(`${q}${Q}`,Z.pkgURL.href);return z?J4(z.location).href:null}throw new d8(Z,`Invalid mapping: "${q}".`)}if(hQ(q,Z.moduleDirs))throw new d8(Z,`Invalid mapping: "${q}".`);let X=new URL(q,Z.pkgURL);if(!X.href.startsWith(Z.pkgURL.href))throw new d8(Z,`Resolved to ${X.href} which is outside package ${Z.pkgURL.href}`);if(hQ(Q,Z.moduleDirs))throw new N8(Z);if(J)return X.href.replace(/\*/g,Q);return new URL(Q,X).href}if(Array.isArray(q)){let X;for(let z of q)try{let V=await c8(Z,{target:z,subpath:Q,pattern:J,internal:Y});if(V!==void 0)return V}catch(V){if(!(V instanceof d8))throw V;else X=V}if(X)throw X;return null}if(q&&typeof q==="object"){for(let[X,z]of Object.entries(q))if(X==="default"||Z.conditions.includes(X)){let V=await c8(Z,{target:z,subpath:Q,pattern:J,internal:Y});if(V!==void 0)return V}return}if(q===null)return null;throw new d8(Z,"Invalid exports field.")}async function tQ(Z,{matchKey:q,matchObj:Q,internal:J}){if(!q.endsWith("*")&&q in Q){let X=Q[q];return await c8(Z,{target:X,subpath:"",internal:J})}let Y=Object.keys(Q).filter((X)=>X.endsWith("/")||X.endsWith("*")).sort((X,z)=>z.length-X.length);for(let X of Y){let z=X.substring(0,X.length-1);if(X.endsWith("*")&&q.startsWith(z)){let V=Q[X],W=q.substring(X.length-1);return await c8(Z,{target:V,subpath:W,pattern:!0,internal:J})}if(q.startsWith(X)){let V=Q[X],W=q.substring(X.length);return await c8(Z,{target:V,subpath:W,internal:J})}}throw new N8(Z,J)}async function hG(Z,q,Q){if(vG(Q))throw new oQ(Z,"All keys must either start with ./, or without one.");if(q==="."){let J;if(typeof Q==="string"||Array.isArray(Q)||aQ(Q))J=Q;else if(vQ(Q))J=Q["."];if(J){let Y=await c8(Z,{target:J,subpath:""});if(Y)return Y}}else if(vQ(Q)){let J=await tQ(Z,{matchKey:q,matchObj:Q});if(J)return J}throw new N8(Z)}async function gG({importSpecifier:Z,importer:q,moduleDirs:Q,conditions:J,resolveId:Y}){let X=await sQ(q,Q);if(!X)throw Error(rQ(". Could not find a parent package.json."));let{pkgPath:z,pkgJsonPath:V,pkgJson:W}=X,K=J4(`${z}/`),$={importer:q,importSpecifier:Z,moduleDirs:Q,pkgURL:K,pkgJsonPath:V,conditions:J,resolveId:Y},{imports:H}=W;if(!H)throw new N8($,!0);if(Z==="#"||Z.startsWith("#/"))throw new N8($,!0,"Invalid import specifier.");return tQ($,{matchKey:Z,matchObj:H,internal:!0})}var eQ=i8(dQ.default),mG=i8(p8.readFile);async function uG(Z,q,Q,J){if(Z){let Y=await sQ(Z,J);if(Y&&Y.pkgJson.name===q)return Y}try{let Y=await eQ(`${q}/package.json`,Q),X=JSON.parse(await mG(Y,"utf-8"));return{pkgJsonPath:Y,pkgJson:X,pkgPath:B9(Y)}}catch(Y){return null}}async function ZJ({importSpecifier:Z,packageInfoCache:q,extensions:Q,mainFields:J,preserveSymlinks:Y,useBrowserOverrides:X,baseDir:z,moduleDirectories:V,rootDir:W,ignoreSideEffectsForRoot:K}){let $=()=>null,H=!0,M=!1,O,B={basedir:z,readFile:w9,isFile:L9,isDirectory:F9,extensions:Q,includeCoreModules:!1,moduleDirectory:V,preserveSymlinks:Y,packageFilter:(y,P)=>{let _=nQ({cache:q,extensions:Q,pkg:y,pkgPath:P,mainFields:J,preserveSymlinks:Y,useBrowserOverrides:X,rootDir:W,ignoreSideEffectsForRoot:K});return{packageInfo:O,hasModuleSideEffects:$,hasPackageEntry:H,packageBrowserField:M}=_,_.cachedPkg}},C;try{C=await eQ(Z,B)}catch(y){if(y.code!=="MODULE_NOT_FOUND")throw y;return null}return{location:Y?C:await j9(C),hasModuleSideEffects:$,hasPackageEntry:H,packageBrowserField:M,packageInfo:O}}async function dG({importer:Z,importSpecifier:q,exportConditions:Q,packageInfoCache:J,extensions:Y,mainFields:X,preserveSymlinks:z,useBrowserOverrides:V,baseDir:W,moduleDirectories:K,rootDir:$,ignoreSideEffectsForRoot:H}){if(q.startsWith("#")){let O=await gG({importSpecifier:q,importer:Z,moduleDirs:K,conditions:Q,resolveId(B){return ZJ({importSpecifier:B,packageInfoCache:J,extensions:Y,mainFields:X,preserveSymlinks:z,useBrowserOverrides:V,baseDir:W,moduleDirectories:K})}}),L=fQ(O);return{location:z?L:await j9(L),hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1,packageInfo:void 0}}let M=iQ(q);if(M){let O=()=>null,L=!0,B=!1,C,_=await uG(Z,M,{basedir:W,readFile:w9,isFile:L9,isDirectory:F9,extensions:Y,includeCoreModules:!1,moduleDirectory:K,preserveSymlinks:z,packageFilter:(v,h)=>{let d=nQ({cache:J,extensions:Y,pkg:v,pkgPath:h,mainFields:X,preserveSymlinks:z,useBrowserOverrides:V,rootDir:$,ignoreSideEffectsForRoot:H});return{packageInfo:C,hasModuleSideEffects:O,hasPackageEntry:L,packageBrowserField:B}=d,d.cachedPkg}},K);if(_&&_.pkgJson.exports){let{pkgJson:v,pkgJsonPath:h}=_,d=M===q?".":`.${q.substring(M.length)}`,E=h.replace("package.json",""),N=J4(E),T=await hG({importer:Z,importSpecifier:q,moduleDirs:K,pkgURL:N,pkgJsonPath:h,conditions:Q},d,v.exports),j=fQ(T);if(j)return{location:z?j:await j9(j),hasModuleSideEffects:O,hasPackageEntry:L,packageBrowserField:B,packageInfo:C}}}return null}async function lG({importer:Z,importSpecifierList:q,exportConditions:Q,warn:J,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M}){for(let O=0;O<q.length;O++){let L=await ZJ({importer:Z,importSpecifier:q[O],exportConditions:Q,warn:J,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M});if(L)return L}return null}async function cG({importer:Z,importSpecifierList:q,exportConditions:Q,warn:J,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M}){try{let O=await dG({importer:Z,importSpecifier:q[0],exportConditions:Q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M});if(O)return O}catch(O){if(O instanceof d6)return J(O),null;throw O}return lG({importer:Z,importSpecifierList:q,exportConditions:Q,warn:J,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M})}var Q4="\x00node-resolve:empty.js",qJ=(Z)=>{Object.freeze(Z);for(let q of Object.values(Z))if(typeof q==="object"&&!Object.isFrozen(q))qJ(q);return Z},QJ=["default","module"],pG=[...QJ,"import"],iG=[...QJ,"require"],JJ={dedupe:[],extensions:[".mjs",".js",".json",".node"],resolveOnly:[],moduleDirectories:["node_modules"],ignoreSideEffectsForRoot:!1},NI=qJ(mQ.default({},JJ));function YJ(Z={}){let{warnings:q}=EG(Z),Q={...JJ,...Z},{extensions:J,jail:Y,moduleDirectories:X,ignoreSideEffectsForRoot:z}=Q,V=[...pG,...Q.exportConditions||[]],W=[...iG,...Q.exportConditions||[]],K=new Map,$=new Map,H=bG(Q),M=H.indexOf("browser")!==-1,O=Q.preferBuiltins===!0||Q.preferBuiltins===!1,L=O?Q.preferBuiltins:!0,B=l8(Q.rootDir||process.cwd()),{dedupe:C}=Q,y;if(typeof C!=="function")C=(E)=>Q.dedupe.includes(E)||Q.dedupe.includes(iQ(E));let P=(E)=>{let N=E.map((A)=>{if(A instanceof RegExp)return A;let T=A.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${T}$`)});return(A)=>!N.length||N.some((T)=>T.test(A))},_=typeof Q.resolveOnly==="function"?Q.resolveOnly:P(Q.resolveOnly),v=new Map,h,d=async(E,N,A,T)=>{let[j,x]=N.split("?"),b=`${x?`?${x}`:""}`;N=j;let S=!A||C(N)?B:B9(A),G=v.get(A);if(M&&G){let I=l8(S,N);if(G[N]===!1||G[I]===!1)return{id:Q4};let g=N[0]!=="."&&G[N]||G[I]||G[`${I}.js`]||G[`${I}.json`];if(g)N=g}let F=N.split(/[/\\]/),u=F.shift(),f=!1;if(u[0]==="@"&&F.length>0)u+=`/${F.shift()}`;else if(u[0]===".")u=l8(S,N),f=!0;if(!f&&!_(u)){if(xG(y.input).includes(N))return null;return!1}let o=[N];if(A===void 0&&!N[0].match(/^\.?\.?\//))o.push(`./${N}`);if(A&&N.endsWith(".js")){for(let I of[".ts",".tsx"])if(A.endsWith(I)&&J.includes(I))o.push(N.replace(/.js$/,I))}let t=(...I)=>E.warn(...I),N1=T&&T["node-resolve"]&&T["node-resolve"].isRequire?W:V;if(M&&!N1.includes("browser"))N1.push("browser");let R1=await cG({importer:A,importSpecifierList:o,exportConditions:N1,warn:t,packageInfoCache:K,extensions:J,mainFields:H,preserveSymlinks:h,useBrowserOverrides:M,baseDir:S,moduleDirectories:X,rootDir:B,ignoreSideEffectsForRoot:z}),F1=gQ.default(N),a=F1&&L?{packageInfo:void 0,hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1}:R1;if(!a)return null;let{packageInfo:m,hasModuleSideEffects:L1,hasPackageEntry:p,packageBrowserField:D}=a,{location:k}=a;if(D){if(Object.prototype.hasOwnProperty.call(D,k)){if(!D[k])return v.set(k,D),{id:Q4};k=D[k]}v.set(k,D)}if(p&&!h){if(await Y4(k))k=await cQ(k)}if($.set(k,m),p){if(F1&&L){if(!O&&R1&&a!==N)E.warn(`preferring built-in module '${N}' over local alternative at '${R1.location}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`);return!1}else if(Y&&k.indexOf(AG(Y.trim(PG)))!==0)return null}if(Q.modulesOnly&&await Y4(k)){let I=await lQ(k,"utf-8");if(uQ.default(I))return{id:`${k}${b}`,moduleSideEffects:L1(k)};return null}return{id:`${k}${b}`,moduleSideEffects:L1(k)}};return{name:"node-resolve",version:yG,buildStart(E){y=E;for(let N of q)this.warn(N);({preserveSymlinks:h}=E)},generateBundle(){w9.clear(),L9.clear(),F9.clear()},async resolveId(E,N,A){if(E===Q4)return E;if(/\0/.test(E))return null;if(/\0/.test(N))N=void 0;let T=await d(this,E,N,A.custom);if(T){let j=await this.resolve(T.id,N,Object.assign({skipSelf:!0},A));if(j){if(j.external)return!1;if(j.id!==T.id)return j;return{...T,meta:j.meta}}}return T},load(E){if(E===Q4)return"export default {};";return null},getPackageInfoForId(E){return $.get(E)}}}nX();var vW=F8(Sz(),1);import{existsSync as yz,readFileSync as hL}from"node:fs";import{join as Ez}from"node:path";function C6(Z){if(Z){let Q=Ez(process.cwd(),Z);if(yz(Q))return Z;else return console.log(`Invalid entry point: ${Q}.`),null}let q=Ez(process.cwd(),"package.json");if(!yz(q))return console.log(`Could not locate a package.json file.
|
|
69
|
+
`),null;try{let Q=JSON.parse(hL(q,"utf-8"));if(typeof Q.svelte==="string"&&Q.svelte.trim())return Q.svelte;return console.log(`Could not determine an entry point.
|
|
70
70
|
`),console.log(`Specify an entry point to your Svelte code in the "svelte" field of your package.json.
|
|
71
|
-
`),null}catch(q){throw console.error("Error reading package.json:",q),q}}import{lstatSync as VR,readFileSync as WR}from"node:fs";import{readFile as KR}from"node:fs/promises";import{basename as $R,dirname as xW,parse as g7,relative as GR,resolve as UJ}from"node:path";import{preprocess as UR}from"svelte/compiler";import{replace as jR,typescript as BR}from"svelte-preprocess";import _6 from"fs";import BV,{posix as k8}from"path";import{fileURLToPath as OO}from"url";import{createRequire as gL}from"module";import{basename as mL,dirname as T3,normalize as uL,relative as dL,resolve as lL,sep as xz}from"path";import*as cL from"fs";var Ez=gL(import.meta.url);function pL(Z){let J=uL(Z);if(J.length>1&&J[J.length-1]===xz)J=J.substring(0,J.length-1);return J}var iL=/[\\/]/g;function kz(Z,J){return Z.replace(iL,J)}var nL=/^[a-z]:[\\/]$/i;function aL(Z){return Z==="/"||nL.test(Z)}function D3(Z,J){let{resolvePaths:q,normalizePath:Q,pathSeparator:Y}=J,X=process.platform==="win32"&&Z.includes("/")||Z.startsWith(".");if(q)Z=lL(Z);if(Q||X)Z=pL(Z);if(Z===".")return"";let z=Z[Z.length-1]!==Y;return kz(z?Z+Y:Z,Y)}function fz(Z,J){return J+Z}function sL(Z,J){return function(q,Q){if(Q.startsWith(Z))return Q.slice(Z.length)+q;else return kz(dL(Z,Q),J.pathSeparator)+J.pathSeparator+q}}function rL(Z){return Z}function oL(Z,J,q){return J+Z+q}function tL(Z,J){let{relativePaths:q,includeBasePath:Q}=J;return q&&Z?sL(Z,J):Q?fz:rL}function eL(Z){return function(J,q){q.push(J.substring(Z.length)||".")}}function Zw(Z){return function(J,q,Q){let Y=J.substring(Z.length)||".";if(Q.every((X)=>X(Y,!0)))q.push(Y)}}var Jw=(Z,J)=>{J.push(Z||".")},qw=(Z,J,q)=>{let Q=Z||".";if(q.every((Y)=>Y(Q,!0)))J.push(Q)},Qw=()=>{};function Yw(Z,J){let{includeDirs:q,filters:Q,relativePaths:Y}=J;if(!q)return Qw;if(Y)return Q&&Q.length?Zw(Z):eL(Z);return Q&&Q.length?qw:Jw}var Xw=(Z,J,q,Q)=>{if(Q.every((Y)=>Y(Z,!1)))q.files++},zw=(Z,J,q,Q)=>{if(Q.every((Y)=>Y(Z,!1)))J.push(Z)},Vw=(Z,J,q,Q)=>{q.files++},Ww=(Z,J)=>{J.push(Z)},Kw=()=>{};function $w(Z){let{excludeFiles:J,filters:q,onlyCounts:Q}=Z;if(J)return Kw;if(q&&q.length)return Q?Xw:zw;else if(Q)return Vw;else return Ww}var Gw=(Z)=>{return Z},Uw=()=>{return[""].slice(0,0)};function jw(Z){return Z.group?Uw:Gw}var Bw=(Z,J,q)=>{Z.push({directory:J,files:q,dir:J})},Mw=()=>{};function Hw(Z){return Z.group?Bw:Mw}var Fw=function(Z,J,q){let{queue:Q,fs:Y,options:{suppressErrors:X}}=J;Q.enqueue(),Y.realpath(Z,(z,V)=>{if(z)return Q.dequeue(X?null:z,J);Y.stat(V,(W,K)=>{if(W)return Q.dequeue(X?null:W,J);if(K.isDirectory()&&vz(Z,V,J))return Q.dequeue(null,J);q(K,V),Q.dequeue(null,J)})})},Lw=function(Z,J,q){let{queue:Q,fs:Y,options:{suppressErrors:X}}=J;Q.enqueue();try{let z=Y.realpathSync(Z),V=Y.statSync(z);if(V.isDirectory()&&vz(Z,z,J))return;q(V,z)}catch(z){if(!X)throw z}};function ww(Z,J){if(!Z.resolveSymlinks||Z.excludeSymlinks)return null;return J?Lw:Fw}function vz(Z,J,q){if(q.options.useRealPaths)return Ow(J,q);let Q=T3(Z),Y=1;while(Q!==q.root&&Y<2){let X=q.symlinks.get(Q);if(!!X&&(X===J||X.startsWith(J)||J.startsWith(X)))Y++;else Q=T3(Q)}return q.symlinks.set(Z,J),Y>1}function Ow(Z,J){return J.visited.includes(Z+J.options.pathSeparator)}var Nw=(Z)=>{return Z.counts},Rw=(Z)=>{return Z.groups},Cw=(Z)=>{return Z.paths},Iw=(Z)=>{return Z.paths.slice(0,Z.options.maxFiles)},_w=(Z,J,q)=>{return L7(J,q,Z.counts,Z.options.suppressErrors),null},Dw=(Z,J,q)=>{return L7(J,q,Z.paths,Z.options.suppressErrors),null},Tw=(Z,J,q)=>{return L7(J,q,Z.paths.slice(0,Z.options.maxFiles),Z.options.suppressErrors),null},Aw=(Z,J,q)=>{return L7(J,q,Z.groups,Z.options.suppressErrors),null};function L7(Z,J,q,Q){if(Z&&!Q)J(Z,q);else J(null,q)}function Pw(Z,J){let{onlyCounts:q,group:Q,maxFiles:Y}=Z;if(q)return J?Nw:_w;else if(Q)return J?Rw:Aw;else if(Y)return J?Iw:Tw;else return J?Cw:Dw}var hz={withFileTypes:!0},Sw=(Z,J,q,Q,Y)=>{if(Z.queue.enqueue(),Q<0)return Z.queue.dequeue(null,Z);let{fs:X}=Z;Z.visited.push(J),Z.counts.directories++,X.readdir(J||".",hz,(z,V=[])=>{Y(V,q,Q),Z.queue.dequeue(Z.options.suppressErrors?null:z,Z)})},yw=(Z,J,q,Q,Y)=>{let{fs:X}=Z;if(Q<0)return;Z.visited.push(J),Z.counts.directories++;let z=[];try{z=X.readdirSync(J||".",hz)}catch(V){if(!Z.options.suppressErrors)throw V}Y(z,q,Q)};function Ew(Z){return Z?yw:Sw}var bw=class{count=0;constructor(Z){this.onQueueEmpty=Z}enqueue(){return this.count++,this.count}dequeue(Z,J){if(this.onQueueEmpty&&(--this.count<=0||Z)){if(this.onQueueEmpty(Z,J),Z)J.controller.abort(),this.onQueueEmpty=void 0}}},xw=class{_files=0;_directories=0;set files(Z){this._files=Z}get files(){return this._files}set directories(Z){this._directories=Z}get directories(){return this._directories}get dirs(){return this._directories}},kw=class{aborted=!1;abort(){this.aborted=!0}},gz=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(Z,J,q){this.isSynchronous=!q,this.callbackInvoker=Pw(J,this.isSynchronous),this.root=D3(Z,J),this.state={root:aL(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new xw,options:J,queue:new bw((Q,Y)=>this.callbackInvoker(Y,Q,q)),symlinks:new Map,visited:[""].slice(0,0),controller:new kw,fs:J.fs||cL},this.joinPath=tL(this.root,J),this.pushDirectory=Yw(this.root,J),this.pushFile=$w(J),this.getArray=jw(J),this.groupFiles=Hw(J),this.resolveSymlink=ww(J,this.isSynchronous),this.walkDirectory=Ew(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(Z,J,q)=>{let{paths:Q,options:{filters:Y,resolveSymlinks:X,excludeSymlinks:z,exclude:V,maxFiles:W,signal:K,useRealPaths:$,pathSeparator:H},controller:M}=this.state;if(M.aborted||K&&K.aborted||W&&Q.length>W)return;let O=this.getArray(this.state.paths);for(let j=0;j<Z.length;++j){let L=Z[j];if(L.isFile()||L.isSymbolicLink()&&!X&&!z){let I=this.joinPath(L.name,J);this.pushFile(I,O,this.state.counts,Y)}else if(L.isDirectory()){let I=oL(L.name,J,this.state.options.pathSeparator);if(V&&V(L.name,I))continue;this.pushDirectory(I,Q,Y),this.walkDirectory(this.state,I,I,q-1,this.walk)}else if(this.resolveSymlink&&L.isSymbolicLink()){let I=fz(L.name,J);this.resolveSymlink(I,this.state,(y,_)=>{if(y.isDirectory()){if(_=D3(_,this.state.options),V&&V(L.name,$?_:I+H))return;this.walkDirectory(this.state,_,$?_:I+H,q-1,this.walk)}else{_=$?_:I;let T=mL(_),g=D3(T3(_),this.state.options);_=this.joinPath(T,g),this.pushFile(_,O,this.state.counts,Y)}})}}this.groupFiles(this.state.groups,J,O)}};function fw(Z,J){return new Promise((q,Q)=>{mz(Z,J,(Y,X)=>{if(Y)return Q(Y);q(X)})})}function mz(Z,J,q){new gz(Z,J,q).start()}function vw(Z,J){return new gz(Z,J).start()}var bz=class{constructor(Z,J){this.root=Z,this.options=J}withPromise(){return fw(this.root,this.options)}withCallback(Z){mz(this.root,this.options,Z)}sync(){return vw(this.root,this.options)}},uz=null;try{Ez.resolve("picomatch"),uz=Ez("picomatch")}catch{}var dz=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:xz,filters:[]};globFunction;constructor(Z){this.options={...this.options,...Z},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(Z){return this.options.pathSeparator=Z,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(Z){return this.options.maxDepth=Z,this}withMaxFiles(Z){return this.options.maxFiles=Z,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:Z=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=Z,this.withFullPaths()}withAbortSignal(Z){return this.options.signal=Z,this}normalize(){return this.options.normalizePath=!0,this}filter(Z){return this.options.filters.push(Z),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(Z){return this.options.exclude=Z,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(Z){return new bz(Z||".",this.options)}withGlobFunction(Z){return this.globFunction=Z,this}crawlWithOptions(Z,J){return this.options={...this.options,...J},new bz(Z||".",this.options)}glob(...Z){if(this.globFunction)return this.globWithOptions(Z);return this.globWithOptions(Z,...[{dot:!0}])}globWithOptions(Z,...J){let q=this.globFunction||uz;if(!q)throw Error("Please specify a glob function to use glob matching.");var Q=this.globCache[Z.join("\x00")];if(!Q)Q=q(Z,...J),this.globCache[Z.join("\x00")]=Q;return this.options.filters.push((Y)=>Q(Y)),this}};var T6=F8(UV(),1),NO=Array.isArray,MV=process.platform==="win32",RO=/^(\/?\.\.)+$/;function CO(Z,J={}){let q=Z.length,Q=Array(q),Y=Array(q),X=!J.noglobstar;for(let z=0;z<q;z++){let V=HV(Z[z]);Q[z]=V;let W=V.length,K=Array(W);for(let $=0;$<W;$++)K[$]=T6.default(V[$],J);Y[z]=K}return(z)=>{let V=z.split("/");if(V[0]===".."&&RO.test(z))return!0;for(let W=0;W<Z.length;W++){let K=Q[W],$=Y[W],H=V.length,M=Math.min(H,K.length),O=0;while(O<M){let j=K[O];if(j.includes("/"))return!0;if(!$[O](V[O]))break;if(X&&j==="**")return!0;O++}if(O===H)return!0}return!1}}var IO=/^[A-Z]:\/$/i,_O=MV?(Z)=>IO.test(Z):(Z)=>Z==="/";function jV(Z,J,q){if(Z===J||J.startsWith(`${Z}/`)){if(q){let Y=_O(Z)?Z.length:Z.length+1;return(X,z)=>X.slice(Y,z?-1:void 0)||"."}let Q=J.slice(Z.length+1);if(Q)return(Y,X)=>{if(Y===".")return Q;let z=`${Q}/${Y}`;return X?z.slice(0,-1):z};return(Y,X)=>X&&Y!=="."?Y.slice(0,-1):Y}if(q)return(Q)=>k8.relative(Z,Q)||".";return(Q)=>k8.relative(Z,`${J}/${Q}`)||"."}function DO(Z,J){if(J.startsWith(`${Z}/`)){let q=J.slice(Z.length+1);return(Q)=>`${q}/${Q}`}return(q)=>{let Q=k8.relative(Z,`${J}/${q}`);if(q.endsWith("/")&&Q!=="")return`${Q}/`;return Q||"."}}var TO={parts:!0};function HV(Z){var J;let q=T6.default.scan(Z,TO);return((J=q.parts)===null||J===void 0?void 0:J.length)?q.parts:[Z]}var AO=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,PO=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,SO=(Z)=>Z.replace(AO,"\\$&"),yO=(Z)=>Z.replace(PO,"\\$&"),EO=MV?yO:SO;function bO(Z,J){if((J===null||J===void 0?void 0:J.caseSensitiveMatch)===!1)return!0;let q=T6.default.scan(Z);return q.isGlob||q.negated}function D6(...Z){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...Z)}var xO=/^(\/?\.\.)+/,kO=/\\(?=[()[\]{}!*+?@|])/g,O7=/\\/g;function f3(Z,J,q,Q,Y){let X=Z;if(Z.endsWith("/"))X=Z.slice(0,-1);if(!X.endsWith("*")&&J)X+="/**";let z=EO(q);if(BV.isAbsolute(X.replace(kO,"")))X=k8.relative(z,X);else X=k8.normalize(X);let V=xO.exec(X),W=HV(X);if(V===null||V===void 0?void 0:V[0]){let $=(V[0].length+1)/3,H=0,M=z.split("/");while(H<$&&W[H+$]===M[M.length+H-$])X=X.slice(0,($-H-1)*3)+X.slice(($-H)*3+W[H+$].length+1)||".",H++;let O=k8.join(q,V[0].slice(H*3));if(!O.startsWith(".")&&Q.root.length>O.length)Q.root=O,Q.depthOffset=-$+H}if(!Y&&Q.depthOffset>=0){var K;(K=Q.commonPath)!==null&&K!==void 0||(Q.commonPath=W);let $=[],H=Math.min(Q.commonPath.length,W.length);for(let M=0;M<H;M++){let O=W[M];if(O==="**"&&!W[M+1]){$.pop();break}if(O!==Q.commonPath[M]||bO(O)||M===W.length-1)break;$.push(O)}Q.depthOffset=$.length,Q.commonPath=$,Q.root=$.length>0?k8.join(q,...$):q}return X}function fO({patterns:Z=["**/*"],ignore:J=[],expandDirectories:q=!0},Q,Y){if(typeof Z==="string")Z=[Z];if(typeof J==="string")J=[J];let X=[],z=[];for(let V of J){if(!V)continue;if(V[0]!=="!"||V[1]==="(")z.push(f3(V,q,Q,Y,!0))}for(let V of Z){if(!V)continue;if(V[0]!=="!"||V[1]==="(")X.push(f3(V,q,Q,Y,!1));else if(V[1]!=="!"||V[2]==="(")z.push(f3(V.slice(1),q,Q,Y,!0))}return{match:X,ignore:z}}function vO(Z,J){for(let q=Z.length-1;q>=0;q--){let Q=Z[q];Z[q]=J(Q)}return Z}function hO(Z){if(!Z)return process.cwd().replace(O7,"/");if(Z instanceof URL)return OO(Z).replace(O7,"/");return BV.resolve(Z).replace(O7,"/")}function gO(Z,J={}){let q=process.env.TINYGLOBBY_DEBUG?{...J,debug:!0}:J,Q=hO(q.cwd);if(q.debug)D6("globbing with:",{patterns:Z,options:q,cwd:Q});if(Array.isArray(Z)&&Z.length===0)return[{sync:()=>[],withPromise:async()=>[]},!1];let Y={root:Q,commonPath:null,depthOffset:0},X=fO({...q,patterns:Z},Q,Y);if(q.debug)D6("internal processing patterns:",X);let z={dot:q.dot,nobrace:q.braceExpansion===!1,nocase:q.caseSensitiveMatch===!1,noextglob:q.extglob===!1,noglobstar:q.globstar===!1,posix:!0},V=T6.default(X.match,{...z,ignore:X.ignore}),W=T6.default(X.ignore,z),K=CO(X.match,z),$=jV(Q,Y.root,q.absolute),H=q.absolute?$:jV(Q,Y.root,!0),M={filters:[q.debug?(L,I)=>{let y=$(L,I),_=V(y);if(_)D6(`matched ${y}`);return _}:(L,I)=>V($(L,I))],exclude:q.debug?(L,I)=>{let y=H(I,!0),_=y!=="."&&!K(y)||W(y);if(_)D6(`skipped ${I}`);else D6(`crawling ${I}`);return _}:(L,I)=>{let y=H(I,!0);return y!=="."&&!K(y)||W(y)},fs:q.fs?{readdir:q.fs.readdir||_6.readdir,readdirSync:q.fs.readdirSync||_6.readdirSync,realpath:q.fs.realpath||_6.realpath,realpathSync:q.fs.realpathSync||_6.realpathSync,stat:q.fs.stat||_6.stat,statSync:q.fs.statSync||_6.statSync}:void 0,pathSeparator:"/",relativePaths:!0,resolveSymlinks:!0,signal:q.signal};if(q.deep!==void 0)M.maxDepth=Math.round(q.deep-Y.depthOffset);if(q.absolute)M.relativePaths=!1,M.resolvePaths=!0,M.includeBasePath=!0;if(q.followSymbolicLinks===!1)M.resolveSymlinks=!1,M.excludeSymlinks=!0;if(q.onlyDirectories)M.excludeFiles=!0,M.includeDirs=!0;else if(q.onlyFiles===!1)M.includeDirs=!0;Y.root=Y.root.replace(O7,"");let O=Y.root;if(q.debug)D6("internal properties:",Y);let j=Q!==O&&!q.absolute&&DO(Q,Y.root);return[new dz(M).crawl(O),j]}function FV(Z,J){if(Z&&(J===null||J===void 0?void 0:J.patterns))throw Error("Cannot pass patterns as both an argument and an option");let q=NO(Z)||typeof Z==="string",Q=q?J:Z,Y=q?Z:Z.patterns,[X,z]=gO(Y,Q);if(!z)return X.sync();return vO(X.sync(),z)}import{lstatSync as SN,readdirSync as yN,readFileSync as EN}from"node:fs";import{dirname as bN,join as $W,resolve as xN}from"node:path";var mO=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],RV=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],uO="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",CV="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",v3={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},h3="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",dO={5:h3,"5module":h3+" export import",6:h3+" const class extends export import super"},IV=/^in(stanceof)?$/,lO=new RegExp("["+CV+"]"),cO=new RegExp("["+CV+uO+"]");function g3(Z,J){var q=65536;for(var Q=0;Q<J.length;Q+=2){if(q+=J[Q],q>Z)return!1;if(q+=J[Q+1],q>=Z)return!0}return!1}function u5(Z,J){if(Z<65)return Z===36;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&lO.test(String.fromCharCode(Z));if(J===!1)return!1;return g3(Z,RV)}function B8(Z,J){if(Z<48)return Z===36;if(Z<58)return!0;if(Z<65)return!1;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&cO.test(String.fromCharCode(Z));if(J===!1)return!1;return g3(Z,RV)||g3(Z,mO)}var I1=function(J,q){if(q===void 0)q={};this.label=J,this.keyword=q.keyword,this.beforeExpr=!!q.beforeExpr,this.startsExpr=!!q.startsExpr,this.isLoop=!!q.isLoop,this.isAssign=!!q.isAssign,this.prefix=!!q.prefix,this.postfix=!!q.postfix,this.binop=q.binop||null,this.updateContext=null};function C5(Z,J){return new I1(Z,{beforeExpr:!0,binop:J})}var I5={beforeExpr:!0},W5={startsExpr:!0},c3={};function O1(Z,J){if(J===void 0)J={};return J.keyword=Z,c3[Z]=new I1(Z,J)}var w={num:new I1("num",W5),regexp:new I1("regexp",W5),string:new I1("string",W5),name:new I1("name",W5),privateId:new I1("privateId",W5),eof:new I1("eof"),bracketL:new I1("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new I1("]"),braceL:new I1("{",{beforeExpr:!0,startsExpr:!0}),braceR:new I1("}"),parenL:new I1("(",{beforeExpr:!0,startsExpr:!0}),parenR:new I1(")"),comma:new I1(",",I5),semi:new I1(";",I5),colon:new I1(":",I5),dot:new I1("."),question:new I1("?",I5),questionDot:new I1("?."),arrow:new I1("=>",I5),template:new I1("template"),invalidTemplate:new I1("invalidTemplate"),ellipsis:new I1("...",I5),backQuote:new I1("`",W5),dollarBraceL:new I1("${",{beforeExpr:!0,startsExpr:!0}),eq:new I1("=",{beforeExpr:!0,isAssign:!0}),assign:new I1("_=",{beforeExpr:!0,isAssign:!0}),incDec:new I1("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new I1("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:C5("||",1),logicalAND:C5("&&",2),bitwiseOR:C5("|",3),bitwiseXOR:C5("^",4),bitwiseAND:C5("&",5),equality:C5("==/!=/===/!==",6),relational:C5("</>/<=/>=",7),bitShift:C5("<</>>/>>>",8),plusMin:new I1("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:C5("%",10),star:C5("*",10),slash:C5("/",10),starstar:new I1("**",{beforeExpr:!0}),coalesce:C5("??",1),_break:O1("break"),_case:O1("case",I5),_catch:O1("catch"),_continue:O1("continue"),_debugger:O1("debugger"),_default:O1("default",I5),_do:O1("do",{isLoop:!0,beforeExpr:!0}),_else:O1("else",I5),_finally:O1("finally"),_for:O1("for",{isLoop:!0}),_function:O1("function",W5),_if:O1("if"),_return:O1("return",I5),_switch:O1("switch"),_throw:O1("throw",I5),_try:O1("try"),_var:O1("var"),_const:O1("const"),_while:O1("while",{isLoop:!0}),_with:O1("with"),_new:O1("new",{beforeExpr:!0,startsExpr:!0}),_this:O1("this",W5),_super:O1("super",W5),_class:O1("class",W5),_extends:O1("extends",I5),_export:O1("export"),_import:O1("import",W5),_null:O1("null",W5),_true:O1("true",W5),_false:O1("false",W5),_in:O1("in",{beforeExpr:!0,binop:7}),_instanceof:O1("instanceof",{beforeExpr:!0,binop:7}),_typeof:O1("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:O1("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:O1("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},K5=/\r\n?|\n|\u2028|\u2029/,pO=new RegExp(K5.source,"g");function A6(Z){return Z===10||Z===13||Z===8232||Z===8233}function _V(Z,J,q){if(q===void 0)q=Z.length;for(var Q=J;Q<q;Q++){var Y=Z.charCodeAt(Q);if(A6(Y))return Q<q-1&&Y===13&&Z.charCodeAt(Q+1)===10?Q+2:Q+1}return-1}var DV=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,q5=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,TV=Object.prototype,iO=TV.hasOwnProperty,nO=TV.toString,P6=Object.hasOwn||function(Z,J){return iO.call(Z,J)},LV=Array.isArray||function(Z){return nO.call(Z)==="[object Array]"},wV=Object.create(null);function j8(Z){return wV[Z]||(wV[Z]=new RegExp("^(?:"+Z.replace(/ /g,"|")+")$"))}function t5(Z){if(Z<=65535)return String.fromCharCode(Z);return Z-=65536,String.fromCharCode((Z>>10)+55296,(Z&1023)+56320)}var aO=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,h0=function(J,q){this.line=J,this.column=q};h0.prototype.offset=function(J){return new h0(this.line,this.column+J)};var D7=function(J,q,Q){if(this.start=q,this.end=Q,J.sourceFile!==null)this.source=J.sourceFile};function AV(Z,J){for(var q=1,Q=0;;){var Y=_V(Z,Q,J);if(Y<0)return new h0(q,J-Q);++q,Q=Y}}var m3={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},OV=!1;function sO(Z){var J={};for(var q in m3)J[q]=Z&&P6(Z,q)?Z[q]:m3[q];if(J.ecmaVersion==="latest")J.ecmaVersion=1e8;else if(J.ecmaVersion==null){if(!OV&&typeof console==="object"&&console.warn)OV=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
72
|
-
Defaulting to 2020, but this will stop working in the future.`);
|
|
73
|
-
`,Q-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(K5).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=w.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=J.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&J.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?v8:f8),this.regexpState=null,this.privateNameStack=[]},D5={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};p1.prototype.parse=function(){var J=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(J)};D5.inFunction.get=function(){return(this.currentVarScope().flags&v8)>0};D5.inGenerator.get=function(){return(this.currentVarScope().flags&PV)>0};D5.inAsync.get=function(){return(this.currentVarScope().flags&p3)>0};D5.canAwait.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var J=this.scopeStack[Z],q=J.flags;if(q&(h8|g0))return!1;if(q&v8)return(q&p3)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};D5.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&f8)return!0;return!1};D5.allowSuper.get=function(){var Z=this.currentThisScope(),J=Z.flags;return(J&T7)>0||this.options.allowSuperOutsideMethod};D5.allowDirectSuper.get=function(){return(this.currentThisScope().flags&yV)>0};D5.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};D5.allowNewDotTarget.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var J=this.scopeStack[Z],q=J.flags;if(q&(h8|g0)||q&v8&&!(q&i3))return!0}return!1};D5.allowUsing.get=function(){var Z=this.currentScope(),J=Z.flags;if(J&EV)return!1;if(!this.inModule&&J&f8)return!1;return!0};D5.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&h8)>0};p1.extend=function(){var J=[],q=arguments.length;while(q--)J[q]=arguments[q];var Q=this;for(var Y=0;Y<J.length;Y++)Q=J[Y](Q);return Q};p1.parse=function(J,q){return new this(q,J).parse()};p1.parseExpressionAt=function(J,q,Q){var Y=new this(Q,J,q);return Y.nextToken(),Y.parseExpression()};p1.tokenizer=function(J,q){return new this(q,J)};Object.defineProperties(p1.prototype,D5);var X5=p1.prototype,oO=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;X5.strictDirective=function(Z){if(this.options.ecmaVersion<5)return!1;for(;;){q5.lastIndex=Z,Z+=q5.exec(this.input)[0].length;var J=oO.exec(this.input.slice(Z));if(!J)return!1;if((J[1]||J[2])==="use strict"){q5.lastIndex=Z+J[0].length;var q=q5.exec(this.input),Q=q.index+q[0].length,Y=this.input.charAt(Q);return Y===";"||Y==="}"||K5.test(q[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(Q+1)==="=")}if(Z+=J[0].length,q5.lastIndex=Z,Z+=q5.exec(this.input)[0].length,this.input[Z]===";")Z++}};X5.eat=function(Z){if(this.type===Z)return this.next(),!0;else return!1};X5.isContextual=function(Z){return this.type===w.name&&this.value===Z&&!this.containsEsc};X5.eatContextual=function(Z){if(!this.isContextual(Z))return!1;return this.next(),!0};X5.expectContextual=function(Z){if(!this.eatContextual(Z))this.unexpected()};X5.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||K5.test(this.input.slice(this.lastTokEnd,this.start))};X5.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};X5.semicolon=function(){if(!this.eat(w.semi)&&!this.insertSemicolon())this.unexpected()};X5.afterTrailingComma=function(Z,J){if(this.type===Z){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!J)this.next();return!0}};X5.expect=function(Z){this.eat(Z)||this.unexpected()};X5.unexpected=function(Z){this.raise(Z!=null?Z:this.start,"Unexpected token")};var P7=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};X5.checkPatternErrors=function(Z,J){if(!Z)return;if(Z.trailingComma>-1)this.raiseRecoverable(Z.trailingComma,"Comma is not permitted after the rest element");var q=J?Z.parenthesizedAssign:Z.parenthesizedBind;if(q>-1)this.raiseRecoverable(q,J?"Assigning to rvalue":"Parenthesized pattern")};X5.checkExpressionErrors=function(Z,J){if(!Z)return!1;var{shorthandAssign:q,doubleProto:Q}=Z;if(!J)return q>=0||Q>=0;if(q>=0)this.raise(q,"Shorthand property assignments are valid only in destructuring patterns");if(Q>=0)this.raiseRecoverable(Q,"Redefinition of __proto__ property")};X5.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};X5.isSimpleAssignTarget=function(Z){if(Z.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(Z.expression);return Z.type==="Identifier"||Z.type==="MemberExpression"};var q1=p1.prototype;q1.parseTopLevel=function(Z){var J=Object.create(null);if(!Z.body)Z.body=[];while(this.type!==w.eof){var q=this.parseStatement(null,!0,J);Z.body.push(q)}if(this.inModule)for(var Q=0,Y=Object.keys(this.undefinedExports);Q<Y.length;Q+=1){var X=Y[Q];this.raiseRecoverable(this.undefinedExports[X].start,"Export '"+X+"' is not defined")}return this.adaptDirectivePrologue(Z.body),this.next(),Z.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(Z,"Program")};var s3={kind:"loop"},tO={kind:"switch"};q1.isLet=function(Z){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;q5.lastIndex=this.pos;var J=q5.exec(this.input),q=this.pos+J[0].length,Q=this.fullCharCodeAt(q);if(Q===91||Q===92)return!0;if(Z)return!1;if(Q===123)return!0;if(u5(Q)){var Y=q;do q+=Q<=65535?1:2;while(B8(Q=this.fullCharCodeAt(q)));if(Q===92)return!0;var X=this.input.slice(Y,q);if(!IV.test(X))return!0}return!1};q1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;q5.lastIndex=this.pos;var Z=q5.exec(this.input),J=this.pos+Z[0].length,q;return!K5.test(this.input.slice(this.pos,J))&&this.input.slice(J,J+8)==="function"&&(J+8===this.input.length||!(B8(q=this.fullCharCodeAt(J+8))||q===92))};q1.isUsingKeyword=function(Z,J){if(this.options.ecmaVersion<17||!this.isContextual(Z?"await":"using"))return!1;q5.lastIndex=this.pos;var q=q5.exec(this.input),Q=this.pos+q[0].length;if(K5.test(this.input.slice(this.pos,Q)))return!1;if(Z){var Y=Q+5,X;if(this.input.slice(Q,Y)!=="using"||Y===this.input.length||B8(X=this.fullCharCodeAt(Y))||X===92)return!1;q5.lastIndex=Y;var z=q5.exec(this.input);if(Q=Y+z[0].length,z&&K5.test(this.input.slice(Y,Q)))return!1}var V=this.fullCharCodeAt(Q);if(!u5(V)&&V!==92)return!1;var W=Q;do Q+=V<=65535?1:2;while(B8(V=this.fullCharCodeAt(Q)));if(V===92)return!0;var K=this.input.slice(W,Q);if(IV.test(K)||J&&K==="of")return!1;return!0};q1.isAwaitUsing=function(Z){return this.isUsingKeyword(!0,Z)};q1.isUsing=function(Z){return this.isUsingKeyword(!1,Z)};q1.parseStatement=function(Z,J,q){var Q=this.type,Y=this.startNode(),X;if(this.isLet(Z))Q=w._var,X="let";switch(Q){case w._break:case w._continue:return this.parseBreakContinueStatement(Y,Q.keyword);case w._debugger:return this.parseDebuggerStatement(Y);case w._do:return this.parseDoStatement(Y);case w._for:return this.parseForStatement(Y);case w._function:if(Z&&(this.strict||Z!=="if"&&Z!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!Z);case w._class:if(Z)this.unexpected();return this.parseClass(Y,!0);case w._if:return this.parseIfStatement(Y);case w._return:return this.parseReturnStatement(Y);case w._switch:return this.parseSwitchStatement(Y);case w._throw:return this.parseThrowStatement(Y);case w._try:return this.parseTryStatement(Y);case w._const:case w._var:if(X=X||this.value,Z&&X!=="var")this.unexpected();return this.parseVarStatement(Y,X);case w._while:return this.parseWhileStatement(Y);case w._with:return this.parseWithStatement(Y);case w.braceL:return this.parseBlock(!0,Y);case w.semi:return this.parseEmptyStatement(Y);case w._export:case w._import:if(this.options.ecmaVersion>10&&Q===w._import){q5.lastIndex=this.pos;var z=q5.exec(this.input),V=this.pos+z[0].length,W=this.input.charCodeAt(V);if(W===40||W===46)return this.parseExpressionStatement(Y,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!J)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return Q===w._import?this.parseImport(Y):this.parseExport(Y,q);default:if(this.isAsyncFunction()){if(Z)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!0,!Z)}var K=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(K){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(K==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(Y,!1,K),this.semicolon(),this.finishNode(Y,"VariableDeclaration")}var $=this.value,H=this.parseExpression();if(Q===w.name&&H.type==="Identifier"&&this.eat(w.colon))return this.parseLabeledStatement(Y,$,H,Z);else return this.parseExpressionStatement(Y,H)}};q1.parseBreakContinueStatement=function(Z,J){var q=J==="break";if(this.next(),this.eat(w.semi)||this.insertSemicolon())Z.label=null;else if(this.type!==w.name)this.unexpected();else Z.label=this.parseIdent(),this.semicolon();var Q=0;for(;Q<this.labels.length;++Q){var Y=this.labels[Q];if(Z.label==null||Y.name===Z.label.name){if(Y.kind!=null&&(q||Y.kind==="loop"))break;if(Z.label&&q)break}}if(Q===this.labels.length)this.raise(Z.start,"Unsyntactic "+J);return this.finishNode(Z,q?"BreakStatement":"ContinueStatement")};q1.parseDebuggerStatement=function(Z){return this.next(),this.semicolon(),this.finishNode(Z,"DebuggerStatement")};q1.parseDoStatement=function(Z){if(this.next(),this.labels.push(s3),Z.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),Z.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(w.semi);else this.semicolon();return this.finishNode(Z,"DoWhileStatement")};q1.parseForStatement=function(Z){this.next();var J=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(s3),this.enterScope(0),this.expect(w.parenL),this.type===w.semi){if(J>-1)this.unexpected(J);return this.parseFor(Z,null)}var q=this.isLet();if(this.type===w._var||this.type===w._const||q){var Q=this.startNode(),Y=q?"let":this.value;return this.next(),this.parseVar(Q,!0,Y),this.finishNode(Q,"VariableDeclaration"),this.parseForAfterInit(Z,Q,J)}var X=this.isContextual("let"),z=!1,V=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(V){var W=this.startNode();if(this.next(),V==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(W,!0,V),this.finishNode(W,"VariableDeclaration"),this.parseForAfterInit(Z,W,J)}var K=this.containsEsc,$=new P7,H=this.start,M=J>-1?this.parseExprSubscripts($,"await"):this.parseExpression(!0,$);if(this.type===w._in||(z=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(J>-1){if(this.type===w._in)this.unexpected(J);Z.await=!0}else if(z&&this.options.ecmaVersion>=8){if(M.start===H&&!K&&M.type==="Identifier"&&M.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)Z.await=!1}if(X&&z)this.raise(M.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(M,!1,$),this.checkLValPattern(M),this.parseForIn(Z,M)}else this.checkExpressionErrors($,!0);if(J>-1)this.unexpected(J);return this.parseFor(Z,M)};q1.parseForAfterInit=function(Z,J,q){if((this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&J.declarations.length===1){if(this.options.ecmaVersion>=9)if(this.type===w._in){if(q>-1)this.unexpected(q)}else Z.await=q>-1;return this.parseForIn(Z,J)}if(q>-1)this.unexpected(q);return this.parseFor(Z,J)};q1.parseFunctionStatement=function(Z,J,q){return this.next(),this.parseFunction(Z,v0|(q?0:u3),!1,J)};q1.parseIfStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),Z.consequent=this.parseStatement("if"),Z.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(Z,"IfStatement")};q1.parseReturnStatement=function(Z){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(w.semi)||this.insertSemicolon())Z.argument=null;else Z.argument=this.parseExpression(),this.semicolon();return this.finishNode(Z,"ReturnStatement")};q1.parseSwitchStatement=function(Z){this.next(),Z.discriminant=this.parseParenExpression(),Z.cases=[],this.expect(w.braceL),this.labels.push(tO),this.enterScope(EV);var J;for(var q=!1;this.type!==w.braceR;)if(this.type===w._case||this.type===w._default){var Q=this.type===w._case;if(J)this.finishNode(J,"SwitchCase");if(Z.cases.push(J=this.startNode()),J.consequent=[],this.next(),Q)J.test=this.parseExpression();else{if(q)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");q=!0,J.test=null}this.expect(w.colon)}else{if(!J)this.unexpected();J.consequent.push(this.parseStatement(null))}if(this.exitScope(),J)this.finishNode(J,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(Z,"SwitchStatement")};q1.parseThrowStatement=function(Z){if(this.next(),K5.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return Z.argument=this.parseExpression(),this.semicolon(),this.finishNode(Z,"ThrowStatement")};var eO=[];q1.parseCatchClauseParam=function(){var Z=this.parseBindingAtom(),J=Z.type==="Identifier";return this.enterScope(J?SV:0),this.checkLValPattern(Z,J?xV:Z8),this.expect(w.parenR),Z};q1.parseTryStatement=function(Z){if(this.next(),Z.block=this.parseBlock(),Z.handler=null,this.type===w._catch){var J=this.startNode();if(this.next(),this.eat(w.parenL))J.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();J.param=null,this.enterScope(0)}J.body=this.parseBlock(!1),this.exitScope(),Z.handler=this.finishNode(J,"CatchClause")}if(Z.finalizer=this.eat(w._finally)?this.parseBlock():null,!Z.handler&&!Z.finalizer)this.raise(Z.start,"Missing catch or finally clause");return this.finishNode(Z,"TryStatement")};q1.parseVarStatement=function(Z,J,q){return this.next(),this.parseVar(Z,!1,J,q),this.semicolon(),this.finishNode(Z,"VariableDeclaration")};q1.parseWhileStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),this.labels.push(s3),Z.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(Z,"WhileStatement")};q1.parseWithStatement=function(Z){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),Z.object=this.parseParenExpression(),Z.body=this.parseStatement("with"),this.finishNode(Z,"WithStatement")};q1.parseEmptyStatement=function(Z){return this.next(),this.finishNode(Z,"EmptyStatement")};q1.parseLabeledStatement=function(Z,J,q,Q){for(var Y=0,X=this.labels;Y<X.length;Y+=1){var z=X[Y];if(z.name===J)this.raise(q.start,"Label '"+J+"' is already declared")}var V=this.type.isLoop?"loop":this.type===w._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var K=this.labels[W];if(K.statementStart===Z.start)K.statementStart=this.start,K.kind=V;else break}return this.labels.push({name:J,kind:V,statementStart:this.start}),Z.body=this.parseStatement(Q?Q.indexOf("label")===-1?Q+"label":Q:"label"),this.labels.pop(),Z.label=q,this.finishNode(Z,"LabeledStatement")};q1.parseExpressionStatement=function(Z,J){return Z.expression=J,this.semicolon(),this.finishNode(Z,"ExpressionStatement")};q1.parseBlock=function(Z,J,q){if(Z===void 0)Z=!0;if(J===void 0)J=this.startNode();if(J.body=[],this.expect(w.braceL),Z)this.enterScope(0);while(this.type!==w.braceR){var Q=this.parseStatement(null);J.body.push(Q)}if(q)this.strict=!1;if(this.next(),Z)this.exitScope();return this.finishNode(J,"BlockStatement")};q1.parseFor=function(Z,J){return Z.init=J,this.expect(w.semi),Z.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),Z.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,"ForStatement")};q1.parseForIn=function(Z,J){var q=this.type===w._in;if(this.next(),J.type==="VariableDeclaration"&&J.declarations[0].init!=null&&(!q||this.options.ecmaVersion<8||this.strict||J.kind!=="var"||J.declarations[0].id.type!=="Identifier"))this.raise(J.start,(q?"for-in":"for-of")+" loop variable declaration may not have an initializer");return Z.left=J,Z.right=q?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,q?"ForInStatement":"ForOfStatement")};q1.parseVar=function(Z,J,q,Q){Z.declarations=[],Z.kind=q;for(;;){var Y=this.startNode();if(this.parseVarId(Y,q),this.eat(w.eq))Y.init=this.parseMaybeAssign(J);else if(!Q&&q==="const"&&!(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Q&&(q==="using"||q==="await using")&&this.options.ecmaVersion>=17&&this.type!==w._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+q+" declaration");else if(!Q&&Y.id.type!=="Identifier"&&!(J&&(this.type===w._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else Y.init=null;if(Z.declarations.push(this.finishNode(Y,"VariableDeclarator")),!this.eat(w.comma))break}return Z};q1.parseVarId=function(Z,J){Z.id=J==="using"||J==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(Z.id,J==="var"?a3:Z8,!1)};var v0=1,u3=2,fV=4;q1.parseFunction=function(Z,J,q,Q,Y){if(this.initFunction(Z),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Q){if(this.type===w.star&&J&u3)this.unexpected();Z.generator=this.eat(w.star)}if(this.options.ecmaVersion>=8)Z.async=!!Q;if(J&v0){if(Z.id=J&fV&&this.type!==w.name?null:this.parseIdent(),Z.id&&!(J&u3))this.checkLValSimple(Z.id,this.strict||Z.generator||Z.async?this.treatFunctionsAsVar?a3:Z8:bV)}var X=this.yieldPos,z=this.awaitPos,V=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(n3(Z.async,Z.generator)),!(J&v0))Z.id=this.type===w.name?this.parseIdent():null;return this.parseFunctionParams(Z),this.parseFunctionBody(Z,q,!1,Y),this.yieldPos=X,this.awaitPos=z,this.awaitIdentPos=V,this.finishNode(Z,J&v0?"FunctionDeclaration":"FunctionExpression")};q1.parseFunctionParams=function(Z){this.expect(w.parenL),Z.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};q1.parseClass=function(Z,J){this.next();var q=this.strict;this.strict=!0,this.parseClassId(Z,J),this.parseClassSuper(Z);var Q=this.enterClassBody(),Y=this.startNode(),X=!1;Y.body=[],this.expect(w.braceL);while(this.type!==w.braceR){var z=this.parseClassElement(Z.superClass!==null);if(z){if(Y.body.push(z),z.type==="MethodDefinition"&&z.kind==="constructor"){if(X)this.raiseRecoverable(z.start,"Duplicate constructor in the same class");X=!0}else if(z.key&&z.key.type==="PrivateIdentifier"&&ZN(Q,z))this.raiseRecoverable(z.key.start,"Identifier '#"+z.key.name+"' has already been declared")}}return this.strict=q,this.next(),Z.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(Z,J?"ClassDeclaration":"ClassExpression")};q1.parseClassElement=function(Z){if(this.eat(w.semi))return null;var J=this.options.ecmaVersion,q=this.startNode(),Q="",Y=!1,X=!1,z="method",V=!1;if(this.eatContextual("static")){if(J>=13&&this.eat(w.braceL))return this.parseClassStaticBlock(q),q;if(this.isClassElementNameStart()||this.type===w.star)V=!0;else Q="static"}if(q.static=V,!Q&&J>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===w.star)&&!this.canInsertSemicolon())X=!0;else Q="async";if(!Q&&(J>=9||!X)&&this.eat(w.star))Y=!0;if(!Q&&!X&&!Y){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())z=W;else Q=W}if(Q)q.computed=!1,q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),q.key.name=Q,this.finishNode(q.key,"Identifier");else this.parseClassElementName(q);if(J<13||this.type===w.parenL||z!=="method"||Y||X){var K=!q.static&&C7(q,"constructor"),$=K&&Z;if(K&&z!=="method")this.raise(q.key.start,"Constructor can't have get/set modifier");q.kind=K?"constructor":z,this.parseClassMethod(q,Y,X,$)}else this.parseClassField(q);return q};q1.isClassElementNameStart=function(){return this.type===w.name||this.type===w.privateId||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword};q1.parseClassElementName=function(Z){if(this.type===w.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");Z.computed=!1,Z.key=this.parsePrivateIdent()}else this.parsePropertyName(Z)};q1.parseClassMethod=function(Z,J,q,Q){var Y=Z.key;if(Z.kind==="constructor"){if(J)this.raise(Y.start,"Constructor can't be a generator");if(q)this.raise(Y.start,"Constructor can't be an async method")}else if(Z.static&&C7(Z,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var X=Z.value=this.parseMethod(J,q,Q);if(Z.kind==="get"&&X.params.length!==0)this.raiseRecoverable(X.start,"getter should have no params");if(Z.kind==="set"&&X.params.length!==1)this.raiseRecoverable(X.start,"setter should have exactly one param");if(Z.kind==="set"&&X.params[0].type==="RestElement")this.raiseRecoverable(X.params[0].start,"Setter cannot use rest params");return this.finishNode(Z,"MethodDefinition")};q1.parseClassField=function(Z){if(C7(Z,"constructor"))this.raise(Z.key.start,"Classes can't have a field named 'constructor'");else if(Z.static&&C7(Z,"prototype"))this.raise(Z.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(w.eq))this.enterScope(g0|T7),Z.value=this.parseMaybeAssign(),this.exitScope();else Z.value=null;return this.semicolon(),this.finishNode(Z,"PropertyDefinition")};q1.parseClassStaticBlock=function(Z){Z.body=[];var J=this.labels;this.labels=[],this.enterScope(h8|T7);while(this.type!==w.braceR){var q=this.parseStatement(null);Z.body.push(q)}return this.next(),this.exitScope(),this.labels=J,this.finishNode(Z,"StaticBlock")};q1.parseClassId=function(Z,J){if(this.type===w.name){if(Z.id=this.parseIdent(),J)this.checkLValSimple(Z.id,Z8,!1)}else{if(J===!0)this.unexpected();Z.id=null}};q1.parseClassSuper=function(Z){Z.superClass=this.eat(w._extends)?this.parseExprSubscripts(null,!1):null};q1.enterClassBody=function(){var Z={declared:Object.create(null),used:[]};return this.privateNameStack.push(Z),Z.declared};q1.exitClassBody=function(){var Z=this.privateNameStack.pop(),J=Z.declared,q=Z.used;if(!this.options.checkPrivateFields)return;var Q=this.privateNameStack.length,Y=Q===0?null:this.privateNameStack[Q-1];for(var X=0;X<q.length;++X){var z=q[X];if(!P6(J,z.name))if(Y)Y.used.push(z);else this.raiseRecoverable(z.start,"Private field '#"+z.name+"' must be declared in an enclosing class")}};function ZN(Z,J){var q=J.key.name,Q=Z[q],Y="true";if(J.type==="MethodDefinition"&&(J.kind==="get"||J.kind==="set"))Y=(J.static?"s":"i")+J.kind;if(Q==="iget"&&Y==="iset"||Q==="iset"&&Y==="iget"||Q==="sget"&&Y==="sset"||Q==="sset"&&Y==="sget")return Z[q]="true",!1;else if(!Q)return Z[q]=Y,!1;else return!0}function C7(Z,J){var{computed:q,key:Q}=Z;return!q&&(Q.type==="Identifier"&&Q.name===J||Q.type==="Literal"&&Q.value===J)}q1.parseExportAllDeclaration=function(Z,J){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))Z.exported=this.parseModuleExportName(),this.checkExport(J,Z.exported,this.lastTokStart);else Z.exported=null;if(this.expectContextual("from"),this.type!==w.string)this.unexpected();if(Z.source=this.parseExprAtom(),this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(Z,"ExportAllDeclaration")};q1.parseExport=function(Z,J){if(this.next(),this.eat(w.star))return this.parseExportAllDeclaration(Z,J);if(this.eat(w._default))return this.checkExport(J,"default",this.lastTokStart),Z.declaration=this.parseExportDefaultDeclaration(),this.finishNode(Z,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(Z.declaration=this.parseExportDeclaration(Z),Z.declaration.type==="VariableDeclaration")this.checkVariableExport(J,Z.declaration.declarations);else this.checkExport(J,Z.declaration.id,Z.declaration.id.start);if(Z.specifiers=[],Z.source=null,this.options.ecmaVersion>=16)Z.attributes=[]}else{if(Z.declaration=null,Z.specifiers=this.parseExportSpecifiers(J),this.eatContextual("from")){if(this.type!==w.string)this.unexpected();if(Z.source=this.parseExprAtom(),this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause()}else{for(var q=0,Q=Z.specifiers;q<Q.length;q+=1){var Y=Q[q];if(this.checkUnreserved(Y.local),this.checkLocalExport(Y.local),Y.local.type==="Literal")this.raise(Y.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(Z.source=null,this.options.ecmaVersion>=16)Z.attributes=[]}this.semicolon()}return this.finishNode(Z,"ExportNamedDeclaration")};q1.parseExportDeclaration=function(Z){return this.parseStatement(null)};q1.parseExportDefaultDeclaration=function(){var Z;if(this.type===w._function||(Z=this.isAsyncFunction())){var J=this.startNode();if(this.next(),Z)this.next();return this.parseFunction(J,v0|fV,!1,Z)}else if(this.type===w._class){var q=this.startNode();return this.parseClass(q,"nullableID")}else{var Q=this.parseMaybeAssign();return this.semicolon(),Q}};q1.checkExport=function(Z,J,q){if(!Z)return;if(typeof J!=="string")J=J.type==="Identifier"?J.name:J.value;if(P6(Z,J))this.raiseRecoverable(q,"Duplicate export '"+J+"'");Z[J]=!0};q1.checkPatternExport=function(Z,J){var q=J.type;if(q==="Identifier")this.checkExport(Z,J,J.start);else if(q==="ObjectPattern")for(var Q=0,Y=J.properties;Q<Y.length;Q+=1){var X=Y[Q];this.checkPatternExport(Z,X)}else if(q==="ArrayPattern")for(var z=0,V=J.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkPatternExport(Z,W)}else if(q==="Property")this.checkPatternExport(Z,J.value);else if(q==="AssignmentPattern")this.checkPatternExport(Z,J.left);else if(q==="RestElement")this.checkPatternExport(Z,J.argument)};q1.checkVariableExport=function(Z,J){if(!Z)return;for(var q=0,Q=J;q<Q.length;q+=1){var Y=Q[q];this.checkPatternExport(Z,Y.id)}};q1.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};q1.parseExportSpecifier=function(Z){var J=this.startNode();return J.local=this.parseModuleExportName(),J.exported=this.eatContextual("as")?this.parseModuleExportName():J.local,this.checkExport(Z,J.exported,J.exported.start),this.finishNode(J,"ExportSpecifier")};q1.parseExportSpecifiers=function(Z){var J=[],q=!0;this.expect(w.braceL);while(!this.eat(w.braceR)){if(!q){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else q=!1;J.push(this.parseExportSpecifier(Z))}return J};q1.parseImport=function(Z){if(this.next(),this.type===w.string)Z.specifiers=eO,Z.source=this.parseExprAtom();else Z.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),Z.source=this.type===w.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(Z,"ImportDeclaration")};q1.parseImportSpecifier=function(){var Z=this.startNode();if(Z.imported=this.parseModuleExportName(),this.eatContextual("as"))Z.local=this.parseIdent();else this.checkUnreserved(Z.imported),Z.local=Z.imported;return this.checkLValSimple(Z.local,Z8),this.finishNode(Z,"ImportSpecifier")};q1.parseImportDefaultSpecifier=function(){var Z=this.startNode();return Z.local=this.parseIdent(),this.checkLValSimple(Z.local,Z8),this.finishNode(Z,"ImportDefaultSpecifier")};q1.parseImportNamespaceSpecifier=function(){var Z=this.startNode();return this.next(),this.expectContextual("as"),Z.local=this.parseIdent(),this.checkLValSimple(Z.local,Z8),this.finishNode(Z,"ImportNamespaceSpecifier")};q1.parseImportSpecifiers=function(){var Z=[],J=!0;if(this.type===w.name){if(Z.push(this.parseImportDefaultSpecifier()),!this.eat(w.comma))return Z}if(this.type===w.star)return Z.push(this.parseImportNamespaceSpecifier()),Z;this.expect(w.braceL);while(!this.eat(w.braceR)){if(!J){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else J=!1;Z.push(this.parseImportSpecifier())}return Z};q1.parseWithClause=function(){var Z=[];if(!this.eat(w._with))return Z;this.expect(w.braceL);var J={},q=!0;while(!this.eat(w.braceR)){if(!q){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else q=!1;var Q=this.parseImportAttribute(),Y=Q.key.type==="Identifier"?Q.key.name:Q.key.value;if(P6(J,Y))this.raiseRecoverable(Q.key.start,"Duplicate attribute key '"+Y+"'");J[Y]=!0,Z.push(Q)}return Z};q1.parseImportAttribute=function(){var Z=this.startNode();if(Z.key=this.type===w.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(w.colon),this.type!==w.string)this.unexpected();return Z.value=this.parseExprAtom(),this.finishNode(Z,"ImportAttribute")};q1.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===w.string){var Z=this.parseLiteral(this.value);if(aO.test(Z.value))this.raise(Z.start,"An export name cannot include a lone surrogate.");return Z}return this.parseIdent(!0)};q1.adaptDirectivePrologue=function(Z){for(var J=0;J<Z.length&&this.isDirectiveCandidate(Z[J]);++J)Z[J].directive=Z[J].expression.raw.slice(1,-1)};q1.isDirectiveCandidate=function(Z){return this.options.ecmaVersion>=5&&Z.type==="ExpressionStatement"&&Z.expression.type==="Literal"&&typeof Z.expression.value==="string"&&(this.input[Z.start]==='"'||this.input[Z.start]==="'")};var T5=p1.prototype;T5.toAssignable=function(Z,J,q){if(this.options.ecmaVersion>=6&&Z)switch(Z.type){case"Identifier":if(this.inAsync&&Z.name==="await")this.raise(Z.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(Z.type="ObjectPattern",q)this.checkPatternErrors(q,!0);for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];if(this.toAssignable(X,J),X.type==="RestElement"&&(X.argument.type==="ArrayPattern"||X.argument.type==="ObjectPattern"))this.raise(X.argument.start,"Unexpected token")}break;case"Property":if(Z.kind!=="init")this.raise(Z.key.start,"Object pattern can't contain getter or setter");this.toAssignable(Z.value,J);break;case"ArrayExpression":if(Z.type="ArrayPattern",q)this.checkPatternErrors(q,!0);this.toAssignableList(Z.elements,J);break;case"SpreadElement":if(Z.type="RestElement",this.toAssignable(Z.argument,J),Z.argument.type==="AssignmentPattern")this.raise(Z.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(Z.operator!=="=")this.raise(Z.left.end,"Only '=' operator can be used for specifying default value.");Z.type="AssignmentPattern",delete Z.operator,this.toAssignable(Z.left,J);break;case"ParenthesizedExpression":this.toAssignable(Z.expression,J,q);break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!J)break;default:this.raise(Z.start,"Assigning to rvalue")}else if(q)this.checkPatternErrors(q,!0);return Z};T5.toAssignableList=function(Z,J){var q=Z.length;for(var Q=0;Q<q;Q++){var Y=Z[Q];if(Y)this.toAssignable(Y,J)}if(q){var X=Z[q-1];if(this.options.ecmaVersion===6&&J&&X&&X.type==="RestElement"&&X.argument.type!=="Identifier")this.unexpected(X.argument.start)}return Z};T5.parseSpread=function(Z){var J=this.startNode();return this.next(),J.argument=this.parseMaybeAssign(!1,Z),this.finishNode(J,"SpreadElement")};T5.parseRestBinding=function(){var Z=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==w.name)this.unexpected();return Z.argument=this.parseBindingAtom(),this.finishNode(Z,"RestElement")};T5.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var Z=this.startNode();return this.next(),Z.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(Z,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()};T5.parseBindingList=function(Z,J,q,Q){var Y=[],X=!0;while(!this.eat(Z)){if(X)X=!1;else this.expect(w.comma);if(J&&this.type===w.comma)Y.push(null);else if(q&&this.afterTrailingComma(Z))break;else if(this.type===w.ellipsis){var z=this.parseRestBinding();if(this.parseBindingListItem(z),Y.push(z),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(Z);break}else Y.push(this.parseAssignableListItem(Q))}return Y};T5.parseAssignableListItem=function(Z){var J=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(J),J};T5.parseBindingListItem=function(Z){return Z};T5.parseMaybeDefault=function(Z,J,q){if(q=q||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return q;var Q=this.startNodeAt(Z,J);return Q.left=q,Q.right=this.parseMaybeAssign(),this.finishNode(Q,"AssignmentPattern")};T5.checkLValSimple=function(Z,J,q){if(J===void 0)J=R7;var Q=J!==R7;switch(Z.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(Z.name))this.raiseRecoverable(Z.start,(Q?"Binding ":"Assigning to ")+Z.name+" in strict mode");if(Q){if(J===Z8&&Z.name==="let")this.raiseRecoverable(Z.start,"let is disallowed as a lexically bound name");if(q){if(P6(q,Z.name))this.raiseRecoverable(Z.start,"Argument name clash");q[Z.name]=!0}if(J!==kV)this.declareName(Z.name,J,Z.start)}break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(Q)this.raiseRecoverable(Z.start,"Binding member expression");break;case"ParenthesizedExpression":if(Q)this.raiseRecoverable(Z.start,"Binding parenthesized expression");return this.checkLValSimple(Z.expression,J,q);default:this.raise(Z.start,(Q?"Binding":"Assigning to")+" rvalue")}};T5.checkLValPattern=function(Z,J,q){if(J===void 0)J=R7;switch(Z.type){case"ObjectPattern":for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];this.checkLValInnerPattern(X,J,q)}break;case"ArrayPattern":for(var z=0,V=Z.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkLValInnerPattern(W,J,q)}break;default:this.checkLValSimple(Z,J,q)}};T5.checkLValInnerPattern=function(Z,J,q){if(J===void 0)J=R7;switch(Z.type){case"Property":this.checkLValInnerPattern(Z.value,J,q);break;case"AssignmentPattern":this.checkLValPattern(Z.left,J,q);break;case"RestElement":this.checkLValPattern(Z.argument,J,q);break;default:this.checkLValPattern(Z,J,q)}};var E5=function(J,q,Q,Y,X){this.token=J,this.isExpr=!!q,this.preserveSpace=!!Q,this.override=Y,this.generator=!!X},b1={b_stat:new E5("{",!1),b_expr:new E5("{",!0),b_tmpl:new E5("${",!1),p_stat:new E5("(",!1),p_expr:new E5("(",!0),q_tmpl:new E5("`",!0,!0,function(Z){return Z.tryReadTemplateToken()}),f_stat:new E5("function",!1),f_expr:new E5("function",!0),f_expr_gen:new E5("function",!0,!1,null,!0),f_gen:new E5("function",!1,!1,null,!0)},S6=p1.prototype;S6.initialContext=function(){return[b1.b_stat]};S6.curContext=function(){return this.context[this.context.length-1]};S6.braceIsBlock=function(Z){var J=this.curContext();if(J===b1.f_expr||J===b1.f_stat)return!0;if(Z===w.colon&&(J===b1.b_stat||J===b1.b_expr))return!J.isExpr;if(Z===w._return||Z===w.name&&this.exprAllowed)return K5.test(this.input.slice(this.lastTokEnd,this.start));if(Z===w._else||Z===w.semi||Z===w.eof||Z===w.parenR||Z===w.arrow)return!0;if(Z===w.braceL)return J===b1.b_stat;if(Z===w._var||Z===w._const||Z===w.name)return!1;return!this.exprAllowed};S6.inGeneratorContext=function(){for(var Z=this.context.length-1;Z>=1;Z--){var J=this.context[Z];if(J.token==="function")return J.generator}return!1};S6.updateContext=function(Z){var J,q=this.type;if(q.keyword&&Z===w.dot)this.exprAllowed=!1;else if(J=q.updateContext)J.call(this,Z);else this.exprAllowed=q.beforeExpr};S6.overrideContext=function(Z){if(this.curContext()!==Z)this.context[this.context.length-1]=Z};w.parenR.updateContext=w.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var Z=this.context.pop();if(Z===b1.b_stat&&this.curContext().token==="function")Z=this.context.pop();this.exprAllowed=!Z.isExpr};w.braceL.updateContext=function(Z){this.context.push(this.braceIsBlock(Z)?b1.b_stat:b1.b_expr),this.exprAllowed=!0};w.dollarBraceL.updateContext=function(){this.context.push(b1.b_tmpl),this.exprAllowed=!0};w.parenL.updateContext=function(Z){var J=Z===w._if||Z===w._for||Z===w._with||Z===w._while;this.context.push(J?b1.p_stat:b1.p_expr),this.exprAllowed=!0};w.incDec.updateContext=function(){};w._function.updateContext=w._class.updateContext=function(Z){if(Z.beforeExpr&&Z!==w._else&&!(Z===w.semi&&this.curContext()!==b1.p_stat)&&!(Z===w._return&&K5.test(this.input.slice(this.lastTokEnd,this.start)))&&!((Z===w.colon||Z===w.braceL)&&this.curContext()===b1.b_stat))this.context.push(b1.f_expr);else this.context.push(b1.f_stat);this.exprAllowed=!1};w.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};w.backQuote.updateContext=function(){if(this.curContext()===b1.q_tmpl)this.context.pop();else this.context.push(b1.q_tmpl);this.exprAllowed=!1};w.star.updateContext=function(Z){if(Z===w._function){var J=this.context.length-1;if(this.context[J]===b1.f_expr)this.context[J]=b1.f_expr_gen;else this.context[J]=b1.f_gen}this.exprAllowed=!0};w.name.updateContext=function(Z){var J=!1;if(this.options.ecmaVersion>=6&&Z!==w.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())J=!0}this.exprAllowed=J};var K1=p1.prototype;K1.checkPropClash=function(Z,J,q){if(this.options.ecmaVersion>=9&&Z.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(Z.computed||Z.method||Z.shorthand))return;var Q=Z.key,Y;switch(Q.type){case"Identifier":Y=Q.name;break;case"Literal":Y=String(Q.value);break;default:return}var X=Z.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&X==="init"){if(J.proto)if(q){if(q.doubleProto<0)q.doubleProto=Q.start}else this.raiseRecoverable(Q.start,"Redefinition of __proto__ property");J.proto=!0}return}Y="$"+Y;var z=J[Y];if(z){var V;if(X==="init")V=this.strict&&z.init||z.get||z.set;else V=z.init||z[X];if(V)this.raiseRecoverable(Q.start,"Redefinition of property")}else z=J[Y]={init:!1,get:!1,set:!1};z[X]=!0};K1.parseExpression=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseMaybeAssign(Z,J);if(this.type===w.comma){var X=this.startNodeAt(q,Q);X.expressions=[Y];while(this.eat(w.comma))X.expressions.push(this.parseMaybeAssign(Z,J));return this.finishNode(X,"SequenceExpression")}return Y};K1.parseMaybeAssign=function(Z,J,q){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(Z);else this.exprAllowed=!1;var Q=!1,Y=-1,X=-1,z=-1;if(J)Y=J.parenthesizedAssign,X=J.trailingComma,z=J.doubleProto,J.parenthesizedAssign=J.trailingComma=-1;else J=new P7,Q=!0;var V=this.start,W=this.startLoc;if(this.type===w.parenL||this.type===w.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=Z==="await";var K=this.parseMaybeConditional(Z,J);if(q)K=q.call(this,K,V,W);if(this.type.isAssign){var $=this.startNodeAt(V,W);if($.operator=this.value,this.type===w.eq)K=this.toAssignable(K,!1,J);if(!Q)J.parenthesizedAssign=J.trailingComma=J.doubleProto=-1;if(J.shorthandAssign>=K.start)J.shorthandAssign=-1;if(this.type===w.eq)this.checkLValPattern(K);else this.checkLValSimple(K);if($.left=K,this.next(),$.right=this.parseMaybeAssign(Z),z>-1)J.doubleProto=z;return this.finishNode($,"AssignmentExpression")}else if(Q)this.checkExpressionErrors(J,!0);if(Y>-1)J.parenthesizedAssign=Y;if(X>-1)J.trailingComma=X;return K};K1.parseMaybeConditional=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseExprOps(Z,J);if(this.checkExpressionErrors(J))return Y;if(this.eat(w.question)){var X=this.startNodeAt(q,Q);return X.test=Y,X.consequent=this.parseMaybeAssign(),this.expect(w.colon),X.alternate=this.parseMaybeAssign(Z),this.finishNode(X,"ConditionalExpression")}return Y};K1.parseExprOps=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseMaybeUnary(J,!1,!1,Z);if(this.checkExpressionErrors(J))return Y;return Y.start===q&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,q,Q,-1,Z)};K1.parseExprOp=function(Z,J,q,Q,Y){var X=this.type.binop;if(X!=null&&(!Y||this.type!==w._in)){if(X>Q){var z=this.type===w.logicalOR||this.type===w.logicalAND,V=this.type===w.coalesce;if(V)X=w.logicalAND.binop;var W=this.value;this.next();var K=this.start,$=this.startLoc,H=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),K,$,X,Y),M=this.buildBinary(J,q,Z,H,W,z||V);if(z&&this.type===w.coalesce||V&&(this.type===w.logicalOR||this.type===w.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,J,q,Q,Y)}}return Z};K1.buildBinary=function(Z,J,q,Q,Y,X){if(Q.type==="PrivateIdentifier")this.raise(Q.start,"Private identifier can only be left side of binary expression");var z=this.startNodeAt(Z,J);return z.left=q,z.operator=Y,z.right=Q,this.finishNode(z,X?"LogicalExpression":"BinaryExpression")};K1.parseMaybeUnary=function(Z,J,q,Q){var Y=this.start,X=this.startLoc,z;if(this.isContextual("await")&&this.canAwait)z=this.parseAwait(Q),J=!0;else if(this.type.prefix){var V=this.startNode(),W=this.type===w.incDec;if(V.operator=this.value,V.prefix=!0,this.next(),V.argument=this.parseMaybeUnary(null,!0,W,Q),this.checkExpressionErrors(Z,!0),W)this.checkLValSimple(V.argument);else if(this.strict&&V.operator==="delete"&&vV(V.argument))this.raiseRecoverable(V.start,"Deleting local variable in strict mode");else if(V.operator==="delete"&&d3(V.argument))this.raiseRecoverable(V.start,"Private fields can not be deleted");else J=!0;z=this.finishNode(V,W?"UpdateExpression":"UnaryExpression")}else if(!J&&this.type===w.privateId){if((Q||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(z=this.parsePrivateIdent(),this.type!==w._in)this.unexpected()}else{if(z=this.parseExprSubscripts(Z,Q),this.checkExpressionErrors(Z))return z;while(this.type.postfix&&!this.canInsertSemicolon()){var K=this.startNodeAt(Y,X);K.operator=this.value,K.prefix=!1,K.argument=z,this.checkLValSimple(z),this.next(),z=this.finishNode(K,"UpdateExpression")}}if(!q&&this.eat(w.starstar))if(J)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,X,z,this.parseMaybeUnary(null,!1,!1,Q),"**",!1);else return z};function vV(Z){return Z.type==="Identifier"||Z.type==="ParenthesizedExpression"&&vV(Z.expression)}function d3(Z){return Z.type==="MemberExpression"&&Z.property.type==="PrivateIdentifier"||Z.type==="ChainExpression"&&d3(Z.expression)||Z.type==="ParenthesizedExpression"&&d3(Z.expression)}K1.parseExprSubscripts=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseExprAtom(Z,J);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var X=this.parseSubscripts(Y,q,Q,!1,J);if(Z&&X.type==="MemberExpression"){if(Z.parenthesizedAssign>=X.start)Z.parenthesizedAssign=-1;if(Z.parenthesizedBind>=X.start)Z.parenthesizedBind=-1;if(Z.trailingComma>=X.start)Z.trailingComma=-1}return X};K1.parseSubscripts=function(Z,J,q,Q,Y){var X=this.options.ecmaVersion>=8&&Z.type==="Identifier"&&Z.name==="async"&&this.lastTokEnd===Z.end&&!this.canInsertSemicolon()&&Z.end-Z.start===5&&this.potentialArrowAt===Z.start,z=!1;while(!0){var V=this.parseSubscript(Z,J,q,Q,X,z,Y);if(V.optional)z=!0;if(V===Z||V.type==="ArrowFunctionExpression"){if(z){var W=this.startNodeAt(J,q);W.expression=V,V=this.finishNode(W,"ChainExpression")}return V}Z=V}};K1.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(w.arrow)};K1.parseSubscriptAsyncArrow=function(Z,J,q,Q){return this.parseArrowExpression(this.startNodeAt(Z,J),q,!0,Q)};K1.parseSubscript=function(Z,J,q,Q,Y,X,z){var V=this.options.ecmaVersion>=11,W=V&&this.eat(w.questionDot);if(Q&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(w.bracketL);if(K||W&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var $=this.startNodeAt(J,q);if($.object=Z,K)$.property=this.parseExpression(),this.expect(w.bracketR);else if(this.type===w.privateId&&Z.type!=="Super")$.property=this.parsePrivateIdent();else $.property=this.parseIdent(this.options.allowReserved!=="never");if($.computed=!!K,V)$.optional=W;Z=this.finishNode($,"MemberExpression")}else if(!Q&&this.eat(w.parenL)){var H=new P7,M=this.yieldPos,O=this.awaitPos,j=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var L=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,H);if(Y&&!W&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=O,this.awaitIdentPos=j,this.parseSubscriptAsyncArrow(J,q,L,z)}this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,this.awaitIdentPos=j||this.awaitIdentPos;var I=this.startNodeAt(J,q);if(I.callee=Z,I.arguments=L,V)I.optional=W;Z=this.finishNode(I,"CallExpression")}else if(this.type===w.backQuote){if(W||X)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(J,q);y.tag=Z,y.quasi=this.parseTemplate({isTagged:!0}),Z=this.finishNode(y,"TaggedTemplateExpression")}return Z};K1.parseExprAtom=function(Z,J,q){if(this.type===w.slash)this.readRegexp();var Q,Y=this.potentialArrowAt===this.start;switch(this.type){case w._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Q=this.startNode(),this.next(),this.type===w.parenL&&!this.allowDirectSuper)this.raise(Q.start,"super() call outside constructor of a subclass");if(this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL)this.unexpected();return this.finishNode(Q,"Super");case w._this:return Q=this.startNode(),this.next(),this.finishNode(Q,"ThisExpression");case w.name:var X=this.start,z=this.startLoc,V=this.containsEsc,W=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!V&&W.name==="async"&&!this.canInsertSemicolon()&&this.eat(w._function))return this.overrideContext(b1.f_expr),this.parseFunction(this.startNodeAt(X,z),0,!1,!0,J);if(Y&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(X,z),[W],!1,J);if(this.options.ecmaVersion>=8&&W.name==="async"&&this.type===w.name&&!V&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(W=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(w.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(X,z),[W],!0,J)}}return W;case w.regexp:var K=this.value;return Q=this.parseLiteral(K.value),Q.regex={pattern:K.pattern,flags:K.flags},Q;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return Q=this.startNode(),Q.value=this.type===w._null?null:this.type===w._true,Q.raw=this.type.keyword,this.next(),this.finishNode(Q,"Literal");case w.parenL:var $=this.start,H=this.parseParenAndDistinguishExpression(Y,J);if(Z){if(Z.parenthesizedAssign<0&&!this.isSimpleAssignTarget(H))Z.parenthesizedAssign=$;if(Z.parenthesizedBind<0)Z.parenthesizedBind=$}return H;case w.bracketL:return Q=this.startNode(),this.next(),Q.elements=this.parseExprList(w.bracketR,!0,!0,Z),this.finishNode(Q,"ArrayExpression");case w.braceL:return this.overrideContext(b1.b_expr),this.parseObj(!1,Z);case w._function:return Q=this.startNode(),this.next(),this.parseFunction(Q,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(q);else return this.unexpected();default:return this.parseExprAtomDefault()}};K1.parseExprAtomDefault=function(){this.unexpected()};K1.parseExprImport=function(Z){var J=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===w.parenL&&!Z)return this.parseDynamicImport(J);else if(this.type===w.dot){var q=this.startNodeAt(J.start,J.loc&&J.loc.start);return q.name="import",J.meta=this.finishNode(q,"Identifier"),this.parseImportMeta(J)}else this.unexpected()};K1.parseDynamicImport=function(Z){if(this.next(),Z.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(w.parenR))if(this.expect(w.comma),!this.afterTrailingComma(w.parenR)){if(Z.options=this.parseMaybeAssign(),!this.eat(w.parenR)){if(this.expect(w.comma),!this.afterTrailingComma(w.parenR))this.unexpected()}}else Z.options=null;else Z.options=null;else if(!this.eat(w.parenR)){var J=this.start;if(this.eat(w.comma)&&this.eat(w.parenR))this.raiseRecoverable(J,"Trailing comma is not allowed in import()");else this.unexpected(J)}return this.finishNode(Z,"ImportExpression")};K1.parseImportMeta=function(Z){this.next();var J=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="meta")this.raiseRecoverable(Z.property.start,"The only valid meta property for import is 'import.meta'");if(J)this.raiseRecoverable(Z.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(Z.start,"Cannot use 'import.meta' outside a module");return this.finishNode(Z,"MetaProperty")};K1.parseLiteral=function(Z){var J=this.startNode();if(J.value=Z,J.raw=this.input.slice(this.start,this.end),J.raw.charCodeAt(J.raw.length-1)===110)J.bigint=J.value!=null?J.value.toString():J.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(J,"Literal")};K1.parseParenExpression=function(){this.expect(w.parenL);var Z=this.parseExpression();return this.expect(w.parenR),Z};K1.shouldParseArrow=function(Z){return!this.canInsertSemicolon()};K1.parseParenAndDistinguishExpression=function(Z,J){var q=this.start,Q=this.startLoc,Y,X=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var z=this.start,V=this.startLoc,W=[],K=!0,$=!1,H=new P7,M=this.yieldPos,O=this.awaitPos,j;this.yieldPos=0,this.awaitPos=0;while(this.type!==w.parenR)if(K?K=!1:this.expect(w.comma),X&&this.afterTrailingComma(w.parenR,!0)){$=!0;break}else if(this.type===w.ellipsis){if(j=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,H,this.parseParenItem));var L=this.lastTokEnd,I=this.lastTokEndLoc;if(this.expect(w.parenR),Z&&this.shouldParseArrow(W)&&this.eat(w.arrow))return this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=O,this.parseParenArrowList(q,Q,W,J);if(!W.length||$)this.unexpected(this.lastTokStart);if(j)this.unexpected(j);if(this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,W.length>1)Y=this.startNodeAt(z,V),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",L,I);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(q,Q);return y.expression=Y,this.finishNode(y,"ParenthesizedExpression")}else return Y};K1.parseParenItem=function(Z){return Z};K1.parseParenArrowList=function(Z,J,q,Q){return this.parseArrowExpression(this.startNodeAt(Z,J),q,!1,Q)};var JN=[];K1.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var Z=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===w.dot){var J=this.startNodeAt(Z.start,Z.loc&&Z.loc.start);J.name="new",Z.meta=this.finishNode(J,"Identifier"),this.next();var q=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="target")this.raiseRecoverable(Z.property.start,"The only valid meta property for new is 'new.target'");if(q)this.raiseRecoverable(Z.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(Z.start,"'new.target' can only be used in functions and class static block");return this.finishNode(Z,"MetaProperty")}var Q=this.start,Y=this.startLoc;if(Z.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Q,Y,!0,!1),this.eat(w.parenL))Z.arguments=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1);else Z.arguments=JN;return this.finishNode(Z,"NewExpression")};K1.parseTemplateElement=function(Z){var J=Z.isTagged,q=this.startNode();if(this.type===w.invalidTemplate){if(!J)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");q.value={raw:this.value.replace(/\r\n?/g,`
|
|
74
|
-
`),cooked:null}}else
|
|
75
|
-
`),cooked:this.value};return this.next(),q.tail=this.type===w.backQuote,this.finishNode(q,"TemplateElement")};K1.parseTemplate=function(Z){if(Z===void 0)Z={};var J=Z.isTagged;if(J===void 0)J=!1;var q=this.startNode();this.next(),q.expressions=[];var Q=this.parseTemplateElement({isTagged:J});q.quasis=[Q];while(!Q.tail){if(this.type===w.eof)this.raise(this.pos,"Unterminated template literal");this.expect(w.dollarBraceL),q.expressions.push(this.parseExpression()),this.expect(w.braceR),q.quasis.push(Q=this.parseTemplateElement({isTagged:J}))}return this.next(),this.finishNode(q,"TemplateLiteral")};K1.isAsyncProp=function(Z){return!Z.computed&&Z.key.type==="Identifier"&&Z.key.name==="async"&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!K5.test(this.input.slice(this.lastTokEnd,this.start))};K1.parseObj=function(Z,J){var q=this.startNode(),Q=!0,Y={};q.properties=[],this.next();while(!this.eat(w.braceR)){if(!Q){if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break}else Q=!1;var X=this.parseProperty(Z,J);if(!Z)this.checkPropClash(X,Y,J);q.properties.push(X)}return this.finishNode(q,Z?"ObjectPattern":"ObjectExpression")};K1.parseProperty=function(Z,J){var q=this.startNode(),Q,Y,X,z;if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis)){if(Z){if(q.argument=this.parseIdent(!1),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(q,"RestElement")}if(q.argument=this.parseMaybeAssign(!1,J),this.type===w.comma&&J&&J.trailingComma<0)J.trailingComma=this.start;return this.finishNode(q,"SpreadElement")}if(this.options.ecmaVersion>=6){if(q.method=!1,q.shorthand=!1,Z||J)X=this.start,z=this.startLoc;if(!Z)Q=this.eat(w.star)}var V=this.containsEsc;if(this.parsePropertyName(q),!Z&&!V&&this.options.ecmaVersion>=8&&!Q&&this.isAsyncProp(q))Y=!0,Q=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(q);else Y=!1;return this.parsePropertyValue(q,Z,Q,Y,X,z,J,V),this.finishNode(q,"Property")};K1.parseGetterSetter=function(Z){var J=Z.key.name;this.parsePropertyName(Z),Z.value=this.parseMethod(!1),Z.kind=J;var q=Z.kind==="get"?0:1;if(Z.value.params.length!==q){var Q=Z.value.start;if(Z.kind==="get")this.raiseRecoverable(Q,"getter should have no params");else this.raiseRecoverable(Q,"setter should have exactly one param")}else if(Z.kind==="set"&&Z.value.params[0].type==="RestElement")this.raiseRecoverable(Z.value.params[0].start,"Setter cannot use rest params")};K1.parsePropertyValue=function(Z,J,q,Q,Y,X,z,V){if((q||Q)&&this.type===w.colon)this.unexpected();if(this.eat(w.colon))Z.value=J?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,z),Z.kind="init";else if(this.options.ecmaVersion>=6&&this.type===w.parenL){if(J)this.unexpected();Z.method=!0,Z.value=this.parseMethod(q,Q),Z.kind="init"}else if(!J&&!V&&this.options.ecmaVersion>=5&&!Z.computed&&Z.key.type==="Identifier"&&(Z.key.name==="get"||Z.key.name==="set")&&(this.type!==w.comma&&this.type!==w.braceR&&this.type!==w.eq)){if(q||Q)this.unexpected();this.parseGetterSetter(Z)}else if(this.options.ecmaVersion>=6&&!Z.computed&&Z.key.type==="Identifier"){if(q||Q)this.unexpected();if(this.checkUnreserved(Z.key),Z.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(J)Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key));else if(this.type===w.eq&&z){if(z.shorthandAssign<0)z.shorthandAssign=this.start;Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key))}else Z.value=this.copyNode(Z.key);Z.kind="init",Z.shorthand=!0}else this.unexpected()};K1.parsePropertyName=function(Z){if(this.options.ecmaVersion>=6)if(this.eat(w.bracketL))return Z.computed=!0,Z.key=this.parseMaybeAssign(),this.expect(w.bracketR),Z.key;else Z.computed=!1;return Z.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};K1.initFunction=function(Z){if(Z.id=null,this.options.ecmaVersion>=6)Z.generator=Z.expression=!1;if(this.options.ecmaVersion>=8)Z.async=!1};K1.parseMethod=function(Z,J,q){var Q=this.startNode(),Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.initFunction(Q),this.options.ecmaVersion>=6)Q.generator=Z;if(this.options.ecmaVersion>=8)Q.async=!!J;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(n3(J,Q.generator)|T7|(q?yV:0)),this.expect(w.parenL),Q.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Q,!1,!0,!1),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(Q,"FunctionExpression")};K1.parseArrowExpression=function(Z,J,q,Q){var Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.enterScope(n3(q,!1)|i3),this.initFunction(Z),this.options.ecmaVersion>=8)Z.async=!!q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,Z.params=this.toAssignableList(J,!0),this.parseFunctionBody(Z,!0,!1,Q),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(Z,"ArrowFunctionExpression")};K1.parseFunctionBody=function(Z,J,q,Q){var Y=J&&this.type!==w.braceL,X=this.strict,z=!1;if(Y)Z.body=this.parseMaybeAssign(Q),Z.expression=!0,this.checkParams(Z,!1);else{var V=this.options.ecmaVersion>=7&&!this.isSimpleParamList(Z.params);if(!X||V){if(z=this.strictDirective(this.end),z&&V)this.raiseRecoverable(Z.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],z)this.strict=!0;if(this.checkParams(Z,!X&&!z&&!J&&!q&&this.isSimpleParamList(Z.params)),this.strict&&Z.id)this.checkLValSimple(Z.id,kV);Z.body=this.parseBlock(!1,void 0,z&&!X),Z.expression=!1,this.adaptDirectivePrologue(Z.body.body),this.labels=W}this.exitScope()};K1.isSimpleParamList=function(Z){for(var J=0,q=Z;J<q.length;J+=1){var Q=q[J];if(Q.type!=="Identifier")return!1}return!0};K1.checkParams=function(Z,J){var q=Object.create(null);for(var Q=0,Y=Z.params;Q<Y.length;Q+=1){var X=Y[Q];this.checkLValInnerPattern(X,a3,J?null:q)}};K1.parseExprList=function(Z,J,q,Q){var Y=[],X=!0;while(!this.eat(Z)){if(!X){if(this.expect(w.comma),J&&this.afterTrailingComma(Z))break}else X=!1;var z=void 0;if(q&&this.type===w.comma)z=null;else if(this.type===w.ellipsis){if(z=this.parseSpread(Q),Q&&this.type===w.comma&&Q.trailingComma<0)Q.trailingComma=this.start}else z=this.parseMaybeAssign(!1,Q);Y.push(z)}return Y};K1.checkUnreserved=function(Z){var{start:J,end:q,name:Q}=Z;if(this.inGenerator&&Q==="yield")this.raiseRecoverable(J,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&Q==="await")this.raiseRecoverable(J,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&A7)&&Q==="arguments")this.raiseRecoverable(J,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(Q==="arguments"||Q==="await"))this.raise(J,"Cannot use "+Q+" in class static initialization block");if(this.keywords.test(Q))this.raise(J,"Unexpected keyword '"+Q+"'");if(this.options.ecmaVersion<6&&this.input.slice(J,q).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(Q)){if(!this.inAsync&&Q==="await")this.raiseRecoverable(J,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(J,"The keyword '"+Q+"' is reserved")}};K1.parseIdent=function(Z){var J=this.parseIdentNode();if(this.next(!!Z),this.finishNode(J,"Identifier"),!Z){if(this.checkUnreserved(J),J.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=J.start}return J};K1.parseIdentNode=function(){var Z=this.startNode();if(this.type===w.name)Z.name=this.value;else if(this.type.keyword){if(Z.name=this.type.keyword,(Z.name==="class"||Z.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=w.name}else this.unexpected();return Z};K1.parsePrivateIdent=function(){var Z=this.startNode();if(this.type===w.privateId)Z.name=this.value;else this.unexpected();if(this.next(),this.finishNode(Z,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(Z.start,"Private field '#"+Z.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(Z);return Z};K1.parseYield=function(Z){if(!this.yieldPos)this.yieldPos=this.start;var J=this.startNode();if(this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr)J.delegate=!1,J.argument=null;else J.delegate=this.eat(w.star),J.argument=this.parseMaybeAssign(Z);return this.finishNode(J,"YieldExpression")};K1.parseAwait=function(Z){if(!this.awaitPos)this.awaitPos=this.start;var J=this.startNode();return this.next(),J.argument=this.parseMaybeUnary(null,!0,!1,Z),this.finishNode(J,"AwaitExpression")};var I7=p1.prototype;I7.raise=function(Z,J){var q=AV(this.input,Z);if(J+=" ("+q.line+":"+q.column+")",this.sourceFile)J+=" in "+this.sourceFile;var Q=SyntaxError(J);throw Q.pos=Z,Q.loc=q,Q.raisedAt=this.pos,Q};I7.raiseRecoverable=I7.raise;I7.curPosition=function(){if(this.options.locations)return new h0(this.curLine,this.pos-this.lineStart)};var M8=p1.prototype,qN=function(J){this.flags=J,this.var=[],this.lexical=[],this.functions=[]};M8.enterScope=function(Z){this.scopeStack.push(new qN(Z))};M8.exitScope=function(){this.scopeStack.pop()};M8.treatFunctionsAsVarInScope=function(Z){return Z.flags&v8||!this.inModule&&Z.flags&f8};M8.declareName=function(Z,J,q){var Q=!1;if(J===Z8){var Y=this.currentScope();if(Q=Y.lexical.indexOf(Z)>-1||Y.functions.indexOf(Z)>-1||Y.var.indexOf(Z)>-1,Y.lexical.push(Z),this.inModule&&Y.flags&f8)delete this.undefinedExports[Z]}else if(J===xV){var X=this.currentScope();X.lexical.push(Z)}else if(J===bV){var z=this.currentScope();if(this.treatFunctionsAsVar)Q=z.lexical.indexOf(Z)>-1;else Q=z.lexical.indexOf(Z)>-1||z.var.indexOf(Z)>-1;z.functions.push(Z)}else for(var V=this.scopeStack.length-1;V>=0;--V){var W=this.scopeStack[V];if(W.lexical.indexOf(Z)>-1&&!(W.flags&SV&&W.lexical[0]===Z)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(Z)>-1){Q=!0;break}if(W.var.push(Z),this.inModule&&W.flags&f8)delete this.undefinedExports[Z];if(W.flags&A7)break}if(Q)this.raiseRecoverable(q,"Identifier '"+Z+"' has already been declared")};M8.checkLocalExport=function(Z){if(this.scopeStack[0].lexical.indexOf(Z.name)===-1&&this.scopeStack[0].var.indexOf(Z.name)===-1)this.undefinedExports[Z.name]=Z};M8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};M8.currentVarScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var J=this.scopeStack[Z];if(J.flags&(A7|g0|h8))return J}};M8.currentThisScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var J=this.scopeStack[Z];if(J.flags&(A7|g0|h8)&&!(J.flags&i3))return J}};var S7=function(J,q,Q){if(this.type="",this.start=q,this.end=0,J.options.locations)this.loc=new D7(J,Q);if(J.options.directSourceFile)this.sourceFile=J.options.directSourceFile;if(J.options.ranges)this.range=[q,0]},m0=p1.prototype;m0.startNode=function(){return new S7(this,this.start,this.startLoc)};m0.startNodeAt=function(Z,J){return new S7(this,Z,J)};function hV(Z,J,q,Q){if(Z.type=J,Z.end=q,this.options.locations)Z.loc.end=Q;if(this.options.ranges)Z.range[1]=q;return Z}m0.finishNode=function(Z,J){return hV.call(this,Z,J,this.lastTokEnd,this.lastTokEndLoc)};m0.finishNodeAt=function(Z,J,q,Q){return hV.call(this,Z,J,q,Q)};m0.copyNode=function(Z){var J=new S7(this,Z.start,this.startLoc);for(var q in Z)J[q]=Z[q];return J};var QN="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",gV="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",mV=gV+" Extended_Pictographic",uV=mV,dV=uV+" EBase EComp EMod EPres ExtPict",lV=dV,YN=lV,XN={9:gV,10:mV,11:uV,12:dV,13:lV,14:YN},zN="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",VN={9:"",10:"",11:"",12:"",13:"",14:zN},NV="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",cV="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",pV=cV+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",iV=pV+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",nV=iV+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",aV=nV+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",WN=aV+" "+QN,KN={9:cV,10:pV,11:iV,12:nV,13:aV,14:WN},sV={};function $N(Z){var J=sV[Z]={binary:j8(XN[Z]+" "+NV),binaryOfStrings:j8(VN[Z]),nonBinary:{General_Category:j8(NV),Script:j8(KN[Z])}};J.nonBinary.Script_Extensions=J.nonBinary.Script,J.nonBinary.gc=J.nonBinary.General_Category,J.nonBinary.sc=J.nonBinary.Script,J.nonBinary.scx=J.nonBinary.Script_Extensions}for(f0=0,N7=[9,10,11,12,13,14];f0<N7.length;f0+=1)l3=N7[f0],$N(l3);var l3,f0,N7,J1=p1.prototype,_7=function(J,q){this.parent=J,this.base=q||this};_7.prototype.separatedFrom=function(J){for(var q=this;q;q=q.parent)for(var Q=J;Q;Q=Q.parent)if(q.base===Q.base&&q!==Q)return!0;return!1};_7.prototype.sibling=function(){return new _7(this.parent,this.base)};var d5=function(J){this.parser=J,this.validFlags="gim"+(J.options.ecmaVersion>=6?"uy":"")+(J.options.ecmaVersion>=9?"s":"")+(J.options.ecmaVersion>=13?"d":"")+(J.options.ecmaVersion>=15?"v":""),this.unicodeProperties=sV[J.options.ecmaVersion>=14?14:J.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};d5.prototype.reset=function(J,q,Q){var Y=Q.indexOf("v")!==-1,X=Q.indexOf("u")!==-1;if(this.start=J|0,this.source=q+"",this.flags=Q,Y&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=X&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=X&&this.parser.options.ecmaVersion>=9};d5.prototype.raise=function(J){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+J)};d5.prototype.at=function(J,q){if(q===void 0)q=!1;var Q=this.source,Y=Q.length;if(J>=Y)return-1;var X=Q.charCodeAt(J);if(!(q||this.switchU)||X<=55295||X>=57344||J+1>=Y)return X;var z=Q.charCodeAt(J+1);return z>=56320&&z<=57343?(X<<10)+z-56613888:X};d5.prototype.nextIndex=function(J,q){if(q===void 0)q=!1;var Q=this.source,Y=Q.length;if(J>=Y)return Y;var X=Q.charCodeAt(J),z;if(!(q||this.switchU)||X<=55295||X>=57344||J+1>=Y||(z=Q.charCodeAt(J+1))<56320||z>57343)return J+1;return J+2};d5.prototype.current=function(J){if(J===void 0)J=!1;return this.at(this.pos,J)};d5.prototype.lookahead=function(J){if(J===void 0)J=!1;return this.at(this.nextIndex(this.pos,J),J)};d5.prototype.advance=function(J){if(J===void 0)J=!1;this.pos=this.nextIndex(this.pos,J)};d5.prototype.eat=function(J,q){if(q===void 0)q=!1;if(this.current(q)===J)return this.advance(q),!0;return!1};d5.prototype.eatChars=function(J,q){if(q===void 0)q=!1;var Q=this.pos;for(var Y=0,X=J;Y<X.length;Y+=1){var z=X[Y],V=this.at(Q,q);if(V===-1||V!==z)return!1;Q=this.nextIndex(Q,q)}return this.pos=Q,!0};J1.validateRegExpFlags=function(Z){var{validFlags:J,flags:q}=Z,Q=!1,Y=!1;for(var X=0;X<q.length;X++){var z=q.charAt(X);if(J.indexOf(z)===-1)this.raise(Z.start,"Invalid regular expression flag");if(q.indexOf(z,X+1)>-1)this.raise(Z.start,"Duplicate regular expression flag");if(z==="u")Q=!0;if(z==="v")Y=!0}if(this.options.ecmaVersion>=15&&Q&&Y)this.raise(Z.start,"Invalid regular expression flag")};function GN(Z){for(var J in Z)return!0;return!1}J1.validateRegExpPattern=function(Z){if(this.regexp_pattern(Z),!Z.switchN&&this.options.ecmaVersion>=9&&GN(Z.groupNames))Z.switchN=!0,this.regexp_pattern(Z)};J1.regexp_pattern=function(Z){if(Z.pos=0,Z.lastIntValue=0,Z.lastStringValue="",Z.lastAssertionIsQuantifiable=!1,Z.numCapturingParens=0,Z.maxBackReference=0,Z.groupNames=Object.create(null),Z.backReferenceNames.length=0,Z.branchID=null,this.regexp_disjunction(Z),Z.pos!==Z.source.length){if(Z.eat(41))Z.raise("Unmatched ')'");if(Z.eat(93)||Z.eat(125))Z.raise("Lone quantifier brackets")}if(Z.maxBackReference>Z.numCapturingParens)Z.raise("Invalid escape");for(var J=0,q=Z.backReferenceNames;J<q.length;J+=1){var Q=q[J];if(!Z.groupNames[Q])Z.raise("Invalid named capture referenced")}};J1.regexp_disjunction=function(Z){var J=this.options.ecmaVersion>=16;if(J)Z.branchID=new _7(Z.branchID,null);this.regexp_alternative(Z);while(Z.eat(124)){if(J)Z.branchID=Z.branchID.sibling();this.regexp_alternative(Z)}if(J)Z.branchID=Z.branchID.parent;if(this.regexp_eatQuantifier(Z,!0))Z.raise("Nothing to repeat");if(Z.eat(123))Z.raise("Lone quantifier brackets")};J1.regexp_alternative=function(Z){while(Z.pos<Z.source.length&&this.regexp_eatTerm(Z));};J1.regexp_eatTerm=function(Z){if(this.regexp_eatAssertion(Z)){if(Z.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(Z)){if(Z.switchU)Z.raise("Invalid quantifier")}return!0}if(Z.switchU?this.regexp_eatAtom(Z):this.regexp_eatExtendedAtom(Z))return this.regexp_eatQuantifier(Z),!0;return!1};J1.regexp_eatAssertion=function(Z){var J=Z.pos;if(Z.lastAssertionIsQuantifiable=!1,Z.eat(94)||Z.eat(36))return!0;if(Z.eat(92)){if(Z.eat(66)||Z.eat(98))return!0;Z.pos=J}if(Z.eat(40)&&Z.eat(63)){var q=!1;if(this.options.ecmaVersion>=9)q=Z.eat(60);if(Z.eat(61)||Z.eat(33)){if(this.regexp_disjunction(Z),!Z.eat(41))Z.raise("Unterminated group");return Z.lastAssertionIsQuantifiable=!q,!0}}return Z.pos=J,!1};J1.regexp_eatQuantifier=function(Z,J){if(J===void 0)J=!1;if(this.regexp_eatQuantifierPrefix(Z,J))return Z.eat(63),!0;return!1};J1.regexp_eatQuantifierPrefix=function(Z,J){return Z.eat(42)||Z.eat(43)||Z.eat(63)||this.regexp_eatBracedQuantifier(Z,J)};J1.regexp_eatBracedQuantifier=function(Z,J){var q=Z.pos;if(Z.eat(123)){var Q=0,Y=-1;if(this.regexp_eatDecimalDigits(Z)){if(Q=Z.lastIntValue,Z.eat(44)&&this.regexp_eatDecimalDigits(Z))Y=Z.lastIntValue;if(Z.eat(125)){if(Y!==-1&&Y<Q&&!J)Z.raise("numbers out of order in {} quantifier");return!0}}if(Z.switchU&&!J)Z.raise("Incomplete quantifier");Z.pos=q}return!1};J1.regexp_eatAtom=function(Z){return this.regexp_eatPatternCharacters(Z)||Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)};J1.regexp_eatReverseSolidusAtomEscape=function(Z){var J=Z.pos;if(Z.eat(92)){if(this.regexp_eatAtomEscape(Z))return!0;Z.pos=J}return!1};J1.regexp_eatUncapturingGroup=function(Z){var J=Z.pos;if(Z.eat(40)){if(Z.eat(63)){if(this.options.ecmaVersion>=16){var q=this.regexp_eatModifiers(Z),Q=Z.eat(45);if(q||Q){for(var Y=0;Y<q.length;Y++){var X=q.charAt(Y);if(q.indexOf(X,Y+1)>-1)Z.raise("Duplicate regular expression modifiers")}if(Q){var z=this.regexp_eatModifiers(Z);if(!q&&!z&&Z.current()===58)Z.raise("Invalid regular expression modifiers");for(var V=0;V<z.length;V++){var W=z.charAt(V);if(z.indexOf(W,V+1)>-1||q.indexOf(W)>-1)Z.raise("Duplicate regular expression modifiers")}}}}if(Z.eat(58)){if(this.regexp_disjunction(Z),Z.eat(41))return!0;Z.raise("Unterminated group")}}Z.pos=J}return!1};J1.regexp_eatCapturingGroup=function(Z){if(Z.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(Z);else if(Z.current()===63)Z.raise("Invalid group");if(this.regexp_disjunction(Z),Z.eat(41))return Z.numCapturingParens+=1,!0;Z.raise("Unterminated group")}return!1};J1.regexp_eatModifiers=function(Z){var J="",q=0;while((q=Z.current())!==-1&&UN(q))J+=t5(q),Z.advance();return J};function UN(Z){return Z===105||Z===109||Z===115}J1.regexp_eatExtendedAtom=function(Z){return Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)||this.regexp_eatInvalidBracedQuantifier(Z)||this.regexp_eatExtendedPatternCharacter(Z)};J1.regexp_eatInvalidBracedQuantifier=function(Z){if(this.regexp_eatBracedQuantifier(Z,!0))Z.raise("Nothing to repeat");return!1};J1.regexp_eatSyntaxCharacter=function(Z){var J=Z.current();if(rV(J))return Z.lastIntValue=J,Z.advance(),!0;return!1};function rV(Z){return Z===36||Z>=40&&Z<=43||Z===46||Z===63||Z>=91&&Z<=94||Z>=123&&Z<=125}J1.regexp_eatPatternCharacters=function(Z){var J=Z.pos,q=0;while((q=Z.current())!==-1&&!rV(q))Z.advance();return Z.pos!==J};J1.regexp_eatExtendedPatternCharacter=function(Z){var J=Z.current();if(J!==-1&&J!==36&&!(J>=40&&J<=43)&&J!==46&&J!==63&&J!==91&&J!==94&&J!==124)return Z.advance(),!0;return!1};J1.regexp_groupSpecifier=function(Z){if(Z.eat(63)){if(!this.regexp_eatGroupName(Z))Z.raise("Invalid group");var J=this.options.ecmaVersion>=16,q=Z.groupNames[Z.lastStringValue];if(q)if(J)for(var Q=0,Y=q;Q<Y.length;Q+=1){var X=Y[Q];if(!X.separatedFrom(Z.branchID))Z.raise("Duplicate capture group name")}else Z.raise("Duplicate capture group name");if(J)(q||(Z.groupNames[Z.lastStringValue]=[])).push(Z.branchID);else Z.groupNames[Z.lastStringValue]=!0}};J1.regexp_eatGroupName=function(Z){if(Z.lastStringValue="",Z.eat(60)){if(this.regexp_eatRegExpIdentifierName(Z)&&Z.eat(62))return!0;Z.raise("Invalid capture group name")}return!1};J1.regexp_eatRegExpIdentifierName=function(Z){if(Z.lastStringValue="",this.regexp_eatRegExpIdentifierStart(Z)){Z.lastStringValue+=t5(Z.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(Z))Z.lastStringValue+=t5(Z.lastIntValue);return!0}return!1};J1.regexp_eatRegExpIdentifierStart=function(Z){var J=Z.pos,q=this.options.ecmaVersion>=11,Q=Z.current(q);if(Z.advance(q),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,q))Q=Z.lastIntValue;if(jN(Q))return Z.lastIntValue=Q,!0;return Z.pos=J,!1};function jN(Z){return u5(Z,!0)||Z===36||Z===95}J1.regexp_eatRegExpIdentifierPart=function(Z){var J=Z.pos,q=this.options.ecmaVersion>=11,Q=Z.current(q);if(Z.advance(q),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,q))Q=Z.lastIntValue;if(BN(Q))return Z.lastIntValue=Q,!0;return Z.pos=J,!1};function BN(Z){return B8(Z,!0)||Z===36||Z===95||Z===8204||Z===8205}J1.regexp_eatAtomEscape=function(Z){if(this.regexp_eatBackReference(Z)||this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)||Z.switchN&&this.regexp_eatKGroupName(Z))return!0;if(Z.switchU){if(Z.current()===99)Z.raise("Invalid unicode escape");Z.raise("Invalid escape")}return!1};J1.regexp_eatBackReference=function(Z){var J=Z.pos;if(this.regexp_eatDecimalEscape(Z)){var q=Z.lastIntValue;if(Z.switchU){if(q>Z.maxBackReference)Z.maxBackReference=q;return!0}if(q<=Z.numCapturingParens)return!0;Z.pos=J}return!1};J1.regexp_eatKGroupName=function(Z){if(Z.eat(107)){if(this.regexp_eatGroupName(Z))return Z.backReferenceNames.push(Z.lastStringValue),!0;Z.raise("Invalid named reference")}return!1};J1.regexp_eatCharacterEscape=function(Z){return this.regexp_eatControlEscape(Z)||this.regexp_eatCControlLetter(Z)||this.regexp_eatZero(Z)||this.regexp_eatHexEscapeSequence(Z)||this.regexp_eatRegExpUnicodeEscapeSequence(Z,!1)||!Z.switchU&&this.regexp_eatLegacyOctalEscapeSequence(Z)||this.regexp_eatIdentityEscape(Z)};J1.regexp_eatCControlLetter=function(Z){var J=Z.pos;if(Z.eat(99)){if(this.regexp_eatControlLetter(Z))return!0;Z.pos=J}return!1};J1.regexp_eatZero=function(Z){if(Z.current()===48&&!y7(Z.lookahead()))return Z.lastIntValue=0,Z.advance(),!0;return!1};J1.regexp_eatControlEscape=function(Z){var J=Z.current();if(J===116)return Z.lastIntValue=9,Z.advance(),!0;if(J===110)return Z.lastIntValue=10,Z.advance(),!0;if(J===118)return Z.lastIntValue=11,Z.advance(),!0;if(J===102)return Z.lastIntValue=12,Z.advance(),!0;if(J===114)return Z.lastIntValue=13,Z.advance(),!0;return!1};J1.regexp_eatControlLetter=function(Z){var J=Z.current();if(oV(J))return Z.lastIntValue=J%32,Z.advance(),!0;return!1};function oV(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122}J1.regexp_eatRegExpUnicodeEscapeSequence=function(Z,J){if(J===void 0)J=!1;var q=Z.pos,Q=J||Z.switchU;if(Z.eat(117)){if(this.regexp_eatFixedHexDigits(Z,4)){var Y=Z.lastIntValue;if(Q&&Y>=55296&&Y<=56319){var X=Z.pos;if(Z.eat(92)&&Z.eat(117)&&this.regexp_eatFixedHexDigits(Z,4)){var z=Z.lastIntValue;if(z>=56320&&z<=57343)return Z.lastIntValue=(Y-55296)*1024+(z-56320)+65536,!0}Z.pos=X,Z.lastIntValue=Y}return!0}if(Q&&Z.eat(123)&&this.regexp_eatHexDigits(Z)&&Z.eat(125)&&MN(Z.lastIntValue))return!0;if(Q)Z.raise("Invalid unicode escape");Z.pos=q}return!1};function MN(Z){return Z>=0&&Z<=1114111}J1.regexp_eatIdentityEscape=function(Z){if(Z.switchU){if(this.regexp_eatSyntaxCharacter(Z))return!0;if(Z.eat(47))return Z.lastIntValue=47,!0;return!1}var J=Z.current();if(J!==99&&(!Z.switchN||J!==107))return Z.lastIntValue=J,Z.advance(),!0;return!1};J1.regexp_eatDecimalEscape=function(Z){Z.lastIntValue=0;var J=Z.current();if(J>=49&&J<=57){do Z.lastIntValue=10*Z.lastIntValue+(J-48),Z.advance();while((J=Z.current())>=48&&J<=57);return!0}return!1};var tV=0,e5=1,_5=2;J1.regexp_eatCharacterClassEscape=function(Z){var J=Z.current();if(HN(J))return Z.lastIntValue=-1,Z.advance(),e5;var q=!1;if(Z.switchU&&this.options.ecmaVersion>=9&&((q=J===80)||J===112)){Z.lastIntValue=-1,Z.advance();var Q;if(Z.eat(123)&&(Q=this.regexp_eatUnicodePropertyValueExpression(Z))&&Z.eat(125)){if(q&&Q===_5)Z.raise("Invalid property name");return Q}Z.raise("Invalid property name")}return tV};function HN(Z){return Z===100||Z===68||Z===115||Z===83||Z===119||Z===87}J1.regexp_eatUnicodePropertyValueExpression=function(Z){var J=Z.pos;if(this.regexp_eatUnicodePropertyName(Z)&&Z.eat(61)){var q=Z.lastStringValue;if(this.regexp_eatUnicodePropertyValue(Z)){var Q=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(Z,q,Q),e5}}if(Z.pos=J,this.regexp_eatLoneUnicodePropertyNameOrValue(Z)){var Y=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(Z,Y)}return tV};J1.regexp_validateUnicodePropertyNameAndValue=function(Z,J,q){if(!P6(Z.unicodeProperties.nonBinary,J))Z.raise("Invalid property name");if(!Z.unicodeProperties.nonBinary[J].test(q))Z.raise("Invalid property value")};J1.regexp_validateUnicodePropertyNameOrValue=function(Z,J){if(Z.unicodeProperties.binary.test(J))return e5;if(Z.switchV&&Z.unicodeProperties.binaryOfStrings.test(J))return _5;Z.raise("Invalid property name")};J1.regexp_eatUnicodePropertyName=function(Z){var J=0;Z.lastStringValue="";while(eV(J=Z.current()))Z.lastStringValue+=t5(J),Z.advance();return Z.lastStringValue!==""};function eV(Z){return oV(Z)||Z===95}J1.regexp_eatUnicodePropertyValue=function(Z){var J=0;Z.lastStringValue="";while(FN(J=Z.current()))Z.lastStringValue+=t5(J),Z.advance();return Z.lastStringValue!==""};function FN(Z){return eV(Z)||y7(Z)}J1.regexp_eatLoneUnicodePropertyNameOrValue=function(Z){return this.regexp_eatUnicodePropertyValue(Z)};J1.regexp_eatCharacterClass=function(Z){if(Z.eat(91)){var J=Z.eat(94),q=this.regexp_classContents(Z);if(!Z.eat(93))Z.raise("Unterminated character class");if(J&&q===_5)Z.raise("Negated character class may contain strings");return!0}return!1};J1.regexp_classContents=function(Z){if(Z.current()===93)return e5;if(Z.switchV)return this.regexp_classSetExpression(Z);return this.regexp_nonEmptyClassRanges(Z),e5};J1.regexp_nonEmptyClassRanges=function(Z){while(this.regexp_eatClassAtom(Z)){var J=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassAtom(Z)){var q=Z.lastIntValue;if(Z.switchU&&(J===-1||q===-1))Z.raise("Invalid character class");if(J!==-1&&q!==-1&&J>q)Z.raise("Range out of order in character class")}}};J1.regexp_eatClassAtom=function(Z){var J=Z.pos;if(Z.eat(92)){if(this.regexp_eatClassEscape(Z))return!0;if(Z.switchU){var q=Z.current();if(q===99||qW(q))Z.raise("Invalid class escape");Z.raise("Invalid escape")}Z.pos=J}var Q=Z.current();if(Q!==93)return Z.lastIntValue=Q,Z.advance(),!0;return!1};J1.regexp_eatClassEscape=function(Z){var J=Z.pos;if(Z.eat(98))return Z.lastIntValue=8,!0;if(Z.switchU&&Z.eat(45))return Z.lastIntValue=45,!0;if(!Z.switchU&&Z.eat(99)){if(this.regexp_eatClassControlLetter(Z))return!0;Z.pos=J}return this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)};J1.regexp_classSetExpression=function(Z){var J=e5,q;if(this.regexp_eatClassSetRange(Z));else if(q=this.regexp_eatClassSetOperand(Z)){if(q===_5)J=_5;var Q=Z.pos;while(Z.eatChars([38,38])){if(Z.current()!==38&&(q=this.regexp_eatClassSetOperand(Z))){if(q!==_5)J=e5;continue}Z.raise("Invalid character in character class")}if(Q!==Z.pos)return J;while(Z.eatChars([45,45])){if(this.regexp_eatClassSetOperand(Z))continue;Z.raise("Invalid character in character class")}if(Q!==Z.pos)return J}else Z.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(Z))continue;if(q=this.regexp_eatClassSetOperand(Z),!q)return J;if(q===_5)J=_5}};J1.regexp_eatClassSetRange=function(Z){var J=Z.pos;if(this.regexp_eatClassSetCharacter(Z)){var q=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassSetCharacter(Z)){var Q=Z.lastIntValue;if(q!==-1&&Q!==-1&&q>Q)Z.raise("Range out of order in character class");return!0}Z.pos=J}return!1};J1.regexp_eatClassSetOperand=function(Z){if(this.regexp_eatClassSetCharacter(Z))return e5;return this.regexp_eatClassStringDisjunction(Z)||this.regexp_eatNestedClass(Z)};J1.regexp_eatNestedClass=function(Z){var J=Z.pos;if(Z.eat(91)){var q=Z.eat(94),Q=this.regexp_classContents(Z);if(Z.eat(93)){if(q&&Q===_5)Z.raise("Negated character class may contain strings");return Q}Z.pos=J}if(Z.eat(92)){var Y=this.regexp_eatCharacterClassEscape(Z);if(Y)return Y;Z.pos=J}return null};J1.regexp_eatClassStringDisjunction=function(Z){var J=Z.pos;if(Z.eatChars([92,113])){if(Z.eat(123)){var q=this.regexp_classStringDisjunctionContents(Z);if(Z.eat(125))return q}else Z.raise("Invalid escape");Z.pos=J}return null};J1.regexp_classStringDisjunctionContents=function(Z){var J=this.regexp_classString(Z);while(Z.eat(124))if(this.regexp_classString(Z)===_5)J=_5;return J};J1.regexp_classString=function(Z){var J=0;while(this.regexp_eatClassSetCharacter(Z))J++;return J===1?e5:_5};J1.regexp_eatClassSetCharacter=function(Z){var J=Z.pos;if(Z.eat(92)){if(this.regexp_eatCharacterEscape(Z)||this.regexp_eatClassSetReservedPunctuator(Z))return!0;if(Z.eat(98))return Z.lastIntValue=8,!0;return Z.pos=J,!1}var q=Z.current();if(q<0||q===Z.lookahead()&&LN(q))return!1;if(wN(q))return!1;return Z.advance(),Z.lastIntValue=q,!0};function LN(Z){return Z===33||Z>=35&&Z<=38||Z>=42&&Z<=44||Z===46||Z>=58&&Z<=64||Z===94||Z===96||Z===126}function wN(Z){return Z===40||Z===41||Z===45||Z===47||Z>=91&&Z<=93||Z>=123&&Z<=125}J1.regexp_eatClassSetReservedPunctuator=function(Z){var J=Z.current();if(ON(J))return Z.lastIntValue=J,Z.advance(),!0;return!1};function ON(Z){return Z===33||Z===35||Z===37||Z===38||Z===44||Z===45||Z>=58&&Z<=62||Z===64||Z===96||Z===126}J1.regexp_eatClassControlLetter=function(Z){var J=Z.current();if(y7(J)||J===95)return Z.lastIntValue=J%32,Z.advance(),!0;return!1};J1.regexp_eatHexEscapeSequence=function(Z){var J=Z.pos;if(Z.eat(120)){if(this.regexp_eatFixedHexDigits(Z,2))return!0;if(Z.switchU)Z.raise("Invalid escape");Z.pos=J}return!1};J1.regexp_eatDecimalDigits=function(Z){var J=Z.pos,q=0;Z.lastIntValue=0;while(y7(q=Z.current()))Z.lastIntValue=10*Z.lastIntValue+(q-48),Z.advance();return Z.pos!==J};function y7(Z){return Z>=48&&Z<=57}J1.regexp_eatHexDigits=function(Z){var J=Z.pos,q=0;Z.lastIntValue=0;while(ZW(q=Z.current()))Z.lastIntValue=16*Z.lastIntValue+JW(q),Z.advance();return Z.pos!==J};function ZW(Z){return Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102}function JW(Z){if(Z>=65&&Z<=70)return 10+(Z-65);if(Z>=97&&Z<=102)return 10+(Z-97);return Z-48}J1.regexp_eatLegacyOctalEscapeSequence=function(Z){if(this.regexp_eatOctalDigit(Z)){var J=Z.lastIntValue;if(this.regexp_eatOctalDigit(Z)){var q=Z.lastIntValue;if(J<=3&&this.regexp_eatOctalDigit(Z))Z.lastIntValue=J*64+q*8+Z.lastIntValue;else Z.lastIntValue=J*8+q}else Z.lastIntValue=J;return!0}return!1};J1.regexp_eatOctalDigit=function(Z){var J=Z.current();if(qW(J))return Z.lastIntValue=J-48,Z.advance(),!0;return Z.lastIntValue=0,!1};function qW(Z){return Z>=48&&Z<=55}J1.regexp_eatFixedHexDigits=function(Z,J){var q=Z.pos;Z.lastIntValue=0;for(var Q=0;Q<J;++Q){var Y=Z.current();if(!ZW(Y))return Z.pos=q,!1;Z.lastIntValue=16*Z.lastIntValue+JW(Y),Z.advance()}return!0};var r3=function(J){if(this.type=J.type,this.value=J.value,this.start=J.start,this.end=J.end,J.options.locations)this.loc=new D7(J,J.startLoc,J.endLoc);if(J.options.ranges)this.range=[J.start,J.end]},M1=p1.prototype;M1.next=function(Z){if(!Z&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new r3(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};M1.getToken=function(){return this.next(),new r3(this)};if(typeof Symbol<"u")M1[Symbol.iterator]=function(){var Z=this;return{next:function(){var J=Z.getToken();return{done:J.type===w.eof,value:J}}}};M1.nextToken=function(){var Z=this.curContext();if(!Z||!Z.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(w.eof);if(Z.override)return Z.override(this);else this.readToken(this.fullCharCodeAtPos())};M1.readToken=function(Z){if(u5(Z,this.options.ecmaVersion>=6)||Z===92)return this.readWord();return this.getTokenFromCode(Z)};M1.fullCharCodeAt=function(Z){var J=this.input.charCodeAt(Z);if(J<=55295||J>=56320)return J;var q=this.input.charCodeAt(Z+1);return q<=56319||q>=57344?J:(J<<10)+q-56613888};M1.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};M1.skipBlockComment=function(){var Z=this.options.onComment&&this.curPosition(),J=this.pos,q=this.input.indexOf("*/",this.pos+=2);if(q===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=q+2,this.options.locations)for(var Q=void 0,Y=J;(Q=_V(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=Q;if(this.options.onComment)this.options.onComment(!0,this.input.slice(J+2,q),J,this.pos,Z,this.curPosition())};M1.skipLineComment=function(Z){var J=this.pos,q=this.options.onComment&&this.curPosition(),Q=this.input.charCodeAt(this.pos+=Z);while(this.pos<this.input.length&&!A6(Q))Q=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(J+Z,this.pos),J,this.pos,q,this.curPosition())};M1.skipSpace=function(){Z:while(this.pos<this.input.length){var Z=this.input.charCodeAt(this.pos);switch(Z){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break Z}break;default:if(Z>8&&Z<14||Z>=5760&&DV.test(String.fromCharCode(Z)))++this.pos;else break Z}}};M1.finishToken=function(Z,J){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var q=this.type;this.type=Z,this.value=J,this.updateContext(q)};M1.readToken_dot=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z>=48&&Z<=57)return this.readNumber(!0);var J=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&Z===46&&J===46)return this.pos+=3,this.finishToken(w.ellipsis);else return++this.pos,this.finishToken(w.dot)};M1.readToken_slash=function(){var Z=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(Z===61)return this.finishOp(w.assign,2);return this.finishOp(w.slash,1)};M1.readToken_mult_modulo_exp=function(Z){var J=this.input.charCodeAt(this.pos+1),q=1,Q=Z===42?w.star:w.modulo;if(this.options.ecmaVersion>=7&&Z===42&&J===42)++q,Q=w.starstar,J=this.input.charCodeAt(this.pos+2);if(J===61)return this.finishOp(w.assign,q+1);return this.finishOp(Q,q)};M1.readToken_pipe_amp=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===Z){if(this.options.ecmaVersion>=12){var q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(w.assign,3)}return this.finishOp(Z===124?w.logicalOR:w.logicalAND,2)}if(J===61)return this.finishOp(w.assign,2);return this.finishOp(Z===124?w.bitwiseOR:w.bitwiseAND,1)};M1.readToken_caret=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(w.assign,2);return this.finishOp(w.bitwiseXOR,1)};M1.readToken_plus_min=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===Z){if(J===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||K5.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(w.incDec,2)}if(J===61)return this.finishOp(w.assign,2);return this.finishOp(w.plusMin,1)};M1.readToken_lt_gt=function(Z){var J=this.input.charCodeAt(this.pos+1),q=1;if(J===Z){if(q=Z===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+q)===61)return this.finishOp(w.assign,q+1);return this.finishOp(w.bitShift,q)}if(J===33&&Z===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(J===61)q=2;return this.finishOp(w.relational,q)};M1.readToken_eq_excl=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===61)return this.finishOp(w.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(Z===61&&J===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(w.arrow);return this.finishOp(Z===61?w.eq:w.prefix,1)};M1.readToken_question=function(){var Z=this.options.ecmaVersion;if(Z>=11){var J=this.input.charCodeAt(this.pos+1);if(J===46){var q=this.input.charCodeAt(this.pos+2);if(q<48||q>57)return this.finishOp(w.questionDot,2)}if(J===63){if(Z>=12){var Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(w.assign,3)}return this.finishOp(w.coalesce,2)}}return this.finishOp(w.question,1)};M1.readToken_numberSign=function(){var Z=this.options.ecmaVersion,J=35;if(Z>=13){if(++this.pos,J=this.fullCharCodeAtPos(),u5(J,!0)||J===92)return this.finishToken(w.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+t5(J)+"'")};M1.getTokenFromCode=function(Z){switch(Z){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var J=this.input.charCodeAt(this.pos+1);if(J===120||J===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(J===111||J===79)return this.readRadixNumber(8);if(J===98||J===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(Z);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(Z);case 124:case 38:return this.readToken_pipe_amp(Z);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(Z);case 60:case 62:return this.readToken_lt_gt(Z);case 61:case 33:return this.readToken_eq_excl(Z);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+t5(Z)+"'")};M1.finishOp=function(Z,J){var q=this.input.slice(this.pos,this.pos+J);return this.pos+=J,this.finishToken(Z,q)};M1.readRegexp=function(){var Z,J,q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(q,"Unterminated regular expression");var Q=this.input.charAt(this.pos);if(K5.test(Q))this.raise(q,"Unterminated regular expression");if(!Z){if(Q==="[")J=!0;else if(Q==="]"&&J)J=!1;else if(Q==="/"&&!J)break;Z=Q==="\\"}else Z=!1;++this.pos}var Y=this.input.slice(q,this.pos);++this.pos;var X=this.pos,z=this.readWord1();if(this.containsEsc)this.unexpected(X);var V=this.regexpState||(this.regexpState=new d5(this));V.reset(q,Y,z),this.validateRegExpFlags(V),this.validateRegExpPattern(V);var W=null;try{W=new RegExp(Y,z)}catch(K){}return this.finishToken(w.regexp,{pattern:Y,flags:z,value:W})};M1.readInt=function(Z,J,q){var Q=this.options.ecmaVersion>=12&&J===void 0,Y=q&&this.input.charCodeAt(this.pos)===48,X=this.pos,z=0,V=0;for(var W=0,K=J==null?1/0:J;W<K;++W,++this.pos){var $=this.input.charCodeAt(this.pos),H=void 0;if(Q&&$===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(V===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");V=$;continue}if($>=97)H=$-97+10;else if($>=65)H=$-65+10;else if($>=48&&$<=57)H=$-48;else H=1/0;if(H>=Z)break;V=$,z=z*Z+H}if(Q&&V===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===X||J!=null&&this.pos-X!==J)return null;return z};function NN(Z,J){if(J)return parseInt(Z,8);return parseFloat(Z.replace(/_/g,""))}function QW(Z){if(typeof BigInt!=="function")return null;return BigInt(Z.replace(/_/g,""))}M1.readRadixNumber=function(Z){var J=this.pos;this.pos+=2;var q=this.readInt(Z);if(q==null)this.raise(this.start+2,"Expected number in radix "+Z);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)q=QW(this.input.slice(J,this.pos)),++this.pos;else if(u5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(w.num,q)};M1.readNumber=function(Z){var J=this.pos;if(!Z&&this.readInt(10,void 0,!0)===null)this.raise(J,"Invalid number");var q=this.pos-J>=2&&this.input.charCodeAt(J)===48;if(q&&this.strict)this.raise(J,"Invalid number");var Q=this.input.charCodeAt(this.pos);if(!q&&!Z&&this.options.ecmaVersion>=11&&Q===110){var Y=QW(this.input.slice(J,this.pos));if(++this.pos,u5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(w.num,Y)}if(q&&/[89]/.test(this.input.slice(J,this.pos)))q=!1;if(Q===46&&!q)++this.pos,this.readInt(10),Q=this.input.charCodeAt(this.pos);if((Q===69||Q===101)&&!q){if(Q=this.input.charCodeAt(++this.pos),Q===43||Q===45)++this.pos;if(this.readInt(10)===null)this.raise(J,"Invalid number")}if(u5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var X=NN(this.input.slice(J,this.pos),q);return this.finishToken(w.num,X)};M1.readCodePoint=function(){var Z=this.input.charCodeAt(this.pos),J;if(Z===123){if(this.options.ecmaVersion<6)this.unexpected();var q=++this.pos;if(J=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,J>1114111)this.invalidStringToken(q,"Code point out of bounds")}else J=this.readHexChar(4);return J};M1.readString=function(Z){var J="",q=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var Q=this.input.charCodeAt(this.pos);if(Q===Z)break;if(Q===92)J+=this.input.slice(q,this.pos),J+=this.readEscapedChar(!1),q=this.pos;else if(Q===8232||Q===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(A6(Q))this.raise(this.start,"Unterminated string constant");++this.pos}}return J+=this.input.slice(q,this.pos++),this.finishToken(w.string,J)};var YW={};M1.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(Z){if(Z===YW)this.readInvalidTemplateToken();else throw Z}this.inTemplateElement=!1};M1.invalidStringToken=function(Z,J){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw YW;else this.raise(Z,J)};M1.readTmplToken=function(){var Z="",J=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var q=this.input.charCodeAt(this.pos);if(q===96||q===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===w.template||this.type===w.invalidTemplate))if(q===36)return this.pos+=2,this.finishToken(w.dollarBraceL);else return++this.pos,this.finishToken(w.backQuote);return Z+=this.input.slice(J,this.pos),this.finishToken(w.template,Z)}if(q===92)Z+=this.input.slice(J,this.pos),Z+=this.readEscapedChar(!0),J=this.pos;else if(A6(q)){switch(Z+=this.input.slice(J,this.pos),++this.pos,q){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:Z+=`
|
|
76
|
-
`;break;default:Z+=String.fromCharCode(
|
|
71
|
+
`),null}catch(Q){throw console.error("Error reading package.json:",Q),Q}}import{lstatSync as WR,readFileSync as KR}from"node:fs";import{readFile as $R}from"node:fs/promises";import{basename as GR,dirname as kW,parse as g7,relative as UR,resolve as Uq}from"node:path";import{preprocess as jR}from"svelte/compiler";import{replace as BR,typescript as MR}from"svelte-preprocess";import _6 from"fs";import MV,{posix as k8}from"path";import{fileURLToPath as OO}from"url";import{createRequire as gL}from"module";import{basename as mL,dirname as T3,normalize as uL,relative as dL,resolve as lL,sep as kz}from"path";import*as cL from"fs";var bz=gL(import.meta.url);function pL(Z){let q=uL(Z);if(q.length>1&&q[q.length-1]===kz)q=q.substring(0,q.length-1);return q}var iL=/[\\/]/g;function fz(Z,q){return Z.replace(iL,q)}var nL=/^[a-z]:[\\/]$/i;function sL(Z){return Z==="/"||nL.test(Z)}function D3(Z,q){let{resolvePaths:Q,normalizePath:J,pathSeparator:Y}=q,X=process.platform==="win32"&&Z.includes("/")||Z.startsWith(".");if(Q)Z=lL(Z);if(J||X)Z=pL(Z);if(Z===".")return"";let z=Z[Z.length-1]!==Y;return fz(z?Z+Y:Z,Y)}function vz(Z,q){return q+Z}function aL(Z,q){return function(Q,J){if(J.startsWith(Z))return J.slice(Z.length)+Q;else return fz(dL(Z,J),q.pathSeparator)+q.pathSeparator+Q}}function rL(Z){return Z}function oL(Z,q,Q){return q+Z+Q}function tL(Z,q){let{relativePaths:Q,includeBasePath:J}=q;return Q&&Z?aL(Z,q):J?vz:rL}function eL(Z){return function(q,Q){Q.push(q.substring(Z.length)||".")}}function Zw(Z){return function(q,Q,J){let Y=q.substring(Z.length)||".";if(J.every((X)=>X(Y,!0)))Q.push(Y)}}var qw=(Z,q)=>{q.push(Z||".")},Qw=(Z,q,Q)=>{let J=Z||".";if(Q.every((Y)=>Y(J,!0)))q.push(J)},Jw=()=>{};function Yw(Z,q){let{includeDirs:Q,filters:J,relativePaths:Y}=q;if(!Q)return Jw;if(Y)return J&&J.length?Zw(Z):eL(Z);return J&&J.length?Qw:qw}var Xw=(Z,q,Q,J)=>{if(J.every((Y)=>Y(Z,!1)))Q.files++},zw=(Z,q,Q,J)=>{if(J.every((Y)=>Y(Z,!1)))q.push(Z)},Vw=(Z,q,Q,J)=>{Q.files++},Ww=(Z,q)=>{q.push(Z)},Kw=()=>{};function $w(Z){let{excludeFiles:q,filters:Q,onlyCounts:J}=Z;if(q)return Kw;if(Q&&Q.length)return J?Xw:zw;else if(J)return Vw;else return Ww}var Gw=(Z)=>{return Z},Uw=()=>{return[""].slice(0,0)};function jw(Z){return Z.group?Uw:Gw}var Bw=(Z,q,Q)=>{Z.push({directory:q,files:Q,dir:q})},Mw=()=>{};function Hw(Z){return Z.group?Bw:Mw}var Fw=function(Z,q,Q){let{queue:J,fs:Y,options:{suppressErrors:X}}=q;J.enqueue(),Y.realpath(Z,(z,V)=>{if(z)return J.dequeue(X?null:z,q);Y.stat(V,(W,K)=>{if(W)return J.dequeue(X?null:W,q);if(K.isDirectory()&&hz(Z,V,q))return J.dequeue(null,q);Q(K,V),J.dequeue(null,q)})})},Lw=function(Z,q,Q){let{queue:J,fs:Y,options:{suppressErrors:X}}=q;J.enqueue();try{let z=Y.realpathSync(Z),V=Y.statSync(z);if(V.isDirectory()&&hz(Z,z,q))return;Q(V,z)}catch(z){if(!X)throw z}};function ww(Z,q){if(!Z.resolveSymlinks||Z.excludeSymlinks)return null;return q?Lw:Fw}function hz(Z,q,Q){if(Q.options.useRealPaths)return Ow(q,Q);let J=T3(Z),Y=1;while(J!==Q.root&&Y<2){let X=Q.symlinks.get(J);if(!!X&&(X===q||X.startsWith(q)||q.startsWith(X)))Y++;else J=T3(J)}return Q.symlinks.set(Z,q),Y>1}function Ow(Z,q){return q.visited.includes(Z+q.options.pathSeparator)}var Nw=(Z)=>{return Z.counts},Rw=(Z)=>{return Z.groups},Cw=(Z)=>{return Z.paths},Iw=(Z)=>{return Z.paths.slice(0,Z.options.maxFiles)},_w=(Z,q,Q)=>{return L7(q,Q,Z.counts,Z.options.suppressErrors),null},Dw=(Z,q,Q)=>{return L7(q,Q,Z.paths,Z.options.suppressErrors),null},Tw=(Z,q,Q)=>{return L7(q,Q,Z.paths.slice(0,Z.options.maxFiles),Z.options.suppressErrors),null},Aw=(Z,q,Q)=>{return L7(q,Q,Z.groups,Z.options.suppressErrors),null};function L7(Z,q,Q,J){if(Z&&!J)q(Z,Q);else q(null,Q)}function Pw(Z,q){let{onlyCounts:Q,group:J,maxFiles:Y}=Z;if(Q)return q?Nw:_w;else if(J)return q?Rw:Aw;else if(Y)return q?Iw:Tw;else return q?Cw:Dw}var gz={withFileTypes:!0},Sw=(Z,q,Q,J,Y)=>{if(Z.queue.enqueue(),J<0)return Z.queue.dequeue(null,Z);let{fs:X}=Z;Z.visited.push(q),Z.counts.directories++,X.readdir(q||".",gz,(z,V=[])=>{Y(V,Q,J),Z.queue.dequeue(Z.options.suppressErrors?null:z,Z)})},yw=(Z,q,Q,J,Y)=>{let{fs:X}=Z;if(J<0)return;Z.visited.push(q),Z.counts.directories++;let z=[];try{z=X.readdirSync(q||".",gz)}catch(V){if(!Z.options.suppressErrors)throw V}Y(z,Q,J)};function Ew(Z){return Z?yw:Sw}var bw=class{count=0;constructor(Z){this.onQueueEmpty=Z}enqueue(){return this.count++,this.count}dequeue(Z,q){if(this.onQueueEmpty&&(--this.count<=0||Z)){if(this.onQueueEmpty(Z,q),Z)q.controller.abort(),this.onQueueEmpty=void 0}}},xw=class{_files=0;_directories=0;set files(Z){this._files=Z}get files(){return this._files}set directories(Z){this._directories=Z}get directories(){return this._directories}get dirs(){return this._directories}},kw=class{aborted=!1;abort(){this.aborted=!0}},mz=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(Z,q,Q){this.isSynchronous=!Q,this.callbackInvoker=Pw(q,this.isSynchronous),this.root=D3(Z,q),this.state={root:sL(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new xw,options:q,queue:new bw((J,Y)=>this.callbackInvoker(Y,J,Q)),symlinks:new Map,visited:[""].slice(0,0),controller:new kw,fs:q.fs||cL},this.joinPath=tL(this.root,q),this.pushDirectory=Yw(this.root,q),this.pushFile=$w(q),this.getArray=jw(q),this.groupFiles=Hw(q),this.resolveSymlink=ww(q,this.isSynchronous),this.walkDirectory=Ew(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(Z,q,Q)=>{let{paths:J,options:{filters:Y,resolveSymlinks:X,excludeSymlinks:z,exclude:V,maxFiles:W,signal:K,useRealPaths:$,pathSeparator:H},controller:M}=this.state;if(M.aborted||K&&K.aborted||W&&J.length>W)return;let O=this.getArray(this.state.paths);for(let L=0;L<Z.length;++L){let B=Z[L];if(B.isFile()||B.isSymbolicLink()&&!X&&!z){let C=this.joinPath(B.name,q);this.pushFile(C,O,this.state.counts,Y)}else if(B.isDirectory()){let C=oL(B.name,q,this.state.options.pathSeparator);if(V&&V(B.name,C))continue;this.pushDirectory(C,J,Y),this.walkDirectory(this.state,C,C,Q-1,this.walk)}else if(this.resolveSymlink&&B.isSymbolicLink()){let C=vz(B.name,q);this.resolveSymlink(C,this.state,(y,P)=>{if(y.isDirectory()){if(P=D3(P,this.state.options),V&&V(B.name,$?P:C+H))return;this.walkDirectory(this.state,P,$?P:C+H,Q-1,this.walk)}else{P=$?P:C;let _=mL(P),v=D3(T3(P),this.state.options);P=this.joinPath(_,v),this.pushFile(P,O,this.state.counts,Y)}})}}this.groupFiles(this.state.groups,q,O)}};function fw(Z,q){return new Promise((Q,J)=>{uz(Z,q,(Y,X)=>{if(Y)return J(Y);Q(X)})})}function uz(Z,q,Q){new mz(Z,q,Q).start()}function vw(Z,q){return new mz(Z,q).start()}var xz=class{constructor(Z,q){this.root=Z,this.options=q}withPromise(){return fw(this.root,this.options)}withCallback(Z){uz(this.root,this.options,Z)}sync(){return vw(this.root,this.options)}},dz=null;try{bz.resolve("picomatch"),dz=bz("picomatch")}catch{}var lz=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:kz,filters:[]};globFunction;constructor(Z){this.options={...this.options,...Z},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(Z){return this.options.pathSeparator=Z,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(Z){return this.options.maxDepth=Z,this}withMaxFiles(Z){return this.options.maxFiles=Z,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:Z=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=Z,this.withFullPaths()}withAbortSignal(Z){return this.options.signal=Z,this}normalize(){return this.options.normalizePath=!0,this}filter(Z){return this.options.filters.push(Z),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(Z){return this.options.exclude=Z,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(Z){return new xz(Z||".",this.options)}withGlobFunction(Z){return this.globFunction=Z,this}crawlWithOptions(Z,q){return this.options={...this.options,...q},new xz(Z||".",this.options)}glob(...Z){if(this.globFunction)return this.globWithOptions(Z);return this.globWithOptions(Z,...[{dot:!0}])}globWithOptions(Z,...q){let Q=this.globFunction||dz;if(!Q)throw Error("Please specify a glob function to use glob matching.");var J=this.globCache[Z.join("\x00")];if(!J)J=Q(Z,...q),this.globCache[Z.join("\x00")]=J;return this.options.filters.push((Y)=>J(Y)),this}};var T6=F8(jV(),1),NO=Array.isArray,HV=process.platform==="win32",RO=/^(\/?\.\.)+$/;function CO(Z,q={}){let Q=Z.length,J=Array(Q),Y=Array(Q),X=!q.noglobstar;for(let z=0;z<Q;z++){let V=FV(Z[z]);J[z]=V;let W=V.length,K=Array(W);for(let $=0;$<W;$++)K[$]=T6.default(V[$],q);Y[z]=K}return(z)=>{let V=z.split("/");if(V[0]===".."&&RO.test(z))return!0;for(let W=0;W<Z.length;W++){let K=J[W],$=Y[W],H=V.length,M=Math.min(H,K.length),O=0;while(O<M){let L=K[O];if(L.includes("/"))return!0;if(!$[O](V[O]))break;if(X&&L==="**")return!0;O++}if(O===H)return!0}return!1}}var IO=/^[A-Z]:\/$/i,_O=HV?(Z)=>IO.test(Z):(Z)=>Z==="/";function BV(Z,q,Q){if(Z===q||q.startsWith(`${Z}/`)){if(Q){let Y=_O(Z)?Z.length:Z.length+1;return(X,z)=>X.slice(Y,z?-1:void 0)||"."}let J=q.slice(Z.length+1);if(J)return(Y,X)=>{if(Y===".")return J;let z=`${J}/${Y}`;return X?z.slice(0,-1):z};return(Y,X)=>X&&Y!=="."?Y.slice(0,-1):Y}if(Q)return(J)=>k8.relative(Z,J)||".";return(J)=>k8.relative(Z,`${q}/${J}`)||"."}function DO(Z,q){if(q.startsWith(`${Z}/`)){let Q=q.slice(Z.length+1);return(J)=>`${Q}/${J}`}return(Q)=>{let J=k8.relative(Z,`${q}/${Q}`);if(Q.endsWith("/")&&J!=="")return`${J}/`;return J||"."}}var TO={parts:!0};function FV(Z){var q;let Q=T6.default.scan(Z,TO);return((q=Q.parts)===null||q===void 0?void 0:q.length)?Q.parts:[Z]}var AO=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,PO=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,SO=(Z)=>Z.replace(AO,"\\$&"),yO=(Z)=>Z.replace(PO,"\\$&"),EO=HV?yO:SO;function bO(Z,q){if((q===null||q===void 0?void 0:q.caseSensitiveMatch)===!1)return!0;let Q=T6.default.scan(Z);return Q.isGlob||Q.negated}function D6(...Z){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...Z)}var xO=/^(\/?\.\.)+/,kO=/\\(?=[()[\]{}!*+?@|])/g,O7=/\\/g;function f3(Z,q,Q,J,Y){let X=Z;if(Z.endsWith("/"))X=Z.slice(0,-1);if(!X.endsWith("*")&&q)X+="/**";let z=EO(Q);if(MV.isAbsolute(X.replace(kO,"")))X=k8.relative(z,X);else X=k8.normalize(X);let V=xO.exec(X),W=FV(X);if(V===null||V===void 0?void 0:V[0]){let $=(V[0].length+1)/3,H=0,M=z.split("/");while(H<$&&W[H+$]===M[M.length+H-$])X=X.slice(0,($-H-1)*3)+X.slice(($-H)*3+W[H+$].length+1)||".",H++;let O=k8.join(Q,V[0].slice(H*3));if(!O.startsWith(".")&&J.root.length>O.length)J.root=O,J.depthOffset=-$+H}if(!Y&&J.depthOffset>=0){var K;(K=J.commonPath)!==null&&K!==void 0||(J.commonPath=W);let $=[],H=Math.min(J.commonPath.length,W.length);for(let M=0;M<H;M++){let O=W[M];if(O==="**"&&!W[M+1]){$.pop();break}if(O!==J.commonPath[M]||bO(O)||M===W.length-1)break;$.push(O)}J.depthOffset=$.length,J.commonPath=$,J.root=$.length>0?k8.join(Q,...$):Q}return X}function fO({patterns:Z=["**/*"],ignore:q=[],expandDirectories:Q=!0},J,Y){if(typeof Z==="string")Z=[Z];if(typeof q==="string")q=[q];let X=[],z=[];for(let V of q){if(!V)continue;if(V[0]!=="!"||V[1]==="(")z.push(f3(V,Q,J,Y,!0))}for(let V of Z){if(!V)continue;if(V[0]!=="!"||V[1]==="(")X.push(f3(V,Q,J,Y,!1));else if(V[1]!=="!"||V[2]==="(")z.push(f3(V.slice(1),Q,J,Y,!0))}return{match:X,ignore:z}}function vO(Z,q){for(let Q=Z.length-1;Q>=0;Q--){let J=Z[Q];Z[Q]=q(J)}return Z}function hO(Z){if(!Z)return process.cwd().replace(O7,"/");if(Z instanceof URL)return OO(Z).replace(O7,"/");return MV.resolve(Z).replace(O7,"/")}function gO(Z,q={}){let Q=process.env.TINYGLOBBY_DEBUG?{...q,debug:!0}:q,J=hO(Q.cwd);if(Q.debug)D6("globbing with:",{patterns:Z,options:Q,cwd:J});if(Array.isArray(Z)&&Z.length===0)return[{sync:()=>[],withPromise:async()=>[]},!1];let Y={root:J,commonPath:null,depthOffset:0},X=fO({...Q,patterns:Z},J,Y);if(Q.debug)D6("internal processing patterns:",X);let z={dot:Q.dot,nobrace:Q.braceExpansion===!1,nocase:Q.caseSensitiveMatch===!1,noextglob:Q.extglob===!1,noglobstar:Q.globstar===!1,posix:!0},V=T6.default(X.match,{...z,ignore:X.ignore}),W=T6.default(X.ignore,z),K=CO(X.match,z),$=BV(J,Y.root,Q.absolute),H=Q.absolute?$:BV(J,Y.root,!0),M={filters:[Q.debug?(B,C)=>{let y=$(B,C),P=V(y);if(P)D6(`matched ${y}`);return P}:(B,C)=>V($(B,C))],exclude:Q.debug?(B,C)=>{let y=H(C,!0),P=y!=="."&&!K(y)||W(y);if(P)D6(`skipped ${C}`);else D6(`crawling ${C}`);return P}:(B,C)=>{let y=H(C,!0);return y!=="."&&!K(y)||W(y)},fs:Q.fs?{readdir:Q.fs.readdir||_6.readdir,readdirSync:Q.fs.readdirSync||_6.readdirSync,realpath:Q.fs.realpath||_6.realpath,realpathSync:Q.fs.realpathSync||_6.realpathSync,stat:Q.fs.stat||_6.stat,statSync:Q.fs.statSync||_6.statSync}:void 0,pathSeparator:"/",relativePaths:!0,resolveSymlinks:!0,signal:Q.signal};if(Q.deep!==void 0)M.maxDepth=Math.round(Q.deep-Y.depthOffset);if(Q.absolute)M.relativePaths=!1,M.resolvePaths=!0,M.includeBasePath=!0;if(Q.followSymbolicLinks===!1)M.resolveSymlinks=!1,M.excludeSymlinks=!0;if(Q.onlyDirectories)M.excludeFiles=!0,M.includeDirs=!0;else if(Q.onlyFiles===!1)M.includeDirs=!0;Y.root=Y.root.replace(O7,"");let O=Y.root;if(Q.debug)D6("internal properties:",Y);let L=J!==O&&!Q.absolute&&DO(J,Y.root);return[new lz(M).crawl(O),L]}function LV(Z,q){if(Z&&(q===null||q===void 0?void 0:q.patterns))throw Error("Cannot pass patterns as both an argument and an option");let Q=NO(Z)||typeof Z==="string",J=Q?q:Z,Y=Q?Z:Z.patterns,[X,z]=gO(Y,J);if(!z)return X.sync();return vO(X.sync(),z)}import{lstatSync as SN,readdirSync as yN,readFileSync as EN}from"node:fs";import{dirname as bN,join as GW,resolve as xN}from"node:path";var mO=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],CV=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],uO="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",IV="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",v3={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},h3="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",dO={5:h3,"5module":h3+" export import",6:h3+" const class extends export import super"},_V=/^in(stanceof)?$/,lO=new RegExp("["+IV+"]"),cO=new RegExp("["+IV+uO+"]");function g3(Z,q){var Q=65536;for(var J=0;J<q.length;J+=2){if(Q+=q[J],Q>Z)return!1;if(Q+=q[J+1],Q>=Z)return!0}return!1}function u5(Z,q){if(Z<65)return Z===36;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&lO.test(String.fromCharCode(Z));if(q===!1)return!1;return g3(Z,CV)}function B8(Z,q){if(Z<48)return Z===36;if(Z<58)return!0;if(Z<65)return!1;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&cO.test(String.fromCharCode(Z));if(q===!1)return!1;return g3(Z,CV)||g3(Z,mO)}var I1=function(q,Q){if(Q===void 0)Q={};this.label=q,this.keyword=Q.keyword,this.beforeExpr=!!Q.beforeExpr,this.startsExpr=!!Q.startsExpr,this.isLoop=!!Q.isLoop,this.isAssign=!!Q.isAssign,this.prefix=!!Q.prefix,this.postfix=!!Q.postfix,this.binop=Q.binop||null,this.updateContext=null};function C5(Z,q){return new I1(Z,{beforeExpr:!0,binop:q})}var I5={beforeExpr:!0},W5={startsExpr:!0},c3={};function O1(Z,q){if(q===void 0)q={};return q.keyword=Z,c3[Z]=new I1(Z,q)}var w={num:new I1("num",W5),regexp:new I1("regexp",W5),string:new I1("string",W5),name:new I1("name",W5),privateId:new I1("privateId",W5),eof:new I1("eof"),bracketL:new I1("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new I1("]"),braceL:new I1("{",{beforeExpr:!0,startsExpr:!0}),braceR:new I1("}"),parenL:new I1("(",{beforeExpr:!0,startsExpr:!0}),parenR:new I1(")"),comma:new I1(",",I5),semi:new I1(";",I5),colon:new I1(":",I5),dot:new I1("."),question:new I1("?",I5),questionDot:new I1("?."),arrow:new I1("=>",I5),template:new I1("template"),invalidTemplate:new I1("invalidTemplate"),ellipsis:new I1("...",I5),backQuote:new I1("`",W5),dollarBraceL:new I1("${",{beforeExpr:!0,startsExpr:!0}),eq:new I1("=",{beforeExpr:!0,isAssign:!0}),assign:new I1("_=",{beforeExpr:!0,isAssign:!0}),incDec:new I1("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new I1("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:C5("||",1),logicalAND:C5("&&",2),bitwiseOR:C5("|",3),bitwiseXOR:C5("^",4),bitwiseAND:C5("&",5),equality:C5("==/!=/===/!==",6),relational:C5("</>/<=/>=",7),bitShift:C5("<</>>/>>>",8),plusMin:new I1("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:C5("%",10),star:C5("*",10),slash:C5("/",10),starstar:new I1("**",{beforeExpr:!0}),coalesce:C5("??",1),_break:O1("break"),_case:O1("case",I5),_catch:O1("catch"),_continue:O1("continue"),_debugger:O1("debugger"),_default:O1("default",I5),_do:O1("do",{isLoop:!0,beforeExpr:!0}),_else:O1("else",I5),_finally:O1("finally"),_for:O1("for",{isLoop:!0}),_function:O1("function",W5),_if:O1("if"),_return:O1("return",I5),_switch:O1("switch"),_throw:O1("throw",I5),_try:O1("try"),_var:O1("var"),_const:O1("const"),_while:O1("while",{isLoop:!0}),_with:O1("with"),_new:O1("new",{beforeExpr:!0,startsExpr:!0}),_this:O1("this",W5),_super:O1("super",W5),_class:O1("class",W5),_extends:O1("extends",I5),_export:O1("export"),_import:O1("import",W5),_null:O1("null",W5),_true:O1("true",W5),_false:O1("false",W5),_in:O1("in",{beforeExpr:!0,binop:7}),_instanceof:O1("instanceof",{beforeExpr:!0,binop:7}),_typeof:O1("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:O1("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:O1("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},K5=/\r\n?|\n|\u2028|\u2029/,pO=new RegExp(K5.source,"g");function A6(Z){return Z===10||Z===13||Z===8232||Z===8233}function DV(Z,q,Q){if(Q===void 0)Q=Z.length;for(var J=q;J<Q;J++){var Y=Z.charCodeAt(J);if(A6(Y))return J<Q-1&&Y===13&&Z.charCodeAt(J+1)===10?J+2:J+1}return-1}var TV=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Q5=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,AV=Object.prototype,iO=AV.hasOwnProperty,nO=AV.toString,P6=Object.hasOwn||function(Z,q){return iO.call(Z,q)},wV=Array.isArray||function(Z){return nO.call(Z)==="[object Array]"},OV=Object.create(null);function j8(Z){return OV[Z]||(OV[Z]=new RegExp("^(?:"+Z.replace(/ /g,"|")+")$"))}function t5(Z){if(Z<=65535)return String.fromCharCode(Z);return Z-=65536,String.fromCharCode((Z>>10)+55296,(Z&1023)+56320)}var sO=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,h0=function(q,Q){this.line=q,this.column=Q};h0.prototype.offset=function(q){return new h0(this.line,this.column+q)};var D7=function(q,Q,J){if(this.start=Q,this.end=J,q.sourceFile!==null)this.source=q.sourceFile};function PV(Z,q){for(var Q=1,J=0;;){var Y=DV(Z,J,q);if(Y<0)return new h0(Q,q-J);++Q,J=Y}}var m3={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},NV=!1;function aO(Z){var q={};for(var Q in m3)q[Q]=Z&&P6(Z,Q)?Z[Q]:m3[Q];if(q.ecmaVersion==="latest")q.ecmaVersion=1e8;else if(q.ecmaVersion==null){if(!NV&&typeof console==="object"&&console.warn)NV=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
72
|
+
Defaulting to 2020, but this will stop working in the future.`);q.ecmaVersion=11}else if(q.ecmaVersion>=2015)q.ecmaVersion-=2009;if(q.allowReserved==null)q.allowReserved=q.ecmaVersion<5;if(!Z||Z.allowHashBang==null)q.allowHashBang=q.ecmaVersion>=14;if(wV(q.onToken)){var J=q.onToken;q.onToken=function(Y){return J.push(Y)}}if(wV(q.onComment))q.onComment=rO(q,q.onComment);if(q.sourceType==="commonjs"&&q.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return q}function rO(Z,q){return function(Q,J,Y,X,z,V){var W={type:Q?"Block":"Line",value:J,start:Y,end:X};if(Z.locations)W.loc=new D7(this,z,V);if(Z.ranges)W.range=[Y,X];q.push(W)}}var f8=1,v8=2,p3=4,SV=8,i3=16,yV=32,T7=64,EV=128,h8=256,g0=512,bV=1024,A7=f8|v8|h8;function n3(Z,q){return v8|(Z?p3:0)|(q?SV:0)}var R7=0,s3=1,Z8=2,xV=3,kV=4,fV=5,p1=function(q,Q,J){this.options=q=aO(q),this.sourceFile=q.sourceFile,this.keywords=j8(dO[q.ecmaVersion>=6?6:q.sourceType==="module"?"5module":5]);var Y="";if(q.allowReserved!==!0){if(Y=v3[q.ecmaVersion>=6?6:q.ecmaVersion===5?5:3],q.sourceType==="module")Y+=" await"}this.reservedWords=j8(Y);var X=(Y?Y+" ":"")+v3.strict;if(this.reservedWordsStrict=j8(X),this.reservedWordsStrictBind=j8(X+" "+v3.strictBind),this.input=String(Q),this.containsEsc=!1,J)this.pos=J,this.lineStart=this.input.lastIndexOf(`
|
|
73
|
+
`,J-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(K5).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=w.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=q.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&q.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?v8:f8),this.regexpState=null,this.privateNameStack=[]},D5={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};p1.prototype.parse=function(){var q=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(q)};D5.inFunction.get=function(){return(this.currentVarScope().flags&v8)>0};D5.inGenerator.get=function(){return(this.currentVarScope().flags&SV)>0};D5.inAsync.get=function(){return(this.currentVarScope().flags&p3)>0};D5.canAwait.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var q=this.scopeStack[Z],Q=q.flags;if(Q&(h8|g0))return!1;if(Q&v8)return(Q&p3)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};D5.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&f8)return!0;return!1};D5.allowSuper.get=function(){var Z=this.currentThisScope(),q=Z.flags;return(q&T7)>0||this.options.allowSuperOutsideMethod};D5.allowDirectSuper.get=function(){return(this.currentThisScope().flags&EV)>0};D5.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};D5.allowNewDotTarget.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var q=this.scopeStack[Z],Q=q.flags;if(Q&(h8|g0)||Q&v8&&!(Q&i3))return!0}return!1};D5.allowUsing.get=function(){var Z=this.currentScope(),q=Z.flags;if(q&bV)return!1;if(!this.inModule&&q&f8)return!1;return!0};D5.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&h8)>0};p1.extend=function(){var q=[],Q=arguments.length;while(Q--)q[Q]=arguments[Q];var J=this;for(var Y=0;Y<q.length;Y++)J=q[Y](J);return J};p1.parse=function(q,Q){return new this(Q,q).parse()};p1.parseExpressionAt=function(q,Q,J){var Y=new this(J,q,Q);return Y.nextToken(),Y.parseExpression()};p1.tokenizer=function(q,Q){return new this(Q,q)};Object.defineProperties(p1.prototype,D5);var X5=p1.prototype,oO=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;X5.strictDirective=function(Z){if(this.options.ecmaVersion<5)return!1;for(;;){Q5.lastIndex=Z,Z+=Q5.exec(this.input)[0].length;var q=oO.exec(this.input.slice(Z));if(!q)return!1;if((q[1]||q[2])==="use strict"){Q5.lastIndex=Z+q[0].length;var Q=Q5.exec(this.input),J=Q.index+Q[0].length,Y=this.input.charAt(J);return Y===";"||Y==="}"||K5.test(Q[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(J+1)==="=")}if(Z+=q[0].length,Q5.lastIndex=Z,Z+=Q5.exec(this.input)[0].length,this.input[Z]===";")Z++}};X5.eat=function(Z){if(this.type===Z)return this.next(),!0;else return!1};X5.isContextual=function(Z){return this.type===w.name&&this.value===Z&&!this.containsEsc};X5.eatContextual=function(Z){if(!this.isContextual(Z))return!1;return this.next(),!0};X5.expectContextual=function(Z){if(!this.eatContextual(Z))this.unexpected()};X5.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||K5.test(this.input.slice(this.lastTokEnd,this.start))};X5.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};X5.semicolon=function(){if(!this.eat(w.semi)&&!this.insertSemicolon())this.unexpected()};X5.afterTrailingComma=function(Z,q){if(this.type===Z){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!q)this.next();return!0}};X5.expect=function(Z){this.eat(Z)||this.unexpected()};X5.unexpected=function(Z){this.raise(Z!=null?Z:this.start,"Unexpected token")};var P7=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};X5.checkPatternErrors=function(Z,q){if(!Z)return;if(Z.trailingComma>-1)this.raiseRecoverable(Z.trailingComma,"Comma is not permitted after the rest element");var Q=q?Z.parenthesizedAssign:Z.parenthesizedBind;if(Q>-1)this.raiseRecoverable(Q,q?"Assigning to rvalue":"Parenthesized pattern")};X5.checkExpressionErrors=function(Z,q){if(!Z)return!1;var{shorthandAssign:Q,doubleProto:J}=Z;if(!q)return Q>=0||J>=0;if(Q>=0)this.raise(Q,"Shorthand property assignments are valid only in destructuring patterns");if(J>=0)this.raiseRecoverable(J,"Redefinition of __proto__ property")};X5.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};X5.isSimpleAssignTarget=function(Z){if(Z.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(Z.expression);return Z.type==="Identifier"||Z.type==="MemberExpression"};var Q1=p1.prototype;Q1.parseTopLevel=function(Z){var q=Object.create(null);if(!Z.body)Z.body=[];while(this.type!==w.eof){var Q=this.parseStatement(null,!0,q);Z.body.push(Q)}if(this.inModule)for(var J=0,Y=Object.keys(this.undefinedExports);J<Y.length;J+=1){var X=Y[J];this.raiseRecoverable(this.undefinedExports[X].start,"Export '"+X+"' is not defined")}return this.adaptDirectivePrologue(Z.body),this.next(),Z.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(Z,"Program")};var a3={kind:"loop"},tO={kind:"switch"};Q1.isLet=function(Z){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Q5.lastIndex=this.pos;var q=Q5.exec(this.input),Q=this.pos+q[0].length,J=this.fullCharCodeAt(Q);if(J===91||J===92)return!0;if(Z)return!1;if(J===123)return!0;if(u5(J)){var Y=Q;do Q+=J<=65535?1:2;while(B8(J=this.fullCharCodeAt(Q)));if(J===92)return!0;var X=this.input.slice(Y,Q);if(!_V.test(X))return!0}return!1};Q1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Q5.lastIndex=this.pos;var Z=Q5.exec(this.input),q=this.pos+Z[0].length,Q;return!K5.test(this.input.slice(this.pos,q))&&this.input.slice(q,q+8)==="function"&&(q+8===this.input.length||!(B8(Q=this.fullCharCodeAt(q+8))||Q===92))};Q1.isUsingKeyword=function(Z,q){if(this.options.ecmaVersion<17||!this.isContextual(Z?"await":"using"))return!1;Q5.lastIndex=this.pos;var Q=Q5.exec(this.input),J=this.pos+Q[0].length;if(K5.test(this.input.slice(this.pos,J)))return!1;if(Z){var Y=J+5,X;if(this.input.slice(J,Y)!=="using"||Y===this.input.length||B8(X=this.fullCharCodeAt(Y))||X===92)return!1;Q5.lastIndex=Y;var z=Q5.exec(this.input);if(J=Y+z[0].length,z&&K5.test(this.input.slice(Y,J)))return!1}var V=this.fullCharCodeAt(J);if(!u5(V)&&V!==92)return!1;var W=J;do J+=V<=65535?1:2;while(B8(V=this.fullCharCodeAt(J)));if(V===92)return!0;var K=this.input.slice(W,J);if(_V.test(K)||q&&K==="of")return!1;return!0};Q1.isAwaitUsing=function(Z){return this.isUsingKeyword(!0,Z)};Q1.isUsing=function(Z){return this.isUsingKeyword(!1,Z)};Q1.parseStatement=function(Z,q,Q){var J=this.type,Y=this.startNode(),X;if(this.isLet(Z))J=w._var,X="let";switch(J){case w._break:case w._continue:return this.parseBreakContinueStatement(Y,J.keyword);case w._debugger:return this.parseDebuggerStatement(Y);case w._do:return this.parseDoStatement(Y);case w._for:return this.parseForStatement(Y);case w._function:if(Z&&(this.strict||Z!=="if"&&Z!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!Z);case w._class:if(Z)this.unexpected();return this.parseClass(Y,!0);case w._if:return this.parseIfStatement(Y);case w._return:return this.parseReturnStatement(Y);case w._switch:return this.parseSwitchStatement(Y);case w._throw:return this.parseThrowStatement(Y);case w._try:return this.parseTryStatement(Y);case w._const:case w._var:if(X=X||this.value,Z&&X!=="var")this.unexpected();return this.parseVarStatement(Y,X);case w._while:return this.parseWhileStatement(Y);case w._with:return this.parseWithStatement(Y);case w.braceL:return this.parseBlock(!0,Y);case w.semi:return this.parseEmptyStatement(Y);case w._export:case w._import:if(this.options.ecmaVersion>10&&J===w._import){Q5.lastIndex=this.pos;var z=Q5.exec(this.input),V=this.pos+z[0].length,W=this.input.charCodeAt(V);if(W===40||W===46)return this.parseExpressionStatement(Y,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!q)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return J===w._import?this.parseImport(Y):this.parseExport(Y,Q);default:if(this.isAsyncFunction()){if(Z)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!0,!Z)}var K=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(K){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(K==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(Y,!1,K),this.semicolon(),this.finishNode(Y,"VariableDeclaration")}var $=this.value,H=this.parseExpression();if(J===w.name&&H.type==="Identifier"&&this.eat(w.colon))return this.parseLabeledStatement(Y,$,H,Z);else return this.parseExpressionStatement(Y,H)}};Q1.parseBreakContinueStatement=function(Z,q){var Q=q==="break";if(this.next(),this.eat(w.semi)||this.insertSemicolon())Z.label=null;else if(this.type!==w.name)this.unexpected();else Z.label=this.parseIdent(),this.semicolon();var J=0;for(;J<this.labels.length;++J){var Y=this.labels[J];if(Z.label==null||Y.name===Z.label.name){if(Y.kind!=null&&(Q||Y.kind==="loop"))break;if(Z.label&&Q)break}}if(J===this.labels.length)this.raise(Z.start,"Unsyntactic "+q);return this.finishNode(Z,Q?"BreakStatement":"ContinueStatement")};Q1.parseDebuggerStatement=function(Z){return this.next(),this.semicolon(),this.finishNode(Z,"DebuggerStatement")};Q1.parseDoStatement=function(Z){if(this.next(),this.labels.push(a3),Z.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),Z.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(w.semi);else this.semicolon();return this.finishNode(Z,"DoWhileStatement")};Q1.parseForStatement=function(Z){this.next();var q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(a3),this.enterScope(0),this.expect(w.parenL),this.type===w.semi){if(q>-1)this.unexpected(q);return this.parseFor(Z,null)}var Q=this.isLet();if(this.type===w._var||this.type===w._const||Q){var J=this.startNode(),Y=Q?"let":this.value;return this.next(),this.parseVar(J,!0,Y),this.finishNode(J,"VariableDeclaration"),this.parseForAfterInit(Z,J,q)}var X=this.isContextual("let"),z=!1,V=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(V){var W=this.startNode();if(this.next(),V==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(W,!0,V),this.finishNode(W,"VariableDeclaration"),this.parseForAfterInit(Z,W,q)}var K=this.containsEsc,$=new P7,H=this.start,M=q>-1?this.parseExprSubscripts($,"await"):this.parseExpression(!0,$);if(this.type===w._in||(z=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(q>-1){if(this.type===w._in)this.unexpected(q);Z.await=!0}else if(z&&this.options.ecmaVersion>=8){if(M.start===H&&!K&&M.type==="Identifier"&&M.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)Z.await=!1}if(X&&z)this.raise(M.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(M,!1,$),this.checkLValPattern(M),this.parseForIn(Z,M)}else this.checkExpressionErrors($,!0);if(q>-1)this.unexpected(q);return this.parseFor(Z,M)};Q1.parseForAfterInit=function(Z,q,Q){if((this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&q.declarations.length===1){if(this.options.ecmaVersion>=9)if(this.type===w._in){if(Q>-1)this.unexpected(Q)}else Z.await=Q>-1;return this.parseForIn(Z,q)}if(Q>-1)this.unexpected(Q);return this.parseFor(Z,q)};Q1.parseFunctionStatement=function(Z,q,Q){return this.next(),this.parseFunction(Z,v0|(Q?0:u3),!1,q)};Q1.parseIfStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),Z.consequent=this.parseStatement("if"),Z.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(Z,"IfStatement")};Q1.parseReturnStatement=function(Z){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(w.semi)||this.insertSemicolon())Z.argument=null;else Z.argument=this.parseExpression(),this.semicolon();return this.finishNode(Z,"ReturnStatement")};Q1.parseSwitchStatement=function(Z){this.next(),Z.discriminant=this.parseParenExpression(),Z.cases=[],this.expect(w.braceL),this.labels.push(tO),this.enterScope(bV);var q;for(var Q=!1;this.type!==w.braceR;)if(this.type===w._case||this.type===w._default){var J=this.type===w._case;if(q)this.finishNode(q,"SwitchCase");if(Z.cases.push(q=this.startNode()),q.consequent=[],this.next(),J)q.test=this.parseExpression();else{if(Q)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");Q=!0,q.test=null}this.expect(w.colon)}else{if(!q)this.unexpected();q.consequent.push(this.parseStatement(null))}if(this.exitScope(),q)this.finishNode(q,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(Z,"SwitchStatement")};Q1.parseThrowStatement=function(Z){if(this.next(),K5.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return Z.argument=this.parseExpression(),this.semicolon(),this.finishNode(Z,"ThrowStatement")};var eO=[];Q1.parseCatchClauseParam=function(){var Z=this.parseBindingAtom(),q=Z.type==="Identifier";return this.enterScope(q?yV:0),this.checkLValPattern(Z,q?kV:Z8),this.expect(w.parenR),Z};Q1.parseTryStatement=function(Z){if(this.next(),Z.block=this.parseBlock(),Z.handler=null,this.type===w._catch){var q=this.startNode();if(this.next(),this.eat(w.parenL))q.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();q.param=null,this.enterScope(0)}q.body=this.parseBlock(!1),this.exitScope(),Z.handler=this.finishNode(q,"CatchClause")}if(Z.finalizer=this.eat(w._finally)?this.parseBlock():null,!Z.handler&&!Z.finalizer)this.raise(Z.start,"Missing catch or finally clause");return this.finishNode(Z,"TryStatement")};Q1.parseVarStatement=function(Z,q,Q){return this.next(),this.parseVar(Z,!1,q,Q),this.semicolon(),this.finishNode(Z,"VariableDeclaration")};Q1.parseWhileStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),this.labels.push(a3),Z.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(Z,"WhileStatement")};Q1.parseWithStatement=function(Z){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),Z.object=this.parseParenExpression(),Z.body=this.parseStatement("with"),this.finishNode(Z,"WithStatement")};Q1.parseEmptyStatement=function(Z){return this.next(),this.finishNode(Z,"EmptyStatement")};Q1.parseLabeledStatement=function(Z,q,Q,J){for(var Y=0,X=this.labels;Y<X.length;Y+=1){var z=X[Y];if(z.name===q)this.raise(Q.start,"Label '"+q+"' is already declared")}var V=this.type.isLoop?"loop":this.type===w._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var K=this.labels[W];if(K.statementStart===Z.start)K.statementStart=this.start,K.kind=V;else break}return this.labels.push({name:q,kind:V,statementStart:this.start}),Z.body=this.parseStatement(J?J.indexOf("label")===-1?J+"label":J:"label"),this.labels.pop(),Z.label=Q,this.finishNode(Z,"LabeledStatement")};Q1.parseExpressionStatement=function(Z,q){return Z.expression=q,this.semicolon(),this.finishNode(Z,"ExpressionStatement")};Q1.parseBlock=function(Z,q,Q){if(Z===void 0)Z=!0;if(q===void 0)q=this.startNode();if(q.body=[],this.expect(w.braceL),Z)this.enterScope(0);while(this.type!==w.braceR){var J=this.parseStatement(null);q.body.push(J)}if(Q)this.strict=!1;if(this.next(),Z)this.exitScope();return this.finishNode(q,"BlockStatement")};Q1.parseFor=function(Z,q){return Z.init=q,this.expect(w.semi),Z.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),Z.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,"ForStatement")};Q1.parseForIn=function(Z,q){var Q=this.type===w._in;if(this.next(),q.type==="VariableDeclaration"&&q.declarations[0].init!=null&&(!Q||this.options.ecmaVersion<8||this.strict||q.kind!=="var"||q.declarations[0].id.type!=="Identifier"))this.raise(q.start,(Q?"for-in":"for-of")+" loop variable declaration may not have an initializer");return Z.left=q,Z.right=Q?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,Q?"ForInStatement":"ForOfStatement")};Q1.parseVar=function(Z,q,Q,J){Z.declarations=[],Z.kind=Q;for(;;){var Y=this.startNode();if(this.parseVarId(Y,Q),this.eat(w.eq))Y.init=this.parseMaybeAssign(q);else if(!J&&Q==="const"&&!(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!J&&(Q==="using"||Q==="await using")&&this.options.ecmaVersion>=17&&this.type!==w._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+Q+" declaration");else if(!J&&Y.id.type!=="Identifier"&&!(q&&(this.type===w._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else Y.init=null;if(Z.declarations.push(this.finishNode(Y,"VariableDeclarator")),!this.eat(w.comma))break}return Z};Q1.parseVarId=function(Z,q){Z.id=q==="using"||q==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(Z.id,q==="var"?s3:Z8,!1)};var v0=1,u3=2,vV=4;Q1.parseFunction=function(Z,q,Q,J,Y){if(this.initFunction(Z),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!J){if(this.type===w.star&&q&u3)this.unexpected();Z.generator=this.eat(w.star)}if(this.options.ecmaVersion>=8)Z.async=!!J;if(q&v0){if(Z.id=q&vV&&this.type!==w.name?null:this.parseIdent(),Z.id&&!(q&u3))this.checkLValSimple(Z.id,this.strict||Z.generator||Z.async?this.treatFunctionsAsVar?s3:Z8:xV)}var X=this.yieldPos,z=this.awaitPos,V=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(n3(Z.async,Z.generator)),!(q&v0))Z.id=this.type===w.name?this.parseIdent():null;return this.parseFunctionParams(Z),this.parseFunctionBody(Z,Q,!1,Y),this.yieldPos=X,this.awaitPos=z,this.awaitIdentPos=V,this.finishNode(Z,q&v0?"FunctionDeclaration":"FunctionExpression")};Q1.parseFunctionParams=function(Z){this.expect(w.parenL),Z.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Q1.parseClass=function(Z,q){this.next();var Q=this.strict;this.strict=!0,this.parseClassId(Z,q),this.parseClassSuper(Z);var J=this.enterClassBody(),Y=this.startNode(),X=!1;Y.body=[],this.expect(w.braceL);while(this.type!==w.braceR){var z=this.parseClassElement(Z.superClass!==null);if(z){if(Y.body.push(z),z.type==="MethodDefinition"&&z.kind==="constructor"){if(X)this.raiseRecoverable(z.start,"Duplicate constructor in the same class");X=!0}else if(z.key&&z.key.type==="PrivateIdentifier"&&ZN(J,z))this.raiseRecoverable(z.key.start,"Identifier '#"+z.key.name+"' has already been declared")}}return this.strict=Q,this.next(),Z.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(Z,q?"ClassDeclaration":"ClassExpression")};Q1.parseClassElement=function(Z){if(this.eat(w.semi))return null;var q=this.options.ecmaVersion,Q=this.startNode(),J="",Y=!1,X=!1,z="method",V=!1;if(this.eatContextual("static")){if(q>=13&&this.eat(w.braceL))return this.parseClassStaticBlock(Q),Q;if(this.isClassElementNameStart()||this.type===w.star)V=!0;else J="static"}if(Q.static=V,!J&&q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===w.star)&&!this.canInsertSemicolon())X=!0;else J="async";if(!J&&(q>=9||!X)&&this.eat(w.star))Y=!0;if(!J&&!X&&!Y){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())z=W;else J=W}if(J)Q.computed=!1,Q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Q.key.name=J,this.finishNode(Q.key,"Identifier");else this.parseClassElementName(Q);if(q<13||this.type===w.parenL||z!=="method"||Y||X){var K=!Q.static&&C7(Q,"constructor"),$=K&&Z;if(K&&z!=="method")this.raise(Q.key.start,"Constructor can't have get/set modifier");Q.kind=K?"constructor":z,this.parseClassMethod(Q,Y,X,$)}else this.parseClassField(Q);return Q};Q1.isClassElementNameStart=function(){return this.type===w.name||this.type===w.privateId||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword};Q1.parseClassElementName=function(Z){if(this.type===w.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");Z.computed=!1,Z.key=this.parsePrivateIdent()}else this.parsePropertyName(Z)};Q1.parseClassMethod=function(Z,q,Q,J){var Y=Z.key;if(Z.kind==="constructor"){if(q)this.raise(Y.start,"Constructor can't be a generator");if(Q)this.raise(Y.start,"Constructor can't be an async method")}else if(Z.static&&C7(Z,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var X=Z.value=this.parseMethod(q,Q,J);if(Z.kind==="get"&&X.params.length!==0)this.raiseRecoverable(X.start,"getter should have no params");if(Z.kind==="set"&&X.params.length!==1)this.raiseRecoverable(X.start,"setter should have exactly one param");if(Z.kind==="set"&&X.params[0].type==="RestElement")this.raiseRecoverable(X.params[0].start,"Setter cannot use rest params");return this.finishNode(Z,"MethodDefinition")};Q1.parseClassField=function(Z){if(C7(Z,"constructor"))this.raise(Z.key.start,"Classes can't have a field named 'constructor'");else if(Z.static&&C7(Z,"prototype"))this.raise(Z.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(w.eq))this.enterScope(g0|T7),Z.value=this.parseMaybeAssign(),this.exitScope();else Z.value=null;return this.semicolon(),this.finishNode(Z,"PropertyDefinition")};Q1.parseClassStaticBlock=function(Z){Z.body=[];var q=this.labels;this.labels=[],this.enterScope(h8|T7);while(this.type!==w.braceR){var Q=this.parseStatement(null);Z.body.push(Q)}return this.next(),this.exitScope(),this.labels=q,this.finishNode(Z,"StaticBlock")};Q1.parseClassId=function(Z,q){if(this.type===w.name){if(Z.id=this.parseIdent(),q)this.checkLValSimple(Z.id,Z8,!1)}else{if(q===!0)this.unexpected();Z.id=null}};Q1.parseClassSuper=function(Z){Z.superClass=this.eat(w._extends)?this.parseExprSubscripts(null,!1):null};Q1.enterClassBody=function(){var Z={declared:Object.create(null),used:[]};return this.privateNameStack.push(Z),Z.declared};Q1.exitClassBody=function(){var Z=this.privateNameStack.pop(),q=Z.declared,Q=Z.used;if(!this.options.checkPrivateFields)return;var J=this.privateNameStack.length,Y=J===0?null:this.privateNameStack[J-1];for(var X=0;X<Q.length;++X){var z=Q[X];if(!P6(q,z.name))if(Y)Y.used.push(z);else this.raiseRecoverable(z.start,"Private field '#"+z.name+"' must be declared in an enclosing class")}};function ZN(Z,q){var Q=q.key.name,J=Z[Q],Y="true";if(q.type==="MethodDefinition"&&(q.kind==="get"||q.kind==="set"))Y=(q.static?"s":"i")+q.kind;if(J==="iget"&&Y==="iset"||J==="iset"&&Y==="iget"||J==="sget"&&Y==="sset"||J==="sset"&&Y==="sget")return Z[Q]="true",!1;else if(!J)return Z[Q]=Y,!1;else return!0}function C7(Z,q){var{computed:Q,key:J}=Z;return!Q&&(J.type==="Identifier"&&J.name===q||J.type==="Literal"&&J.value===q)}Q1.parseExportAllDeclaration=function(Z,q){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))Z.exported=this.parseModuleExportName(),this.checkExport(q,Z.exported,this.lastTokStart);else Z.exported=null;if(this.expectContextual("from"),this.type!==w.string)this.unexpected();if(Z.source=this.parseExprAtom(),this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(Z,"ExportAllDeclaration")};Q1.parseExport=function(Z,q){if(this.next(),this.eat(w.star))return this.parseExportAllDeclaration(Z,q);if(this.eat(w._default))return this.checkExport(q,"default",this.lastTokStart),Z.declaration=this.parseExportDefaultDeclaration(),this.finishNode(Z,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(Z.declaration=this.parseExportDeclaration(Z),Z.declaration.type==="VariableDeclaration")this.checkVariableExport(q,Z.declaration.declarations);else this.checkExport(q,Z.declaration.id,Z.declaration.id.start);if(Z.specifiers=[],Z.source=null,this.options.ecmaVersion>=16)Z.attributes=[]}else{if(Z.declaration=null,Z.specifiers=this.parseExportSpecifiers(q),this.eatContextual("from")){if(this.type!==w.string)this.unexpected();if(Z.source=this.parseExprAtom(),this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause()}else{for(var Q=0,J=Z.specifiers;Q<J.length;Q+=1){var Y=J[Q];if(this.checkUnreserved(Y.local),this.checkLocalExport(Y.local),Y.local.type==="Literal")this.raise(Y.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(Z.source=null,this.options.ecmaVersion>=16)Z.attributes=[]}this.semicolon()}return this.finishNode(Z,"ExportNamedDeclaration")};Q1.parseExportDeclaration=function(Z){return this.parseStatement(null)};Q1.parseExportDefaultDeclaration=function(){var Z;if(this.type===w._function||(Z=this.isAsyncFunction())){var q=this.startNode();if(this.next(),Z)this.next();return this.parseFunction(q,v0|vV,!1,Z)}else if(this.type===w._class){var Q=this.startNode();return this.parseClass(Q,"nullableID")}else{var J=this.parseMaybeAssign();return this.semicolon(),J}};Q1.checkExport=function(Z,q,Q){if(!Z)return;if(typeof q!=="string")q=q.type==="Identifier"?q.name:q.value;if(P6(Z,q))this.raiseRecoverable(Q,"Duplicate export '"+q+"'");Z[q]=!0};Q1.checkPatternExport=function(Z,q){var Q=q.type;if(Q==="Identifier")this.checkExport(Z,q,q.start);else if(Q==="ObjectPattern")for(var J=0,Y=q.properties;J<Y.length;J+=1){var X=Y[J];this.checkPatternExport(Z,X)}else if(Q==="ArrayPattern")for(var z=0,V=q.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkPatternExport(Z,W)}else if(Q==="Property")this.checkPatternExport(Z,q.value);else if(Q==="AssignmentPattern")this.checkPatternExport(Z,q.left);else if(Q==="RestElement")this.checkPatternExport(Z,q.argument)};Q1.checkVariableExport=function(Z,q){if(!Z)return;for(var Q=0,J=q;Q<J.length;Q+=1){var Y=J[Q];this.checkPatternExport(Z,Y.id)}};Q1.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Q1.parseExportSpecifier=function(Z){var q=this.startNode();return q.local=this.parseModuleExportName(),q.exported=this.eatContextual("as")?this.parseModuleExportName():q.local,this.checkExport(Z,q.exported,q.exported.start),this.finishNode(q,"ExportSpecifier")};Q1.parseExportSpecifiers=function(Z){var q=[],Q=!0;this.expect(w.braceL);while(!this.eat(w.braceR)){if(!Q){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else Q=!1;q.push(this.parseExportSpecifier(Z))}return q};Q1.parseImport=function(Z){if(this.next(),this.type===w.string)Z.specifiers=eO,Z.source=this.parseExprAtom();else Z.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),Z.source=this.type===w.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(Z,"ImportDeclaration")};Q1.parseImportSpecifier=function(){var Z=this.startNode();if(Z.imported=this.parseModuleExportName(),this.eatContextual("as"))Z.local=this.parseIdent();else this.checkUnreserved(Z.imported),Z.local=Z.imported;return this.checkLValSimple(Z.local,Z8),this.finishNode(Z,"ImportSpecifier")};Q1.parseImportDefaultSpecifier=function(){var Z=this.startNode();return Z.local=this.parseIdent(),this.checkLValSimple(Z.local,Z8),this.finishNode(Z,"ImportDefaultSpecifier")};Q1.parseImportNamespaceSpecifier=function(){var Z=this.startNode();return this.next(),this.expectContextual("as"),Z.local=this.parseIdent(),this.checkLValSimple(Z.local,Z8),this.finishNode(Z,"ImportNamespaceSpecifier")};Q1.parseImportSpecifiers=function(){var Z=[],q=!0;if(this.type===w.name){if(Z.push(this.parseImportDefaultSpecifier()),!this.eat(w.comma))return Z}if(this.type===w.star)return Z.push(this.parseImportNamespaceSpecifier()),Z;this.expect(w.braceL);while(!this.eat(w.braceR)){if(!q){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else q=!1;Z.push(this.parseImportSpecifier())}return Z};Q1.parseWithClause=function(){var Z=[];if(!this.eat(w._with))return Z;this.expect(w.braceL);var q={},Q=!0;while(!this.eat(w.braceR)){if(!Q){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else Q=!1;var J=this.parseImportAttribute(),Y=J.key.type==="Identifier"?J.key.name:J.key.value;if(P6(q,Y))this.raiseRecoverable(J.key.start,"Duplicate attribute key '"+Y+"'");q[Y]=!0,Z.push(J)}return Z};Q1.parseImportAttribute=function(){var Z=this.startNode();if(Z.key=this.type===w.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(w.colon),this.type!==w.string)this.unexpected();return Z.value=this.parseExprAtom(),this.finishNode(Z,"ImportAttribute")};Q1.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===w.string){var Z=this.parseLiteral(this.value);if(sO.test(Z.value))this.raise(Z.start,"An export name cannot include a lone surrogate.");return Z}return this.parseIdent(!0)};Q1.adaptDirectivePrologue=function(Z){for(var q=0;q<Z.length&&this.isDirectiveCandidate(Z[q]);++q)Z[q].directive=Z[q].expression.raw.slice(1,-1)};Q1.isDirectiveCandidate=function(Z){return this.options.ecmaVersion>=5&&Z.type==="ExpressionStatement"&&Z.expression.type==="Literal"&&typeof Z.expression.value==="string"&&(this.input[Z.start]==='"'||this.input[Z.start]==="'")};var T5=p1.prototype;T5.toAssignable=function(Z,q,Q){if(this.options.ecmaVersion>=6&&Z)switch(Z.type){case"Identifier":if(this.inAsync&&Z.name==="await")this.raise(Z.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(Z.type="ObjectPattern",Q)this.checkPatternErrors(Q,!0);for(var J=0,Y=Z.properties;J<Y.length;J+=1){var X=Y[J];if(this.toAssignable(X,q),X.type==="RestElement"&&(X.argument.type==="ArrayPattern"||X.argument.type==="ObjectPattern"))this.raise(X.argument.start,"Unexpected token")}break;case"Property":if(Z.kind!=="init")this.raise(Z.key.start,"Object pattern can't contain getter or setter");this.toAssignable(Z.value,q);break;case"ArrayExpression":if(Z.type="ArrayPattern",Q)this.checkPatternErrors(Q,!0);this.toAssignableList(Z.elements,q);break;case"SpreadElement":if(Z.type="RestElement",this.toAssignable(Z.argument,q),Z.argument.type==="AssignmentPattern")this.raise(Z.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(Z.operator!=="=")this.raise(Z.left.end,"Only '=' operator can be used for specifying default value.");Z.type="AssignmentPattern",delete Z.operator,this.toAssignable(Z.left,q);break;case"ParenthesizedExpression":this.toAssignable(Z.expression,q,Q);break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!q)break;default:this.raise(Z.start,"Assigning to rvalue")}else if(Q)this.checkPatternErrors(Q,!0);return Z};T5.toAssignableList=function(Z,q){var Q=Z.length;for(var J=0;J<Q;J++){var Y=Z[J];if(Y)this.toAssignable(Y,q)}if(Q){var X=Z[Q-1];if(this.options.ecmaVersion===6&&q&&X&&X.type==="RestElement"&&X.argument.type!=="Identifier")this.unexpected(X.argument.start)}return Z};T5.parseSpread=function(Z){var q=this.startNode();return this.next(),q.argument=this.parseMaybeAssign(!1,Z),this.finishNode(q,"SpreadElement")};T5.parseRestBinding=function(){var Z=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==w.name)this.unexpected();return Z.argument=this.parseBindingAtom(),this.finishNode(Z,"RestElement")};T5.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var Z=this.startNode();return this.next(),Z.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(Z,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()};T5.parseBindingList=function(Z,q,Q,J){var Y=[],X=!0;while(!this.eat(Z)){if(X)X=!1;else this.expect(w.comma);if(q&&this.type===w.comma)Y.push(null);else if(Q&&this.afterTrailingComma(Z))break;else if(this.type===w.ellipsis){var z=this.parseRestBinding();if(this.parseBindingListItem(z),Y.push(z),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(Z);break}else Y.push(this.parseAssignableListItem(J))}return Y};T5.parseAssignableListItem=function(Z){var q=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(q),q};T5.parseBindingListItem=function(Z){return Z};T5.parseMaybeDefault=function(Z,q,Q){if(Q=Q||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return Q;var J=this.startNodeAt(Z,q);return J.left=Q,J.right=this.parseMaybeAssign(),this.finishNode(J,"AssignmentPattern")};T5.checkLValSimple=function(Z,q,Q){if(q===void 0)q=R7;var J=q!==R7;switch(Z.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(Z.name))this.raiseRecoverable(Z.start,(J?"Binding ":"Assigning to ")+Z.name+" in strict mode");if(J){if(q===Z8&&Z.name==="let")this.raiseRecoverable(Z.start,"let is disallowed as a lexically bound name");if(Q){if(P6(Q,Z.name))this.raiseRecoverable(Z.start,"Argument name clash");Q[Z.name]=!0}if(q!==fV)this.declareName(Z.name,q,Z.start)}break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(J)this.raiseRecoverable(Z.start,"Binding member expression");break;case"ParenthesizedExpression":if(J)this.raiseRecoverable(Z.start,"Binding parenthesized expression");return this.checkLValSimple(Z.expression,q,Q);default:this.raise(Z.start,(J?"Binding":"Assigning to")+" rvalue")}};T5.checkLValPattern=function(Z,q,Q){if(q===void 0)q=R7;switch(Z.type){case"ObjectPattern":for(var J=0,Y=Z.properties;J<Y.length;J+=1){var X=Y[J];this.checkLValInnerPattern(X,q,Q)}break;case"ArrayPattern":for(var z=0,V=Z.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkLValInnerPattern(W,q,Q)}break;default:this.checkLValSimple(Z,q,Q)}};T5.checkLValInnerPattern=function(Z,q,Q){if(q===void 0)q=R7;switch(Z.type){case"Property":this.checkLValInnerPattern(Z.value,q,Q);break;case"AssignmentPattern":this.checkLValPattern(Z.left,q,Q);break;case"RestElement":this.checkLValPattern(Z.argument,q,Q);break;default:this.checkLValPattern(Z,q,Q)}};var E5=function(q,Q,J,Y,X){this.token=q,this.isExpr=!!Q,this.preserveSpace=!!J,this.override=Y,this.generator=!!X},b1={b_stat:new E5("{",!1),b_expr:new E5("{",!0),b_tmpl:new E5("${",!1),p_stat:new E5("(",!1),p_expr:new E5("(",!0),q_tmpl:new E5("`",!0,!0,function(Z){return Z.tryReadTemplateToken()}),f_stat:new E5("function",!1),f_expr:new E5("function",!0),f_expr_gen:new E5("function",!0,!1,null,!0),f_gen:new E5("function",!1,!1,null,!0)},S6=p1.prototype;S6.initialContext=function(){return[b1.b_stat]};S6.curContext=function(){return this.context[this.context.length-1]};S6.braceIsBlock=function(Z){var q=this.curContext();if(q===b1.f_expr||q===b1.f_stat)return!0;if(Z===w.colon&&(q===b1.b_stat||q===b1.b_expr))return!q.isExpr;if(Z===w._return||Z===w.name&&this.exprAllowed)return K5.test(this.input.slice(this.lastTokEnd,this.start));if(Z===w._else||Z===w.semi||Z===w.eof||Z===w.parenR||Z===w.arrow)return!0;if(Z===w.braceL)return q===b1.b_stat;if(Z===w._var||Z===w._const||Z===w.name)return!1;return!this.exprAllowed};S6.inGeneratorContext=function(){for(var Z=this.context.length-1;Z>=1;Z--){var q=this.context[Z];if(q.token==="function")return q.generator}return!1};S6.updateContext=function(Z){var q,Q=this.type;if(Q.keyword&&Z===w.dot)this.exprAllowed=!1;else if(q=Q.updateContext)q.call(this,Z);else this.exprAllowed=Q.beforeExpr};S6.overrideContext=function(Z){if(this.curContext()!==Z)this.context[this.context.length-1]=Z};w.parenR.updateContext=w.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var Z=this.context.pop();if(Z===b1.b_stat&&this.curContext().token==="function")Z=this.context.pop();this.exprAllowed=!Z.isExpr};w.braceL.updateContext=function(Z){this.context.push(this.braceIsBlock(Z)?b1.b_stat:b1.b_expr),this.exprAllowed=!0};w.dollarBraceL.updateContext=function(){this.context.push(b1.b_tmpl),this.exprAllowed=!0};w.parenL.updateContext=function(Z){var q=Z===w._if||Z===w._for||Z===w._with||Z===w._while;this.context.push(q?b1.p_stat:b1.p_expr),this.exprAllowed=!0};w.incDec.updateContext=function(){};w._function.updateContext=w._class.updateContext=function(Z){if(Z.beforeExpr&&Z!==w._else&&!(Z===w.semi&&this.curContext()!==b1.p_stat)&&!(Z===w._return&&K5.test(this.input.slice(this.lastTokEnd,this.start)))&&!((Z===w.colon||Z===w.braceL)&&this.curContext()===b1.b_stat))this.context.push(b1.f_expr);else this.context.push(b1.f_stat);this.exprAllowed=!1};w.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};w.backQuote.updateContext=function(){if(this.curContext()===b1.q_tmpl)this.context.pop();else this.context.push(b1.q_tmpl);this.exprAllowed=!1};w.star.updateContext=function(Z){if(Z===w._function){var q=this.context.length-1;if(this.context[q]===b1.f_expr)this.context[q]=b1.f_expr_gen;else this.context[q]=b1.f_gen}this.exprAllowed=!0};w.name.updateContext=function(Z){var q=!1;if(this.options.ecmaVersion>=6&&Z!==w.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())q=!0}this.exprAllowed=q};var K1=p1.prototype;K1.checkPropClash=function(Z,q,Q){if(this.options.ecmaVersion>=9&&Z.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(Z.computed||Z.method||Z.shorthand))return;var J=Z.key,Y;switch(J.type){case"Identifier":Y=J.name;break;case"Literal":Y=String(J.value);break;default:return}var X=Z.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&X==="init"){if(q.proto)if(Q){if(Q.doubleProto<0)Q.doubleProto=J.start}else this.raiseRecoverable(J.start,"Redefinition of __proto__ property");q.proto=!0}return}Y="$"+Y;var z=q[Y];if(z){var V;if(X==="init")V=this.strict&&z.init||z.get||z.set;else V=z.init||z[X];if(V)this.raiseRecoverable(J.start,"Redefinition of property")}else z=q[Y]={init:!1,get:!1,set:!1};z[X]=!0};K1.parseExpression=function(Z,q){var Q=this.start,J=this.startLoc,Y=this.parseMaybeAssign(Z,q);if(this.type===w.comma){var X=this.startNodeAt(Q,J);X.expressions=[Y];while(this.eat(w.comma))X.expressions.push(this.parseMaybeAssign(Z,q));return this.finishNode(X,"SequenceExpression")}return Y};K1.parseMaybeAssign=function(Z,q,Q){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(Z);else this.exprAllowed=!1;var J=!1,Y=-1,X=-1,z=-1;if(q)Y=q.parenthesizedAssign,X=q.trailingComma,z=q.doubleProto,q.parenthesizedAssign=q.trailingComma=-1;else q=new P7,J=!0;var V=this.start,W=this.startLoc;if(this.type===w.parenL||this.type===w.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=Z==="await";var K=this.parseMaybeConditional(Z,q);if(Q)K=Q.call(this,K,V,W);if(this.type.isAssign){var $=this.startNodeAt(V,W);if($.operator=this.value,this.type===w.eq)K=this.toAssignable(K,!1,q);if(!J)q.parenthesizedAssign=q.trailingComma=q.doubleProto=-1;if(q.shorthandAssign>=K.start)q.shorthandAssign=-1;if(this.type===w.eq)this.checkLValPattern(K);else this.checkLValSimple(K);if($.left=K,this.next(),$.right=this.parseMaybeAssign(Z),z>-1)q.doubleProto=z;return this.finishNode($,"AssignmentExpression")}else if(J)this.checkExpressionErrors(q,!0);if(Y>-1)q.parenthesizedAssign=Y;if(X>-1)q.trailingComma=X;return K};K1.parseMaybeConditional=function(Z,q){var Q=this.start,J=this.startLoc,Y=this.parseExprOps(Z,q);if(this.checkExpressionErrors(q))return Y;if(this.eat(w.question)){var X=this.startNodeAt(Q,J);return X.test=Y,X.consequent=this.parseMaybeAssign(),this.expect(w.colon),X.alternate=this.parseMaybeAssign(Z),this.finishNode(X,"ConditionalExpression")}return Y};K1.parseExprOps=function(Z,q){var Q=this.start,J=this.startLoc,Y=this.parseMaybeUnary(q,!1,!1,Z);if(this.checkExpressionErrors(q))return Y;return Y.start===Q&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,Q,J,-1,Z)};K1.parseExprOp=function(Z,q,Q,J,Y){var X=this.type.binop;if(X!=null&&(!Y||this.type!==w._in)){if(X>J){var z=this.type===w.logicalOR||this.type===w.logicalAND,V=this.type===w.coalesce;if(V)X=w.logicalAND.binop;var W=this.value;this.next();var K=this.start,$=this.startLoc,H=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),K,$,X,Y),M=this.buildBinary(q,Q,Z,H,W,z||V);if(z&&this.type===w.coalesce||V&&(this.type===w.logicalOR||this.type===w.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,q,Q,J,Y)}}return Z};K1.buildBinary=function(Z,q,Q,J,Y,X){if(J.type==="PrivateIdentifier")this.raise(J.start,"Private identifier can only be left side of binary expression");var z=this.startNodeAt(Z,q);return z.left=Q,z.operator=Y,z.right=J,this.finishNode(z,X?"LogicalExpression":"BinaryExpression")};K1.parseMaybeUnary=function(Z,q,Q,J){var Y=this.start,X=this.startLoc,z;if(this.isContextual("await")&&this.canAwait)z=this.parseAwait(J),q=!0;else if(this.type.prefix){var V=this.startNode(),W=this.type===w.incDec;if(V.operator=this.value,V.prefix=!0,this.next(),V.argument=this.parseMaybeUnary(null,!0,W,J),this.checkExpressionErrors(Z,!0),W)this.checkLValSimple(V.argument);else if(this.strict&&V.operator==="delete"&&hV(V.argument))this.raiseRecoverable(V.start,"Deleting local variable in strict mode");else if(V.operator==="delete"&&d3(V.argument))this.raiseRecoverable(V.start,"Private fields can not be deleted");else q=!0;z=this.finishNode(V,W?"UpdateExpression":"UnaryExpression")}else if(!q&&this.type===w.privateId){if((J||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(z=this.parsePrivateIdent(),this.type!==w._in)this.unexpected()}else{if(z=this.parseExprSubscripts(Z,J),this.checkExpressionErrors(Z))return z;while(this.type.postfix&&!this.canInsertSemicolon()){var K=this.startNodeAt(Y,X);K.operator=this.value,K.prefix=!1,K.argument=z,this.checkLValSimple(z),this.next(),z=this.finishNode(K,"UpdateExpression")}}if(!Q&&this.eat(w.starstar))if(q)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,X,z,this.parseMaybeUnary(null,!1,!1,J),"**",!1);else return z};function hV(Z){return Z.type==="Identifier"||Z.type==="ParenthesizedExpression"&&hV(Z.expression)}function d3(Z){return Z.type==="MemberExpression"&&Z.property.type==="PrivateIdentifier"||Z.type==="ChainExpression"&&d3(Z.expression)||Z.type==="ParenthesizedExpression"&&d3(Z.expression)}K1.parseExprSubscripts=function(Z,q){var Q=this.start,J=this.startLoc,Y=this.parseExprAtom(Z,q);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var X=this.parseSubscripts(Y,Q,J,!1,q);if(Z&&X.type==="MemberExpression"){if(Z.parenthesizedAssign>=X.start)Z.parenthesizedAssign=-1;if(Z.parenthesizedBind>=X.start)Z.parenthesizedBind=-1;if(Z.trailingComma>=X.start)Z.trailingComma=-1}return X};K1.parseSubscripts=function(Z,q,Q,J,Y){var X=this.options.ecmaVersion>=8&&Z.type==="Identifier"&&Z.name==="async"&&this.lastTokEnd===Z.end&&!this.canInsertSemicolon()&&Z.end-Z.start===5&&this.potentialArrowAt===Z.start,z=!1;while(!0){var V=this.parseSubscript(Z,q,Q,J,X,z,Y);if(V.optional)z=!0;if(V===Z||V.type==="ArrowFunctionExpression"){if(z){var W=this.startNodeAt(q,Q);W.expression=V,V=this.finishNode(W,"ChainExpression")}return V}Z=V}};K1.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(w.arrow)};K1.parseSubscriptAsyncArrow=function(Z,q,Q,J){return this.parseArrowExpression(this.startNodeAt(Z,q),Q,!0,J)};K1.parseSubscript=function(Z,q,Q,J,Y,X,z){var V=this.options.ecmaVersion>=11,W=V&&this.eat(w.questionDot);if(J&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(w.bracketL);if(K||W&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var $=this.startNodeAt(q,Q);if($.object=Z,K)$.property=this.parseExpression(),this.expect(w.bracketR);else if(this.type===w.privateId&&Z.type!=="Super")$.property=this.parsePrivateIdent();else $.property=this.parseIdent(this.options.allowReserved!=="never");if($.computed=!!K,V)$.optional=W;Z=this.finishNode($,"MemberExpression")}else if(!J&&this.eat(w.parenL)){var H=new P7,M=this.yieldPos,O=this.awaitPos,L=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var B=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,H);if(Y&&!W&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=O,this.awaitIdentPos=L,this.parseSubscriptAsyncArrow(q,Q,B,z)}this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,this.awaitIdentPos=L||this.awaitIdentPos;var C=this.startNodeAt(q,Q);if(C.callee=Z,C.arguments=B,V)C.optional=W;Z=this.finishNode(C,"CallExpression")}else if(this.type===w.backQuote){if(W||X)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(q,Q);y.tag=Z,y.quasi=this.parseTemplate({isTagged:!0}),Z=this.finishNode(y,"TaggedTemplateExpression")}return Z};K1.parseExprAtom=function(Z,q,Q){if(this.type===w.slash)this.readRegexp();var J,Y=this.potentialArrowAt===this.start;switch(this.type){case w._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(J=this.startNode(),this.next(),this.type===w.parenL&&!this.allowDirectSuper)this.raise(J.start,"super() call outside constructor of a subclass");if(this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL)this.unexpected();return this.finishNode(J,"Super");case w._this:return J=this.startNode(),this.next(),this.finishNode(J,"ThisExpression");case w.name:var X=this.start,z=this.startLoc,V=this.containsEsc,W=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!V&&W.name==="async"&&!this.canInsertSemicolon()&&this.eat(w._function))return this.overrideContext(b1.f_expr),this.parseFunction(this.startNodeAt(X,z),0,!1,!0,q);if(Y&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(X,z),[W],!1,q);if(this.options.ecmaVersion>=8&&W.name==="async"&&this.type===w.name&&!V&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(W=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(w.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(X,z),[W],!0,q)}}return W;case w.regexp:var K=this.value;return J=this.parseLiteral(K.value),J.regex={pattern:K.pattern,flags:K.flags},J;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return J=this.startNode(),J.value=this.type===w._null?null:this.type===w._true,J.raw=this.type.keyword,this.next(),this.finishNode(J,"Literal");case w.parenL:var $=this.start,H=this.parseParenAndDistinguishExpression(Y,q);if(Z){if(Z.parenthesizedAssign<0&&!this.isSimpleAssignTarget(H))Z.parenthesizedAssign=$;if(Z.parenthesizedBind<0)Z.parenthesizedBind=$}return H;case w.bracketL:return J=this.startNode(),this.next(),J.elements=this.parseExprList(w.bracketR,!0,!0,Z),this.finishNode(J,"ArrayExpression");case w.braceL:return this.overrideContext(b1.b_expr),this.parseObj(!1,Z);case w._function:return J=this.startNode(),this.next(),this.parseFunction(J,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(Q);else return this.unexpected();default:return this.parseExprAtomDefault()}};K1.parseExprAtomDefault=function(){this.unexpected()};K1.parseExprImport=function(Z){var q=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===w.parenL&&!Z)return this.parseDynamicImport(q);else if(this.type===w.dot){var Q=this.startNodeAt(q.start,q.loc&&q.loc.start);return Q.name="import",q.meta=this.finishNode(Q,"Identifier"),this.parseImportMeta(q)}else this.unexpected()};K1.parseDynamicImport=function(Z){if(this.next(),Z.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(w.parenR))if(this.expect(w.comma),!this.afterTrailingComma(w.parenR)){if(Z.options=this.parseMaybeAssign(),!this.eat(w.parenR)){if(this.expect(w.comma),!this.afterTrailingComma(w.parenR))this.unexpected()}}else Z.options=null;else Z.options=null;else if(!this.eat(w.parenR)){var q=this.start;if(this.eat(w.comma)&&this.eat(w.parenR))this.raiseRecoverable(q,"Trailing comma is not allowed in import()");else this.unexpected(q)}return this.finishNode(Z,"ImportExpression")};K1.parseImportMeta=function(Z){this.next();var q=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="meta")this.raiseRecoverable(Z.property.start,"The only valid meta property for import is 'import.meta'");if(q)this.raiseRecoverable(Z.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(Z.start,"Cannot use 'import.meta' outside a module");return this.finishNode(Z,"MetaProperty")};K1.parseLiteral=function(Z){var q=this.startNode();if(q.value=Z,q.raw=this.input.slice(this.start,this.end),q.raw.charCodeAt(q.raw.length-1)===110)q.bigint=q.value!=null?q.value.toString():q.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(q,"Literal")};K1.parseParenExpression=function(){this.expect(w.parenL);var Z=this.parseExpression();return this.expect(w.parenR),Z};K1.shouldParseArrow=function(Z){return!this.canInsertSemicolon()};K1.parseParenAndDistinguishExpression=function(Z,q){var Q=this.start,J=this.startLoc,Y,X=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var z=this.start,V=this.startLoc,W=[],K=!0,$=!1,H=new P7,M=this.yieldPos,O=this.awaitPos,L;this.yieldPos=0,this.awaitPos=0;while(this.type!==w.parenR)if(K?K=!1:this.expect(w.comma),X&&this.afterTrailingComma(w.parenR,!0)){$=!0;break}else if(this.type===w.ellipsis){if(L=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,H,this.parseParenItem));var B=this.lastTokEnd,C=this.lastTokEndLoc;if(this.expect(w.parenR),Z&&this.shouldParseArrow(W)&&this.eat(w.arrow))return this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=O,this.parseParenArrowList(Q,J,W,q);if(!W.length||$)this.unexpected(this.lastTokStart);if(L)this.unexpected(L);if(this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,W.length>1)Y=this.startNodeAt(z,V),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",B,C);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(Q,J);return y.expression=Y,this.finishNode(y,"ParenthesizedExpression")}else return Y};K1.parseParenItem=function(Z){return Z};K1.parseParenArrowList=function(Z,q,Q,J){return this.parseArrowExpression(this.startNodeAt(Z,q),Q,!1,J)};var qN=[];K1.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var Z=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===w.dot){var q=this.startNodeAt(Z.start,Z.loc&&Z.loc.start);q.name="new",Z.meta=this.finishNode(q,"Identifier"),this.next();var Q=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="target")this.raiseRecoverable(Z.property.start,"The only valid meta property for new is 'new.target'");if(Q)this.raiseRecoverable(Z.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(Z.start,"'new.target' can only be used in functions and class static block");return this.finishNode(Z,"MetaProperty")}var J=this.start,Y=this.startLoc;if(Z.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),J,Y,!0,!1),this.eat(w.parenL))Z.arguments=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1);else Z.arguments=qN;return this.finishNode(Z,"NewExpression")};K1.parseTemplateElement=function(Z){var q=Z.isTagged,Q=this.startNode();if(this.type===w.invalidTemplate){if(!q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");Q.value={raw:this.value.replace(/\r\n?/g,`
|
|
74
|
+
`),cooked:null}}else Q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
75
|
+
`),cooked:this.value};return this.next(),Q.tail=this.type===w.backQuote,this.finishNode(Q,"TemplateElement")};K1.parseTemplate=function(Z){if(Z===void 0)Z={};var q=Z.isTagged;if(q===void 0)q=!1;var Q=this.startNode();this.next(),Q.expressions=[];var J=this.parseTemplateElement({isTagged:q});Q.quasis=[J];while(!J.tail){if(this.type===w.eof)this.raise(this.pos,"Unterminated template literal");this.expect(w.dollarBraceL),Q.expressions.push(this.parseExpression()),this.expect(w.braceR),Q.quasis.push(J=this.parseTemplateElement({isTagged:q}))}return this.next(),this.finishNode(Q,"TemplateLiteral")};K1.isAsyncProp=function(Z){return!Z.computed&&Z.key.type==="Identifier"&&Z.key.name==="async"&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!K5.test(this.input.slice(this.lastTokEnd,this.start))};K1.parseObj=function(Z,q){var Q=this.startNode(),J=!0,Y={};Q.properties=[],this.next();while(!this.eat(w.braceR)){if(!J){if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break}else J=!1;var X=this.parseProperty(Z,q);if(!Z)this.checkPropClash(X,Y,q);Q.properties.push(X)}return this.finishNode(Q,Z?"ObjectPattern":"ObjectExpression")};K1.parseProperty=function(Z,q){var Q=this.startNode(),J,Y,X,z;if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis)){if(Z){if(Q.argument=this.parseIdent(!1),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(Q,"RestElement")}if(Q.argument=this.parseMaybeAssign(!1,q),this.type===w.comma&&q&&q.trailingComma<0)q.trailingComma=this.start;return this.finishNode(Q,"SpreadElement")}if(this.options.ecmaVersion>=6){if(Q.method=!1,Q.shorthand=!1,Z||q)X=this.start,z=this.startLoc;if(!Z)J=this.eat(w.star)}var V=this.containsEsc;if(this.parsePropertyName(Q),!Z&&!V&&this.options.ecmaVersion>=8&&!J&&this.isAsyncProp(Q))Y=!0,J=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(Q);else Y=!1;return this.parsePropertyValue(Q,Z,J,Y,X,z,q,V),this.finishNode(Q,"Property")};K1.parseGetterSetter=function(Z){var q=Z.key.name;this.parsePropertyName(Z),Z.value=this.parseMethod(!1),Z.kind=q;var Q=Z.kind==="get"?0:1;if(Z.value.params.length!==Q){var J=Z.value.start;if(Z.kind==="get")this.raiseRecoverable(J,"getter should have no params");else this.raiseRecoverable(J,"setter should have exactly one param")}else if(Z.kind==="set"&&Z.value.params[0].type==="RestElement")this.raiseRecoverable(Z.value.params[0].start,"Setter cannot use rest params")};K1.parsePropertyValue=function(Z,q,Q,J,Y,X,z,V){if((Q||J)&&this.type===w.colon)this.unexpected();if(this.eat(w.colon))Z.value=q?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,z),Z.kind="init";else if(this.options.ecmaVersion>=6&&this.type===w.parenL){if(q)this.unexpected();Z.method=!0,Z.value=this.parseMethod(Q,J),Z.kind="init"}else if(!q&&!V&&this.options.ecmaVersion>=5&&!Z.computed&&Z.key.type==="Identifier"&&(Z.key.name==="get"||Z.key.name==="set")&&(this.type!==w.comma&&this.type!==w.braceR&&this.type!==w.eq)){if(Q||J)this.unexpected();this.parseGetterSetter(Z)}else if(this.options.ecmaVersion>=6&&!Z.computed&&Z.key.type==="Identifier"){if(Q||J)this.unexpected();if(this.checkUnreserved(Z.key),Z.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(q)Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key));else if(this.type===w.eq&&z){if(z.shorthandAssign<0)z.shorthandAssign=this.start;Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key))}else Z.value=this.copyNode(Z.key);Z.kind="init",Z.shorthand=!0}else this.unexpected()};K1.parsePropertyName=function(Z){if(this.options.ecmaVersion>=6)if(this.eat(w.bracketL))return Z.computed=!0,Z.key=this.parseMaybeAssign(),this.expect(w.bracketR),Z.key;else Z.computed=!1;return Z.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};K1.initFunction=function(Z){if(Z.id=null,this.options.ecmaVersion>=6)Z.generator=Z.expression=!1;if(this.options.ecmaVersion>=8)Z.async=!1};K1.parseMethod=function(Z,q,Q){var J=this.startNode(),Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.initFunction(J),this.options.ecmaVersion>=6)J.generator=Z;if(this.options.ecmaVersion>=8)J.async=!!q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(n3(q,J.generator)|T7|(Q?EV:0)),this.expect(w.parenL),J.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(J,!1,!0,!1),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(J,"FunctionExpression")};K1.parseArrowExpression=function(Z,q,Q,J){var Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.enterScope(n3(Q,!1)|i3),this.initFunction(Z),this.options.ecmaVersion>=8)Z.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,Z.params=this.toAssignableList(q,!0),this.parseFunctionBody(Z,!0,!1,J),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(Z,"ArrowFunctionExpression")};K1.parseFunctionBody=function(Z,q,Q,J){var Y=q&&this.type!==w.braceL,X=this.strict,z=!1;if(Y)Z.body=this.parseMaybeAssign(J),Z.expression=!0,this.checkParams(Z,!1);else{var V=this.options.ecmaVersion>=7&&!this.isSimpleParamList(Z.params);if(!X||V){if(z=this.strictDirective(this.end),z&&V)this.raiseRecoverable(Z.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],z)this.strict=!0;if(this.checkParams(Z,!X&&!z&&!q&&!Q&&this.isSimpleParamList(Z.params)),this.strict&&Z.id)this.checkLValSimple(Z.id,fV);Z.body=this.parseBlock(!1,void 0,z&&!X),Z.expression=!1,this.adaptDirectivePrologue(Z.body.body),this.labels=W}this.exitScope()};K1.isSimpleParamList=function(Z){for(var q=0,Q=Z;q<Q.length;q+=1){var J=Q[q];if(J.type!=="Identifier")return!1}return!0};K1.checkParams=function(Z,q){var Q=Object.create(null);for(var J=0,Y=Z.params;J<Y.length;J+=1){var X=Y[J];this.checkLValInnerPattern(X,s3,q?null:Q)}};K1.parseExprList=function(Z,q,Q,J){var Y=[],X=!0;while(!this.eat(Z)){if(!X){if(this.expect(w.comma),q&&this.afterTrailingComma(Z))break}else X=!1;var z=void 0;if(Q&&this.type===w.comma)z=null;else if(this.type===w.ellipsis){if(z=this.parseSpread(J),J&&this.type===w.comma&&J.trailingComma<0)J.trailingComma=this.start}else z=this.parseMaybeAssign(!1,J);Y.push(z)}return Y};K1.checkUnreserved=function(Z){var{start:q,end:Q,name:J}=Z;if(this.inGenerator&&J==="yield")this.raiseRecoverable(q,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&J==="await")this.raiseRecoverable(q,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&A7)&&J==="arguments")this.raiseRecoverable(q,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(J==="arguments"||J==="await"))this.raise(q,"Cannot use "+J+" in class static initialization block");if(this.keywords.test(J))this.raise(q,"Unexpected keyword '"+J+"'");if(this.options.ecmaVersion<6&&this.input.slice(q,Q).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(J)){if(!this.inAsync&&J==="await")this.raiseRecoverable(q,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(q,"The keyword '"+J+"' is reserved")}};K1.parseIdent=function(Z){var q=this.parseIdentNode();if(this.next(!!Z),this.finishNode(q,"Identifier"),!Z){if(this.checkUnreserved(q),q.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=q.start}return q};K1.parseIdentNode=function(){var Z=this.startNode();if(this.type===w.name)Z.name=this.value;else if(this.type.keyword){if(Z.name=this.type.keyword,(Z.name==="class"||Z.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=w.name}else this.unexpected();return Z};K1.parsePrivateIdent=function(){var Z=this.startNode();if(this.type===w.privateId)Z.name=this.value;else this.unexpected();if(this.next(),this.finishNode(Z,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(Z.start,"Private field '#"+Z.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(Z);return Z};K1.parseYield=function(Z){if(!this.yieldPos)this.yieldPos=this.start;var q=this.startNode();if(this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr)q.delegate=!1,q.argument=null;else q.delegate=this.eat(w.star),q.argument=this.parseMaybeAssign(Z);return this.finishNode(q,"YieldExpression")};K1.parseAwait=function(Z){if(!this.awaitPos)this.awaitPos=this.start;var q=this.startNode();return this.next(),q.argument=this.parseMaybeUnary(null,!0,!1,Z),this.finishNode(q,"AwaitExpression")};var I7=p1.prototype;I7.raise=function(Z,q){var Q=PV(this.input,Z);if(q+=" ("+Q.line+":"+Q.column+")",this.sourceFile)q+=" in "+this.sourceFile;var J=SyntaxError(q);throw J.pos=Z,J.loc=Q,J.raisedAt=this.pos,J};I7.raiseRecoverable=I7.raise;I7.curPosition=function(){if(this.options.locations)return new h0(this.curLine,this.pos-this.lineStart)};var M8=p1.prototype,QN=function(q){this.flags=q,this.var=[],this.lexical=[],this.functions=[]};M8.enterScope=function(Z){this.scopeStack.push(new QN(Z))};M8.exitScope=function(){this.scopeStack.pop()};M8.treatFunctionsAsVarInScope=function(Z){return Z.flags&v8||!this.inModule&&Z.flags&f8};M8.declareName=function(Z,q,Q){var J=!1;if(q===Z8){var Y=this.currentScope();if(J=Y.lexical.indexOf(Z)>-1||Y.functions.indexOf(Z)>-1||Y.var.indexOf(Z)>-1,Y.lexical.push(Z),this.inModule&&Y.flags&f8)delete this.undefinedExports[Z]}else if(q===kV){var X=this.currentScope();X.lexical.push(Z)}else if(q===xV){var z=this.currentScope();if(this.treatFunctionsAsVar)J=z.lexical.indexOf(Z)>-1;else J=z.lexical.indexOf(Z)>-1||z.var.indexOf(Z)>-1;z.functions.push(Z)}else for(var V=this.scopeStack.length-1;V>=0;--V){var W=this.scopeStack[V];if(W.lexical.indexOf(Z)>-1&&!(W.flags&yV&&W.lexical[0]===Z)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(Z)>-1){J=!0;break}if(W.var.push(Z),this.inModule&&W.flags&f8)delete this.undefinedExports[Z];if(W.flags&A7)break}if(J)this.raiseRecoverable(Q,"Identifier '"+Z+"' has already been declared")};M8.checkLocalExport=function(Z){if(this.scopeStack[0].lexical.indexOf(Z.name)===-1&&this.scopeStack[0].var.indexOf(Z.name)===-1)this.undefinedExports[Z.name]=Z};M8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};M8.currentVarScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var q=this.scopeStack[Z];if(q.flags&(A7|g0|h8))return q}};M8.currentThisScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var q=this.scopeStack[Z];if(q.flags&(A7|g0|h8)&&!(q.flags&i3))return q}};var S7=function(q,Q,J){if(this.type="",this.start=Q,this.end=0,q.options.locations)this.loc=new D7(q,J);if(q.options.directSourceFile)this.sourceFile=q.options.directSourceFile;if(q.options.ranges)this.range=[Q,0]},m0=p1.prototype;m0.startNode=function(){return new S7(this,this.start,this.startLoc)};m0.startNodeAt=function(Z,q){return new S7(this,Z,q)};function gV(Z,q,Q,J){if(Z.type=q,Z.end=Q,this.options.locations)Z.loc.end=J;if(this.options.ranges)Z.range[1]=Q;return Z}m0.finishNode=function(Z,q){return gV.call(this,Z,q,this.lastTokEnd,this.lastTokEndLoc)};m0.finishNodeAt=function(Z,q,Q,J){return gV.call(this,Z,q,Q,J)};m0.copyNode=function(Z){var q=new S7(this,Z.start,this.startLoc);for(var Q in Z)q[Q]=Z[Q];return q};var JN="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",mV="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",uV=mV+" Extended_Pictographic",dV=uV,lV=dV+" EBase EComp EMod EPres ExtPict",cV=lV,YN=cV,XN={9:mV,10:uV,11:dV,12:lV,13:cV,14:YN},zN="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",VN={9:"",10:"",11:"",12:"",13:"",14:zN},RV="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",pV="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",iV=pV+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",nV=iV+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",sV=nV+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",aV=sV+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",WN=aV+" "+JN,KN={9:pV,10:iV,11:nV,12:sV,13:aV,14:WN},rV={};function $N(Z){var q=rV[Z]={binary:j8(XN[Z]+" "+RV),binaryOfStrings:j8(VN[Z]),nonBinary:{General_Category:j8(RV),Script:j8(KN[Z])}};q.nonBinary.Script_Extensions=q.nonBinary.Script,q.nonBinary.gc=q.nonBinary.General_Category,q.nonBinary.sc=q.nonBinary.Script,q.nonBinary.scx=q.nonBinary.Script_Extensions}for(f0=0,N7=[9,10,11,12,13,14];f0<N7.length;f0+=1)l3=N7[f0],$N(l3);var l3,f0,N7,q1=p1.prototype,_7=function(q,Q){this.parent=q,this.base=Q||this};_7.prototype.separatedFrom=function(q){for(var Q=this;Q;Q=Q.parent)for(var J=q;J;J=J.parent)if(Q.base===J.base&&Q!==J)return!0;return!1};_7.prototype.sibling=function(){return new _7(this.parent,this.base)};var d5=function(q){this.parser=q,this.validFlags="gim"+(q.options.ecmaVersion>=6?"uy":"")+(q.options.ecmaVersion>=9?"s":"")+(q.options.ecmaVersion>=13?"d":"")+(q.options.ecmaVersion>=15?"v":""),this.unicodeProperties=rV[q.options.ecmaVersion>=14?14:q.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};d5.prototype.reset=function(q,Q,J){var Y=J.indexOf("v")!==-1,X=J.indexOf("u")!==-1;if(this.start=q|0,this.source=Q+"",this.flags=J,Y&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=X&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=X&&this.parser.options.ecmaVersion>=9};d5.prototype.raise=function(q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+q)};d5.prototype.at=function(q,Q){if(Q===void 0)Q=!1;var J=this.source,Y=J.length;if(q>=Y)return-1;var X=J.charCodeAt(q);if(!(Q||this.switchU)||X<=55295||X>=57344||q+1>=Y)return X;var z=J.charCodeAt(q+1);return z>=56320&&z<=57343?(X<<10)+z-56613888:X};d5.prototype.nextIndex=function(q,Q){if(Q===void 0)Q=!1;var J=this.source,Y=J.length;if(q>=Y)return Y;var X=J.charCodeAt(q),z;if(!(Q||this.switchU)||X<=55295||X>=57344||q+1>=Y||(z=J.charCodeAt(q+1))<56320||z>57343)return q+1;return q+2};d5.prototype.current=function(q){if(q===void 0)q=!1;return this.at(this.pos,q)};d5.prototype.lookahead=function(q){if(q===void 0)q=!1;return this.at(this.nextIndex(this.pos,q),q)};d5.prototype.advance=function(q){if(q===void 0)q=!1;this.pos=this.nextIndex(this.pos,q)};d5.prototype.eat=function(q,Q){if(Q===void 0)Q=!1;if(this.current(Q)===q)return this.advance(Q),!0;return!1};d5.prototype.eatChars=function(q,Q){if(Q===void 0)Q=!1;var J=this.pos;for(var Y=0,X=q;Y<X.length;Y+=1){var z=X[Y],V=this.at(J,Q);if(V===-1||V!==z)return!1;J=this.nextIndex(J,Q)}return this.pos=J,!0};q1.validateRegExpFlags=function(Z){var{validFlags:q,flags:Q}=Z,J=!1,Y=!1;for(var X=0;X<Q.length;X++){var z=Q.charAt(X);if(q.indexOf(z)===-1)this.raise(Z.start,"Invalid regular expression flag");if(Q.indexOf(z,X+1)>-1)this.raise(Z.start,"Duplicate regular expression flag");if(z==="u")J=!0;if(z==="v")Y=!0}if(this.options.ecmaVersion>=15&&J&&Y)this.raise(Z.start,"Invalid regular expression flag")};function GN(Z){for(var q in Z)return!0;return!1}q1.validateRegExpPattern=function(Z){if(this.regexp_pattern(Z),!Z.switchN&&this.options.ecmaVersion>=9&&GN(Z.groupNames))Z.switchN=!0,this.regexp_pattern(Z)};q1.regexp_pattern=function(Z){if(Z.pos=0,Z.lastIntValue=0,Z.lastStringValue="",Z.lastAssertionIsQuantifiable=!1,Z.numCapturingParens=0,Z.maxBackReference=0,Z.groupNames=Object.create(null),Z.backReferenceNames.length=0,Z.branchID=null,this.regexp_disjunction(Z),Z.pos!==Z.source.length){if(Z.eat(41))Z.raise("Unmatched ')'");if(Z.eat(93)||Z.eat(125))Z.raise("Lone quantifier brackets")}if(Z.maxBackReference>Z.numCapturingParens)Z.raise("Invalid escape");for(var q=0,Q=Z.backReferenceNames;q<Q.length;q+=1){var J=Q[q];if(!Z.groupNames[J])Z.raise("Invalid named capture referenced")}};q1.regexp_disjunction=function(Z){var q=this.options.ecmaVersion>=16;if(q)Z.branchID=new _7(Z.branchID,null);this.regexp_alternative(Z);while(Z.eat(124)){if(q)Z.branchID=Z.branchID.sibling();this.regexp_alternative(Z)}if(q)Z.branchID=Z.branchID.parent;if(this.regexp_eatQuantifier(Z,!0))Z.raise("Nothing to repeat");if(Z.eat(123))Z.raise("Lone quantifier brackets")};q1.regexp_alternative=function(Z){while(Z.pos<Z.source.length&&this.regexp_eatTerm(Z));};q1.regexp_eatTerm=function(Z){if(this.regexp_eatAssertion(Z)){if(Z.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(Z)){if(Z.switchU)Z.raise("Invalid quantifier")}return!0}if(Z.switchU?this.regexp_eatAtom(Z):this.regexp_eatExtendedAtom(Z))return this.regexp_eatQuantifier(Z),!0;return!1};q1.regexp_eatAssertion=function(Z){var q=Z.pos;if(Z.lastAssertionIsQuantifiable=!1,Z.eat(94)||Z.eat(36))return!0;if(Z.eat(92)){if(Z.eat(66)||Z.eat(98))return!0;Z.pos=q}if(Z.eat(40)&&Z.eat(63)){var Q=!1;if(this.options.ecmaVersion>=9)Q=Z.eat(60);if(Z.eat(61)||Z.eat(33)){if(this.regexp_disjunction(Z),!Z.eat(41))Z.raise("Unterminated group");return Z.lastAssertionIsQuantifiable=!Q,!0}}return Z.pos=q,!1};q1.regexp_eatQuantifier=function(Z,q){if(q===void 0)q=!1;if(this.regexp_eatQuantifierPrefix(Z,q))return Z.eat(63),!0;return!1};q1.regexp_eatQuantifierPrefix=function(Z,q){return Z.eat(42)||Z.eat(43)||Z.eat(63)||this.regexp_eatBracedQuantifier(Z,q)};q1.regexp_eatBracedQuantifier=function(Z,q){var Q=Z.pos;if(Z.eat(123)){var J=0,Y=-1;if(this.regexp_eatDecimalDigits(Z)){if(J=Z.lastIntValue,Z.eat(44)&&this.regexp_eatDecimalDigits(Z))Y=Z.lastIntValue;if(Z.eat(125)){if(Y!==-1&&Y<J&&!q)Z.raise("numbers out of order in {} quantifier");return!0}}if(Z.switchU&&!q)Z.raise("Incomplete quantifier");Z.pos=Q}return!1};q1.regexp_eatAtom=function(Z){return this.regexp_eatPatternCharacters(Z)||Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)};q1.regexp_eatReverseSolidusAtomEscape=function(Z){var q=Z.pos;if(Z.eat(92)){if(this.regexp_eatAtomEscape(Z))return!0;Z.pos=q}return!1};q1.regexp_eatUncapturingGroup=function(Z){var q=Z.pos;if(Z.eat(40)){if(Z.eat(63)){if(this.options.ecmaVersion>=16){var Q=this.regexp_eatModifiers(Z),J=Z.eat(45);if(Q||J){for(var Y=0;Y<Q.length;Y++){var X=Q.charAt(Y);if(Q.indexOf(X,Y+1)>-1)Z.raise("Duplicate regular expression modifiers")}if(J){var z=this.regexp_eatModifiers(Z);if(!Q&&!z&&Z.current()===58)Z.raise("Invalid regular expression modifiers");for(var V=0;V<z.length;V++){var W=z.charAt(V);if(z.indexOf(W,V+1)>-1||Q.indexOf(W)>-1)Z.raise("Duplicate regular expression modifiers")}}}}if(Z.eat(58)){if(this.regexp_disjunction(Z),Z.eat(41))return!0;Z.raise("Unterminated group")}}Z.pos=q}return!1};q1.regexp_eatCapturingGroup=function(Z){if(Z.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(Z);else if(Z.current()===63)Z.raise("Invalid group");if(this.regexp_disjunction(Z),Z.eat(41))return Z.numCapturingParens+=1,!0;Z.raise("Unterminated group")}return!1};q1.regexp_eatModifiers=function(Z){var q="",Q=0;while((Q=Z.current())!==-1&&UN(Q))q+=t5(Q),Z.advance();return q};function UN(Z){return Z===105||Z===109||Z===115}q1.regexp_eatExtendedAtom=function(Z){return Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)||this.regexp_eatInvalidBracedQuantifier(Z)||this.regexp_eatExtendedPatternCharacter(Z)};q1.regexp_eatInvalidBracedQuantifier=function(Z){if(this.regexp_eatBracedQuantifier(Z,!0))Z.raise("Nothing to repeat");return!1};q1.regexp_eatSyntaxCharacter=function(Z){var q=Z.current();if(oV(q))return Z.lastIntValue=q,Z.advance(),!0;return!1};function oV(Z){return Z===36||Z>=40&&Z<=43||Z===46||Z===63||Z>=91&&Z<=94||Z>=123&&Z<=125}q1.regexp_eatPatternCharacters=function(Z){var q=Z.pos,Q=0;while((Q=Z.current())!==-1&&!oV(Q))Z.advance();return Z.pos!==q};q1.regexp_eatExtendedPatternCharacter=function(Z){var q=Z.current();if(q!==-1&&q!==36&&!(q>=40&&q<=43)&&q!==46&&q!==63&&q!==91&&q!==94&&q!==124)return Z.advance(),!0;return!1};q1.regexp_groupSpecifier=function(Z){if(Z.eat(63)){if(!this.regexp_eatGroupName(Z))Z.raise("Invalid group");var q=this.options.ecmaVersion>=16,Q=Z.groupNames[Z.lastStringValue];if(Q)if(q)for(var J=0,Y=Q;J<Y.length;J+=1){var X=Y[J];if(!X.separatedFrom(Z.branchID))Z.raise("Duplicate capture group name")}else Z.raise("Duplicate capture group name");if(q)(Q||(Z.groupNames[Z.lastStringValue]=[])).push(Z.branchID);else Z.groupNames[Z.lastStringValue]=!0}};q1.regexp_eatGroupName=function(Z){if(Z.lastStringValue="",Z.eat(60)){if(this.regexp_eatRegExpIdentifierName(Z)&&Z.eat(62))return!0;Z.raise("Invalid capture group name")}return!1};q1.regexp_eatRegExpIdentifierName=function(Z){if(Z.lastStringValue="",this.regexp_eatRegExpIdentifierStart(Z)){Z.lastStringValue+=t5(Z.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(Z))Z.lastStringValue+=t5(Z.lastIntValue);return!0}return!1};q1.regexp_eatRegExpIdentifierStart=function(Z){var q=Z.pos,Q=this.options.ecmaVersion>=11,J=Z.current(Q);if(Z.advance(Q),J===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,Q))J=Z.lastIntValue;if(jN(J))return Z.lastIntValue=J,!0;return Z.pos=q,!1};function jN(Z){return u5(Z,!0)||Z===36||Z===95}q1.regexp_eatRegExpIdentifierPart=function(Z){var q=Z.pos,Q=this.options.ecmaVersion>=11,J=Z.current(Q);if(Z.advance(Q),J===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,Q))J=Z.lastIntValue;if(BN(J))return Z.lastIntValue=J,!0;return Z.pos=q,!1};function BN(Z){return B8(Z,!0)||Z===36||Z===95||Z===8204||Z===8205}q1.regexp_eatAtomEscape=function(Z){if(this.regexp_eatBackReference(Z)||this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)||Z.switchN&&this.regexp_eatKGroupName(Z))return!0;if(Z.switchU){if(Z.current()===99)Z.raise("Invalid unicode escape");Z.raise("Invalid escape")}return!1};q1.regexp_eatBackReference=function(Z){var q=Z.pos;if(this.regexp_eatDecimalEscape(Z)){var Q=Z.lastIntValue;if(Z.switchU){if(Q>Z.maxBackReference)Z.maxBackReference=Q;return!0}if(Q<=Z.numCapturingParens)return!0;Z.pos=q}return!1};q1.regexp_eatKGroupName=function(Z){if(Z.eat(107)){if(this.regexp_eatGroupName(Z))return Z.backReferenceNames.push(Z.lastStringValue),!0;Z.raise("Invalid named reference")}return!1};q1.regexp_eatCharacterEscape=function(Z){return this.regexp_eatControlEscape(Z)||this.regexp_eatCControlLetter(Z)||this.regexp_eatZero(Z)||this.regexp_eatHexEscapeSequence(Z)||this.regexp_eatRegExpUnicodeEscapeSequence(Z,!1)||!Z.switchU&&this.regexp_eatLegacyOctalEscapeSequence(Z)||this.regexp_eatIdentityEscape(Z)};q1.regexp_eatCControlLetter=function(Z){var q=Z.pos;if(Z.eat(99)){if(this.regexp_eatControlLetter(Z))return!0;Z.pos=q}return!1};q1.regexp_eatZero=function(Z){if(Z.current()===48&&!y7(Z.lookahead()))return Z.lastIntValue=0,Z.advance(),!0;return!1};q1.regexp_eatControlEscape=function(Z){var q=Z.current();if(q===116)return Z.lastIntValue=9,Z.advance(),!0;if(q===110)return Z.lastIntValue=10,Z.advance(),!0;if(q===118)return Z.lastIntValue=11,Z.advance(),!0;if(q===102)return Z.lastIntValue=12,Z.advance(),!0;if(q===114)return Z.lastIntValue=13,Z.advance(),!0;return!1};q1.regexp_eatControlLetter=function(Z){var q=Z.current();if(tV(q))return Z.lastIntValue=q%32,Z.advance(),!0;return!1};function tV(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122}q1.regexp_eatRegExpUnicodeEscapeSequence=function(Z,q){if(q===void 0)q=!1;var Q=Z.pos,J=q||Z.switchU;if(Z.eat(117)){if(this.regexp_eatFixedHexDigits(Z,4)){var Y=Z.lastIntValue;if(J&&Y>=55296&&Y<=56319){var X=Z.pos;if(Z.eat(92)&&Z.eat(117)&&this.regexp_eatFixedHexDigits(Z,4)){var z=Z.lastIntValue;if(z>=56320&&z<=57343)return Z.lastIntValue=(Y-55296)*1024+(z-56320)+65536,!0}Z.pos=X,Z.lastIntValue=Y}return!0}if(J&&Z.eat(123)&&this.regexp_eatHexDigits(Z)&&Z.eat(125)&&MN(Z.lastIntValue))return!0;if(J)Z.raise("Invalid unicode escape");Z.pos=Q}return!1};function MN(Z){return Z>=0&&Z<=1114111}q1.regexp_eatIdentityEscape=function(Z){if(Z.switchU){if(this.regexp_eatSyntaxCharacter(Z))return!0;if(Z.eat(47))return Z.lastIntValue=47,!0;return!1}var q=Z.current();if(q!==99&&(!Z.switchN||q!==107))return Z.lastIntValue=q,Z.advance(),!0;return!1};q1.regexp_eatDecimalEscape=function(Z){Z.lastIntValue=0;var q=Z.current();if(q>=49&&q<=57){do Z.lastIntValue=10*Z.lastIntValue+(q-48),Z.advance();while((q=Z.current())>=48&&q<=57);return!0}return!1};var eV=0,e5=1,_5=2;q1.regexp_eatCharacterClassEscape=function(Z){var q=Z.current();if(HN(q))return Z.lastIntValue=-1,Z.advance(),e5;var Q=!1;if(Z.switchU&&this.options.ecmaVersion>=9&&((Q=q===80)||q===112)){Z.lastIntValue=-1,Z.advance();var J;if(Z.eat(123)&&(J=this.regexp_eatUnicodePropertyValueExpression(Z))&&Z.eat(125)){if(Q&&J===_5)Z.raise("Invalid property name");return J}Z.raise("Invalid property name")}return eV};function HN(Z){return Z===100||Z===68||Z===115||Z===83||Z===119||Z===87}q1.regexp_eatUnicodePropertyValueExpression=function(Z){var q=Z.pos;if(this.regexp_eatUnicodePropertyName(Z)&&Z.eat(61)){var Q=Z.lastStringValue;if(this.regexp_eatUnicodePropertyValue(Z)){var J=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(Z,Q,J),e5}}if(Z.pos=q,this.regexp_eatLoneUnicodePropertyNameOrValue(Z)){var Y=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(Z,Y)}return eV};q1.regexp_validateUnicodePropertyNameAndValue=function(Z,q,Q){if(!P6(Z.unicodeProperties.nonBinary,q))Z.raise("Invalid property name");if(!Z.unicodeProperties.nonBinary[q].test(Q))Z.raise("Invalid property value")};q1.regexp_validateUnicodePropertyNameOrValue=function(Z,q){if(Z.unicodeProperties.binary.test(q))return e5;if(Z.switchV&&Z.unicodeProperties.binaryOfStrings.test(q))return _5;Z.raise("Invalid property name")};q1.regexp_eatUnicodePropertyName=function(Z){var q=0;Z.lastStringValue="";while(ZW(q=Z.current()))Z.lastStringValue+=t5(q),Z.advance();return Z.lastStringValue!==""};function ZW(Z){return tV(Z)||Z===95}q1.regexp_eatUnicodePropertyValue=function(Z){var q=0;Z.lastStringValue="";while(FN(q=Z.current()))Z.lastStringValue+=t5(q),Z.advance();return Z.lastStringValue!==""};function FN(Z){return ZW(Z)||y7(Z)}q1.regexp_eatLoneUnicodePropertyNameOrValue=function(Z){return this.regexp_eatUnicodePropertyValue(Z)};q1.regexp_eatCharacterClass=function(Z){if(Z.eat(91)){var q=Z.eat(94),Q=this.regexp_classContents(Z);if(!Z.eat(93))Z.raise("Unterminated character class");if(q&&Q===_5)Z.raise("Negated character class may contain strings");return!0}return!1};q1.regexp_classContents=function(Z){if(Z.current()===93)return e5;if(Z.switchV)return this.regexp_classSetExpression(Z);return this.regexp_nonEmptyClassRanges(Z),e5};q1.regexp_nonEmptyClassRanges=function(Z){while(this.regexp_eatClassAtom(Z)){var q=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassAtom(Z)){var Q=Z.lastIntValue;if(Z.switchU&&(q===-1||Q===-1))Z.raise("Invalid character class");if(q!==-1&&Q!==-1&&q>Q)Z.raise("Range out of order in character class")}}};q1.regexp_eatClassAtom=function(Z){var q=Z.pos;if(Z.eat(92)){if(this.regexp_eatClassEscape(Z))return!0;if(Z.switchU){var Q=Z.current();if(Q===99||JW(Q))Z.raise("Invalid class escape");Z.raise("Invalid escape")}Z.pos=q}var J=Z.current();if(J!==93)return Z.lastIntValue=J,Z.advance(),!0;return!1};q1.regexp_eatClassEscape=function(Z){var q=Z.pos;if(Z.eat(98))return Z.lastIntValue=8,!0;if(Z.switchU&&Z.eat(45))return Z.lastIntValue=45,!0;if(!Z.switchU&&Z.eat(99)){if(this.regexp_eatClassControlLetter(Z))return!0;Z.pos=q}return this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)};q1.regexp_classSetExpression=function(Z){var q=e5,Q;if(this.regexp_eatClassSetRange(Z));else if(Q=this.regexp_eatClassSetOperand(Z)){if(Q===_5)q=_5;var J=Z.pos;while(Z.eatChars([38,38])){if(Z.current()!==38&&(Q=this.regexp_eatClassSetOperand(Z))){if(Q!==_5)q=e5;continue}Z.raise("Invalid character in character class")}if(J!==Z.pos)return q;while(Z.eatChars([45,45])){if(this.regexp_eatClassSetOperand(Z))continue;Z.raise("Invalid character in character class")}if(J!==Z.pos)return q}else Z.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(Z))continue;if(Q=this.regexp_eatClassSetOperand(Z),!Q)return q;if(Q===_5)q=_5}};q1.regexp_eatClassSetRange=function(Z){var q=Z.pos;if(this.regexp_eatClassSetCharacter(Z)){var Q=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassSetCharacter(Z)){var J=Z.lastIntValue;if(Q!==-1&&J!==-1&&Q>J)Z.raise("Range out of order in character class");return!0}Z.pos=q}return!1};q1.regexp_eatClassSetOperand=function(Z){if(this.regexp_eatClassSetCharacter(Z))return e5;return this.regexp_eatClassStringDisjunction(Z)||this.regexp_eatNestedClass(Z)};q1.regexp_eatNestedClass=function(Z){var q=Z.pos;if(Z.eat(91)){var Q=Z.eat(94),J=this.regexp_classContents(Z);if(Z.eat(93)){if(Q&&J===_5)Z.raise("Negated character class may contain strings");return J}Z.pos=q}if(Z.eat(92)){var Y=this.regexp_eatCharacterClassEscape(Z);if(Y)return Y;Z.pos=q}return null};q1.regexp_eatClassStringDisjunction=function(Z){var q=Z.pos;if(Z.eatChars([92,113])){if(Z.eat(123)){var Q=this.regexp_classStringDisjunctionContents(Z);if(Z.eat(125))return Q}else Z.raise("Invalid escape");Z.pos=q}return null};q1.regexp_classStringDisjunctionContents=function(Z){var q=this.regexp_classString(Z);while(Z.eat(124))if(this.regexp_classString(Z)===_5)q=_5;return q};q1.regexp_classString=function(Z){var q=0;while(this.regexp_eatClassSetCharacter(Z))q++;return q===1?e5:_5};q1.regexp_eatClassSetCharacter=function(Z){var q=Z.pos;if(Z.eat(92)){if(this.regexp_eatCharacterEscape(Z)||this.regexp_eatClassSetReservedPunctuator(Z))return!0;if(Z.eat(98))return Z.lastIntValue=8,!0;return Z.pos=q,!1}var Q=Z.current();if(Q<0||Q===Z.lookahead()&&LN(Q))return!1;if(wN(Q))return!1;return Z.advance(),Z.lastIntValue=Q,!0};function LN(Z){return Z===33||Z>=35&&Z<=38||Z>=42&&Z<=44||Z===46||Z>=58&&Z<=64||Z===94||Z===96||Z===126}function wN(Z){return Z===40||Z===41||Z===45||Z===47||Z>=91&&Z<=93||Z>=123&&Z<=125}q1.regexp_eatClassSetReservedPunctuator=function(Z){var q=Z.current();if(ON(q))return Z.lastIntValue=q,Z.advance(),!0;return!1};function ON(Z){return Z===33||Z===35||Z===37||Z===38||Z===44||Z===45||Z>=58&&Z<=62||Z===64||Z===96||Z===126}q1.regexp_eatClassControlLetter=function(Z){var q=Z.current();if(y7(q)||q===95)return Z.lastIntValue=q%32,Z.advance(),!0;return!1};q1.regexp_eatHexEscapeSequence=function(Z){var q=Z.pos;if(Z.eat(120)){if(this.regexp_eatFixedHexDigits(Z,2))return!0;if(Z.switchU)Z.raise("Invalid escape");Z.pos=q}return!1};q1.regexp_eatDecimalDigits=function(Z){var q=Z.pos,Q=0;Z.lastIntValue=0;while(y7(Q=Z.current()))Z.lastIntValue=10*Z.lastIntValue+(Q-48),Z.advance();return Z.pos!==q};function y7(Z){return Z>=48&&Z<=57}q1.regexp_eatHexDigits=function(Z){var q=Z.pos,Q=0;Z.lastIntValue=0;while(qW(Q=Z.current()))Z.lastIntValue=16*Z.lastIntValue+QW(Q),Z.advance();return Z.pos!==q};function qW(Z){return Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102}function QW(Z){if(Z>=65&&Z<=70)return 10+(Z-65);if(Z>=97&&Z<=102)return 10+(Z-97);return Z-48}q1.regexp_eatLegacyOctalEscapeSequence=function(Z){if(this.regexp_eatOctalDigit(Z)){var q=Z.lastIntValue;if(this.regexp_eatOctalDigit(Z)){var Q=Z.lastIntValue;if(q<=3&&this.regexp_eatOctalDigit(Z))Z.lastIntValue=q*64+Q*8+Z.lastIntValue;else Z.lastIntValue=q*8+Q}else Z.lastIntValue=q;return!0}return!1};q1.regexp_eatOctalDigit=function(Z){var q=Z.current();if(JW(q))return Z.lastIntValue=q-48,Z.advance(),!0;return Z.lastIntValue=0,!1};function JW(Z){return Z>=48&&Z<=55}q1.regexp_eatFixedHexDigits=function(Z,q){var Q=Z.pos;Z.lastIntValue=0;for(var J=0;J<q;++J){var Y=Z.current();if(!qW(Y))return Z.pos=Q,!1;Z.lastIntValue=16*Z.lastIntValue+QW(Y),Z.advance()}return!0};var r3=function(q){if(this.type=q.type,this.value=q.value,this.start=q.start,this.end=q.end,q.options.locations)this.loc=new D7(q,q.startLoc,q.endLoc);if(q.options.ranges)this.range=[q.start,q.end]},M1=p1.prototype;M1.next=function(Z){if(!Z&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new r3(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};M1.getToken=function(){return this.next(),new r3(this)};if(typeof Symbol<"u")M1[Symbol.iterator]=function(){var Z=this;return{next:function(){var q=Z.getToken();return{done:q.type===w.eof,value:q}}}};M1.nextToken=function(){var Z=this.curContext();if(!Z||!Z.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(w.eof);if(Z.override)return Z.override(this);else this.readToken(this.fullCharCodeAtPos())};M1.readToken=function(Z){if(u5(Z,this.options.ecmaVersion>=6)||Z===92)return this.readWord();return this.getTokenFromCode(Z)};M1.fullCharCodeAt=function(Z){var q=this.input.charCodeAt(Z);if(q<=55295||q>=56320)return q;var Q=this.input.charCodeAt(Z+1);return Q<=56319||Q>=57344?q:(q<<10)+Q-56613888};M1.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};M1.skipBlockComment=function(){var Z=this.options.onComment&&this.curPosition(),q=this.pos,Q=this.input.indexOf("*/",this.pos+=2);if(Q===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=Q+2,this.options.locations)for(var J=void 0,Y=q;(J=DV(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=J;if(this.options.onComment)this.options.onComment(!0,this.input.slice(q+2,Q),q,this.pos,Z,this.curPosition())};M1.skipLineComment=function(Z){var q=this.pos,Q=this.options.onComment&&this.curPosition(),J=this.input.charCodeAt(this.pos+=Z);while(this.pos<this.input.length&&!A6(J))J=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(q+Z,this.pos),q,this.pos,Q,this.curPosition())};M1.skipSpace=function(){Z:while(this.pos<this.input.length){var Z=this.input.charCodeAt(this.pos);switch(Z){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break Z}break;default:if(Z>8&&Z<14||Z>=5760&&TV.test(String.fromCharCode(Z)))++this.pos;else break Z}}};M1.finishToken=function(Z,q){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var Q=this.type;this.type=Z,this.value=q,this.updateContext(Q)};M1.readToken_dot=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z>=48&&Z<=57)return this.readNumber(!0);var q=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&Z===46&&q===46)return this.pos+=3,this.finishToken(w.ellipsis);else return++this.pos,this.finishToken(w.dot)};M1.readToken_slash=function(){var Z=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(Z===61)return this.finishOp(w.assign,2);return this.finishOp(w.slash,1)};M1.readToken_mult_modulo_exp=function(Z){var q=this.input.charCodeAt(this.pos+1),Q=1,J=Z===42?w.star:w.modulo;if(this.options.ecmaVersion>=7&&Z===42&&q===42)++Q,J=w.starstar,q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(w.assign,Q+1);return this.finishOp(J,Q)};M1.readToken_pipe_amp=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===Z){if(this.options.ecmaVersion>=12){var Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(w.assign,3)}return this.finishOp(Z===124?w.logicalOR:w.logicalAND,2)}if(q===61)return this.finishOp(w.assign,2);return this.finishOp(Z===124?w.bitwiseOR:w.bitwiseAND,1)};M1.readToken_caret=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(w.assign,2);return this.finishOp(w.bitwiseXOR,1)};M1.readToken_plus_min=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===Z){if(q===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||K5.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(w.incDec,2)}if(q===61)return this.finishOp(w.assign,2);return this.finishOp(w.plusMin,1)};M1.readToken_lt_gt=function(Z){var q=this.input.charCodeAt(this.pos+1),Q=1;if(q===Z){if(Q=Z===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+Q)===61)return this.finishOp(w.assign,Q+1);return this.finishOp(w.bitShift,Q)}if(q===33&&Z===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(q===61)Q=2;return this.finishOp(w.relational,Q)};M1.readToken_eq_excl=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(w.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(Z===61&&q===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(w.arrow);return this.finishOp(Z===61?w.eq:w.prefix,1)};M1.readToken_question=function(){var Z=this.options.ecmaVersion;if(Z>=11){var q=this.input.charCodeAt(this.pos+1);if(q===46){var Q=this.input.charCodeAt(this.pos+2);if(Q<48||Q>57)return this.finishOp(w.questionDot,2)}if(q===63){if(Z>=12){var J=this.input.charCodeAt(this.pos+2);if(J===61)return this.finishOp(w.assign,3)}return this.finishOp(w.coalesce,2)}}return this.finishOp(w.question,1)};M1.readToken_numberSign=function(){var Z=this.options.ecmaVersion,q=35;if(Z>=13){if(++this.pos,q=this.fullCharCodeAtPos(),u5(q,!0)||q===92)return this.finishToken(w.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+t5(q)+"'")};M1.getTokenFromCode=function(Z){switch(Z){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var q=this.input.charCodeAt(this.pos+1);if(q===120||q===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(q===111||q===79)return this.readRadixNumber(8);if(q===98||q===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(Z);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(Z);case 124:case 38:return this.readToken_pipe_amp(Z);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(Z);case 60:case 62:return this.readToken_lt_gt(Z);case 61:case 33:return this.readToken_eq_excl(Z);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+t5(Z)+"'")};M1.finishOp=function(Z,q){var Q=this.input.slice(this.pos,this.pos+q);return this.pos+=q,this.finishToken(Z,Q)};M1.readRegexp=function(){var Z,q,Q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(Q,"Unterminated regular expression");var J=this.input.charAt(this.pos);if(K5.test(J))this.raise(Q,"Unterminated regular expression");if(!Z){if(J==="[")q=!0;else if(J==="]"&&q)q=!1;else if(J==="/"&&!q)break;Z=J==="\\"}else Z=!1;++this.pos}var Y=this.input.slice(Q,this.pos);++this.pos;var X=this.pos,z=this.readWord1();if(this.containsEsc)this.unexpected(X);var V=this.regexpState||(this.regexpState=new d5(this));V.reset(Q,Y,z),this.validateRegExpFlags(V),this.validateRegExpPattern(V);var W=null;try{W=new RegExp(Y,z)}catch(K){}return this.finishToken(w.regexp,{pattern:Y,flags:z,value:W})};M1.readInt=function(Z,q,Q){var J=this.options.ecmaVersion>=12&&q===void 0,Y=Q&&this.input.charCodeAt(this.pos)===48,X=this.pos,z=0,V=0;for(var W=0,K=q==null?1/0:q;W<K;++W,++this.pos){var $=this.input.charCodeAt(this.pos),H=void 0;if(J&&$===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(V===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");V=$;continue}if($>=97)H=$-97+10;else if($>=65)H=$-65+10;else if($>=48&&$<=57)H=$-48;else H=1/0;if(H>=Z)break;V=$,z=z*Z+H}if(J&&V===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===X||q!=null&&this.pos-X!==q)return null;return z};function NN(Z,q){if(q)return parseInt(Z,8);return parseFloat(Z.replace(/_/g,""))}function YW(Z){if(typeof BigInt!=="function")return null;return BigInt(Z.replace(/_/g,""))}M1.readRadixNumber=function(Z){var q=this.pos;this.pos+=2;var Q=this.readInt(Z);if(Q==null)this.raise(this.start+2,"Expected number in radix "+Z);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)Q=YW(this.input.slice(q,this.pos)),++this.pos;else if(u5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(w.num,Q)};M1.readNumber=function(Z){var q=this.pos;if(!Z&&this.readInt(10,void 0,!0)===null)this.raise(q,"Invalid number");var Q=this.pos-q>=2&&this.input.charCodeAt(q)===48;if(Q&&this.strict)this.raise(q,"Invalid number");var J=this.input.charCodeAt(this.pos);if(!Q&&!Z&&this.options.ecmaVersion>=11&&J===110){var Y=YW(this.input.slice(q,this.pos));if(++this.pos,u5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(w.num,Y)}if(Q&&/[89]/.test(this.input.slice(q,this.pos)))Q=!1;if(J===46&&!Q)++this.pos,this.readInt(10),J=this.input.charCodeAt(this.pos);if((J===69||J===101)&&!Q){if(J=this.input.charCodeAt(++this.pos),J===43||J===45)++this.pos;if(this.readInt(10)===null)this.raise(q,"Invalid number")}if(u5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var X=NN(this.input.slice(q,this.pos),Q);return this.finishToken(w.num,X)};M1.readCodePoint=function(){var Z=this.input.charCodeAt(this.pos),q;if(Z===123){if(this.options.ecmaVersion<6)this.unexpected();var Q=++this.pos;if(q=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,q>1114111)this.invalidStringToken(Q,"Code point out of bounds")}else q=this.readHexChar(4);return q};M1.readString=function(Z){var q="",Q=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var J=this.input.charCodeAt(this.pos);if(J===Z)break;if(J===92)q+=this.input.slice(Q,this.pos),q+=this.readEscapedChar(!1),Q=this.pos;else if(J===8232||J===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(A6(J))this.raise(this.start,"Unterminated string constant");++this.pos}}return q+=this.input.slice(Q,this.pos++),this.finishToken(w.string,q)};var XW={};M1.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(Z){if(Z===XW)this.readInvalidTemplateToken();else throw Z}this.inTemplateElement=!1};M1.invalidStringToken=function(Z,q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw XW;else this.raise(Z,q)};M1.readTmplToken=function(){var Z="",q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var Q=this.input.charCodeAt(this.pos);if(Q===96||Q===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===w.template||this.type===w.invalidTemplate))if(Q===36)return this.pos+=2,this.finishToken(w.dollarBraceL);else return++this.pos,this.finishToken(w.backQuote);return Z+=this.input.slice(q,this.pos),this.finishToken(w.template,Z)}if(Q===92)Z+=this.input.slice(q,this.pos),Z+=this.readEscapedChar(!0),q=this.pos;else if(A6(Q)){switch(Z+=this.input.slice(q,this.pos),++this.pos,Q){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:Z+=`
|
|
76
|
+
`;break;default:Z+=String.fromCharCode(Q);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;q=this.pos}else++this.pos}};M1.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(w.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
|
|
77
77
|
`)++this.pos;case`
|
|
78
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};M1.readEscapedChar=function(Z){var
|
|
79
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return t5(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(Z){var
|
|
80
|
-
`),X.write(Y,JSON.stringify(
|
|
81
|
-
`)}async function
|
|
82
|
-
* `)}function g8(Z){if(!Z)return"";return`/** ${Z} */`}function
|
|
83
|
-
* ${Z.replace(
|
|
78
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};M1.readEscapedChar=function(Z){var q=this.input.charCodeAt(++this.pos);switch(++this.pos,q){case 110:return`
|
|
79
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return t5(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(Z){var Q=this.pos-1;this.invalidStringToken(Q,"Invalid escape sequence in template string")}default:if(q>=48&&q<=55){var J=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Y=parseInt(J,8);if(Y>255)J=J.slice(0,-1),Y=parseInt(J,8);if(this.pos+=J.length-1,q=this.input.charCodeAt(this.pos),(J!=="0"||q===56||q===57)&&(this.strict||Z))this.invalidStringToken(this.pos-1-J.length,Z?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Y)}if(A6(q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(q)}};M1.readHexChar=function(Z){var q=this.pos,Q=this.readInt(16,Z);if(Q===null)this.invalidStringToken(q,"Bad character escape sequence");return Q};M1.readWord1=function(){this.containsEsc=!1;var Z="",q=!0,Q=this.pos,J=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Y=this.fullCharCodeAtPos();if(B8(Y,J))this.pos+=Y<=65535?1:2;else if(Y===92){this.containsEsc=!0,Z+=this.input.slice(Q,this.pos);var X=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var z=this.readCodePoint();if(!(q?u5:B8)(z,J))this.invalidStringToken(X,"Invalid Unicode escape");Z+=t5(z),Q=this.pos}else break;q=!1}return Z+this.input.slice(Q,this.pos)};M1.readWord=function(){var Z=this.readWord1(),q=w.name;if(this.keywords.test(Z))q=c3[Z];return this.finishToken(q,Z)};var RN="8.16.0";p1.acorn={Parser:p1,version:RN,defaultOptions:m3,Position:h0,SourceLocation:D7,getLineInfo:PV,Node:S7,TokenType:I1,tokTypes:w,keywordTypes:c3,TokContext:E5,tokContexts:b1,isIdentifierChar:B8,isIdentifierStart:u5,Token:r3,isNewLine:A6,lineBreak:K5,lineBreakG:pO,nonASCIIwhitespace:TV};function zW(Z,q){return p1.parse(Z,q)}import{sep as VW}from"node:path";function H8(Z){return VW==="/"?Z:Z.split(VW).join("/")}import{existsSync as KW,readFileSync as CN}from"node:fs";import{dirname as o3,isAbsolute as IN,join as _N,relative as DN,resolve as b7}from"node:path";var E7=new Map,WW=new Map,TN=/\/\*[\s\S]*?\*\/|\/\/.*/g,AN=/[.+?^${}()|[\]\\]/g;function PN(Z){let q=Z,Q=b7(q,"/");while(q!==Q){for(let J of["tsconfig.json","jsconfig.json"]){let Y=_N(q,J);if(KW(Y))return Y}q=o3(q)}return null}function $W(Z){if(E7.has(Z))return E7.get(Z)??null;try{let Q=CN(Z,"utf-8").replace(TN,""),J=JSON.parse(Q);if(J.extends){let Y=IN(J.extends)?J.extends:b7(o3(Z),J.extends),X=Y.endsWith(".json")?Y:`${Y}.json`;if(KW(X)){let z=$W(X);if(z)J.compilerOptions={...z.compilerOptions,...J.compilerOptions,paths:{...z.compilerOptions?.paths,...J.compilerOptions?.paths}}}}return E7.set(Z,J),J}catch{return E7.set(Z,null),null}}function t3(Z,q){if(Z.startsWith(".")||Z.startsWith("/"))return Z;let Q=PN(q);if(!Q)return Z;let J=$W(Q);if(!J?.compilerOptions?.paths)return Z;let{baseUrl:Y=".",paths:X}=J.compilerOptions,z=o3(Q),V=b7(z,Y);for(let[W,K]of Object.entries(X)){let $=WW.get(W);if(!$){let M=W.split("*").map((O)=>O.replace(AN,"\\$&")).join("(.*)");$=new RegExp(`^${M}$`),WW.set(W,$)}let H=Z.match($);if(H){let M=K[0];if(!M)continue;let O=M;for(let B=1;B<H.length;B++)O=O.replace("*",H[B]);return b7(V,O)}}return Z}function u0(Z,q){if(Z.startsWith(".")||Z.startsWith("/"))return Z;let Q=t3(Z,q);if(Q===Z)return Z;let J=DN(q,Q);return J=H8(J),J.startsWith(".")?J:`./${J}`}var UW=new Map;function e3(Z,q){let Q=UW.get(Z);if(!Q)Q=zW(Z,{ecmaVersion:"latest",sourceType:"module"}),UW.set(Z,Q);let J={};for(let Y of Q.body)if(Y.type==="ExportDefaultDeclaration"){let X=Y.declaration.name;if(X in J)J[X].default=!0;else J[X]={source:"",default:!0}}else if(Y.type==="ExportAllDeclaration"){if(!Y.source)continue;let X=t3(Y.source.value,q),z=xN(q,X);if(!SN(z).isFile()){let K=yN(z);for(let $ of K)if($.includes("index")){z=GW(z,$);break}}let V=EN(z,"utf-8"),W=e3(V,bN(z));for(let[K,$]of Object.entries(W)){let H=H8(`./${GW(Y.source.value,$.source)}`);J[K]={...$,source:H}}}else if(Y.type==="ExportNamedDeclaration")for(let X of Y.specifiers){let z=X.exported.name,V=X.local.name,W=z||V;if(W in J){if(Y.type==="ExportNamedDeclaration")J[W].mixed=!0;if(!J[W].source)J[W].source=u0(Y.source?.value??"",q)}else J[W]={source:u0(Y.source?.value??"",q),default:V==="default"}}else if(Y.type==="ImportDeclaration"){let X=Y.specifiers[0].local.name;if(X in J){if(!J[X].source)J[X].source=u0(Y.source?.value??"",q)}else J[X]={source:u0(Y.source?.value??"",q),default:X==="default"}}return J}import d0 from"node:path";import{mkdir as kN,writeFile as fN}from"node:fs/promises";import{parse as vN}from"node:path";import{format as hN}from"prettier";class y6{options;constructor(Z){this.options=Z}async format(Z){try{return await hN(Z,this.options)}catch(q){return console.error(q),Z}}async write(Z,q){await kN(vN(Z).dir,{recursive:!0}),await fN(Z,await this.format(q))}}function Zq(){return new y6({parser:"json",printWidth:80})}function jW(){return new y6({parser:"typescript",printWidth:80})}function BW(Z,q){return Array.from(Z,([Q,J])=>({...J,filePath:H8(d0.join(q,d0.normalize(J.filePath)))})).sort((Q,J)=>Q.moduleName.localeCompare(J.moduleName))}async function gN(Z,q){let Q=BW(Z,q.inputDir);await Promise.all(Q.map((J)=>{let Y=d0.resolve(d0.join(q.outDir||"",`${J.moduleName}.api.json`)),X=Zq();return console.log(`created ${Y}"
|
|
80
|
+
`),X.write(Y,JSON.stringify(J))}))}async function mN(Z,q){let Q={total:Z.size,components:BW(Z,q.inputDir)},J=d0.join(process.cwd(),q.outFile);await Zq().write(J,JSON.stringify(Q)),console.log(`created "${q.outFile}".
|
|
81
|
+
`)}async function qq(Z,q){if(q.outDir)await gN(Z,q);else await mN(Z,q)}import{join as VR}from"node:path";var uN=/(-|\s+|:)/,dN=/("|')/,lN=/CustomEvent/,cN=/^[A-Z]/,pN=/\n/,MW=/=>/,HW=/\n/g,iN=/\s+/g;function FW(Z){if(!Z)return;return Z.replace(HW,`
|
|
82
|
+
* `)}function g8(Z){if(!Z)return"";return`/** ${Z} */`}function Jq(Z){if(!Z)return"";return`/**
|
|
83
|
+
* ${Z.replace(HW,`
|
|
84
84
|
* `)}
|
|
85
85
|
*/`}function k7(Z){if(Z===void 0)return"any";return`${Z}
|
|
86
|
-
`}function f7(Z){if(Z.typedefs.length===0)return"";return Z.typedefs.map((
|
|
87
|
-
`:""}export ${
|
|
86
|
+
`}function f7(Z){if(Z.typedefs.length===0)return"";return Z.typedefs.map((q)=>{return`${q.description?`${Jq(q.description)}
|
|
87
|
+
`:""}export ${q.ts}`}).join(`
|
|
88
88
|
|
|
89
|
-
`)}function
|
|
89
|
+
`)}function LW(Z){if(!Z.contexts||Z.contexts.length===0)return"";let q=Z.generics?Z.generics[0]:null,Q=Z.generics?Z.generics[1]:null;return Z.contexts.map((J)=>{let Y=J.properties.map((W)=>{let K=W.description?`${g8(W.description)}
|
|
90
90
|
`:"",$=W.optional?"?":"";return`${K}${W.name}${$}: ${W.type};`}).join(`
|
|
91
|
-
`),X=
|
|
92
|
-
`:"",V=J
|
|
91
|
+
`),X=J.description?`${Jq(J.description)}
|
|
92
|
+
`:"",V=q&&J.properties.some((W)=>W.type.includes(q))&&Q?`<${Q}>`:"";if(J.properties.length===0)return`${X}export type ${J.typeName} = Record<string, never>;`;return`${X}export type ${J.typeName}${V} = {
|
|
93
93
|
${Y}
|
|
94
94
|
};`}).join(`
|
|
95
95
|
|
|
96
|
-
`)}function x7(Z){if(uN.test(Z))return dN.test(Z)?Z:`"${Z}"`;return Z}function
|
|
97
|
-
`}function
|
|
98
|
-
${Z}*/`:""}function nN(Z){let
|
|
99
|
-
`].filter(Boolean).join(""),
|
|
100
|
-
${
|
|
101
|
-
${M.name}${M.isRequired?"":"?"}: ${
|
|
96
|
+
`)}function x7(Z){if(uN.test(Z))return dN.test(Z)?Z:`"${Z}"`;return Z}function Qq(Z,q){if(!Z)return;return`* ${q||Z}
|
|
97
|
+
`}function wW(Z){return[Qq(FW(Z))].filter(Boolean).join("")}function Yq(Z){return Z.length>0?`/**
|
|
98
|
+
${Z}*/`:""}function nN(Z){let q=new Set(Z.props.filter((M)=>!M.isFunctionDeclaration&&M.kind!=="const").map((M)=>M.name)),Q=Z.props.filter((M)=>!M.isFunctionDeclaration&&M.kind!=="const").map((M)=>{let O=M.value;if(typeof M.value==="string")O=M.value.replace(iN," ");if(M.value===void 0)O="undefined";let L=[Qq(FW(M.description)),Qq(M.constant,"@constant"),M.isFunction?null:`* @default ${O}
|
|
99
|
+
`].filter(Boolean).join(""),B=M.constant&&!M.isFunction?M.value:M.type;return`
|
|
100
|
+
${Yq(L)}
|
|
101
|
+
${M.name}${M.isRequired?"":"?"}: ${B};`}),J=(Z.slots||[]).filter((M)=>!M.default&&M.name!=null&&!q.has(M.name)).map((M)=>{let O=M.name,L=x7(O),B=M.description?`${g8(M.description)}
|
|
102
102
|
`:"",y=M.slot_props&&M.slot_props!=="Record<string, never>"?`(this: void, ...args: [${M.slot_props}]) => void`:"(this: void) => void";return`
|
|
103
|
-
${
|
|
104
|
-
`:"",
|
|
105
|
-
${M}children?: ${
|
|
106
|
-
`),W=`${Z.moduleName}Props`,K="",$=Z.generics?`<${Z.generics[1]}>`:"",H=Z.generics?`<${Z.generics[0]}>`:"";if(Z.rest_props?.type==="Element"){let M;if(Z.rest_props.name==="svelte:element")if(Z.rest_props.thisValue)M=`SvelteHTMLElements["${Z.rest_props.thisValue}"]`;else M="HTMLAttributes<HTMLElement>";else M=Z.rest_props.name.split("|").map((
|
|
107
|
-
`)?`${
|
|
103
|
+
${B}${L}?: ${y};`}),Y=(Z.slots||[]).find((M)=>M.default||M.name===null),X=Y&&!q.has("children")?(()=>{let M=Y.description?`${g8(Y.description)}
|
|
104
|
+
`:"",L=Y.slot_props&&Y.slot_props!=="Record<string, never>"?`(this: void, ...args: [${Y.slot_props}]) => void`:"(this: void) => void";return`
|
|
105
|
+
${M}children?: ${L};`})():"",z=[...J,X].filter(Boolean),V=[...Q,...z].join(`
|
|
106
|
+
`),W=`${Z.moduleName}Props`,K="",$=Z.generics?`<${Z.generics[1]}>`:"",H=Z.generics?`<${Z.generics[0]}>`:"";if(Z.rest_props?.type==="Element"){let M;if(Z.rest_props.name==="svelte:element")if(Z.rest_props.thisValue)M=`SvelteHTMLElements["${Z.rest_props.thisValue}"]`;else M="HTMLAttributes<HTMLElement>";else M=Z.rest_props.name.split("|").map((B)=>{return`SvelteHTMLElements["${B.trim()}"]`}).join("&");let O="[key: `data-${string}`]: unknown;",L=Z.rest_props.description?Z.rest_props.description.includes(`
|
|
107
|
+
`)?`${Jq(Z.rest_props.description)}
|
|
108
108
|
`:`${g8(Z.rest_props.description)}
|
|
109
109
|
`:"";if(Z.extends===void 0)K=`
|
|
110
|
-
${
|
|
110
|
+
${L}${M?`type $RestProps = ${M};
|
|
111
111
|
`:""}
|
|
112
112
|
type $Props${$} = {
|
|
113
113
|
${V}
|
|
@@ -117,7 +117,7 @@ ${Z}*/`:""}function nN(Z){let J=new Set(Z.props.filter((M)=>!M.isFunctionDeclara
|
|
|
117
117
|
|
|
118
118
|
export type ${W}${$} = Omit<$RestProps, keyof $Props${H}> & $Props${H};
|
|
119
119
|
`;else K=`
|
|
120
|
-
${
|
|
120
|
+
${L}${M?`type $RestProps = ${M};
|
|
121
121
|
`:""}
|
|
122
122
|
type $Props${$} = {
|
|
123
123
|
${V}
|
|
@@ -132,53 +132,53 @@ ${Z}*/`:""}function nN(Z){let J=new Set(Z.props.filter((M)=>!M.isFunctionDeclara
|
|
|
132
132
|
export type ${W}${$} = ${Z.extends===void 0?"":`${Z.extends.interface} & `} {
|
|
133
133
|
${V}
|
|
134
134
|
}
|
|
135
|
-
`;return{props_name:W,prop_def:K}}function
|
|
136
|
-
`:""}${x7(X)}: ${k7(
|
|
137
|
-
`)}}`}var
|
|
138
|
-
`;let z;if(Y.type==="dispatched")z=
|
|
139
|
-
`}).join("")}}`}function tN(Z){let
|
|
140
|
-
${
|
|
141
|
-
${
|
|
142
|
-
`)}function ZR(Z){if(Z.extends===void 0)return"";return`import type { ${Z.extends.interface} } from ${Z.extends.import};`}function
|
|
143
|
-
`).map((
|
|
135
|
+
`;return{props_name:W,prop_def:K}}function sN(Z){if(Z.slots.length===0)return"Record<string, never>";return`{${Z.slots.map(({name:Q,slot_props:J,...Y})=>{let X=Y.default||Q===null?"default":x7(Q??"");return`${Y.description?`${g8(Y.description)}
|
|
136
|
+
`:""}${x7(X)}: ${k7(J)};`}).join(`
|
|
137
|
+
`)}}`}var aN=()=>{return"WindowEventMap"},rN=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","contextmenu","wheel","keydown","keyup","keypress","submit","change","input","focus","blur","focusin","focusout","reset","select","touchstart","touchend","touchmove","touchcancel","drag","dragstart","dragend","dragover","dragenter","dragleave","drop","pointerdown","pointerup","pointermove","pointerover","pointerout","pointerenter","pointerleave","pointercancel","gotpointercapture","lostpointercapture","play","pause","ended","volumechange","timeupdate","loadeddata","loadedmetadata","canplay","canplaythrough","seeking","seeked","playing","waiting","stalled","suspend","abort","error","emptied","ratechange","durationchange","loadstart","progress","loadend","animationstart","animationend","animationiteration","animationcancel","transitionstart","transitionend","transitionrun","transitioncancel","scroll","resize","load","unload","beforeunload","cut","copy","paste","compositionstart","compositionupdate","compositionend"]);function oN(Z){let q=(Y="any")=>{if(lN.test(Y))return Y;return`CustomEvent<${Y}>`},Q=(Y)=>{return rN.has(Y)};if(Z.events.length===0)return"Record<string, any>";return`{${Z.events.map((Y)=>{let X="";if(Y.description)X=`${g8(Y.description)}
|
|
138
|
+
`;let z;if(Y.type==="dispatched")z=q(Y.detail);else{let V=typeof Y.element==="string"?Y.element:Y.element.name,K=!(V&&cN.test(V))||Q(Y.name),$=Y.detail!==void 0&&Y.detail!=="undefined"&&!(Y.detail==="null"&&K),H=Y.detail==="null"&&!K;if($||H)z=q(Y.detail);else if(K)z=`${aN()}["${Y.name}"]`;else z=q()}return`${X}${x7(Y.name)}: ${z};
|
|
139
|
+
`}).join("")}}`}function tN(Z){let q=Z.type==="() => any";if(Z.type&&MW.test(Z.type)&&!q)return Z.type;else if(Z.params&&Z.params.length>0){let J=Z.params.map((X)=>{let z=X.optional?"?":"";return`${X.name}${z}: ${X.type}`}).join(", "),Y=Z.returnType||"any";return`(${J}) => ${Y}`}else if(Z.returnType)return`() => ${Z.returnType}`;else return Z.type||"any"}function eN(Z){return Z.props.filter((q)=>q.isFunctionDeclaration||q.kind==="const").map((q)=>{let Q=wW(q.description),J=tN(q);return`
|
|
140
|
+
${Yq(Q)}
|
|
141
|
+
${q.name}: ${J};`}).join(`
|
|
142
|
+
`)}function ZR(Z){if(Z.extends===void 0)return"";return`import type { ${Z.extends.interface} } from ${Z.extends.import};`}function qR(Z){if(!Z.componentComment)return"";if(!pN.test(Z.componentComment))return g8(Z.componentComment.trim());return`/*${Z.componentComment.split(`
|
|
143
|
+
`).map((q)=>`* ${q}`).join(`
|
|
144
144
|
`)}
|
|
145
|
-
*/`}function
|
|
146
|
-
`;else if(
|
|
147
|
-
`;else
|
|
148
|
-
${
|
|
149
|
-
${
|
|
150
|
-
`)}function
|
|
151
|
-
|
|
145
|
+
*/`}function QR(Z){return Z.moduleExports.map((q)=>{let Q=wW(q.description),J,Y=q.type&&MW.test(q.type),X=q.type==="() => any";if(q.kind==="const"&&!Y)J=`export declare const ${q.name}: ${q.type||"any"};
|
|
146
|
+
`;else if(q.params&&q.params.length>0){let V=q.params.map((K)=>{let $=K.optional?"?":"";return`${K.name}${$}: ${K.type}`}).join(", "),W=q.returnType||"any";J=`export declare function ${q.name}(${V}): ${W};`}else if(q.returnType)J=`export declare function ${q.name}(): ${q.returnType};`;else if(Y&&q.type&&!X){let[z,V,...W]=q.type.split("=>"),K=W.map(($)=>`=>${$}`).join("");J=`export declare function ${q.name}${z}:${V}${K};`}else if(Y&&q.type){let[z,V,...W]=q.type.split("=>"),K=W.map(($)=>`=>${$}`).join("");J=`export declare function ${q.name}${z}:${V}${K};`}else if(q.kind==="const")J=`export declare const ${q.name}: ${q.type||"any"};
|
|
147
|
+
`;else J=`export type ${q.name} = ${q.type||"any"};`;return`
|
|
148
|
+
${Yq(Q)}
|
|
149
|
+
${J}`}).join(`
|
|
150
|
+
`)}function JR(Z){return`export default class ${Z.moduleName==="default"?"":Z.moduleName}${Z.generic} extends SvelteComponentTyped<
|
|
151
|
+
${Z.genericProps},
|
|
152
|
+
${Z.events},
|
|
153
|
+
${Z.slots}
|
|
154
|
+
> {
|
|
155
|
+
${Z.accessors}
|
|
156
|
+
}`}function Xq(Z){let{moduleName:q,typedefs:Q,generics:J,props:Y,moduleExports:X,slots:z,events:V,rest_props:W,extends:K,componentComment:$,contexts:H}=Z,{props_name:M,prop_def:O}=nN({moduleName:q,props:Y,rest_props:W,extends:K,generics:J,slots:z}),L=J?`<${J[1]}>`:"",B=J?`${M}<${J[0]}>`:M,C=W?.type==="Element"&&(W.name!=="svelte:element"||W.name==="svelte:element"&&W.thisValue),y=W?.type==="Element"&&W.name==="svelte:element"&&!W.thisValue;return`
|
|
157
|
+
import { SvelteComponentTyped } from "svelte";${C?`import type { SvelteHTMLElements } from "svelte/elements";
|
|
152
158
|
`:""}${y?`import type { HTMLAttributes } from "svelte/elements";
|
|
153
159
|
`:""}
|
|
154
160
|
${ZR({extends:K})}
|
|
155
|
-
${
|
|
156
|
-
${f7({typedefs:
|
|
161
|
+
${QR({moduleExports:X})}
|
|
162
|
+
${f7({typedefs:Q})}
|
|
157
163
|
${H&&H.length>0?`
|
|
158
|
-
`:""}${
|
|
164
|
+
`:""}${LW({contexts:H,generics:J})}
|
|
159
165
|
${O}
|
|
160
|
-
${
|
|
161
|
-
|
|
162
|
-
${L},
|
|
163
|
-
${oN({events:V})},
|
|
164
|
-
${aN({slots:z})}
|
|
165
|
-
> {
|
|
166
|
-
${eN({props:Y})}
|
|
167
|
-
}`}var zJ=/`/g,wW=/\s+/g,J8="--",OW=`| Prop name | Required | Kind | Reactive | Type | Default value | Description |
|
|
166
|
+
${qR({componentComment:$})}
|
|
167
|
+
${JR({moduleName:q,generic:L,genericProps:B,events:oN({events:V}),slots:sN({slots:z}),accessors:eN({props:Y})})}`}var zq=/`/g,OW=/\s+/g,q8="--",NW=`| Prop name | Required | Kind | Reactive | Type | Default value | Description |
|
|
168
168
|
| :- | :- | :- | :- |
|
|
169
|
-
`,
|
|
169
|
+
`,RW=`| Slot name | Default | Props | Fallback |
|
|
170
170
|
| :- | :- | :- | :- |
|
|
171
|
-
`,
|
|
171
|
+
`,CW=`| Event name | Type | Detail | Description |
|
|
172
172
|
| :- | :- | :- | :- |
|
|
173
|
-
`,
|
|
174
|
-
${f7({typedefs:
|
|
173
|
+
`,IW=/\|/g,YR=/</g,XR=/>/g,v7=/\n/g;function l0(Z){if(Z===void 0)return q8;return`<code>${Z.replace(IW,"|")}</code>`}function _W(Z){return Z.replace(YR,"<").replace(XR,">")}function DW(Z){if(Z===void 0)return q8;return`<code>${Z.replace(zq,"\\`").replace(IW,"|")}</code>`}function Vq(Z){if(Z===void 0||Z.trim().length===0)return q8;return _W(Z).replace(v7,"<br />")}function TW(Z){if(Z===void 0||Z==="{}")return q8;return l0(k7(Z).replace(v7," "))}function AW(Z){if(Z===void 0)return q8;return l0(_W(Z).replace(v7,"<br />"))}function PW(Z){if(Z===void 0)return q8;return l0(Z.replace(v7," "))}function SW(Z,q){Z.append("h1","Component Index"),Z.append("h2","Components").tableOfContents(),Z.append("divider");let Q=Array.from(q.keys()).sort();for(let J of Q){let Y=q.get(J);if(!Y)continue;zR(Z,Y)}}function Wq(Z,q,Q,J){if(q.length>0)Q();else Z.append("p",J??"None.")}function zR(Z,q){if(Z.append("h2",`\`${q.moduleName}\``),q.typedefs.length>0)Z.append("h3","Types").append("raw",`\`\`\`ts
|
|
174
|
+
${f7({typedefs:q.typedefs})}
|
|
175
175
|
\`\`\`
|
|
176
176
|
|
|
177
|
-
`);Z.append("h3","Props"),
|
|
178
|
-
`)}),Z.append("h3","Slots"),
|
|
179
|
-
`)}),Z.append("h3","Events"),
|
|
180
|
-
`)})}class
|
|
177
|
+
`);Z.append("h3","Props"),Wq(Z,q.props,()=>{Z.append("raw",NW);let Q=[...q.props].sort((J)=>{if(J.reactive)return-1;if(J.constant)return 1;return 0});for(let J of Q)Z.append("raw",`| ${J.name} | ${J.isRequired?"Yes":"No"} | ${`<code>${J.kind}</code>`} | ${J.reactive?"Yes":"No"} | ${l0(J.type)} | ${DW(J.value)} | ${Vq(J.description)} |
|
|
178
|
+
`)}),Z.append("h3","Slots"),Wq(Z,q.slots,()=>{Z.append("raw",RW);for(let Q of q.slots)Z.append("raw",`| ${Q.default?q8:Q.name} | ${Q.default?"Yes":"No"} | ${TW(Q.slot_props)} | ${AW(Q.fallback)} |
|
|
179
|
+
`)}),Z.append("h3","Events"),Wq(Z,q.events,()=>{Z.append("raw",CW);for(let Q of q.events)Z.append("raw",`| ${Q.name} | ${Q.type} | ${Q.type==="dispatched"?PW(Q.detail):q8} | ${Vq(Q.description)} |
|
|
180
|
+
`)})}class Kq{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
|
|
181
181
|
|
|
182
|
-
`),this}append(Z,
|
|
183
|
-
`))}}class h7 extends y6{onAppend;markdownBase;constructor(Z){super({parser:"markdown",printWidth:80});this.onAppend=Z.onAppend,this.markdownBase=new
|
|
184
|
-
`)}function
|
|
182
|
+
`),this}append(Z,q){switch(Z){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{let Q=Number(Z.slice(-1));if(this.sourceParts.push(`${"#".repeat(Q)} ${q}`),this.hasToC&&Z==="h2")this.toc.push({array:Array.from({length:(Q-1)*2}),raw:q??""});break}case"quote":this.sourceParts.push(`> ${q}`);break;case"p":this.sourceParts.push(q??"");break;case"divider":this.sourceParts.push("---");break;case"raw":this.sourceParts.push(q??"");break}if(Z!=="raw")this.appendLineBreaks();return this}tableOfContents(){return this.sourceParts.push("<!-- __TOC__ -->"),this.hasToC=!0,this.appendLineBreaks(),this}end(){return this.sourceParts.join("").replace("<!-- __TOC__ -->",this.toc.map(({array:q,raw:Q})=>{return`${q.join(" ")} - [${Q}](#${Q.toLowerCase().replace(zq,"").replace(OW,"-")})`}).join(`
|
|
183
|
+
`))}}class h7 extends y6{onAppend;markdownBase;constructor(Z){super({parser:"markdown",printWidth:80});this.onAppend=Z.onAppend,this.markdownBase=new Kq}get source(){return this.markdownBase.source}get hasToC(){return this.markdownBase.hasToC}get toc(){return this.markdownBase.toc}appendLineBreaks(){return this.markdownBase.appendLineBreaks(),this}append(Z,q){return this.markdownBase.append(Z,q),this.onAppend?.call(this,Z,this),this}tableOfContents(){return this.markdownBase.tableOfContents(),this}end(){return this.markdownBase.end()}}async function $q(Z,q){let Q=q?.write!==!1,J=new h7({onAppend:(Y,X)=>{q.onAppend?.call(null,Y,X,Z)}});if(SW(J,Z),Q){let Y=VR(process.cwd(),q.outFile);await J.write(Y,J.end()),console.log(`created "${q.outFile}".`)}return J.end()}import{join as xW}from"node:path";var yW=/\.svelte$/;function EW(Z){let q=new Map;for(let[J,Y]of Object.entries(Z)){let X=q.get(Y.source)||[];X.push({id:J,exportee:Y}),q.set(Y.source,X)}let Q=[];for(let[J,Y]of q){let X=yW.test(J),z=Y.some(({id:M,exportee:O})=>M!=="default"&&O.default),V=Y.some(({exportee:M})=>!M.default),W=X&&z&&V,K=[],$=[],H=[];for(let{id:M,exportee:O}of Y){if(M==="default"){$.push(`export { default } from "${J}";`);continue}if(O.default)if(O.mixed)$.push(`export { default as ${M} } from "${J}";`),$.push(`export { default } from "${J}";`);else H.push(`default as ${M}`);else if(X&&!W)H.push(`default as ${M}`);else K.push(M)}if(H.length>0&&K.length>0)Q.push(`export { ${[...H,...K].join(", ")} } from "${J}";`);else{if(K.length>0)Q.push(`export { ${K.join(", ")} } from "${J}";`);if(H.length>0)Q.push(`export { ${H.join(", ")} } from "${J}";`)}Q.push(...$)}return Q.join(`
|
|
184
|
+
`)}function bW(Z){return Z.replace(yW,".svelte.d.ts")}async function Gq(Z,q){let Q=xW(process.cwd(),q.outDir,"index.d.ts"),J=jW(),Y=q.preamble+EW(q.exports),X=Array.from(Z).map(async([z,V])=>{let W=bW(xW(q.outDir,V.filePath));await J.write(W,Xq(V))});await Promise.all([...X,J.write(Q,Y)]),console.log("created TypeScript definitions.")}var HR=/<style.+?<\/style>/gims,FR=/-/g;function fW(Z){let q,Q;return{name:"vite-plugin-sveld",apply:"build",enforce:"post",buildStart(){Q=C6(Z?.entry)},async generateBundle(){if(Q!=null)q=await c0(Q,Z?.glob===!0)},writeBundle(){if(Q!=null)p0(q,Z||{},Q)}}}async function c0(Z,q){let Q=WR(Z).isFile(),J=Q?kW(Z):Z,Y={};if(Q){let P=KR(Z,"utf-8");Y=e3(P,J)}let X={...Y};if(q)for(let P of LV([`${J}/**/*.svelte`])){let _=g7(P).name.replace(FR,""),v=H8(`./${UR(J,P)}`);if(Y[_])Y[_].source=v;if(X[_])X[_].source=v;else X[_]={source:v,default:!1}}let z=new Map,V=new Map,W=Object.entries(Y),K=Object.entries(X),$=new Set;for(let[,P]of W){let _=P.source,{ext:v}=g7(_);if(v===".svelte")$.add(Uq(J,_))}for(let[,P]of K){let _=P.source,{ext:v}=g7(_);if(v===".svelte")$.add(Uq(J,_))}let H=await Promise.all(Array.from($).map(async(P)=>{try{let _=await $R(P,"utf-8");return{path:P,content:_}}catch(_){return console.warn(`Warning: Failed to read file ${P}:`,_),{path:P,content:null}}})),M=new Map(H.map(({path:P,content:_})=>[P,_])),O=async([P,_],v,h)=>{let d=_.source,{ext:E,name:N}=g7(d),A=P;if(v.length===1&&P==="default")A=N;if(E===".svelte"){let T=Uq(J,d),j=h.get(T);if(j===null||j===void 0)return null;let{code:x}=await jR(j,[MR(),BR([[HR,""]])],{filename:GR(d)}),S=new T1().parseSvelteComponent(x,{moduleName:A,filePath:d});return{moduleName:A,filePath:d,...S}}return null},L=W.map((P)=>O(P,W,M)),B=K.map((P)=>O(P,K,M)),[C,y]=await Promise.all([Promise.all(L),Promise.all(B)]);for(let P of C)if(P)z.set(P.moduleName,P);for(let P of y)if(P)V.set(P.moduleName,P);return{exports:Y,components:z,allComponentsForTypes:V}}function p0(Z,q,Q){let J=kW(Q);if(q?.types!==!1)Gq(Z.allComponentsForTypes,{outDir:"types",preamble:"",...q?.typesOptions,exports:Z.exports,inputDir:J});if(q?.json)qq(Z.components,{outFile:"COMPONENT_API.json",...q?.jsonOptions,input:Q,inputDir:J});if(q?.markdown)$q(Z.components,{outFile:"COMPONENT_INDEX.md",...q?.markdownOptions})}async function LR(Z){let q=Z.argv.slice(2).map((X)=>{let[z,V]=X.split("=");return{[z.slice(2)]:V===void 0?!0:V}}).reduce((X,z)=>{for(let V in z)X[V]=z[V];return X},{}),Q=C6()||"src/index.js";await(await B3({input:Q,plugins:[vW.default(),YJ()]})).generate({});let Y=await c0(Q,q?.glob===!0);p0(Y,q,Q)}async function wR(Z){let q=C6(Z?.input);if(q===null)return;let Q=await c0(q,Z?.glob===!0);p0(Q,Z||{},q)}export{wR as sveld,fW as default,LR as cli,T1 as ComponentParser};
|