246 lines
1.4 MiB
JavaScript
246 lines
1.4 MiB
JavaScript
|
|
(()=>{var e={"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/files lazy recursive":function(e){function webpackEmptyAsyncContext(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/files lazy recursive",e.exports=webpackEmptyAsyncContext},"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/files sync recursive":function(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/files sync recursive",e.exports=webpackEmptyContext},"./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.28.4/node_modules/@babel/plugin-syntax-class-properties/lib/index.js":function(e,t,r){"use strict";t.default=void 0;var n=(0,r("./node_modules/.pnpm/@babel+helper-plugin-utils@7.27.1/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(e=>(e.assertVersion(7),{name:"syntax-class-properties",manipulateOptions(e,t){t.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}}));t.default=n},"./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js":function(e,t,r){var n;!function(e,t,r){"use strict";var n=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,__commonJS=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||s(e,a,{get:()=>t[a],enumerable:!(n=i(t,a))||n.enumerable});return e},__toESM=(e,t,r)=>(r=null!=e?n(a(e)):{},__copyProps(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(s({},"__esModule",{value:!0}),e),p=__commonJS({"umd:@jridgewell/sourcemap-codec"(e,r){r.exports=t}}),c=__commonJS({"umd:@jridgewell/trace-mapping"(e,t){t.exports=r}}),u={};__export(u,{GenMapping:()=>E,addMapping:()=>addMapping,addSegment:()=>addSegment,allMappings:()=>allMappings,fromMap:()=>fromMap,maybeAddMapping:()=>maybeAddMapping,maybeAddSegment:()=>maybeAddSegment,setIgnore:()=>setIgnore,setSourceContent:()=>setSourceContent,toDecodedMap:()=>toDecodedMap,toEncodedMap:()=>toEncodedMap}),e.exports=__toCommonJS(u);var d=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function cast(e){return e}function get(e,t){return cast(e)._indexes[t]}function put(e,t){const r=get(e,t);if(void 0!==r)return r;const{array:n,_indexes:s}=cast(e),i=n.push(t);return s[t]=i-1}function remove(e,t){const r=get(e,t);if(void 0===r)return;const{array:n,_indexes:s}=cast(e);for(let e=r+1;e<n.length;e++){const t=n[e];n[e-1]=t,s[t]--}s[t]=void 0,n.pop()}var h=__toESM(p()),m=__toESM(c()),f=0,y=1,b=2,g=3,x=4,v=-1,E=class{constructor({file:e,sourceRoot:t}={}){this._names=new d,this._sources=new d,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new d}};function cast2(e){return e}function addSegment(e,t,r,n,s,i,o,a){return addSegmentInternal(!1,e,t,r,n,s,i,o,a)}function addMapping(e,t){return addMappingInternal(!1,e,t)}var maybeAddSegment=(e,t,r,n,s,i,o,a)=>addSegmentInternal(!0,e,t,r,n,s,i,o,a),maybeAddMapping=(e,t)=>addMappingInternal(!0,e,t);function setSourceContent(e,t,r){const{_sources:n,_sourcesContent:s}=cast2(e);s[put(n,t)]=r}function setIgnore(e,t,r=!0){const{_sources:n,_sourcesContent:s,_ignoreList:i}=cast2(e),o=put(n,t);o===s.length&&(s[o]=null),r?put(i,o):remove(i,o)}function toDecodedMap(e){const{_mappings:t,_
|
||
|
|
(function (root, factory) {
|
||
|
|
if (typeof define === "function" && define.amd) {
|
||
|
|
define(AMD_ARGUMENTS, factory);
|
||
|
|
} else if (typeof exports === "object") {
|
||
|
|
factory(COMMON_ARGUMENTS);
|
||
|
|
} else {
|
||
|
|
factory(BROWSER_ARGUMENTS);
|
||
|
|
}
|
||
|
|
})(UMD_ROOT, function (FACTORY_PARAMETERS) {
|
||
|
|
FACTORY_BODY
|
||
|
|
});
|
||
|
|
`(e);function buildGlobal(e){const t=m("babelHelpers"),r=[],n=h(null,[m("global")],o(r)),l=b([d(a(n,[p(i("===",x("typeof",m("global")),g("undefined")),m("self"),m("global"))]))]);return r.push(v("var",[E(t,s("=",f(m("global"),t),y([])))])),buildHelpers(r,t,e),l}function buildModule(e){const t=[],r=buildHelpers(t,null,e);return t.unshift(c(null,Object.keys(r).map(e=>u(l(r[e]),m(e))))),b(t,[],"module")}function buildUmd(e){const t=m("babelHelpers"),r=[];return r.push(v("var",[E(t,m("global"))])),buildHelpers(r,t,e),b([buildUmdWrapper({FACTORY_PARAMETERS:m("global"),BROWSER_ARGUMENTS:s("=",f(m("root"),t),y([])),COMMON_ARGUMENTS:m("exports"),AMD_ARGUMENTS:n([g("exports")]),FACTORY_BODY:r,UMD_ROOT:m("this")})])}function buildVar(e){const t=m("babelHelpers"),r=[];r.push(v("var",[E(t,y([]))]));const n=b(r);return buildHelpers(r,t,e),r.push(d(t)),n}function buildHelpers(e,t,r){const getHelperReference=e=>t?f(t,m(e)):m(`_${e}`),n={};return helpers().list.forEach(function(i){if(r&&!r.includes(i))return;const o=n[i]=getHelperReference(i),{nodes:a}=helpers().get(i,getHelperReference,t?null:`_${i}`,[],t?(e,t,r)=>{r(e=>s("=",o,e)),e.body.push(d(s("=",o,m(t))))}:null);e.push(...a)}),n}},"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transform-ast.js":function(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.transformFromAst=void 0,t.transformFromAstAsync=function(...e){return(0,i.beginHiddenCallStack)(o.async)(...e)},t.transformFromAstSync=function(...e){return(0,i.beginHiddenCallStack)(o.sync)(...e)};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/index.js"),s=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transformation/index.js"),i=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const o=_gensync()(function*(e,t,r){const i=yield*(0,n.default)(r);if(null===i)return null;if(!e)throw new Error("No AST given");return yield*(0,s.run)(i,t,e)});t.transformFromAst=function(e,t,r,n){let s,a;if("function"==typeof r?(a=r,s=void 0):(s=r,a=n),void 0===a)return(0,i.beginHiddenCallStack)(o.sync)(e,t,s);(0,i.beginHiddenCallStack)(o.errback)(e,t,s,a)}},"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transform-file.js":function(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.transformFile=function(...e){o.errback(...e)},t.transformFileAsync=function(...e){return o.async(...e)},t.transformFileSync=function(...e){return o.sync(...e)};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/index.js"),s=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transformation/index.js"),i=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/gensync-utils/fs.js");const o=_gensync()(function*(e,t){const r=Object.assign({},t,{filename:e}),o=yield*(0,n.default)(r);if(null===o)return null;const a=yield*i.readFile(e,"utf8");return yield*(0,s.run)(o,a)})},"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transform.js":function(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.transform=void 0,t.transformAsync=function(...e){return(0,i.beginHiddenCallStack)(o.async)(...e)},t.transformSync=function(...e){return(0,i.beginHiddenCallStack)(o.sync)(...e)};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/index.js"),s=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transformation/index.js"),i=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/errors/rewrite-st
|
||
|
|
${function(e){return e.addHelper("decorate")}(o)}(
|
||
|
|
${m||n.types.nullLiteral()},
|
||
|
|
function (${p}, ${d?n.types.cloneNode(h):null}) {
|
||
|
|
${a}
|
||
|
|
return { F: ${n.types.cloneNode(a.id)}, d: ${f} };
|
||
|
|
},
|
||
|
|
${d}
|
||
|
|
)
|
||
|
|
`;u||y.arguments[1].body.directives.push(n.types.directive(n.types.directiveLiteral("use strict")));let b=y,g="arguments.1.body.body.0";c&&(b=n.template.statement.ast`let ${e} = ${y}`,g="declarations.0.init."+g);return{instanceNodes:[n.template.statement.ast`
|
||
|
|
${n.types.cloneNode(p)}(this)
|
||
|
|
`],wrapClass:e=>(e.replaceWith(b),e.get(g))}};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@babel+helper-replace-supers@7.27.1_@babel+core@7.28.4/node_modules/@babel/helper-replace-supers/lib/index.js");function prop(e,t){return t?n.types.objectProperty(n.types.identifier(e),t):null}function takeDecorators(e){let t;return e.decorators&&e.decorators.length>0&&(t=n.types.arrayExpression(e.decorators.map(e=>e.expression))),e.decorators=void 0,t}function getKey(e){return e.computed?e.key:n.types.isIdentifier(e.key)?n.types.stringLiteral(e.key.name):n.types.stringLiteral(String(e.key.value))}},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildNamedEvaluationVisitor=buildNamedEvaluationVisitor,t.default=function({assertVersion:e,assumption:t},{loose:i},c,y){var b,g;e("2023-11"===c||"2023-05"===c||"2023-01"===c?"^7.21.0":"2021-12"===c?"^7.16.0":"^7.19.0");const x=new WeakSet,v=null!=(b=t("constantSuper"))?b:i,E=null!=(g=t("ignoreFunctionLength"))?g:i,T=buildNamedEvaluationVisitor(isDecoratedAnonymousClassExpression,visitClass);function visitClass(e,t,r){var i;if(x.has(e))return;const{node:y}=e;null!=r||(r=null==(i=y.id)?void 0:i.name);const b=function(e,t,r,i,c,y,b){var g;const x=e.get("body.body"),v=e.node.decorators;let E=!1,T=!1,S=!1;const P=function(e){let t;return()=>(t||(t=function(e){const t=[],r=new Set;return e.traverse({PrivateName(e){r.add(e.node.id.name)}}),()=>{let e;do{incrementId(t),e=String.fromCharCode(...t)}while(r.has(e));return n.types.privateName(n.types.identifier(e))}}(e)),t())}(e),_=[],A=e.scope.parent,memoiseExpression=(e,t,r)=>{const s=generateLetUidIdentifier(A,t);return r.push(n.types.assignmentExpression("=",s,e)),n.types.cloneNode(s)};let C,w;const I=null==(g=e.node.id)?void 0:g.name,D="object"==typeof c?c:void 0,usesFunctionContextOrYieldAwait=e=>{try{return n.types.traverseFast(e,e=>{if(n.types.isThisExpression(e)||n.types.isSuper(e)||n.types.isYieldExpression(e)||n.types.isAwaitExpression(e)||n.types.isIdentifier(e,{name:"arguments"})||I&&n.types.isIdentifier(e,{name:I})||n.types.isMetaProperty(e)&&"import"!==e.meta.name)throw null}),!1}catch(e){return!0}},k=[];for(const r of x){if(!isClassDecoratableElementPath(r))continue;const s=r.node;if(!s.static&&n.types.isPrivateName(s.key)&&k.push(s.key.id.name),isDecorated(s)){switch(s.type){case"ClassProperty":y.ClassProperty(r,t);break;case"ClassPrivateProperty":y.ClassPrivateProperty(r,t);break;case"ClassAccessorProperty":if(y.ClassAccessorProperty(r,t),"2023-11"===b)break;default:s.static?null!=w||(w=generateLetUidIdentifier(A,"initStatic")):null!=C||(C=generateLetUidIdentifier(A,"initProto"))}E=!0,S||(S=s.decorators.some(usesFunctionContextOrYieldAwait))}else if("ClassAccessorProperty"===s.type){y.ClassAccessorProperty(r,t);const{key:i,value:o,static:l,computed:p}=s,u=P(),d=generateClassProperty(u,o,l),h=r.get("key"),[m]=r.replaceWith(d);let f,g;p&&!h.isConstantExpression()?(f=(0,a.memoiseComputedKey)(createToPropertyKeyCall(t,i),A,A.generateUid("computedKey")),g=n.types.cloneNode(f.left)):(f=n.types.cloneNode(i),g=n.types.cloneNode(i)),assignIdForAnonymousClass(e,c),addProxyAccessorsFor(e.node.id,m,f,g,u,p,l,b)}"computed"in r.node&&r.node.computed&&(T||(T=!A.isStatic(r.node.key)))}if(!v&&!E)return e.node.id||"string"!=typeof c||(e.node.id=n.types.identifier(c)),void(D&&e.node.body.body.unshift(createStaticBlockFromExpressions([createSetFunctionNameCall(t,D)])));const N=[];let O;const j=new Set;let F,L,M=null;function handleDecorators(e){let t=!1,r=!1;const s=[];for(const i of e){const{expression:e}=i;let o;"2023-11"!==b&&"2023-05"!==b||!n.types.isMemberExpression(e)||(n.types.isSuper(e.object)?o=n.types.thisExpression():A.isStatic(e.object)?o=n.types.cloneNode(e.object):(null!=M||(M=generateLetUidIdentifier(A,"obj")),o=n.types.assignmentExpression("=",n.types.cloneNode(M),e.
|
||
|
|
class extends ${t.addHelper("identity")} {}
|
||
|
|
`;r.body.body=[n.types.classProperty(n.types.toExpression(re),void 0,void 0,void 0,!0,!0),...o];const s=[],i=n.types.newExpression(r,[]);z.length>0&&s.push(...z),ee&&(Z=!0,s.push(ee)),s.length>0?(s.unshift(n.types.callExpression(n.types.super(),[n.types.cloneNode(L)])),r.body.body.push(createConstructorFromExpressions(s,!1))):i.arguments.push(n.types.cloneNode(L));const[a]=e.replaceWith(i);te=a.get("callee").get("body").get("body.0.key")}}!Z&&ee&&e.node.body.body.push(n.types.staticBlock([n.types.expressionStatement(ee)]));let{superClass:se}=re;if(se&&("2023-11"===b||"2023-05"===b)){const t=e.scope.maybeGenerateMemoised(se);t&&(re.superClass=n.types.assignmentExpression("=",t,se),se=t)}const ie=n.types.staticBlock([]);re.body.body.unshift(ie);const oe=ie.body;if(W.length>0){const e=te.get("body.body");let t;for(const r of e)if((r.isClassProperty()||r.isClassMethod())&&"constructor"!==r.node.kind){t=r;break}null!=t?(!function(e){const{node:t}=e;t.computed=!0,n.types.isIdentifier(t.key)&&(t.key=n.types.stringLiteral(t.key.name))}(t),prependExpressionsToComputedKey(W,t)):(re.body.body.unshift(n.types.classProperty(n.types.sequenceExpression([...W,n.types.stringLiteral("_")]),void 0,void 0,void 0,!0,!0)),oe.push(n.types.expressionStatement(n.types.unaryExpression("delete",n.types.memberExpression(n.types.thisExpression(),n.types.identifier("_")))))),W=[]}oe.push(n.types.expressionStatement(function(e,t,r,s,i,o,a,l,p,c){let u,d;const h=[a?createSetFunctionNameCall(p,a):n.types.thisExpression(),s,r];"2023-11"!==c&&h.splice(1,2,r,s);if("2021-12"===c||"2022-03"===c&&!p.availableHelper("applyDecs2203R"))return u=n.types.arrayPattern([...e,...t]),d=n.types.callExpression(p.addHelper("2021-12"===c?"applyDecs":"applyDecs2203"),h),n.types.assignmentExpression("=",u,d);"2022-03"===c?d=n.types.callExpression(p.addHelper("applyDecs2203R"),h):"2023-01"===c?(o&&h.push(createPrivateBrandCheckClosure(o)),d=n.types.callExpression(p.addHelper("applyDecs2301"),h)):"2023-05"===c&&((o||l||0!==i.value)&&h.push(i),o?h.push(createPrivateBrandCheckClosure(o)):l&&h.push(n.types.unaryExpression("void",n.types.numericLiteral(0))),l&&h.push(l),d=n.types.callExpression(p.addHelper("applyDecs2305"),h));"2023-11"===c&&((o||l||0!==i.value)&&h.push(i),o?h.push(createPrivateBrandCheckClosure(o)):l&&h.push(n.types.unaryExpression("void",n.types.numericLiteral(0))),l&&h.push(l),d=n.types.callExpression(p.addHelper("applyDecs2311"),h));e.length>0?t.length>0?u=n.types.objectPattern([n.types.objectProperty(n.types.identifier("e"),n.types.arrayPattern(e)),n.types.objectProperty(n.types.identifier("c"),n.types.arrayPattern(t))]):(u=n.types.arrayPattern(e),d=n.types.memberExpression(d,n.types.identifier("e"),!1,!1)):(u=n.types.arrayPattern(t),d=n.types.memberExpression(d,n.types.identifier("c"),!1,!1));return n.types.assignmentExpression("=",u,d)}(J,Q,X,null!=R?R:n.types.arrayExpression(K),n.types.numericLiteral($),q?U:null,D,n.types.cloneNode(se),t,b))),w&&oe.push(n.types.expressionStatement(n.types.callExpression(n.types.cloneNode(w),[n.types.thisExpression()])));ne.length>0&&oe.push(...ne.map(e=>n.types.expressionStatement(e)));if(e.insertBefore(_.map(e=>n.types.expressionStatement(e))),V){if(A.getBinding(L.name).constantViolations.length){const t=A.generateUidIdentifier("t"+L.name),r=L;e.replaceWithMultiple([n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(r)),n.types.variableDeclarator(t)]),n.types.blockStatement([n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(L))]),e.node,n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(t),n.types.cloneNode(L)))]),n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(r),n.types.cloneNode(t)))])}else e.insertBefore(n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(L))]))}j.size>0&&function(e,t){const r=(0,o.privateNameVisitorFactory)({PrivateName(e,t){if(!t.privateNamesMap.has(e.node.id.name))return;const r=e.parentPath,n=r.parentPath;if("AssignmentExpression"===n.node.type&&
|
||
|
|
function () {
|
||
|
|
return this.${n.types.cloneNode(e)};
|
||
|
|
}
|
||
|
|
`,n.template.expression.ast`
|
||
|
|
function (value) {
|
||
|
|
this.${n.types.cloneNode(e)} = value;
|
||
|
|
}
|
||
|
|
`]:[n.template.expression.ast`
|
||
|
|
o => o.${n.types.cloneNode(e)}
|
||
|
|
`,n.template.expression.ast`
|
||
|
|
(o, v) => o.${n.types.cloneNode(e)} = v
|
||
|
|
`]}function getComputedKeyLastElement(e){if((e=(0,i.skipTransparentExprWrappers)(e)).isSequenceExpression()){const t=e.get("expressions");return getComputedKeyLastElement(t[t.length-1])}return e}function getComputedKeyMemoiser(e){const t=getComputedKeyLastElement(e);if(t.isConstantExpression())return n.types.cloneNode(e.node);if(t.isIdentifier()&&e.scope.hasUid(t.node.name))return n.types.cloneNode(e.node);if(t.isAssignmentExpression()&&t.get("left").isIdentifier())return n.types.cloneNode(t.node.left);throw new Error(`Internal Error: the computed key ${e.toString()} has not yet been memoised.`)}function prependExpressionsToComputedKey(e,t){const r=t.get("key");r.isSequenceExpression()?e.push(...r.node.expressions):e.push(r.node),r.replaceWith(maybeSequenceExpression(e))}function prependExpressionsToFieldInitializer(e,t){const r=t.get("value");r.node?e.push(r.node):e.length>0&&(e[e.length-1]=n.types.unaryExpression("void",e[e.length-1])),r.replaceWith(maybeSequenceExpression(e))}function prependExpressionsToStaticBlock(e,t){t.unshiftContainer("body",n.types.expressionStatement(maybeSequenceExpression(e)))}function isProtoInitCallExpression(e,t){return n.types.isCallExpression(e)&&n.types.isIdentifier(e.callee,{name:t.name})}function createConstructorFromExpressions(e,t){const r=[n.types.expressionStatement(maybeSequenceExpression(e))];return t&&r.unshift(n.types.expressionStatement(n.types.callExpression(n.types.super(),[n.types.spreadElement(n.types.identifier("args"))]))),n.types.classMethod("constructor",n.types.identifier("constructor"),t?[n.types.restElement(n.types.identifier("args"))]:[],n.types.blockStatement(r))}function createStaticBlockFromExpressions(e){return n.types.staticBlock([n.types.expressionStatement(maybeSequenceExpression(e))])}const l=0,p=1,c=2,u=3,d=4,h=5,m=8,f=16;function getElementKind(e){switch(e.node.type){case"ClassProperty":case"ClassPrivateProperty":return l;case"ClassAccessorProperty":return p;case"ClassMethod":case"ClassPrivateMethod":return"get"===e.node.kind?u:"set"===e.node.kind?d:c}}function generateDecorationList(e,t,r){const s=e.length,i=t.some(Boolean),o=[];for(let a=0;a<s;a++)"2023-11"!==r&&"2023-05"!==r||!i||o.push(t[a]||n.types.unaryExpression("void",n.types.numericLiteral(0))),o.push(e[a].expression);return{haveThis:i,decs:o}}function addCallAccessorsFor(e,t,r,s,i,o){t.insertAfter(n.types.classPrivateMethod("get",n.types.cloneNode(r),[],n.types.blockStatement([n.types.returnStatement(n.types.callExpression(n.types.cloneNode(s),"2023-11"===e&&o?[]:[n.types.thisExpression()]))]),o)),t.insertAfter(n.types.classPrivateMethod("set",n.types.cloneNode(r),[n.types.identifier("v")],n.types.blockStatement([n.types.expressionStatement(n.types.callExpression(n.types.cloneNode(i),"2023-11"===e&&o?[n.types.identifier("v")]:[n.types.thisExpression(),n.types.identifier("v")]))]),o))}function movePrivateAccessor(e,t,r,s){let i,o;"set"===e.node.kind?(i=[n.types.identifier("v")],o=[n.types.expressionStatement(n.types.callExpression(r,[n.types.thisExpression(),n.types.identifier("v")]))]):(i=[],o=[n.types.returnStatement(n.types.callExpression(r,[n.types.thisExpression()]))]),e.replaceWith(n.types.classPrivateMethod(e.node.kind,n.types.cloneNode(t),i,n.types.blockStatement(o),s))}function isClassDecoratableElementPath(e){const{type:t}=e;return"TSDeclareMethod"!==t&&"TSIndexSignature"!==t&&"StaticBlock"!==t}function maybeSequenceExpression(e){return 0===e.length?n.types.unaryExpression("void",n.types.numericLiteral(0)):1===e.length?e[0]:n.types.sequenceExpression(e)}function createFunctionExpressionFromPrivateMethod(e){const{params:t,body:r,generator:s,async:i}=e;return n.types.functionExpression(void 0,t,r,s,i)}function createSetFunctionNameCall(e,t){return n.types.callExpression(e.addHelper("setFunctionName"),[n.types.thisExpression(),t])}function createToPropertyKeyCall(e,t){return n.types.callExpression(e.addHelper("toPropertyKey"),[t])}function createPrivateBrandCheckClosure(e){return n.types.arrowFunctionExpression([n.types.identifier("_")],n.types.binaryExpression("in",n.types.cloneNode
|
||
|
|
Object.prototype.hasOwnProperty.call(${buildCheckInRHS(i,t)}, ${n.types.cloneNode(r)})
|
||
|
|
`)}const{id:c,static:u}=a.get(p);u?e.replaceWith(n.template.expression.ast`${buildCheckInRHS(i,t)} === ${n.types.cloneNode(this.classRef)}`):e.replaceWith(n.template.expression.ast`${n.types.cloneNode(c)}.has(${buildCheckInRHS(i,t)})`)}});function readOnlyError(e,t){return n.types.callExpression(e.addHelper("readOnlyError"),[n.types.stringLiteral(`#${t}`)])}function writeOnlyError(e,t){return e.availableHelper("writeOnlyError")?n.types.callExpression(e.addHelper("writeOnlyError"),[n.types.stringLiteral(`#${t}`)]):(console.warn("@babel/helpers is outdated, update it to silence this warning."),n.types.buildUndefinedNode())}function buildStaticPrivateFieldAccess(e,t){return t?e:n.types.memberExpression(e,n.types.identifier("_"))}function autoInherits(e){return function(t){return n.types.inherits(e.apply(this,arguments),t.node)}}const h={memoise(e,t){const{scope:r}=e,{object:n}=e.node,s=r.maybeGenerateMemoised(n);s&&this.memoiser.set(n,s,t)},receiver(e){const{object:t}=e.node;return this.memoiser.has(t)?n.types.cloneNode(this.memoiser.get(t)):n.types.cloneNode(t)},get:autoInherits(function(e){const{classRef:t,privateNamesMap:r,file:s,innerBinding:i,noUninitializedPrivateFieldAccess:o}=this,a=e.node.property,{name:l}=a.id,{id:p,static:c,method:u,methodId:d,getId:h,setId:m}=r.get(l),f=h||m,cloneId=e=>n.types.inherits(n.types.cloneNode(e),a);if(c){if(unshadow(t.name,e.scope,i),!newHelpers(s)){const r=u&&!f?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return n.types.callExpression(s.addHelper(r),[this.receiver(e),n.types.cloneNode(t),cloneId(p)])}const r=this.receiver(e),a=n.types.isIdentifier(r)&&r.name===t.name;if(!u)return buildStaticPrivateFieldAccess(a?cloneId(p):n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r,cloneId(p)]),o);if(h)return a?n.types.callExpression(cloneId(h),[r]):n.types.callExpression(s.addHelper("classPrivateGetter"),[n.types.cloneNode(t),r,cloneId(h)]);if(m){const e=n.types.buildUndefinedNode();return a?e:n.types.sequenceExpression([n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r]),e])}return a?cloneId(p):n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r,cloneId(p)])}return u?f?h?newHelpers(s)?n.types.callExpression(s.addHelper("classPrivateGetter"),[n.types.cloneNode(p),this.receiver(e),cloneId(h)]):n.types.callExpression(s.addHelper("classPrivateFieldGet"),[this.receiver(e),cloneId(p)]):n.types.sequenceExpression([this.receiver(e),writeOnlyError(s,l)]):newHelpers(s)?n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(p),this.receiver(e),cloneId(d)]):n.types.callExpression(s.addHelper("classPrivateMethodGet"),[this.receiver(e),n.types.cloneNode(p),cloneId(d)]):newHelpers(s)?n.types.callExpression(s.addHelper("classPrivateFieldGet2"),[cloneId(p),this.receiver(e)]):n.types.callExpression(s.addHelper("classPrivateFieldGet"),[this.receiver(e),cloneId(p)])}),boundGet(e){return this.memoise(e,1),n.types.callExpression(n.types.memberExpression(this.get(e),n.types.identifier("bind")),[this.receiver(e)])},set:autoInherits(function(e,t){const{classRef:r,privateNamesMap:s,file:i,noUninitializedPrivateFieldAccess:o}=this,a=e.node.property,{name:l}=a.id,{id:p,static:c,method:u,setId:d,getId:h}=s.get(l),m=h||d,cloneId=e=>n.types.inherits(n.types.cloneNode(e),a);if(c){if(!newHelpers(i)){const s=u&&!m?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return n.types.callExpression(i.addHelper(s),[this.receiver(e),n.types.cloneNode(r),cloneId(p),t])}const s=this.receiver(e),a=n.types.isIdentifier(s)&&s.name===r.name;if(u&&!d){const e=readOnlyError(i,l);return a?n.types.sequenceExpression([t,e]):n.types.sequenceExpression([t,n.types.callExpression(i.addHelper("assertClassBrand"),[n.types.cloneNode(r),s]),readOnlyError(i,l)])}return d?a?n.types.callExpression(n.types.cloneNode(d),[s,t]):n.types.callExpression(i.addHelper("classPrivateSetter"),[n.types.cloneNode(r),cloneId(d),s,t]):n.types.assignmentExpression("=",buildStaticPrivateFieldAccess(cloneId(p),o),a?t:n.types.callExpr
|
||
|
|
Object.defineProperty(${e}, ${n.types.cloneNode(s)}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
writable: true,
|
||
|
|
value: ${i}
|
||
|
|
});
|
||
|
|
`,t)}function buildPrivateInstanceFieldInitSpec(e,t,r,s){const{id:i}=r.get(t.node.key.id.name),o=t.node.value||t.scope.buildUndefinedNode();if(!s.availableHelper("classPrivateFieldInitSpec"))return inheritPropComments(n.template.statement.ast`${n.types.cloneNode(i)}.set(${e}, {
|
||
|
|
// configurable is always false for private elements
|
||
|
|
// enumerable is always false for private elements
|
||
|
|
writable: true,
|
||
|
|
value: ${o},
|
||
|
|
})`,t);const a=s.addHelper("classPrivateFieldInitSpec");return inheritLoc(inheritPropComments(n.types.expressionStatement(n.types.callExpression(a,[n.types.thisExpression(),inheritLoc(n.types.cloneNode(i),t.node.key),newHelpers(s)?o:n.template.expression.ast`{ writable: true, value: ${o} }`])),t),t.node)}function buildPrivateStaticFieldInitSpec(e,t,r){const s=t.get(e.node.key.id.name),i=r?e.node.value:n.template.expression.ast`{
|
||
|
|
_: ${e.node.value||n.types.buildUndefinedNode()}
|
||
|
|
}`;return inheritPropComments(n.types.variableDeclaration("var",[n.types.variableDeclarator(n.types.cloneNode(s.id),i)]),e)}var buildPrivateStaticFieldInitSpecOld=function(e,t){const r=t.get(e.node.key.id.name),{id:s,getId:i,setId:o,initAdded:a}=r,l=i||o;if(!e.isProperty()&&(a||!l))return;if(l)return t.set(e.node.key.id.name,Object.assign({},r,{initAdded:!0})),inheritPropComments(n.template.statement.ast`
|
||
|
|
var ${n.types.cloneNode(s)} = {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
get: ${i?i.name:e.scope.buildUndefinedNode()},
|
||
|
|
set: ${o?o.name:e.scope.buildUndefinedNode()}
|
||
|
|
}
|
||
|
|
`,e);const p=e.node.value||e.scope.buildUndefinedNode();return inheritPropComments(n.template.statement.ast`
|
||
|
|
var ${n.types.cloneNode(s)} = {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
writable: true,
|
||
|
|
value: ${p}
|
||
|
|
};
|
||
|
|
`,e)};function buildPrivateMethodInitLoose(e,t,r){const s=r.get(t.node.key.id.name),{methodId:i,id:o,getId:a,setId:l,initAdded:p}=s;if(p)return;if(i)return inheritPropComments(n.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${o}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
value: ${i.name}
|
||
|
|
});
|
||
|
|
`,t);return a||l?(r.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),inheritPropComments(n.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${o}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
get: ${a?a.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${l?l.name:t.scope.buildUndefinedNode()}
|
||
|
|
});
|
||
|
|
`,t)):void 0}function buildPrivateInstanceMethodInitSpec(e,t,r,s){const i=r.get(t.node.key.id.name);if(!i.initAdded){if(!newHelpers(s)){if(i.getId||i.setId)return function(e,t,r,s){const i=r.get(t.node.key.id.name),{id:o,getId:a,setId:l}=i;if(r.set(t.node.key.id.name,Object.assign({},i,{initAdded:!0})),!s.availableHelper("classPrivateFieldInitSpec"))return inheritPropComments(n.template.statement.ast`
|
||
|
|
${o}.set(${e}, {
|
||
|
|
get: ${a?a.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${l?l.name:t.scope.buildUndefinedNode()}
|
||
|
|
});
|
||
|
|
`,t);const p=s.addHelper("classPrivateFieldInitSpec");return inheritLoc(inheritPropComments(n.template.statement.ast`${p}(
|
||
|
|
${n.types.thisExpression()},
|
||
|
|
${n.types.cloneNode(o)},
|
||
|
|
{
|
||
|
|
get: ${a?a.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${l?l.name:t.scope.buildUndefinedNode()}
|
||
|
|
},
|
||
|
|
)`,t),t.node)}(e,t,r,s)}return function(e,t,r,s){const i=r.get(t.node.key.id.name),{id:o}=i;if(!s.availableHelper("classPrivateMethodInitSpec"))return inheritPropComments(n.template.statement.ast`${o}.add(${e})`,t);const a=s.addHelper("classPrivateMethodInitSpec");return inheritPropComments(n.template.statement.ast`${a}(
|
||
|
|
${n.types.thisExpression()},
|
||
|
|
${n.types.cloneNode(o)}
|
||
|
|
)`,t)}(e,t,r,s)}}function buildPublicFieldInitLoose(e,t){const{key:r,computed:s}=t.node,i=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.types.expressionStatement(n.types.assignmentExpression("=",n.types.memberExpression(e,r,s||n.types.isLiteral(r)),i)),t)}function buildPublicFieldInitSpec(e,t,r){const{key:s,computed:i}=t.node,o=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.types.expressionStatement(n.types.callExpression(r.addHelper("defineProperty"),[e,i||n.types.isLiteral(s)?s:n.types.stringLiteral(s.name),o])),t)}function buildPrivateStaticMethodInitLoose(e,t,r,s){const i=s.get(t.node.key.id.name),{id:o,methodId:a,getId:l,setId:p,initAdded:c}=i;if(c)return;return l||p?(s.set(t.node.key.id.name,Object.assign({},i,{initAdded:!0})),inheritPropComments(n.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${o}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
get: ${l?l.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${p?p.name:t.scope.buildUndefinedNode()}
|
||
|
|
})
|
||
|
|
`,t)):inheritPropComments(n.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${o}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
value: ${a.name}
|
||
|
|
});
|
||
|
|
`,t)}function buildPrivateMethodDeclaration(e,t,r,s=!1){const i=r.get(t.node.key.id.name),{id:o,methodId:a,getId:l,setId:p,getterDeclared:c,setterDeclared:u,static:d}=i,{params:h,body:m,generator:y,async:b}=t.node,g=l&&0===h.length,x=p&&h.length>0;if(g&&c||x&&u)return r.set(t.node.key.id.name,Object.assign({},i,{initAdded:!0})),null;if(newHelpers(e)&&(g||x)&&!s){const e=t.get("body").scope,r=e.generateUidIdentifier("this"),s={thisRef:r,argumentsPath:[]};if(t.traverse(f,s),s.argumentsPath.length){const t=e.generateUidIdentifier("arguments");e.push({id:t,init:n.template.expression.ast`[].slice.call(arguments, 1)`});for(const e of s.argumentsPath)e.replaceWith(n.types.cloneNode(t))}h.unshift(n.types.cloneNode(r))}let v=a;return g?(r.set(t.node.key.id.name,Object.assign({},i,{getterDeclared:!0,initAdded:!0})),v=l):x?(r.set(t.node.key.id.name,Object.assign({},i,{setterDeclared:!0,initAdded:!0})),v=p):d&&!s&&(v=o),inheritPropComments(n.types.functionDeclaration(n.types.cloneNode(v),h,m,y,b),t)}const f=s.visitors.environmentVisitor({Identifier(e,t){t.argumentsPath&&"arguments"===e.node.name&&t.argumentsPath.push(e)},UnaryExpression(e){const{node:t}=e;if("delete"===t.operator){const r=(0,p.skipTransparentExprWrapperNodes)(t.argument);n.types.isThisExpression(r)&&e.replaceWith(n.types.booleanLiteral(!0))}},ThisExpression(e,t){t.needsClassRef=!0,e.replaceWith(n.types.cloneNode(t.thisRef))},MetaProperty(e){const{node:t,scope:r}=e;"new"===t.meta.name&&"target"===t.property.name&&e.replaceWith(r.buildUndefinedNode())}}),y={ReferencedIdentifier(e,t){e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)&&(t.needsClassRef=!0,e.node.name=t.thisRef.name)}};function replaceThisContext(e,t,r){var n;const s={thisRef:t,needsClassRef:!1,innerBinding:r};return e.isMethod()||e.traverse(f,s),null!=r&&null!=(n=s.thisRef)&&n.name&&s.thisRef.name!==r.name&&e.traverse(y,s),s.needsClassRef}function isNameOrLength({key:e,computed:t}){return"Identifier"===e.type?!t&&("name"===e.name||"length"===e.name):"StringLiteral"===e.type&&("name"===e.value||"length"===e.value)}function inheritPropComments(e,t){return n.types.inheritLeadingComments(e,t.node),n.types.inheritInnerComments(e,t.node),e}function inheritLoc(e,t){return e.start=t.start,e.end=t.end,e.loc=t.loc,e}},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-create-class-features-plugin/lib/index.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FEATURES",{enumerable:!0,get:function(){return p.FEATURES}}),Object.defineProperty(t,"buildCheckInRHS",{enumerable:!0,get:function(){return i.buildCheckInRHS}}),Object.defineProperty(t,"buildNamedEvaluationVisitor",{enumerable:!0,get:function(){return o.buildNamedEvaluationVisitor}}),t.createClassFeaturePlugin=function({name:e,feature:t,loose:d,manipulateOptions:h,api:m,inherits:f,decoratorVersion:y}){var b;if(t&p.FEATURES.decorators&&("2023-11"===y||"2023-05"===y||"2023-01"===y||"2022-03"===y||"2021-12"===y))return(0,o.default)(m,{loose:d},y,f);null!=m||(m={assumption:()=>{}});const g=m.assumption("setPublicClassFields"),x=m.assumption("privateFieldsAsSymbols"),v=m.assumption("privateFieldsAsProperties"),E=null!=(b=m.assumption("noUninitializedPrivateFieldAccess"))&&b,T=m.assumption("constantSuper"),S=m.assumption("noDocumentAll");if(v&&x)throw new Error('Cannot enable both the "privateFieldsAsProperties" and "privateFieldsAsSymbols" assumptions as the same time.');const P=v||x;if(!0===d){const t=[];void 0!==g&&t.push('"setPublicClassFields"'),void 0!==v&&t.push('"privateFieldsAsProperties"'),void 0!==x&&t.push('"privateFieldsAsSymbols"'),0!==t.length&&console.warn(`[${e}]: You are using the "loose: true" option and you are explicitly setting a value for the ${t.join(" and ")} assumption${t.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:\n\t"assumptions": {\n\t\t"setPublicClassFields": true,\n\t
|
||
|
|
Promise.resolve().then(() => ${s(i)})
|
||
|
|
`:s(i);const o=n.types.isTemplateLiteral(i)?n.types.identifier("specifier"):n.types.templateLiteral([n.types.templateElement({raw:""}),n.types.templateElement({raw:""})],[n.types.identifier("specifier")]);return t?n.template.expression.ast`
|
||
|
|
(specifier =>
|
||
|
|
new Promise(r => r(${o}))
|
||
|
|
.then(s => ${s(n.types.identifier("s"))})
|
||
|
|
)(${i})
|
||
|
|
`:r?n.template.expression.ast`
|
||
|
|
(specifier =>
|
||
|
|
new Promise(r => r(${s(o)}))
|
||
|
|
)(${i})
|
||
|
|
`:n.template.expression.ast`
|
||
|
|
(specifier => ${s(o)})(${i})
|
||
|
|
`};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js");t.getDynamicImportSource=function(e){const[t]=e.arguments;return n.types.isStringLiteral(t)||n.types.isTemplateLiteral(t)?t:n.template.expression.ast`\`\${${t}}\``}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/get-module-name.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=getModuleName;{const e=getModuleName;t.default=getModuleName=function(t,r){var n,s,i,o;return e(t,{moduleId:null!=(n=r.moduleId)?n:t.moduleId,moduleIds:null!=(s=r.moduleIds)?s:t.moduleIds,getModuleId:null!=(i=r.getModuleId)?i:t.getModuleId,moduleRoot:null!=(o=r.moduleRoot)?o:t.moduleRoot})}}function getModuleName(e,t){const{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e,{moduleId:i,moduleIds:o=!!i,getModuleId:a,moduleRoot:l=s}=t;if(!o)return null;if(null!=i&&!a)return i;let p=null!=l?l+"/":"";if(n){const e=null!=s?new RegExp("^"+s+"/?"):"";p+=n.replace(e,"").replace(/\.\w*$/,"")}return p=p.replace(/\\/g,"/"),a&&a(p)||p}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/index.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildDynamicImport",{enumerable:!0,get:function(){return c.buildDynamicImport}}),t.buildNamespaceInitStatements=function(e,t,r=!1,n=p.wrapReference){var i;const o=[],a=s.types.identifier(t.name);for(const e of t.importsNamespace)e!==t.name&&o.push(s.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:s.types.cloneNode(a)}));const l=null!=(i=n(a,t.wrap))?i:a;r&&o.push(...buildReexportsFromMeta(e,t,!0,n));for(const r of t.reexportNamespace)o.push((s.types.isIdentifier(l)?s.template.statement`EXPORTS.NAME = NAMESPACE;`:s.template.statement`
|
||
|
|
Object.defineProperty(EXPORTS, "NAME", {
|
||
|
|
enumerable: true,
|
||
|
|
get: function() {
|
||
|
|
return NAMESPACE;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
`)({EXPORTS:e.exportName,NAME:r,NAMESPACE:s.types.cloneNode(l)}));if(t.reexportAll){const n=function(e,t,r){return(r?s.template.statement`
|
||
|
|
Object.keys(NAMESPACE).forEach(function(key) {
|
||
|
|
if (key === "default" || key === "__esModule") return;
|
||
|
|
VERIFY_NAME_LIST;
|
||
|
|
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
||
|
|
|
||
|
|
EXPORTS[key] = NAMESPACE[key];
|
||
|
|
});
|
||
|
|
`:s.template.statement`
|
||
|
|
Object.keys(NAMESPACE).forEach(function(key) {
|
||
|
|
if (key === "default" || key === "__esModule") return;
|
||
|
|
VERIFY_NAME_LIST;
|
||
|
|
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
||
|
|
|
||
|
|
Object.defineProperty(EXPORTS, key, {
|
||
|
|
enumerable: true,
|
||
|
|
get: function() {
|
||
|
|
return NAMESPACE[key];
|
||
|
|
},
|
||
|
|
});
|
||
|
|
});
|
||
|
|
`)({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?s.template`
|
||
|
|
if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
|
||
|
|
`({EXPORTS_LIST:e.exportNameListName}):null})}(e,s.types.cloneNode(l),r);n.loc=t.reexportAll.loc,o.push(n)}return o},t.ensureStatementsHoisted=function(e){e.forEach(e=>{e._blockHoist=3})},Object.defineProperty(t,"getModuleName",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"hasExports",{enumerable:!0,get:function(){return l.hasExports}}),Object.defineProperty(t,"isModule",{enumerable:!0,get:function(){return i.isModule}}),Object.defineProperty(t,"isSideEffectImport",{enumerable:!0,get:function(){return l.isSideEffectImport}}),t.rewriteModuleStatementsAndPrepareHeader=function(e,{exportName:t,strict:r,allowTopLevelThis:c,strictMode:u,noInterop:d,importInterop:h=(d?"none":"babel"),lazy:m,getWrapperPayload:f=p.toGetWrapperPayload(null!=m&&m),wrapReference:y=p.wrapReference,esNamespaceOnly:b,filename:g,constantReexports:x=arguments[1].loose,enumerableModuleMeta:v=arguments[1].loose,noIncompleteNsImportDetection:E}){(0,l.validateImportInteropOption)(h),n((0,i.isModule)(e),"Cannot process module statements in a script"),e.node.sourceType="script";const T=(0,l.default)(e,t,{importInterop:h,initializeReexports:x,getWrapperPayload:f,esNamespaceOnly:b,filename:g});c||(0,o.default)(e);if((0,a.default)(e,T,y),!1!==u){e.node.directives.some(e=>"use strict"===e.value.value)||e.unshiftContainer("directives",s.types.directive(s.types.directiveLiteral("use strict")))}const S=[];(0,l.hasExports)(T)&&!r&&S.push(function(e,t=!1){return(t?s.template.statement`
|
||
|
|
EXPORTS.__esModule = true;
|
||
|
|
`:s.template.statement`
|
||
|
|
Object.defineProperty(EXPORTS, "__esModule", {
|
||
|
|
value: true,
|
||
|
|
});
|
||
|
|
`)({EXPORTS:e.exportName})}(T,v));const P=function(e,t){const r=Object.create(null);for(const e of t.local.values())for(const t of e.names)r[t]=!0;let n=!1;for(const e of t.source.values()){for(const t of e.reexports.keys())r[t]=!0;for(const t of e.reexportNamespace)r[t]=!0;n=n||!!e.reexportAll}if(!n||0===Object.keys(r).length)return null;const i=e.scope.generateUidIdentifier("exportNames");return delete r.default,{name:i.name,statement:s.types.variableDeclaration("var",[s.types.variableDeclarator(i,s.types.valueToNode(r))])}}(e,T);P&&(T.exportNameListName=P.name,S.push(P.statement));return S.push(...function(e,t,r,n=!1,i=!1){const o=[];for(const[e,r]of t.local)if("import"===r.kind);else if("hoisted"===r.kind)o.push([r.names[0],buildInitStatement(t,r.names,s.types.identifier(e))]);else if(!i)for(const e of r.names)o.push([e,null]);for(const e of t.source.values()){if(!n){const n=buildReexportsFromMeta(t,e,!1,r),s=[...e.reexports.keys()];for(let e=0;e<n.length;e++)o.push([s[e],n[e]])}if(!i)for(const t of e.reexportNamespace)o.push([t,null])}o.sort(([e],[t])=>e<t?-1:t<e?1:0);const a=[];if(i)for(const[,e]of o)a.push(e);else{const r=100;for(let n=0;n<o.length;n+=r){let s=[];for(let i=0;i<r&&n+i<o.length;i++){const[r,l]=o[n+i];null!==l?(s.length>0&&(a.push(buildInitStatement(t,s,e.scope.buildUndefinedNode())),s=[]),a.push(l)):s.push(r)}s.length>0&&a.push(buildInitStatement(t,s,e.scope.buildUndefinedNode()))}}return a}(e,T,y,x,E)),{meta:T,headers:S}},Object.defineProperty(t,"rewriteThis",{enumerable:!0,get:function(){return o.default}}),t.wrapInterop=function(e,t,r){if("none"===r)return null;if("node-namespace"===r)return s.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,s.types.booleanLiteral(!0)]);if("node-default"===r)return null;let n;if("default"===r)n="interopRequireDefault";else{if("namespace"!==r)throw new Error(`Unknown interop: ${r}`);n="interopRequireWildcard"}return s.types.callExpression(e.hub.addHelper(n),[t])};var n=r("assert"),s=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js"),i=r("./node_modules/.pnpm/@babel+helper-module-imports@7.27.1/node_modules/@babel/helper-module-imports/lib/index.js"),o=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js"),a=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js"),l=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js"),p=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js"),c=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js"),u=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/get-module-name.js");t.getDynamicImportSource=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js").getDynamicImportSource;const d={constant:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
|
||
|
|
${e}.${t} = ${r};
|
||
|
|
`,constantComputed:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
|
||
|
|
${e}["${t}"] = ${r};
|
||
|
|
`,spec:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, "${t}", {
|
||
|
|
enumerable: true,
|
||
|
|
get: function() {
|
||
|
|
return ${r};
|
||
|
|
},
|
||
|
|
});
|
||
|
|
`};function buildReexportsFromMeta(e,t,r,n){var i;let o=s.types.identifier(t.name);o=null!=(i=n(o,t.wrap))?i:o;const{stringSpecifiers:a}=e;return Array.from(t.reexports,([n,i])=>{let l=s.types.cloneNode(o);"default"===i&&"node-default"===t.interop||(l=a.has(i)?s.types.memberExpression(l,s.types.stringLiteral(i),!0):s.types.memberExpression(l,s.types.identifier(i)));const p={exports:e.exportName,exportName:n,namespaceImport:l};return r||s.types.isIdentifier(l)?a.has(n)?d.constantComputed(p):d.constant(p):d.spec(p)})}const h={computed:({exports:e,name:t,value:r})=>s.template.expression.ast`${e}["${t}"] = ${r}`,default:({exports:e,name:t,value:r})=>s.template.expression.ast`${e}.${t} = ${r}`,define:({exports:e,name:t,value:r})=>s.template.expression.ast`
|
||
|
|
Object.defineProperty(${e}, "${t}", {
|
||
|
|
enumerable: true,
|
||
|
|
value: void 0,
|
||
|
|
writable: true
|
||
|
|
})["${t}"] = ${r}`};function buildInitStatement(e,t,r){const{stringSpecifiers:n,exportName:i}=e;return s.types.expressionStatement(t.reduce((e,t)=>{const r={exports:i,name:t,value:e};return"__proto__"===t?h.define(r):n.has(t)?h.computed(r):h.default(r)},r))}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toGetWrapperPayload=function(e){return(t,r)=>{if(!1===e)return null;if((0,s.isSideEffectImport)(r)||r.reexportAll)return null;if(!0===e)return t.includes(".")?null:"lazy";if(Array.isArray(e))return e.includes(t)?"lazy":null;if("function"==typeof e)return e(t)?"lazy":null;throw new Error(".lazy must be a boolean, string array, or function")}},t.wrapReference=function(e,t){return"lazy"===t?n.types.callExpression(e,[]):null};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js")},"./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,{importInterop:s,initializeReexports:i=!1,getWrapperPayload:o,esNamespaceOnly:a=!1,filename:l}){t||(t=e.scope.generateUidIdentifier("exports").name);const p=new Set;!function(e){e.get("body").forEach(e=>{e.isExportDefaultDeclaration()&&(null!=e.splitExportDeclaration||(e.splitExportDeclaration=r("./node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/index.js").NodePath.prototype.splitExportDeclaration),e.splitExportDeclaration())})}(e);const{local:c,sources:u,hasExports:d}=function(e,{getWrapperPayload:t,initializeReexports:r},s){const i=function(e,t,r){const n=new Map,s=e.scope,i=e.get("body");i.forEach(e=>{let r;if(e.isImportDeclaration())r="import";else{if(e.isExportDefaultDeclaration()&&(e=e.get("declaration")),e.isExportNamedDeclaration())if(e.node.declaration)e=e.get("declaration");else if(t&&e.node.source&&e.get("source").isStringLiteral())return void e.get("specifiers").forEach(e=>{assertExportSpecifier(e),n.set(e.get("local").node.name,"block")});if(e.isFunctionDeclaration())r="hoisted";else if(e.isClassDeclaration())r="block";else if(e.isVariableDeclaration({kind:"var"}))r="var";else{if(!e.isVariableDeclaration())return;r="block"}}Object.keys(e.getOuterBindingIdentifiers()).forEach(e=>{n.set(e,r)})});const o=new Map,getLocalMetadata=e=>{const t=e.node.name;let r=o.get(t);if(!r){var i,a;const l=null!=(i=n.get(t))?i:null==(a=s.getBinding(t))?void 0:a.kind;if(void 0===l)throw e.buildCodeFrameError(`Exporting local "${t}", which is not declared.`);r={names:[],kind:l},o.set(t,r)}return r};return i.forEach(e=>{if(!e.isExportNamedDeclaration()||!t&&e.node.source){if(e.isExportDefaultDeclaration()){const t=e.get("declaration");if(!t.isFunctionDeclaration()&&!t.isClassDeclaration())throw t.buildCodeFrameError("Unexpected default expression export.");getLocalMetadata(t.get("id")).names.push("default")}}else if(e.node.declaration){const t=e.get("declaration"),r=t.getOuterBindingIdentifierPaths();Object.keys(r).forEach(e=>{if("__esModule"===e)throw t.buildCodeFrameError('Illegal export "__esModule".');getLocalMetadata(r[e]).names.push(e)})}else e.get("specifiers").forEach(e=>{const t=e.get("local"),n=e.get("exported"),s=getLocalMetadata(t),i=getExportSpecifierName(n,r);if("__esModule"===i)throw n.buildCodeFrameError('Illegal export "__esModule".');s.names.push(i)})}),o}(e,r,s),o=new Map,a=new Map,getData=(t,r)=>{const s=t.value;let i=a.get(s);return i?o.get(s).push(r):(i={name:e.scope.generateUidIdentifier((0,n.basename)(s,(0,n.extname)(s))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,wrap:null,get lazy(){
|
||
|
|
(function() {
|
||
|
|
throw new Error('"' + '${e}' + '" is read-only.');
|
||
|
|
})()
|
||
|
|
`,i={ReferencedIdentifier(e){const{seen:t,buildImportReference:r,scope:s,imported:i,requeueInParent:o}=this;if(t.has(e.node))return;t.add(e.node);const a=e.node.name,l=i.get(a);if(l){if(function(e){do{switch(e.parent.type){case"TSTypeAnnotation":case"TSTypeAliasDeclaration":case"TSTypeReference":case"TypeAnnotation":case"TypeAlias":return!0;case"ExportSpecifier":return"type"===e.parentPath.parent.exportKind;default:if(e.parentPath.isStatement()||e.parentPath.isExpression())return!1}}while(e=e.parentPath)}(e))throw e.buildCodeFrameError(`Cannot transform the imported binding "${a}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);const t=e.scope.getBinding(a);if(s.getBinding(a)!==t)return;const i=r(l,e.node);if(i.loc=e.node.loc,(e.parentPath.isCallExpression({callee:e.node})||e.parentPath.isOptionalCallExpression({callee:e.node})||e.parentPath.isTaggedTemplateExpression({tag:e.node}))&&n.types.isMemberExpression(i))e.replaceWith(n.types.sequenceExpression([n.types.numericLiteral(0),i]));else if(e.isJSXIdentifier()&&n.types.isMemberExpression(i)){const{object:t,property:r}=i;e.replaceWith(n.types.jsxMemberExpression(n.types.jsxIdentifier(t.name),n.types.jsxIdentifier(r.name)))}else e.replaceWith(i);o(e),e.skip()}},UpdateExpression(e){const{scope:t,seen:r,imported:s,exported:i,requeueInParent:o,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);const l=e.get("argument");if(l.isMemberExpression())return;const p=e.node;if(l.isIdentifier()){const r=l.node.name;if(t.getBinding(r)!==e.scope.getBinding(r))return;const o=i.get(r),c=s.get(r);if((null==o?void 0:o.length)>0||c)if(c)e.replaceWith(n.types.assignmentExpression(p.operator[0]+"=",a(c,l.node),buildImportThrow(r)));else if(p.prefix)e.replaceWith(buildBindingExportAssignmentExpression(this.metadata,o,n.types.cloneNode(p),e.scope));else{const s=t.generateDeclaredUidIdentifier(r);e.replaceWith(n.types.sequenceExpression([n.types.assignmentExpression("=",n.types.cloneNode(s),n.types.cloneNode(p)),buildBindingExportAssignmentExpression(this.metadata,o,n.types.identifier(r),e.scope),n.types.cloneNode(s)]))}}o(e),e.skip()},AssignmentExpression:{exit(e){const{scope:t,seen:r,imported:s,exported:i,requeueInParent:o,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);const l=e.get("left");if(!l.isMemberExpression())if(l.isIdentifier()){const r=l.node.name;if(t.getBinding(r)!==e.scope.getBinding(r))return;const p=i.get(r),c=s.get(r);if((null==p?void 0:p.length)>0||c){const t=e.node;c&&(t.left=a(c,l.node),t.right=n.types.sequenceExpression([t.right,buildImportThrow(r)]));const{operator:s}=t;let i;i="="===s?t:"&&="===s||"||="===s||"??="===s?n.types.assignmentExpression("=",t.left,n.types.logicalExpression(s.slice(0,-1),n.types.cloneNode(t.left),t.right)):n.types.assignmentExpression("=",t.left,n.types.binaryExpression(s.slice(0,-1),n.types.cloneNode(t.left),t.right)),e.replaceWith(buildBindingExportAssignmentExpression(this.metadata,p,i,e.scope)),o(e),e.skip()}}else{const r=l.getOuterBindingIdentifiers(),a=Object.keys(r).filter(r=>t.getBinding(r)===e.scope.getBinding(r)),p=a.find(e=>s.has(e));p&&(e.node.right=n.types.sequenceExpression([e.node.right,buildImportThrow(p)]));const c=[];if(a.forEach(t=>{const r=i.get(t)||[];r.length>0&&c.push(buildBindingExportAssignmentExpression(this.metadata,r,n.types.identifier(t),e.scope))}),c.length>0){let t=n.types.sequenceExpression(c);e.parentPath.isExpressionStatement()&&(t=n.types.expressionStatement(t),t._blockHoist=e.parentPath.node._blockHoist);o(e.insertAfter(t)[0])}}}},ForXStatement(e){const{scope:t,node:r}=e,{left:s}=r,{exported:i,imported:o,scope:a}=this;if(!n.types.isVariableDeclaration(s)){let r,l=!1;const p=e.get("body").scope;for(const e of Object.keys(n.types.getOuterBindingIdentifiers(s)))a.getBinding(e)===t.getBinding(e)&&(i.has(e)&&(l=!0,p.hasOwnBinding(e)&&p.rename(e)),o.has(e)&&!r&&(r=e));if(!l&&!r)return;e.ensureBlock();const c=e.get("body"),u=t.generateUidIdentifierBasedOnNode(s);e.get("left").replaceWith(n.types.var
|
||
|
|
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
|
||
|
|
`]):i.template.expression.ast`
|
||
|
|
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
|
||
|
|
`}},g={memoise(e,t){const{scope:r,node:n}=e,{computed:s,property:i}=n;if(!s)return;const o=r.maybeGenerateMemoised(i);o&&this.memoiser.set(i,o,t)},prop(e){const{computed:t,property:r}=e.node;return this.memoiser.has(r)?p(this.memoiser.get(r)):t?p(r):h(r.name)},_getPrototypeOfExpression(){const e=p(this.getObjectRef()),t=this.isStatic||this.isPrivateMethod?e:u(e,c("prototype"));return l(this.file.addHelper("getPrototypeOf"),[t])},get(e){return this._get(e)},_get(e){const t=this._getPrototypeOfExpression();return l(this.file.addHelper("get"),[this.isDerivedConstructor?d([m(),t]):t,this.prop(e),m()])},set(e,t){const r=this._getPrototypeOfExpression();return l(this.file.addHelper("set"),[this.isDerivedConstructor?d([m(),r]):r,this.prop(e),t,m(),i.types.booleanLiteral(e.isInStrictMode())])},destructureSet(e){throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call(e,t){return(0,s.default)(this._get(e),m(),t,!1)},optionalCall(e,t){return(0,s.default)(this._get(e),p(m()),t,!0)},delete(e){return e.node.computed?d([l(this.file.addHelper("toPropertyKey"),[p(e.node.property)]),i.template.expression.ast`
|
||
|
|
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
|
||
|
|
`]):i.template.expression.ast`
|
||
|
|
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
|
||
|
|
`}},x=Object.assign({},b,{prop(e){const{property:t}=e.node;return this.memoiser.has(t)?p(this.memoiser.get(t)):p(t)},get(e){const{isStatic:t,getSuperRef:r}=this,{computed:n}=e.node,s=this.prop(e);let i;var o,a;t?i=null!=(o=r())?o:u(c("Function"),c("prototype")):i=u(null!=(a=r())?a:c("Object"),c("prototype"));return u(i,s,n)},set(e,t){const{computed:r}=e.node,n=this.prop(e);return a("=",u(m(),n,r),t)},destructureSet(e){const{computed:t}=e.node,r=this.prop(e);return u(m(),r,t)},call(e,t){return(0,s.default)(this.get(e),m(),t,!1)},optionalCall(e,t){return(0,s.default)(this.get(e),m(),t,!0)}});t.default=class{constructor(e){var t;const r=e.methodPath;this.methodPath=r,this.isDerivedConstructor=r.isClassMethod({kind:"constructor"})&&!!e.superRef,this.isStatic=r.isObjectMethod()||r.node.static||(null==r.isStaticBlock?void 0:r.isStaticBlock()),this.isPrivateMethod=r.isPrivate()&&r.isMethod(),this.file=e.file,this.constantSuper=null!=(t=e.constantSuper)?t:e.isLoose,this.opts=e}getObjectRef(){return p(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){return this.opts.superRef?p(this.opts.superRef):this.opts.getSuperRef?p(this.opts.getSuperRef()):void 0}replace(){const{methodPath:e}=this;this.opts.refToPreserve&&e.traverse(y,{refName:this.opts.refToPreserve.name});const t=this.constantSuper?x:this.file.availableHelper("superPropSet")?b:g;f.shouldSkip=t=>{if(t.parentPath===e&&("decorators"===t.parentKey||"key"===t.parentKey))return!0},(0,n.default)(e,f,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:t.get},t))}}},"./node_modules/.pnpm/@babel+helper-simple-access@7.27.1/node_modules/@babel/helper-simple-access/lib/index.js":function(e,t,r){"use strict";t.default=function(e,t){var r;e.traverse(h,{scope:e.scope,bindingNames:t,seen:new WeakSet,includeUpdateExpression:null==(r=arguments[2])||r})};var n=r("./node_modules/.pnpm/@babel+types@7.28.4/node_modules/@babel/types/lib/index.js");const{LOGICAL_OPERATORS:s,assignmentExpression:i,binaryExpression:o,cloneNode:a,identifier:l,logicalExpression:p,numericLiteral:c,sequenceExpression:u,unaryExpression:d}=n,h={AssignmentExpression:{exit(e){const{scope:t,seen:r,bindingNames:n}=this;if("="===e.node.operator)return;if(r.has(e.node))return;r.add(e.node);const l=e.get("left");if(!l.isIdentifier())return;const c=l.node.name;if(!n.has(c))return;if(t.getBinding(c)!==e.scope.getBinding(c))return;const u=e.node.operator.slice(0,-1);s.includes(u)?e.replaceWith(p(u,e.node.left,i("=",a(e.node.left),e.node.right))):(e.node.right=o(u,a(e.node.left),e.node.right),e.node.operator="=")}}};h.UpdateExpression={exit(e){if(!this.includeUpdateExpression)return;const{scope:t,bindingNames:r}=this,n=e.get("argument");if(!n.isIdentifier())return;const s=n.node.name;if(r.has(s)&&t.getBinding(s)===e.scope.getBinding(s))if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()){const t="++"===e.node.operator?"+=":"-=";e.replaceWith(i(t,n.node,c(1)))}else if(e.node.prefix)e.replaceWith(i("=",l(s),o(e.node.operator[0],d("+",n.node),c(1))));else{const t=e.scope.generateUidIdentifierBasedOnNode(n.node,"old"),r=t.name;e.scope.push({id:t});const s=o(e.node.operator[0],l(r),c(1));e.replaceWith(u([i("=",l(r),d("+",n.node)),i("=",a(n.node),s),l(r)]))}}}},"./node_modules/.pnpm/@babel+helper-skip-transparent-expression-wrappers@7.27.1/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTransparentExprWrapper=isTransparentExprWrapper,t.skipTransparentExprWrapperNodes=function(e){for(;isTransparentExprWrapper(e);)e=e.expression;return e},t.skipTransparentExprWrappers=function(e){for(;isTransparentExprWrapper(e.node);)e=e.get("expression");return e};var n=r("./node_modules/.pnpm/@babel+types@7.28.4/node_modules/@babel/types/lib/index.js");const{isParenthesizedExpression:s,isTSAsExpression:i,isTSNon
|
||
|
|
(function(){
|
||
|
|
throw new Error(
|
||
|
|
"The CommonJS '" + "${e}" + "' variable is not available in ES6 modules." +
|
||
|
|
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
|
||
|
|
"Babel config for this file.");
|
||
|
|
})()
|
||
|
|
`,S={ReferencedIdentifier(e){const t=e.node.name;if("module"!==t&&"exports"!==t)return;const r=e.scope.getBinding(t);this.scope.getBinding(t)!==r||e.parentPath.isObjectProperty({value:e.node})&&e.parentPath.parentPath.isObjectPattern()||e.parentPath.isAssignmentExpression({left:e.node})||e.isAssignmentExpression({left:e.node})||e.replaceWith(getAssertion(t))},UpdateExpression(e){const t=e.get("argument");if(!t.isIdentifier())return;const r=t.node.name;if("module"!==r&&"exports"!==r)return;const n=e.scope.getBinding(r);this.scope.getBinding(r)===n&&e.replaceWith(i.types.assignmentExpression(e.node.operator[0]+"=",t.node,getAssertion(r)))},AssignmentExpression(e){const t=e.get("left");if(t.isIdentifier()){const r=t.node.name;if("module"!==r&&"exports"!==r)return;const n=e.scope.getBinding(r);if(this.scope.getBinding(r)!==n)return;const s=e.get("right");s.replaceWith(i.types.sequenceExpression([s.node,getAssertion(r)]))}else if(t.isPattern()){const r=t.getOuterBindingIdentifiers(),n=Object.keys(r).find(t=>("module"===t||"exports"===t)&&this.scope.getBinding(t)===e.scope.getBinding(t));if(n){const t=e.get("right");t.replaceWith(i.types.sequenceExpression([t.node,getAssertion(n)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),b&&(0,l.defineCommonJSHook)(this.file,(0,a.lazyImportsHook)(b))},visitor:{["CallExpression"+(e.types.importExpression?"|ImportExpression":"")](e){if(!this.file.has("@babel/plugin-proposal-dynamic-import"))return;if(e.isCallExpression()&&!i.types.isImport(e.node.callee))return;let{scope:t}=e;do{t.rename("require")}while(t=t.parent);(0,o.transformDynamicImport)(e,f,this.file)},Program:{exit(e,r){if(!(0,s.isModule)(e))return;e.scope.rename("exports"),e.scope.rename("module"),e.scope.rename("require"),e.scope.rename("__filename"),e.scope.rename("__dirname"),g||e.traverse(S,{scope:e.scope});let n=(0,s.getModuleName)(this.file.opts,t);n&&(n=i.types.stringLiteral(n));const o=(0,l.makeInvokers)(this.file),{meta:a,headers:p}=(0,s.rewriteModuleStatementsAndPrepareHeader)(e,{exportName:"exports",constantReexports:v,enumerableModuleMeta:E,strict:h,strictMode:m,allowTopLevelThis:d,noInterop:f,importInterop:y,wrapReference:o.wrapReference,getWrapperPayload:o.getWrapperPayload,esNamespaceOnly:"string"==typeof r.filename&&/\.mjs$/.test(r.filename)?u:c,noIncompleteNsImportDetection:T,filename:this.file.opts.filename});for(const[t,r]of a.source){const n=i.types.callExpression(i.types.identifier("require"),[i.types.stringLiteral(t)]);let l;if((0,s.isSideEffectImport)(r)){if(b&&"function"===r.wrap)throw new Error("Assertion failure");l=i.types.expressionStatement(n)}else{const t=(0,s.wrapInterop)(e,n,r.interop)||n;if(r.wrap){const e=o.buildRequireWrapper(r.name,t,r.wrap,r.referenced);if(!1===e)continue;l=e}null!=l||(l=i.template.statement.ast`
|
||
|
|
var ${r.name} = ${t};
|
||
|
|
`)}l.loc=r.loc,p.push(l),p.push(...(0,s.buildNamespaceInitStatements)(a,r,v,o.wrapReference))}(0,s.ensureStatementsHoisted)(p),e.unshiftContainer("body",p),e.get("body").forEach(e=>{p.includes(e.node)&&e.isVariableDeclaration()&&e.scope.registerDeclaration(e)})}}}}})},"./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.27.1_@babel+core@7.28.4/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lazyImportsHook=void 0;var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/index.js");t.lazyImportsHook=e=>({name:"@babel/plugin-transform-modules-commonjs/lazy",version:"7.27.1",getWrapperPayload:(t,r)=>(0,s.isSideEffectImport)(r)||r.reexportAll?null:!0===e?t.includes(".")?null:"lazy/function":Array.isArray(e)?e.includes(t)?"lazy/function":null:"function"==typeof e?e(t)?"lazy/function":null:void 0,buildRequireWrapper(e,t,r,s){if("lazy/function"===r)return!!s&&n.template.statement.ast`
|
||
|
|
function ${e}() {
|
||
|
|
const data = ${t};
|
||
|
|
${e} = function(){ return data; };
|
||
|
|
return data;
|
||
|
|
}
|
||
|
|
`},wrapReference(e,t){if("lazy/function"===t)return n.types.callExpression(e,[])}})},"./node_modules/.pnpm/@babel+plugin-transform-react-jsx@7.27.1_@babel+core@7.28.4/node_modules/@babel/plugin-transform-react-jsx/lib/create-plugin.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({name:e,development:t}){return(0,s.declare)((r,s)=>{const{pure:h,throwIfNamespace:m=!0,filter:f,runtime:y=(t?"automatic":"classic"),importSource:b=l.importSource,pragma:g=l.pragma,pragmaFrag:x=l.pragmaFrag}=s;var{useSpread:v=!1,useBuiltIns:E=!1}=s;if("classic"===y){if("boolean"!=typeof v)throw new Error("transform-react-jsx currently only accepts a boolean option for useSpread (defaults to false)");if("boolean"!=typeof E)throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");if(v&&E)throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread but not both")}const T={JSXOpeningElement(e,t){const r=[];(function(e){do{const{path:t}=e;if(t.isFunctionParent()&&!t.isArrowFunctionExpression())return!t.isMethod()||("constructor"!==t.node.kind||!isDerivedClass(t.parentPath.parentPath));if(t.isTSModuleBlock())return!1}while(e=e.parent);return!0})(e.scope)&&r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__self"),i.types.jsxExpressionContainer(i.types.thisExpression()))),r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__source"),i.types.jsxExpressionContainer(function(e,t){const r=e.node.loc;if(!r)return e.scope.buildUndefinedNode();if(!t.fileNameIdentifier){const{filename:r=""}=t,n=e.scope.generateUidIdentifier("_jsxFileName");e.scope.getProgramParent().push({id:n,init:i.types.stringLiteral(r)}),t.fileNameIdentifier=n}return function(e,t,r){const n=null!=t?i.types.numericLiteral(t):i.types.nullLiteral(),s=null!=r?i.types.numericLiteral(r+1):i.types.nullLiteral();return i.template.expression.ast`{
|
||
|
|
fileName: ${e},
|
||
|
|
lineNumber: ${n},
|
||
|
|
columnNumber: ${s},
|
||
|
|
}`}(i.types.cloneNode(t.fileNameIdentifier),r.start.line,r.start.column)}(e,t)))),e.pushContainer("attributes",r)}};return{name:e,inherits:n.default,visitor:{JSXNamespacedName(e){if(m)throw e.buildCodeFrameError("Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set `throwIfNamespace: false` to bypass this warning.")},JSXSpreadChild(e){throw e.buildCodeFrameError("Spread children are not supported in React.")},Program:{enter(e,r){const{file:n}=r;let a=y,h=b,m=g,f=x,v=!!s.importSource,E=!!s.pragma,S=!!s.pragmaFrag;if(n.ast.comments)for(const e of n.ast.comments){const t=p.exec(e.value);t&&(h=t[1],v=!0);const r=c.exec(e.value);r&&(a=r[1]);const n=u.exec(e.value);n&&(m=n[1],E=!0);const s=d.exec(e.value);s&&(f=s[1],S=!0)}if(set(r,"runtime",a),"classic"===a){if(v)throw e.buildCodeFrameError("importSource cannot be set when runtime is classic.");const t=toMemberExpression(m),n=toMemberExpression(f);set(r,"id/createElement",()=>i.types.cloneNode(t)),set(r,"id/fragment",()=>i.types.cloneNode(n)),set(r,"defaultPure",m===l.pragma)}else{if("automatic"!==a)throw e.buildCodeFrameError('Runtime must be either "classic" or "automatic".');{if(E||S)throw e.buildCodeFrameError("pragma and pragmaFrag cannot be set when runtime is automatic.");const define=(n,s)=>set(r,n,function(e,r,n,s){return()=>{const a=function(e,r){switch(r){case"Fragment":return`${e}/${t?"jsx-dev-runtime":"jsx-runtime"}`;case"jsxDEV":return`${e}/jsx-dev-runtime`;case"jsx":case"jsxs":return`${e}/jsx-runtime`;case"createElement":return e}}(s,n);if((0,o.isModule)(r)){let t=get(e,`imports/${n}`);return t?i.types.cloneNode(t):(t=(0,o.addNamed)(r,n,a,{importedInterop:"uncompiled",importPosition:"after"}),set(e,`imports/${n}`,t),t)}{let t=get(e,`requires/${a}`);return t?t=i.types.cloneNode(t):(t=(0,o.addNamespace)(r,a,{importedInterop:"uncompiled"}),set(e,`requires/${a}`,t)),i.types.memberExpression(t,i.types.identifier(n))}}}(r,e,s,h));define("id/jsx",t?"jsxDEV":"jsx"),define("id/jsxs",t?"jsxDEV":"jsxs"),define("id/createElement","createElement"),define("id/fragment","Fragment"),set(r,"defaultPure",h===l.importSource)}}t&&e.traverse(T,r)}},JSXFragment:{exit(e,r){let n;n="classic"===get(r,"runtime")?function(e,t){if(f&&!f(e.node,t))return;return call(t,"createElement",[get(t,"id/fragment")(),i.types.nullLiteral(),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=[get(r,"id/fragment")()],s=i.types.react.buildChildren(e.node);n.push(i.types.objectExpression(s.length>0?[buildChildrenProperty(s)]:[])),t&&n.push(e.scope.buildUndefinedNode(),i.types.booleanLiteral(s.length>1));return call(r,s.length>1?"jsxs":"jsx",n)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXElement:{exit(e,r){let n;n="classic"===get(r,"runtime")||function(e){const t=e.get("openingElement"),r=t.node.attributes;let n=!1;for(let e=0;e<r.length;e++){const t=r[e];if(n&&i.types.isJSXAttribute(t)&&"key"===t.name.name)return!0;i.types.isJSXSpreadAttribute(t)&&(n=!0)}return!1}(e)?function(e,t){const r=e.get("openingElement");return call(t,"createElement",[getTag(r),buildCreateElementOpeningElementAttributes(t,e,r.get("attributes")),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=e.get("openingElement"),s=[getTag(n)],o=[],a=Object.create(null);for(const t of n.get("attributes"))if(t.isJSXAttribute()&&i.types.isJSXIdentifier(t.node.name)){const{name:r}=t.node.name;switch(r){case"__source":case"__self":if(a[r])throw sourceSelfError(e,r);case"key":{const e=convertAttributeValue(t.node.value);if(null===e)throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');a[r]=e;break}default:o.push(t)}}else o.push(t);const l=i.types.react.buildChildren(e.node);let p;p=o.length||l.length?function(e,t){const r=e.reduce(accumulateAttribute,[]);(null==t?void 0:t.length)>0&&r.push(buildChildrenProperty(t));return i.types.objectExpression(r)}(o,l):i.types.objectExpression([]);if(s.push(p),t){var c;s.push(null!=(c=a.key)?c:e.scope.buildUndefinedNode(),i.types.booleanLiteral
|
||
|
|
this.${r.cloneNode(a)} = ${r.cloneNode(a)}
|
||
|
|
`),t.replaceWith(t.get("parameter")),o.registerBinding("param",t)}}(0,i.injectInitialization)(t,e,s)}};return{name:"transform-typescript",inherits:s.default,visitor:{Pattern:visitPattern,Identifier:visitPattern,RestElement:visitPattern,Program:{enter(e,t){const{file:r}=t;let n=null,s=null;const i=e.scope;if(l.GLOBAL_TYPES.has(i)||l.GLOBAL_TYPES.set(i,new Set),r.ast.comments)for(const e of r.ast.comments){const t=d.exec(e.value);t&&(t[1]?s=t[2]:n=t[2])}let o=n||m;o&&([o]=o.split("."));let a=s||f;a&&([a]=a.split("."));for(let r of e.get("body")){if(r.isImportDeclaration()){if(c.has(t.file.ast.program)||c.set(t.file.ast.program,!0),"type"===r.node.importKind){for(const e of r.node.specifiers)(0,l.registerGlobalType)(i,e.local.name);r.remove();continue}const n=new Set,s=r.node.specifiers.length,isAllSpecifiersElided=()=>s>0&&s===n.size;for(const e of r.node.specifiers)if("ImportSpecifier"===e.type&&"type"===e.importKind){(0,l.registerGlobalType)(i,e.local.name);const t=r.scope.getBinding(e.local.name);t&&n.add(t.path)}if(y)c.set(e.node,!1);else{if(0===r.node.specifiers.length){c.set(e.node,!1);continue}for(const t of r.node.specifiers){const s=r.scope.getBinding(t.local.name);s&&!n.has(s.path)&&(isImportTypeOnly({binding:s,programPath:e,pragmaImportName:o,pragmaFragImportName:a})?n.add(s.path):c.set(e.node,!1))}}if(isAllSpecifiersElided()&&!y)r.remove();else for(const e of n)e.remove();continue}if(!y&&r.isTSImportEqualsDeclaration()){const{id:t}=r.node,n=r.scope.getBinding(t.name);if(n&&!r.node.isExport&&isImportTypeOnly({binding:n,programPath:e,pragmaImportName:o,pragmaFragImportName:a})){r.remove();continue}}if(r.isExportDeclaration()&&(r=r.get("declaration")),r.isVariableDeclaration({declare:!0}))for(const e of Object.keys(r.getBindingIdentifiers()))(0,l.registerGlobalType)(i,e);else(r.isTSTypeAliasDeclaration()||r.isTSDeclareFunction()&&r.get("id").isIdentifier()||r.isTSInterfaceDeclaration()||r.isClassDeclaration({declare:!0})||r.isTSEnumDeclaration({declare:!0})||r.isTSModuleDeclaration({declare:!0})&&r.get("id").isIdentifier())&&(0,l.registerGlobalType)(i,r.node.id.name)}},exit(e){"module"===e.node.sourceType&&c.get(e.node)&&e.pushContainer("body",r.exportNamedDeclaration())}},ExportNamedDeclaration(e,t){if(c.has(t.file.ast.program)||c.set(t.file.ast.program,!0),"type"!==e.node.exportKind)if(e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every(e=>"ExportSpecifier"===e.type&&"type"===e.exportKind))e.remove();else if(!e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every(t=>r.isExportSpecifier(t)&&(0,l.isGlobalType)(e,t.local.name)))e.remove();else{if(r.isTSModuleDeclaration(e.node.declaration)){const t=e.node.declaration;if(!r.isStringLiteral(t.id)){const n=(0,p.getFirstIdentifier)(t.id);if(e.scope.hasOwnBinding(n.name))e.replaceWith(t);else{const[s]=e.replaceWithMultiple([r.exportNamedDeclaration(r.variableDeclaration("let",[r.variableDeclarator(r.cloneNode(n))])),t]);e.scope.registerDeclaration(s)}}}c.set(t.file.ast.program,!1)}else e.remove()},ExportAllDeclaration(e){"type"===e.node.exportKind&&e.remove()},ExportSpecifier(e){(!e.parent.source&&(0,l.isGlobalType)(e,e.node.local.name)||"type"===e.node.exportKind)&&e.remove()},ExportDefaultDeclaration(e,t){c.has(t.file.ast.program)||c.set(t.file.ast.program,!0),r.isIdentifier(e.node.declaration)&&(0,l.isGlobalType)(e,e.node.declaration.name)?e.remove():c.set(t.file.ast.program,!1)},TSDeclareFunction(e){safeRemove(e)},TSDeclareMethod(e){safeRemove(e)},VariableDeclaration(e){e.node.declare&&safeRemove(e)},VariableDeclarator({node:e}){e.definite&&(e.definite=null)},TSIndexSignature(e){e.remove()},ClassDeclaration(e){const{node:t}=e;t.declare&&safeRemove(e)},Class(e){const{node:t}=e;t.typeParameters&&(t.typeParameters=null),t.superTypeParameters&&(t.superTypeParameters=null),t.implements&&(t.implements=null),t.abstract&&(t.abstract=null),e.get("body.body").forEach(t=>{t.isClassMethod()||t.isClassPrivateMethod()?"constructor"===t.node.kind?x.constructor(t,e):x.method(t):(t.isClassProperty()||t.isClassPrivateProperty()||t.isClassAccess
|
||
|
|
${n.types.cloneNode(e)} ||
|
||
|
|
(${n.types.cloneNode(e)} = ${u})
|
||
|
|
`}return n.template.statement.ast`
|
||
|
|
(function (${n.types.identifier(a)}) {
|
||
|
|
${p}
|
||
|
|
})(${o} || (${n.types.cloneNode(o)} = ${u}));
|
||
|
|
`}},"./node_modules/.pnpm/@babel+preset-typescript@7.27.1_@babel+core@7.28.4/node_modules/@babel/preset-typescript/lib/index.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("./node_modules/.pnpm/@babel+helper-plugin-utils@7.27.1/node_modules/@babel/helper-plugin-utils/lib/index.js"),s=r("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.28.0_@babel+core@7.28.4/node_modules/@babel/plugin-transform-typescript/lib/index.js");r("./node_modules/.pnpm/@babel+plugin-syntax-jsx@7.27.1_@babel+core@7.28.4/node_modules/@babel/plugin-syntax-jsx/lib/index.js");var i=r("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.27.1_@babel+core@7.28.4/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js"),o=r("./node_modules/.pnpm/@babel+helper-validator-option@7.27.1/node_modules/@babel/helper-validator-option/lib/index.js");function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a=_interopDefault(s),l=_interopDefault(i);const p=new o.OptionValidator("@babel/preset-typescript");var c=n.declare(function({types:e,template:t}){function maybeReplace(r,n,s){r&&(e.isStringLiteral(r)?/^\.\.?\//.test(r.value)&&(r.value=r.value.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,function(e,t,r,n,s){return t?".js":!r||n&&s?r+n+"."+s.toLowerCase()+"js":e})):s.availableHelper("tsRewriteRelativeImportExtensions")?n.replaceWith(e.callExpression(s.addHelper("tsRewriteRelativeImportExtensions"),[r])):n.replaceWith(t.expression.ast`(${r} + "").replace(/([\\/].*\.[mc]?)tsx?$/, "$1js")`))}return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"(t,r){const n=t.node;"value"===(e.isImportDeclaration(n)?n.importKind:n.exportKind)&&maybeReplace(n.source,t.get("source"),r)},CallExpression(t,r){e.isImport(t.node.callee)&&maybeReplace(t.node.arguments[0],t.get("arguments.0"),r)},ImportExpression(e,t){maybeReplace(e.node.source,e.get("source"),t)}}}}),u=n.declarePreset((e,t)=>{e.assertVersion(7);const{allExtensions:r,ignoreExtensions:n,allowNamespaces:s,disallowAmbiguousJSXLike:i,isTSX:o,jsxPragma:u,jsxPragmaFrag:d,onlyRemoveTypeImports:h,optimizeConstEnums:m,rewriteImportExtensions:f}=function(e={}){let{allowNamespaces:t=!0,jsxPragma:r,onlyRemoveTypeImports:n}=e;const s="ignoreExtensions",i="disallowAmbiguousJSXLike",o="jsxPragmaFrag",a="optimizeConstEnums",l="rewriteImportExtensions",c="allExtensions",u="isTSX",d=p.validateStringOption(o,e.jsxPragmaFrag,"React.Fragment");var h=p.validateBooleanOption(c,e.allExtensions,!1),m=p.validateBooleanOption(u,e.isTSX,!1);m&&p.invariant(h,"isTSX:true requires allExtensions:true");const f=p.validateBooleanOption(s,e.ignoreExtensions,!1),y=p.validateBooleanOption(i,e.disallowAmbiguousJSXLike,!1);y&&p.invariant(h,"disallowAmbiguousJSXLike:true requires allExtensions:true");const b={ignoreExtensions:f,allowNamespaces:t,disallowAmbiguousJSXLike:y,jsxPragma:r,jsxPragmaFrag:d,onlyRemoveTypeImports:n,optimizeConstEnums:p.validateBooleanOption(a,e.optimizeConstEnums,!1),rewriteImportExtensions:p.validateBooleanOption(l,e.rewriteImportExtensions,!1)};return b.allExtensions=h,b.isTSX=m,b}(t),pluginOptions=e=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:e,jsxPragma:u,jsxPragmaFrag:d,onlyRemoveTypeImports:h,optimizeConstEnums:m}),getPlugins=(e,t)=>[[a.default,Object.assign({isTSX:e},pluginOptions(t))]];return{plugins:f?[c]:[],overrides:r||n?[{plugins:getPlugins(o,i)}]:[{test:/\.ts$/,plugins:getPlugins(!1,!1)},{test:/\.mts$/,sourceType:"module",plugins:getPlugins(!1,!0)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[l.default,{allowTopLevelThis:!0}],[a.default,pluginOptions(!0)]]},{test:/\.tsx$/,plugins:getPlugins(!0,!1)}]}});t.default=u},"./node_modules/.pnpm/@babel+template@7.27.2/node_modules/@babel/template/lib/builder.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function createTemplateBuilder(e,t){const r=new WeakMap,a=new WeakMap,l=t||(0,n.validate)(null);return Object.assign(
|
||
|
|
(function (${l}) {
|
||
|
|
function ${n}(${p}) {
|
||
|
|
return ${M(l)}.apply(this, arguments);
|
||
|
|
}
|
||
|
|
|
||
|
|
${M(n)}.toString = function () {
|
||
|
|
return ${M(l)}.toString();
|
||
|
|
}
|
||
|
|
|
||
|
|
return ${M(n)};
|
||
|
|
})(${D(this.node)})
|
||
|
|
`;return this.replaceWith(c)[0].get("arguments.0")},t.splitExportDeclaration=function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const e=this.get("declaration");if(this.isExportDefaultDeclaration()){const t=e.isFunctionDeclaration()||e.isClassDeclaration(),r=e.isFunctionExpression()||e.isClassExpression(),n=e.isScope()?e.scope.parent:e.scope;let s=e.node.id,i=!1;s?r&&n.hasBinding(s.name)&&(i=!0,s=n.generateUidIdentifier(s.name)):(i=!0,s=n.generateUidIdentifier("default"),(t||r)&&(e.node.id=M(s)));const o=t?e.node:B("var",[R(M(s),e.node)]),a=U(null,[V(M(s),m("default"))]);return this.insertAfter(a),this.replaceWith(o),i&&n.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(e=>V(m(e),m(e))),n=U(null,r);return this.insertAfter(n),this.replaceWith(e.node),this},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}this.node.computed||f(e)&&(e=C(e.name));return e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");hoistFunctionEnvironment(this)};var n=r("./node_modules/.pnpm/@babel+types@7.28.4/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@babel+template@7.27.2/node_modules/@babel/template/lib/index.js"),i=r("./node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/visitors.js"),o=r("./node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/path/context.js");const{arrowFunctionExpression:a,assignmentExpression:l,binaryExpression:p,blockStatement:c,callExpression:u,conditionalExpression:d,expressionStatement:h,identifier:m,isIdentifier:f,jsxIdentifier:y,logicalExpression:b,LOGICAL_OPERATORS:g,memberExpression:x,metaProperty:v,numericLiteral:E,objectExpression:T,restElement:S,returnStatement:P,sequenceExpression:_,spreadElement:A,stringLiteral:C,super:w,thisExpression:I,toExpression:D,unaryExpression:k,toBindingIdentifierName:N,isFunction:O,isAssignmentPattern:j,isRestElement:F,getFunctionName:L,cloneNode:M,variableDeclaration:B,variableDeclarator:R,exportNamedDeclaration:U,exportSpecifier:V,inherits:$}=n;t.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};const K=(0,i.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function hoistFunctionEnvironment(e,t=!0,r=!0,n=!0){let s,i=e.findParent(e=>e.isArrowFunctionExpression()?(null!=s||(s=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1}));const o=i.isClassMethod({kind:"constructor"});if(i.isClassProperty()||i.isClassPrivateProperty())if(s)i=s;else{if(!r)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(u(a([],D(e.node)),[])),i=e.get("callee"),e=i.get("body")}const{thisPaths:c,argumentsPaths:h,newTargetPaths:f,superProps:T,superCalls:P}=function(e){const t=[],r=[],n=[],s=[],i=[];return e.traverse(q,{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:i}),{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:i}}(e);if(o&&P.length>0){if(!r)throw P[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!n)throw P[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function wi
|
||
|
|
(function(){
|
||
|
|
throw new Error(
|
||
|
|
"The CommonJS '" + "${t}" + "' variable is not available in ES6 modules." +
|
||
|
|
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
|
||
|
|
"Babel config for this file.");
|
||
|
|
})()
|
||
|
|
`,b={ReferencedIdentifier(e){const t=e.node.name;if("module"!==t&&"exports"!==t)return;const r=e.scope.getBinding(t);this.scope.getBinding(t)!==r||e.parentPath.isObjectProperty({value:e.node})&&e.parentPath.parentPath.isObjectPattern()||e.parentPath.isAssignmentExpression({left:e.node})||e.isAssignmentExpression({left:e.node})||e.replaceWith(getAssertion(t))},UpdateExpression(t){const r=t.get("argument");if(!r.isIdentifier())return;const n=r.node.name;if("module"!==n&&"exports"!==n)return;const s=t.scope.getBinding(n);this.scope.getBinding(n)===s&&t.replaceWith(e.types.assignmentExpression(t.node.operator[0]+"=",r.node,getAssertion(n)))},AssignmentExpression(t){const r=t.get("left");if(r.isIdentifier()){const n=r.node.name;if("module"!==n&&"exports"!==n)return;const s=t.scope.getBinding(n);if(this.scope.getBinding(n)!==s)return;const i=t.get("right");i.replaceWith(e.types.sequenceExpression([i.node,getAssertion(n)]))}else if(r.isPattern()){const n=r.getOuterBindingIdentifiers(),s=Object.keys(n).find(e=>("module"===e||"exports"===e)&&this.scope.getBinding(e)===t.scope.getBinding(e));if(s){const r=t.get("right");r.replaceWith(e.types.sequenceExpression([r.node,getAssertion(s)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),c&&function(e,t){let r=e.get(Ye);r||e.set(Ye,r=[]),r.push(t)}(this.file,(t=>({name:"babel-plugin-transform-modules-commonjs/lazy",version:"7.24.7",getWrapperPayload:(e,r)=>(0,Xe.isSideEffectImport)(r)||r.reexportAll?null:!0===t?e.includes(".")?null:"lazy/function":Array.isArray(t)?t.includes(e)?"lazy/function":null:"function"==typeof t?t(e)?"lazy/function":null:void 0,buildRequireWrapper(t,r,n,s){if("lazy/function"===n)return!!s&&e.template.statement.ast`
|
||
|
|
function ${t}() {
|
||
|
|
const data = ${r};
|
||
|
|
${t} = function(){ return data; };
|
||
|
|
return data;
|
||
|
|
}
|
||
|
|
`},wrapReference(t,r){if("lazy/function"===r)return e.types.callExpression(t,[])}}))(c))},visitor:{["CallExpression"+(t.types.importExpression?"|ImportExpression":"")](t){if(t.isCallExpression()&&!e.types.isImport(t.node.callee))return;let{scope:r}=t;do{r.rename("require")}while(r=r.parent);transformDynamicImport(t,l,this.file)},Program:{exit(t,d){if(!(0,Ge.isModule)(t))return;t.scope.rename("exports"),t.scope.rename("module"),t.scope.rename("require"),t.scope.rename("__filename"),t.scope.rename("__dirname"),u||(process.env.BABEL_8_BREAKING?(0,Je.default)(t,new Set(["module","exports"])):(0,Je.default)(t,new Set(["module","exports"]),!1),t.traverse(b,{scope:t.scope}));let g=(0,Xe.getModuleName)(this.file.opts,r);g&&(g=e.types.stringLiteral(g));const x=function(e){const t=e.get(Ye);return{getWrapperPayload:(...e)=>findMap(t,t=>t.getWrapperPayload?.(...e)),wrapReference:(...e)=>findMap(t,t=>t.wrapReference?.(...e)),buildRequireWrapper:(...e)=>findMap(t,t=>t.buildRequireWrapper?.(...e))}}(this.file),{meta:v,headers:E}=(0,Xe.rewriteModuleStatementsAndPrepareHeader)(t,{exportName:"exports",constantReexports:m,enumerableModuleMeta:f,strict:o,strictMode:a,allowTopLevelThis:i,noInterop:l,importInterop:p,wrapReference:x.wrapReference,getWrapperPayload:x.getWrapperPayload,esNamespaceOnly:"string"==typeof d.filename&&/\.mjs$/.test(d.filename)?s:n,noIncompleteNsImportDetection:y,filename:this.file.opts.filename});for(const[r,n]of v.source){const s=h?e.types.awaitExpression(e.types.callExpression(e.types.identifier("jitiImport"),[e.types.stringLiteral(r)])):e.types.callExpression(e.types.identifier("require"),[e.types.stringLiteral(r)]);let i;if((0,Xe.isSideEffectImport)(n)){if(c&&"function"===n.wrap)throw new Error("Assertion failure");i=e.types.expressionStatement(s)}else{const r=(0,Xe.wrapInterop)(t,s,n.interop)||s;if(n.wrap){const e=x.buildRequireWrapper(n.name,r,n.wrap,n.referenced);if(!1===e)continue;i=e}i??=e.template.statement.ast`
|
||
|
|
var ${n.name} = ${r};
|
||
|
|
`}i.loc=n.loc,E.push(i,...(0,Xe.buildNamespaceInitStatements)(v,n,m,x.wrapReference))}(0,Xe.ensureStatementsHoisted)(E),t.unshiftContainer("body",E),t.get("body").forEach(e=>{E.includes(e.node)&&e.isVariableDeclaration()&&e.scope.registerDeclaration(e)})}}}}});function transform(r){const p={babelrc:!1,configFile:!1,compact:!1,retainLines:"boolean"!=typeof r.retainLines||r.retainLines,filename:"",cwd:"/",...r.babel,plugins:[[Qe,{allowTopLevelThis:!0,noInterop:!r.interopDefault,async:r.async}],[importMetaPathsPlugin,{filename:r.filename}],[importMetaEnvPlugin],[importMetaResolvePlugin],[n.default],[o.default]]};r.jsx&&p.plugins.push([i.default],[a.default,Object.assign({},r.jsx)]),r.ts&&(p.plugins.push([l.default,{allowDeclareFields:!0,isTSX:r.jsx&&/\.[cm]?tsx$/.test(r.filename||"")}]),p.plugins.unshift([d],[t.default,{legacy:!0}]),p.plugins.push(c(),s.default)),r.babel&&Array.isArray(r.babel.plugins)&&p.plugins?.push(...r.babel.plugins);try{return{code:(0,e.transformSync)(r.source,p)?.code||""}}catch(e){return{error:e,code:"exports.__JITI_ERROR__ = "+JSON.stringify({filename:r.filename,line:e.loc?.line||0,column:e.loc?.column||0,code:e.code?.replace("BABEL_","").replace("PARSE_ERROR","ParseError"),message:e.message?.replace("/: ","").replace(/\(.+\)\s*$/,"")})}}}})(),module.exports=r.default})();
|