Merge pull request #66 from yunyingk/codex/unify-unknown-command-exit-codes

Unify unknown command and subcommand exit code classification
This commit is contained in:
yunyingk authored and GitHub committed 2026-09-11 10:06:12 +08:00
commit 4b35d79061
5 files changed
+109 -61

No files matched your search

+57 -57
View File
@@ -1,55 +1,55 @@
import{createRequire as YL0}from"node:module";var oz0=Object.create;var{getPrototypeOf:rz0,defineProperty:uD,getOwnPropertyNames:tz0}=Object;var az0=Object.prototype.hasOwnProperty;function sz0($){return this[$]}var ez0,$L0,ZI=($,I,U)=>{var Y=$!=null&&typeof $==="object";if(Y){var J=I?ez0??=new WeakMap:$L0??=new WeakMap,Q=J.get($);if(Q)return Q}U=$!=null?oz0(rz0($)):{};let K=I||!$||!$.__esModule?uD(U,"default",{value:$,enumerable:!0}):U;for(let q of tz0($))if(!az0.call(K,q))uD(K,q,{get:sz0.bind($,q),enumerable:!0});if(Y)J.set($,K);return K};var O=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports);var IL0=($)=>$;function UL0($,I){this[$]=IL0.bind(null,I)}var o8=($,I)=>{for(var U in I)uD($,U,{get:I[U],enumerable:!0,configurable:!0,set:UL0.bind(I,U)})};var r=YL0(import.meta.url);var gQ=O((rf)=>{Object.defineProperty(rf,"__esModule",{value:!0});rf.regexpCode=rf.getEsmExportName=rf.getProperty=rf.safeStringify=rf.stringify=rf.strConcat=rf.addCodeArg=rf.str=rf._=rf.nil=rf._Code=rf.Name=rf.IDENTIFIER=rf._CodeOrName=void 0;class _W{}rf._CodeOrName=_W;rf.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class aI extends _W{constructor($){super();if(!rf.IDENTIFIER.test($))throw Error("CodeGen: name must be a valid identifier");this.str=$}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}rf.Name=aI;class b$ extends _W{constructor($){super();this._items=typeof $==="string"?[$]:$}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let $=this._items[0];return $===""||$==='""'}get str(){var $;return($=this._str)!==null&&$!==void 0?$:this._str=this._items.reduce((I,U)=>`${I}${U}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((I,U)=>{if(U instanceof aI)I[U.str]=(I[U.str]||0)+1;return I},{})}}rf._Code=b$;rf.nil=new b$("");function lf($,...I){let U=[$[0]],Y=0;while(Y<I.length)aP(U,I[Y]),U.push($[++Y]);return new b$(U)}rf._=lf;var tP=new b$("+");function of($,...I){let U=[SQ($[0])],Y=0;while(Y<I.length)U.push(tP),aP(U,I[Y]),U.push(tP,SQ($[++Y]));return TN0(U),new b$(U)}rf.str=of;function aP($,I){if(I instanceof b$)$.push(...I._items);else if(I instanceof aI)$.push(I);else $.push(vN0(I))}rf.addCodeArg=aP;function TN0($){let I=1;while(I<$.length-1){if($[I]===tP){let U=EN0($[I-1],$[I+1]);if(U!==void 0){$.splice(I-1,3,U);continue}$[I++]="+"}I++}}function EN0($,I){if(I==='""')return $;if($==='""')return I;if(typeof $=="string"){if(I instanceof aI||$[$.length-1]!=='"')return;if(typeof I!="string")return`${$.slice(0,-1)}${I}"`;if(I[0]==='"')return $.slice(0,-1)+I.slice(1);return}if(typeof I=="string"&&I[0]==='"'&&!($ instanceof aI))return`"${$}${I.slice(1)}`;return}function BN0($,I){return I.emptyStr()?$:$.emptyStr()?I:of`${$}${I}`}rf.strConcat=BN0;function vN0($){return typeof $=="number"||typeof $=="boolean"||$===null?$:SQ(Array.isArray($)?$.join(","):$)}function RN0($){return new b$(SQ($))}rf.stringify=RN0;function SQ($){return JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}rf.safeStringify=SQ;function CN0($){return typeof $=="string"&&rf.IDENTIFIER.test($)?new b$(`.${$}`):lf`[${$}]`}rf.getProperty=CN0;function jN0($){if(typeof $=="string"&&rf.IDENTIFIER.test($))return new b$(`${$}`);throw Error(`CodeGen: invalid export name: ${$}, use explicit $id name mapping`)}rf.getEsmExportName=jN0;function _N0($){return new b$($.toString())}rf.regexpCode=_N0});var IT=O((ef)=>{Object.defineProperty(ef,"__esModule",{value:!0});ef.ValueScope=ef.ValueScopeName=ef.Scope=ef.varKinds=ef.UsedValueState=void 0;var u6=gQ();class af extends Error{constructor($){super(`CodeGen: "code" for ${$} not defined`);this.value=$.value}}var gW;(function($){$[$.Started=0]="Started",$[$.Completed=1]="Completed"})(gW||(ef.UsedValueState=gW={}));ef.varKinds={const:new u6.Name("const"),let:new u6.Name("let"),var:new u6.Name("var")};class eP{constructor({prefixes:$,parent:I}={}){this._names={},this._prefixes=$,this._parent=I}toName($){return $ instanceof u6.Name?$:this.name($)}name($){return new u6.Name(this._newName($))}_newName($){let I=this._names[$]||this._nameGroup($);return`${$}${I.index++}`}_nameGroup($){var I,U;if(((U=(I=this._parent)===null||I===void 0?void 0:I._prefixes)===null||U===void 0?void 0:U.has($))||this._prefixes&&!this._prefixes.has($))throw Error(`CodeGen: prefix "${$}" is not allowed in this scope`);return this._names[$]={prefix:$,index:0}}}ef.Scope=eP;class $T extends u6.Name{constructor($,I){super(I);this.prefix=$}setValue($,{property:I,itemIndex:U}){this.value=$,this.scopePath=u6._`.${new u6.Name(I)}[${U}]`}}ef.ValueScopeName=$T;var cN0=u6._`\n`;class sf extends eP{constructor($){super($);this._values={},this._scope=$.scope,this.opts={...$,_n:$.lines?cN0:u6.nil}}get(){return this._scope}name($){return new $T($,this._newName($))}value($,I){var U;if(I.ref===void 0)throw Error("CodeGen: ref must be passed in value");let Y=this.toName($),{prefix:J}=Y,Q=(U=I.key)!==null&&U!==void 0?U:I.ref,K=this._values[J];if(K){let H=K.get(Q);if(Line truncated
`:""},this._extScope=$,this._scope=new i$.Scope({parent:$}),this._nodes=[new qb]}toString(){return this._root.render(this.opts)}name($){return this._scope.name($)}scopeName($){return this._extScope.name($)}scopeValue($,I){let U=this._extScope.value($,I);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue($,I){return this._extScope.getValue($,I)}scopeRefs($){return this._extScope.scopeRefs($,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def($,I,U,Y){let J=this._scope.toName(I);if(U!==void 0&&Y)this._constants[J.str]=U;return this._leafNode(new Ib($,J,U)),J}const($,I,U){return this._def(i$.varKinds.const,$,I,U)}let($,I,U){return this._def(i$.varKinds.let,$,I,U)}var($,I,U){return this._def(i$.varKinds.var,$,I,U)}assign($,I,U){return this._leafNode(new JT($,I,U))}add($,I){return this._leafNode(new Ub($,f6.operators.ADD,I))}code($){if(typeof $=="function")$();else if($!==q1.nil)this._leafNode(new Kb($));return this}object(...$){let I=["{"];for(let[U,Y]of $){if(I.length>1)I.push(",");if(I.push(U),U!==Y||this.opts.es5)I.push(":"),(0,q1.addCodeArg)(I,Y)}return I.push("}"),new q1._Code(I)}if($,I,U){if(this._blockNode(new e8($)),I&&U)this.code(I).else().code(U).endIf();else if(I)this.code(I).endIf();else if(U)throw Error('CodeGen: "else" body without "then" body');return this}elseIf($){return this._elseNode(new e8($))}else(){return this._elseNode(new yQ)}endIf(){return this._endBlockNode(e8,yQ)}_for($,I){if(this._blockNode($),I)this.code(I).endFor();return this}for($,I){return this._for(new Gb($),I)}forRange($,I,U,Y,J=this.opts.es5?i$.varKinds.var:i$.varKinds.let){let Q=this._scope.toName($);return this._for(new Hb(J,Q,I,U),()=>Y(Q))}forOf($,I,U,Y=i$.varKinds.const){let J=this._scope.toName($);if(this.opts.es5){let Q=I instanceof q1.Name?I:this.var("_arr",I);return this.forRange("_i",0,q1._`${Q}.length`,(K)=>{this.var(J,q1._`${Q}[${K}]`),U(J)})}return this._for(new UT("of",Y,J,I),()=>U(J))}forIn($,I,U,Y=this.opts.es5?i$.varKinds.var:i$.varKinds.const){if(this.opts.ownProperties)return this.forOf($,q1._`Object.keys(${I})`,U);let J=this._scope.toName($);return this._for(new UT("in",Y,J,I),()=>U(J))}endFor(){return this._endBlockNode(sI)}label($){return this._leafNode(new Yb($))}break($){return this._leafNode(new Jb($))}return($){let I=new hW;if(this._blockNode(I),this.code($),I.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(hW)}try($,I,U){if(!I&&!U)throw Error('CodeGen: "try" without "catch" and "finally"');let Y=new Wb;if(this._blockNode(Y),this.code($),I){let J=this.name("e");this._currNode=Y.catch=new xW(J),I(J)}if(U)this._currNode=Y.finally=new kW,this.code(U);return this._endBlockNode(xW,kW)}throw($){return this._leafNode(new Qb($))}block($,I){if(this._blockStarts.push(this._nodes.length),$)this.code($).endBlock(I);return this}endBlock($){let I=this._blockStarts.pop();if(I===void 0)throw Error("CodeGen: not in self-balancing block");let U=this._nodes.length-I;if(U<0||$!==void 0&&U!==$)throw Error(`CodeGen: wrong number of nodes: ${U} vs ${$} expected`);return this._nodes.length=I,this}func($,I=q1.nil,U,Y){if(this._blockNode(new yW($,I,U)),Y)this.code(Y).endFunc();return this}endFunc(){return this._endBlockNode(yW)}optimize($=1){while($-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode($){return this._currNode.nodes.push($),this}_blockNode($){this._currNode.nodes.push($),this._nodes.push($)}_endBlockNode($,I){let U=this._currNode;if(U instanceof $||I&&U instanceof I)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${I?`${$.kind}/${I.kind}`:$.kind}"`)}_elseNode($){let I=this._currNode;if(!(I instanceof e8))throw Error('CodeGen: "else" without "if"');return this._currNode=I.else=$,this}get _root(){return this._nodes[0]}get _currNode(){let $=this._nodes;return $[$.length-1]}set _currNode($){let I=this._nodes;I[I.length-1]=$}}f6.CodeGen=Vb;function C7($,I){for(let U in I)$[U]=($[U]||0)+(I[U]||0);return $}function uW($,I){return I instanceof q1._CodeOrName?C7($,I.names):$}function eI($,I,U){if($ instanceof q1.Name)return Y($);if(!J($))return $;return new q1._Code($._items.reduce((Q,K)=>{if(K instanceof q1.Name)K=Y(K);if(K instanceof q1._Code)Q.push(...K._items);else Q.push(K);return Q},[]));function Y(Q){let K=U[Q.str];if(K===void 0||I[Q.str]!==1)return Q;return delete I[Q.str],K}function J(Q){return Q instanceof q1._Code&&Q._items.some((K)=>K instanceof q1.Name&&I[K.str]===1&&U[K.str]!==void 0)}}function oN0($,I){for(let U in I)$[U]=($[U]||0)-(I[U]||0)}function wb($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:q1._`!${YT($)}`}f6.not=wb;var rN0=Zb(f6.operators.AND);function tN0(...$){return $.reduce(rN0)}f6.and=tN0;var aN0=Zb(f6.operators.OR);function sN0(...$){return $.reduce(aN0)}f6.or=sN0;function Zb($){return(I,U)=>I===q1.nil?U:U===q1.nil?I:q1._`${YT(I)} ${$} ${YT(U)}`}function YT($){return $ instanceof q1.Name?$:q1._`(${Line truncated
import{createRequire as YL0}from"node:module";var oz0=Object.create;var{getPrototypeOf:rz0,defineProperty:uD,getOwnPropertyNames:tz0}=Object;var az0=Object.prototype.hasOwnProperty;function sz0($){return this[$]}var ez0,$L0,XI=($,I,U)=>{var Y=$!=null&&typeof $==="object";if(Y){var J=I?ez0??=new WeakMap:$L0??=new WeakMap,Q=J.get($);if(Q)return Q}U=$!=null?oz0(rz0($)):{};let K=I||!$||!$.__esModule?uD(U,"default",{value:$,enumerable:!0}):U;for(let q of tz0($))if(!az0.call(K,q))uD(K,q,{get:sz0.bind($,q),enumerable:!0});if(Y)J.set($,K);return K};var O=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports);var IL0=($)=>$;function UL0($,I){this[$]=IL0.bind(null,I)}var o8=($,I)=>{for(var U in I)uD($,U,{get:I[U],enumerable:!0,configurable:!0,set:UL0.bind(I,U)})};var r=YL0(import.meta.url);var gQ=O((rf)=>{Object.defineProperty(rf,"__esModule",{value:!0});rf.regexpCode=rf.getEsmExportName=rf.getProperty=rf.safeStringify=rf.stringify=rf.strConcat=rf.addCodeArg=rf.str=rf._=rf.nil=rf._Code=rf.Name=rf.IDENTIFIER=rf._CodeOrName=void 0;class _W{}rf._CodeOrName=_W;rf.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class sI extends _W{constructor($){super();if(!rf.IDENTIFIER.test($))throw Error("CodeGen: name must be a valid identifier");this.str=$}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}rf.Name=sI;class b$ extends _W{constructor($){super();this._items=typeof $==="string"?[$]:$}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let $=this._items[0];return $===""||$==='""'}get str(){var $;return($=this._str)!==null&&$!==void 0?$:this._str=this._items.reduce((I,U)=>`${I}${U}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((I,U)=>{if(U instanceof sI)I[U.str]=(I[U.str]||0)+1;return I},{})}}rf._Code=b$;rf.nil=new b$("");function lf($,...I){let U=[$[0]],Y=0;while(Y<I.length)aP(U,I[Y]),U.push($[++Y]);return new b$(U)}rf._=lf;var tP=new b$("+");function of($,...I){let U=[SQ($[0])],Y=0;while(Y<I.length)U.push(tP),aP(U,I[Y]),U.push(tP,SQ($[++Y]));return TN0(U),new b$(U)}rf.str=of;function aP($,I){if(I instanceof b$)$.push(...I._items);else if(I instanceof sI)$.push(I);else $.push(vN0(I))}rf.addCodeArg=aP;function TN0($){let I=1;while(I<$.length-1){if($[I]===tP){let U=EN0($[I-1],$[I+1]);if(U!==void 0){$.splice(I-1,3,U);continue}$[I++]="+"}I++}}function EN0($,I){if(I==='""')return $;if($==='""')return I;if(typeof $=="string"){if(I instanceof sI||$[$.length-1]!=='"')return;if(typeof I!="string")return`${$.slice(0,-1)}${I}"`;if(I[0]==='"')return $.slice(0,-1)+I.slice(1);return}if(typeof I=="string"&&I[0]==='"'&&!($ instanceof sI))return`"${$}${I.slice(1)}`;return}function BN0($,I){return I.emptyStr()?$:$.emptyStr()?I:of`${$}${I}`}rf.strConcat=BN0;function vN0($){return typeof $=="number"||typeof $=="boolean"||$===null?$:SQ(Array.isArray($)?$.join(","):$)}function RN0($){return new b$(SQ($))}rf.stringify=RN0;function SQ($){return JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}rf.safeStringify=SQ;function CN0($){return typeof $=="string"&&rf.IDENTIFIER.test($)?new b$(`.${$}`):lf`[${$}]`}rf.getProperty=CN0;function jN0($){if(typeof $=="string"&&rf.IDENTIFIER.test($))return new b$(`${$}`);throw Error(`CodeGen: invalid export name: ${$}, use explicit $id name mapping`)}rf.getEsmExportName=jN0;function _N0($){return new b$($.toString())}rf.regexpCode=_N0});var IT=O((ef)=>{Object.defineProperty(ef,"__esModule",{value:!0});ef.ValueScope=ef.ValueScopeName=ef.Scope=ef.varKinds=ef.UsedValueState=void 0;var u6=gQ();class af extends Error{constructor($){super(`CodeGen: "code" for ${$} not defined`);this.value=$.value}}var gW;(function($){$[$.Started=0]="Started",$[$.Completed=1]="Completed"})(gW||(ef.UsedValueState=gW={}));ef.varKinds={const:new u6.Name("const"),let:new u6.Name("let"),var:new u6.Name("var")};class eP{constructor({prefixes:$,parent:I}={}){this._names={},this._prefixes=$,this._parent=I}toName($){return $ instanceof u6.Name?$:this.name($)}name($){return new u6.Name(this._newName($))}_newName($){let I=this._names[$]||this._nameGroup($);return`${$}${I.index++}`}_nameGroup($){var I,U;if(((U=(I=this._parent)===null||I===void 0?void 0:I._prefixes)===null||U===void 0?void 0:U.has($))||this._prefixes&&!this._prefixes.has($))throw Error(`CodeGen: prefix "${$}" is not allowed in this scope`);return this._names[$]={prefix:$,index:0}}}ef.Scope=eP;class $T extends u6.Name{constructor($,I){super(I);this.prefix=$}setValue($,{property:I,itemIndex:U}){this.value=$,this.scopePath=u6._`.${new u6.Name(I)}[${U}]`}}ef.ValueScopeName=$T;var cN0=u6._`\n`;class sf extends eP{constructor($){super($);this._values={},this._scope=$.scope,this.opts={...$,_n:$.lines?cN0:u6.nil}}get(){return this._scope}name($){return new $T($,this._newName($))}value($,I){var U;if(I.ref===void 0)throw Error("CodeGen: ref must be passed in value");let Y=this.toName($),{prefix:J}=Y,Q=(U=I.key)!==null&&U!==void 0?U:I.ref,K=this._values[J];if(K){let H=K.get(Q);if(Line truncated
`:""},this._extScope=$,this._scope=new i$.Scope({parent:$}),this._nodes=[new qb]}toString(){return this._root.render(this.opts)}name($){return this._scope.name($)}scopeName($){return this._extScope.name($)}scopeValue($,I){let U=this._extScope.value($,I);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue($,I){return this._extScope.getValue($,I)}scopeRefs($){return this._extScope.scopeRefs($,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def($,I,U,Y){let J=this._scope.toName(I);if(U!==void 0&&Y)this._constants[J.str]=U;return this._leafNode(new Ib($,J,U)),J}const($,I,U){return this._def(i$.varKinds.const,$,I,U)}let($,I,U){return this._def(i$.varKinds.let,$,I,U)}var($,I,U){return this._def(i$.varKinds.var,$,I,U)}assign($,I,U){return this._leafNode(new JT($,I,U))}add($,I){return this._leafNode(new Ub($,f6.operators.ADD,I))}code($){if(typeof $=="function")$();else if($!==q1.nil)this._leafNode(new Kb($));return this}object(...$){let I=["{"];for(let[U,Y]of $){if(I.length>1)I.push(",");if(I.push(U),U!==Y||this.opts.es5)I.push(":"),(0,q1.addCodeArg)(I,Y)}return I.push("}"),new q1._Code(I)}if($,I,U){if(this._blockNode(new e8($)),I&&U)this.code(I).else().code(U).endIf();else if(I)this.code(I).endIf();else if(U)throw Error('CodeGen: "else" body without "then" body');return this}elseIf($){return this._elseNode(new e8($))}else(){return this._elseNode(new yQ)}endIf(){return this._endBlockNode(e8,yQ)}_for($,I){if(this._blockNode($),I)this.code(I).endFor();return this}for($,I){return this._for(new Gb($),I)}forRange($,I,U,Y,J=this.opts.es5?i$.varKinds.var:i$.varKinds.let){let Q=this._scope.toName($);return this._for(new Hb(J,Q,I,U),()=>Y(Q))}forOf($,I,U,Y=i$.varKinds.const){let J=this._scope.toName($);if(this.opts.es5){let Q=I instanceof q1.Name?I:this.var("_arr",I);return this.forRange("_i",0,q1._`${Q}.length`,(K)=>{this.var(J,q1._`${Q}[${K}]`),U(J)})}return this._for(new UT("of",Y,J,I),()=>U(J))}forIn($,I,U,Y=this.opts.es5?i$.varKinds.var:i$.varKinds.const){if(this.opts.ownProperties)return this.forOf($,q1._`Object.keys(${I})`,U);let J=this._scope.toName($);return this._for(new UT("in",Y,J,I),()=>U(J))}endFor(){return this._endBlockNode(eI)}label($){return this._leafNode(new Yb($))}break($){return this._leafNode(new Jb($))}return($){let I=new hW;if(this._blockNode(I),this.code($),I.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(hW)}try($,I,U){if(!I&&!U)throw Error('CodeGen: "try" without "catch" and "finally"');let Y=new Wb;if(this._blockNode(Y),this.code($),I){let J=this.name("e");this._currNode=Y.catch=new xW(J),I(J)}if(U)this._currNode=Y.finally=new kW,this.code(U);return this._endBlockNode(xW,kW)}throw($){return this._leafNode(new Qb($))}block($,I){if(this._blockStarts.push(this._nodes.length),$)this.code($).endBlock(I);return this}endBlock($){let I=this._blockStarts.pop();if(I===void 0)throw Error("CodeGen: not in self-balancing block");let U=this._nodes.length-I;if(U<0||$!==void 0&&U!==$)throw Error(`CodeGen: wrong number of nodes: ${U} vs ${$} expected`);return this._nodes.length=I,this}func($,I=q1.nil,U,Y){if(this._blockNode(new yW($,I,U)),Y)this.code(Y).endFunc();return this}endFunc(){return this._endBlockNode(yW)}optimize($=1){while($-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode($){return this._currNode.nodes.push($),this}_blockNode($){this._currNode.nodes.push($),this._nodes.push($)}_endBlockNode($,I){let U=this._currNode;if(U instanceof $||I&&U instanceof I)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${I?`${$.kind}/${I.kind}`:$.kind}"`)}_elseNode($){let I=this._currNode;if(!(I instanceof e8))throw Error('CodeGen: "else" without "if"');return this._currNode=I.else=$,this}get _root(){return this._nodes[0]}get _currNode(){let $=this._nodes;return $[$.length-1]}set _currNode($){let I=this._nodes;I[I.length-1]=$}}f6.CodeGen=Vb;function j7($,I){for(let U in I)$[U]=($[U]||0)+(I[U]||0);return $}function uW($,I){return I instanceof q1._CodeOrName?j7($,I.names):$}function $U($,I,U){if($ instanceof q1.Name)return Y($);if(!J($))return $;return new q1._Code($._items.reduce((Q,K)=>{if(K instanceof q1.Name)K=Y(K);if(K instanceof q1._Code)Q.push(...K._items);else Q.push(K);return Q},[]));function Y(Q){let K=U[Q.str];if(K===void 0||I[Q.str]!==1)return Q;return delete I[Q.str],K}function J(Q){return Q instanceof q1._Code&&Q._items.some((K)=>K instanceof q1.Name&&I[K.str]===1&&U[K.str]!==void 0)}}function oN0($,I){for(let U in I)$[U]=($[U]||0)-(I[U]||0)}function wb($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:q1._`!${YT($)}`}f6.not=wb;var rN0=Zb(f6.operators.AND);function tN0(...$){return $.reduce(rN0)}f6.and=tN0;var aN0=Zb(f6.operators.OR);function sN0(...$){return $.reduce(aN0)}f6.or=sN0;function Zb($){return(I,U)=>I===q1.nil?U:U===q1.nil?I:q1._`${YT(I)} ${$} ${YT(U)}`}function YT($){return $ instanceof q1.Name?$:q1._`(${Line truncated
|| (${K} == "string" && ${J} && ${J} == +${J})`).assign(q,t0._`+${J}`);return;case"integer":Y.elseIf(t0._`${K} === "boolean" || ${J} === null
|| (${K} === "string" && ${J} && ${J} == +${J} && !(${J} % 1))`).assign(q,t0._`+${J}`);return;case"boolean":Y.elseIf(t0._`${J} === "false" || ${J} === 0 || ${J} === null`).assign(q,!1).elseIf(t0._`${J} === "true" || ${J} === 1`).assign(q,!0);return;case"null":Y.elseIf(t0._`${J} === "" || ${J} === 0 || ${J} === false`),Y.assign(q,null);return;case"array":Y.elseIf(t0._`${K} === "string" || ${K} === "number"
|| ${K} === "boolean" || ${J} === null`).assign(q,t0._`[${J}]`)}}}function VA0({gen:$,parentData:I,parentDataProperty:U},Y){$.if(t0._`${I} !== undefined`,()=>$.assign(t0._`${I}[${U}]`,Y))}function VT($,I,U,Y=$U.Correct){let J=Y===$U.Correct?t0.operators.EQ:t0.operators.NEQ,Q;switch($){case"null":return t0._`${I} ${J} null`;case"array":Q=t0._`Array.isArray(${I})`;break;case"object":Q=t0._`${I} && typeof ${I} == "object" && !Array.isArray(${I})`;break;case"integer":Q=K(t0._`!(${I} % 1) && !isNaN(${I})`);break;case"number":Q=K();break;default:return t0._`typeof ${I} ${J} ${$}`}return Y===$U.Correct?Q:(0,t0.not)(Q);function K(q=t0.nil){return(0,t0.and)(t0._`typeof ${I} == "number"`,q,U?t0._`isFinite(${I})`:t0.nil)}}pb.checkDataType=VT;function wT($,I,U,Y){if($.length===1)return VT($[0],I,U,Y);let J,Q=(0,bb.toHash)($);if(Q.array&&Q.object){let K=t0._`typeof ${I} != "object"`;J=Q.null?K:t0._`!${I} || ${K}`,delete Q.null,delete Q.array,delete Q.object}else J=t0.nil;if(Q.number)delete Q.integer;for(let K in Q)J=(0,t0.and)(J,VT(K,I,U,Y));return J}pb.checkDataTypes=wT;var wA0={message:({schema:$})=>`must be ${$}`,params:({schema:$,schemaValue:I})=>typeof $=="string"?t0._`{type: ${$}}`:t0._`{type: ${I}}`};function ZT($){let I=ZA0($);(0,KA0.reportError)(I,wA0)}pb.reportTypeError=ZT;function ZA0($){let{gen:I,data:U,schema:Y}=$,J=(0,bb.schemaRefOrVal)($,Y,"type");return{gen:I,keyword:"type",data:U,schema:Y.type,schemaCode:J,schemaValue:J,parentSchema:Y,params:{},it:$}}});var ob=O((mb)=>{Object.defineProperty(mb,"__esModule",{value:!0});mb.assignDefaults=void 0;var IU=s0(),NA0=w1();function MA0($,I){let{properties:U,items:Y}=$.schema;if(I==="object"&&U)for(let J in U)db($,J,U[J].default);else if(I==="array"&&Array.isArray(Y))Y.forEach((J,Q)=>db($,Q,J.default))}mb.assignDefaults=MA0;function db($,I,U){let{gen:Y,compositeRule:J,data:Q,opts:K}=$;if(U===void 0)return;let q=IU._`${Q}${(0,IU.getProperty)(I)}`;if(J){(0,NA0.checkStrictMode)($,`default is ignored for: ${q}`);return}let G=IU._`${q} === undefined`;if(K.useDefaults==="empty")G=IU._`${G} || ${q} === null || ${q} === ""`;Y.if(G,IU._`${q} = ${(0,IU.stringify)(U)}`)}});var O$=O((ab)=>{Object.defineProperty(ab,"__esModule",{value:!0});ab.validateUnion=ab.validateArray=ab.usePattern=ab.callValidateCode=ab.schemaProperties=ab.allSchemaProperties=ab.noPropertyInData=ab.propertyInData=ab.isOwnProperty=ab.hasPropFunc=ab.reportMissingProp=ab.checkMissingProp=ab.checkReportMissingProp=void 0;var l1=s0(),XT=w1(),H9=$5(),AA0=w1();function PA0($,I){let{gen:U,data:Y,it:J}=$;U.if(LT(U,Y,I,J.opts.ownProperties),()=>{$.setParams({missingProperty:l1._`${I}`},!0),$.error()})}ab.checkReportMissingProp=PA0;function TA0({gen:$,data:I,it:{opts:U}},Y,J){return(0,l1.or)(...Y.map((Q)=>(0,l1.and)(LT($,I,Q,U.ownProperties),l1._`${J} = ${Q}`)))}ab.checkMissingProp=TA0;function EA0($,I){$.setParams({missingProperty:I},!0),$.error()}ab.reportMissingProp=EA0;function rb($){return $.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:l1._`Object.prototype.hasOwnProperty`})}ab.hasPropFunc=rb;function zT($,I,U){return l1._`${rb($)}.call(${I}, ${U})`}ab.isOwnProperty=zT;function BA0($,I,U,Y){let J=l1._`${I}${(0,l1.getProperty)(U)} !== undefined`;return Y?l1._`${J} && ${zT($,I,U)}`:J}ab.propertyInData=BA0;function LT($,I,U,Y){let J=l1._`${I}${(0,l1.getProperty)(U)} === undefined`;return Y?(0,l1.or)(J,(0,l1.not)(zT($,I,U))):J}ab.noPropertyInData=LT;function tb($){return $?Object.keys($).filter((I)=>I!=="__proto__"):[]}ab.allSchemaProperties=tb;function vA0($,I){return tb(I).filter((U)=>!(0,XT.alwaysValidSchema)($,I[U]))}ab.schemaProperties=vA0;function RA0({schemaCode:$,data:I,it:{gen:U,topSchemaRef:Y,schemaPath:J,errorPath:Q},it:K},q,G,H){let W=H?l1._`${$}, ${I}, ${Y}${J}`:I,V=[[H9.default.instancePath,(0,l1.strConcat)(H9.default.instancePath,Q)],[H9.default.parentData,K.parentData],[H9.default.parentDataProperty,K.parentDataProperty],[H9.default.rootData,H9.default.rootData]];if(K.opts.dynamicRef)V.push([H9.default.dynamicAnchors,H9.default.dynamicAnchors]);let w=l1._`${W}, ${U.object(...V)}`;return G!==l1.nil?l1._`${q}.call(${G}, ${w})`:l1._`${q}(${w})`}ab.callValidateCode=RA0;var CA0=l1._`new RegExp`;function jA0({gen:$,it:{opts:I}},U){let Y=I.unicodeRegExp?"u":"",{regExp:J}=I.code,Q=J(U,Y);return $.scopeValue("pattern",{key:Q.toString(),ref:Q,code:l1._`${J.code==="new RegExp"?CA0:(0,AA0.useFunc)($,J)}(${U}, ${Y})`})}ab.usePattern=jA0;function _A0($){let{gen:I,data:U,keyword:Y,it:J}=$,Q=I.name("valid");if(J.allErrors){let q=I.let("valid",!0);return K(()=>I.assign(q,!1)),q}return I.var(Q,!0),K(()=>I.break()),Q;function K(q){let G=I.const("len",l1._`${U}.length`);I.forRange("i",0,G,(H)=>{$.subschema({keyword:Y,dataProp:H,dataPropType:XT.Type.Num},Q),I.if((0,l1.not)(Q),q)})}}ab.validateArray=_A0;function SA0($){let{gen:I,schema:U,keyword:Y,it:J}=$;if(!Array.isArray(U))throw Error("ajv implementation error");if(U.some((G)=>(0,XT.alwaysValidSchema)(J,G))&&!J.opts.unevaluated)return;le Line truncated
|| ${K} === "boolean" || ${J} === null`).assign(q,t0._`[${J}]`)}}}function VA0({gen:$,parentData:I,parentDataProperty:U},Y){$.if(t0._`${I} !== undefined`,()=>$.assign(t0._`${I}[${U}]`,Y))}function VT($,I,U,Y=IU.Correct){let J=Y===IU.Correct?t0.operators.EQ:t0.operators.NEQ,Q;switch($){case"null":return t0._`${I} ${J} null`;case"array":Q=t0._`Array.isArray(${I})`;break;case"object":Q=t0._`${I} && typeof ${I} == "object" && !Array.isArray(${I})`;break;case"integer":Q=K(t0._`!(${I} % 1) && !isNaN(${I})`);break;case"number":Q=K();break;default:return t0._`typeof ${I} ${J} ${$}`}return Y===IU.Correct?Q:(0,t0.not)(Q);function K(q=t0.nil){return(0,t0.and)(t0._`typeof ${I} == "number"`,q,U?t0._`isFinite(${I})`:t0.nil)}}pb.checkDataType=VT;function wT($,I,U,Y){if($.length===1)return VT($[0],I,U,Y);let J,Q=(0,bb.toHash)($);if(Q.array&&Q.object){let K=t0._`typeof ${I} != "object"`;J=Q.null?K:t0._`!${I} || ${K}`,delete Q.null,delete Q.array,delete Q.object}else J=t0.nil;if(Q.number)delete Q.integer;for(let K in Q)J=(0,t0.and)(J,VT(K,I,U,Y));return J}pb.checkDataTypes=wT;var wA0={message:({schema:$})=>`must be ${$}`,params:({schema:$,schemaValue:I})=>typeof $=="string"?t0._`{type: ${$}}`:t0._`{type: ${I}}`};function ZT($){let I=ZA0($);(0,KA0.reportError)(I,wA0)}pb.reportTypeError=ZT;function ZA0($){let{gen:I,data:U,schema:Y}=$,J=(0,bb.schemaRefOrVal)($,Y,"type");return{gen:I,keyword:"type",data:U,schema:Y.type,schemaCode:J,schemaValue:J,parentSchema:Y,params:{},it:$}}});var ob=O((mb)=>{Object.defineProperty(mb,"__esModule",{value:!0});mb.assignDefaults=void 0;var UU=s0(),NA0=w1();function MA0($,I){let{properties:U,items:Y}=$.schema;if(I==="object"&&U)for(let J in U)db($,J,U[J].default);else if(I==="array"&&Array.isArray(Y))Y.forEach((J,Q)=>db($,Q,J.default))}mb.assignDefaults=MA0;function db($,I,U){let{gen:Y,compositeRule:J,data:Q,opts:K}=$;if(U===void 0)return;let q=UU._`${Q}${(0,UU.getProperty)(I)}`;if(J){(0,NA0.checkStrictMode)($,`default is ignored for: ${q}`);return}let G=UU._`${q} === undefined`;if(K.useDefaults==="empty")G=UU._`${G} || ${q} === null || ${q} === ""`;Y.if(G,UU._`${q} = ${(0,UU.stringify)(U)}`)}});var O$=O((ab)=>{Object.defineProperty(ab,"__esModule",{value:!0});ab.validateUnion=ab.validateArray=ab.usePattern=ab.callValidateCode=ab.schemaProperties=ab.allSchemaProperties=ab.noPropertyInData=ab.propertyInData=ab.isOwnProperty=ab.hasPropFunc=ab.reportMissingProp=ab.checkMissingProp=ab.checkReportMissingProp=void 0;var l1=s0(),XT=w1(),W9=$5(),AA0=w1();function PA0($,I){let{gen:U,data:Y,it:J}=$;U.if(LT(U,Y,I,J.opts.ownProperties),()=>{$.setParams({missingProperty:l1._`${I}`},!0),$.error()})}ab.checkReportMissingProp=PA0;function TA0({gen:$,data:I,it:{opts:U}},Y,J){return(0,l1.or)(...Y.map((Q)=>(0,l1.and)(LT($,I,Q,U.ownProperties),l1._`${J} = ${Q}`)))}ab.checkMissingProp=TA0;function EA0($,I){$.setParams({missingProperty:I},!0),$.error()}ab.reportMissingProp=EA0;function rb($){return $.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:l1._`Object.prototype.hasOwnProperty`})}ab.hasPropFunc=rb;function zT($,I,U){return l1._`${rb($)}.call(${I}, ${U})`}ab.isOwnProperty=zT;function BA0($,I,U,Y){let J=l1._`${I}${(0,l1.getProperty)(U)} !== undefined`;return Y?l1._`${J} && ${zT($,I,U)}`:J}ab.propertyInData=BA0;function LT($,I,U,Y){let J=l1._`${I}${(0,l1.getProperty)(U)} === undefined`;return Y?(0,l1.or)(J,(0,l1.not)(zT($,I,U))):J}ab.noPropertyInData=LT;function tb($){return $?Object.keys($).filter((I)=>I!=="__proto__"):[]}ab.allSchemaProperties=tb;function vA0($,I){return tb(I).filter((U)=>!(0,XT.alwaysValidSchema)($,I[U]))}ab.schemaProperties=vA0;function RA0({schemaCode:$,data:I,it:{gen:U,topSchemaRef:Y,schemaPath:J,errorPath:Q},it:K},q,G,H){let W=H?l1._`${$}, ${I}, ${Y}${J}`:I,V=[[W9.default.instancePath,(0,l1.strConcat)(W9.default.instancePath,Q)],[W9.default.parentData,K.parentData],[W9.default.parentDataProperty,K.parentDataProperty],[W9.default.rootData,W9.default.rootData]];if(K.opts.dynamicRef)V.push([W9.default.dynamicAnchors,W9.default.dynamicAnchors]);let w=l1._`${W}, ${U.object(...V)}`;return G!==l1.nil?l1._`${q}.call(${G}, ${w})`:l1._`${q}(${w})`}ab.callValidateCode=RA0;var CA0=l1._`new RegExp`;function jA0({gen:$,it:{opts:I}},U){let Y=I.unicodeRegExp?"u":"",{regExp:J}=I.code,Q=J(U,Y);return $.scopeValue("pattern",{key:Q.toString(),ref:Q,code:l1._`${J.code==="new RegExp"?CA0:(0,AA0.useFunc)($,J)}(${U}, ${Y})`})}ab.usePattern=jA0;function _A0($){let{gen:I,data:U,keyword:Y,it:J}=$,Q=I.name("valid");if(J.allErrors){let q=I.let("valid",!0);return K(()=>I.assign(q,!1)),q}return I.var(Q,!0),K(()=>I.break()),Q;function K(q){let G=I.const("len",l1._`${U}.length`);I.forRange("i",0,G,(H)=>{$.subschema({keyword:Y,dataProp:H,dataPropType:XT.Type.Num},Q),I.if((0,l1.not)(Q),q)})}}ab.validateArray=_A0;function SA0($){let{gen:I,schema:U,keyword:Y,it:J}=$;if(!Array.isArray(U))throw Error("ajv implementation error");if(U.some((G)=>(0,XT.alwaysValidSchema)(J,G))&&!J.opts.unevaluated)return;le Line truncated
missingProperty: ${Y},
depsCount: ${I},
deps: ${U}}`};var aB0={keyword:"dependencies",type:"object",schemaType:"object",error:zp.error,code($){let[I,U]=sB0($);Zp($,I),Xp($,U)}};function sB0({schema:$}){let I={},U={};for(let Y in $){if(Y==="__proto__")continue;let J=Array.isArray($[Y])?I:U;J[Y]=$[Y]}return[I,U]}function Zp($,I=$.schema){let{gen:U,data:Y,it:J}=$;if(Object.keys(I).length===0)return;let Q=U.let("missing");for(let K in I){let q=I[K];if(q.length===0)continue;let G=(0,sQ.propertyInData)(U,Y,K,J.opts.ownProperties);if($.setParams({property:K,depsCount:q.length,deps:q.join(", ")}),J.allErrors)U.if(G,()=>{for(let H of q)(0,sQ.checkReportMissingProp)($,H)});else U.if(fT._`${G} && (${(0,sQ.checkMissingProp)($,q,Q)})`),(0,sQ.reportMissingProp)($,Q),U.else()}}zp.validatePropertyDeps=Zp;function Xp($,I=$.schema){let{gen:U,data:Y,keyword:J,it:Q}=$,K=U.name("valid");for(let q in I){if((0,tB0.alwaysValidSchema)(Q,I[q]))continue;U.if((0,sQ.propertyInData)(U,Y,q,Q.opts.ownProperties),()=>{let G=$.subschema({keyword:J,schemaProp:q},K);$.mergeValidEvaluated(G,K)},()=>U.var(K,!0)),$.ok(K)}}zp.validateSchemaDeps=Xp;zp.default=aB0});var Mp=O((Np)=>{Object.defineProperty(Np,"__esModule",{value:!0});var Fp=s0(),Iv0=w1(),Uv0={message:"property name must be valid",params:({params:$})=>Fp._`{propertyName: ${$.propertyName}}`},Yv0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Uv0,code($){let{gen:I,schema:U,data:Y,it:J}=$;if((0,Iv0.alwaysValidSchema)(J,U))return;let Q=I.name("valid");I.forIn("key",Y,(K)=>{$.setParams({propertyName:K}),$.subschema({keyword:"propertyNames",data:K,dataTypes:["string"],propertyName:K,compositeRule:!0},Q),I.if((0,Fp.not)(Q),()=>{if($.error(!0),!J.allErrors)I.break()})}),$.ok(Q)}};Np.default=Yv0});var bT=O((Ap)=>{Object.defineProperty(Ap,"__esModule",{value:!0});var KV=O$(),c$=s0(),Qv0=$5(),qV=w1(),Kv0={message:"must NOT have additional properties",params:({params:$})=>c$._`{additionalProperty: ${$.additionalProperty}}`},qv0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Kv0,code($){let{gen:I,schema:U,parentSchema:Y,data:J,errsCount:Q,it:K}=$;if(!Q)throw Error("ajv implementation error");let{allErrors:q,opts:G}=K;if(K.props=!0,G.removeAdditional!=="all"&&(0,qV.alwaysValidSchema)(K,U))return;let H=(0,KV.allSchemaProperties)(Y.properties),W=(0,KV.allSchemaProperties)(Y.patternProperties);V(),$.ok(c$._`${Q} === ${Qv0.default.errors}`);function V(){I.forIn("key",J,(D)=>{if(!H.length&&!W.length)z(D);else I.if(w(D),()=>z(D))})}function w(D){let F;if(H.length>8){let E=(0,qV.schemaRefOrVal)(K,Y.properties,"properties");F=(0,KV.isOwnProperty)(I,E,D)}else if(H.length)F=(0,c$.or)(...H.map((E)=>c$._`${D} === ${E}`));else F=c$.nil;if(W.length)F=(0,c$.or)(F,...W.map((E)=>c$._`${(0,KV.usePattern)($,E)}.test(${D})`));return(0,c$.not)(F)}function Z(D){I.code(c$._`delete ${J}[${D}]`)}function z(D){if(G.removeAdditional==="all"||G.removeAdditional&&U===!1){Z(D);return}if(U===!1){if($.setParams({additionalProperty:D}),$.error(),!q)I.break();return}if(typeof U=="object"&&!(0,qV.alwaysValidSchema)(K,U)){let F=I.name("valid");if(G.removeAdditional==="failing")L(D,F,!1),I.if((0,c$.not)(F),()=>{$.reset(),Z(D)});else if(L(D,F),!q)I.if((0,c$.not)(F),()=>I.break())}}function L(D,F,E){let T={keyword:"additionalProperties",dataProp:D,dataPropType:qV.Type.Str};if(E===!1)Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1});$.subschema(T,F)}}};Ap.default=qv0});var Bp=O((Ep)=>{Object.defineProperty(Ep,"__esModule",{value:!0});var Hv0=bQ(),Pp=O$(),iT=w1(),Tp=bT(),Wv0={keyword:"properties",type:"object",schemaType:"object",code($){let{gen:I,schema:U,parentSchema:Y,data:J,it:Q}=$;if(Q.opts.removeAdditional==="all"&&Y.additionalProperties===void 0)Tp.default.code(new Hv0.KeywordCxt(Q,Tp.default,"additionalProperties"));let K=(0,Pp.allSchemaProperties)(U);for(let V of K)Q.definedProperties.add(V);if(Q.opts.unevaluated&&K.length&&Q.props!==!0)Q.props=iT.mergeEvaluated.props(I,(0,iT.toHash)(K),Q.props);let q=K.filter((V)=>!(0,iT.alwaysValidSchema)(Q,U[V]));if(q.length===0)return;let G=I.name("valid");for(let V of q){if(H(V))W(V);else{if(I.if((0,Pp.propertyInData)(I,J,V,Q.opts.ownProperties)),W(V),!Q.allErrors)I.else().var(G,!0);I.endIf()}$.it.definedProperties.add(V),$.ok(G)}function H(V){return Q.opts.useDefaults&&!Q.compositeRule&&U[V].default!==void 0}function W(V){$.subschema({keyword:"properties",schemaProp:V,dataProp:V},G)}}};Ep.default=Wv0});var _p=O((jp)=>{Object.defineProperty(jp,"__esModule",{value:!0});var vp=O$(),GV=s0(),Rp=w1(),Cp=w1(),wv0={keyword:"patternProperties",type:"object",schemaType:"object",code($){let{gen:I,schema:U,data:Y,parentSchema:J,it:Q}=$,{opts:K}=Q,q=(0,vp.allSchemaProperties)(U),G=q.filter((L)=>(0,Rp.alwaysValidSchema)(Q,U[L]));if(q.length===0||G.length===q.length&&(!Q.opts.unevaluated||Q.props===!0))return;let H=K.strictSchema&&!K.allowMatchingProperties&&J.properties,W=I.name("valid");if(Q.props!==!0&&!(Q.props instanceo Line truncated
\x00`,n+=c1(b,2),n+=q.magic,n+=c1(D,2),n+=c1(F,2),n+=c1(g.crc32,4),n+=c1(g.compressedSize,4),n+=c1(g.uncompressedSize,4),n+=c1(H.length,2),n+=c1(E.length,2);var S=kw.LOCAL_FILE_HEADER+n+H+E,f=kw.CENTRAL_FILE_HEADER+c1(p,2)+n+c1(w.length,2)+"\x00\x00\x00\x00"+c1(C,4)+c1(Y,4)+H+E+w;return{fileRecord:S,dirRecord:f}},bx0=function($,I,U,Y,J){var Q="",K=bU.transformTo("string",J(Y));return Q=kw.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+c1($,2)+c1($,2)+c1(I,4)+c1(U,4)+c1(K.length,2)+K,Q},ix0=function($){var I="";return I=kw.DATA_DESCRIPTOR+c1($.crc32,4)+c1($.compressedSize,4)+c1($.uncompressedSize,4),I};function a$($,I,U,Y){iU.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=I,this.zipPlatform=U,this.encodeFileName=Y,this.streamFiles=$,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}bU.inherits(a$,iU);a$.prototype.push=function($){var I=$.meta.percent||0,U=this.entriesCount,Y=this._sources.length;if(this.accumulate)this.contentBuffer.push($);else this.bytesWritten+=$.data.length,iU.prototype.push.call(this,{data:$.data,meta:{currentFile:this.currentFile,percent:U?(I+100*(U-Y-1))/U:100}})};a$.prototype.openedSource=function($){this.currentSourceOffset=this.bytesWritten,this.currentFile=$.file.name;var I=this.streamFiles&&!$.file.dir;if(I){var U=Ba($,I,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:U.fileRecord,meta:{percent:0}})}else this.accumulate=!0};a$.prototype.closedSource=function($){this.accumulate=!1;var I=this.streamFiles&&!$.file.dir,U=Ba($,I,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(U.dirRecord),I)this.push({data:ix0($),meta:{percent:100}});else{this.push({data:U.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};a$.prototype.flush=function(){var $=this.bytesWritten;for(var I=0;I<this.dirRecords.length;I++)this.push({data:this.dirRecords[I],meta:{percent:100}});var U=this.bytesWritten-$,Y=bx0(this.dirRecords.length,U,$,this.zipComment,this.encodeFileName);this.push({data:Y,meta:{percent:100}})};a$.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};a$.prototype.registerPrevious=function($){this._sources.push($);var I=this;return $.on("data",function(U){I.processChunk(U)}),$.on("end",function(){if(I.closedSource(I.previous.streamInfo),I._sources.length)I.prepareNextSource();else I.end()}),$.on("error",function(U){I.error(U)}),this};a$.prototype.resume=function(){if(!iU.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};a$.prototype.error=function($){var I=this._sources;if(!iU.prototype.error.call(this,$))return!1;for(var U=0;U<I.length;U++)try{I[U].error($)}catch(Y){}return!0};a$.prototype.lock=function(){iU.prototype.lock.call(this);var $=this._sources;for(var I=0;I<$.length;I++)$[I].lock()};va.exports=a$});var Ca=O((dx0)=>{var nx0=Av(),px0=Ra(),cx0=function($,I){var U=$||I,Y=nx0[U];if(!Y)throw Error(U+" is not a valid compression method !");return Y};dx0.generateWorker=function($,I,U){var Y=new px0(I.streamFiles,U,I.platform,I.encodeFileName),J=0;try{$.forEach(function(Q,K){J++;var q=cx0(K.options.compression,I.compression),G=K.options.compressionOptions||I.compressionOptions||{},H=K.dir,W=K.date;K._compressWorker(q,G).withStreamInfo("file",{name:Q,dir:H,date:W,comment:K.comment||"",unixPermissions:K.unixPermissions,dosPermissions:K.dosPermissions}).pipe(Y)}),Y.entriesCount=J}catch(Q){Y.error(Q)}return Y}});var _a=O((bA1,ja)=>{var lx0=H4(),uw=Y$();function s2($,I){uw.call(this,"Nodejs stream input adapter for "+$),this._upstreamEnded=!1,this._bindStream(I)}lx0.inherits(s2,uw);s2.prototype._bindStream=function($){var I=this;this._stream=$,$.pause(),$.on("data",function(U){I.push({data:U,meta:{percent:0}})}).on("error",function(U){if(I.isPaused)this.generatedError=U;else I.error(U)}).on("end",function(){if(I.isPaused)I._upstreamEnded=!0;else I.end()})};s2.prototype.pause=function(){if(!uw.prototype.pause.call(this))return!1;return this._stream.pause(),!0};s2.prototype.resume=function(){if(!uw.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};ja.exports=s2});var ia=O((iA1,ba)=>{var ox0=jU(),e2=H4(),ha=Y$(),rx0=RB(),xa=CB(),Sa=Fw(),tx0=gr(),ax0=Ca(),ga=_2(),sx0=_a(),ka=function($,I,U){var Y=e2.getTypeOf(I),J,Q=e2.extend(U||{},xa);if(Q.date=Q.date||new Date,Q.compression!==null)Q.compression=Q.compression.toUpperCase();if(typeof Q.unixPermissions==="string")Q.unixPermissions=parseInt(Q.unixPermissions,8);if(Q.unixPermissions&&Q.unixPermissions&16384)Q.dir=!0;if(Q.dosPermissions&&Q.dosPermissions&16)Q.dir=!0;if(Q. Line truncated
deps: ${U}}`};var aB0={keyword:"dependencies",type:"object",schemaType:"object",error:zp.error,code($){let[I,U]=sB0($);Zp($,I),Xp($,U)}};function sB0({schema:$}){let I={},U={};for(let Y in $){if(Y==="__proto__")continue;let J=Array.isArray($[Y])?I:U;J[Y]=$[Y]}return[I,U]}function Zp($,I=$.schema){let{gen:U,data:Y,it:J}=$;if(Object.keys(I).length===0)return;let Q=U.let("missing");for(let K in I){let q=I[K];if(q.length===0)continue;let G=(0,sQ.propertyInData)(U,Y,K,J.opts.ownProperties);if($.setParams({property:K,depsCount:q.length,deps:q.join(", ")}),J.allErrors)U.if(G,()=>{for(let H of q)(0,sQ.checkReportMissingProp)($,H)});else U.if(fT._`${G} && (${(0,sQ.checkMissingProp)($,q,Q)})`),(0,sQ.reportMissingProp)($,Q),U.else()}}zp.validatePropertyDeps=Zp;function Xp($,I=$.schema){let{gen:U,data:Y,keyword:J,it:Q}=$,K=U.name("valid");for(let q in I){if((0,tB0.alwaysValidSchema)(Q,I[q]))continue;U.if((0,sQ.propertyInData)(U,Y,q,Q.opts.ownProperties),()=>{let G=$.subschema({keyword:J,schemaProp:q},K);$.mergeValidEvaluated(G,K)},()=>U.var(K,!0)),$.ok(K)}}zp.validateSchemaDeps=Xp;zp.default=aB0});var Mp=O((Np)=>{Object.defineProperty(Np,"__esModule",{value:!0});var Fp=s0(),Iv0=w1(),Uv0={message:"property name must be valid",params:({params:$})=>Fp._`{propertyName: ${$.propertyName}}`},Yv0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Uv0,code($){let{gen:I,schema:U,data:Y,it:J}=$;if((0,Iv0.alwaysValidSchema)(J,U))return;let Q=I.name("valid");I.forIn("key",Y,(K)=>{$.setParams({propertyName:K}),$.subschema({keyword:"propertyNames",data:K,dataTypes:["string"],propertyName:K,compositeRule:!0},Q),I.if((0,Fp.not)(Q),()=>{if($.error(!0),!J.allErrors)I.break()})}),$.ok(Q)}};Np.default=Yv0});var bT=O((Ap)=>{Object.defineProperty(Ap,"__esModule",{value:!0});var KV=O$(),c$=s0(),Qv0=$5(),qV=w1(),Kv0={message:"must NOT have additional properties",params:({params:$})=>c$._`{additionalProperty: ${$.additionalProperty}}`},qv0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Kv0,code($){let{gen:I,schema:U,parentSchema:Y,data:J,errsCount:Q,it:K}=$;if(!Q)throw Error("ajv implementation error");let{allErrors:q,opts:G}=K;if(K.props=!0,G.removeAdditional!=="all"&&(0,qV.alwaysValidSchema)(K,U))return;let H=(0,KV.allSchemaProperties)(Y.properties),W=(0,KV.allSchemaProperties)(Y.patternProperties);V(),$.ok(c$._`${Q} === ${Qv0.default.errors}`);function V(){I.forIn("key",J,(D)=>{if(!H.length&&!W.length)z(D);else I.if(w(D),()=>z(D))})}function w(D){let F;if(H.length>8){let E=(0,qV.schemaRefOrVal)(K,Y.properties,"properties");F=(0,KV.isOwnProperty)(I,E,D)}else if(H.length)F=(0,c$.or)(...H.map((E)=>c$._`${D} === ${E}`));else F=c$.nil;if(W.length)F=(0,c$.or)(F,...W.map((E)=>c$._`${(0,KV.usePattern)($,E)}.test(${D})`));return(0,c$.not)(F)}function Z(D){I.code(c$._`delete ${J}[${D}]`)}function z(D){if(G.removeAdditional==="all"||G.removeAdditional&&U===!1){Z(D);return}if(U===!1){if($.setParams({additionalProperty:D}),$.error(),!q)I.break();return}if(typeof U=="object"&&!(0,qV.alwaysValidSchema)(K,U)){let F=I.name("valid");if(G.removeAdditional==="failing")L(D,F,!1),I.if((0,c$.not)(F),()=>{$.reset(),Z(D)});else if(L(D,F),!q)I.if((0,c$.not)(F),()=>I.break())}}function L(D,F,E){let T={keyword:"additionalProperties",dataProp:D,dataPropType:qV.Type.Str};if(E===!1)Object.assign(T,{compositeRule:!0,createErrors:!1,allErrors:!1});$.subschema(T,F)}}};Ap.default=qv0});var Bp=O((Ep)=>{Object.defineProperty(Ep,"__esModule",{value:!0});var Hv0=bQ(),Pp=O$(),iT=w1(),Tp=bT(),Wv0={keyword:"properties",type:"object",schemaType:"object",code($){let{gen:I,schema:U,parentSchema:Y,data:J,it:Q}=$;if(Q.opts.removeAdditional==="all"&&Y.additionalProperties===void 0)Tp.default.code(new Hv0.KeywordCxt(Q,Tp.default,"additionalProperties"));let K=(0,Pp.allSchemaProperties)(U);for(let V of K)Q.definedProperties.add(V);if(Q.opts.unevaluated&&K.length&&Q.props!==!0)Q.props=iT.mergeEvaluated.props(I,(0,iT.toHash)(K),Q.props);let q=K.filter((V)=>!(0,iT.alwaysValidSchema)(Q,U[V]));if(q.length===0)return;let G=I.name("valid");for(let V of q){if(H(V))W(V);else{if(I.if((0,Pp.propertyInData)(I,J,V,Q.opts.ownProperties)),W(V),!Q.allErrors)I.else().var(G,!0);I.endIf()}$.it.definedProperties.add(V),$.ok(G)}function H(V){return Q.opts.useDefaults&&!Q.compositeRule&&U[V].default!==void 0}function W(V){$.subschema({keyword:"properties",schemaProp:V,dataProp:V},G)}}};Ep.default=Wv0});var _p=O((jp)=>{Object.defineProperty(jp,"__esModule",{value:!0});var vp=O$(),GV=s0(),Rp=w1(),Cp=w1(),wv0={keyword:"patternProperties",type:"object",schemaType:"object",code($){let{gen:I,schema:U,data:Y,parentSchema:J,it:Q}=$,{opts:K}=Q,q=(0,vp.allSchemaProperties)(U),G=q.filter((L)=>(0,Rp.alwaysValidSchema)(Q,U[L]));if(q.length===0||G.length===q.length&&(!Q.opts.unevaluated||Q.props===!0))return;let H=K.strictSchema&&!K.allowMatchingProperties&&J.properties,W=I.name("valid");if(Q.props!==!0&&!(Q.props instanceo Line truncated
\x00`,n+=c1(b,2),n+=q.magic,n+=c1(D,2),n+=c1(F,2),n+=c1(g.crc32,4),n+=c1(g.compressedSize,4),n+=c1(g.uncompressedSize,4),n+=c1(H.length,2),n+=c1(E.length,2);var S=kw.LOCAL_FILE_HEADER+n+H+E,f=kw.CENTRAL_FILE_HEADER+c1(p,2)+n+c1(w.length,2)+"\x00\x00\x00\x00"+c1(C,4)+c1(Y,4)+H+E+w;return{fileRecord:S,dirRecord:f}},bx0=function($,I,U,Y,J){var Q="",K=iU.transformTo("string",J(Y));return Q=kw.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+c1($,2)+c1($,2)+c1(I,4)+c1(U,4)+c1(K.length,2)+K,Q},ix0=function($){var I="";return I=kw.DATA_DESCRIPTOR+c1($.crc32,4)+c1($.compressedSize,4)+c1($.uncompressedSize,4),I};function a$($,I,U,Y){nU.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=I,this.zipPlatform=U,this.encodeFileName=Y,this.streamFiles=$,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}iU.inherits(a$,nU);a$.prototype.push=function($){var I=$.meta.percent||0,U=this.entriesCount,Y=this._sources.length;if(this.accumulate)this.contentBuffer.push($);else this.bytesWritten+=$.data.length,nU.prototype.push.call(this,{data:$.data,meta:{currentFile:this.currentFile,percent:U?(I+100*(U-Y-1))/U:100}})};a$.prototype.openedSource=function($){this.currentSourceOffset=this.bytesWritten,this.currentFile=$.file.name;var I=this.streamFiles&&!$.file.dir;if(I){var U=Ba($,I,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:U.fileRecord,meta:{percent:0}})}else this.accumulate=!0};a$.prototype.closedSource=function($){this.accumulate=!1;var I=this.streamFiles&&!$.file.dir,U=Ba($,I,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(U.dirRecord),I)this.push({data:ix0($),meta:{percent:100}});else{this.push({data:U.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};a$.prototype.flush=function(){var $=this.bytesWritten;for(var I=0;I<this.dirRecords.length;I++)this.push({data:this.dirRecords[I],meta:{percent:100}});var U=this.bytesWritten-$,Y=bx0(this.dirRecords.length,U,$,this.zipComment,this.encodeFileName);this.push({data:Y,meta:{percent:100}})};a$.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};a$.prototype.registerPrevious=function($){this._sources.push($);var I=this;return $.on("data",function(U){I.processChunk(U)}),$.on("end",function(){if(I.closedSource(I.previous.streamInfo),I._sources.length)I.prepareNextSource();else I.end()}),$.on("error",function(U){I.error(U)}),this};a$.prototype.resume=function(){if(!nU.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};a$.prototype.error=function($){var I=this._sources;if(!nU.prototype.error.call(this,$))return!1;for(var U=0;U<I.length;U++)try{I[U].error($)}catch(Y){}return!0};a$.prototype.lock=function(){nU.prototype.lock.call(this);var $=this._sources;for(var I=0;I<$.length;I++)$[I].lock()};va.exports=a$});var Ca=O((dx0)=>{var nx0=Av(),px0=Ra(),cx0=function($,I){var U=$||I,Y=nx0[U];if(!Y)throw Error(U+" is not a valid compression method !");return Y};dx0.generateWorker=function($,I,U){var Y=new px0(I.streamFiles,U,I.platform,I.encodeFileName),J=0;try{$.forEach(function(Q,K){J++;var q=cx0(K.options.compression,I.compression),G=K.options.compressionOptions||I.compressionOptions||{},H=K.dir,W=K.date;K._compressWorker(q,G).withStreamInfo("file",{name:Q,dir:H,date:W,comment:K.comment||"",unixPermissions:K.unixPermissions,dosPermissions:K.dosPermissions}).pipe(Y)}),Y.entriesCount=J}catch(Q){Y.error(Q)}return Y}});var _a=O((bA1,ja)=>{var lx0=H4(),uw=Y$();function s2($,I){uw.call(this,"Nodejs stream input adapter for "+$),this._upstreamEnded=!1,this._bindStream(I)}lx0.inherits(s2,uw);s2.prototype._bindStream=function($){var I=this;this._stream=$,$.pause(),$.on("data",function(U){I.push({data:U,meta:{percent:0}})}).on("error",function(U){if(I.isPaused)this.generatedError=U;else I.error(U)}).on("end",function(){if(I.isPaused)I._upstreamEnded=!0;else I.end()})};s2.prototype.pause=function(){if(!uw.prototype.pause.call(this))return!1;return this._stream.pause(),!0};s2.prototype.resume=function(){if(!uw.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};ja.exports=s2});var ia=O((iA1,ba)=>{var ox0=_U(),e2=H4(),ha=Y$(),rx0=RB(),xa=CB(),Sa=Fw(),tx0=gr(),ax0=Ca(),ga=_2(),sx0=_a(),ka=function($,I,U){var Y=e2.getTypeOf(I),J,Q=e2.extend(U||{},xa);if(Q.date=Q.date||new Date,Q.compression!==null)Q.compression=Q.compression.toUpperCase();if(typeof Q.unixPermissions==="string")Q.unixPermissions=parseInt(Q.unixPermissions,8);if(Q.unixPermissions&&Q.unixPermissions&16384)Q.dir=!0;if(Q.dosPermissions&&Q.dosPermissions&16)Q.dir=!0;if(Q. Line truncated
`)}openNode($,I){let U=this.tos,Y=this._xml;if(U&&this.open)Y.push(">");this._stack.push($),Y.push("<"),Y.push($),KR(Y,I),this.leaf=!0,this.open=!0}addAttribute($,I){if(!this.open)throw Error("Cannot write attributes to node if it is not open");if(I!==void 0)_e(this._xml,$,I)}addAttributes($){if(!this.open)throw Error("Cannot write attributes to node if it is not open");KR(this._xml,$)}writeText($){let I=this._xml;if(this.open)I.push(">"),this.open=!1;this.leaf=!1,I.push(je.xmlEncode($.toString()))}writeXml($){if(this.open)this._xml.push(">"),this.open=!1;this.leaf=!1,this._xml.push($)}closeNode(){let $=this._stack.pop(),I=this._xml;if(this.leaf)I.push("/>");else I.push("</"),I.push($),I.push(">");this.open=!1,this.leaf=!1}leafNode($,I,U){if(this.openNode($,I),U!==void 0)this.writeText(U);this.closeNode()}closeAll(){while(this._stack.length)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){let $=this._rollbacks.pop();if(this._xml.length>$.xml)this._xml.splice($.xml,this._xml.length-$.xml);if(this._stack.length>$.stack)this._stack.splice($.stack,this._stack.length-$.stack);this.leaf=$.leaf,this.open=$.open}get xml(){return this.closeAll(),this._xml.join("")}}qR.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"};Se.exports=qR});var GR=O((pf0)=>{var ge=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function nf0($){if(typeof $==="string")return $;if(ge)return ge.decode($);return $.toString()}pf0.bufferToString=nf0});var ue=O((he)=>{Object.defineProperty(he,"__esModule",{value:!0});he.CHAR=`
\r -퟿-�\uD800\uDC00-\uDBFF\uDFFF`;he.S=` \r
`;he.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";he.NAME_CHAR="-"+he.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";he.CHAR_RE=new RegExp("^["+he.CHAR+"]$","u");he.S_RE=new RegExp("^["+he.S+"]+$","u");he.NAME_START_CHAR_RE=new RegExp("^["+he.NAME_START_CHAR+"]$","u");he.NAME_CHAR_RE=new RegExp("^["+he.NAME_CHAR+"]$","u");he.NAME_RE=new RegExp("^["+he.NAME_START_CHAR+"]["+he.NAME_CHAR+"]*$","u");he.NMTOKEN_RE=new RegExp("^["+he.NAME_CHAR+"]+$","u");var HR=9,WR=10,VR=13,wR=32;he.S_LIST=[wR,WR,VR,HR];function df0($){return $>=wR&&$<=55295||$===WR||$===VR||$===HR||$>=57344&&$<=65533||$>=65536&&$<=1114111}he.isChar=df0;function mf0($){return $===wR||$===WR||$===VR||$===HR}he.isS=mf0;function ye($){return $>=65&&$<=90||$>=97&&$<=122||$===58||$===95||$===8204||$===8205||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}he.isNameStartChar=ye;function lf0($){return ye($)||$>=48&&$<=57||$===45||$===46||$===183||$>=768&&$<=879||$>=8255&&$<=8256}he.isNameChar=lf0});var oe=O((ce)=>{Object.defineProperty(ce,"__esModule",{value:!0});ce.CHAR="\x01-퟿-�\uD800\uDC00-\uDBFF\uDFFF";ce.RESTRICTED_CHAR="\x01-\b\v\f\x0E-\x1F-„†-Ÿ";ce.S=` \r
`;ce.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";ce.NAME_CHAR="-"+ce.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";ce.CHAR_RE=new RegExp("^["+ce.CHAR+"]$","u");ce.RESTRICTED_CHAR_RE=new RegExp("^["+ce.RESTRICTED_CHAR+"]$","u");ce.S_RE=new RegExp("^["+ce.S+"]+$","u");ce.NAME_START_CHAR_RE=new RegExp("^["+ce.NAME_START_CHAR+"]$","u");ce.NAME_CHAR_RE=new RegExp("^["+ce.NAME_CHAR+"]$","u");ce.NAME_RE=new RegExp("^["+ce.NAME_START_CHAR+"]["+ce.NAME_CHAR+"]*$","u");ce.NMTOKEN_RE=new RegExp("^["+ce.NAME_CHAR+"]+$","u");var fe=9,be=10,ie=13,ne=32;ce.S_LIST=[ne,be,ie,fe];function Qb0($){return $>=1&&$<=55295||$>=57344&&$<=65533||$>=65536&&$<=1114111}ce.isChar=Qb0;function Kb0($){return $>=1&&$<=8||$===11||$===12||$>=14&&$<=31||$>=127&&$<=132||$>=134&&$<=159}ce.isRestrictedChar=Kb0;function qb0($){return $===9||$===10||$===13||$>31&&$<127||$===133||$>159&&$<=55295||$>=57344&&$<=65533||$>=65536&&$<=1114111}ce.isCharAndNotRestricted=qb0;function Gb0($){return $===ne||$===be||$===ie||$===fe}ce.isS=Gb0;function pe($){return $>=65&&$<=90||$>=97&&$<=122||$===58||$===95||$===8204||$===8205||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}ce.isNameStartChar=pe;function Hb0($){return pe($)||$>=48&&$<=57||$===45||$===46||$===183||$>=768&&$<=879||$>=8255&&$<=8256}ce.isNameChar=Hb0});var ae=O((te)=>{Object.defineProperty(te,"__esModule",{value:!0});te.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";te.NC_NAME_CHAR="-"+te.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";te.NC_NAME_START_CHAR_RE=new RegExp("^["+te.NC_NAME_START_CHAR+"]$","u");te.NC_NAME_CHAR_RE=new RegExp("^["+te.NC_NAME_CHAR+"]$","u");te.NC_NAME_RE=new RegExp("^["+te.NC_NAME_START_CHAR+"]["+te.NC_NAME_CHAR+"]*$","u");function re($){return $>=65&&$<=90||$===95||$>=97&&$<=122||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8204&&$<=8205||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}te.isNCNameStartChar=re;function Tb0($){return re($)||($===45||$===46||$>=48&&$<=57||$===183||$>=768&&$<=879||$>=8255&&$<=8256)}te.isNCNameChar=Tb0});var F00=O((O00)=>{Object.defineProperty(O00,"__esModule",{value:!0});var sU=ue(),jb0=oe(),BR=ae(),p6=sU.isS,_b0=sU.isChar,wK=sU.isNameStartChar,se=sU.isNameChar,w00=sU.S_LIST,Sb0=sU.NAME_RE,gb0=jb0.isChar,yb0=BR.isNCNameStartChar,hb0=BR.isNCNameChar,xb0=BR.NC_NAME_RE,ZZ="http://www.w3.org/XML/1998/namespace",aU="http://www.w3.org/2000/xmlns/",kb0={__proto__:null,xml:ZZ,xmlns:aU},ub0={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},Q4=-1,v8=-2,ee=0,fb0=1,XR=2,bb0=3,oU=4,ib0=5,nb0=6,pb0=7,zR=8,cb0=9,db0=10,mb0=11,lb0=12,C6=13,GZ=14,LR=15,ob0=16,DR=17,rb0=18,tb0=19,OR=20,ab0=21,sb0=22,eb0=23,$00=24,FR=25,HZ=26,I00=27,$i0=28,Ii0=29,U00=30,Ui0=31,Yi0=32,Y3=33,Ji0=34,NR=35,ZK=36,MR=37,Qi0=38,Y00=39,J00=40,Ki0=41,Q00=42,qi0=43,Gi0=44,AR=9,e$=10,PR=13,K00=32,q00=33,Z00=34,XK=38,X00=39,WZ=45,VZ=47,Hi0=59,S9=60,rU=61,g4=62,I6=63,z00=91,tU=93,G00=133,H00=8232,wZ=($)=>$===Z00||$===X00,L00=[Z00,X00],Wi0=[...L00,z00,g4],Vi0=[...L00,S9,tU],wi0=[rU,I6,...w00],Zi0=[...w00,g4,XK,S9];function ER($,I,U){switch(I){case"xml":if(U!==ZZ)$.fail(`xml prefix must be bound to ${ZZ}.`);break;case"xmlns":if(U!==aU)$.fail(`xmlns prefix must be bound to ${aU}.`);break;default:}switch(U){case aU:$.fail(I===""?`the default namespace may not be set to ${U}.`:`may not assign a prefix (even "xmlns") to the URI ${aU}.`);break;case ZZ:switch(I){case"xml":break;case"":$.fail(`the default namespace may not be set to ${U}.`);break;default:$.fail("may not assign the xml namespace to another prefix.")}break;default:}}function Xi0($,I){for(let U of Object.keys(I))ER($,U,I[U])}var zi0=($)=>xb0.test($),Li0=($)=>Sb0.test($),J3=0,W00=1,TR=2;O00.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var V00={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class D00{constructor($){this.opt=$!==null&&$!==void 0?$:{},this.fragmentOpt=!!this.opt.fragment;let I=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,I){this.nameStartCheck=yb0,this.nameCheck=hb0,this.isName=zi0,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},kb0);let U=this.opt.additionalNamespaces;if(U!=null)Xi0(this,U),Object.assign(this.ns,U)}else this. Line truncated
`;ce.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";ce.NAME_CHAR="-"+ce.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";ce.CHAR_RE=new RegExp("^["+ce.CHAR+"]$","u");ce.RESTRICTED_CHAR_RE=new RegExp("^["+ce.RESTRICTED_CHAR+"]$","u");ce.S_RE=new RegExp("^["+ce.S+"]+$","u");ce.NAME_START_CHAR_RE=new RegExp("^["+ce.NAME_START_CHAR+"]$","u");ce.NAME_CHAR_RE=new RegExp("^["+ce.NAME_CHAR+"]$","u");ce.NAME_RE=new RegExp("^["+ce.NAME_START_CHAR+"]["+ce.NAME_CHAR+"]*$","u");ce.NMTOKEN_RE=new RegExp("^["+ce.NAME_CHAR+"]+$","u");var fe=9,be=10,ie=13,ne=32;ce.S_LIST=[ne,be,ie,fe];function Qb0($){return $>=1&&$<=55295||$>=57344&&$<=65533||$>=65536&&$<=1114111}ce.isChar=Qb0;function Kb0($){return $>=1&&$<=8||$===11||$===12||$>=14&&$<=31||$>=127&&$<=132||$>=134&&$<=159}ce.isRestrictedChar=Kb0;function qb0($){return $===9||$===10||$===13||$>31&&$<127||$===133||$>159&&$<=55295||$>=57344&&$<=65533||$>=65536&&$<=1114111}ce.isCharAndNotRestricted=qb0;function Gb0($){return $===ne||$===be||$===ie||$===fe}ce.isS=Gb0;function pe($){return $>=65&&$<=90||$>=97&&$<=122||$===58||$===95||$===8204||$===8205||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}ce.isNameStartChar=pe;function Hb0($){return pe($)||$>=48&&$<=57||$===45||$===46||$===183||$>=768&&$<=879||$>=8255&&$<=8256}ce.isNameChar=Hb0});var ae=O((te)=>{Object.defineProperty(te,"__esModule",{value:!0});te.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF";te.NC_NAME_CHAR="-"+te.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀";te.NC_NAME_START_CHAR_RE=new RegExp("^["+te.NC_NAME_START_CHAR+"]$","u");te.NC_NAME_CHAR_RE=new RegExp("^["+te.NC_NAME_CHAR+"]$","u");te.NC_NAME_RE=new RegExp("^["+te.NC_NAME_START_CHAR+"]["+te.NC_NAME_CHAR+"]*$","u");function re($){return $>=65&&$<=90||$===95||$>=97&&$<=122||$>=192&&$<=214||$>=216&&$<=246||$>=248&&$<=767||$>=880&&$<=893||$>=895&&$<=8191||$>=8204&&$<=8205||$>=8304&&$<=8591||$>=11264&&$<=12271||$>=12289&&$<=55295||$>=63744&&$<=64975||$>=65008&&$<=65533||$>=65536&&$<=983039}te.isNCNameStartChar=re;function Tb0($){return re($)||($===45||$===46||$>=48&&$<=57||$===183||$>=768&&$<=879||$>=8255&&$<=8256)}te.isNCNameChar=Tb0});var F00=O((O00)=>{Object.defineProperty(O00,"__esModule",{value:!0});var eU=ue(),jb0=oe(),BR=ae(),p6=eU.isS,_b0=eU.isChar,wK=eU.isNameStartChar,se=eU.isNameChar,w00=eU.S_LIST,Sb0=eU.NAME_RE,gb0=jb0.isChar,yb0=BR.isNCNameStartChar,hb0=BR.isNCNameChar,xb0=BR.NC_NAME_RE,ZZ="http://www.w3.org/XML/1998/namespace",sU="http://www.w3.org/2000/xmlns/",kb0={__proto__:null,xml:ZZ,xmlns:sU},ub0={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},Q4=-1,v8=-2,ee=0,fb0=1,XR=2,bb0=3,rU=4,ib0=5,nb0=6,pb0=7,zR=8,cb0=9,db0=10,mb0=11,lb0=12,C6=13,GZ=14,LR=15,ob0=16,DR=17,rb0=18,tb0=19,OR=20,ab0=21,sb0=22,eb0=23,$00=24,FR=25,HZ=26,I00=27,$i0=28,Ii0=29,U00=30,Ui0=31,Yi0=32,J3=33,Ji0=34,NR=35,ZK=36,MR=37,Qi0=38,Y00=39,J00=40,Ki0=41,Q00=42,qi0=43,Gi0=44,AR=9,e$=10,PR=13,K00=32,q00=33,Z00=34,XK=38,X00=39,WZ=45,VZ=47,Hi0=59,g9=60,tU=61,g4=62,I6=63,z00=91,aU=93,G00=133,H00=8232,wZ=($)=>$===Z00||$===X00,L00=[Z00,X00],Wi0=[...L00,z00,g4],Vi0=[...L00,g9,aU],wi0=[tU,I6,...w00],Zi0=[...w00,g4,XK,g9];function ER($,I,U){switch(I){case"xml":if(U!==ZZ)$.fail(`xml prefix must be bound to ${ZZ}.`);break;case"xmlns":if(U!==sU)$.fail(`xmlns prefix must be bound to ${sU}.`);break;default:}switch(U){case sU:$.fail(I===""?`the default namespace may not be set to ${U}.`:`may not assign a prefix (even "xmlns") to the URI ${sU}.`);break;case ZZ:switch(I){case"xml":break;case"":$.fail(`the default namespace may not be set to ${U}.`);break;default:$.fail("may not assign the xml namespace to another prefix.")}break;default:}}function Xi0($,I){for(let U of Object.keys(I))ER($,U,I[U])}var zi0=($)=>xb0.test($),Li0=($)=>Sb0.test($),Q3=0,W00=1,TR=2;O00.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var V00={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class D00{constructor($){this.opt=$!==null&&$!==void 0?$:{},this.fragmentOpt=!!this.opt.fragment;let I=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,I){this.nameStartCheck=yb0,this.nameCheck=hb0,this.isName=zi0,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},kb0);let U=this.opt.additionalNamespaces;if(U!=null)Xi0(this,U),Object.assign(this.ns,U)}else this. Line truncated
`,I=this.i}}captureToChar($){let{i:I}=this,{chunk:U}=this;while(!0){let Y=this.getCode();switch(Y){case v8:this.text+=`${U.slice(I,this.prevI)}
`,I=this.i,Y=e$;break;case Q4:return this.text+=U.slice(I),!1;default:}if(Y===$)return this.text+=U.slice(I,this.prevI),!0}}captureNameChars(){let{chunk:$,i:I}=this;while(!0){let U=this.getCode();if(U===Q4)return this.name+=$.slice(I),Q4;if(!se(U))return this.name+=$.slice(I,this.prevI),U===v8?e$:U}}skipSpaces(){while(!0){let $=this.getCodeNorm();if($===Q4||!p6($))return $}}setXMLVersion($){if(this.currentXMLVersion=$,$==="1.0")this.isChar=_b0,this.getCode=this.getCode10;else this.isChar=gb0,this.getCode=this.getCode11}sBegin(){if(this.chunk.charCodeAt(0)===65279)this.i++,this.column++;this.state=fb0}sBeginWhitespace(){let $=this.i,I=this.skipSpaces();if(this.prevI!==$)this.xmlDeclPossible=!1;switch(I){case S9:if(this.state=LR,this.text.length!==0)throw Error("no-empty text at start");break;case Q4:break;default:this.unget(),this.state=C6,this.xmlDeclPossible=!1}}sDoctype(){var $;let I=this.captureTo(Wi0);switch(I){case g4:{($=this.doctypeHandler)===null||$===void 0||$.call(this,this.text),this.text="",this.state=C6,this.doctype=!0;break}case Q4:break;default:if(this.text+=String.fromCodePoint(I),I===z00)this.state=oU;else if(wZ(I))this.state=bb0,this.q=I}}sDoctypeQuote(){let $=this.q;if(this.captureToChar($))this.text+=String.fromCodePoint($),this.q=null,this.state=XR}sDTD(){let $=this.captureTo(Vi0);if($===Q4)return;if(this.text+=String.fromCodePoint($),$===tU)this.state=XR;else if($===S9)this.state=nb0;else if(wZ($))this.state=ib0,this.q=$}sDTDQuoted(){let $=this.q;if(this.captureToChar($))this.text+=String.fromCodePoint($),this.state=oU,this.q=null}sDTDOpenWaka(){let $=this.getCodeNorm();switch(this.text+=String.fromCodePoint($),$){case q00:this.state=pb0,this.openWakaBang="";break;case I6:this.state=mb0;break;default:this.state=oU}}sDTDOpenWakaBang(){let $=String.fromCodePoint(this.getCodeNorm()),I=this.openWakaBang+=$;if(this.text+=$,I!=="-")this.state=I==="--"?zR:oU,this.openWakaBang=""}sDTDComment(){if(this.captureToChar(WZ))this.text+="-",this.state=cb0}sDTDCommentEnding(){let $=this.getCodeNorm();this.text+=String.fromCodePoint($),this.state=$===WZ?db0:zR}sDTDCommentEnded(){let $=this.getCodeNorm();if(this.text+=String.fromCodePoint($),$===g4)this.state=oU;else this.fail("malformed comment."),this.state=zR}sDTDPI(){if(this.captureToChar(I6))this.text+="?",this.state=lb0}sDTDPIEnding(){let $=this.getCodeNorm();if(this.text+=String.fromCodePoint($),$===g4)this.state=oU}sText(){if(this.tags.length!==0)this.handleTextInRoot();else this.handleTextOutsideRoot()}sEntity(){let{i:$}=this,{chunk:I}=this;$:while(!0)switch(this.getCode()){case v8:this.entity+=`${I.slice($,this.prevI)}
`,$=this.i;break;case Hi0:{let{entityReturnState:U}=this,Y=this.entity+I.slice($,this.prevI);this.state=U;let J;if(Y==="")this.fail("empty entity name."),J="&;";else J=this.parseEntity(Y),this.entity="";if(U!==C6||this.textHandler!==void 0)this.text+=J;break $}case Q4:this.entity+=I.slice($);break $;default:}}sOpenWaka(){let $=this.getCode();if(wK($))this.state=Ji0,this.unget(),this.xmlDeclPossible=!1;else switch($){case VZ:this.state=qi0,this.xmlDeclPossible=!1;break;case q00:this.state=ob0,this.openWakaBang="",this.xmlDeclPossible=!1;break;case I6:this.state=eb0;break;default:this.fail("disallowed character in tag name"),this.state=C6,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":if(!this.sawRoot&&!this.reportedTextBeforeRoot)this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0;if(this.closedRoot&&!this.reportedTextAfterRoot)this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0;this.state=OR,this.openWakaBang="";break;case"--":this.state=DR,this.openWakaBang="";break;case"DOCTYPE":if(this.state=XR,this.doctype||this.sawRoot)this.fail("inappropriately located doctype declaration.");this.openWakaBang="";break;default:if(this.openWakaBang.length>=7)this.fail("incorrect syntax.")}}sComment(){if(this.captureToChar(WZ))this.state=rb0}sCommentEnding(){var $;let I=this.getCodeNorm();if(I===WZ)this.state=tb0,($=this.commentHandler)===null||$===void 0||$.call(this,this.text),this.text="";else this.text+=`-${String.fromCodePoint(I)}`,this.state=DR}sCommentEnded(){let $=this.getCodeNorm();if($!==g4)this.fail("malformed comment."),this.text+=`--${String.fromCodePoint($)}`,this.state=DR;else this.state=C6}sCData(){if(this.captureToChar(tU))this.state=ab0}sCDataEnding(){let $=this.getCodeNorm();if($===tU)this.state=sb0;else this.text+=`]${String.fromCodePoint($)}`,this.state=OR}sCDataEnding2(){var $;let I=this.getCodeNorm();switch(I){case g4:{($=this.cdataHandler)===null||$===void 0||$.call(this,this.text),this.text="",this.state=C6;break}case tU:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(I)}`,this.state=OR}}sPIFirstChar(){let $=this.getCodeNorm();if(this.nameStartCheck($))this.piTarget+=String.fromCodePoint($),this.state=$00;else if($===I6||p6($))this.fail("processing instruction without a target."),this.state=$===I6?HZ:FR;else this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint($),this.state=$00}sPIRest(){let{chunk:$,i:I}=this;while(!0){let U=this.getCodeNorm();if(U===Q4){this.piTarget+=$.slice(I);return}if(!this.nameCheck(U)){this.piTarget+=$.slice(I,this.prevI);let Y=U===I6;if(Y||p6(U))if(this.piTarget==="xml"){if(!this.xmlDeclPossible)this.fail("an XML declaration must be at the start of the document.");this.state=Y?Y3:I00}else this.state=Y?HZ:FR;else this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(U);break}}}sPIBody(){if(this.text.length===0){let $=this.getCodeNorm();if($===I6)this.state=HZ;else if(!p6($))this.text=String.fromCodePoint($)}else if(this.captureToChar(I6))this.state=HZ}sPIEnding(){var $;let I=this.getCodeNorm();if(I===g4){let{piTarget:U}=this;if(U.toLowerCase()==="xml")this.fail("the XML declaration must appear at the start of the document.");($=this.piHandler)===null||$===void 0||$.call(this,{target:U,body:this.text}),this.piTarget=this.text="",this.state=C6}else if(I===I6)this.text+="?";else this.text+=`?${String.fromCodePoint(I)}`,this.state=FR;this.xmlDeclPossible=!1}sXMLDeclNameStart(){let $=this.skipSpaces();if($===I6){this.state=Y3;return}if($!==Q4)this.state=$i0,this.name=String.fromCodePoint($)}sXMLDeclName(){let $=this.captureTo(wi0);if($===I6){this.state=Y3,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(!(p6($)||$===rU))return;if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=$===rU?U00:Ii0}sXMLDeclEq(){let $=this.getCodeNorm();if($===I6){this.state=Y3,this.fail("XML declaration is incomplete.");return}if(p6($))return;if($!==rU)this.fail("value required.");this.state=U00}sXMLDeclValueStart(){let $=this.getCodeNorm();if($===I6){this.state=Y3,this.fail("XML declaration is incomplete.");return}if(p6($))return;if(!wZ($))this.fail("value must be quoted."),this.q=K00;else this.q=$;this.state=Ui0}sXMLDeclValue(){let $=this.captureTo([this.q,I6]);if($===I6){this.state=Y3,this.text="",this.fail("XML declaration is incomplete.");return}if($===Q4)return;let I=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];let U=I;if(this.xmlDecl.version=U,!/^1\.[0-9]+$/.test(U))this.fail("ver Line truncated
`;$=this.i,I=J3;break;case Q4:if(Y!==void 0)this.text+=U.slice($);break $;default:I=J3}this.forbiddenState=I}handleTextOutsideRoot(){let{i:$}=this,{chunk:I,textHandler:U}=this,Y=!1;$:while(!0){let J=this.getCode();switch(J){case S9:{if(this.state=LR,U!==void 0){let{text:Q}=this,K=I.slice($,this.prevI);if(Q.length!==0)U(Q+K),this.text="";else if(K.length!==0)U(K)}break $}case XK:if(this.state=GZ,this.entityReturnState=C6,U!==void 0)this.text+=I.slice($,this.prevI);Y=!0;break $;case v8:if(U!==void 0)this.text+=`${I.slice($,this.prevI)}
`;$=this.i;break;case Q4:if(U!==void 0)this.text+=I.slice($);break $;default:if(!p6(J))Y=!0}}if(!Y)return;if(!this.sawRoot&&!this.reportedTextBeforeRoot)this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0;if(this.closedRoot&&!this.reportedTextAfterRoot)this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0}pushAttribNS($,I){var U;let{prefix:Y,local:J}=this.qname($),Q={name:$,prefix:Y,local:J,value:I};if(this.attribList.push(Q),(U=this.attributeHandler)===null||U===void 0||U.call(this,Q),Y==="xmlns"){let K=I.trim();if(this.currentXMLVersion==="1.0"&&K==="")this.fail("invalid attempt to undefine prefix in XML 1.0");this.topNS[J]=K,ER(this,J,K)}else if($==="xmlns"){let K=I.trim();this.topNS[""]=K,ER(this,"",K)}}pushAttribPlain($,I){var U;let Y={name:$,value:I};this.attribList.push(Y),(U=this.attributeHandler)===null||U===void 0||U.call(this,Y)}end(){var $,I;if(!this.sawRoot)this.fail("document must contain a root element.");let{tags:U}=this;while(U.length>0){let J=U.pop();this.fail(`unclosed tag: ${J.name}`)}if(this.state!==ee&&this.state!==C6)this.fail("unexpected end.");let{text:Y}=this;if(Y.length!==0)($=this.textHandler)===null||$===void 0||$.call(this,Y),this.text="";return this._closed=!0,(I=this.endHandler)===null||I===void 0||I.call(this),this._init(),this}resolve($){var I,U;let Y=this.topNS[$];if(Y!==void 0)return Y;let{tags:J}=this;for(let Q=J.length-1;Q>=0;Q--)if(Y=J[Q].ns[$],Y!==void 0)return Y;if(Y=this.ns[$],Y!==void 0)return Y;return(U=(I=this.opt).resolvePrefix)===null||U===void 0?void 0:U.call(I,$)}qname($){let I=$.indexOf(":");if(I===-1)return{prefix:"",local:$};let U=$.slice(I+1),Y=$.slice(0,I);if(Y===""||U===""||U.includes(":"))this.fail(`malformed name: ${$}.`);return{prefix:Y,local:U}}processAttribsNS(){var $;let{attribList:I}=this,U=this.tag;{let{prefix:Q,local:K}=this.qname(U.name);U.prefix=Q,U.local=K;let q=U.uri=($=this.resolve(Q))!==null&&$!==void 0?$:"";if(Q!==""){if(Q==="xmlns")this.fail('tags may not have "xmlns" as prefix.');if(q==="")this.fail(`unbound namespace prefix: ${JSON.stringify(Q)}.`),U.uri=Q}}if(I.length===0)return;let{attributes:Y}=U,J=new Set;for(let Q of I){let{name:K,prefix:q,local:G}=Q,H,W;if(q==="")H=K==="xmlns"?aU:"",W=K;else{if(H=this.resolve(q),H===void 0)this.fail(`unbound namespace prefix: ${JSON.stringify(q)}.`),H=q;W=`{${H}}${G}`}if(J.has(W))this.fail(`duplicate attribute: ${W}.`);J.add(W),Q.uri=H,Y[K]=Q}this.attribList=[]}processAttribsPlain(){let{attribList:$}=this,I=this.tag.attributes;for(let{name:U,value:Y}of $){if(I[U]!==void 0)this.fail(`duplicate attribute: ${U}.`);I[U]=Y}this.attribList=[]}openTag(){var $;this.processAttribs();let{tags:I}=this,U=this.tag;U.isSelfClosing=!1,($=this.openTagHandler)===null||$===void 0||$.call(this,U),I.push(U),this.state=C6,this.name=""}openSelfClosingTag(){var $,I,U;this.processAttribs();let{tags:Y}=this,J=this.tag;if(J.isSelfClosing=!0,($=this.openTagHandler)===null||$===void 0||$.call(this,J),(I=this.closeTagHandler)===null||I===void 0||I.call(this,J),(this.tag=(U=Y[Y.length-1])!==null&&U!==void 0?U:null)===null)this.closedRoot=!0;this.state=C6,this.name=""}closeTag(){let{tags:$,name:I}=this;if(this.state=C6,this.name="",I===""){this.fail("weird empty close tag."),this.text+="</>";return}let U=this.closeTagHandler,Y=$.length;while(Y-- >0){let J=this.tag=$.pop();if(this.topNS=J.ns,U===null||U===void 0||U(J),J.name===I)break;this.fail("unexpected close tag.")}if(Y===0)this.closedRoot=!0;else if(Y<0)this.fail(`unmatched closing tag: ${I}.`),this.text+=`</${I}>`}parseEntity($){if($[0]!=="#"){let U=this.ENTITIES[$];if(U!==void 0)return U;return this.fail(this.isName($)?"undefined entity.":"disallowed character in entity name."),`&${$};`}let I=NaN;if($[1]==="x"&&/^#x[0-9a-f]+$/i.test($))I=parseInt($.slice(2),16);else if(/^#[0-9]+$/.test($))I=parseInt($.slice(1),10);if(!this.isChar(I))return this.fail("malformed character entity."),`&${$};`;return String.fromCodePoint(I)}}O00.SaxesParser=D00});var zK=O((TP1,N00)=>{var{SaxesParser:Fi0}=F00(),{PassThrough:Ni0}=z6(),{bufferToString:Mi0}=GR();N00.exports=async function*($){if($.pipe&&!$[Symbol.asyncIterator])$=$.pipe(new Ni0);let I=new Fi0,U;I.on("error",(J)=>{U=J});let Y=[];I.on("opentag",(J)=>Y.push({eventType:"opentag",value:J})),I.on("text",(J)=>Y.push({eventType:"text",value:J})),I.on("closetag",(J)=>Y.push({eventType:"closetag",value:J}));for await(let J of $){if(I.write(Mi0(J)),U)throw U;yield Y,Y=[]}}});var z0=O((EP1,M00)=>{var Ai0=zK(),Pi0=$6();class eU{prepare(){}render(){}parseOpen($){}parseText($){}parseClose($){}reconcile($,I){}reset(){if(this.model=null,this.map)Object.values(this.map).forEach(($)=>{if($ instanceof eU)$.reset();else if($.xform)$.xform.reset()})}mergeModel($){this.model=Object.assign(this.model||{},$)}async parse($){for await(let I of $)for(let{eventType:U,value:Y}of I)if(U==="opentag")this.parseOpen(Y);else if(U==="text")this.parseText(Y);else if(U==="closetag"){if(!this.parseClose(Y.name))return thiLine truncated
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:Line truncated
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,$||{}),typeof($===null||$===void 0?void 0:$.quoteHeaders)>"u")this.quoteHeaders=this.quoteColumns;if(($===null||$===void 0?void 0:$.quote)===!0)this.quote='"';else if(($===null||$===void 0?void 0:$.quote)===!1)this.quote="";if(typeof($===null||$===void 0?void 0:$.escape)!=="string")this.escape=this.quote;this.shouldWriteHeaders=!!this.headers&&((I=$.writeHeaders)!==null&&I!==void 0?I:!0),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}a50.FormatterOptions=t50});var mZ=O((tE1,U90)=>{var gl0="[object AsyncFunction]",yl0="[object Function]",hl0="[object GeneratorFunction]",xl0="[object Null]",kl0="[object Proxy]",ul0="[object Undefined]",fl0=typeof global=="object"&&global&&global.Object===Object&&global,bl0=typeof self=="object"&&self&&self.Object===Object&&self,il0=fl0||bl0||Function("return this")(),$90=Object.prototype,nl0=$90.hasOwnProperty,I90=$90.toString,e50=il0.Symbol,V3=e50?e50.toStringTag:void 0;function pl0($){if($==null)return $===void 0?ul0:xl0;return V3&&V3 in Object($)?cl0($):dl0($)}function cl0($){var I=nl0.call($,V3),U=$[V3];try{$[V3]=void 0;var Y=!0}catch(Q){}var J=I90.call($);if(Y)if(I)$[V3]=U;else delete $[V3];return J}function dl0($){return I90.call($)}function ml0($){if(!ll0($))return!1;var I=pl0($);return I==yl0||I==hl0||I==gl0||I==kl0}function ll0($){var I=typeof $;return $!=null&&(I=="object"||I=="function")}U90.exports=ml0});var k90=O((lZ,HY)=>{var ol0=200,rC="__lodash_hash_undefined__",IX=1,X90=2,z90=9007199254740991,oZ="[object Arguments]",nC="[object Array]",rl0="[object AsyncFunction]",L90="[object Boolean]",D90="[object Date]",O90="[object Error]",F90="[object Function]",tl0="[object GeneratorFunction]",rZ="[object Map]",N90="[object Number]",al0="[object Null]",GY="[object Object]",Y90="[object Promise]",sl0="[object Proxy]",M90="[object RegExp]",tZ="[object Set]",A90="[object String]",el0="[object Symbol]",$o0="[object Undefined]",pC="[object WeakMap]",P90="[object ArrayBuffer]",aZ="[object DataView]",Io0="[object Float32Array]",Uo0="[object Float64Array]",Yo0="[object Int8Array]",Jo0="[object Int16Array]",Qo0="[object Int32Array]",Ko0="[object Uint8Array]",qo0="[object Uint8ClampedArray]",Go0="[object Uint16Array]",Ho0="[object Uint32Array]",Wo0=/[\\^$.*+?()[\]{}|]/g,Vo0=/^\[object .+?Constructor\]$/,wo0=/^(?:0|[1-9]\d*)$/,r1={};r1[Io0]=r1[Uo0]=r1[Yo0]=r1[Jo0]=r1[Qo0]=r1[Ko0]=r1[qo0]=r1[Go0]=r1[Ho0]=!0;r1[oZ]=r1[nC]=r1[P90]=r1[L90]=r1[aZ]=r1[D90]=r1[O90]=r1[F90]=r1[rZ]=r1[N90]=r1[GY]=r1[M90]=r1[tZ]=r1[A90]=r1[pC]=!1;var T90=typeof global=="object"&&global&&global.Object===Object&&global,Zo0=typeof self=="object"&&self&&self.Object===Object&&self,F5=T90||Zo0||Function("return this")(),E90=typeof lZ=="object"&&lZ&&!lZ.nodeType&&lZ,J90=E90&&typeof HY=="object"&&HY&&!HY.nodeType&&HY,B90=J90&&J90.exports===E90,fC=B90&&T90.process,Q90=function(){try{return fC&&fC.binding&&fC.binding("util")}catch($){}}(),K90=Q90&&Q90.isTypedArray;function Xo0($,I){var U=-1,Y=$==null?0:$.length,J=0,Q=[];while(++U<Y){var K=$[U];if(I(K,U,$))Q[J++]=K}return Q}function zo0($,I){var U=-1,Y=I.length,J=$.length;while(++U<Y)$[J+U]=I[U];return $}function Lo0($,I){var U=-1,Y=$==null?0:$.length;while(++U<Y)if(I($[U],U,$))return!0;return!1}function Do0($,I){var U=-1,Y=Array($);while(++U<$)Y[U]=I(U);return Y}function Oo0($){return function(I){return $(I)}}function Fo0($,I){return $.has(I)}function No0($,I){return $==null?void 0:$[I]}function Mo0($){var I=-1,U=Array($.size);return $.forEach(function(Y,J){U[++I]=[J,Y]}),U}function Ao0($,I){return function(U){return $(I(U))}}function Po0($){var I=-1,U=Array($.size);return $.forEach(function(Y){U[++I]=Y}),U}var To0=Array.prototype,Eo0=Function.prototype,UX=Object.prototype,bC=F5["__core-js_shared__"],v90=Eo0.toString,C8=UX.hasOwnProperty,q90=function(){var $=/[^.]+$/.exec(bC&&bC.keys&&bC.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),R90=UX.toString,Bo0=RegExp("^"+v90.call(C8).replace(Wo0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G90=B90?F5.Buffer:void 0,sZ=F5.Symbol,H90=F5.Uint8Array,C90=UX.propertyIsEnumerable,vo0=To0.splice,w3=sZ?sZ.toStringTag:void 0,W90=Object.getOwnPropertySymbols,Ro0=G90?G90.isBuffer:void 0,Co0=Ao0(Object.keys,Object),cC=WY(F5,"DataView"),AK=WY(F5,"Map"),dC=WY(F5,"Promise"),mC=WY(F5,"Set"),lC=WY(F5,"WeakMap"),PK=WY(Object,"create"),jo0=z3(cC),_o0=z3(AK),So0=z3(dC),go0=z3(mC),yo0=z3(lC),V90=sZ?sZ.prototype:void 0,iC=V90?V90.valueOf:void 0;function Z3($){var I=-1,U=$==null?0:$.length;this.clear();while(++I<U){var Y=$[I];this.set(Y[0],Y[1])}}function ho0(){this.__data__=PK?PK(null):{},this.size=0}function xo0($){var I=this.has($)&&delete this.__data__[$];return this.size-=I?1:0,I}function ko0($){var I=this.__data Line truncated
]`;this.ESCAPE_REGEXP=new RegExp(I)}set headers($){this._headers=$}shouldQuote($,I){let U=I?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;if(pr0.default(U))return U;if(Array.isArray(U))return U[$];if(this._headers!==null)return U[this._headers[$]];return!1}format($,I,U){let Y=`${cr0.default($)?"":$}`.replace(/\0/g,""),{formatterOptions:J}=this;if(J.quote!==""){if(Y.indexOf(J.quote)!==-1)return this.quoteField(Y.replace(this.REPLACE_REGEXP,J.escapedQuote))}if(Y.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(I,U))return this.quoteField(Y);return Y}quoteField($){let{quote:I}=this.formatterOptions;return`${I}${$}${I}`}}VY.FieldFormatter=m90});var $j=O((l90)=>{Object.defineProperty(l90,"__esModule",{value:!0});l90.isSyncTransform=void 0;l90.isSyncTransform=($)=>$.length===1});var t90=O((wY)=>{var r90=wY&&wY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(wY,"__esModule",{value:!0});wY.RowFormatter=void 0;var mr0=r90(mZ()),lr0=r90(k90()),or0=eC(),rr0=$j();class L3{constructor($){if(this.rowCount=0,this.formatterOptions=$,this.fieldFormatter=new or0.FieldFormatter($),this.headers=$.headers,this.shouldWriteHeaders=$.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null)this.fieldFormatter.headers=this.headers;if($.transform)this.rowTransform=$.transform}static isRowHashArray($){if(Array.isArray($))return Array.isArray($[0])&&$[0].length===2;return!1}static isRowArray($){return Array.isArray($)&&!this.isRowHashArray($)}static gatherHeaders($){if(L3.isRowHashArray($))return $.map((I)=>I[0]);if(Array.isArray($))return $;return Object.keys($)}static createTransform($){if(rr0.isSyncTransform($))return(I,U)=>{let Y=null;try{Y=$(I)}catch(J){return U(J)}return U(null,Y)};return(I,U)=>{$(I,U)}}set rowTransform($){if(!mr0.default($))throw TypeError("The transform should be a function");this._rowTransform=L3.createTransform($)}format($,I){this.callTransformer($,(U,Y)=>{if(U)return I(U);if(!$)return I(null);let J=[];if(Y){let{shouldFormatColumns:Q,headers:K}=this.checkHeaders(Y);if(this.shouldWriteHeaders&&K&&!this.hasWrittenHeaders)J.push(this.formatColumns(K,!0)),this.hasWrittenHeaders=!0;if(Q){let q=this.gatherColumns(Y);J.push(this.formatColumns(q,!1))}}return I(null,J)})}finish($){let I=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return $(Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));I.push(this.formatColumns(this.headers,!0))}if(this.formatterOptions.includeEndRowDelimiter)I.push(this.formatterOptions.rowDelimiter);return $(null,I)}checkHeaders($){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};let I=L3.gatherHeaders($);if(this.headers=I,this.fieldFormatter.headers=I,!this.shouldWriteHeaders)return{shouldFormatColumns:!0,headers:null};return{shouldFormatColumns:!lr0.default(I,$),headers:I}}gatherColumns($){if(this.headers===null)throw Error("Headers is currently null");if(!Array.isArray($))return this.headers.map((I)=>$[I]);if(L3.isRowHashArray($))return this.headers.map((I,U)=>{let Y=$[U];if(Y)return Y[1];return""});if(L3.isRowArray($)&&!this.shouldWriteHeaders)return $;return this.headers.map((I,U)=>$[U])}callTransformer($,I){if(!this._rowTransform)return I(null,$);return this._rowTransform($,I)}formatColumns($,I){let U=$.map((J,Q)=>this.fieldFormatter.format(J,Q,I)).join(this.formatterOptions.delimiter),{rowCount:Y}=this;if(this.rowCount+=1,Y)return[this.formatterOptions.rowDelimiter,U].join("");return U}}wY.RowFormatter=L3});var a90=O((QX)=>{Object.defineProperty(QX,"__esModule",{value:!0});QX.FieldFormatter=QX.RowFormatter=void 0;var tr0=t90();Object.defineProperty(QX,"RowFormatter",{enumerable:!0,get:function(){return tr0.RowFormatter}});var ar0=eC();Object.defineProperty(QX,"FieldFormatter",{enumerable:!0,get:function(){return ar0.FieldFormatter}})});var Ij=O((e90)=>{Object.defineProperty(e90,"__esModule",{value:!0});e90.CsvFormatterStream=void 0;var er0=r("stream"),$t0=a90();class s90 extends er0.Transform{constructor($){super({writableObjectMode:$.objectMode});this.hasWrittenBOM=!1,this.formatterOptions=$,this.rowFormatter=new $t0.RowFormatter($),this.hasWrittenBOM=!$.writeBOM}transform($){return this.rowFormatter.rowTransform=$,this}_transform($,I,U){let Y=!1;try{if(!this.hasWrittenBOM)this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0;this.rowFormatter.format($,(J,Q)=>{if(J)return Y=!0,U(J);if(Q)Q.forEach((K)=>{this.push(Buffer.from(K,"utf8"))});return Y=!0,U()})}catch(J){if(Y)throw J;U(J)}}_flush($){this.rowFormatter.finish((I,U)=>{if(I)return $(I);if(U)U.forEach((Y)=>{this.push(Buffer.from(Y,"utf8"))});return $()})}}e90.CsvFormatterStream=s90});var U70=O((N1)=>{var I70=N1&&N1.__createBinding||(Object.create?function($,I,U,Y){if(Y===void 0)Y=U;Object.defineProperty($,Y,{enumerable:!0,get:function(){return I[U]}})}:function($,I,U,Y){if(Y===void 0)Y=U;$[Y]=I[U]}),It0=N1&&N1.__setModuleDefault||(Object.create?function($,I){Ob Line truncated
`,I=this.i,Y=e$;break;case Q4:return this.text+=U.slice(I),!1;default:}if(Y===$)return this.text+=U.slice(I,this.prevI),!0}}captureNameChars(){let{chunk:$,i:I}=this;while(!0){let U=this.getCode();if(U===Q4)return this.name+=$.slice(I),Q4;if(!se(U))return this.name+=$.slice(I,this.prevI),U===v8?e$:U}}skipSpaces(){while(!0){let $=this.getCodeNorm();if($===Q4||!p6($))return $}}setXMLVersion($){if(this.currentXMLVersion=$,$==="1.0")this.isChar=_b0,this.getCode=this.getCode10;else this.isChar=gb0,this.getCode=this.getCode11}sBegin(){if(this.chunk.charCodeAt(0)===65279)this.i++,this.column++;this.state=fb0}sBeginWhitespace(){let $=this.i,I=this.skipSpaces();if(this.prevI!==$)this.xmlDeclPossible=!1;switch(I){case g9:if(this.state=LR,this.text.length!==0)throw Error("no-empty text at start");break;case Q4:break;default:this.unget(),this.state=C6,this.xmlDeclPossible=!1}}sDoctype(){var $;let I=this.captureTo(Wi0);switch(I){case g4:{($=this.doctypeHandler)===null||$===void 0||$.call(this,this.text),this.text="",this.state=C6,this.doctype=!0;break}case Q4:break;default:if(this.text+=String.fromCodePoint(I),I===z00)this.state=rU;else if(wZ(I))this.state=bb0,this.q=I}}sDoctypeQuote(){let $=this.q;if(this.captureToChar($))this.text+=String.fromCodePoint($),this.q=null,this.state=XR}sDTD(){let $=this.captureTo(Vi0);if($===Q4)return;if(this.text+=String.fromCodePoint($),$===aU)this.state=XR;else if($===g9)this.state=nb0;else if(wZ($))this.state=ib0,this.q=$}sDTDQuoted(){let $=this.q;if(this.captureToChar($))this.text+=String.fromCodePoint($),this.state=rU,this.q=null}sDTDOpenWaka(){let $=this.getCodeNorm();switch(this.text+=String.fromCodePoint($),$){case q00:this.state=pb0,this.openWakaBang="";break;case I6:this.state=mb0;break;default:this.state=rU}}sDTDOpenWakaBang(){let $=String.fromCodePoint(this.getCodeNorm()),I=this.openWakaBang+=$;if(this.text+=$,I!=="-")this.state=I==="--"?zR:rU,this.openWakaBang=""}sDTDComment(){if(this.captureToChar(WZ))this.text+="-",this.state=cb0}sDTDCommentEnding(){let $=this.getCodeNorm();this.text+=String.fromCodePoint($),this.state=$===WZ?db0:zR}sDTDCommentEnded(){let $=this.getCodeNorm();if(this.text+=String.fromCodePoint($),$===g4)this.state=rU;else this.fail("malformed comment."),this.state=zR}sDTDPI(){if(this.captureToChar(I6))this.text+="?",this.state=lb0}sDTDPIEnding(){let $=this.getCodeNorm();if(this.text+=String.fromCodePoint($),$===g4)this.state=rU}sText(){if(this.tags.length!==0)this.handleTextInRoot();else this.handleTextOutsideRoot()}sEntity(){let{i:$}=this,{chunk:I}=this;$:while(!0)switch(this.getCode()){case v8:this.entity+=`${I.slice($,this.prevI)}
`,$=this.i;break;case Hi0:{let{entityReturnState:U}=this,Y=this.entity+I.slice($,this.prevI);this.state=U;let J;if(Y==="")this.fail("empty entity name."),J="&;";else J=this.parseEntity(Y),this.entity="";if(U!==C6||this.textHandler!==void 0)this.text+=J;break $}case Q4:this.entity+=I.slice($);break $;default:}}sOpenWaka(){let $=this.getCode();if(wK($))this.state=Ji0,this.unget(),this.xmlDeclPossible=!1;else switch($){case VZ:this.state=qi0,this.xmlDeclPossible=!1;break;case q00:this.state=ob0,this.openWakaBang="",this.xmlDeclPossible=!1;break;case I6:this.state=eb0;break;default:this.fail("disallowed character in tag name"),this.state=C6,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":if(!this.sawRoot&&!this.reportedTextBeforeRoot)this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0;if(this.closedRoot&&!this.reportedTextAfterRoot)this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0;this.state=OR,this.openWakaBang="";break;case"--":this.state=DR,this.openWakaBang="";break;case"DOCTYPE":if(this.state=XR,this.doctype||this.sawRoot)this.fail("inappropriately located doctype declaration.");this.openWakaBang="";break;default:if(this.openWakaBang.length>=7)this.fail("incorrect syntax.")}}sComment(){if(this.captureToChar(WZ))this.state=rb0}sCommentEnding(){var $;let I=this.getCodeNorm();if(I===WZ)this.state=tb0,($=this.commentHandler)===null||$===void 0||$.call(this,this.text),this.text="";else this.text+=`-${String.fromCodePoint(I)}`,this.state=DR}sCommentEnded(){let $=this.getCodeNorm();if($!==g4)this.fail("malformed comment."),this.text+=`--${String.fromCodePoint($)}`,this.state=DR;else this.state=C6}sCData(){if(this.captureToChar(aU))this.state=ab0}sCDataEnding(){let $=this.getCodeNorm();if($===aU)this.state=sb0;else this.text+=`]${String.fromCodePoint($)}`,this.state=OR}sCDataEnding2(){var $;let I=this.getCodeNorm();switch(I){case g4:{($=this.cdataHandler)===null||$===void 0||$.call(this,this.text),this.text="",this.state=C6;break}case aU:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(I)}`,this.state=OR}}sPIFirstChar(){let $=this.getCodeNorm();if(this.nameStartCheck($))this.piTarget+=String.fromCodePoint($),this.state=$00;else if($===I6||p6($))this.fail("processing instruction without a target."),this.state=$===I6?HZ:FR;else this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint($),this.state=$00}sPIRest(){let{chunk:$,i:I}=this;while(!0){let U=this.getCodeNorm();if(U===Q4){this.piTarget+=$.slice(I);return}if(!this.nameCheck(U)){this.piTarget+=$.slice(I,this.prevI);let Y=U===I6;if(Y||p6(U))if(this.piTarget==="xml"){if(!this.xmlDeclPossible)this.fail("an XML declaration must be at the start of the document.");this.state=Y?J3:I00}else this.state=Y?HZ:FR;else this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(U);break}}}sPIBody(){if(this.text.length===0){let $=this.getCodeNorm();if($===I6)this.state=HZ;else if(!p6($))this.text=String.fromCodePoint($)}else if(this.captureToChar(I6))this.state=HZ}sPIEnding(){var $;let I=this.getCodeNorm();if(I===g4){let{piTarget:U}=this;if(U.toLowerCase()==="xml")this.fail("the XML declaration must appear at the start of the document.");($=this.piHandler)===null||$===void 0||$.call(this,{target:U,body:this.text}),this.piTarget=this.text="",this.state=C6}else if(I===I6)this.text+="?";else this.text+=`?${String.fromCodePoint(I)}`,this.state=FR;this.xmlDeclPossible=!1}sXMLDeclNameStart(){let $=this.skipSpaces();if($===I6){this.state=J3;return}if($!==Q4)this.state=$i0,this.name=String.fromCodePoint($)}sXMLDeclName(){let $=this.captureTo(wi0);if($===I6){this.state=J3,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(!(p6($)||$===tU))return;if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=$===tU?U00:Ii0}sXMLDeclEq(){let $=this.getCodeNorm();if($===I6){this.state=J3,this.fail("XML declaration is incomplete.");return}if(p6($))return;if($!==tU)this.fail("value required.");this.state=U00}sXMLDeclValueStart(){let $=this.getCodeNorm();if($===I6){this.state=J3,this.fail("XML declaration is incomplete.");return}if(p6($))return;if(!wZ($))this.fail("value must be quoted."),this.q=K00;else this.q=$;this.state=Ui0}sXMLDeclValue(){let $=this.captureTo([this.q,I6]);if($===I6){this.state=J3,this.text="",this.fail("XML declaration is incomplete.");return}if($===Q4)return;let I=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];let U=I;if(this.xmlDecl.version=U,!/^1\.[0-9]+$/.test(U))this.fail("ver Line truncated
`;$=this.i,I=Q3;break;case Q4:if(Y!==void 0)this.text+=U.slice($);break $;default:I=Q3}this.forbiddenState=I}handleTextOutsideRoot(){let{i:$}=this,{chunk:I,textHandler:U}=this,Y=!1;$:while(!0){let J=this.getCode();switch(J){case g9:{if(this.state=LR,U!==void 0){let{text:Q}=this,K=I.slice($,this.prevI);if(Q.length!==0)U(Q+K),this.text="";else if(K.length!==0)U(K)}break $}case XK:if(this.state=GZ,this.entityReturnState=C6,U!==void 0)this.text+=I.slice($,this.prevI);Y=!0;break $;case v8:if(U!==void 0)this.text+=`${I.slice($,this.prevI)}
`;$=this.i;break;case Q4:if(U!==void 0)this.text+=I.slice($);break $;default:if(!p6(J))Y=!0}}if(!Y)return;if(!this.sawRoot&&!this.reportedTextBeforeRoot)this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0;if(this.closedRoot&&!this.reportedTextAfterRoot)this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0}pushAttribNS($,I){var U;let{prefix:Y,local:J}=this.qname($),Q={name:$,prefix:Y,local:J,value:I};if(this.attribList.push(Q),(U=this.attributeHandler)===null||U===void 0||U.call(this,Q),Y==="xmlns"){let K=I.trim();if(this.currentXMLVersion==="1.0"&&K==="")this.fail("invalid attempt to undefine prefix in XML 1.0");this.topNS[J]=K,ER(this,J,K)}else if($==="xmlns"){let K=I.trim();this.topNS[""]=K,ER(this,"",K)}}pushAttribPlain($,I){var U;let Y={name:$,value:I};this.attribList.push(Y),(U=this.attributeHandler)===null||U===void 0||U.call(this,Y)}end(){var $,I;if(!this.sawRoot)this.fail("document must contain a root element.");let{tags:U}=this;while(U.length>0){let J=U.pop();this.fail(`unclosed tag: ${J.name}`)}if(this.state!==ee&&this.state!==C6)this.fail("unexpected end.");let{text:Y}=this;if(Y.length!==0)($=this.textHandler)===null||$===void 0||$.call(this,Y),this.text="";return this._closed=!0,(I=this.endHandler)===null||I===void 0||I.call(this),this._init(),this}resolve($){var I,U;let Y=this.topNS[$];if(Y!==void 0)return Y;let{tags:J}=this;for(let Q=J.length-1;Q>=0;Q--)if(Y=J[Q].ns[$],Y!==void 0)return Y;if(Y=this.ns[$],Y!==void 0)return Y;return(U=(I=this.opt).resolvePrefix)===null||U===void 0?void 0:U.call(I,$)}qname($){let I=$.indexOf(":");if(I===-1)return{prefix:"",local:$};let U=$.slice(I+1),Y=$.slice(0,I);if(Y===""||U===""||U.includes(":"))this.fail(`malformed name: ${$}.`);return{prefix:Y,local:U}}processAttribsNS(){var $;let{attribList:I}=this,U=this.tag;{let{prefix:Q,local:K}=this.qname(U.name);U.prefix=Q,U.local=K;let q=U.uri=($=this.resolve(Q))!==null&&$!==void 0?$:"";if(Q!==""){if(Q==="xmlns")this.fail('tags may not have "xmlns" as prefix.');if(q==="")this.fail(`unbound namespace prefix: ${JSON.stringify(Q)}.`),U.uri=Q}}if(I.length===0)return;let{attributes:Y}=U,J=new Set;for(let Q of I){let{name:K,prefix:q,local:G}=Q,H,W;if(q==="")H=K==="xmlns"?sU:"",W=K;else{if(H=this.resolve(q),H===void 0)this.fail(`unbound namespace prefix: ${JSON.stringify(q)}.`),H=q;W=`{${H}}${G}`}if(J.has(W))this.fail(`duplicate attribute: ${W}.`);J.add(W),Q.uri=H,Y[K]=Q}this.attribList=[]}processAttribsPlain(){let{attribList:$}=this,I=this.tag.attributes;for(let{name:U,value:Y}of $){if(I[U]!==void 0)this.fail(`duplicate attribute: ${U}.`);I[U]=Y}this.attribList=[]}openTag(){var $;this.processAttribs();let{tags:I}=this,U=this.tag;U.isSelfClosing=!1,($=this.openTagHandler)===null||$===void 0||$.call(this,U),I.push(U),this.state=C6,this.name=""}openSelfClosingTag(){var $,I,U;this.processAttribs();let{tags:Y}=this,J=this.tag;if(J.isSelfClosing=!0,($=this.openTagHandler)===null||$===void 0||$.call(this,J),(I=this.closeTagHandler)===null||I===void 0||I.call(this,J),(this.tag=(U=Y[Y.length-1])!==null&&U!==void 0?U:null)===null)this.closedRoot=!0;this.state=C6,this.name=""}closeTag(){let{tags:$,name:I}=this;if(this.state=C6,this.name="",I===""){this.fail("weird empty close tag."),this.text+="</>";return}let U=this.closeTagHandler,Y=$.length;while(Y-- >0){let J=this.tag=$.pop();if(this.topNS=J.ns,U===null||U===void 0||U(J),J.name===I)break;this.fail("unexpected close tag.")}if(Y===0)this.closedRoot=!0;else if(Y<0)this.fail(`unmatched closing tag: ${I}.`),this.text+=`</${I}>`}parseEntity($){if($[0]!=="#"){let U=this.ENTITIES[$];if(U!==void 0)return U;return this.fail(this.isName($)?"undefined entity.":"disallowed character in entity name."),`&${$};`}let I=NaN;if($[1]==="x"&&/^#x[0-9a-f]+$/i.test($))I=parseInt($.slice(2),16);else if(/^#[0-9]+$/.test($))I=parseInt($.slice(1),10);if(!this.isChar(I))return this.fail("malformed character entity."),`&${$};`;return String.fromCodePoint(I)}}O00.SaxesParser=D00});var zK=O((TP1,N00)=>{var{SaxesParser:Fi0}=F00(),{PassThrough:Ni0}=z6(),{bufferToString:Mi0}=GR();N00.exports=async function*($){if($.pipe&&!$[Symbol.asyncIterator])$=$.pipe(new Ni0);let I=new Fi0,U;I.on("error",(J)=>{U=J});let Y=[];I.on("opentag",(J)=>Y.push({eventType:"opentag",value:J})),I.on("text",(J)=>Y.push({eventType:"text",value:J})),I.on("closetag",(J)=>Y.push({eventType:"closetag",value:J}));for await(let J of $){if(I.write(Mi0(J)),U)throw U;yield Y,Y=[]}}});var z0=O((EP1,M00)=>{var Ai0=zK(),Pi0=$6();class $Y{prepare(){}render(){}parseOpen($){}parseText($){}parseClose($){}reconcile($,I){}reset(){if(this.model=null,this.map)Object.values(this.map).forEach(($)=>{if($ instanceof $Y)$.reset();else if($.xform)$.xform.reset()})}mergeModel($){this.model=Object.assign(this.model||{},$)}async parse($){for await(let I of $)for(let{eventType:U,value:Y}of I)if(U==="opentag")this.parseOpen(Y);else if(U==="text")this.parseText(Y);else if(U==="closetag"){if(!this.parseClose(Y.name))return thiLine truncated
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:Line truncated
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,$||{}),typeof($===null||$===void 0?void 0:$.quoteHeaders)>"u")this.quoteHeaders=this.quoteColumns;if(($===null||$===void 0?void 0:$.quote)===!0)this.quote='"';else if(($===null||$===void 0?void 0:$.quote)===!1)this.quote="";if(typeof($===null||$===void 0?void 0:$.escape)!=="string")this.escape=this.quote;this.shouldWriteHeaders=!!this.headers&&((I=$.writeHeaders)!==null&&I!==void 0?I:!0),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}a50.FormatterOptions=t50});var mZ=O((tE1,U90)=>{var gl0="[object AsyncFunction]",yl0="[object Function]",hl0="[object GeneratorFunction]",xl0="[object Null]",kl0="[object Proxy]",ul0="[object Undefined]",fl0=typeof global=="object"&&global&&global.Object===Object&&global,bl0=typeof self=="object"&&self&&self.Object===Object&&self,il0=fl0||bl0||Function("return this")(),$90=Object.prototype,nl0=$90.hasOwnProperty,I90=$90.toString,e50=il0.Symbol,w3=e50?e50.toStringTag:void 0;function pl0($){if($==null)return $===void 0?ul0:xl0;return w3&&w3 in Object($)?cl0($):dl0($)}function cl0($){var I=nl0.call($,w3),U=$[w3];try{$[w3]=void 0;var Y=!0}catch(Q){}var J=I90.call($);if(Y)if(I)$[w3]=U;else delete $[w3];return J}function dl0($){return I90.call($)}function ml0($){if(!ll0($))return!1;var I=pl0($);return I==yl0||I==hl0||I==gl0||I==kl0}function ll0($){var I=typeof $;return $!=null&&(I=="object"||I=="function")}U90.exports=ml0});var k90=O((lZ,WY)=>{var ol0=200,rC="__lodash_hash_undefined__",IX=1,X90=2,z90=9007199254740991,oZ="[object Arguments]",nC="[object Array]",rl0="[object AsyncFunction]",L90="[object Boolean]",D90="[object Date]",O90="[object Error]",F90="[object Function]",tl0="[object GeneratorFunction]",rZ="[object Map]",N90="[object Number]",al0="[object Null]",HY="[object Object]",Y90="[object Promise]",sl0="[object Proxy]",M90="[object RegExp]",tZ="[object Set]",A90="[object String]",el0="[object Symbol]",$o0="[object Undefined]",pC="[object WeakMap]",P90="[object ArrayBuffer]",aZ="[object DataView]",Io0="[object Float32Array]",Uo0="[object Float64Array]",Yo0="[object Int8Array]",Jo0="[object Int16Array]",Qo0="[object Int32Array]",Ko0="[object Uint8Array]",qo0="[object Uint8ClampedArray]",Go0="[object Uint16Array]",Ho0="[object Uint32Array]",Wo0=/[\\^$.*+?()[\]{}|]/g,Vo0=/^\[object .+?Constructor\]$/,wo0=/^(?:0|[1-9]\d*)$/,r1={};r1[Io0]=r1[Uo0]=r1[Yo0]=r1[Jo0]=r1[Qo0]=r1[Ko0]=r1[qo0]=r1[Go0]=r1[Ho0]=!0;r1[oZ]=r1[nC]=r1[P90]=r1[L90]=r1[aZ]=r1[D90]=r1[O90]=r1[F90]=r1[rZ]=r1[N90]=r1[HY]=r1[M90]=r1[tZ]=r1[A90]=r1[pC]=!1;var T90=typeof global=="object"&&global&&global.Object===Object&&global,Zo0=typeof self=="object"&&self&&self.Object===Object&&self,F5=T90||Zo0||Function("return this")(),E90=typeof lZ=="object"&&lZ&&!lZ.nodeType&&lZ,J90=E90&&typeof WY=="object"&&WY&&!WY.nodeType&&WY,B90=J90&&J90.exports===E90,fC=B90&&T90.process,Q90=function(){try{return fC&&fC.binding&&fC.binding("util")}catch($){}}(),K90=Q90&&Q90.isTypedArray;function Xo0($,I){var U=-1,Y=$==null?0:$.length,J=0,Q=[];while(++U<Y){var K=$[U];if(I(K,U,$))Q[J++]=K}return Q}function zo0($,I){var U=-1,Y=I.length,J=$.length;while(++U<Y)$[J+U]=I[U];return $}function Lo0($,I){var U=-1,Y=$==null?0:$.length;while(++U<Y)if(I($[U],U,$))return!0;return!1}function Do0($,I){var U=-1,Y=Array($);while(++U<$)Y[U]=I(U);return Y}function Oo0($){return function(I){return $(I)}}function Fo0($,I){return $.has(I)}function No0($,I){return $==null?void 0:$[I]}function Mo0($){var I=-1,U=Array($.size);return $.forEach(function(Y,J){U[++I]=[J,Y]}),U}function Ao0($,I){return function(U){return $(I(U))}}function Po0($){var I=-1,U=Array($.size);return $.forEach(function(Y){U[++I]=Y}),U}var To0=Array.prototype,Eo0=Function.prototype,UX=Object.prototype,bC=F5["__core-js_shared__"],v90=Eo0.toString,C8=UX.hasOwnProperty,q90=function(){var $=/[^.]+$/.exec(bC&&bC.keys&&bC.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),R90=UX.toString,Bo0=RegExp("^"+v90.call(C8).replace(Wo0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G90=B90?F5.Buffer:void 0,sZ=F5.Symbol,H90=F5.Uint8Array,C90=UX.propertyIsEnumerable,vo0=To0.splice,Z3=sZ?sZ.toStringTag:void 0,W90=Object.getOwnPropertySymbols,Ro0=G90?G90.isBuffer:void 0,Co0=Ao0(Object.keys,Object),cC=VY(F5,"DataView"),AK=VY(F5,"Map"),dC=VY(F5,"Promise"),mC=VY(F5,"Set"),lC=VY(F5,"WeakMap"),PK=VY(Object,"create"),jo0=L3(cC),_o0=L3(AK),So0=L3(dC),go0=L3(mC),yo0=L3(lC),V90=sZ?sZ.prototype:void 0,iC=V90?V90.valueOf:void 0;function X3($){var I=-1,U=$==null?0:$.length;this.clear();while(++I<U){var Y=$[I];this.set(Y[0],Y[1])}}function ho0(){this.__data__=PK?PK(null):{},this.size=0}function xo0($){var I=this.has($)&&delete this.__data__[$];return this.size-=I?1:0,I}function ko0($){var I=this.__data Line truncated
]`;this.ESCAPE_REGEXP=new RegExp(I)}set headers($){this._headers=$}shouldQuote($,I){let U=I?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;if(pr0.default(U))return U;if(Array.isArray(U))return U[$];if(this._headers!==null)return U[this._headers[$]];return!1}format($,I,U){let Y=`${cr0.default($)?"":$}`.replace(/\0/g,""),{formatterOptions:J}=this;if(J.quote!==""){if(Y.indexOf(J.quote)!==-1)return this.quoteField(Y.replace(this.REPLACE_REGEXP,J.escapedQuote))}if(Y.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(I,U))return this.quoteField(Y);return Y}quoteField($){let{quote:I}=this.formatterOptions;return`${I}${$}${I}`}}wY.FieldFormatter=m90});var $j=O((l90)=>{Object.defineProperty(l90,"__esModule",{value:!0});l90.isSyncTransform=void 0;l90.isSyncTransform=($)=>$.length===1});var t90=O((ZY)=>{var r90=ZY&&ZY.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(ZY,"__esModule",{value:!0});ZY.RowFormatter=void 0;var mr0=r90(mZ()),lr0=r90(k90()),or0=eC(),rr0=$j();class D3{constructor($){if(this.rowCount=0,this.formatterOptions=$,this.fieldFormatter=new or0.FieldFormatter($),this.headers=$.headers,this.shouldWriteHeaders=$.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null)this.fieldFormatter.headers=this.headers;if($.transform)this.rowTransform=$.transform}static isRowHashArray($){if(Array.isArray($))return Array.isArray($[0])&&$[0].length===2;return!1}static isRowArray($){return Array.isArray($)&&!this.isRowHashArray($)}static gatherHeaders($){if(D3.isRowHashArray($))return $.map((I)=>I[0]);if(Array.isArray($))return $;return Object.keys($)}static createTransform($){if(rr0.isSyncTransform($))return(I,U)=>{let Y=null;try{Y=$(I)}catch(J){return U(J)}return U(null,Y)};return(I,U)=>{$(I,U)}}set rowTransform($){if(!mr0.default($))throw TypeError("The transform should be a function");this._rowTransform=D3.createTransform($)}format($,I){this.callTransformer($,(U,Y)=>{if(U)return I(U);if(!$)return I(null);let J=[];if(Y){let{shouldFormatColumns:Q,headers:K}=this.checkHeaders(Y);if(this.shouldWriteHeaders&&K&&!this.hasWrittenHeaders)J.push(this.formatColumns(K,!0)),this.hasWrittenHeaders=!0;if(Q){let q=this.gatherColumns(Y);J.push(this.formatColumns(q,!1))}}return I(null,J)})}finish($){let I=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return $(Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));I.push(this.formatColumns(this.headers,!0))}if(this.formatterOptions.includeEndRowDelimiter)I.push(this.formatterOptions.rowDelimiter);return $(null,I)}checkHeaders($){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};let I=D3.gatherHeaders($);if(this.headers=I,this.fieldFormatter.headers=I,!this.shouldWriteHeaders)return{shouldFormatColumns:!0,headers:null};return{shouldFormatColumns:!lr0.default(I,$),headers:I}}gatherColumns($){if(this.headers===null)throw Error("Headers is currently null");if(!Array.isArray($))return this.headers.map((I)=>$[I]);if(D3.isRowHashArray($))return this.headers.map((I,U)=>{let Y=$[U];if(Y)return Y[1];return""});if(D3.isRowArray($)&&!this.shouldWriteHeaders)return $;return this.headers.map((I,U)=>$[U])}callTransformer($,I){if(!this._rowTransform)return I(null,$);return this._rowTransform($,I)}formatColumns($,I){let U=$.map((J,Q)=>this.fieldFormatter.format(J,Q,I)).join(this.formatterOptions.delimiter),{rowCount:Y}=this;if(this.rowCount+=1,Y)return[this.formatterOptions.rowDelimiter,U].join("");return U}}ZY.RowFormatter=D3});var a90=O((QX)=>{Object.defineProperty(QX,"__esModule",{value:!0});QX.FieldFormatter=QX.RowFormatter=void 0;var tr0=t90();Object.defineProperty(QX,"RowFormatter",{enumerable:!0,get:function(){return tr0.RowFormatter}});var ar0=eC();Object.defineProperty(QX,"FieldFormatter",{enumerable:!0,get:function(){return ar0.FieldFormatter}})});var Ij=O((e90)=>{Object.defineProperty(e90,"__esModule",{value:!0});e90.CsvFormatterStream=void 0;var er0=r("stream"),$t0=a90();class s90 extends er0.Transform{constructor($){super({writableObjectMode:$.objectMode});this.hasWrittenBOM=!1,this.formatterOptions=$,this.rowFormatter=new $t0.RowFormatter($),this.hasWrittenBOM=!$.writeBOM}transform($){return this.rowFormatter.rowTransform=$,this}_transform($,I,U){let Y=!1;try{if(!this.hasWrittenBOM)this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0;this.rowFormatter.format($,(J,Q)=>{if(J)return Y=!0,U(J);if(Q)Q.forEach((K)=>{this.push(Buffer.from(K,"utf8"))});return Y=!0,U()})}catch(J){if(Y)throw J;U(J)}}_flush($){this.rowFormatter.finish((I,U)=>{if(I)return $(I);if(U)U.forEach((Y)=>{this.push(Buffer.from(Y,"utf8"))});return $()})}}e90.CsvFormatterStream=s90});var U70=O((N1)=>{var I70=N1&&N1.__createBinding||(Object.create?function($,I,U,Y){if(Y===void 0)Y=U;Object.defineProperty($,Y,{enumerable:!0,get:function(){return I[U]}})}:function($,I,U,Y){if(Y===void 0)Y=U;$[Y]=I[U]}),It0=N1&&N1.__setModuleDefault||(Object.create?function($,I){Ob Line truncated
`||I===`\r
`}static isTokenCarriageReturn($,I){return $.token===I.carriageReturn}static isTokenComment($,I){return I.supportsComments&&!!$&&$.token===I.comment}static isTokenEscapeCharacter($,I){return $.token===I.escapeChar}static isTokenQuote($,I){return $.token===I.quote}static isTokenDelimiter($,I){return $.token===I.delimiter}}Y30.Token=U30});var Ej=O((q30)=>{Object.defineProperty(q30,"__esModule",{value:!0});q30.Scanner=void 0;var Q30=p9(),He0=/((?:\r\n)|\n|\r)/;class K30{constructor($){this.cursor=0,this.line=$.line,this.lineLength=this.line.length,this.parserOptions=$.parserOptions,this.hasMoreData=$.hasMoreData,this.cursor=$.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){let{lineFromCursor:$}=this,I=this.parserOptions.NEXT_TOKEN_REGEXP;if($.search(I)===-1)return null;let U=I.exec($);if(U==null)return null;let Y=U[1],J=this.cursor+(U.index||0);return new Q30.Token({token:Y,startCursor:J,endCursor:J+Y.length-1})}get nextCharacterToken(){let{cursor:$,lineLength:I}=this;if(I<=$)return null;return new Q30.Token({token:this.line[$],startCursor:$,endCursor:$})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){let $=He0.exec(this.lineFromCursor);if(!$){if(this.hasMoreData)return null;return this.cursor=this.lineLength,this}return this.cursor+=($.index||0)+$[0].length,this}advanceTo($){return this.cursor=$,this}advanceToToken($){return this.cursor=$.startCursor,this}advancePastToken($){return this.cursor=$.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}q30.Scanner=K30});var RX=O((W30)=>{Object.defineProperty(W30,"__esModule",{value:!0});W30.ColumnFormatter=void 0;class H30{constructor($){if($.trim)this.format=(I)=>I.trim();else if($.ltrim)this.format=(I)=>I.trimLeft();else if($.rtrim)this.format=(I)=>I.trimRight();else this.format=(I)=>I}}W30.ColumnFormatter=H30});var Bj=O((X30)=>{Object.defineProperty(X30,"__esModule",{value:!0});X30.NonQuotedColumnParser=void 0;var We0=RX(),w30=p9();class Z30{constructor($){this.parserOptions=$,this.columnFormatter=new We0.ColumnFormatter($)}parse($){if(!$.hasMoreCharacters)return null;let{parserOptions:I}=this,U=[],Y=$.nextCharacterToken;for(;Y;Y=$.nextCharacterToken){if(w30.Token.isTokenDelimiter(Y,I)||w30.Token.isTokenRowDelimiter(Y))break;U.push(Y.token),$.advancePastToken(Y)}return this.columnFormatter.format(U.join(""))}}X30.NonQuotedColumnParser=Z30});var vj=O((D30)=>{Object.defineProperty(D30,"__esModule",{value:!0});D30.QuotedColumnParser=void 0;var Ve0=RX(),PY=p9();class L30{constructor($){this.parserOptions=$,this.columnFormatter=new Ve0.ColumnFormatter($)}parse($){if(!$.hasMoreCharacters)return null;let I=$.cursor,{foundClosingQuote:U,col:Y}=this.gatherDataBetweenQuotes($);if(!U){if($.advanceTo(I),!$.hasMoreData)throw Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${$.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn($),Y}gatherDataBetweenQuotes($){let{parserOptions:I}=this,U=!1,Y=!1,J=[],Q=$.nextCharacterToken;for(;!Y&&Q!==null;Q=$.nextCharacterToken){let K=PY.Token.isTokenQuote(Q,I);if(!U&&K)U=!0;else if(U)if(PY.Token.isTokenEscapeCharacter(Q,I)){$.advancePastToken(Q);let q=$.nextCharacterToken;if(q!==null&&(PY.Token.isTokenQuote(q,I)||PY.Token.isTokenEscapeCharacter(q,I)))J.push(q.token),Q=q;else if(K)Y=!0;else J.push(Q.token)}else if(K)Y=!0;else J.push(Q.token);$.advancePastToken(Q)}return{col:this.columnFormatter.format(J.join("")),foundClosingQuote:Y}}checkForMalformedColumn($){let{parserOptions:I}=this,{nextNonSpaceToken:U}=$;if(U){let Y=PY.Token.isTokenDelimiter(U,I),J=PY.Token.isTokenRowDelimiter(U);if(!(Y||J)){let Q=$.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw Error(`Parse Error: expected: '${I.escapedDelimiter}' OR new line got: '${U.token}'. at '${Q}`)}$.advanceToToken(U)}else if(!$.hasMoreData)$.advancePastLine()}}D30.QuotedColumnParser=L30});var A30=O((N30)=>{Object.defineProperty(N30,"__esModule",{value:!0});N30.ColumnParser=void 0;var we0=Bj(),Ze0=vj(),Xe0=p9();class F30{constructor($){this.parserOptions=$,this.quotedColumnParser=new Ze0.QuotedColumnParser($),this.nonQuotedColumnParser=new we0.NonQuotedColumnParser($)}parse($){let{nextNonSpaceToken:I}=$;if(I!==null&&Xe0.Token.isTokenQuote(I,this.parserOptions))return $.advanceToToken(I),this.quotedColumnParser.parse($);return this.nonQuotedColumnParser.parse($)}}N30.ColumnParser=F30});var Rj=O((TY)=>{Object.defineProperty(TY,"__esModule",{value:!0});TY.ColumnFormatter=TY.QuotedColumnParser=TY.NonQuotedColumnParser=TY.ColumnParser=void 0;var ze0=A30();Object.defineProperty(TY,"ColumnParser",{enumerable:!0,get:function(){return ze0.ColumnParser}});var Le0=Bj();Object.defineProperty(TY,"NonQuotedColumnParser",{enumerable:!0,get:function(){return Le0.NonQuotedColumnParser}});var De0=vj();Object.defineProperty(TY,"QuotedColumnParser",{enumerable:!0,get:function(){re Line truncated
%s`,u,u,Z,Y);let g=Z.type==="*"?cj:Z.type==="?"?lj:"\\"+Z.type;J=!0,Y=Y.slice(0,Z.reStart)+g+"\\("+u}if(T(),Q)Y+="\\\\";let A=G01[Y.charAt(0)];for(let u=q.length-1;u>-1;u--){let g=q[u],b=Y.slice(0,g.reStart),C=Y.slice(g.reStart,g.reEnd-8),p=Y.slice(g.reEnd),n=Y.slice(g.reEnd-8,g.reEnd)+p,S=b.split(")").length,f=b.split("(").length-S,i=p;for(let B=0;B<f;B++)i=i.replace(/\)[+*?]?/,"");p=i;let Y0=p===""&&I!==dj?"(?:$|\\/)":"";Y=b+C+p+Y0+n}if(Y!==""&&J)Y="(?=.)"+Y;if(A)Y=F()+Y;if(I===dj)return[Y,J];if(U.nocase&&!J)J=$.toUpperCase()!==$.toLowerCase();if(!J)return W01($);let R=U.nocase?"i":"";try{return Object.assign(new RegExp("^"+Y+"$",R),{_glob:$,_src:Y})}catch(u){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let $=this.set;if(!$.length)return this.regexp=!1,this.regexp;let I=this.options,U=I.noglobstar?cj:I.dot?K01:q01,Y=I.nocase?"i":"",J=$.map((Q)=>{return Q=Q.map((K)=>typeof K==="string"?w01(K):K===j6?j6:K._src).reduce((K,q)=>{if(!(K[K.length-1]===j6&&q===j6))K.push(q);return K},[]),Q.forEach((K,q)=>{if(K!==j6||Q[q-1]===j6)return;if(q===0)if(Q.length>1)Q[q+1]="(?:\\/|"+U+"\\/)?"+Q[q+1];else Q[q]=U;else if(q===Q.length-1)Q[q-1]+="(?:\\/|"+U+")?";else Q[q-1]+="(?:\\/|\\/"+U+"\\/)"+Q[q+1],Q[q+1]=j6}),Q.filter((K)=>K!==j6).join("/")}).join("|");if(J="^(?:"+J+")$",this.negate)J="^(?!"+J+").*$";try{this.regexp=new RegExp(J,Y)}catch(Q){this.regexp=!1}return this.regexp}match($,I=this.partial){if(this.debug("match",$,this.pattern),this.comment)return!1;if(this.empty)return $==="";if($==="/"&&I)return!0;let U=this.options;if(mj.sep!=="/")$=$.split(mj.sep).join("/");$=$.split(XI0),this.debug(this.pattern,"split",$);let Y=this.set;this.debug(this.pattern,"set",Y);let J;for(let Q=$.length-1;Q>=0;Q--)if(J=$[Q],J)break;for(let Q=0;Q<Y.length;Q++){let K=Y[Q],q=$;if(U.matchBase&&K.length===1)q=[J];if(this.matchOne(q,K,I)){if(U.flipNegate)return!0;return!this.negate}}if(U.flipNegate)return!1;return this.negate}static defaults($){return K$.defaults($).Minimatch}}K$.Minimatch=_K});var AI0=O((Qv1,MI0)=>{MI0.exports=NI0;var tj=r("fs"),{EventEmitter:X01}=r("events"),{Minimatch:rj}=DI0(),{resolve:z01}=r("path");function L01($,I){return new Promise((U,Y)=>{tj.readdir($,{withFileTypes:!0},(J,Q)=>{if(J)switch(J.code){case"ENOTDIR":if(I)Y(J);else U([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":U([]);break;case"ELOOP":default:Y(J);break}else U(Q)})})}function OI0($,I){return new Promise((U,Y)=>{(I?tj.stat:tj.lstat)($,(Q,K)=>{if(Q)switch(Q.code){case"ENOENT":if(I)U(OI0($,!1));else U(null);break;default:U(null);break}else U(K)})})}async function*FI0($,I,U,Y,J,Q){let K=await L01(I+$,Q);for(let q of K){let G=q.name;if(G===void 0)G=q,Y=!0;let H=$+"/"+G,W=H.slice(1),V=I+"/"+W,w=null;if(Y||U)w=await OI0(V,U);if(!w&&q.name!==void 0)w=q;if(w===null)w={isDirectory:()=>!1};if(w.isDirectory()){if(!J(W))yield{relative:W,absolute:V,stats:w},yield*FI0(H,I,U,Y,J,!1)}else yield{relative:W,absolute:V,stats:w}}}async function*D01($,I,U,Y){yield*FI0("",$,I,U,Y,!0)}function O01($){return{pattern:$.pattern,dot:!!$.dot,noglobstar:!!$.noglobstar,matchBase:!!$.matchBase,nocase:!!$.nocase,ignore:$.ignore,skip:$.skip,follow:!!$.follow,stat:!!$.stat,nodir:!!$.nodir,mark:!!$.mark,silent:!!$.silent,absolute:!!$.absolute}}class aj extends X01{constructor($,I,U){super();if(typeof I==="function")U=I,I=null;if(this.options=O01(I||{}),this.matchers=[],this.options.pattern){let Y=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=Y.map((J)=>new rj(J,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let Y=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=Y.map((J)=>new rj(J,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let Y=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=Y.map((J)=>new rj(J,{dot:!0}))}if(this.iterator=D01(z01($||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,U)this._matches=[],this.on("match",(Y)=>this._matches.push(this.options.absolute?Y.absolute:Y.relative)),this.on("error",(Y)=>U(Y)),this.on("end",()=>U(null,this._matches));setTimeout(()=>this._next(),0)}_shouldSkipDirectory($){return this.skipMatchers.some((I)=>I.match($))}_fileMatches($,I){let U=$+(I?"/":"");return(this.matchers.length===0||this.matchers.some((Y)=>Y.match(U)))&&!this.ignoreMatchers.some((Y)=>Y.match(U))&&(!this.options.nodir||!I)}_next(){if(!this.paused&&!this.aborted)this.iterator.next().then(($)=>{if(!$.done){let I=$.value.stats.isDirectory();if(this._fileMatches($.value.relative,I)){let U=$.value.relative,Y=$.value.absolute;if(this.options.mark&&I)U+="/",Y+="/";if(this.options.stat)this.emit("match",{relative:U,absolute:Y,stat:$.value.stats});else this.emit("match",{relative:U,ab Line truncated
`}static isTokenCarriageReturn($,I){return $.token===I.carriageReturn}static isTokenComment($,I){return I.supportsComments&&!!$&&$.token===I.comment}static isTokenEscapeCharacter($,I){return $.token===I.escapeChar}static isTokenQuote($,I){return $.token===I.quote}static isTokenDelimiter($,I){return $.token===I.delimiter}}Y30.Token=U30});var Ej=O((q30)=>{Object.defineProperty(q30,"__esModule",{value:!0});q30.Scanner=void 0;var Q30=c9(),He0=/((?:\r\n)|\n|\r)/;class K30{constructor($){this.cursor=0,this.line=$.line,this.lineLength=this.line.length,this.parserOptions=$.parserOptions,this.hasMoreData=$.hasMoreData,this.cursor=$.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){let{lineFromCursor:$}=this,I=this.parserOptions.NEXT_TOKEN_REGEXP;if($.search(I)===-1)return null;let U=I.exec($);if(U==null)return null;let Y=U[1],J=this.cursor+(U.index||0);return new Q30.Token({token:Y,startCursor:J,endCursor:J+Y.length-1})}get nextCharacterToken(){let{cursor:$,lineLength:I}=this;if(I<=$)return null;return new Q30.Token({token:this.line[$],startCursor:$,endCursor:$})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){let $=He0.exec(this.lineFromCursor);if(!$){if(this.hasMoreData)return null;return this.cursor=this.lineLength,this}return this.cursor+=($.index||0)+$[0].length,this}advanceTo($){return this.cursor=$,this}advanceToToken($){return this.cursor=$.startCursor,this}advancePastToken($){return this.cursor=$.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}q30.Scanner=K30});var RX=O((W30)=>{Object.defineProperty(W30,"__esModule",{value:!0});W30.ColumnFormatter=void 0;class H30{constructor($){if($.trim)this.format=(I)=>I.trim();else if($.ltrim)this.format=(I)=>I.trimLeft();else if($.rtrim)this.format=(I)=>I.trimRight();else this.format=(I)=>I}}W30.ColumnFormatter=H30});var Bj=O((X30)=>{Object.defineProperty(X30,"__esModule",{value:!0});X30.NonQuotedColumnParser=void 0;var We0=RX(),w30=c9();class Z30{constructor($){this.parserOptions=$,this.columnFormatter=new We0.ColumnFormatter($)}parse($){if(!$.hasMoreCharacters)return null;let{parserOptions:I}=this,U=[],Y=$.nextCharacterToken;for(;Y;Y=$.nextCharacterToken){if(w30.Token.isTokenDelimiter(Y,I)||w30.Token.isTokenRowDelimiter(Y))break;U.push(Y.token),$.advancePastToken(Y)}return this.columnFormatter.format(U.join(""))}}X30.NonQuotedColumnParser=Z30});var vj=O((D30)=>{Object.defineProperty(D30,"__esModule",{value:!0});D30.QuotedColumnParser=void 0;var Ve0=RX(),TY=c9();class L30{constructor($){this.parserOptions=$,this.columnFormatter=new Ve0.ColumnFormatter($)}parse($){if(!$.hasMoreCharacters)return null;let I=$.cursor,{foundClosingQuote:U,col:Y}=this.gatherDataBetweenQuotes($);if(!U){if($.advanceTo(I),!$.hasMoreData)throw Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${$.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn($),Y}gatherDataBetweenQuotes($){let{parserOptions:I}=this,U=!1,Y=!1,J=[],Q=$.nextCharacterToken;for(;!Y&&Q!==null;Q=$.nextCharacterToken){let K=TY.Token.isTokenQuote(Q,I);if(!U&&K)U=!0;else if(U)if(TY.Token.isTokenEscapeCharacter(Q,I)){$.advancePastToken(Q);let q=$.nextCharacterToken;if(q!==null&&(TY.Token.isTokenQuote(q,I)||TY.Token.isTokenEscapeCharacter(q,I)))J.push(q.token),Q=q;else if(K)Y=!0;else J.push(Q.token)}else if(K)Y=!0;else J.push(Q.token);$.advancePastToken(Q)}return{col:this.columnFormatter.format(J.join("")),foundClosingQuote:Y}}checkForMalformedColumn($){let{parserOptions:I}=this,{nextNonSpaceToken:U}=$;if(U){let Y=TY.Token.isTokenDelimiter(U,I),J=TY.Token.isTokenRowDelimiter(U);if(!(Y||J)){let Q=$.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw Error(`Parse Error: expected: '${I.escapedDelimiter}' OR new line got: '${U.token}'. at '${Q}`)}$.advanceToToken(U)}else if(!$.hasMoreData)$.advancePastLine()}}D30.QuotedColumnParser=L30});var A30=O((N30)=>{Object.defineProperty(N30,"__esModule",{value:!0});N30.ColumnParser=void 0;var we0=Bj(),Ze0=vj(),Xe0=c9();class F30{constructor($){this.parserOptions=$,this.quotedColumnParser=new Ze0.QuotedColumnParser($),this.nonQuotedColumnParser=new we0.NonQuotedColumnParser($)}parse($){let{nextNonSpaceToken:I}=$;if(I!==null&&Xe0.Token.isTokenQuote(I,this.parserOptions))return $.advanceToToken(I),this.quotedColumnParser.parse($);return this.nonQuotedColumnParser.parse($)}}N30.ColumnParser=F30});var Rj=O((EY)=>{Object.defineProperty(EY,"__esModule",{value:!0});EY.ColumnFormatter=EY.QuotedColumnParser=EY.NonQuotedColumnParser=EY.ColumnParser=void 0;var ze0=A30();Object.defineProperty(EY,"ColumnParser",{enumerable:!0,get:function(){return ze0.ColumnParser}});var Le0=Bj();Object.defineProperty(EY,"NonQuotedColumnParser",{enumerable:!0,get:function(){return Le0.NonQuotedColumnParser}});var De0=vj();Object.defineProperty(EY,"QuotedColumnParser",{enumerable:!0,get:function(){re Line truncated
%s`,u,u,Z,Y);let g=Z.type==="*"?cj:Z.type==="?"?lj:"\\"+Z.type;J=!0,Y=Y.slice(0,Z.reStart)+g+"\\("+u}if(T(),Q)Y+="\\\\";let A=G01[Y.charAt(0)];for(let u=q.length-1;u>-1;u--){let g=q[u],b=Y.slice(0,g.reStart),C=Y.slice(g.reStart,g.reEnd-8),p=Y.slice(g.reEnd),n=Y.slice(g.reEnd-8,g.reEnd)+p,S=b.split(")").length,f=b.split("(").length-S,i=p;for(let B=0;B<f;B++)i=i.replace(/\)[+*?]?/,"");p=i;let Y0=p===""&&I!==dj?"(?:$|\\/)":"";Y=b+C+p+Y0+n}if(Y!==""&&J)Y="(?=.)"+Y;if(A)Y=F()+Y;if(I===dj)return[Y,J];if(U.nocase&&!J)J=$.toUpperCase()!==$.toLowerCase();if(!J)return W01($);let R=U.nocase?"i":"";try{return Object.assign(new RegExp("^"+Y+"$",R),{_glob:$,_src:Y})}catch(u){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let $=this.set;if(!$.length)return this.regexp=!1,this.regexp;let I=this.options,U=I.noglobstar?cj:I.dot?K01:q01,Y=I.nocase?"i":"",J=$.map((Q)=>{return Q=Q.map((K)=>typeof K==="string"?w01(K):K===j6?j6:K._src).reduce((K,q)=>{if(!(K[K.length-1]===j6&&q===j6))K.push(q);return K},[]),Q.forEach((K,q)=>{if(K!==j6||Q[q-1]===j6)return;if(q===0)if(Q.length>1)Q[q+1]="(?:\\/|"+U+"\\/)?"+Q[q+1];else Q[q]=U;else if(q===Q.length-1)Q[q-1]+="(?:\\/|"+U+")?";else Q[q-1]+="(?:\\/|\\/"+U+"\\/)"+Q[q+1],Q[q+1]=j6}),Q.filter((K)=>K!==j6).join("/")}).join("|");if(J="^(?:"+J+")$",this.negate)J="^(?!"+J+").*$";try{this.regexp=new RegExp(J,Y)}catch(Q){this.regexp=!1}return this.regexp}match($,I=this.partial){if(this.debug("match",$,this.pattern),this.comment)return!1;if(this.empty)return $==="";if($==="/"&&I)return!0;let U=this.options;if(mj.sep!=="/")$=$.split(mj.sep).join("/");$=$.split(XI0),this.debug(this.pattern,"split",$);let Y=this.set;this.debug(this.pattern,"set",Y);let J;for(let Q=$.length-1;Q>=0;Q--)if(J=$[Q],J)break;for(let Q=0;Q<Y.length;Q++){let K=Y[Q],q=$;if(U.matchBase&&K.length===1)q=[J];if(this.matchOne(q,K,I)){if(U.flipNegate)return!0;return!this.negate}}if(U.flipNegate)return!1;return this.negate}static defaults($){return K$.defaults($).Minimatch}}K$.Minimatch=_K});var AI0=O((Qv1,MI0)=>{MI0.exports=NI0;var tj=r("fs"),{EventEmitter:X01}=r("events"),{Minimatch:rj}=DI0(),{resolve:z01}=r("path");function L01($,I){return new Promise((U,Y)=>{tj.readdir($,{withFileTypes:!0},(J,Q)=>{if(J)switch(J.code){case"ENOTDIR":if(I)Y(J);else U([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":U([]);break;case"ELOOP":default:Y(J);break}else U(Q)})})}function OI0($,I){return new Promise((U,Y)=>{(I?tj.stat:tj.lstat)($,(Q,K)=>{if(Q)switch(Q.code){case"ENOENT":if(I)U(OI0($,!1));else U(null);break;default:U(null);break}else U(K)})})}async function*FI0($,I,U,Y,J,Q){let K=await L01(I+$,Q);for(let q of K){let G=q.name;if(G===void 0)G=q,Y=!0;let H=$+"/"+G,W=H.slice(1),V=I+"/"+W,w=null;if(Y||U)w=await OI0(V,U);if(!w&&q.name!==void 0)w=q;if(w===null)w={isDirectory:()=>!1};if(w.isDirectory()){if(!J(W))yield{relative:W,absolute:V,stats:w},yield*FI0(H,I,U,Y,J,!1)}else yield{relative:W,absolute:V,stats:w}}}async function*D01($,I,U,Y){yield*FI0("",$,I,U,Y,!0)}function O01($){return{pattern:$.pattern,dot:!!$.dot,noglobstar:!!$.noglobstar,matchBase:!!$.matchBase,nocase:!!$.nocase,ignore:$.ignore,skip:$.skip,follow:!!$.follow,stat:!!$.stat,nodir:!!$.nodir,mark:!!$.mark,silent:!!$.silent,absolute:!!$.absolute}}class aj extends X01{constructor($,I,U){super();if(typeof I==="function")U=I,I=null;if(this.options=O01(I||{}),this.matchers=[],this.options.pattern){let Y=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=Y.map((J)=>new rj(J,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let Y=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=Y.map((J)=>new rj(J,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let Y=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=Y.map((J)=>new rj(J,{dot:!0}))}if(this.iterator=D01(z01($||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,U)this._matches=[],this.on("match",(Y)=>this._matches.push(this.options.absolute?Y.absolute:Y.relative)),this.on("error",(Y)=>U(Y)),this.on("end",()=>U(null,this._matches));setTimeout(()=>this._next(),0)}_shouldSkipDirectory($){return this.skipMatchers.some((I)=>I.match($))}_fileMatches($,I){let U=$+(I?"/":"");return(this.matchers.length===0||this.matchers.some((Y)=>Y.match(U)))&&!this.ignoreMatchers.some((Y)=>Y.match(U))&&(!this.options.nodir||!I)}_next(){if(!this.paused&&!this.aborted)this.iterator.next().then(($)=>{if(!$.done){let I=$.value.stats.isDirectory();if(this._fileMatches($.value.relative,I)){let U=$.value.relative,Y=$.value.absolute;if(this.options.mark&&I)U+="/",Y+="/";if(this.options.stat)this.emit("match",{relative:U,absolute:Y,stat:$.value.stats});else this.emit("match",{relative:U,ab Line truncated
`,y);y=$0===-1?P.length:$0}else if(c!==-1&&P[y]==="/"&&P[y+1]==="*"){let $0=P.indexOf("*/",y);if($0!==-1)y=$0+2,c=P.indexOf("*/",y);else v+=P[y],y++}else v+=P[y],y++;return v}function l8(P){let v=w$(P.toString()),y=v.match(V$);if(!y)y=v.match(k$);if(!y)throw Error(`could not parse args in autoInject
Source:
`+v);let[,c]=y;return c.replace(/\s/g,"").split(m8).map(($0)=>$0.replace(u$,"").trim())}function a6(P,v){var y={};return Object.keys(P).forEach((c)=>{var $0=P[c],U0,q0=Z($0),G0=!q0&&$0.length===1||q0&&$0.length===0;if(Array.isArray($0))U0=[...$0],$0=U0.pop(),y[c]=U0.concat(U0.length>0?Z0:$0);else if(G0)y[c]=$0;else{if(U0=l8($0),$0.length===0&&!q0&&U0.length===0)throw Error("autoInject task functions require explicit parameters.");if(!q0)U0.pop();y[c]=U0.concat(Z0)}function Z0(j0,K1){var D1=U0.map((W1)=>j0[W1]);D1.push(K1),D($0)(...D1)}}),j4(y,v)}class D7{constructor(){this.head=this.tail=null,this.length=0}removeLink(P){if(P.prev)P.prev.next=P.next;else this.head=P.next;if(P.next)P.next.prev=P.prev;else this.tail=P.prev;return P.prev=P.next=null,this.length-=1,P}empty(){while(this.head)this.shift();return this}insertAfter(P,v){if(v.prev=P,v.next=P.next,P.next)P.next.prev=v;else this.tail=v;P.next=v,this.length+=1}insertBefore(P,v){if(v.prev=P.prev,v.next=P,P.prev)P.prev.next=v;else this.head=v;P.prev=v,this.length+=1}unshift(P){if(this.head)this.insertBefore(this.head,P);else s6(this,P)}push(P){if(this.tail)this.insertAfter(this.tail,P);else s6(this,P)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var P=this.head;while(P)yield P.data,P=P.next}remove(P){var v=this.head;while(v){var{next:y}=v;if(P(v))this.removeLink(v);v=y}return this}}function s6(P,v){P.length=1,P.head=P.tail=v}function d5(P,v,y){if(v==null)v=1;else if(v===0)throw RangeError("Concurrency must not be zero");var c=D(P),$0=0,U0=[];let q0={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function G0(h0,R0){q0[h0].push(R0)}function Z0(h0,R0){let x0=(...V1)=>{j0(h0,x0),R0(...V1)};q0[h0].push(x0)}function j0(h0,R0){if(!h0)return Object.keys(q0).forEach((x0)=>q0[x0]=[]);if(!R0)return q0[h0]=[];q0[h0]=q0[h0].filter((x0)=>x0!==R0)}function K1(h0,...R0){q0[h0].forEach((x0)=>x0(...R0))}var D1=!1;function W1(h0,R0,x0,V1){if(V1!=null&&typeof V1!=="function")throw Error("task callback must be a function");O1.started=!0;var U4,u4;function X$(F7,...yJ){if(F7)return x0?u4(F7):U4();if(yJ.length<=1)return U4(yJ[0]);U4(yJ)}var wI=O1._createTaskItem(h0,x0?X$:V1||X$);if(R0)O1._tasks.unshift(wI);else O1._tasks.push(wI);if(!D1)D1=!0,H(()=>{D1=!1,O1.process()});if(x0||!V1)return new Promise((F7,yJ)=>{U4=F7,u4=yJ})}function Z$(h0){return function(R0,...x0){$0-=1;for(var V1=0,U4=h0.length;V1<U4;V1++){var u4=h0[V1],X$=U0.indexOf(u4);if(X$===0)U0.shift();else if(X$>0)U0.splice(X$,1);if(u4.callback(R0,...x0),R0!=null)K1("error",R0,u4.data)}if($0<=O1.concurrency-O1.buffer)K1("unsaturated");if(O1.idle())K1("drain");O1.process()}}function VI(h0){if(h0.length===0&&O1.idle())return H(()=>K1("drain")),!0;return!1}let O7=(h0)=>(R0)=>{if(!R0)return new Promise((x0,V1)=>{Z0(h0,(U4,u4)=>{if(U4)return V1(U4);x0(u4)})});j0(h0),G0(h0,R0)};var gJ=!1,O1={_tasks:new D7,_createTaskItem(h0,R0){return{data:h0,callback:R0}},*[Symbol.iterator](){yield*O1._tasks[Symbol.iterator]()},concurrency:v,payload:y,buffer:v/4,started:!1,paused:!1,push(h0,R0){if(Array.isArray(h0)){if(VI(h0))return;return h0.map((x0)=>W1(x0,!1,!1,R0))}return W1(h0,!1,!1,R0)},pushAsync(h0,R0){if(Array.isArray(h0)){if(VI(h0))return;return h0.map((x0)=>W1(x0,!1,!0,R0))}return W1(h0,!1,!0,R0)},kill(){j0(),O1._tasks.empty()},unshift(h0,R0){if(Array.isArray(h0)){if(VI(h0))return;return h0.map((x0)=>W1(x0,!0,!1,R0))}return W1(h0,!0,!1,R0)},unshiftAsync(h0,R0){if(Array.isArray(h0)){if(VI(h0))return;return h0.map((x0)=>W1(x0,!0,!0,R0))}return W1(h0,!0,!0,R0)},remove(h0){O1._tasks.remove(h0)},process(){if(gJ)return;gJ=!0;while(!O1.paused&&$0<O1.concurrency&&O1._tasks.length){var h0=[],R0=[],x0=O1._tasks.length;if(O1.payload)x0=Math.min(x0,O1.payload);for(var V1=0;V1<x0;V1++){var U4=O1._tasks.shift();h0.push(U4),U0.push(U4),R0.push(U4.data)}if($0+=1,O1._tasks.length===0)K1("empty");if($0===O1.concurrency)K1("saturated");var u4=S(Z$(h0));c(R0,u4)}gJ=!1},length(){return O1._tasks.length},running(){return $0},workersList(){return U0},idle(){return O1._tasks.length+$0===0},pause(){O1.paused=!0},resume(){if(O1.paused===!1)return;O1.paused=!1,H(O1.process)}};return Object.defineProperties(O1,{saturated:{writable:!1,value:O7("saturated")},unsaturated:{writable:!1,value:O7("unsaturated")},empty:{writable:!1,value:O7("empty")},drain:{writable:!1,value:O7("drain")},error:{writable:!1,value:O7("error")}}),O1}function E0(P,v){return d5(P,1,v)}function a(P,v,y){return d5(P,v,y)}function N(P,v,y,c){c=u(c);var $0=D(y);return f0(P,(U0,q0,G0)=>{$0(v,U0,(Z0,j0)=>{v=j0,G0(Z0)})},(U0)=>c(U0,v))}var M=F(N,4);function j(...P){var v=P.map(D);return function(...y){var c=this,$0=y[y.length-1];if(typeof $0=="function")y.pop();else $0=K4();return M(v,y,(U0,q0,G0)=>{q0.apply(c,U0.concat((Z0,...j0)=>{G0(Z0,j0)}))},(U0,q0)=>$0(U0,...q0)),$0[m0]}}function x(...P){return j(...P.reverse())}function s(P,v,y,c){return T(i(v),P,y,c)}var m=F(s,4);function e( Line truncated
GFS4: `),console.error($)};if(!V4[Y6]){if(sj=global[Y6]||[],gI0(V4,sj),V4.close=function($){function I(U,Y){return $.call(V4,U,function(J){if(!J)SI0();if(typeof Y==="function")Y.apply(this,arguments)})}return Object.defineProperty(I,uX,{value:$}),I}(V4.close),V4.closeSync=function($){function I(U){$.apply(V4,arguments),SI0()}return Object.defineProperty(I,uX,{value:$}),I}(V4.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){N3(V4[Y6]),r("assert").equal(V4[Y6].length,0)})}var sj;if(!global[Y6])gI0(global,V4[Y6]);I_.exports=ej(v01(V4));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!V4.__patched)I_.exports=ej(V4),V4.__patched=!0;function ej($){E01($),$.gracefulify=ej,$.createReadStream=R,$.createWriteStream=u;var I=$.readFile;$.readFile=U;function U(C,p,n){if(typeof p==="function")n=p,p=null;return S(C,p,n);function S(f,i,Y0,B){return I(f,i,function(k){if(k&&(k.code==="EMFILE"||k.code==="ENFILE"))vY([S,[f,i,Y0],k,B||Date.now(),Date.now()]);else if(typeof Y0==="function")Y0.apply(this,arguments)})}}var Y=$.writeFile;$.writeFile=J;function J(C,p,n,S){if(typeof n==="function")S=n,n=null;return f(C,p,n,S);function f(i,Y0,B,k,d){return Y(i,Y0,B,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))vY([f,[i,Y0,B,k],t,d||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}var Q=$.appendFile;if(Q)$.appendFile=K;function K(C,p,n,S){if(typeof n==="function")S=n,n=null;return f(C,p,n,S);function f(i,Y0,B,k,d){return Q(i,Y0,B,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))vY([f,[i,Y0,B,k],t,d||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}var q=$.copyFile;if(q)$.copyFile=G;function G(C,p,n,S){if(typeof n==="function")S=n,n=0;return f(C,p,n,S);function f(i,Y0,B,k,d){return q(i,Y0,B,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))vY([f,[i,Y0,B,k],t,d||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}var H=$.readdir;$.readdir=V;var W=/^v[0-5]\./;function V(C,p,n){if(typeof p==="function")n=p,p=null;var S=W.test(process.version)?function(Y0,B,k,d){return H(Y0,f(Y0,B,k,d))}:function(Y0,B,k,d){return H(Y0,B,f(Y0,B,k,d))};return S(C,p,n);function f(i,Y0,B,k){return function(d,t){if(d&&(d.code==="EMFILE"||d.code==="ENFILE"))vY([S,[i,Y0,B],d,k||Date.now(),Date.now()]);else{if(t&&t.sort)t.sort();if(typeof B==="function")B.call(this,d,t)}}}}if(process.version.substr(0,4)==="v0.8"){var w=B01($);F=w.ReadStream,T=w.WriteStream}var Z=$.ReadStream;if(Z)F.prototype=Object.create(Z.prototype),F.prototype.open=E;var z=$.WriteStream;if(z)T.prototype=Object.create(z.prototype),T.prototype.open=A;Object.defineProperty($,"ReadStream",{get:function(){return F},set:function(C){F=C},enumerable:!0,configurable:!0}),Object.defineProperty($,"WriteStream",{get:function(){return T},set:function(C){T=C},enumerable:!0,configurable:!0});var L=F;Object.defineProperty($,"FileReadStream",{get:function(){return L},set:function(C){L=C},enumerable:!0,configurable:!0});var D=T;Object.defineProperty($,"FileWriteStream",{get:function(){return D},set:function(C){D=C},enumerable:!0,configurable:!0});function F(C,p){if(this instanceof F)return Z.apply(this,arguments),this;else return F.apply(Object.create(F.prototype),arguments)}function E(){var C=this;b(C.path,C.flags,C.mode,function(p,n){if(p){if(C.autoClose)C.destroy();C.emit("error",p)}else C.fd=n,C.emit("open",n),C.read()})}function T(C,p){if(this instanceof T)return z.apply(this,arguments),this;else return T.apply(Object.create(T.prototype),arguments)}function A(){var C=this;b(C.path,C.flags,C.mode,function(p,n){if(p)C.destroy(),C.emit("error",p);else C.fd=n,C.emit("open",n)})}function R(C,p){return new $.ReadStream(C,p)}function u(C,p){return new $.WriteStream(C,p)}var g=$.open;$.open=b;function b(C,p,n,S){if(typeof n==="function")S=n,n=null;return f(C,p,n,S);function f(i,Y0,B,k,d){return g(i,Y0,B,function(t,K0){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))vY([f,[i,Y0,B,k],t,d||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}return $}function vY($){N3("ENQUEUE",$[0].name,$[1]),V4[Y6].push($),$_()}var kX;function SI0(){var $=Date.now();for(var I=0;I<V4[Y6].length;++I)if(V4[Y6][I].length>2)V4[Y6][I][3]=$,V4[Y6][I][4]=$;$_()}function $_(){if(clearTimeout(kX),kX=void 0,V4[Y6].length===0)return;var $=V4[Y6].shift(),I=$[0],U=$[1],Y=$[2],J=$[3],Q=$[4];if(J===void 0)N3("RETRY",I.name,U),I.apply(null,U);else if(Date.now()-J>=60000){N3("TIMEOUT",I.name,U);var K=U.pop();if(typeof K==="function")K.call(null,Y)}else{var q=Date.now()-Q,G=Math.max(Q-J,1),H=Math.min(G*1.2,100);if(q>=H)N3("RETRY",I.name,U),I.apply(null,U.concat([J]));else V4[Y6].push($)}if(kX===void 0)kX=setTimeout($_,0)}});var hI0=O((Wv1,U_)=>{function C01($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var yI0=M4().Buffer,SK=r("util");function j01($,I,U){$.copy(I,U)}U_.exports=function(){function $(){C01(this,$),this.head=null,this.tail=null,th Line truncated
`+v);let[,c]=y;return c.replace(/\s/g,"").split(m8).map(($0)=>$0.replace(u$,"").trim())}function a6(P,v){var y={};return Object.keys(P).forEach((c)=>{var $0=P[c],U0,q0=Z($0),G0=!q0&&$0.length===1||q0&&$0.length===0;if(Array.isArray($0))U0=[...$0],$0=U0.pop(),y[c]=U0.concat(U0.length>0?Z0:$0);else if(G0)y[c]=$0;else{if(U0=l8($0),$0.length===0&&!q0&&U0.length===0)throw Error("autoInject task functions require explicit parameters.");if(!q0)U0.pop();y[c]=U0.concat(Z0)}function Z0(j0,K1){var D1=U0.map((W1)=>j0[W1]);D1.push(K1),D($0)(...D1)}}),j4(y,v)}class O7{constructor(){this.head=this.tail=null,this.length=0}removeLink(P){if(P.prev)P.prev.next=P.next;else this.head=P.next;if(P.next)P.next.prev=P.prev;else this.tail=P.prev;return P.prev=P.next=null,this.length-=1,P}empty(){while(this.head)this.shift();return this}insertAfter(P,v){if(v.prev=P,v.next=P.next,P.next)P.next.prev=v;else this.tail=v;P.next=v,this.length+=1}insertBefore(P,v){if(v.prev=P.prev,v.next=P,P.prev)P.prev.next=v;else this.head=v;P.prev=v,this.length+=1}unshift(P){if(this.head)this.insertBefore(this.head,P);else s6(this,P)}push(P){if(this.tail)this.insertAfter(this.tail,P);else s6(this,P)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var P=this.head;while(P)yield P.data,P=P.next}remove(P){var v=this.head;while(v){var{next:y}=v;if(P(v))this.removeLink(v);v=y}return this}}function s6(P,v){P.length=1,P.head=P.tail=v}function m5(P,v,y){if(v==null)v=1;else if(v===0)throw RangeError("Concurrency must not be zero");var c=D(P),$0=0,U0=[];let q0={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function G0(h0,R0){q0[h0].push(R0)}function Z0(h0,R0){let x0=(...V1)=>{j0(h0,x0),R0(...V1)};q0[h0].push(x0)}function j0(h0,R0){if(!h0)return Object.keys(q0).forEach((x0)=>q0[x0]=[]);if(!R0)return q0[h0]=[];q0[h0]=q0[h0].filter((x0)=>x0!==R0)}function K1(h0,...R0){q0[h0].forEach((x0)=>x0(...R0))}var D1=!1;function W1(h0,R0,x0,V1){if(V1!=null&&typeof V1!=="function")throw Error("task callback must be a function");O1.started=!0;var U4,u4;function X$(N7,...yJ){if(N7)return x0?u4(N7):U4();if(yJ.length<=1)return U4(yJ[0]);U4(yJ)}var ZI=O1._createTaskItem(h0,x0?X$:V1||X$);if(R0)O1._tasks.unshift(ZI);else O1._tasks.push(ZI);if(!D1)D1=!0,H(()=>{D1=!1,O1.process()});if(x0||!V1)return new Promise((N7,yJ)=>{U4=N7,u4=yJ})}function Z$(h0){return function(R0,...x0){$0-=1;for(var V1=0,U4=h0.length;V1<U4;V1++){var u4=h0[V1],X$=U0.indexOf(u4);if(X$===0)U0.shift();else if(X$>0)U0.splice(X$,1);if(u4.callback(R0,...x0),R0!=null)K1("error",R0,u4.data)}if($0<=O1.concurrency-O1.buffer)K1("unsaturated");if(O1.idle())K1("drain");O1.process()}}function wI(h0){if(h0.length===0&&O1.idle())return H(()=>K1("drain")),!0;return!1}let F7=(h0)=>(R0)=>{if(!R0)return new Promise((x0,V1)=>{Z0(h0,(U4,u4)=>{if(U4)return V1(U4);x0(u4)})});j0(h0),G0(h0,R0)};var gJ=!1,O1={_tasks:new O7,_createTaskItem(h0,R0){return{data:h0,callback:R0}},*[Symbol.iterator](){yield*O1._tasks[Symbol.iterator]()},concurrency:v,payload:y,buffer:v/4,started:!1,paused:!1,push(h0,R0){if(Array.isArray(h0)){if(wI(h0))return;return h0.map((x0)=>W1(x0,!1,!1,R0))}return W1(h0,!1,!1,R0)},pushAsync(h0,R0){if(Array.isArray(h0)){if(wI(h0))return;return h0.map((x0)=>W1(x0,!1,!0,R0))}return W1(h0,!1,!0,R0)},kill(){j0(),O1._tasks.empty()},unshift(h0,R0){if(Array.isArray(h0)){if(wI(h0))return;return h0.map((x0)=>W1(x0,!0,!1,R0))}return W1(h0,!0,!1,R0)},unshiftAsync(h0,R0){if(Array.isArray(h0)){if(wI(h0))return;return h0.map((x0)=>W1(x0,!0,!0,R0))}return W1(h0,!0,!0,R0)},remove(h0){O1._tasks.remove(h0)},process(){if(gJ)return;gJ=!0;while(!O1.paused&&$0<O1.concurrency&&O1._tasks.length){var h0=[],R0=[],x0=O1._tasks.length;if(O1.payload)x0=Math.min(x0,O1.payload);for(var V1=0;V1<x0;V1++){var U4=O1._tasks.shift();h0.push(U4),U0.push(U4),R0.push(U4.data)}if($0+=1,O1._tasks.length===0)K1("empty");if($0===O1.concurrency)K1("saturated");var u4=S(Z$(h0));c(R0,u4)}gJ=!1},length(){return O1._tasks.length},running(){return $0},workersList(){return U0},idle(){return O1._tasks.length+$0===0},pause(){O1.paused=!0},resume(){if(O1.paused===!1)return;O1.paused=!1,H(O1.process)}};return Object.defineProperties(O1,{saturated:{writable:!1,value:F7("saturated")},unsaturated:{writable:!1,value:F7("unsaturated")},empty:{writable:!1,value:F7("empty")},drain:{writable:!1,value:F7("drain")},error:{writable:!1,value:F7("error")}}),O1}function E0(P,v){return m5(P,1,v)}function a(P,v,y){return m5(P,v,y)}function N(P,v,y,c){c=u(c);var $0=D(y);return f0(P,(U0,q0,G0)=>{$0(v,U0,(Z0,j0)=>{v=j0,G0(Z0)})},(U0)=>c(U0,v))}var M=F(N,4);function j(...P){var v=P.map(D);return function(...y){var c=this,$0=y[y.length-1];if(typeof $0=="function")y.pop();else $0=K4();return M(v,y,(U0,q0,G0)=>{q0.apply(c,U0.concat((Z0,...j0)=>{G0(Z0,j0)}))},(U0,q0)=>$0(U0,...q0)),$0[m0]}}function x(...P){return j(...P.reverse())}function s(P,v,y,c){return T(i(v),P,y,c)}var m=F(s,4);function e( Line truncated
GFS4: `),console.error($)};if(!V4[Y6]){if(sj=global[Y6]||[],gI0(V4,sj),V4.close=function($){function I(U,Y){return $.call(V4,U,function(J){if(!J)SI0();if(typeof Y==="function")Y.apply(this,arguments)})}return Object.defineProperty(I,uX,{value:$}),I}(V4.close),V4.closeSync=function($){function I(U){$.apply(V4,arguments),SI0()}return Object.defineProperty(I,uX,{value:$}),I}(V4.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){M3(V4[Y6]),r("assert").equal(V4[Y6].length,0)})}var sj;if(!global[Y6])gI0(global,V4[Y6]);I_.exports=ej(v01(V4));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!V4.__patched)I_.exports=ej(V4),V4.__patched=!0;function ej($){E01($),$.gracefulify=ej,$.createReadStream=R,$.createWriteStream=u;var I=$.readFile;$.readFile=U;function U(C,p,n){if(typeof p==="function")n=p,p=null;return S(C,p,n);function S(f,i,Y0,B){return I(f,i,function(k){if(k&&(k.code==="EMFILE"||k.code==="ENFILE"))RY([S,[f,i,Y0],k,B||Date.now(),Date.now()]);else if(typeof Y0==="function")Y0.apply(this,arguments)})}}var Y=$.writeFile;$.writeFile=J;function J(C,p,n,S){if(typeof n==="function")S=n,n=null;return f(C,p,n,S);function f(i,Y0,B,k,d){return Y(i,Y0,B,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))RY([f,[i,Y0,B,k],t,d||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}var Q=$.appendFile;if(Q)$.appendFile=K;function K(C,p,n,S){if(typeof n==="function")S=n,n=null;return f(C,p,n,S);function f(i,Y0,B,k,d){return Q(i,Y0,B,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))RY([f,[i,Y0,B,k],t,d||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}var q=$.copyFile;if(q)$.copyFile=G;function G(C,p,n,S){if(typeof n==="function")S=n,n=0;return f(C,p,n,S);function f(i,Y0,B,k,d){return q(i,Y0,B,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))RY([f,[i,Y0,B,k],t,d||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}var H=$.readdir;$.readdir=V;var W=/^v[0-5]\./;function V(C,p,n){if(typeof p==="function")n=p,p=null;var S=W.test(process.version)?function(Y0,B,k,d){return H(Y0,f(Y0,B,k,d))}:function(Y0,B,k,d){return H(Y0,B,f(Y0,B,k,d))};return S(C,p,n);function f(i,Y0,B,k){return function(d,t){if(d&&(d.code==="EMFILE"||d.code==="ENFILE"))RY([S,[i,Y0,B],d,k||Date.now(),Date.now()]);else{if(t&&t.sort)t.sort();if(typeof B==="function")B.call(this,d,t)}}}}if(process.version.substr(0,4)==="v0.8"){var w=B01($);F=w.ReadStream,T=w.WriteStream}var Z=$.ReadStream;if(Z)F.prototype=Object.create(Z.prototype),F.prototype.open=E;var z=$.WriteStream;if(z)T.prototype=Object.create(z.prototype),T.prototype.open=A;Object.defineProperty($,"ReadStream",{get:function(){return F},set:function(C){F=C},enumerable:!0,configurable:!0}),Object.defineProperty($,"WriteStream",{get:function(){return T},set:function(C){T=C},enumerable:!0,configurable:!0});var L=F;Object.defineProperty($,"FileReadStream",{get:function(){return L},set:function(C){L=C},enumerable:!0,configurable:!0});var D=T;Object.defineProperty($,"FileWriteStream",{get:function(){return D},set:function(C){D=C},enumerable:!0,configurable:!0});function F(C,p){if(this instanceof F)return Z.apply(this,arguments),this;else return F.apply(Object.create(F.prototype),arguments)}function E(){var C=this;b(C.path,C.flags,C.mode,function(p,n){if(p){if(C.autoClose)C.destroy();C.emit("error",p)}else C.fd=n,C.emit("open",n),C.read()})}function T(C,p){if(this instanceof T)return z.apply(this,arguments),this;else return T.apply(Object.create(T.prototype),arguments)}function A(){var C=this;b(C.path,C.flags,C.mode,function(p,n){if(p)C.destroy(),C.emit("error",p);else C.fd=n,C.emit("open",n)})}function R(C,p){return new $.ReadStream(C,p)}function u(C,p){return new $.WriteStream(C,p)}var g=$.open;$.open=b;function b(C,p,n,S){if(typeof n==="function")S=n,n=null;return f(C,p,n,S);function f(i,Y0,B,k,d){return g(i,Y0,B,function(t,K0){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))RY([f,[i,Y0,B,k],t,d||Date.now(),Date.now()]);else if(typeof k==="function")k.apply(this,arguments)})}}return $}function RY($){M3("ENQUEUE",$[0].name,$[1]),V4[Y6].push($),$_()}var kX;function SI0(){var $=Date.now();for(var I=0;I<V4[Y6].length;++I)if(V4[Y6][I].length>2)V4[Y6][I][3]=$,V4[Y6][I][4]=$;$_()}function $_(){if(clearTimeout(kX),kX=void 0,V4[Y6].length===0)return;var $=V4[Y6].shift(),I=$[0],U=$[1],Y=$[2],J=$[3],Q=$[4];if(J===void 0)M3("RETRY",I.name,U),I.apply(null,U);else if(Date.now()-J>=60000){M3("TIMEOUT",I.name,U);var K=U.pop();if(typeof K==="function")K.call(null,Y)}else{var q=Date.now()-Q,G=Math.max(Q-J,1),H=Math.min(G*1.2,100);if(q>=H)M3("RETRY",I.name,U),I.apply(null,U.concat([J]));else V4[Y6].push($)}if(kX===void 0)kX=setTimeout($_,0)}});var hI0=O((Wv1,U_)=>{function C01($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var yI0=M4().Buffer,SK=r("util");function j01($,I,U){$.copy(I,U)}U_.exports=function(){function $(){C01(this,$),this.head=null,this.tail=null,th Line truncated
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*/MU0.exports=function($,I){if(typeof $!=="string")throw TypeError("expected path to be a string");if($==="\\"||$==="/")return"/";var U=$.length;if(U<=1)return $;var Y="";if(U>4&&$[3]==="\\"){var J=$[2];if((J==="?"||J===".")&&$.slice(0,2)==="\\\\")$=$.slice(2),Y="//"}var Q=$.split(/[/\\]+/);if(I!==!1&&Q[Q.length-1]==="")Q.pop();return Y+Q.join("/")}});var A_=O((Av1,RU0)=>{var PU0=9007199254740991,x11="[object Arguments]",k11="[object Function]",u11="[object GeneratorFunction]",f11=/^(?:0|[1-9]\d*)$/;function TU0($,I,U){switch(U.length){case 0:return $.call(I);case 1:return $.call(I,U[0]);case 2:return $.call(I,U[0],U[1]);case 3:return $.call(I,U[0],U[1],U[2])}return $.apply(I,U)}function b11($,I){var U=-1,Y=Array($);while(++U<$)Y[U]=I(U);return Y}var iK=Object.prototype,nK=iK.hasOwnProperty,EU0=iK.toString,i11=iK.propertyIsEnumerable,AU0=Math.max;function n11($,I){var U=s11($)||a11($)?b11($.length,String):[],Y=U.length,J=!!Y;for(var Q in $)if((I||nK.call($,Q))&&!(J&&(Q=="length"||vU0(Q,Y))))U.push(Q);return U}function p11($,I,U,Y){if($===void 0||F_($,iK[U])&&!nK.call(Y,U))return I;return $}function c11($,I,U){var Y=$[I];if(!(nK.call($,I)&&F_(Y,U))||U===void 0&&!(I in $))$[I]=U}function d11($){if(!M_($))return t11($);var I=r11($),U=[];for(var Y in $)if(!(Y=="constructor"&&(I||!nK.call($,Y))))U.push(Y);return U}function BU0($,I){return I=AU0(I===void 0?$.length-1:I,0),function(){var U=arguments,Y=-1,J=AU0(U.length-I,0),Q=Array(J);while(++Y<J)Q[Y]=U[I+Y];Y=-1;var K=Array(I+1);while(++Y<I)K[Y]=U[Y];return K[I]=Q,TU0($,this,K)}}function m11($,I,U,Y){U||(U={});var J=-1,Q=I.length;while(++J<Q){var K=I[J],q=Y?Y(U[K],$[K],K,U,$):void 0;c11(U,K,q===void 0?$[K]:q)}return U}function l11($){return BU0(function(I,U){var Y=-1,J=U.length,Q=J>1?U[J-1]:void 0,K=J>2?U[2]:void 0;if(Q=$.length>3&&typeof Q=="function"?(J--,Q):void 0,K&&o11(U[0],U[1],K))Q=J<3?void 0:Q,J=1;I=Object(I);while(++Y<J){var q=U[Y];if(q)$(I,q,Y,Q)}return I})}function vU0($,I){return I=I==null?PU0:I,!!I&&(typeof $=="number"||f11.test($))&&($>-1&&$%1==0&&$<I)}function o11($,I,U){if(!M_(U))return!1;var Y=typeof I;if(Y=="number"?N_(U)&&vU0(I,U.length):Y=="string"&&(I in U))return F_(U[I],$);return!1}function r11($){var I=$&&$.constructor,U=typeof I=="function"&&I.prototype||iK;return $===U}function t11($){var I=[];if($!=null)for(var U in Object($))I.push(U);return I}function F_($,I){return $===I||$!==$&&I!==I}function a11($){return e11($)&&nK.call($,"callee")&&(!i11.call($,"callee")||EU0.call($)==x11)}var s11=Array.isArray;function N_($){return $!=null&&I41($.length)&&!$41($)}function e11($){return U41($)&&N_($)}function $41($){var I=M_($)?EU0.call($):"";return I==k11||I==u11}function I41($){return typeof $=="number"&&$>-1&&$%1==0&&$<=PU0}function M_($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function U41($){return!!$&&typeof $=="object"}var Y41=l11(function($,I,U,Y){m11(I,Q41(I),$,Y)}),J41=BU0(function($){return $.push(void 0,p11),TU0(Y41,void 0,$)});function Q41($){return N_($)?n11($,!0):d11($)}RU0.exports=J41});var jU0=O((Pv1,P_)=>{function K41($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var CU0=M4().Buffer,pK=r("util");function q41($,I,U){$.copy(I,U)}P_.exports=function(){function $(){K41(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return CU0.alloc(0);var Y=CU0.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)q41(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(pK&&pK.inspect&&pK.inspect.custom)P_.exports.prototype[pK.inspect.custom]=function(){var $=pK.inspect({length:this.length});return this.constructor.name+" "+$}});var T_=O((Tv1,_U0)=>{var aX=N4();function G41($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)aX.nextTick(sX,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,aX.nextTick(sX,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)aX.nextTick(sX,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,aX.nextTick(sX,U,Q)}else if(I)I(Q)}),this}function H41(){if(this._readableState)this._readable Line truncated
%s`,R,R,E,Y);var u=E.type==="*"?GS:E.type==="?"?qS:"\\"+E.type;J=!0,Y=Y.slice(0,E.reStart)+u+"\\("+R}if(z(),Q)Y+="\\\\";var g=!1;switch(Y.charAt(0)){case"[":case".":case"(":g=!0}for(var b=q.length-1;b>-1;b--){var C=q[b],p=Y.slice(0,C.reStart),n=Y.slice(C.reStart,C.reEnd-8),S=Y.slice(C.reEnd-8,C.reEnd),f=Y.slice(C.reEnd);S+=f;var i=p.split("(").length-1,Y0=f;for(L=0;L<i;L++)Y0=Y0.replace(/\)[+*?]?/,"");f=Y0;var B="";if(f===""&&I!==Xz)B="$";var k=p+n+f+B+S;Y=k}if(Y!==""&&J)Y="(?=.)"+Y;if(g)Y=w+Y;if(I===Xz)return[Y,J];if(!J)return R51($);var d=U.nocase?"i":"";try{var t=new RegExp("^"+Y+"$",d)}catch(K0){return new RegExp("$.")}return t._glob=$,t._src=Y,t}q$.makeRe=function($,I){return new B4($,I||{}).makeRe()};B4.prototype.makeRe=v51;function v51(){if(this.regexp||this.regexp===!1)return this.regexp;var $=this.set;if(!$.length)return this.regexp=!1,this.regexp;var I=this.options,U=I.noglobstar?GS:I.dot?F51:N51,Y=I.nocase?"i":"",J=$.map(function(Q){return Q.map(function(K){return K===R3?U:typeof K==="string"?C51(K):K._src}).join("\\/")}).join("|");if(J="^(?:"+J+")$",this.negate)J="^(?!"+J+").*$";try{this.regexp=new RegExp(J,Y)}catch(Q){this.regexp=!1}return this.regexp}q$.match=function($,I,U){U=U||{};var Y=new B4(I,U);if($=$.filter(function(J){return Y.match(J)}),Y.options.nonull&&!$.length)$.push(I);return $};B4.prototype.match=function(I,U){if(typeof U>"u")U=this.partial;if(this.debug("match",I,this.pattern),this.comment)return!1;if(this.empty)return I==="";if(I==="/"&&U)return!0;var Y=this.options;if(Iq.sep!=="/")I=I.split(Iq.sep).join("/");I=I.split(QJ0),this.debug(this.pattern,"split",I);var J=this.set;this.debug(this.pattern,"set",J);var Q,K;for(K=I.length-1;K>=0;K--)if(Q=I[K],Q)break;for(K=0;K<J.length;K++){var q=J[K],G=I;if(Y.matchBase&&q.length===1)G=[Q];var H=this.matchOne(G,q,U);if(H){if(Y.flipNegate)return!0;return!this.negate}}if(Y.flipNegate)return!1;return this.negate};B4.prototype.matchOne=function($,I,U){if(I.indexOf(R3)!==-1)return this._matchGlobstar($,I,U,0,0);return this._matchOne($,I,U,0,0)};B4.prototype._matchGlobstar=function($,I,U,Y,J){var Q,K=-1;for(Q=J;Q<I.length;Q++)if(I[Q]===R3){K=Q;break}var q=-1;for(Q=I.length-1;Q>=0;Q--)if(I[Q]===R3){q=Q;break}var G=I.slice(J,K),H=U?I.slice(K+1):I.slice(K+1,q),W=U?[]:I.slice(q+1);if(G.length){var V=$.slice(Y,Y+G.length);if(!this._matchOne(V,G,U,0,0))return!1;Y+=G.length}var w=0;if(W.length){if(W.length+Y>$.length)return!1;var Z=$.length-W.length;if(this._matchOne($,W,U,Z,0))w=W.length;else{if($[$.length-1]!==""||Y+W.length===$.length)return!1;if(Z--,!this._matchOne($,W,U,Z,0))return!1;w=W.length+1}}if(!H.length){var z=!!w;for(Q=Y;Q<$.length-w;Q++){var L=String($[Q]);if(z=!0,L==="."||L===".."||!this.options.dot&&L.charAt(0)===".")return!1}return U||z}var D=[[[],0]],F=D[0],E=0,T=[0];for(var A=0;A<H.length;A++){var R=H[A];if(R===R3)T.push(E),F=[[],0],D.push(F);else F[0].push(R),E++}var u=D.length-1,g=$.length-w;for(var b=0;b<D.length;b++)D[b][1]=g-(T[u--]+D[b][0].length);return!!this._matchGlobStarBodySections($,D,Y,0,U,0,!!w)};B4.prototype._matchGlobStarBodySections=function($,I,U,Y,J,Q,K){var q=I[Y];if(!q){for(var G=U;G<$.length;G++){K=!0;var H=$[G];if(H==="."||H===".."||!this.options.dot&&H.charAt(0)===".")return!1}return K}var W=q[0],V=q[1];while(U<=V){var w=this._matchOne($.slice(0,U+W.length),W,J,U,0);if(w&&Q<this.maxGlobstarRecursion){var Z=this._matchGlobStarBodySections($,I,U+W.length,Y+1,J,Q+1,K);if(Z!==!1)return Z}var H=$[U];if(H==="."||H===".."||!this.options.dot&&H.charAt(0)===".")return!1;U++}return J||null};B4.prototype._matchOne=function($,I,U,Y,J){var Q,K,q,G;for(Q=Y,K=J,q=$.length,G=I.length;Q<q&&K<G;Q++,K++){this.debug("matchOne loop");var H=I[K],W=$[Q];if(this.debug(I,H,W),H===!1||H===R3)return!1;var V;if(typeof H==="string")V=W===H,this.debug("string match",H,W,V);else V=W.match(H),this.debug("pattern match",H,W,V);if(!V)return!1}if(Q===q&&K===G)return!0;else if(Q===q)return U;else if(K===G)return Q===q-1&&$[Q]==="";throw Error("wtf?")};function R51($){return $.replace(/\\(.)/g,"$1")}function C51($){return $.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Oz=O((pv1,Dz)=>{function GJ0($){return $.charAt(0)==="/"}function HJ0($){var I=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,U=I.exec($),Y=U[1]||"",J=Boolean(Y&&Y.charAt(1)!==":");return Boolean(U[2]||J)}Dz.exports=process.platform==="win32"?HJ0:GJ0;Dz.exports.posix=GJ0;Dz.exports.win32=HJ0});var WS=O((f51)=>{f51.setopts=h51;f51.ownProp=WJ0;f51.makeAbs=Uq;f51.finish=x51;f51.mark=k51;f51.isIgnored=wJ0;f51.childrenIgnored=u51;function WJ0($,I){return Object.prototype.hasOwnProperty.call($,I)}var j51=r("fs"),bY=r("path"),_51=Lz(),VJ0=Oz(),HS=_51.Minimatch;function S51($,I){return $.localeCompare(I,"en")}function g51($,I){if($.ignore=I.ignore||[],!Array.isArray($.ignore))$.ignore=[$.ignore];if($.ignore.length)$.ignore=$.ignore.map(y51)}function y51($){var I=null;if($.slice(-3)==="/**"){var U=$.replace(/(\/\*\*)+$/,"");I=new HS(U,{dot:!0})}return{matcher Line truncated
*/MU0.exports=function($,I){if(typeof $!=="string")throw TypeError("expected path to be a string");if($==="\\"||$==="/")return"/";var U=$.length;if(U<=1)return $;var Y="";if(U>4&&$[3]==="\\"){var J=$[2];if((J==="?"||J===".")&&$.slice(0,2)==="\\\\")$=$.slice(2),Y="//"}var Q=$.split(/[/\\]+/);if(I!==!1&&Q[Q.length-1]==="")Q.pop();return Y+Q.join("/")}});var A_=O((Av1,RU0)=>{var PU0=9007199254740991,x11="[object Arguments]",k11="[object Function]",u11="[object GeneratorFunction]",f11=/^(?:0|[1-9]\d*)$/;function TU0($,I,U){switch(U.length){case 0:return $.call(I);case 1:return $.call(I,U[0]);case 2:return $.call(I,U[0],U[1]);case 3:return $.call(I,U[0],U[1],U[2])}return $.apply(I,U)}function b11($,I){var U=-1,Y=Array($);while(++U<$)Y[U]=I(U);return Y}var iK=Object.prototype,nK=iK.hasOwnProperty,EU0=iK.toString,i11=iK.propertyIsEnumerable,AU0=Math.max;function n11($,I){var U=s11($)||a11($)?b11($.length,String):[],Y=U.length,J=!!Y;for(var Q in $)if((I||nK.call($,Q))&&!(J&&(Q=="length"||vU0(Q,Y))))U.push(Q);return U}function p11($,I,U,Y){if($===void 0||F_($,iK[U])&&!nK.call(Y,U))return I;return $}function c11($,I,U){var Y=$[I];if(!(nK.call($,I)&&F_(Y,U))||U===void 0&&!(I in $))$[I]=U}function d11($){if(!M_($))return t11($);var I=r11($),U=[];for(var Y in $)if(!(Y=="constructor"&&(I||!nK.call($,Y))))U.push(Y);return U}function BU0($,I){return I=AU0(I===void 0?$.length-1:I,0),function(){var U=arguments,Y=-1,J=AU0(U.length-I,0),Q=Array(J);while(++Y<J)Q[Y]=U[I+Y];Y=-1;var K=Array(I+1);while(++Y<I)K[Y]=U[Y];return K[I]=Q,TU0($,this,K)}}function m11($,I,U,Y){U||(U={});var J=-1,Q=I.length;while(++J<Q){var K=I[J],q=Y?Y(U[K],$[K],K,U,$):void 0;c11(U,K,q===void 0?$[K]:q)}return U}function l11($){return BU0(function(I,U){var Y=-1,J=U.length,Q=J>1?U[J-1]:void 0,K=J>2?U[2]:void 0;if(Q=$.length>3&&typeof Q=="function"?(J--,Q):void 0,K&&o11(U[0],U[1],K))Q=J<3?void 0:Q,J=1;I=Object(I);while(++Y<J){var q=U[Y];if(q)$(I,q,Y,Q)}return I})}function vU0($,I){return I=I==null?PU0:I,!!I&&(typeof $=="number"||f11.test($))&&($>-1&&$%1==0&&$<I)}function o11($,I,U){if(!M_(U))return!1;var Y=typeof I;if(Y=="number"?N_(U)&&vU0(I,U.length):Y=="string"&&(I in U))return F_(U[I],$);return!1}function r11($){var I=$&&$.constructor,U=typeof I=="function"&&I.prototype||iK;return $===U}function t11($){var I=[];if($!=null)for(var U in Object($))I.push(U);return I}function F_($,I){return $===I||$!==$&&I!==I}function a11($){return e11($)&&nK.call($,"callee")&&(!i11.call($,"callee")||EU0.call($)==x11)}var s11=Array.isArray;function N_($){return $!=null&&I41($.length)&&!$41($)}function e11($){return U41($)&&N_($)}function $41($){var I=M_($)?EU0.call($):"";return I==k11||I==u11}function I41($){return typeof $=="number"&&$>-1&&$%1==0&&$<=PU0}function M_($){var I=typeof $;return!!$&&(I=="object"||I=="function")}function U41($){return!!$&&typeof $=="object"}var Y41=l11(function($,I,U,Y){m11(I,Q41(I),$,Y)}),J41=BU0(function($){return $.push(void 0,p11),TU0(Y41,void 0,$)});function Q41($){return N_($)?n11($,!0):d11($)}RU0.exports=J41});var jU0=O((Pv1,P_)=>{function K41($,I){if(!($ instanceof I))throw TypeError("Cannot call a class as a function")}var CU0=M4().Buffer,pK=r("util");function q41($,I,U){$.copy(I,U)}P_.exports=function(){function $(){K41(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function(U){var Y={data:U,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function(U){var Y={data:U,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function(){if(this.length===0)return;var U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U},$.prototype.clear=function(){this.head=this.tail=null,this.length=0},$.prototype.join=function(U){if(this.length===0)return"";var Y=this.head,J=""+Y.data;while(Y=Y.next)J+=U+Y.data;return J},$.prototype.concat=function(U){if(this.length===0)return CU0.alloc(0);var Y=CU0.allocUnsafe(U>>>0),J=this.head,Q=0;while(J)q41(J.data,Y,Q),Q+=J.data.length,J=J.next;return Y},$}();if(pK&&pK.inspect&&pK.inspect.custom)P_.exports.prototype[pK.inspect.custom]=function(){var $=pK.inspect({length:this.length});return this.constructor.name+" "+$}});var T_=O((Tv1,_U0)=>{var aX=N4();function G41($,I){var U=this,Y=this._readableState&&this._readableState.destroyed,J=this._writableState&&this._writableState.destroyed;if(Y||J){if(I)I($);else if($){if(!this._writableState)aX.nextTick(sX,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,aX.nextTick(sX,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!I&&Q){if(!U._writableState)aX.nextTick(sX,U,Q);else if(!U._writableState.errorEmitted)U._writableState.errorEmitted=!0,aX.nextTick(sX,U,Q)}else if(I)I(Q)}),this}function H41(){if(this._readableState)this._readable Line truncated
%s`,R,R,E,Y);var u=E.type==="*"?GS:E.type==="?"?qS:"\\"+E.type;J=!0,Y=Y.slice(0,E.reStart)+u+"\\("+R}if(z(),Q)Y+="\\\\";var g=!1;switch(Y.charAt(0)){case"[":case".":case"(":g=!0}for(var b=q.length-1;b>-1;b--){var C=q[b],p=Y.slice(0,C.reStart),n=Y.slice(C.reStart,C.reEnd-8),S=Y.slice(C.reEnd-8,C.reEnd),f=Y.slice(C.reEnd);S+=f;var i=p.split("(").length-1,Y0=f;for(L=0;L<i;L++)Y0=Y0.replace(/\)[+*?]?/,"");f=Y0;var B="";if(f===""&&I!==Xz)B="$";var k=p+n+f+B+S;Y=k}if(Y!==""&&J)Y="(?=.)"+Y;if(g)Y=w+Y;if(I===Xz)return[Y,J];if(!J)return R51($);var d=U.nocase?"i":"";try{var t=new RegExp("^"+Y+"$",d)}catch(K0){return new RegExp("$.")}return t._glob=$,t._src=Y,t}q$.makeRe=function($,I){return new B4($,I||{}).makeRe()};B4.prototype.makeRe=v51;function v51(){if(this.regexp||this.regexp===!1)return this.regexp;var $=this.set;if(!$.length)return this.regexp=!1,this.regexp;var I=this.options,U=I.noglobstar?GS:I.dot?F51:N51,Y=I.nocase?"i":"",J=$.map(function(Q){return Q.map(function(K){return K===C3?U:typeof K==="string"?C51(K):K._src}).join("\\/")}).join("|");if(J="^(?:"+J+")$",this.negate)J="^(?!"+J+").*$";try{this.regexp=new RegExp(J,Y)}catch(Q){this.regexp=!1}return this.regexp}q$.match=function($,I,U){U=U||{};var Y=new B4(I,U);if($=$.filter(function(J){return Y.match(J)}),Y.options.nonull&&!$.length)$.push(I);return $};B4.prototype.match=function(I,U){if(typeof U>"u")U=this.partial;if(this.debug("match",I,this.pattern),this.comment)return!1;if(this.empty)return I==="";if(I==="/"&&U)return!0;var Y=this.options;if(Iq.sep!=="/")I=I.split(Iq.sep).join("/");I=I.split(QJ0),this.debug(this.pattern,"split",I);var J=this.set;this.debug(this.pattern,"set",J);var Q,K;for(K=I.length-1;K>=0;K--)if(Q=I[K],Q)break;for(K=0;K<J.length;K++){var q=J[K],G=I;if(Y.matchBase&&q.length===1)G=[Q];var H=this.matchOne(G,q,U);if(H){if(Y.flipNegate)return!0;return!this.negate}}if(Y.flipNegate)return!1;return this.negate};B4.prototype.matchOne=function($,I,U){if(I.indexOf(C3)!==-1)return this._matchGlobstar($,I,U,0,0);return this._matchOne($,I,U,0,0)};B4.prototype._matchGlobstar=function($,I,U,Y,J){var Q,K=-1;for(Q=J;Q<I.length;Q++)if(I[Q]===C3){K=Q;break}var q=-1;for(Q=I.length-1;Q>=0;Q--)if(I[Q]===C3){q=Q;break}var G=I.slice(J,K),H=U?I.slice(K+1):I.slice(K+1,q),W=U?[]:I.slice(q+1);if(G.length){var V=$.slice(Y,Y+G.length);if(!this._matchOne(V,G,U,0,0))return!1;Y+=G.length}var w=0;if(W.length){if(W.length+Y>$.length)return!1;var Z=$.length-W.length;if(this._matchOne($,W,U,Z,0))w=W.length;else{if($[$.length-1]!==""||Y+W.length===$.length)return!1;if(Z--,!this._matchOne($,W,U,Z,0))return!1;w=W.length+1}}if(!H.length){var z=!!w;for(Q=Y;Q<$.length-w;Q++){var L=String($[Q]);if(z=!0,L==="."||L===".."||!this.options.dot&&L.charAt(0)===".")return!1}return U||z}var D=[[[],0]],F=D[0],E=0,T=[0];for(var A=0;A<H.length;A++){var R=H[A];if(R===C3)T.push(E),F=[[],0],D.push(F);else F[0].push(R),E++}var u=D.length-1,g=$.length-w;for(var b=0;b<D.length;b++)D[b][1]=g-(T[u--]+D[b][0].length);return!!this._matchGlobStarBodySections($,D,Y,0,U,0,!!w)};B4.prototype._matchGlobStarBodySections=function($,I,U,Y,J,Q,K){var q=I[Y];if(!q){for(var G=U;G<$.length;G++){K=!0;var H=$[G];if(H==="."||H===".."||!this.options.dot&&H.charAt(0)===".")return!1}return K}var W=q[0],V=q[1];while(U<=V){var w=this._matchOne($.slice(0,U+W.length),W,J,U,0);if(w&&Q<this.maxGlobstarRecursion){var Z=this._matchGlobStarBodySections($,I,U+W.length,Y+1,J,Q+1,K);if(Z!==!1)return Z}var H=$[U];if(H==="."||H===".."||!this.options.dot&&H.charAt(0)===".")return!1;U++}return J||null};B4.prototype._matchOne=function($,I,U,Y,J){var Q,K,q,G;for(Q=Y,K=J,q=$.length,G=I.length;Q<q&&K<G;Q++,K++){this.debug("matchOne loop");var H=I[K],W=$[Q];if(this.debug(I,H,W),H===!1||H===C3)return!1;var V;if(typeof H==="string")V=W===H,this.debug("string match",H,W,V);else V=W.match(H),this.debug("pattern match",H,W,V);if(!V)return!1}if(Q===q&&K===G)return!0;else if(Q===q)return U;else if(K===G)return Q===q-1&&$[Q]==="";throw Error("wtf?")};function R51($){return $.replace(/\\(.)/g,"$1")}function C51($){return $.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Oz=O((pv1,Dz)=>{function GJ0($){return $.charAt(0)==="/"}function HJ0($){var I=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,U=I.exec($),Y=U[1]||"",J=Boolean(Y&&Y.charAt(1)!==":");return Boolean(U[2]||J)}Dz.exports=process.platform==="win32"?HJ0:GJ0;Dz.exports.posix=GJ0;Dz.exports.win32=HJ0});var WS=O((f51)=>{f51.setopts=h51;f51.ownProp=WJ0;f51.makeAbs=Uq;f51.finish=x51;f51.mark=k51;f51.isIgnored=wJ0;f51.childrenIgnored=u51;function WJ0($,I){return Object.prototype.hasOwnProperty.call($,I)}var j51=r("fs"),iY=r("path"),_51=Lz(),VJ0=Oz(),HS=_51.Minimatch;function S51($,I){return $.localeCompare(I,"en")}function g51($,I){if($.ignore=I.ignore||[],!Array.isArray($.ignore))$.ignore=[$.ignore];if($.ignore.length)$.ignore=$.ignore.map(y51)}function y51($){var I=null;if($.slice(-3)==="/**"){var U=$.replace(/(\/\*\*)+$/,"");I=new HS(U,{dot:!0})}return{matcher Line truncated
See: https://github.com/isaacs/node-glob/issues/167`);return new y4($,I).found}function y4($,I){if(!$)throw Error("must provide pattern");if(typeof I==="function"||arguments.length===3)throw TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof y4))return new y4($,I);if(o51(this,$,I),this.noprocess)return this;var U=this.minimatch.set.length;this.matches=Array(U);for(var Y=0;Y<U;Y++)this._process(this.minimatch.set[Y],Y,!1);this._finish()}y4.prototype._finish=function(){if(XJ0.ok(this instanceof y4),this.realpath){var $=this;this.matches.forEach(function(I,U){var Y=$.matches[U]=Object.create(null);for(var J in I)try{J=$._makeAbs(J);var Q=l51.realpathSync(J,$.realpathCache);Y[Q]=!0}catch(K){if(K.syscall==="stat")Y[$._makeAbs(J)]=!0;else throw K}})}C3.finish(this)};y4.prototype._process=function($,I,U){XJ0.ok(this instanceof y4);var Y=0;while(typeof $[Y]==="string")Y++;var J;switch(Y){case $.length:this._processSimple($.join("/"),I);return;case 0:J=null;break;default:J=$.slice(0,Y).join("/");break}var Q=$.slice(Y),K;if(J===null)K=".";else if(Fz(J)||Fz($.map(function(H){return typeof H==="string"?H:"[*]"}).join("/"))){if(!J||!Fz(J))J="/"+J;K=J}else K=J;var q=this._makeAbs(K);if(r51(this,K))return;var G=Q[0]===ZJ0.GLOBSTAR;if(G)this._processGlobStar(J,K,q,Q,I,U);else this._processReaddir(J,K,q,Q,I,U)};y4.prototype._processReaddir=function($,I,U,Y,J,Q){var K=this._readdir(U,Q);if(!K)return;var q=Y[0],G=!!this.minimatch.negate,H=q._glob,W=this.dot||H.charAt(0)===".",V=[];for(var w=0;w<K.length;w++){var Z=K[w];if(Z.charAt(0)!=="."||W){var z;if(G&&!$)z=!Z.match(q);else z=Z.match(q);if(z)V.push(Z)}}var L=V.length;if(L===0)return;if(Y.length===1&&!this.mark&&!this.stat){if(!this.matches[J])this.matches[J]=Object.create(null);for(var w=0;w<L;w++){var Z=V[w];if($)if($.slice(-1)!=="/")Z=$+"/"+Z;else Z=$+Z;if(Z.charAt(0)==="/"&&!this.nomount)Z=VS.join(this.root,Z);this._emitMatch(J,Z)}return}Y.shift();for(var w=0;w<L;w++){var Z=V[w],D;if($)D=[$,Z];else D=[Z];this._process(D.concat(Y),J,Q)}};y4.prototype._emitMatch=function($,I){if(t51(this,I))return;var U=this._makeAbs(I);if(this.mark)I=this._mark(I);if(this.absolute)I=U;if(this.matches[$][I])return;if(this.nodir){var Y=this.cache[U];if(Y==="DIR"||Array.isArray(Y))return}if(this.matches[$][I]=!0,this.stat)this._stat(I)};y4.prototype._readdirInGlobStar=function($){if(this.follow)return this._readdir($,!1);var I,U,Y;try{U=this.fs.lstatSync($)}catch(Q){if(Q.code==="ENOENT")return null}var J=U&&U.isSymbolicLink();if(this.symlinks[$]=J,!J&&U&&!U.isDirectory())this.cache[$]="FILE";else I=this._readdir($,!1);return I};y4.prototype._readdir=function($,I){var U;if(I&&!wS(this.symlinks,$))return this._readdirInGlobStar($);if(wS(this.cache,$)){var Y=this.cache[$];if(!Y||Y==="FILE")return null;if(Array.isArray(Y))return Y}try{return this._readdirEntries($,this.fs.readdirSync($))}catch(J){return this._readdirError($,J),null}};y4.prototype._readdirEntries=function($,I){if(!this.mark&&!this.stat)for(var U=0;U<I.length;U++){var Y=I[U];if($==="/")Y=$+Y;else Y=$+"/"+Y;this.cache[Y]=!0}return this.cache[$]=I,I};y4.prototype._readdirError=function($,I){switch(I.code){case"ENOTSUP":case"ENOTDIR":var U=this._makeAbs($);if(this.cache[U]="FILE",U===this.cwdAbs){var Y=Error(I.code+" invalid cwd "+this.cwd);throw Y.path=this.cwd,Y.code=I.code,Y}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs($)]=!1;break;default:if(this.cache[this._makeAbs($)]=!1,this.strict)throw I;if(!this.silent)console.error("glob error",I);break}};y4.prototype._processGlobStar=function($,I,U,Y,J,Q){var K=this._readdir(U,Q);if(!K)return;var q=Y.slice(1),G=$?[$]:[],H=G.concat(q);this._process(H,J,!1);var W=K.length,V=this.symlinks[U];if(V&&Q)return;for(var w=0;w<W;w++){var Z=K[w];if(Z.charAt(0)==="."&&!this.dot)continue;var z=G.concat(K[w],q);this._process(z,J,!0);var L=G.concat(K[w],Y);this._process(L,J,!0)}};y4.prototype._processSimple=function($,I){var U=this._stat($);if(!this.matches[I])this.matches[I]=Object.create(null);if(!U)return;if($&&Fz($)&&!this.nomount){var Y=/[\/\\]$/.test($);if($.charAt(0)==="/")$=VS.join(this.root,$);else if($=VS.resolve(this.root,$),Y)$+="/"}if(process.platform==="win32")$=$.replace(/\\/g,"/");this._emitMatch(I,$)};y4.prototype._stat=function($){var I=this._makeAbs($),U=$.slice(-1)==="/";if($.length>this.maxLength)return!1;if(!this.stat&&wS(this.cache,I)){var K=this.cache[I];if(Array.isArray(K))K="DIR";if(!U||K==="DIR")return K;if(U&&K==="FILE")return!1}var Y,J=this.statCache[I];if(!J){var Q;try{Q=this.fs.lstatSync(I)}catch(q){if(q&&(q.code==="ENOENT"||q.code==="ENOTDIR"))return this.statCache[I]=!1,!1}if(Q&&Q.isSymbolicLink())try{J=this.fs.statSync(I)}catch(q){J=Q}else J=Q}this.statCache[I]=J;var K=!0;if(J)K=J.isDirectory()?"DIR":"FILE";if(this.cache[I]=this.cache[I]||K,U&&K==="FILE")return!1;return K};y4.prototype._mark=function($){return C3.mark(this,$)};y4.prototype._makeAbs=function($){return C3.makeAbs(this,$)}});var ZS=O((rv1,FJ0)=>{FJ0.exports=OJ0;function OJ0($,I){if($&&I)return OJ0($)(I);if(typeof $!=="function")throw TypeError("need wrapper function");return Object.keys($).forEach(function(Y){U[Y]=$[Y]}),U;f Line truncated
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof y4))return new y4($,I);if(o51(this,$,I),this.noprocess)return this;var U=this.minimatch.set.length;this.matches=Array(U);for(var Y=0;Y<U;Y++)this._process(this.minimatch.set[Y],Y,!1);this._finish()}y4.prototype._finish=function(){if(XJ0.ok(this instanceof y4),this.realpath){var $=this;this.matches.forEach(function(I,U){var Y=$.matches[U]=Object.create(null);for(var J in I)try{J=$._makeAbs(J);var Q=l51.realpathSync(J,$.realpathCache);Y[Q]=!0}catch(K){if(K.syscall==="stat")Y[$._makeAbs(J)]=!0;else throw K}})}j3.finish(this)};y4.prototype._process=function($,I,U){XJ0.ok(this instanceof y4);var Y=0;while(typeof $[Y]==="string")Y++;var J;switch(Y){case $.length:this._processSimple($.join("/"),I);return;case 0:J=null;break;default:J=$.slice(0,Y).join("/");break}var Q=$.slice(Y),K;if(J===null)K=".";else if(Fz(J)||Fz($.map(function(H){return typeof H==="string"?H:"[*]"}).join("/"))){if(!J||!Fz(J))J="/"+J;K=J}else K=J;var q=this._makeAbs(K);if(r51(this,K))return;var G=Q[0]===ZJ0.GLOBSTAR;if(G)this._processGlobStar(J,K,q,Q,I,U);else this._processReaddir(J,K,q,Q,I,U)};y4.prototype._processReaddir=function($,I,U,Y,J,Q){var K=this._readdir(U,Q);if(!K)return;var q=Y[0],G=!!this.minimatch.negate,H=q._glob,W=this.dot||H.charAt(0)===".",V=[];for(var w=0;w<K.length;w++){var Z=K[w];if(Z.charAt(0)!=="."||W){var z;if(G&&!$)z=!Z.match(q);else z=Z.match(q);if(z)V.push(Z)}}var L=V.length;if(L===0)return;if(Y.length===1&&!this.mark&&!this.stat){if(!this.matches[J])this.matches[J]=Object.create(null);for(var w=0;w<L;w++){var Z=V[w];if($)if($.slice(-1)!=="/")Z=$+"/"+Z;else Z=$+Z;if(Z.charAt(0)==="/"&&!this.nomount)Z=VS.join(this.root,Z);this._emitMatch(J,Z)}return}Y.shift();for(var w=0;w<L;w++){var Z=V[w],D;if($)D=[$,Z];else D=[Z];this._process(D.concat(Y),J,Q)}};y4.prototype._emitMatch=function($,I){if(t51(this,I))return;var U=this._makeAbs(I);if(this.mark)I=this._mark(I);if(this.absolute)I=U;if(this.matches[$][I])return;if(this.nodir){var Y=this.cache[U];if(Y==="DIR"||Array.isArray(Y))return}if(this.matches[$][I]=!0,this.stat)this._stat(I)};y4.prototype._readdirInGlobStar=function($){if(this.follow)return this._readdir($,!1);var I,U,Y;try{U=this.fs.lstatSync($)}catch(Q){if(Q.code==="ENOENT")return null}var J=U&&U.isSymbolicLink();if(this.symlinks[$]=J,!J&&U&&!U.isDirectory())this.cache[$]="FILE";else I=this._readdir($,!1);return I};y4.prototype._readdir=function($,I){var U;if(I&&!wS(this.symlinks,$))return this._readdirInGlobStar($);if(wS(this.cache,$)){var Y=this.cache[$];if(!Y||Y==="FILE")return null;if(Array.isArray(Y))return Y}try{return this._readdirEntries($,this.fs.readdirSync($))}catch(J){return this._readdirError($,J),null}};y4.prototype._readdirEntries=function($,I){if(!this.mark&&!this.stat)for(var U=0;U<I.length;U++){var Y=I[U];if($==="/")Y=$+Y;else Y=$+"/"+Y;this.cache[Y]=!0}return this.cache[$]=I,I};y4.prototype._readdirError=function($,I){switch(I.code){case"ENOTSUP":case"ENOTDIR":var U=this._makeAbs($);if(this.cache[U]="FILE",U===this.cwdAbs){var Y=Error(I.code+" invalid cwd "+this.cwd);throw Y.path=this.cwd,Y.code=I.code,Y}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs($)]=!1;break;default:if(this.cache[this._makeAbs($)]=!1,this.strict)throw I;if(!this.silent)console.error("glob error",I);break}};y4.prototype._processGlobStar=function($,I,U,Y,J,Q){var K=this._readdir(U,Q);if(!K)return;var q=Y.slice(1),G=$?[$]:[],H=G.concat(q);this._process(H,J,!1);var W=K.length,V=this.symlinks[U];if(V&&Q)return;for(var w=0;w<W;w++){var Z=K[w];if(Z.charAt(0)==="."&&!this.dot)continue;var z=G.concat(K[w],q);this._process(z,J,!0);var L=G.concat(K[w],Y);this._process(L,J,!0)}};y4.prototype._processSimple=function($,I){var U=this._stat($);if(!this.matches[I])this.matches[I]=Object.create(null);if(!U)return;if($&&Fz($)&&!this.nomount){var Y=/[\/\\]$/.test($);if($.charAt(0)==="/")$=VS.join(this.root,$);else if($=VS.resolve(this.root,$),Y)$+="/"}if(process.platform==="win32")$=$.replace(/\\/g,"/");this._emitMatch(I,$)};y4.prototype._stat=function($){var I=this._makeAbs($),U=$.slice(-1)==="/";if($.length>this.maxLength)return!1;if(!this.stat&&wS(this.cache,I)){var K=this.cache[I];if(Array.isArray(K))K="DIR";if(!U||K==="DIR")return K;if(U&&K==="FILE")return!1}var Y,J=this.statCache[I];if(!J){var Q;try{Q=this.fs.lstatSync(I)}catch(q){if(q&&(q.code==="ENOENT"||q.code==="ENOTDIR"))return this.statCache[I]=!1,!1}if(Q&&Q.isSymbolicLink())try{J=this.fs.statSync(I)}catch(q){J=Q}else J=Q}this.statCache[I]=J;var K=!0;if(J)K=J.isDirectory()?"DIR":"FILE";if(this.cache[I]=this.cache[I]||K,U&&K==="FILE")return!1;return K};y4.prototype._mark=function($){return j3.mark(this,$)};y4.prototype._makeAbs=function($){return j3.makeAbs(this,$)}});var ZS=O((rv1,FJ0)=>{FJ0.exports=OJ0;function OJ0($,I){if($&&I)return OJ0($)(I);if(typeof $!=="function")throw TypeError("need wrapper function");return Object.keys($).forEach(function(Y){U[Y]=$[Y]}),U;f Line truncated
`);if($.linkname)I+=dS(" linkpath="+$.linkname+`
`);var U=$.pax;if(U)for(var Y in U)I+=dS(" "+Y+"="+U[Y]+`
`);return Buffer.from(I)};w71.decodePax=function($){var I={};while($.length){var U=0;while(U<$.length&&$[U]!==32)U++;var Y=parseInt($.slice(0,U).toString(),10);if(!Y)return I;var J=$.slice(U+1,Y-1).toString(),Q=J.indexOf("=");if(Q===-1)return I;I[J.slice(0,Q)]=J.slice(Q+1),$=$.slice(Y)}return I};w71.encode=function($){var I=I71(512),U=$.name,Y="";if($.typeflag===5&&U[U.length-1]!=="/")U+="/";if(Buffer.byteLength(U)!==U.length)return null;while(Buffer.byteLength(U)>100){var J=U.indexOf("/");if(J===-1)return null;Y+=Y?"/"+U.slice(0,J):U.slice(0,J),U=U.slice(J+1)}if(Buffer.byteLength(U)>100||Buffer.byteLength(Y)>155)return null;if($.linkname&&Buffer.byteLength($.linkname)>100)return null;if(I.write(U),I.write(e9($.mode&q71,6),100),I.write(e9($.uid,6),108),I.write(e9($.gid,6),116),I.write(e9($.size,11),124),I.write(e9($.mtime.getTime()/1000|0,11),136),I[156]=kQ0+W71($.type),$.linkname)I.write($.linkname,157);if(uQ0.copy(I,Gq),J71.copy(I,mS),$.uname)I.write($.uname,265);if($.gname)I.write($.gname,297);if(I.write(e9($.devmajor||0,6),329),I.write(e9($.devminor||0,6),337),Y)I.write(Y,345);return I.write(e9(bQ0(I),6),148),I};w71.decode=function($,I,U){var Y=$[156]===0?0:$[156]-kQ0,J=cY($,0,100,I),Q=$7($,100,8),K=$7($,108,8),q=$7($,116,8),G=$7($,124,12),H=$7($,136,12),W=H71(Y),V=$[157]===0?null:cY($,157,100,I),w=cY($,265,32),Z=cY($,297,32),z=$7($,329,8),L=$7($,337,8),D=bQ0($);if(D===256)return null;if(D!==$7($,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(uQ0.compare($,Gq,Gq+6)===0){if($[345])J=cY($,345,155,I)+"/"+J}else if(Q71.compare($,Gq,Gq+6)===0&&K71.compare($,mS,mS+2)===0);else if(!U)throw Error("Invalid tar header: unknown format.");if(Y===0&&J&&J[J.length-1]==="/")Y=5;return{name:J,mode:Q,uid:K,gid:q,size:G,mtime:new Date(1000*H),type:W,linkname:V,uname:w,gname:Z,devmajor:z,devminor:L}}});var lQ0=O((jR1,mQ0)=>{var nQ0=r("util"),O71=xQ0(),Hq=lS(),pQ0=z6().Writable,cQ0=z6().PassThrough,dQ0=function(){},iQ0=function($){return $&=511,$&&512-$},F71=function($,I){var U=new Bz($,I);return U.end(),U},N71=function($,I){if(I.path)$.name=I.path;if(I.linkpath)$.linkname=I.linkpath;if(I.size)$.size=parseInt(I.size,10);return $.pax=I,$},Bz=function($,I){this._parent=$,this.offset=I,cQ0.call(this,{autoDestroy:!1})};nQ0.inherits(Bz,cQ0);Bz.prototype.destroy=function($){this._parent.destroy($)};var C5=function($){if(!(this instanceof C5))return new C5($);pQ0.call(this,$),$=$||{},this._offset=0,this._buffer=O71(),this._missing=0,this._partial=!1,this._onparse=dQ0,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var I=this,U=I._buffer,Y=function(){I._continue()},J=function(w){if(I._locked=!1,w)return I.destroy(w);if(!I._stream)Y()},Q=function(){I._stream=null;var w=iQ0(I._header.size);if(w)I._parse(w,K);else I._parse(512,V);if(!I._locked)Y()},K=function(){I._buffer.consume(iQ0(I._header.size)),I._parse(512,V),Y()},q=function(){var w=I._header.size;I._paxGlobal=Hq.decodePax(U.slice(0,w)),U.consume(w),Q()},G=function(){var w=I._header.size;if(I._pax=Hq.decodePax(U.slice(0,w)),I._paxGlobal)I._pax=Object.assign({},I._paxGlobal,I._pax);U.consume(w),Q()},H=function(){var w=I._header.size;this._gnuLongPath=Hq.decodeLongPath(U.slice(0,w),$.filenameEncoding),U.consume(w),Q()},W=function(){var w=I._header.size;this._gnuLongLinkPath=Hq.decodeLongPath(U.slice(0,w),$.filenameEncoding),U.consume(w),Q()},V=function(){var w=I._offset,Z;try{Z=I._header=Hq.decode(U.slice(0,512),$.filenameEncoding,$.allowUnknownFormat)}catch(z){I.emit("error",z)}if(U.consume(512),!Z){I._parse(512,V),Y();return}if(Z.type==="gnu-long-path"){I._parse(Z.size,H),Y();return}if(Z.type==="gnu-long-link-path"){I._parse(Z.size,W),Y();return}if(Z.type==="pax-global-header"){I._parse(Z.size,q),Y();return}if(Z.type==="pax-header"){I._parse(Z.size,G),Y();return}if(I._gnuLongPath)Z.name=I._gnuLongPath,I._gnuLongPath=null;if(I._gnuLongLinkPath)Z.linkname=I._gnuLongLinkPath,I._gnuLongLinkPath=null;if(I._pax)I._header=Z=N71(Z,I._pax),I._pax=null;if(I._locked=!0,!Z.size||Z.type==="directory"){I._parse(512,V),I.emit("entry",Z,F71(I,w),J);return}I._stream=new Bz(I,w),I.emit("entry",Z,I._stream,J),I._parse(Z.size,Q),Y()};this._onheader=V,this._parse(512,V)};nQ0.inherits(C5,pQ0);C5.prototype.destroy=function($){if(this._destroyed)return;if(this._destroyed=!0,$)this.emit("error",$);if(this.emit("close"),this._stream)this._stream.emit("close")};C5.prototype._parse=function($,I){if(this._destroyed)return;if(this._offset+=$,this._missing=$,I===this._onheader)this._partial=!1;this._onparse=I};C5.prototype._continue=function(){if(this._destroyed)return;var $=this._cb;if(this._cb=dQ0,this._overflow)this._write(this._overflow,void 0,$);else $()};C5.prototype._write=function($,I,U){if(this._destroyed)return;var Y=this._stream,J=this._buffer,Q=this._missing;if($.length)this._partial=!0;if($.length<Q){ Line truncated
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">`)}_writeRelationship($){if(!this.count)this._writeOpen();let I=`rId${++this.count}`;if($.TargetMode)this.stream.write(`<Relationship Id="${I}" Type="${$.Type}" Target="${f71.xmlEncode($.Target)}" TargetMode="${$.TargetMode}"/>`);else this.stream.write(`<Relationship Id="${I}" Type="${$.Type}" Target="${$.Target}"/>`);return I}_writeClose(){this.stream.write("</Relationships>")}}F20.exports=O20});var E20=O((bR1,T20)=>{var M20=$6(),A20=x9(),i71=G4(),n71=BC(),p71=RC();class P20{constructor($,I,U){this.id=U.id,this.count=0,this._worksheet=$,this._workbook=U.workbook,this._sheetRelsWriter=I}get commentsStream(){if(!this._commentsStream)this._commentsStream=this._workbook._openStream(`/xl/comments${this.id}.xml`);return this._commentsStream}get vmlStream(){if(!this._vmlStream)this._vmlStream=this._workbook._openStream(`xl/drawings/vmlDrawing${this.id}.vml`);return this._vmlStream}_addRelationships(){let $={Type:A20.Comments,Target:`../comments${this.id}.xml`};this._sheetRelsWriter.addRelationship($);let I={Type:A20.VmlDrawing,Target:`../drawings/vmlDrawing${this.id}.vml`};this.vmlRelId=this._sheetRelsWriter.addRelationship(I)}_addCommentRefs(){this._workbook.commentRefs.push({commentName:`comments${this.id}`,vmlDrawing:`vmlDrawing${this.id}`})}_writeOpen(){this.commentsStream.write('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><authors><author>Author</author></authors><commentList>'),this.vmlStream.write('<?xml version="1.0" encoding="UTF-8"?><xml xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel"><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1" /></o:shapelayout><v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe"><v:stroke joinstyle="miter" /><v:path gradientshapeok="t" o:connecttype="rect" /></v:shapetype>')}_writeComment($,I){let U=new n71,Y=new M20;U.render(Y,$),this.commentsStream.write(Y.xml);let J=new p71,Q=new M20;J.render(Q,$,I),this.vmlStream.write(Q.xml)}_writeClose(){this.commentsStream.write("</commentList></comments>"),this.vmlStream.write("</xml>")}addComments($){if($&&$.length){if(!this.startedData)this._worksheet.comments=[],this._writeOpen(),this._addRelationships(),this._addCommentRefs(),this.startedData=!0;$.forEach((I)=>{I.refAddress=i71.decodeAddress(I.ref)}),$.forEach((I)=>{this._writeComment(I,this.count),this.count+=1})}}commit(){if(this.count)this._writeClose(),this.commentsStream.end(),this.vmlStream.end()}}T20.exports=P20});var _20=O((iR1,j20)=>{var c71=Z4(),d71=x9(),tS=G4(),B20=cE(),v20=q5(),m71=QR(),R20=cV(),aS=mV(),l71=N20(),o71=E20(),r71=nE(),i4=new m71,sS=g9(),t71=$C(),a71=IC(),s71=UC(),e71=tR(),$31=oR(),I31=aR(),U31=YC(),Y31=JC(),J31=QC(),Q31=KC(),K31=qC(),q31=GC(),G31=ZC(),H31=WC(),W31=HC(),n4={dataValidations:new t71,sheetProperties:new a71,sheetFormatProperties:new s71,columns:new sS({tag:"cols",length:!1,childXform:new e71}),row:new $31,hyperlinks:new sS({tag:"hyperlinks",length:!1,childXform:new I31}),sheetViews:new sS({tag:"sheetViews",length:!1,childXform:new U31}),sheetProtection:new Y31,pageMargins:new J31,pageSeteup:new Q31,autoFilter:new K31,picture:new q31,conditionalFormattings:new G31,headerFooter:new H31,rowBreaks:new W31};class C20{constructor($){this.id=$.id,this.name=$.name||`Sheet${this.id}`,this.state=$.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges=[],this._merges.add=function(){},this._sheetRelsWriter=new l71($),this._sheetCommentsWriter=new o71(this,this._sheetRelsWriter,$),this._dimensions=new v20,this._rowZero=1,this.committed=!1,this.dataValidations=new r71,this._formulae={},this._siFormulae=0,this.conditionalFormatting=[],this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},$.properties),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},$.headerFooter),this.pageSetup=Object.assign({},{margins:{left:0.7,right:0.7,top:0.75,bottom:0.75,header:0.3,footer:0.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!($.pageSetup&&($.pageSetup.fitToWidth||$.pageSetup.fitToHeight)&&!$.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},$.pageSetup),this.useSharedStrings=$.useSharedStrings||!1,this._workbook=$.workbook,this.hasComments=!1,this._views=$.views||[],this.autoFilter=$.autoFilter||null,this._media=[],this.sheetProtection=null,this._writeOpenWorksheet(),this.startedData=!1}get Line truncated
`);return Buffer.from(I)};w71.decodePax=function($){var I={};while($.length){var U=0;while(U<$.length&&$[U]!==32)U++;var Y=parseInt($.slice(0,U).toString(),10);if(!Y)return I;var J=$.slice(U+1,Y-1).toString(),Q=J.indexOf("=");if(Q===-1)return I;I[J.slice(0,Q)]=J.slice(Q+1),$=$.slice(Y)}return I};w71.encode=function($){var I=I71(512),U=$.name,Y="";if($.typeflag===5&&U[U.length-1]!=="/")U+="/";if(Buffer.byteLength(U)!==U.length)return null;while(Buffer.byteLength(U)>100){var J=U.indexOf("/");if(J===-1)return null;Y+=Y?"/"+U.slice(0,J):U.slice(0,J),U=U.slice(J+1)}if(Buffer.byteLength(U)>100||Buffer.byteLength(Y)>155)return null;if($.linkname&&Buffer.byteLength($.linkname)>100)return null;if(I.write(U),I.write($7($.mode&q71,6),100),I.write($7($.uid,6),108),I.write($7($.gid,6),116),I.write($7($.size,11),124),I.write($7($.mtime.getTime()/1000|0,11),136),I[156]=kQ0+W71($.type),$.linkname)I.write($.linkname,157);if(uQ0.copy(I,Gq),J71.copy(I,mS),$.uname)I.write($.uname,265);if($.gname)I.write($.gname,297);if(I.write($7($.devmajor||0,6),329),I.write($7($.devminor||0,6),337),Y)I.write(Y,345);return I.write($7(bQ0(I),6),148),I};w71.decode=function($,I,U){var Y=$[156]===0?0:$[156]-kQ0,J=dY($,0,100,I),Q=I7($,100,8),K=I7($,108,8),q=I7($,116,8),G=I7($,124,12),H=I7($,136,12),W=H71(Y),V=$[157]===0?null:dY($,157,100,I),w=dY($,265,32),Z=dY($,297,32),z=I7($,329,8),L=I7($,337,8),D=bQ0($);if(D===256)return null;if(D!==I7($,148,8))throw Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(uQ0.compare($,Gq,Gq+6)===0){if($[345])J=dY($,345,155,I)+"/"+J}else if(Q71.compare($,Gq,Gq+6)===0&&K71.compare($,mS,mS+2)===0);else if(!U)throw Error("Invalid tar header: unknown format.");if(Y===0&&J&&J[J.length-1]==="/")Y=5;return{name:J,mode:Q,uid:K,gid:q,size:G,mtime:new Date(1000*H),type:W,linkname:V,uname:w,gname:Z,devmajor:z,devminor:L}}});var lQ0=O((jR1,mQ0)=>{var nQ0=r("util"),O71=xQ0(),Hq=lS(),pQ0=z6().Writable,cQ0=z6().PassThrough,dQ0=function(){},iQ0=function($){return $&=511,$&&512-$},F71=function($,I){var U=new Bz($,I);return U.end(),U},N71=function($,I){if(I.path)$.name=I.path;if(I.linkpath)$.linkname=I.linkpath;if(I.size)$.size=parseInt(I.size,10);return $.pax=I,$},Bz=function($,I){this._parent=$,this.offset=I,cQ0.call(this,{autoDestroy:!1})};nQ0.inherits(Bz,cQ0);Bz.prototype.destroy=function($){this._parent.destroy($)};var C5=function($){if(!(this instanceof C5))return new C5($);pQ0.call(this,$),$=$||{},this._offset=0,this._buffer=O71(),this._missing=0,this._partial=!1,this._onparse=dQ0,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var I=this,U=I._buffer,Y=function(){I._continue()},J=function(w){if(I._locked=!1,w)return I.destroy(w);if(!I._stream)Y()},Q=function(){I._stream=null;var w=iQ0(I._header.size);if(w)I._parse(w,K);else I._parse(512,V);if(!I._locked)Y()},K=function(){I._buffer.consume(iQ0(I._header.size)),I._parse(512,V),Y()},q=function(){var w=I._header.size;I._paxGlobal=Hq.decodePax(U.slice(0,w)),U.consume(w),Q()},G=function(){var w=I._header.size;if(I._pax=Hq.decodePax(U.slice(0,w)),I._paxGlobal)I._pax=Object.assign({},I._paxGlobal,I._pax);U.consume(w),Q()},H=function(){var w=I._header.size;this._gnuLongPath=Hq.decodeLongPath(U.slice(0,w),$.filenameEncoding),U.consume(w),Q()},W=function(){var w=I._header.size;this._gnuLongLinkPath=Hq.decodeLongPath(U.slice(0,w),$.filenameEncoding),U.consume(w),Q()},V=function(){var w=I._offset,Z;try{Z=I._header=Hq.decode(U.slice(0,512),$.filenameEncoding,$.allowUnknownFormat)}catch(z){I.emit("error",z)}if(U.consume(512),!Z){I._parse(512,V),Y();return}if(Z.type==="gnu-long-path"){I._parse(Z.size,H),Y();return}if(Z.type==="gnu-long-link-path"){I._parse(Z.size,W),Y();return}if(Z.type==="pax-global-header"){I._parse(Z.size,q),Y();return}if(Z.type==="pax-header"){I._parse(Z.size,G),Y();return}if(I._gnuLongPath)Z.name=I._gnuLongPath,I._gnuLongPath=null;if(I._gnuLongLinkPath)Z.linkname=I._gnuLongLinkPath,I._gnuLongLinkPath=null;if(I._pax)I._header=Z=N71(Z,I._pax),I._pax=null;if(I._locked=!0,!Z.size||Z.type==="directory"){I._parse(512,V),I.emit("entry",Z,F71(I,w),J);return}I._stream=new Bz(I,w),I.emit("entry",Z,I._stream,J),I._parse(Z.size,Q),Y()};this._onheader=V,this._parse(512,V)};nQ0.inherits(C5,pQ0);C5.prototype.destroy=function($){if(this._destroyed)return;if(this._destroyed=!0,$)this.emit("error",$);if(this.emit("close"),this._stream)this._stream.emit("close")};C5.prototype._parse=function($,I){if(this._destroyed)return;if(this._offset+=$,this._missing=$,I===this._onheader)this._partial=!1;this._onparse=I};C5.prototype._continue=function(){if(this._destroyed)return;var $=this._cb;if(this._cb=dQ0,this._overflow)this._write(this._overflow,void 0,$);else $()};C5.prototype._write=function($,I,U){if(this._destroyed)return;var Y=this._stream,J=this._buffer,Q=this._missing;if($.length)this._partial=!0;if($.length<Q){ Line truncated
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">`)}_writeRelationship($){if(!this.count)this._writeOpen();let I=`rId${++this.count}`;if($.TargetMode)this.stream.write(`<Relationship Id="${I}" Type="${$.Type}" Target="${f71.xmlEncode($.Target)}" TargetMode="${$.TargetMode}"/>`);else this.stream.write(`<Relationship Id="${I}" Type="${$.Type}" Target="${$.Target}"/>`);return I}_writeClose(){this.stream.write("</Relationships>")}}F20.exports=O20});var E20=O((bR1,T20)=>{var M20=$6(),A20=k9(),i71=G4(),n71=BC(),p71=RC();class P20{constructor($,I,U){this.id=U.id,this.count=0,this._worksheet=$,this._workbook=U.workbook,this._sheetRelsWriter=I}get commentsStream(){if(!this._commentsStream)this._commentsStream=this._workbook._openStream(`/xl/comments${this.id}.xml`);return this._commentsStream}get vmlStream(){if(!this._vmlStream)this._vmlStream=this._workbook._openStream(`xl/drawings/vmlDrawing${this.id}.vml`);return this._vmlStream}_addRelationships(){let $={Type:A20.Comments,Target:`../comments${this.id}.xml`};this._sheetRelsWriter.addRelationship($);let I={Type:A20.VmlDrawing,Target:`../drawings/vmlDrawing${this.id}.vml`};this.vmlRelId=this._sheetRelsWriter.addRelationship(I)}_addCommentRefs(){this._workbook.commentRefs.push({commentName:`comments${this.id}`,vmlDrawing:`vmlDrawing${this.id}`})}_writeOpen(){this.commentsStream.write('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><authors><author>Author</author></authors><commentList>'),this.vmlStream.write('<?xml version="1.0" encoding="UTF-8"?><xml xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel"><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1" /></o:shapelayout><v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe"><v:stroke joinstyle="miter" /><v:path gradientshapeok="t" o:connecttype="rect" /></v:shapetype>')}_writeComment($,I){let U=new n71,Y=new M20;U.render(Y,$),this.commentsStream.write(Y.xml);let J=new p71,Q=new M20;J.render(Q,$,I),this.vmlStream.write(Q.xml)}_writeClose(){this.commentsStream.write("</commentList></comments>"),this.vmlStream.write("</xml>")}addComments($){if($&&$.length){if(!this.startedData)this._worksheet.comments=[],this._writeOpen(),this._addRelationships(),this._addCommentRefs(),this.startedData=!0;$.forEach((I)=>{I.refAddress=i71.decodeAddress(I.ref)}),$.forEach((I)=>{this._writeComment(I,this.count),this.count+=1})}}commit(){if(this.count)this._writeClose(),this.commentsStream.end(),this.vmlStream.end()}}T20.exports=P20});var _20=O((iR1,j20)=>{var c71=Z4(),d71=k9(),tS=G4(),B20=cE(),v20=q5(),m71=QR(),R20=cV(),aS=mV(),l71=N20(),o71=E20(),r71=nE(),i4=new m71,sS=y9(),t71=$C(),a71=IC(),s71=UC(),e71=tR(),$31=oR(),I31=aR(),U31=YC(),Y31=JC(),J31=QC(),Q31=KC(),K31=qC(),q31=GC(),G31=ZC(),H31=WC(),W31=HC(),n4={dataValidations:new t71,sheetProperties:new a71,sheetFormatProperties:new s71,columns:new sS({tag:"cols",length:!1,childXform:new e71}),row:new $31,hyperlinks:new sS({tag:"hyperlinks",length:!1,childXform:new I31}),sheetViews:new sS({tag:"sheetViews",length:!1,childXform:new U31}),sheetProtection:new Y31,pageMargins:new J31,pageSeteup:new Q31,autoFilter:new K31,picture:new q31,conditionalFormattings:new G31,headerFooter:new H31,rowBreaks:new W31};class C20{constructor($){this.id=$.id,this.name=$.name||`Sheet${this.id}`,this.state=$.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges=[],this._merges.add=function(){},this._sheetRelsWriter=new l71($),this._sheetCommentsWriter=new o71(this,this._sheetRelsWriter,$),this._dimensions=new v20,this._rowZero=1,this.committed=!1,this.dataValidations=new r71,this._formulae={},this._siFormulae=0,this.conditionalFormatting=[],this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},$.properties),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},$.headerFooter),this.pageSetup=Object.assign({},{margins:{left:0.7,right:0.7,top:0.75,bottom:0.75,header:0.3,footer:0.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!!($.pageSetup&&($.pageSetup.fitToWidth||$.pageSetup.fitToHeight)&&!$.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},$.pageSetup),this.useSharedStrings=$.useSharedStrings||!1,this._workbook=$.workbook,this.hasComments=!1,this._views=$.views||[],this.autoFilter=$.autoFilter||null,this._media=[],this.sheetProtection=null,this._writeOpenWorksheet(),this.startedData=!1}get Line truncated
See http://goo.gl/MqrFmX
`)},Lg=Dg.getNativePromise();if(Dg.isNode&&typeof MutationObserver>"u")Og=global.setImmediate,Fg=process.nextTick,k3=Dg.isRecentNode?function($){Og.call(global,$)}:function($){Fg.call(process,$)};else if(typeof Lg==="function"&&typeof Lg.resolve==="function")Ng=Lg.resolve(),k3=function($){Ng.then($)};else if(typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)))k3=function(){var $=document.createElement("div"),I={attributes:!0},U=!1,Y=document.createElement("div"),J=new MutationObserver(function(){$.classList.toggle("foo"),U=!1});J.observe(Y,I);var Q=function(){if(U)return;U=!0,Y.classList.toggle("foo")};return function(q){var G=new MutationObserver(function(){G.disconnect(),q()});G.observe($,I),Q()}}();else if(typeof setImmediate<"u")k3=function($){setImmediate($)};else if(typeof setTimeout<"u")k3=function($){setTimeout($,0)};else k3=II1;var Og,Fg,Ng;WK0.exports=k3});var ZK0=O((eR1,wK0)=>{function UI1($,I,U,Y,J){for(var Q=0;Q<J;++Q)U[Q+Y]=$[Q+I],$[Q+I]=void 0}function Y7($){this._capacity=$,this._length=0,this._front=0}Y7.prototype._willBeOverCapacity=function($){return this._capacity<$};Y7.prototype._pushOne=function($){var I=this.length();this._checkCapacity(I+1);var U=this._front+I&this._capacity-1;this[U]=$,this._length=I+1};Y7.prototype.push=function($,I,U){var Y=this.length()+3;if(this._willBeOverCapacity(Y)){this._pushOne($),this._pushOne(I),this._pushOne(U);return}var J=this._front+Y-3;this._checkCapacity(Y);var Q=this._capacity-1;this[J+0&Q]=$,this[J+1&Q]=I,this[J+2&Q]=U,this._length=Y};Y7.prototype.shift=function(){var $=this._front,I=this[$];return this[$]=void 0,this._front=$+1&this._capacity-1,this._length--,I};Y7.prototype.length=function(){return this._length};Y7.prototype._checkCapacity=function($){if(this._capacity<$)this._resizeTo(this._capacity<<1)};Y7.prototype._resizeTo=function($){var I=this._capacity;this._capacity=$;var U=this._front,Y=this._length,J=U+Y&I-1;UI1(this,0,this,I,J)};wK0.exports=Y7});var NK0=O(($C1,Mg)=>{var OK0;try{throw Error()}catch($){OK0=$}var YI1=VK0(),XK0=ZK0(),FK0=b1();function p4(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new XK0(16),this._normalQueue=new XK0(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var $=this;this.drainQueues=function(){$._drainQueues()},this._schedule=YI1}p4.prototype.setScheduler=function($){var I=this._schedule;return this._schedule=$,this._customScheduler=!0,I};p4.prototype.hasCustomScheduler=function(){return this._customScheduler};p4.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};p4.prototype.disableTrampolineIfNecessary=function(){if(FK0.hasDevTools)this._trampolineEnabled=!1};p4.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};p4.prototype.fatalError=function($,I){if(I)process.stderr.write("Fatal "+($ instanceof Error?$.stack:$)+`
`)},Lg=Dg.getNativePromise();if(Dg.isNode&&typeof MutationObserver>"u")Og=global.setImmediate,Fg=process.nextTick,u3=Dg.isRecentNode?function($){Og.call(global,$)}:function($){Fg.call(process,$)};else if(typeof Lg==="function"&&typeof Lg.resolve==="function")Ng=Lg.resolve(),u3=function($){Ng.then($)};else if(typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)))u3=function(){var $=document.createElement("div"),I={attributes:!0},U=!1,Y=document.createElement("div"),J=new MutationObserver(function(){$.classList.toggle("foo"),U=!1});J.observe(Y,I);var Q=function(){if(U)return;U=!0,Y.classList.toggle("foo")};return function(q){var G=new MutationObserver(function(){G.disconnect(),q()});G.observe($,I),Q()}}();else if(typeof setImmediate<"u")u3=function($){setImmediate($)};else if(typeof setTimeout<"u")u3=function($){setTimeout($,0)};else u3=II1;var Og,Fg,Ng;WK0.exports=u3});var ZK0=O((eR1,wK0)=>{function UI1($,I,U,Y,J){for(var Q=0;Q<J;++Q)U[Q+Y]=$[Q+I],$[Q+I]=void 0}function J7($){this._capacity=$,this._length=0,this._front=0}J7.prototype._willBeOverCapacity=function($){return this._capacity<$};J7.prototype._pushOne=function($){var I=this.length();this._checkCapacity(I+1);var U=this._front+I&this._capacity-1;this[U]=$,this._length=I+1};J7.prototype.push=function($,I,U){var Y=this.length()+3;if(this._willBeOverCapacity(Y)){this._pushOne($),this._pushOne(I),this._pushOne(U);return}var J=this._front+Y-3;this._checkCapacity(Y);var Q=this._capacity-1;this[J+0&Q]=$,this[J+1&Q]=I,this[J+2&Q]=U,this._length=Y};J7.prototype.shift=function(){var $=this._front,I=this[$];return this[$]=void 0,this._front=$+1&this._capacity-1,this._length--,I};J7.prototype.length=function(){return this._length};J7.prototype._checkCapacity=function($){if(this._capacity<$)this._resizeTo(this._capacity<<1)};J7.prototype._resizeTo=function($){var I=this._capacity;this._capacity=$;var U=this._front,Y=this._length,J=U+Y&I-1;UI1(this,0,this,I,J)};wK0.exports=J7});var NK0=O(($C1,Mg)=>{var OK0;try{throw Error()}catch($){OK0=$}var YI1=VK0(),XK0=ZK0(),FK0=b1();function p4(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new XK0(16),this._normalQueue=new XK0(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var $=this;this.drainQueues=function(){$._drainQueues()},this._schedule=YI1}p4.prototype.setScheduler=function($){var I=this._schedule;return this._schedule=$,this._customScheduler=!0,I};p4.prototype.hasCustomScheduler=function(){return this._customScheduler};p4.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};p4.prototype.disableTrampolineIfNecessary=function(){if(FK0.hasDevTools)this._trampolineEnabled=!1};p4.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};p4.prototype.fatalError=function($,I){if(I)process.stderr.write("Fatal "+($ instanceof Error?$.stack:$)+`
`),process.exit(2);else this.throwLater($)};p4.prototype.throwLater=function($,I){if(arguments.length===1)I=$,$=function(){throw I};if(typeof setTimeout<"u")setTimeout(function(){$(I)},0);else try{this._schedule(function(){$(I)})}catch(U){throw Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}};function zK0($,I,U){this._lateQueue.push($,I,U),this._queueTick()}function LK0($,I,U){this._normalQueue.push($,I,U),this._queueTick()}function DK0($){this._normalQueue._pushOne($),this._queueTick()}if(!FK0.hasDevTools)p4.prototype.invokeLater=zK0,p4.prototype.invoke=LK0,p4.prototype.settlePromises=DK0;else p4.prototype.invokeLater=function($,I,U){if(this._trampolineEnabled)zK0.call(this,$,I,U);else this._schedule(function(){setTimeout(function(){$.call(I,U)},100)})},p4.prototype.invoke=function($,I,U){if(this._trampolineEnabled)LK0.call(this,$,I,U);else this._schedule(function(){$.call(I,U)})},p4.prototype.settlePromises=function($){if(this._trampolineEnabled)DK0.call(this,$);else this._schedule(function(){$._settlePromises()})};p4.prototype._drainQueue=function($){while($.length()>0){var I=$.shift();if(typeof I!=="function"){I._settlePromises();continue}var U=$.shift(),Y=$.shift();I.call(U,Y)}};p4.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};p4.prototype._queueTick=function(){if(!this._isTickUsed)this._isTickUsed=!0,this._schedule(this.drainQueues)};p4.prototype._reset=function(){this._isTickUsed=!1};Mg.exports=p4;Mg.exports.firstLineError=OK0});var _5=O((IC1,PK0)=>{var Tg=x3(),JI1=Tg.freeze,MK0=b1(),AK0=MK0.inherits,rY=MK0.notEnumerableProp;function tY($,I){function U(Y){if(!(this instanceof U))return new U(Y);if(rY(this,"message",typeof Y==="string"?Y:I),rY(this,"name",$),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else Error.call(this)}return AK0(U,Error),U}var Ag,Pg,QI1=tY("Warning","warning"),KI1=tY("CancellationError","cancellation error"),qI1=tY("TimeoutError","timeout error"),zq=tY("AggregateError","aggregate error");try{Ag=TypeError,Pg=RangeError}catch($){Ag=tY("TypeError","type error"),Pg=tY("RangeError","range error")}var hz="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" ");for(u3=0;u3<hz.length;++u3)if(typeof Array.prototype[hz[u3]]==="function")zq.prototype[hz[u3]]=Array.prototype[hz[u3]];var u3;Tg.defineProperty(zq.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0});zq.prototype.isOperational=!0;var xz=0;zq.prototype.toString=function(){var $=Array(xz*4+1).join(" "),I=`
`)}};function zK0($,I,U){this._lateQueue.push($,I,U),this._queueTick()}function LK0($,I,U){this._normalQueue.push($,I,U),this._queueTick()}function DK0($){this._normalQueue._pushOne($),this._queueTick()}if(!FK0.hasDevTools)p4.prototype.invokeLater=zK0,p4.prototype.invoke=LK0,p4.prototype.settlePromises=DK0;else p4.prototype.invokeLater=function($,I,U){if(this._trampolineEnabled)zK0.call(this,$,I,U);else this._schedule(function(){setTimeout(function(){$.call(I,U)},100)})},p4.prototype.invoke=function($,I,U){if(this._trampolineEnabled)LK0.call(this,$,I,U);else this._schedule(function(){$.call(I,U)})},p4.prototype.settlePromises=function($){if(this._trampolineEnabled)DK0.call(this,$);else this._schedule(function(){$._settlePromises()})};p4.prototype._drainQueue=function($){while($.length()>0){var I=$.shift();if(typeof I!=="function"){I._settlePromises();continue}var U=$.shift(),Y=$.shift();I.call(U,Y)}};p4.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};p4.prototype._queueTick=function(){if(!this._isTickUsed)this._isTickUsed=!0,this._schedule(this.drainQueues)};p4.prototype._reset=function(){this._isTickUsed=!1};Mg.exports=p4;Mg.exports.firstLineError=OK0});var _5=O((IC1,PK0)=>{var Tg=k3(),JI1=Tg.freeze,MK0=b1(),AK0=MK0.inherits,tY=MK0.notEnumerableProp;function aY($,I){function U(Y){if(!(this instanceof U))return new U(Y);if(tY(this,"message",typeof Y==="string"?Y:I),tY(this,"name",$),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else Error.call(this)}return AK0(U,Error),U}var Ag,Pg,QI1=aY("Warning","warning"),KI1=aY("CancellationError","cancellation error"),qI1=aY("TimeoutError","timeout error"),zq=aY("AggregateError","aggregate error");try{Ag=TypeError,Pg=RangeError}catch($){Ag=aY("TypeError","type error"),Pg=aY("RangeError","range error")}var hz="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" ");for(f3=0;f3<hz.length;++f3)if(typeof Array.prototype[hz[f3]]==="function")zq.prototype[hz[f3]]=Array.prototype[hz[f3]];var f3;Tg.defineProperty(zq.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0});zq.prototype.isOperational=!0;var xz=0;zq.prototype.toString=function(){var $=Array(xz*4+1).join(" "),I=`
`+$+`AggregateError of:
`;xz++,$=Array(xz*4+1).join(" ");for(var U=0;U<this.length;++U){var Y=this[U]===this?"[Circular AggregateError]":this[U]+"",J=Y.split(`
`);for(var Q=0;Q<J.length;++Q)J[Q]=$+J[Q];Y=J.join(`
`),I+=Y+`
`}return xz--,I};function Xq($){if(!(this instanceof Xq))return new Xq($);if(rY(this,"name","OperationalError"),rY(this,"message",$),this.cause=$,this.isOperational=!0,$ instanceof Error)rY(this,"message",$.message),rY(this,"stack",$.stack);else if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}AK0(Xq,Error);var f3=Error.__BluebirdErrorTypes__;if(!f3)f3=JI1({CancellationError:KI1,TimeoutError:qI1,OperationalError:Xq,RejectionError:Xq,AggregateError:zq}),Tg.defineProperty(Error,"__BluebirdErrorTypes__",{value:f3,writable:!1,enumerable:!1,configurable:!1});PK0.exports={Error,TypeError:Ag,RangeError:Pg,CancellationError:f3.CancellationError,OperationalError:f3.OperationalError,TimeoutError:f3.TimeoutError,AggregateError:f3.AggregateError,Warning:QI1}});var EK0=O((UC1,TK0)=>{TK0.exports=function($,I){var U=b1(),Y=U.errorObj,J=U.isObject;function Q(V,w){if(J(V)){if(V instanceof $)return V;var Z=q(V);if(Z===Y){if(w)w._pushContext();var z=$.reject(Z.e);if(w)w._popContext();return z}else if(typeof Z==="function"){if(H(V)){var z=new $(I);return V._then(z._fulfill,z._reject,void 0,z,null),z}return W(V,Z,w)}}return V}function K(V){return V.then}function q(V){try{return K(V)}catch(w){return Y.e=w,Y}}var G={}.hasOwnProperty;function H(V){try{return G.call(V,"_promise0")}catch(w){return!1}}function W(V,w,Z){var z=new $(I),L=z;if(Z)Z._pushContext();if(z._captureStackTrace(),Z)Z._popContext();var D=!0,F=U.tryCatch(w).call(V,E,T);if(D=!1,z&&F===Y)z._rejectCallback(F.e,!0,!0),z=null;function E(A){if(!z)return;z._resolveCallback(A),z=null}function T(A){if(!z)return;z._rejectCallback(A,D,!0),z=null}return L}return Q}});var vK0=O((YC1,BK0)=>{BK0.exports=function($,I,U,Y,J){var Q=b1(),K=Q.isArray;function q(H){switch(H){case-2:return[];case-3:return{}}}function G(H){var W=this._promise=new $(I);if(H instanceof $)W._propagateFrom(H,3);W._setOnCancel(this),this._values=H,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return Q.inherits(G,J),G.prototype.length=function(){return this._length},G.prototype.promise=function(){return this._promise},G.prototype._init=function H(W,V){var w=U(this._values,this._promise);if(w instanceof $){w=w._target();var Z=w._bitField;if(this._values=w,(Z&50397184)===0)return this._promise._setAsyncGuaranteed(),w._then(H,this._reject,void 0,this,V);else if((Z&33554432)!==0)w=w._value();else if((Z&16777216)!==0)return this._reject(w._reason());else return this._cancel()}if(w=Q.asArray(w),w===null){var z=Y("expecting an array or an iterable object but got "+Q.classString(w)).reason();this._promise._rejectCallback(z,!1);return}if(w.length===0){if(V===-5)this._resolveEmptyArray();else this._resolve(q(V));return}this._iterate(w)},G.prototype._iterate=function(H){var W=this.getActualLength(H.length);this._length=W,this._values=this.shouldCopyValues()?Array(W):this._values;var V=this._promise,w=!1,Z=null;for(var z=0;z<W;++z){var L=U(H[z],V);if(L instanceof $)L=L._target(),Z=L._bitField;else Z=null;if(w){if(Z!==null)L.suppressUnhandledRejections()}else if(Z!==null)if((Z&50397184)===0)L._proxy(this,z),this._values[z]=L;else if((Z&33554432)!==0)w=this._promiseFulfilled(L._value(),z);else if((Z&16777216)!==0)w=this._promiseRejected(L._reason(),z);else w=this._promiseCancelled(z);else w=this._promiseFulfilled(L,z)}if(!w)V._setAsyncGuaranteed()},G.prototype._isResolved=function(){return this._values===null},G.prototype._resolve=function(H){this._values=null,this._promise._fulfill(H)},G.prototype._cancel=function(){if(this._isResolved()||!this._promise._isCancellable())return;this._values=null,this._promise._cancel()},G.prototype._reject=function(H){this._values=null,this._promise._rejectCallback(H,!1)},G.prototype._promiseFulfilled=function(H,W){this._values[W]=H;var V=++this._totalResolved;if(V>=this._length)return this._resolve(this._values),!0;return!1},G.prototype._promiseCancelled=function(){return this._cancel(),!0},G.prototype._promiseRejected=function(H){return this._totalResolved++,this._reject(H),!0},G.prototype._resultCancelled=function(){if(this._isResolved())return;var H=this._values;if(this._cancel(),H instanceof $)H.cancel();else for(var W=0;W<H.length;++W)if(H[W]instanceof $)H[W].cancel()},G.prototype.shouldCopyValues=function(){return!0},G.prototype.getActualLength=function(H){return H},G}});var CK0=O((JC1,RK0)=>{RK0.exports=function($){var I=!1,U=[];$.prototype._promiseCreated=function(){},$.prototype._pushContext=function(){},$.prototype._popContext=function(){return null},$._peekContext=$.prototype._peekContext=function(){};function Y(){this._trace=new Y.CapturedTrace(Q())}Y.prototype._pushContext=function(){if(this._trace!==void 0)this._trace._promiseCreated=null,U.push(this._trace)},Y.prototype._popContext=function(){if(this._trace!==void 0){var K=U.pop(),q=K._promiseCreated;return K._promiseCreated=null,q}return null};function J(){if(I)return new Y}function Q(){var K=U.length-1;if(K>=0)return U[K];return}return Y.CapturedTrace=null,Y.create=J,Y.deactivateLong Line truncated
`}return xz--,I};function Xq($){if(!(this instanceof Xq))return new Xq($);if(tY(this,"name","OperationalError"),tY(this,"message",$),this.cause=$,this.isOperational=!0,$ instanceof Error)tY(this,"message",$.message),tY(this,"stack",$.stack);else if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}AK0(Xq,Error);var b3=Error.__BluebirdErrorTypes__;if(!b3)b3=JI1({CancellationError:KI1,TimeoutError:qI1,OperationalError:Xq,RejectionError:Xq,AggregateError:zq}),Tg.defineProperty(Error,"__BluebirdErrorTypes__",{value:b3,writable:!1,enumerable:!1,configurable:!1});PK0.exports={Error,TypeError:Ag,RangeError:Pg,CancellationError:b3.CancellationError,OperationalError:b3.OperationalError,TimeoutError:b3.TimeoutError,AggregateError:b3.AggregateError,Warning:QI1}});var EK0=O((UC1,TK0)=>{TK0.exports=function($,I){var U=b1(),Y=U.errorObj,J=U.isObject;function Q(V,w){if(J(V)){if(V instanceof $)return V;var Z=q(V);if(Z===Y){if(w)w._pushContext();var z=$.reject(Z.e);if(w)w._popContext();return z}else if(typeof Z==="function"){if(H(V)){var z=new $(I);return V._then(z._fulfill,z._reject,void 0,z,null),z}return W(V,Z,w)}}return V}function K(V){return V.then}function q(V){try{return K(V)}catch(w){return Y.e=w,Y}}var G={}.hasOwnProperty;function H(V){try{return G.call(V,"_promise0")}catch(w){return!1}}function W(V,w,Z){var z=new $(I),L=z;if(Z)Z._pushContext();if(z._captureStackTrace(),Z)Z._popContext();var D=!0,F=U.tryCatch(w).call(V,E,T);if(D=!1,z&&F===Y)z._rejectCallback(F.e,!0,!0),z=null;function E(A){if(!z)return;z._resolveCallback(A),z=null}function T(A){if(!z)return;z._rejectCallback(A,D,!0),z=null}return L}return Q}});var vK0=O((YC1,BK0)=>{BK0.exports=function($,I,U,Y,J){var Q=b1(),K=Q.isArray;function q(H){switch(H){case-2:return[];case-3:return{}}}function G(H){var W=this._promise=new $(I);if(H instanceof $)W._propagateFrom(H,3);W._setOnCancel(this),this._values=H,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return Q.inherits(G,J),G.prototype.length=function(){return this._length},G.prototype.promise=function(){return this._promise},G.prototype._init=function H(W,V){var w=U(this._values,this._promise);if(w instanceof $){w=w._target();var Z=w._bitField;if(this._values=w,(Z&50397184)===0)return this._promise._setAsyncGuaranteed(),w._then(H,this._reject,void 0,this,V);else if((Z&33554432)!==0)w=w._value();else if((Z&16777216)!==0)return this._reject(w._reason());else return this._cancel()}if(w=Q.asArray(w),w===null){var z=Y("expecting an array or an iterable object but got "+Q.classString(w)).reason();this._promise._rejectCallback(z,!1);return}if(w.length===0){if(V===-5)this._resolveEmptyArray();else this._resolve(q(V));return}this._iterate(w)},G.prototype._iterate=function(H){var W=this.getActualLength(H.length);this._length=W,this._values=this.shouldCopyValues()?Array(W):this._values;var V=this._promise,w=!1,Z=null;for(var z=0;z<W;++z){var L=U(H[z],V);if(L instanceof $)L=L._target(),Z=L._bitField;else Z=null;if(w){if(Z!==null)L.suppressUnhandledRejections()}else if(Z!==null)if((Z&50397184)===0)L._proxy(this,z),this._values[z]=L;else if((Z&33554432)!==0)w=this._promiseFulfilled(L._value(),z);else if((Z&16777216)!==0)w=this._promiseRejected(L._reason(),z);else w=this._promiseCancelled(z);else w=this._promiseFulfilled(L,z)}if(!w)V._setAsyncGuaranteed()},G.prototype._isResolved=function(){return this._values===null},G.prototype._resolve=function(H){this._values=null,this._promise._fulfill(H)},G.prototype._cancel=function(){if(this._isResolved()||!this._promise._isCancellable())return;this._values=null,this._promise._cancel()},G.prototype._reject=function(H){this._values=null,this._promise._rejectCallback(H,!1)},G.prototype._promiseFulfilled=function(H,W){this._values[W]=H;var V=++this._totalResolved;if(V>=this._length)return this._resolve(this._values),!0;return!1},G.prototype._promiseCancelled=function(){return this._cancel(),!0},G.prototype._promiseRejected=function(H){return this._totalResolved++,this._reject(H),!0},G.prototype._resultCancelled=function(){if(this._isResolved())return;var H=this._values;if(this._cancel(),H instanceof $)H.cancel();else for(var W=0;W<H.length;++W)if(H[W]instanceof $)H[W].cancel()},G.prototype.shouldCopyValues=function(){return!0},G.prototype.getActualLength=function(H){return H},G}});var CK0=O((JC1,RK0)=>{RK0.exports=function($){var I=!1,U=[];$.prototype._promiseCreated=function(){},$.prototype._pushContext=function(){},$.prototype._popContext=function(){return null},$._peekContext=$.prototype._peekContext=function(){};function Y(){this._trace=new Y.CapturedTrace(Q())}Y.prototype._pushContext=function(){if(this._trace!==void 0)this._trace._promiseCreated=null,U.push(this._trace)},Y.prototype._popContext=function(){if(this._trace!==void 0){var K=U.pop(),q=K._promiseCreated;return K._promiseCreated=null,q}return null};function J(){if(I)return new Y}function Q(){var K=U.length-1;if(K>=0)return U[K];return}return Y.CapturedTrace=null,Y.create=J,Y.deactivateLong Line truncated
See http://goo.gl/MqrFmX
`);if(!E0.longStackTraces&&u$()){var a=$.prototype._captureStackTrace,N=$.prototype._attachExtraTrace;E0.longStackTraces=!0,A=function(){if(Y.haveItemsQueued()&&!E0.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created
@@ -66,12 +66,12 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof y4))r
`);return a+`
`+N.join(`
`)}function H1(a){for(var N=0;N<a.length;++N)if(a[N].length===0||N+1<a.length&&a[N][0]===a[N+1][0])a.splice(N,1),N--}function F0(a){var N=a[0];for(var M=1;M<a.length;++M){var j=a[M],x=N.length-1,s=N[x],m=-1;for(var e=j.length-1;e>=0;--e)if(j[e]===s){m=e;break}for(var e=m;e>=0;--e){var J0=j[e];if(N[x]===J0)N.pop(),x--;else break}N=j}}function g0(a){var N=[];for(var M=0;M<a.length;++M){var j=a[M],x=j===" (No stack trace)"||w.test(j),s=x&&w$(j);if(x&&!s){if(z&&j.charAt(0)!==" ")j=" "+j;N.push(j)}}return N}function m0(a){var N=a.stack.replace(/\s+$/g,"").split(`
`);for(var M=0;M<N.length;++M){var j=N[M];if(j===" (No stack trace)"||w.test(j))break}if(M>0&&a.name!="SyntaxError")N=N.slice(M);return N}function K4(a){var N=a.stack,M=a.toString();return N=typeof N==="string"&&N.length>0?m0(a):[" (No stack trace)"],{message:M,stack:a.name=="SyntaxError"?N:g0(N)}}function j4(a,N,M){if(typeof console<"u"){var j;if(Q.isObject(a)){var x=a.stack;j=N+Z(x,a)}else j=N+String(a);if(typeof L==="function")L(j,M);else if(typeof console.log==="function"||typeof console.log==="object")console.log(j)}}function V$(a,N,M,j){var x=!1;try{if(typeof N==="function")if(x=!0,a==="rejectionHandled")N(j);else N(M,j)}catch(s){Y.throwLater(s)}if(a==="unhandledRejection"){if(!C(a,M,j)&&!x)j4(M,"Unhandled rejection ")}else C(a,j)}function k$(a){var N;if(typeof a==="function")N="[function "+(a.name||"anonymous")+"]";else{N=a&&typeof a.toString==="function"?a.toString():Q.toString(a);var M=/\[object [a-zA-Z0-9$_]+\]/;if(M.test(N))try{var j=JSON.stringify(a);N=j}catch(x){}if(N.length===0)N="(empty array)"}return"(<"+m8(N)+">, no stack trace)"}function m8(a){var N=41;if(a.length<N)return a;return a.substr(0,N-3)+"..."}function u$(){return typeof d5==="function"}var w$=function(){return!1},l8=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function a6(a){var N=a.match(l8);if(N)return{fileName:N[1],line:parseInt(N[2],10)}}function D7(a,N){if(!u$())return;var M=a.stack.split(`
`);for(var M=0;M<N.length;++M){var j=N[M];if(j===" (No stack trace)"||w.test(j))break}if(M>0&&a.name!="SyntaxError")N=N.slice(M);return N}function K4(a){var N=a.stack,M=a.toString();return N=typeof N==="string"&&N.length>0?m0(a):[" (No stack trace)"],{message:M,stack:a.name=="SyntaxError"?N:g0(N)}}function j4(a,N,M){if(typeof console<"u"){var j;if(Q.isObject(a)){var x=a.stack;j=N+Z(x,a)}else j=N+String(a);if(typeof L==="function")L(j,M);else if(typeof console.log==="function"||typeof console.log==="object")console.log(j)}}function V$(a,N,M,j){var x=!1;try{if(typeof N==="function")if(x=!0,a==="rejectionHandled")N(j);else N(M,j)}catch(s){Y.throwLater(s)}if(a==="unhandledRejection"){if(!C(a,M,j)&&!x)j4(M,"Unhandled rejection ")}else C(a,j)}function k$(a){var N;if(typeof a==="function")N="[function "+(a.name||"anonymous")+"]";else{N=a&&typeof a.toString==="function"?a.toString():Q.toString(a);var M=/\[object [a-zA-Z0-9$_]+\]/;if(M.test(N))try{var j=JSON.stringify(a);N=j}catch(x){}if(N.length===0)N="(empty array)"}return"(<"+m8(N)+">, no stack trace)"}function m8(a){var N=41;if(a.length<N)return a;return a.substr(0,N-3)+"..."}function u$(){return typeof m5==="function"}var w$=function(){return!1},l8=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function a6(a){var N=a.match(l8);if(N)return{fileName:N[1],line:parseInt(N[2],10)}}function O7(a,N){if(!u$())return;var M=a.stack.split(`
`),j=N.stack.split(`
`),x=-1,s=-1,m,e;for(var J0=0;J0<M.length;++J0){var H0=a6(M[J0]);if(H0){m=H0.fileName,x=H0.line;break}}for(var J0=0;J0<j.length;++J0){var H0=a6(j[J0]);if(H0){e=H0.fileName,s=H0.line;break}}if(x<0||s<0||!m||!e||m!==e||x>=s)return;w$=function(C0){if(H.test(C0))return!0;var b0=a6(C0);if(b0){if(b0.fileName===m&&(x<=b0.line&&b0.line<=s))return!0}return!1}}function s6(a){this._parent=a,this._promisesCreated=0;var N=this._length=1+(a===void 0?0:a._length);if(d5(this,s6),N>32)this.uncycle()}Q.inherits(s6,Error),I.CapturedTrace=s6,s6.prototype.uncycle=function(){var a=this._length;if(a<2)return;var N=[],M={};for(var j=0,x=this;x!==void 0;++j)N.push(x),x=x._parent;a=this._length=j;for(var j=a-1;j>=0;--j){var s=N[j].stack;if(M[s]===void 0)M[s]=j}for(var j=0;j<a;++j){var m=N[j].stack,e=M[m];if(e!==void 0&&e!==j){if(e>0)N[e-1]._parent=void 0,N[e-1]._length=1;N[j]._parent=void 0,N[j]._length=1;var J0=j>0?N[j-1]:this;if(e<a-1)J0._parent=N[e+1],J0._parent.uncycle(),J0._length=J0._parent._length+1;else J0._parent=void 0,J0._length=1;var H0=J0._length+1;for(var C0=j-2;C0>=0;--C0)N[C0]._length=H0,H0++;return}}},s6.prototype.attachExtraTrace=function(a){if(a.__stackCleaned__)return;this.uncycle();var N=K4(a),M=N.message,j=[N.stack],x=this;while(x!==void 0)j.push(g0(x.stack.split(`
`))),x=x._parent;F0(j),H1(j),Q.notEnumerableProp(a,"stack",f0(M,j)),Q.notEnumerableProp(a,"__stackCleaned__",!0)};var d5=function(){var N=/^\s*at\s*/,M=function(m,e){if(typeof m==="string")return m;if(e.name!==void 0&&e.message!==void 0)return e.toString();return k$(e)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6,w=N,Z=M;var j=Error.captureStackTrace;return w$=function(m){return H.test(m)},function(m,e){Error.stackTraceLimit+=6,j(m,e),Error.stackTraceLimit-=6}}var x=Error();if(typeof x.stack==="string"&&x.stack.split(`
`),x=-1,s=-1,m,e;for(var J0=0;J0<M.length;++J0){var H0=a6(M[J0]);if(H0){m=H0.fileName,x=H0.line;break}}for(var J0=0;J0<j.length;++J0){var H0=a6(j[J0]);if(H0){e=H0.fileName,s=H0.line;break}}if(x<0||s<0||!m||!e||m!==e||x>=s)return;w$=function(C0){if(H.test(C0))return!0;var b0=a6(C0);if(b0){if(b0.fileName===m&&(x<=b0.line&&b0.line<=s))return!0}return!1}}function s6(a){this._parent=a,this._promisesCreated=0;var N=this._length=1+(a===void 0?0:a._length);if(m5(this,s6),N>32)this.uncycle()}Q.inherits(s6,Error),I.CapturedTrace=s6,s6.prototype.uncycle=function(){var a=this._length;if(a<2)return;var N=[],M={};for(var j=0,x=this;x!==void 0;++j)N.push(x),x=x._parent;a=this._length=j;for(var j=a-1;j>=0;--j){var s=N[j].stack;if(M[s]===void 0)M[s]=j}for(var j=0;j<a;++j){var m=N[j].stack,e=M[m];if(e!==void 0&&e!==j){if(e>0)N[e-1]._parent=void 0,N[e-1]._length=1;N[j]._parent=void 0,N[j]._length=1;var J0=j>0?N[j-1]:this;if(e<a-1)J0._parent=N[e+1],J0._parent.uncycle(),J0._length=J0._parent._length+1;else J0._parent=void 0,J0._length=1;var H0=J0._length+1;for(var C0=j-2;C0>=0;--C0)N[C0]._length=H0,H0++;return}}},s6.prototype.attachExtraTrace=function(a){if(a.__stackCleaned__)return;this.uncycle();var N=K4(a),M=N.message,j=[N.stack],x=this;while(x!==void 0)j.push(g0(x.stack.split(`
`))),x=x._parent;F0(j),H1(j),Q.notEnumerableProp(a,"stack",f0(M,j)),Q.notEnumerableProp(a,"__stackCleaned__",!0)};var m5=function(){var N=/^\s*at\s*/,M=function(m,e){if(typeof m==="string")return m;if(e.name!==void 0&&e.message!==void 0)return e.toString();return k$(e)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6,w=N,Z=M;var j=Error.captureStackTrace;return w$=function(m){return H.test(m)},function(m,e){Error.stackTraceLimit+=6,j(m,e),Error.stackTraceLimit-=6}}var x=Error();if(typeof x.stack==="string"&&x.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return w=/@/,Z=M,z=!0,function(e){e.stack=Error().stack};var s;try{throw Error()}catch(m){s="stack"in m}if(!("stack"in x)&&s&&typeof Error.stackTraceLimit==="number")return w=N,Z=M,function(e){Error.stackTraceLimit+=6;try{throw Error()}catch(J0){e.stack=J0.stack}Error.stackTraceLimit-=6};return Z=function(m,e){if(typeof m==="string")return m;if((typeof e==="object"||typeof e==="function")&&e.name!==void 0&&e.message!==void 0)return e.toString();return k$(e)},null}([]);if(typeof console<"u"&&typeof console.warn<"u"){if(L=function(a){console.warn(a)},Q.isNode&&process.stderr.isTTY)L=function(a,N){var M=N?"\x1B[33m":"\x1B[31m";console.warn(M+a+`\x1B[0m
`)};else if(!Q.isNode&&typeof Error().stack==="string")L=function(a,N){console.warn("%c"+a,N?"color: darkorange":"color: red")}}var E0={warnings:F,longStackTraces:!1,cancellation:!1,monitoring:!1};if(E)$.longStackTraces();return{longStackTraces:function(){return E0.longStackTraces},warnings:function(){return E0.warnings},cancellation:function(){return E0.cancellation},monitoring:function(){return E0.monitoring},propagateFromFunction:function(){return d},boundValueFunction:function(){return t},checkForgottenReturns:A0,setBounds:D7,warn:L1,deprecated:v0,CapturedTrace:s6,fireDomEvent:R,fireGlobalEvent:u}}});var gK0=O((KC1,SK0)=>{SK0.exports=function($,I){var U=b1(),Y=$.CancellationError,J=U.errorObj;function Q(V,w,Z){this.promise=V,this.type=w,this.handler=Z,this.called=!1,this.cancelPromise=null}Q.prototype.isFinallyHandler=function(){return this.type===0};function K(V){this.finallyHandler=V}K.prototype._resultCancelled=function(){q(this.finallyHandler)};function q(V,w){if(V.cancelPromise!=null){if(arguments.length>1)V.cancelPromise._reject(w);else V.cancelPromise._cancel();return V.cancelPromise=null,!0}return!1}function G(){return W.call(this,this.promise._target()._settledValue())}function H(V){if(q(this,V))return;return J.e=V,J}function W(V){var w=this.promise,Z=this.handler;if(!this.called){this.called=!0;var z=this.isFinallyHandler()?Z.call(w._boundValue()):Z.call(w._boundValue(),V);if(z!==void 0){w._setReturnedNonUndefined();var L=I(z,w);if(L instanceof $){if(this.cancelPromise!=null){if(L._isCancelled()){var D=new Y("late cancellation observer");return w._attachExtraTrace(D),J.e=D,J}else if(L.isPending())L._attachCancellationCallback(new K(this))}return L._then(G,H,void 0,this,void 0)}}}if(w.isRejected())return q(this),J.e=V,J;else return q(this),V}return $.prototype._passThrough=function(V,w,Z,z){if(typeof V!=="function")return this.then();return this._then(Z,z,void 0,new Q(this,w,V),void 0)},$.prototype.lastly=$.prototype.finally=function(V){return this._passThrough(V,0,W,W)},$.prototype.tap=function(V){return this._passThrough(V,1,W)},Q}});var hK0=O((qC1,yK0)=>{yK0.exports=function($){var I=b1(),U=x3().keys,Y=I.tryCatch,J=I.errorObj;function Q(K,q,G){return function(H){var W=G._boundValue();$:for(var V=0;V<K.length;++V){var w=K[V];if(w===Error||w!=null&&w.prototype instanceof Error){if(H instanceof w)return Y(q).call(W,H)}else if(typeof w==="function"){var Z=Y(w).call(W,H);if(Z===J)return Z;else if(Z)return Y(q).call(W,H)}else if(I.isObject(H)){var z=U(w);for(var L=0;L<z.length;++L){var D=z[L];if(w[D]!=H[D])continue $}return Y(q).call(W,H)}}return $}}return Q}});var Eg=O((GC1,uK0)=>{var xK0=b1(),GI1=xK0.maybeWrapAsError,HI1=_5(),WI1=HI1.OperationalError,kK0=x3();function VI1($){return $ instanceof Error&&kK0.getPrototypeOf($)===Error.prototype}var wI1=/^(?:name|message|stack|cause)$/;function ZI1($){var I;if(VI1($)){I=new WI1($),I.name=$.name,I.message=$.message,I.stack=$.stack;var U=kK0.keys($);for(var Y=0;Y<U.length;++Y){var J=U[Y];if(!wI1.test(J))I[J]=$[J]}return I}return xK0.markAsOriginatingFromRejection($),$}function XI1($,I){return function(U,Y){if($===null)return;if(U){var J=ZI1(GI1(U));$._attachExtraTrace(J),$._reject(J)}else if(!I)$._fulfill(Y);else{var Q=arguments.length,K=Array(Math.max(Q-1,0));for(var q=1;q<Q;++q)K[q-1]=arguments[q];$._fulfill(K)}$=null}}uK0.exports=XI1});var bK0=O((HC1,fK0)=>{fK0.exports=function($,I,U,Y,J){var Q=b1(),K=Q.tryCatch;$.method=function(q){if(typeof q!=="function")throw new $.TypeError("expecting a function but got "+Q.classString(q));return function(){var G=new $(I);G._captureStackTrace(),G._pushContext();var H=K(q).apply(this,arguments),W=G._popContext();return J.checkForgottenReturns(H,W,"Promise.method",G),G._resolveFromSyncValue(H),G}},$.attempt=$.try=function(q){if(typeof q!=="function")return Y("expecting a function but got "+Q.classString(q));var G=new $(I);G._captureStackTrace(),G._pushContext();var H;if(arguments.length>1){J.deprecated("calling Promise.try with more than 1 argument");var W=arguments[1],V=arguments[2];H=Q.isArray(W)?K(q).apply(V,W):K(q).call(V,W)}else H=K(q)();var w=G._popContext();return J.checkForgottenReturns(H,w,"Promise.try",G),G._resolveFromSyncValue(H),G},$.prototype._resolveFromSyncValue=function(q){if(q===Q.errorObj)this._rejectCallback(q.e,!1);else this._resolveCallback(q,!0)}}});var nK0=O((WC1,iK0)=>{iK0.exports=function($,I,U,Y){var J=!1,Q=function(H,W){this._reject(W)},K=function(H,W){W.promiseRejectionQueued=!0,W.bindingPromise._then(Q,Q,null,this,H)},q=function(H,W){if((this._bitField&50397184)===0)this._resolveCallback(W.target)},G=function(H,W){if(!W.promiseRejectionQueued)this._reject(H)};$.prototype.bind=function(H){if(!J)J=!0,$.prototype._propagateFrom=Y.propagateFromFunction(),$.prototype._boundValue=Y.boundValueFunction();var W=U(H),V=new $(I);V._propagateFrom(this,1);var w=this._target();if(V._setBoundTo(W),W instanceof $){var Z={promiseRejectionQueued:!1,promise:V,target:w,bindingPromise:W};w._then(I,K,voi Line truncated
`)};else if(!Q.isNode&&typeof Error().stack==="string")L=function(a,N){console.warn("%c"+a,N?"color: darkorange":"color: red")}}var E0={warnings:F,longStackTraces:!1,cancellation:!1,monitoring:!1};if(E)$.longStackTraces();return{longStackTraces:function(){return E0.longStackTraces},warnings:function(){return E0.warnings},cancellation:function(){return E0.cancellation},monitoring:function(){return E0.monitoring},propagateFromFunction:function(){return d},boundValueFunction:function(){return t},checkForgottenReturns:A0,setBounds:O7,warn:L1,deprecated:v0,CapturedTrace:s6,fireDomEvent:R,fireGlobalEvent:u}}});var gK0=O((KC1,SK0)=>{SK0.exports=function($,I){var U=b1(),Y=$.CancellationError,J=U.errorObj;function Q(V,w,Z){this.promise=V,this.type=w,this.handler=Z,this.called=!1,this.cancelPromise=null}Q.prototype.isFinallyHandler=function(){return this.type===0};function K(V){this.finallyHandler=V}K.prototype._resultCancelled=function(){q(this.finallyHandler)};function q(V,w){if(V.cancelPromise!=null){if(arguments.length>1)V.cancelPromise._reject(w);else V.cancelPromise._cancel();return V.cancelPromise=null,!0}return!1}function G(){return W.call(this,this.promise._target()._settledValue())}function H(V){if(q(this,V))return;return J.e=V,J}function W(V){var w=this.promise,Z=this.handler;if(!this.called){this.called=!0;var z=this.isFinallyHandler()?Z.call(w._boundValue()):Z.call(w._boundValue(),V);if(z!==void 0){w._setReturnedNonUndefined();var L=I(z,w);if(L instanceof $){if(this.cancelPromise!=null){if(L._isCancelled()){var D=new Y("late cancellation observer");return w._attachExtraTrace(D),J.e=D,J}else if(L.isPending())L._attachCancellationCallback(new K(this))}return L._then(G,H,void 0,this,void 0)}}}if(w.isRejected())return q(this),J.e=V,J;else return q(this),V}return $.prototype._passThrough=function(V,w,Z,z){if(typeof V!=="function")return this.then();return this._then(Z,z,void 0,new Q(this,w,V),void 0)},$.prototype.lastly=$.prototype.finally=function(V){return this._passThrough(V,0,W,W)},$.prototype.tap=function(V){return this._passThrough(V,1,W)},Q}});var hK0=O((qC1,yK0)=>{yK0.exports=function($){var I=b1(),U=k3().keys,Y=I.tryCatch,J=I.errorObj;function Q(K,q,G){return function(H){var W=G._boundValue();$:for(var V=0;V<K.length;++V){var w=K[V];if(w===Error||w!=null&&w.prototype instanceof Error){if(H instanceof w)return Y(q).call(W,H)}else if(typeof w==="function"){var Z=Y(w).call(W,H);if(Z===J)return Z;else if(Z)return Y(q).call(W,H)}else if(I.isObject(H)){var z=U(w);for(var L=0;L<z.length;++L){var D=z[L];if(w[D]!=H[D])continue $}return Y(q).call(W,H)}}return $}}return Q}});var Eg=O((GC1,uK0)=>{var xK0=b1(),GI1=xK0.maybeWrapAsError,HI1=_5(),WI1=HI1.OperationalError,kK0=k3();function VI1($){return $ instanceof Error&&kK0.getPrototypeOf($)===Error.prototype}var wI1=/^(?:name|message|stack|cause)$/;function ZI1($){var I;if(VI1($)){I=new WI1($),I.name=$.name,I.message=$.message,I.stack=$.stack;var U=kK0.keys($);for(var Y=0;Y<U.length;++Y){var J=U[Y];if(!wI1.test(J))I[J]=$[J]}return I}return xK0.markAsOriginatingFromRejection($),$}function XI1($,I){return function(U,Y){if($===null)return;if(U){var J=ZI1(GI1(U));$._attachExtraTrace(J),$._reject(J)}else if(!I)$._fulfill(Y);else{var Q=arguments.length,K=Array(Math.max(Q-1,0));for(var q=1;q<Q;++q)K[q-1]=arguments[q];$._fulfill(K)}$=null}}uK0.exports=XI1});var bK0=O((HC1,fK0)=>{fK0.exports=function($,I,U,Y,J){var Q=b1(),K=Q.tryCatch;$.method=function(q){if(typeof q!=="function")throw new $.TypeError("expecting a function but got "+Q.classString(q));return function(){var G=new $(I);G._captureStackTrace(),G._pushContext();var H=K(q).apply(this,arguments),W=G._popContext();return J.checkForgottenReturns(H,W,"Promise.method",G),G._resolveFromSyncValue(H),G}},$.attempt=$.try=function(q){if(typeof q!=="function")return Y("expecting a function but got "+Q.classString(q));var G=new $(I);G._captureStackTrace(),G._pushContext();var H;if(arguments.length>1){J.deprecated("calling Promise.try with more than 1 argument");var W=arguments[1],V=arguments[2];H=Q.isArray(W)?K(q).apply(V,W):K(q).call(V,W)}else H=K(q)();var w=G._popContext();return J.checkForgottenReturns(H,w,"Promise.try",G),G._resolveFromSyncValue(H),G},$.prototype._resolveFromSyncValue=function(q){if(q===Q.errorObj)this._rejectCallback(q.e,!1);else this._resolveCallback(q,!0)}}});var nK0=O((WC1,iK0)=>{iK0.exports=function($,I,U,Y){var J=!1,Q=function(H,W){this._reject(W)},K=function(H,W){W.promiseRejectionQueued=!0,W.bindingPromise._then(Q,Q,null,this,H)},q=function(H,W){if((this._bitField&50397184)===0)this._resolveCallback(W.target)},G=function(H,W){if(!W.promiseRejectionQueued)this._reject(H)};$.prototype.bind=function(H){if(!J)J=!0,$.prototype._propagateFrom=Y.propagateFromFunction(),$.prototype._boundValue=Y.boundValueFunction();var W=U(H),V=new $(I);V._propagateFrom(this,1);var w=this._target();if(V._setBoundTo(W),W instanceof $){var Z={promiseRejectionQueued:!1,promise:V,target:w,bindingPromise:W};w._then(I,K,voi Line truncated
See http://goo.gl/MqrFmX
`);return this._settledValue()},Y=I.prototype.error=I.prototype.reason=function(){if(!this.isRejected())throw TypeError(`cannot get rejection reason of a non-rejected promise
@@ -203,7 +203,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof y4))r
`);i=Object(i);var Y0=!!i.multiArgs,B=i.suffix;if(typeof B!=="string")B=H;var k=i.filter;if(typeof k!=="function")k=Z;var d=i.promisifier;if(typeof d!=="function")d=p;if(!Y.isIdentifier(B))throw RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
`);var t=Y.inheritedDataKeys(f);for(var K0=0;K0<t.length;++K0){var W0=f[t[K0]];if(t[K0]!=="constructor"&&Y.isClass(W0))n(W0.prototype,B,k,d,Y0),n(W0,B,k,d,Y0)}return n(f,B,k,d,Y0)}}});var wq0=O((AC1,Vq0)=>{Vq0.exports=function($,I,U,Y){var J=b1(),Q=J.isObject,K=x3(),q;if(typeof Map==="function")q=Map;var G=function(){var w=0,Z=0;function z(L,D){this[w]=L,this[w+Z]=D,w++}return function(D){Z=D.size,w=0;var F=Array(D.size*2);return D.forEach(z,F),F}}(),H=function(w){var Z=new q,z=w.length/2|0;for(var L=0;L<z;++L){var D=w[z+L],F=w[L];Z.set(D,F)}return Z};function W(w){var Z=!1,z;if(q!==void 0&&w instanceof q)z=G(w),Z=!0;else{var L=K.keys(w),D=L.length;z=Array(D*2);for(var F=0;F<D;++F){var E=L[F];z[F]=w[E],z[F+D]=E}}this.constructor$(z),this._isMap=Z,this._init$(void 0,-3)}J.inherits(W,I),W.prototype._init=function(){},W.prototype._promiseFulfilled=function(w,Z){this._values[Z]=w;var z=++this._totalResolved;if(z>=this._length){var L;if(this._isMap)L=H(this._values);else{L={};var D=this.length();for(var F=0,E=this.length();F<E;++F)L[this._values[F+D]]=this._values[F]}return this._resolve(L),!0}return!1},W.prototype.shouldCopyValues=function(){return!1},W.prototype.getActualLength=function(w){return w>>1};function V(w){var Z,z=U(w);if(!Q(z))return Y(`cannot await properties of a non-object
`);var t=Y.inheritedDataKeys(f);for(var K0=0;K0<t.length;++K0){var W0=f[t[K0]];if(t[K0]!=="constructor"&&Y.isClass(W0))n(W0.prototype,B,k,d,Y0),n(W0,B,k,d,Y0)}return n(f,B,k,d,Y0)}}});var wq0=O((AC1,Vq0)=>{Vq0.exports=function($,I,U,Y){var J=b1(),Q=J.isObject,K=k3(),q;if(typeof Map==="function")q=Map;var G=function(){var w=0,Z=0;function z(L,D){this[w]=L,this[w+Z]=D,w++}return function(D){Z=D.size,w=0;var F=Array(D.size*2);return D.forEach(z,F),F}}(),H=function(w){var Z=new q,z=w.length/2|0;for(var L=0;L<z;++L){var D=w[z+L],F=w[L];Z.set(D,F)}return Z};function W(w){var Z=!1,z;if(q!==void 0&&w instanceof q)z=G(w),Z=!0;else{var L=K.keys(w),D=L.length;z=Array(D*2);for(var F=0;F<D;++F){var E=L[F];z[F]=w[E],z[F+D]=E}}this.constructor$(z),this._isMap=Z,this._init$(void 0,-3)}J.inherits(W,I),W.prototype._init=function(){},W.prototype._promiseFulfilled=function(w,Z){this._values[Z]=w;var z=++this._totalResolved;if(z>=this._length){var L;if(this._isMap)L=H(this._values);else{L={};var D=this.length();for(var F=0,E=this.length();F<E;++F)L[this._values[F+D]]=this._values[F]}return this._resolve(L),!0}return!1},W.prototype.shouldCopyValues=function(){return!1},W.prototype.getActualLength=function(w){return w>>1};function V(w){var Z,z=U(w);if(!Q(z))return Y(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`);else if(z instanceof $)Z=z._then($.props,void 0,void 0,void 0,void 0);else Z=new W(z).promise();if(z instanceof $)Z._propagateFrom(z,2);return Z}$.prototype.props=function(){return V(this)},$.props=function(w){return V(w)}}});var Xq0=O((PC1,Zq0)=>{Zq0.exports=function($,I,U,Y){var J=b1(),Q=function(q){return q.then(function(G){return K(G,q)})};function K(q,G){var H=U(q);if(H instanceof $)return Q(H);else if(q=J.asArray(q),q===null)return Y("expecting an array or an iterable object but got "+J.classString(q));var W=new $(I);if(G!==void 0)W._propagateFrom(G,3);var{_fulfill:V,_reject:w}=W;for(var Z=0,z=q.length;Z<z;++Z){var L=q[Z];if(L===void 0&&!(Z in q))continue;$.cast(L)._then(V,w,void 0,W,null)}return W}$.race=function(q){return K(q,void 0)},$.prototype.race=function(){return K(this,void 0)}}});var Lq0=O((TC1,zq0)=>{zq0.exports=function($,I,U,Y,J,Q){var K=$._getDomain,q=b1(),G=q.tryCatch;function H(z,L,D,F){this.constructor$(z);var E=K();if(this._fn=E===null?L:q.domainBind(E,L),D!==void 0)D=$.resolve(D),D._attachCancellationCallback(this);if(this._initialValue=D,this._currentCancellable=null,F===J)this._eachValues=Array(this._length);else if(F===0)this._eachValues=null;else this._eachValues=void 0;this._promise._captureStackTrace(),this._init$(void 0,-5)}q.inherits(H,I),H.prototype._gotAccum=function(z){if(this._eachValues!==void 0&&this._eachValues!==null&&z!==J)this._eachValues.push(z)},H.prototype._eachComplete=function(z){if(this._eachValues!==null)this._eachValues.push(z);return this._eachValues},H.prototype._init=function(){},H.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},H.prototype.shouldCopyValues=function(){return!1},H.prototype._resolve=function(z){this._promise._resolveCallback(z),this._values=null},H.prototype._resultCancelled=function(z){if(z===this._initialValue)return this._cancel();if(this._isResolved())return;if(this._resultCancelled$(),this._currentCancellable instanceof $)this._currentCancellable.cancel();if(this._initialValue instanceof $)this._initialValue.cancel()},H.prototype._iterate=function(z){this._values=z;var L,D,F=z.length;if(this._initialValue!==void 0)L=this._initialValue,D=0;else L=$.resolve(z[0]),D=1;if(this._currentCancellable=L,!L.isRejected())for(;D<F;++D){var E={accum:null,value:z[D],index:D,length:F,array:this};L=L._then(w,void 0,void 0,E,void 0)}if(this._eachValues!==void 0)L=L._then(this._eachComplete,void 0,void 0,this,void 0);L._then(W,W,void 0,L,this)},$.prototype.reduce=function(z,L){return V(this,z,L,null)},$.reduce=function(z,L,D,F){return V(z,L,D,F)};function W(z,L){if(this.isFulfilled())L._resolve(z);else L._reject(z)}function V(z,L,D,F){if(typeof L!=="function")return U("expecting a function but got "+q.classString(L));var E=new H(z,L,D,F);return E.promise()}function w(z){this.accum=z,this.array._gotAccum(z);var L=Y(this.value,this.array._promise);if(L instanceof $)return this.array._currentCancellable=L,L._then(Z,void 0,void 0,this,void 0);else return Z.call(this,L)}function Z(z){var L=this.array,D=L._promise,F=G(L._fn);D._pushContext();var E;if(L._eachValues!==void 0)E=F.call(D._boundValue(),z,this.index,this.length);else E=F.call(D._boundValue(),this.accum,z,this.index,this.length);if(E instanceof $)L._currentCancellable=E;var T=D._popContext();return Q.checkForgottenReturns(E,T,L._eachValues!==void 0?"Promise.each":"Promise.reduce",D),E}}});var Oq0=O((EC1,Dq0)=>{Dq0.exports=function($,I,U){var Y=$.PromiseInspection,J=b1();function Q(K){this.constructor$(K)}J.inherits(Q,I),Q.prototype._promiseResolved=function(K,q){this._values[K]=q;var G=++this._totalResolved;if(G>=this._length)return this._resolve(this._values),!0;return!1},Q.prototype._promiseFulfilled=function(K,q){var G=new Y;return G._bitField=33554432,G._settledValueField=K,this._promiseResolved(q,G)},Q.prototype._promiseRejected=function(K,q){var G=new Y;return G._bitField=16777216,G._settledValueField=K,this._promiseResolved(q,G)},$.settle=function(K){return U.deprecated(".settle()",".reflect()"),new Q(K).promise()},$.prototype.settle=function(){return $.settle(this)}}});var Nq0=O((BC1,Fq0)=>{Fq0.exports=function($,I,U){var Y=b1(),J=_5().RangeError,Q=_5().AggregateError,K=Y.isArray,q={};function G(W){this.constructor$(W),this._howMany=0,this._unwrap=!1,this._initialized=!1}Y.inherits(G,I),G.prototype._init=function(){if(!this._initialized)return;if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var W=K(this._values);if(!this._isResolved()&&W&&this._howMany>this._canPossiblyFulfill())this._reject(this._getRangeError(this.length()))},G.prototype.init=function(){this._initialized=!0,this._init()},G.prototype.setUnwrap=function(){this._unwrap=!0},G.prototype.howMany=function(){return this._howMany},G.prototype.setHowMany=function(W){this._howMany=W},G.prototype._promiseFulfilled=function(W){if(this._addFulfilled(W),this._fulfilled()===this.howMany()){if(this._values.length=this.howMany(),this.howMany()= Line truncated
@@ -212,10 +212,10 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof y4))r
`);var w=new G(W),Z=w.promise();return w.setHowMany(V),w.init(),Z}$.some=function(W,V){return H(W,V)},$.prototype.some=function(W){return H(this,W)},$._SomePromiseArray=G}});var Aq0=O((vC1,Mq0)=>{Mq0.exports=function($,I){var U=$.map;$.prototype.filter=function(Y,J){return U(this,Y,J,I)},$.filter=function(Y,J,Q){return U(Y,J,Q,I)}}});var Tq0=O((RC1,Pq0)=>{Pq0.exports=function($,I){var{reduce:U,all:Y}=$;function J(){return Y(this)}function Q(K,q){return U(K,q,I,I)}$.prototype.each=function(K){return U(this,K,I,0)._then(J,void 0,void 0,this,void 0)},$.prototype.mapSeries=function(K){return U(this,K,I,I)},$.each=function(K,q){return U(K,q,I,0)._then(J,void 0,void 0,K,void 0)},$.mapSeries=Q}});var Bq0=O((CC1,Eq0)=>{Eq0.exports=function($){var I=$._SomePromiseArray;function U(Y){var J=new I(Y),Q=J.promise();return J.setHowMany(1),J.setUnwrap(),J.init(),Q}$.any=function(Y){return U(Y)},$.prototype.any=function(){return U(this)}}});var vq0=O((jC1,vg)=>{vg.exports=function(){var $=function(){return new V(`circular promise resolution chain
See http://goo.gl/MqrFmX
`)},I=function(){return new S.PromiseInspection(this._target())},U=function(B){return S.reject(new V(B))};function Y(){}var J={},Q=b1(),K;if(Q.isNode)K=function(){var B=process.domain;if(B===void 0)B=null;return B};else K=function(){return null};Q.notEnumerableProp(S,"_getDomain",K);var q=x3(),G=NK0(),H=new G;q.defineProperty(S,"_async",{value:H});var W=_5(),V=S.TypeError=W.TypeError;S.RangeError=W.RangeError;var w=S.CancellationError=W.CancellationError;S.TimeoutError=W.TimeoutError,S.OperationalError=W.OperationalError,S.RejectionError=W.OperationalError,S.AggregateError=W.AggregateError;var Z=function(){},z={},L={},D=EK0()(S,Z),F=vK0()(S,Z,D,U,Y),E=CK0()(S),T=E.create,A=_K0()(S,E),R=A.CapturedTrace,u=gK0()(S,D),g=hK0()(L),b=Eg(),C=Q.errorObj,p=Q.tryCatch;function n(B,k){if(typeof k!=="function")throw new V("expecting a function but got "+Q.classString(k));if(B.constructor!==S)throw new V(`the promise constructor cannot be invoked directly
`)},I=function(){return new S.PromiseInspection(this._target())},U=function(B){return S.reject(new V(B))};function Y(){}var J={},Q=b1(),K;if(Q.isNode)K=function(){var B=process.domain;if(B===void 0)B=null;return B};else K=function(){return null};Q.notEnumerableProp(S,"_getDomain",K);var q=k3(),G=NK0(),H=new G;q.defineProperty(S,"_async",{value:H});var W=_5(),V=S.TypeError=W.TypeError;S.RangeError=W.RangeError;var w=S.CancellationError=W.CancellationError;S.TimeoutError=W.TimeoutError,S.OperationalError=W.OperationalError,S.RejectionError=W.OperationalError,S.AggregateError=W.AggregateError;var Z=function(){},z={},L={},D=EK0()(S,Z),F=vK0()(S,Z,D,U,Y),E=CK0()(S),T=E.create,A=_K0()(S,E),R=A.CapturedTrace,u=gK0()(S,D),g=hK0()(L),b=Eg(),C=Q.errorObj,p=Q.tryCatch;function n(B,k){if(typeof k!=="function")throw new V("expecting a function but got "+Q.classString(k));if(B.constructor!==S)throw new V(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
`)}function S(B){if(this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,B!==Z)n(this,B),this._resolveFromExecutor(B);this._promiseCreated(),this._fireEvent("promiseCreated",this)}S.prototype.toString=function(){return"[object Promise]"},S.prototype.caught=S.prototype.catch=function(B){var k=arguments.length;if(k>1){var d=Array(k-1),t=0,K0;for(K0=0;K0<k-1;++K0){var W0=arguments[K0];if(Q.isObject(W0))d[t++]=W0;else return U("expecting an object but got A catch statement predicate "+Q.classString(W0))}return d.length=t,B=arguments[K0],this.then(void 0,g(d,B,this))}return this.then(void 0,B)},S.prototype.reflect=function(){return this._then(I,I,void 0,this,void 0)},S.prototype.then=function(B,k){if(A.warnings()&&arguments.length>0&&typeof B!=="function"&&typeof k!=="function"){var d=".then() only accepts functions but was passed: "+Q.classString(B);if(arguments.length>1)d+=", "+Q.classString(k);this._warn(d)}return this._then(B,k,void 0,void 0,void 0)},S.prototype.done=function(B,k){var d=this._then(B,k,void 0,void 0,void 0);d._setIsFinal()},S.prototype.spread=function(B){if(typeof B!=="function")return U("expecting a function but got "+Q.classString(B));return this.all()._then(B,void 0,void 0,z,void 0)},S.prototype.toJSON=function(){var B={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};if(this.isFulfilled())B.fulfillmentValue=this.value(),B.isFulfilled=!0;else if(this.isRejected())B.rejectionReason=this.reason(),B.isRejected=!0;return B},S.prototype.all=function(){if(arguments.length>0)this._warn(".all() was passed arguments but it does not take any");return new F(this).promise()},S.prototype.error=function(B){return this.caught(Q.originatesFromRejection,B)},S.getNewLibraryCopy=vg.exports,S.is=function(B){return B instanceof S},S.fromNode=S.fromCallback=function(B){var k=new S(Z);k._captureStackTrace();var d=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,t=p(B)(b(k,d));if(t===C)k._rejectCallback(t.e,!0);if(!k._isFateSealed())k._setAsyncGuaranteed();return k},S.all=function(B){return new F(B).promise()},S.cast=function(B){var k=D(B);if(!(k instanceof S))k=new S(Z),k._captureStackTrace(),k._setFulfilled(),k._rejectionHandler0=B;return k},S.resolve=S.fulfilled=S.cast,S.reject=S.rejected=function(B){var k=new S(Z);return k._captureStackTrace(),k._rejectCallback(B,!0),k},S.setScheduler=function(B){if(typeof B!=="function")throw new V("expecting a function but got "+Q.classString(B));return H.setScheduler(B)},S.prototype._then=function(B,k,d,t,K0){var W0=K0!==void 0,A0=W0?K0:new S(Z),v0=this._target(),L1=v0._bitField;if(!W0){if(A0._propagateFrom(this,3),A0._captureStackTrace(),t===void 0&&(this._bitField&2097152)!==0)if((L1&50397184)!==0)t=this._boundValue();else t=v0===this?void 0:this._boundTo;this._fireEvent("promiseChained",this,A0)}var f0=K();if((L1&50397184)!==0){var H1,F0,g0=v0._settlePromiseCtx;if((L1&33554432)!==0)F0=v0._rejectionHandler0,H1=B;else if((L1&16777216)!==0)F0=v0._fulfillmentHandler0,H1=k,v0._unsetRejectionIsUnhandled();else g0=v0._settlePromiseLateCancellationObserver,F0=new w("late cancellation observer"),v0._attachExtraTrace(F0),H1=k;H.invoke(g0,v0,{handler:f0===null?H1:typeof H1==="function"&&Q.domainBind(f0,H1),promise:A0,receiver:t,value:F0})}else v0._addCallbacks(B,k,A0,t,f0);return A0},S.prototype._length=function(){return this._bitField&65535},S.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},S.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},S.prototype._setLength=function(B){this._bitField=this._bitField&-65536|B&65535},S.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},S.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},S.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},S.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},S.prototype._isFinal=function(){return(this._bitField&4194304)>0},S.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},S.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},S.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},S.prototype._setAsyncGuaranteed=function(){if(H.hasCustomScheduler())return;this._bitField=this._bitField|134217728},S.prototype._receiverAt=function(B){var k=B===0?this._receiver0:this[B*4-4+3];if(k===J)return;else if(k===void 0&&this._isBound())return this._boundValue();return k},S.prototype._promiseAt=function(B){return this[B*4-4+2]},S.prototype._fulfillmentHandlerAt=function(B){return this[B*4-4+0]},S.prototype._rejectionHandlerAt=function(B){return this[B*4-4+1]},S.prototype._boundValue=function(){},S.prototype._migrateCallback0=function(B){var{_bit Line truncated
`)}function S(B){if(this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,B!==Z)n(this,B),this._resolveFromExecutor(B);this._promiseCreated(),this._fireEvent("promiseCreated",this)}S.prototype.toString=function(){return"[object Promise]"},S.prototype.caught=S.prototype.catch=function(B){var k=arguments.length;if(k>1){var d=Array(k-1),t=0,K0;for(K0=0;K0<k-1;++K0){var W0=arguments[K0];if(Q.isObject(W0))d[t++]=W0;else return U("expecting an object but got A catch statement predicate "+Q.classString(W0))}return d.length=t,B=arguments[K0],this.then(void 0,g(d,B,this))}return this.then(void 0,B)},S.prototype.reflect=function(){return this._then(I,I,void 0,this,void 0)},S.prototype.then=function(B,k){if(A.warnings()&&arguments.length>0&&typeof B!=="function"&&typeof k!=="function"){var d=".then() only accepts functions but was passed: "+Q.classString(B);if(arguments.length>1)d+=", "+Q.classString(k);this._warn(d)}return this._then(B,k,void 0,void 0,void 0)},S.prototype.done=function(B,k){var d=this._then(B,k,void 0,void 0,void 0);d._setIsFinal()},S.prototype.spread=function(B){if(typeof B!=="function")return U("expecting a function but got "+Q.classString(B));return this.all()._then(B,void 0,void 0,z,void 0)},S.prototype.toJSON=function(){var B={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};if(this.isFulfilled())B.fulfillmentValue=this.value(),B.isFulfilled=!0;else if(this.isRejected())B.rejectionReason=this.reason(),B.isRejected=!0;return B},S.prototype.all=function(){if(arguments.length>0)this._warn(".all() was passed arguments but it does not take any");return new F(this).promise()},S.prototype.error=function(B){return this.caught(Q.originatesFromRejection,B)},S.getNewLibraryCopy=vg.exports,S.is=function(B){return B instanceof S},S.fromNode=S.fromCallback=function(B){var k=new S(Z);k._captureStackTrace();var d=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,t=p(B)(b(k,d));if(t===C)k._rejectCallback(t.e,!0);if(!k._isFateSealed())k._setAsyncGuaranteed();return k},S.all=function(B){return new F(B).promise()},S.cast=function(B){var k=D(B);if(!(k instanceof S))k=new S(Z),k._captureStackTrace(),k._setFulfilled(),k._rejectionHandler0=B;return k},S.resolve=S.fulfilled=S.cast,S.reject=S.rejected=function(B){var k=new S(Z);return k._captureStackTrace(),k._rejectCallback(B,!0),k},S.setScheduler=function(B){if(typeof B!=="function")throw new V("expecting a function but got "+Q.classString(B));return H.setScheduler(B)},S.prototype._then=function(B,k,d,t,K0){var W0=K0!==void 0,A0=W0?K0:new S(Z),v0=this._target(),L1=v0._bitField;if(!W0){if(A0._propagateFrom(this,3),A0._captureStackTrace(),t===void 0&&(this._bitField&2097152)!==0)if((L1&50397184)!==0)t=this._boundValue();else t=v0===this?void 0:this._boundTo;this._fireEvent("promiseChained",this,A0)}var f0=K();if((L1&50397184)!==0){var H1,F0,g0=v0._settlePromiseCtx;if((L1&33554432)!==0)F0=v0._rejectionHandler0,H1=B;else if((L1&16777216)!==0)F0=v0._fulfillmentHandler0,H1=k,v0._unsetRejectionIsUnhandled();else g0=v0._settlePromiseLateCancellationObserver,F0=new w("late cancellation observer"),v0._attachExtraTrace(F0),H1=k;H.invoke(g0,v0,{handler:f0===null?H1:typeof H1==="function"&&Q.domainBind(f0,H1),promise:A0,receiver:t,value:F0})}else v0._addCallbacks(B,k,A0,t,f0);return A0},S.prototype._length=function(){return this._bitField&65535},S.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},S.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},S.prototype._setLength=function(B){this._bitField=this._bitField&-65536|B&65535},S.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},S.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},S.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},S.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},S.prototype._isFinal=function(){return(this._bitField&4194304)>0},S.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},S.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},S.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},S.prototype._setAsyncGuaranteed=function(){if(H.hasCustomScheduler())return;this._bitField=this._bitField|134217728},S.prototype._receiverAt=function(B){var k=B===0?this._receiver0:this[B*4-4+3];if(k===J)return;else if(k===void 0&&this._isBound())return this._boundValue();return k},S.prototype._promiseAt=function(B){return this[B*4-4+2]},S.prototype._fulfillmentHandlerAt=function(B){return this[B*4-4+0]},S.prototype._rejectionHandlerAt=function(B){return this[B*4-4+1]},S.prototype._boundValue=function(){},S.prototype._migrateCallback0=function(B){var{_bit Line truncated
path = %s
syscall = %s
fstream_type = %s
@@ -225,26 +225,26 @@ fstream_class = %s
fstream_stack =
%s
`,I||"UNKNOWN",Y.stack,Y.path,Y.syscall,Y.fstream_type,Y.fstream_path,Y.fstream_unc_path,Y.fstream_class,Y.fstream_stack.join(`
`));else U.emit("warn",Y)};K7.prototype.info=function($,I){this.emit("info",$,I)};K7.prototype.error=function($,I,U){var Y=KH0($,I,this);if(U)throw Y;else this.emit("error",Y)};function KH0($,I,U){if(!($ instanceof Error))$=Error($);if($.code=$.code||I,$.path=$.path||U.path,$.fstream_type=$.fstream_type||U.type,$.fstream_path=$.fstream_path||U.path,U._path!==U.path)$.fstream_unc_path=$.fstream_unc_path||U._path;if(U.linkpath)$.fstream_linkpath=$.fstream_linkpath||U.linkpath;return $.fstream_class=$.fstream_class||U.constructor.name,$.fstream_stack=$.fstream_stack||Error().stack.split(/\n/).slice(3).map(function(Y){return Y.replace(/^ {4}at /,"")}),$}});var uq=O((Kj1,GH0)=>{GH0.exports=lY1;function lY1($){var I=["Directory","File","SymbolicLink","Link","BlockDevice","CharacterDevice","FIFO","Socket"],U;if($.type&&I.indexOf($.type)!==-1)return $[$.type]=!0,$.type;for(var Y=0,J=I.length;Y<J;Y++){U=I[Y];var Q=$[U]||$["is"+U];if(typeof Q==="function")Q=Q.call($);if(Q)return $[U]=!0,$.type=U,U}return null}});var Zy=O((qj1,HH0)=>{HH0.exports=fq;var oY1=m6(),rY1=p0(),wy=d3();rY1(fq,wy);function fq($){var I=this;if(!(I instanceof fq))throw Error("LinkReader must be called as constructor.");if(!($.type==="Link"&&$.Link||$.type==="SymbolicLink"&&$.SymbolicLink))throw Error("Non-link type "+$.type);wy.call(I,$)}fq.prototype._stat=function($){var I=this;oY1.readlink(I._path,function(U,Y){if(U)return I.error(U);I.linkpath=I.props.linkpath=Y,I.emit("linkpath",Y),wy.prototype._stat.call(I,$)})};fq.prototype._read=function(){var $=this;if($._paused)return;if(!$._ended)$.emit("end"),$.emit("close"),$._ended=!0}});var zy=O((Gj1,wH0)=>{wH0.exports=u8;var VH0=m6(),tY1=p0(),bq=r("path"),Xy=d3(),WH0=r("assert").ok;tY1(u8,Xy);function u8($){var I=this;if(!(I instanceof u8))throw Error("DirReader must be called as constructor.");if($.type!=="Directory"||!$.Directory)throw Error("Non-directory type "+$.type);if(I.entries=null,I._index=-1,I._paused=!1,I._length=-1,$.sort)this.sort=$.sort;Xy.call(this,$)}u8.prototype._getEntries=function(){var $=this;if($._gotEntries)return;$._gotEntries=!0,VH0.readdir($._path,function(I,U){if(I)return $.error(I);if($.entries=U,$.emit("entries",U),$._paused)$.once("resume",Y);else Y();function Y(){if($._length=$.entries.length,typeof $.sort==="function")$.entries=$.entries.sort($.sort.bind($));$._read()}})};u8.prototype._read=function(){var $=this;if(!$.entries)return $._getEntries();if($._paused||$._currentEntry||$._aborted)return;if($._index++,$._index>=$.entries.length){if(!$._ended)$._ended=!0,$.emit("end"),$.emit("close");return}var I=bq.resolve($._path,$.entries[$._index]);WH0(I!==$._path),WH0($.entries[$._index]),$._currentEntry=I,VH0[$.props.follow?"stat":"lstat"](I,function(U,Y){if(U)return $.error(U);var J=$._proxy||$;Y.path=I,Y.basename=bq.basename(I),Y.dirname=bq.dirname(I);var Q=$.getChildProps.call(J,Y);Q.path=I,Q.basename=bq.basename(I),Q.dirname=bq.dirname(I);var K=Xy(Q,Y);$._currentEntry=K,K.on("pause",function(H){if(!$._paused&&!K._disowned)$.pause(H)}),K.on("resume",function(H){if($._paused&&!K._disowned)$.resume(H)}),K.on("stat",function(H){if($.emit("_entryStat",K,H),K._aborted)return;if(K._paused)K.once("resume",function(){$.emit("entryStat",K,H)});else $.emit("entryStat",K,H)}),K.on("ready",function H(){if($._paused)return K.pause($),$.once("resume",H);if(K.type==="Socket")$.emit("socket",K);else $.emitEntry(K)});var q=!1;K.on("close",G),K.on("disown",G);function G(){if(q)return;if(q=!0,$.emit("childEnd",K),$.emit("entryEnd",K),$._currentEntry=null,!$._paused)$._read()}K.on("error",function(H){if(K._swallowErrors)$.warn(H),K.emit("end"),K.emit("close");else $.emit("error",H)}),["child","childEnd","warn"].forEach(function(H){K.on(H,$.emit.bind($,H))})})};u8.prototype.disown=function($){if($.emit("beforeDisown"),$._disowned=!0,$.parent=$.root=null,$===this._currentEntry)this._currentEntry=null;$.emit("disown")};u8.prototype.getChildProps=function(){return{depth:this.depth+1,root:this.root||this,parent:this,follow:this.follow,filter:this.filter,sort:this.props.sort,hardlinks:this.props.hardlinks}};u8.prototype.pause=function($){var I=this;if(I._paused)return;if($=$||I,I._paused=!0,I._currentEntry&&I._currentEntry.pause)I._currentEntry.pause($);I.emit("pause",$)};u8.prototype.resume=function($){var I=this;if(!I._paused)return;if($=$||I,I._paused=!1,I.emit("resume",$),I._paused)return;if(I._currentEntry){if(I._currentEntry.resume)I._currentEntry.resume($)}else I._read()};u8.prototype.emitEntry=function($){this.emit("entry",$),this.emit("child",$)}});var Ly=O((Hj1,LH0)=>{LH0.exports=m3;var aY1=m6(),sY1=p0(),ZH0=d3(),XH0={EOF:!0},zH0={CLOSE:!0};sY1(m3,ZH0);function m3($){var I=this;if(!(I instanceof m3))throw Error("FileReader must be called as constructor.");if(!($.type==="Link"&&$.Link||$.type==="File"&&$.File))throw Error("Non-file type "+$.type);I._buffer=[],I._bytesEmitted=0,ZH0.call(I,$)}m3.prototype._getStream=function(){var $=this,I=$._stream=aY1.createReadStream($._path,$.pro Line truncated
`));else U.emit("warn",Y)};q7.prototype.info=function($,I){this.emit("info",$,I)};q7.prototype.error=function($,I,U){var Y=KH0($,I,this);if(U)throw Y;else this.emit("error",Y)};function KH0($,I,U){if(!($ instanceof Error))$=Error($);if($.code=$.code||I,$.path=$.path||U.path,$.fstream_type=$.fstream_type||U.type,$.fstream_path=$.fstream_path||U.path,U._path!==U.path)$.fstream_unc_path=$.fstream_unc_path||U._path;if(U.linkpath)$.fstream_linkpath=$.fstream_linkpath||U.linkpath;return $.fstream_class=$.fstream_class||U.constructor.name,$.fstream_stack=$.fstream_stack||Error().stack.split(/\n/).slice(3).map(function(Y){return Y.replace(/^ {4}at /,"")}),$}});var uq=O((Kj1,GH0)=>{GH0.exports=lY1;function lY1($){var I=["Directory","File","SymbolicLink","Link","BlockDevice","CharacterDevice","FIFO","Socket"],U;if($.type&&I.indexOf($.type)!==-1)return $[$.type]=!0,$.type;for(var Y=0,J=I.length;Y<J;Y++){U=I[Y];var Q=$[U]||$["is"+U];if(typeof Q==="function")Q=Q.call($);if(Q)return $[U]=!0,$.type=U,U}return null}});var Zy=O((qj1,HH0)=>{HH0.exports=fq;var oY1=m6(),rY1=p0(),wy=m3();rY1(fq,wy);function fq($){var I=this;if(!(I instanceof fq))throw Error("LinkReader must be called as constructor.");if(!($.type==="Link"&&$.Link||$.type==="SymbolicLink"&&$.SymbolicLink))throw Error("Non-link type "+$.type);wy.call(I,$)}fq.prototype._stat=function($){var I=this;oY1.readlink(I._path,function(U,Y){if(U)return I.error(U);I.linkpath=I.props.linkpath=Y,I.emit("linkpath",Y),wy.prototype._stat.call(I,$)})};fq.prototype._read=function(){var $=this;if($._paused)return;if(!$._ended)$.emit("end"),$.emit("close"),$._ended=!0}});var zy=O((Gj1,wH0)=>{wH0.exports=u8;var VH0=m6(),tY1=p0(),bq=r("path"),Xy=m3(),WH0=r("assert").ok;tY1(u8,Xy);function u8($){var I=this;if(!(I instanceof u8))throw Error("DirReader must be called as constructor.");if($.type!=="Directory"||!$.Directory)throw Error("Non-directory type "+$.type);if(I.entries=null,I._index=-1,I._paused=!1,I._length=-1,$.sort)this.sort=$.sort;Xy.call(this,$)}u8.prototype._getEntries=function(){var $=this;if($._gotEntries)return;$._gotEntries=!0,VH0.readdir($._path,function(I,U){if(I)return $.error(I);if($.entries=U,$.emit("entries",U),$._paused)$.once("resume",Y);else Y();function Y(){if($._length=$.entries.length,typeof $.sort==="function")$.entries=$.entries.sort($.sort.bind($));$._read()}})};u8.prototype._read=function(){var $=this;if(!$.entries)return $._getEntries();if($._paused||$._currentEntry||$._aborted)return;if($._index++,$._index>=$.entries.length){if(!$._ended)$._ended=!0,$.emit("end"),$.emit("close");return}var I=bq.resolve($._path,$.entries[$._index]);WH0(I!==$._path),WH0($.entries[$._index]),$._currentEntry=I,VH0[$.props.follow?"stat":"lstat"](I,function(U,Y){if(U)return $.error(U);var J=$._proxy||$;Y.path=I,Y.basename=bq.basename(I),Y.dirname=bq.dirname(I);var Q=$.getChildProps.call(J,Y);Q.path=I,Q.basename=bq.basename(I),Q.dirname=bq.dirname(I);var K=Xy(Q,Y);$._currentEntry=K,K.on("pause",function(H){if(!$._paused&&!K._disowned)$.pause(H)}),K.on("resume",function(H){if($._paused&&!K._disowned)$.resume(H)}),K.on("stat",function(H){if($.emit("_entryStat",K,H),K._aborted)return;if(K._paused)K.once("resume",function(){$.emit("entryStat",K,H)});else $.emit("entryStat",K,H)}),K.on("ready",function H(){if($._paused)return K.pause($),$.once("resume",H);if(K.type==="Socket")$.emit("socket",K);else $.emitEntry(K)});var q=!1;K.on("close",G),K.on("disown",G);function G(){if(q)return;if(q=!0,$.emit("childEnd",K),$.emit("entryEnd",K),$._currentEntry=null,!$._paused)$._read()}K.on("error",function(H){if(K._swallowErrors)$.warn(H),K.emit("end"),K.emit("close");else $.emit("error",H)}),["child","childEnd","warn"].forEach(function(H){K.on(H,$.emit.bind($,H))})})};u8.prototype.disown=function($){if($.emit("beforeDisown"),$._disowned=!0,$.parent=$.root=null,$===this._currentEntry)this._currentEntry=null;$.emit("disown")};u8.prototype.getChildProps=function(){return{depth:this.depth+1,root:this.root||this,parent:this,follow:this.follow,filter:this.filter,sort:this.props.sort,hardlinks:this.props.hardlinks}};u8.prototype.pause=function($){var I=this;if(I._paused)return;if($=$||I,I._paused=!0,I._currentEntry&&I._currentEntry.pause)I._currentEntry.pause($);I.emit("pause",$)};u8.prototype.resume=function($){var I=this;if(!I._paused)return;if($=$||I,I._paused=!1,I.emit("resume",$),I._paused)return;if(I._currentEntry){if(I._currentEntry.resume)I._currentEntry.resume($)}else I._read()};u8.prototype.emitEntry=function($){this.emit("entry",$),this.emit("child",$)}});var Ly=O((Hj1,LH0)=>{LH0.exports=l3;var aY1=m6(),sY1=p0(),ZH0=m3(),XH0={EOF:!0},zH0={CLOSE:!0};sY1(l3,ZH0);function l3($){var I=this;if(!(I instanceof l3))throw Error("FileReader must be called as constructor.");if(!($.type==="Link"&&$.Link||$.type==="File"&&$.File))throw Error("Non-file type "+$.type);I._buffer=[],I._bytesEmitted=0,ZH0.call(I,$)}l3.prototype._getStream=function(){var $=this,I=$._stream=aY1.createReadStream($._path,$.pro Line truncated
expect: `+$.props.size+`
actual: `+$._bytesEmitted)}),I.on("close",function(){if($._paused||$._buffer.length)$._buffer.push(zH0),$._read();else $.emit("close")}),I.on("error",function(U){$.emit("error",U)}),$._read()};m3.prototype._read=function(){var $=this;if($._paused)return;if(!$._stream)return $._getStream();if($._buffer.length){var I=$._buffer;for(var U=0,Y=I.length;U<Y;U++){var J=I[U];if(J===XH0)$.emit("end");else if(J===zH0)$.emit("close");else $.emit("data",J);if($._paused){$._buffer=I.slice(U);return}}$._buffer.length=0}};m3.prototype.pause=function($){var I=this;if(I._paused)return;if($=$||I,I._paused=!0,I._stream)I._stream.pause();I.emit("pause",$)};m3.prototype.resume=function($){var I=this;if(!I._paused)return;if($=$||I,I.emit("resume",$),I._paused=!1,I._stream)I._stream.resume();I._read()}});var FH0=O((Wj1,OH0)=>{OH0.exports=WL;var eY1=p0(),DH0=d3();eY1(WL,DH0);function WL($){var I=this;if(!(I instanceof WL))throw Error("SocketReader must be called as constructor.");if(!($.type==="Socket"&&$.Socket))throw Error("Non-socket type "+$.type);DH0.call(I,$)}WL.prototype._read=function(){var $=this;if($._paused)return;if(!$._ended)$.emit("end"),$.emit("close"),$._ended=!0}});var Oy=O((Vj1,NH0)=>{NH0.exports=l3;var Dy=d3(),$J1=uq(),IJ1=p0(),UJ1=m6();IJ1(l3,Dy);function l3($){var I=this;if(!(I instanceof l3))throw Error("ProxyReader must be called as constructor.");I.props=$,I._buffer=[],I.ready=!1,Dy.call(I,$)}l3.prototype._stat=function(){var $=this,I=$.props,U=I.follow?"stat":"lstat";UJ1[U](I.path,function(Y,J){var Q;if(Y||!J)Q="File";else Q=$J1(J);I[Q]=!0,I.type=$.type=Q,$._old=J,$._addProxy(Dy(I,J))})};l3.prototype._addProxy=function($){var I=this;if(I._proxyTarget)return I.error("proxy already set");I._proxyTarget=$,$._proxy=I,["error","data","end","close","linkpath","entry","entryEnd","child","childEnd","warn","stat"].forEach(function(Y){$.on(Y,I.emit.bind(I,Y))}),I.emit("proxy",$),$.on("ready",function(){I.ready=!0,I.emit("ready")});var U=I._buffer;I._buffer.length=0,U.forEach(function(Y){$[Y[0]].apply($,Y[1])})};l3.prototype.pause=function(){return this._proxyTarget?this._proxyTarget.pause():!1};l3.prototype.resume=function(){return this._proxyTarget?this._proxyTarget.resume():!1}});var d3=O((wj1,PH0)=>{PH0.exports=Q8;var YJ1=m6(),JJ1=r("stream").Stream,QJ1=p0(),Fy=r("path"),Ny=uq(),VL=Q8.hardLinks={},MH0=HL();QJ1(Q8,MH0);var AH0=Zy();function Q8($,I){var U=this;if(!(U instanceof Q8))return new Q8($,I);if(typeof $==="string")$={path:$};var Y,J;if($.type&&typeof $.type==="function")Y=$.type,J=Y;else Y=Ny($),J=Q8;if(I&&!Y)Y=Ny(I),$[Y]=!0,$.type=Y;switch(Y){case"Directory":J=zy();break;case"Link":case"File":J=Ly();break;case"SymbolicLink":J=AH0;break;case"Socket":J=FH0();break;case null:J=Oy();break}if(!(U instanceof J))return new J($);if(MH0.call(U),!$.path)U.error("Must provide a path",null,!0);if(U.readable=!0,U.writable=!1,U.type=Y,U.props=$,U.depth=$.depth=$.depth||0,U.parent=$.parent||null,U.root=$.root||$.parent&&$.parent.root||U,U._path=U.path=Fy.resolve($.path),process.platform==="win32"){if(U.path=U._path=U.path.replace(/\?/g,"_"),U._path.length>=260)U._swallowErrors=!0,U._path="\\\\?\\"+U.path.replace(/\//g,"\\")}if(U.basename=$.basename=Fy.basename(U.path),U.dirname=$.dirname=Fy.dirname(U.path),$.parent=$.root=null,U.size=$.size,U.filter=typeof $.filter==="function"?$.filter:null,$.sort==="alpha")$.sort=KJ1;U._stat(I)}function KJ1($,I){return $===I?0:$.toLowerCase()>I.toLowerCase()?1:$.toLowerCase()<I.toLowerCase()?-1:$>I?1:-1}Q8.prototype._stat=function($){var I=this,U=I.props,Y=U.follow?"stat":"lstat";if($)process.nextTick(J.bind(null,null,$));else YJ1[Y](I._path,J);function J(Q,K){if(Q)return I.error(Q);if(Object.keys(K).forEach(function(Z){U[Z]=K[Z]}),I.size!==void 0&&U.size!==I.size)return I.error("incorrect size");I.size=U.size;var q=Ny(U),G=U.hardlinks!==!1;if(G&&q!=="Directory"&&U.nlink&&U.nlink>1){var H=U.dev+":"+U.ino;if(VL[H]===I._path||!VL[H])VL[H]=I._path;else q=I.type=I.props.type="Link",I.Link=I.props.Link=!0,I.linkpath=I.props.linkpath=VL[H],I._stat=I._read=AH0.prototype._read}if(I.type&&I.type!==q)I.error("Unexpected type: "+q);if(I.filter){var W=I._proxy||I;if(!I.filter.call(W,W,U)){if(!I._disowned)I.abort(),I.emit("end"),I.emit("close");return}}var V=["_stat","stat","ready"],w=0;(function Z(){if(I._aborted){I.emit("end"),I.emit("close");return}if(I._paused&&I.type!=="Directory"){I.once("resume",Z);return}var z=V[w++];if(!z)return I._read();I.emit(z,U),Z()})()}};Q8.prototype.pipe=function($){var I=this;if(typeof $.add==="function")I.on("entry",function(U){var Y=$.add(U);if(Y===!1)I.pause()});return JJ1.prototype.pipe.apply(this,arguments)};Q8.prototype.pause=function($){if(this._paused=!0,$=$||this,this.emit("pause",$),this._stream)this._stream.pause($)};Q8.prototype.resume=function($){if(this._paused=!1,$=$||this,this.emit("resume",$),this._stream)this._stream.resume($);this._read()};Q8.prototype._read=function(){this.error("Cannot read unknown type: "+this.type)}});var Ty=O((Zj1,_H0)=>{_ Line truncated
actual: `+$._bytesEmitted)}),I.on("close",function(){if($._paused||$._buffer.length)$._buffer.push(zH0),$._read();else $.emit("close")}),I.on("error",function(U){$.emit("error",U)}),$._read()};l3.prototype._read=function(){var $=this;if($._paused)return;if(!$._stream)return $._getStream();if($._buffer.length){var I=$._buffer;for(var U=0,Y=I.length;U<Y;U++){var J=I[U];if(J===XH0)$.emit("end");else if(J===zH0)$.emit("close");else $.emit("data",J);if($._paused){$._buffer=I.slice(U);return}}$._buffer.length=0}};l3.prototype.pause=function($){var I=this;if(I._paused)return;if($=$||I,I._paused=!0,I._stream)I._stream.pause();I.emit("pause",$)};l3.prototype.resume=function($){var I=this;if(!I._paused)return;if($=$||I,I.emit("resume",$),I._paused=!1,I._stream)I._stream.resume();I._read()}});var FH0=O((Wj1,OH0)=>{OH0.exports=WL;var eY1=p0(),DH0=m3();eY1(WL,DH0);function WL($){var I=this;if(!(I instanceof WL))throw Error("SocketReader must be called as constructor.");if(!($.type==="Socket"&&$.Socket))throw Error("Non-socket type "+$.type);DH0.call(I,$)}WL.prototype._read=function(){var $=this;if($._paused)return;if(!$._ended)$.emit("end"),$.emit("close"),$._ended=!0}});var Oy=O((Vj1,NH0)=>{NH0.exports=o3;var Dy=m3(),$J1=uq(),IJ1=p0(),UJ1=m6();IJ1(o3,Dy);function o3($){var I=this;if(!(I instanceof o3))throw Error("ProxyReader must be called as constructor.");I.props=$,I._buffer=[],I.ready=!1,Dy.call(I,$)}o3.prototype._stat=function(){var $=this,I=$.props,U=I.follow?"stat":"lstat";UJ1[U](I.path,function(Y,J){var Q;if(Y||!J)Q="File";else Q=$J1(J);I[Q]=!0,I.type=$.type=Q,$._old=J,$._addProxy(Dy(I,J))})};o3.prototype._addProxy=function($){var I=this;if(I._proxyTarget)return I.error("proxy already set");I._proxyTarget=$,$._proxy=I,["error","data","end","close","linkpath","entry","entryEnd","child","childEnd","warn","stat"].forEach(function(Y){$.on(Y,I.emit.bind(I,Y))}),I.emit("proxy",$),$.on("ready",function(){I.ready=!0,I.emit("ready")});var U=I._buffer;I._buffer.length=0,U.forEach(function(Y){$[Y[0]].apply($,Y[1])})};o3.prototype.pause=function(){return this._proxyTarget?this._proxyTarget.pause():!1};o3.prototype.resume=function(){return this._proxyTarget?this._proxyTarget.resume():!1}});var m3=O((wj1,PH0)=>{PH0.exports=Q8;var YJ1=m6(),JJ1=r("stream").Stream,QJ1=p0(),Fy=r("path"),Ny=uq(),VL=Q8.hardLinks={},MH0=HL();QJ1(Q8,MH0);var AH0=Zy();function Q8($,I){var U=this;if(!(U instanceof Q8))return new Q8($,I);if(typeof $==="string")$={path:$};var Y,J;if($.type&&typeof $.type==="function")Y=$.type,J=Y;else Y=Ny($),J=Q8;if(I&&!Y)Y=Ny(I),$[Y]=!0,$.type=Y;switch(Y){case"Directory":J=zy();break;case"Link":case"File":J=Ly();break;case"SymbolicLink":J=AH0;break;case"Socket":J=FH0();break;case null:J=Oy();break}if(!(U instanceof J))return new J($);if(MH0.call(U),!$.path)U.error("Must provide a path",null,!0);if(U.readable=!0,U.writable=!1,U.type=Y,U.props=$,U.depth=$.depth=$.depth||0,U.parent=$.parent||null,U.root=$.root||$.parent&&$.parent.root||U,U._path=U.path=Fy.resolve($.path),process.platform==="win32"){if(U.path=U._path=U.path.replace(/\?/g,"_"),U._path.length>=260)U._swallowErrors=!0,U._path="\\\\?\\"+U.path.replace(/\//g,"\\")}if(U.basename=$.basename=Fy.basename(U.path),U.dirname=$.dirname=Fy.dirname(U.path),$.parent=$.root=null,U.size=$.size,U.filter=typeof $.filter==="function"?$.filter:null,$.sort==="alpha")$.sort=KJ1;U._stat(I)}function KJ1($,I){return $===I?0:$.toLowerCase()>I.toLowerCase()?1:$.toLowerCase()<I.toLowerCase()?-1:$>I?1:-1}Q8.prototype._stat=function($){var I=this,U=I.props,Y=U.follow?"stat":"lstat";if($)process.nextTick(J.bind(null,null,$));else YJ1[Y](I._path,J);function J(Q,K){if(Q)return I.error(Q);if(Object.keys(K).forEach(function(Z){U[Z]=K[Z]}),I.size!==void 0&&U.size!==I.size)return I.error("incorrect size");I.size=U.size;var q=Ny(U),G=U.hardlinks!==!1;if(G&&q!=="Directory"&&U.nlink&&U.nlink>1){var H=U.dev+":"+U.ino;if(VL[H]===I._path||!VL[H])VL[H]=I._path;else q=I.type=I.props.type="Link",I.Link=I.props.Link=!0,I.linkpath=I.props.linkpath=VL[H],I._stat=I._read=AH0.prototype._read}if(I.type&&I.type!==q)I.error("Unexpected type: "+q);if(I.filter){var W=I._proxy||I;if(!I.filter.call(W,W,U)){if(!I._disowned)I.abort(),I.emit("end"),I.emit("close");return}}var V=["_stat","stat","ready"],w=0;(function Z(){if(I._aborted){I.emit("end"),I.emit("close");return}if(I._paused&&I.type!=="Directory"){I.once("resume",Z);return}var z=V[w++];if(!z)return I._read();I.emit(z,U),Z()})()}};Q8.prototype.pipe=function($){var I=this;if(typeof $.add==="function")I.on("entry",function(U){var Y=$.add(U);if(Y===!1)I.pause()});return JJ1.prototype.pipe.apply(this,arguments)};Q8.prototype.pause=function($){if(this._paused=!0,$=$||this,this.emit("pause",$),this._stream)this._stream.pause($)};Q8.prototype.resume=function($){if(this._paused=!1,$=$||this,this.emit("resume",$),this._stream)this._stream.resume($);this._read()};Q8.prototype._read=function(){this.error("Cannot read unknown type: "+this.type)}});var Ty=O((Zj1,_H0)=>{_ Line truncated
expect: `+$.size+`
actual: `+$._bytesWritten);AL.prototype._finish.call($)}});var hy=O((_j1,NW0)=>{NW0.exports=V7;var yy=GJ(),gJ1=uq(),yJ1=p0(),hJ1=NL(),xJ1=r("fs");yJ1(V7,yy);function V7($){var I=this;if(!(I instanceof V7))throw Error("ProxyWriter must be called as constructor.");I.props=$,I._needDrain=!1,yy.call(I,$)}V7.prototype._stat=function(){var $=this,I=$.props,U=I.follow?"stat":"lstat";xJ1[U](I.path,function(Y,J){var Q;if(Y||!J)Q="File";else Q=gJ1(J);I[Q]=!0,I.type=$.type=Q,$._old=J,$._addProxy(yy(I,J))})};V7.prototype._addProxy=function($){var I=this;if(I._proxy)return I.error("proxy already set");I._proxy=$,["ready","error","close","pipe","drain","warn"].forEach(function(Y){$.on(Y,I.emit.bind(I,Y))}),I.emit("proxy",$);var U=I._buffer;if(U.forEach(function(Y){$[Y[0]].apply($,Y[1])}),I._buffer.length=0,I._needsDrain)I.emit("drain")};V7.prototype.add=function($){if(hJ1($),!this._proxy)return this._buffer.push(["add",[$]]),this._needDrain=!0,!1;return this._proxy.add($)};V7.prototype.write=function($){if(!this._proxy)return this._buffer.push(["write",[$]]),this._needDrain=!0,!1;return this._proxy.write($)};V7.prototype.end=function($){if(!this._proxy)return this._buffer.push(["end",[$]]),!1;return this._proxy.end($)}});var GJ=O((Sj1,CW0)=>{CW0.exports=S$;var _$=m6(),kJ1=p0(),uJ1=Ty(),fJ1=Cy(),cq=r("path"),AW0=process.platform==="win32"?0:process.umask(),PW0=uq(),TW0=HL();kJ1(S$,TW0);S$.dirmode=parseInt("0777",8)&~AW0;S$.filemode=parseInt("0666",8)&~AW0;var bJ1=_y(),iJ1=Sy(),nJ1=gy(),pJ1=hy();function S$($,I){var U=this;if(typeof $==="string")$={path:$};var Y=PW0($),J=S$;switch(Y){case"Directory":J=bJ1;break;case"File":J=nJ1;break;case"Link":case"SymbolicLink":J=iJ1;break;case null:default:J=pJ1;break}if(!(U instanceof J))return new J($);if(TW0.call(U),!$.path)U.error("Must provide a path",null,!0);if(U.type=$.type,U.props=$,U.depth=$.depth||0,U.clobber=$.clobber===!1?$.clobber:!0,U.parent=$.parent||null,U.root=$.root||$.parent&&$.parent.root||U,U._path=U.path=cq.resolve($.path),process.platform==="win32"){if(U.path=U._path=U.path.replace(/\?/g,"_"),U._path.length>=260)U._swallowErrors=!0,U._path="\\\\?\\"+U.path.replace(/\//g,"\\")}if(U.basename=cq.basename($.path),U.dirname=cq.dirname($.path),U.linkpath=$.linkpath||null,$.parent=$.root=null,U.size=$.size,typeof $.mode==="string")$.mode=parseInt($.mode,8);U.readable=!1,U.writable=!0,U._buffer=[],U.ready=!1,U.filter=typeof $.filter==="function"?$.filter:null,U._stat(I)}S$.prototype._create=function(){var $=this;_$[$.props.follow?"stat":"lstat"]($._path,function(I){if(I)return $.warn("Cannot create "+$._path+`
Unsupported type: `+$.type,"ENOTSUP");$._finish()})};S$.prototype._stat=function($){var I=this,U=I.props,Y=U.follow?"stat":"lstat",J=I._proxy||I;if($)Q(null,$);else _$[Y](I._path,Q);function Q(K,q){if(I.filter&&!I.filter.call(J,J,q)){I._aborted=!0,I.emit("end"),I.emit("close");return}if(K||!q)return xy(I);I._old=q;var G=PW0(q);if(G!==I.type||I.type==="File"&&q.nlink>1)return uJ1(I._path,function(H){if(H)return I.error(H);I._old=null,xy(I)});xy(I)}};function xy($){fJ1(cq.dirname($._path),S$.dirmode,function(I,U){if(I)return $.error(I);return $._madeDir=U,$._create()})}function EW0($,I,U,Y,J){var Q=I.mode,K=I.follow||$.type!=="SymbolicLink"?"chmod":"lchmod";if(!_$[K])return J();if(typeof Q!=="number")return J();var q=U.mode&parseInt("0777",8);if(Q=Q&parseInt("0777",8),Q===q)return J();_$[K](Y,Q,J)}function BW0($,I,U,Y,J){if(process.platform==="win32")return J();if(!process.getuid||process.getuid()!==0)return J();if(typeof I.uid!=="number"&&typeof I.gid!=="number")return J();if(U.uid===I.uid&&U.gid===I.gid)return J();var Q=$.props.follow||$.type!=="SymbolicLink"?"chown":"lchown";if(!_$[Q])return J();if(typeof I.uid!=="number")I.uid=U.uid;if(typeof I.gid!=="number")I.gid=U.gid;_$[Q](Y,I.uid,I.gid,J)}function vW0($,I,U,Y,J){if(!_$.utimes||process.platform==="win32")return J();var Q=I.follow||$.type!=="SymbolicLink"?"utimes":"lutimes";if(Q==="lutimes"&&!_$[Q])Q="utimes";if(!_$[Q])return J();var{atime:K,mtime:q}=U,G=I.atime,H=I.mtime;if(G===void 0)G=K;if(H===void 0)H=q;if(!MW0(G))G=new Date(G);if(!MW0(H))G=new Date(H);if(G.getTime()===K.getTime()&&H.getTime()===q.getTime())return J();_$[Q](Y,G,H,J)}S$.prototype._finish=function(){var $=this;if($._finishing)return;$._finishing=!0;var I=0,U=null,Y=!1;if($._old)$._old.atime=new Date(0),$._old.mtime=new Date(0),Q($._old);else{var J=$.props.follow?"stat":"lstat";_$[J]($._path,function(q,G){if(q)if(q.code==="ENOENT"&&($.type==="Link"||$.type==="SymbolicLink")&&process.platform==="win32"){$.ready=!0,$.emit("ready"),$.emit("end"),$.emit("close"),$.end=$._finish=function(){};return}else return $.error(q);Q($._old=G)})}return;function Q(q){I+=3,EW0($,$.props,q,$._path,K("chmod")),BW0($,$.props,q,$._path,K("chown")),vW0($,$.props,q,$._path,K("utimes"))}function K(q){return function(G){if(U)return;if(G)return G.fstream_finish_call=q,$.error(U=G);if(--I>0)return;if(Y)return;if(Y=!0,!$._madeDir)return H();else RW0($,$._path,H);function H(W){if(W)return W.fstream_finish_call="setupMadeDir",$.error(W);$.emit("end"),$.emit("close")}}}};function RW0($,I,U){var Y=$._madeDir,J=cq.dirname(I);cJ1($,J,function(Q){if(Q)return U(Q);if(J===Y)return U();RW0($,J,U)})}function cJ1($,I,U){var Y={};Object.keys($.props).forEach(function(q){if(Y[q]=$.props[q],q==="mode"&&$.type!=="Directory")Y[q]=Y[q]|parseInt("0111",8)});var J=3,Q=null;_$.stat(I,function(q,G){if(q)return U(Q=q);EW0($,Y,G,I,K),BW0($,Y,G,I,K),vW0($,Y,G,I,K)});function K(q){if(Q)return;if(q)return U(Q=q);if(--J===0)return U()}}S$.prototype.pipe=function(){this.error("Can't pipe from writable stream")};S$.prototype.add=function(){this.error("Can't add to non-Directory type")};S$.prototype.write=function(){return!0};function dJ1($){return Object.prototype.toString.call($)}function MW0($){return typeof $==="object"&&dJ1($)==="[object Date]"}});var iy=O((mJ1)=>{mJ1.Abstract=HL();mJ1.Reader=d3();mJ1.Writer=GJ();mJ1.File={Reader:Ly(),Writer:gy()};mJ1.Dir={Reader:zy(),Writer:_y()};mJ1.Link={Reader:Zy(),Writer:Sy()};mJ1.Proxy={Reader:Oy(),Writer:hy()};mJ1.Reader.Dir=mJ1.DirReader=mJ1.Dir.Reader;mJ1.Reader.File=mJ1.FileReader=mJ1.File.Reader;mJ1.Reader.Link=mJ1.LinkReader=mJ1.Link.Reader;mJ1.Reader.Proxy=mJ1.ProxyReader=mJ1.Proxy.Reader;mJ1.Writer.Dir=mJ1.DirWriter=mJ1.Dir.Writer;mJ1.Writer.File=mJ1.FileWriter=mJ1.File.Writer;mJ1.Writer.Link=mJ1.LinkWriter=mJ1.Link.Writer;mJ1.Writer.Proxy=mJ1.ProxyWriter=mJ1.Proxy.Writer;mJ1.collect=NL()});var _W0=O((nj1,jW0)=>{jW0.exports=$Q1;var rJ1=$L(),tJ1=iy().Writer,ny=r("path"),aJ1=r("stream"),sJ1=Wy(),eJ1=J7();function $Q1($){$.path=ny.resolve(ny.normalize($.path));var I=new rJ1($),U=new aJ1.Writable({objectMode:!0});U._write=function(J,Q,K){if(J.type=="Directory")return K();var q=ny.join($.path,J.path);if(q.indexOf($.path)!=0)return K();let G=$.getWriter?$.getWriter({path:q}):tJ1({path:q});J.pipe(G).on("error",K).on("close",K)};var Y=sJ1(I,U);return I.once("crx-header",function(J){Y.crxHeader=J}),I.pipe(U).on("finish",function(){Y.emit("close")}),Y.promise=function(){return new eJ1(function(J,Q){Y.on("close",J),Y.on("error",Q)})},Y}});var SW0=O((pj1,PL)=>{var h4=function($){var I=1e7,U=7,Y=9007199254740992,J=w(Y),Q="0123456789abcdefghijklmnopqrstuvwxyz",K=typeof BigInt==="function";function q(N,M,j,x){if(typeof N>"u")return q[0];if(typeof M<"u")return+M===10&&!j?E0(N):u$(N,M,j,x);return E0(N)}function G(N,M){this.value=N,this.sign=M,this.isSmall=!1}G.prototype=Object.create(q.prototype);function H(N){this.value=N,this.sign=N<0,this.isSmall=!0}H.prototype=Object.create(q.prototype);function W(N){th Line truncated
actual: `+$._bytesWritten);AL.prototype._finish.call($)}});var hy=O((_j1,NW0)=>{NW0.exports=w7;var yy=HJ(),gJ1=uq(),yJ1=p0(),hJ1=NL(),xJ1=r("fs");yJ1(w7,yy);function w7($){var I=this;if(!(I instanceof w7))throw Error("ProxyWriter must be called as constructor.");I.props=$,I._needDrain=!1,yy.call(I,$)}w7.prototype._stat=function(){var $=this,I=$.props,U=I.follow?"stat":"lstat";xJ1[U](I.path,function(Y,J){var Q;if(Y||!J)Q="File";else Q=gJ1(J);I[Q]=!0,I.type=$.type=Q,$._old=J,$._addProxy(yy(I,J))})};w7.prototype._addProxy=function($){var I=this;if(I._proxy)return I.error("proxy already set");I._proxy=$,["ready","error","close","pipe","drain","warn"].forEach(function(Y){$.on(Y,I.emit.bind(I,Y))}),I.emit("proxy",$);var U=I._buffer;if(U.forEach(function(Y){$[Y[0]].apply($,Y[1])}),I._buffer.length=0,I._needsDrain)I.emit("drain")};w7.prototype.add=function($){if(hJ1($),!this._proxy)return this._buffer.push(["add",[$]]),this._needDrain=!0,!1;return this._proxy.add($)};w7.prototype.write=function($){if(!this._proxy)return this._buffer.push(["write",[$]]),this._needDrain=!0,!1;return this._proxy.write($)};w7.prototype.end=function($){if(!this._proxy)return this._buffer.push(["end",[$]]),!1;return this._proxy.end($)}});var HJ=O((Sj1,CW0)=>{CW0.exports=S$;var _$=m6(),kJ1=p0(),uJ1=Ty(),fJ1=Cy(),cq=r("path"),AW0=process.platform==="win32"?0:process.umask(),PW0=uq(),TW0=HL();kJ1(S$,TW0);S$.dirmode=parseInt("0777",8)&~AW0;S$.filemode=parseInt("0666",8)&~AW0;var bJ1=_y(),iJ1=Sy(),nJ1=gy(),pJ1=hy();function S$($,I){var U=this;if(typeof $==="string")$={path:$};var Y=PW0($),J=S$;switch(Y){case"Directory":J=bJ1;break;case"File":J=nJ1;break;case"Link":case"SymbolicLink":J=iJ1;break;case null:default:J=pJ1;break}if(!(U instanceof J))return new J($);if(TW0.call(U),!$.path)U.error("Must provide a path",null,!0);if(U.type=$.type,U.props=$,U.depth=$.depth||0,U.clobber=$.clobber===!1?$.clobber:!0,U.parent=$.parent||null,U.root=$.root||$.parent&&$.parent.root||U,U._path=U.path=cq.resolve($.path),process.platform==="win32"){if(U.path=U._path=U.path.replace(/\?/g,"_"),U._path.length>=260)U._swallowErrors=!0,U._path="\\\\?\\"+U.path.replace(/\//g,"\\")}if(U.basename=cq.basename($.path),U.dirname=cq.dirname($.path),U.linkpath=$.linkpath||null,$.parent=$.root=null,U.size=$.size,typeof $.mode==="string")$.mode=parseInt($.mode,8);U.readable=!1,U.writable=!0,U._buffer=[],U.ready=!1,U.filter=typeof $.filter==="function"?$.filter:null,U._stat(I)}S$.prototype._create=function(){var $=this;_$[$.props.follow?"stat":"lstat"]($._path,function(I){if(I)return $.warn("Cannot create "+$._path+`
Unsupported type: `+$.type,"ENOTSUP");$._finish()})};S$.prototype._stat=function($){var I=this,U=I.props,Y=U.follow?"stat":"lstat",J=I._proxy||I;if($)Q(null,$);else _$[Y](I._path,Q);function Q(K,q){if(I.filter&&!I.filter.call(J,J,q)){I._aborted=!0,I.emit("end"),I.emit("close");return}if(K||!q)return xy(I);I._old=q;var G=PW0(q);if(G!==I.type||I.type==="File"&&q.nlink>1)return uJ1(I._path,function(H){if(H)return I.error(H);I._old=null,xy(I)});xy(I)}};function xy($){fJ1(cq.dirname($._path),S$.dirmode,function(I,U){if(I)return $.error(I);return $._madeDir=U,$._create()})}function EW0($,I,U,Y,J){var Q=I.mode,K=I.follow||$.type!=="SymbolicLink"?"chmod":"lchmod";if(!_$[K])return J();if(typeof Q!=="number")return J();var q=U.mode&parseInt("0777",8);if(Q=Q&parseInt("0777",8),Q===q)return J();_$[K](Y,Q,J)}function BW0($,I,U,Y,J){if(process.platform==="win32")return J();if(!process.getuid||process.getuid()!==0)return J();if(typeof I.uid!=="number"&&typeof I.gid!=="number")return J();if(U.uid===I.uid&&U.gid===I.gid)return J();var Q=$.props.follow||$.type!=="SymbolicLink"?"chown":"lchown";if(!_$[Q])return J();if(typeof I.uid!=="number")I.uid=U.uid;if(typeof I.gid!=="number")I.gid=U.gid;_$[Q](Y,I.uid,I.gid,J)}function vW0($,I,U,Y,J){if(!_$.utimes||process.platform==="win32")return J();var Q=I.follow||$.type!=="SymbolicLink"?"utimes":"lutimes";if(Q==="lutimes"&&!_$[Q])Q="utimes";if(!_$[Q])return J();var{atime:K,mtime:q}=U,G=I.atime,H=I.mtime;if(G===void 0)G=K;if(H===void 0)H=q;if(!MW0(G))G=new Date(G);if(!MW0(H))G=new Date(H);if(G.getTime()===K.getTime()&&H.getTime()===q.getTime())return J();_$[Q](Y,G,H,J)}S$.prototype._finish=function(){var $=this;if($._finishing)return;$._finishing=!0;var I=0,U=null,Y=!1;if($._old)$._old.atime=new Date(0),$._old.mtime=new Date(0),Q($._old);else{var J=$.props.follow?"stat":"lstat";_$[J]($._path,function(q,G){if(q)if(q.code==="ENOENT"&&($.type==="Link"||$.type==="SymbolicLink")&&process.platform==="win32"){$.ready=!0,$.emit("ready"),$.emit("end"),$.emit("close"),$.end=$._finish=function(){};return}else return $.error(q);Q($._old=G)})}return;function Q(q){I+=3,EW0($,$.props,q,$._path,K("chmod")),BW0($,$.props,q,$._path,K("chown")),vW0($,$.props,q,$._path,K("utimes"))}function K(q){return function(G){if(U)return;if(G)return G.fstream_finish_call=q,$.error(U=G);if(--I>0)return;if(Y)return;if(Y=!0,!$._madeDir)return H();else RW0($,$._path,H);function H(W){if(W)return W.fstream_finish_call="setupMadeDir",$.error(W);$.emit("end"),$.emit("close")}}}};function RW0($,I,U){var Y=$._madeDir,J=cq.dirname(I);cJ1($,J,function(Q){if(Q)return U(Q);if(J===Y)return U();RW0($,J,U)})}function cJ1($,I,U){var Y={};Object.keys($.props).forEach(function(q){if(Y[q]=$.props[q],q==="mode"&&$.type!=="Directory")Y[q]=Y[q]|parseInt("0111",8)});var J=3,Q=null;_$.stat(I,function(q,G){if(q)return U(Q=q);EW0($,Y,G,I,K),BW0($,Y,G,I,K),vW0($,Y,G,I,K)});function K(q){if(Q)return;if(q)return U(Q=q);if(--J===0)return U()}}S$.prototype.pipe=function(){this.error("Can't pipe from writable stream")};S$.prototype.add=function(){this.error("Can't add to non-Directory type")};S$.prototype.write=function(){return!0};function dJ1($){return Object.prototype.toString.call($)}function MW0($){return typeof $==="object"&&dJ1($)==="[object Date]"}});var iy=O((mJ1)=>{mJ1.Abstract=HL();mJ1.Reader=m3();mJ1.Writer=HJ();mJ1.File={Reader:Ly(),Writer:gy()};mJ1.Dir={Reader:zy(),Writer:_y()};mJ1.Link={Reader:Zy(),Writer:Sy()};mJ1.Proxy={Reader:Oy(),Writer:hy()};mJ1.Reader.Dir=mJ1.DirReader=mJ1.Dir.Reader;mJ1.Reader.File=mJ1.FileReader=mJ1.File.Reader;mJ1.Reader.Link=mJ1.LinkReader=mJ1.Link.Reader;mJ1.Reader.Proxy=mJ1.ProxyReader=mJ1.Proxy.Reader;mJ1.Writer.Dir=mJ1.DirWriter=mJ1.Dir.Writer;mJ1.Writer.File=mJ1.FileWriter=mJ1.File.Writer;mJ1.Writer.Link=mJ1.LinkWriter=mJ1.Link.Writer;mJ1.Writer.Proxy=mJ1.ProxyWriter=mJ1.Proxy.Writer;mJ1.collect=NL()});var _W0=O((nj1,jW0)=>{jW0.exports=$Q1;var rJ1=$L(),tJ1=iy().Writer,ny=r("path"),aJ1=r("stream"),sJ1=Wy(),eJ1=Q7();function $Q1($){$.path=ny.resolve(ny.normalize($.path));var I=new rJ1($),U=new aJ1.Writable({objectMode:!0});U._write=function(J,Q,K){if(J.type=="Directory")return K();var q=ny.join($.path,J.path);if(q.indexOf($.path)!=0)return K();let G=$.getWriter?$.getWriter({path:q}):tJ1({path:q});J.pipe(G).on("error",K).on("close",K)};var Y=sJ1(I,U);return I.once("crx-header",function(J){Y.crxHeader=J}),I.pipe(U).on("finish",function(){Y.emit("close")}),Y.promise=function(){return new eJ1(function(J,Q){Y.on("close",J),Y.on("error",Q)})},Y}});var SW0=O((pj1,PL)=>{var h4=function($){var I=1e7,U=7,Y=9007199254740992,J=w(Y),Q="0123456789abcdefghijklmnopqrstuvwxyz",K=typeof BigInt==="function";function q(N,M,j,x){if(typeof N>"u")return q[0];if(typeof M<"u")return+M===10&&!j?E0(N):u$(N,M,j,x);return E0(N)}function G(N,M){this.value=N,this.sign=M,this.isSmall=!1}G.prototype=Object.create(q.prototype);function H(N){this.value=N,this.sign=N<0,this.isSmall=!0}H.prototype=Object.create(q.prototype);function W(N){th Line truncated
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/var x1=r("fs"),CL=r("os"),x4=r("path"),dW0=r("crypto"),f8={fs:x1.constants,os:CL.constants},rW0=/XXXXXX/,tW0=(f8.O_CREAT||f8.fs.O_CREAT)|(f8.O_EXCL||f8.fs.O_EXCL)|(f8.O_RDWR||f8.fs.O_RDWR),TQ1=CL.platform()==="win32",EQ1=f8.EBADF||f8.os.errno.EBADF,BQ1=f8.ENOENT||f8.os.errno.ENOENT,WJ=[],aW0=x1.rmdirSync.bind(x1),sW0=!1;function vQ1($,I){return x1.rm($,{recursive:!0},I)}function eW0($){return x1.rmSync($,{recursive:!0})}function ly($,I){let U=VJ($,I),Y=U[0],J=U[1];kQ1(Y,function(Q,K){if(Q)return J(Q);let q=K.tries;(function G(){try{let H=IV0(K);x1.stat(H,function(W){if(!W){if(q-- >0)return G();return J(Error("Could not get a unique tmp filename, max tries reached "+H))}J(null,H)})}catch(H){J(H)}})()})}function oy($){let I=VJ($),U=I[0],Y=uQ1(U),J=Y.tries;do{let Q=IV0(Y);try{x1.statSync(Q)}catch(K){return Q}}while(J-- >0);throw Error("Could not get a unique tmp filename, max tries reached")}function RQ1($,I){let U=VJ($,I),Y=U[0],J=U[1];ly(Y,function(K,q){if(K)return J(K);x1.open(q,tW0,Y.mode||384,function(H,W){if(H)return J(H);if(Y.discardDescriptor)return x1.close(W,function(w){return J(w,q,void 0,dy(q,-1,Y,!1))});else{let V=Y.discardDescriptor||Y.detachDescriptor;J(null,q,W,dy(q,V?-1:W,Y,!1))}})})}function CQ1($){let I=VJ($),U=I[0],Y=U.discardDescriptor||U.detachDescriptor,J=oy(U),Q=x1.openSync(J,tW0,U.mode||384);if(U.discardDescriptor)x1.closeSync(Q),Q=void 0;return{name:J,fd:Q,removeCallback:dy(J,Y?-1:Q,U,!0)}}function jQ1($,I){let U=VJ($,I),Y=U[0],J=U[1];ly(Y,function(K,q){if(K)return J(K);x1.mkdir(q,Y.mode||448,function(H){if(H)return J(H);J(null,q,$V0(q,Y,!1))})})}function _Q1($){let I=VJ($),U=I[0],Y=oy(U);return x1.mkdirSync(Y,U.mode||448),{name:Y,removeCallback:$V0(Y,U,!0)}}function SQ1($,I){let U=function(Y){if(Y&&!my(Y))return I(Y);I()};if(0<=$[0])x1.close($[0],function(){x1.unlink($[1],U)});else x1.unlink($[1],U)}function gQ1($){let I=null;try{if(0<=$[0])x1.closeSync($[0])}catch(U){if(!fQ1(U)&&!my(U))throw U}finally{try{x1.unlinkSync($[1])}catch(U){if(!my(U))I=U}}if(I!==null)throw I}function dy($,I,U,Y){let J=RL(gQ1,[I,$],Y),Q=RL(SQ1,[I,$],Y,J);if(!U.keep)WJ.unshift(J);return Y?J:Q}function $V0($,I,U){let Y=I.unsafeCleanup?vQ1:x1.rmdir.bind(x1),J=I.unsafeCleanup?eW0:aW0,Q=RL(J,$,U),K=RL(Y,$,U,Q);if(!I.keep)WJ.unshift(Q);return U?Q:K}function RL($,I,U,Y){let J=!1;return function Q(K){if(!J){let q=Y||Q,G=WJ.indexOf(q);if(G>=0)WJ.splice(G,1);if(J=!0,U||$===aW0||$===eW0)return $(I);else return $(I,K||function(){})}}}function yQ1(){if(!sW0)return;while(WJ.length)try{WJ[0]()}catch($){}}function mW0($){let I=[],U=null;try{U=dW0.randomBytes($)}catch(Y){U=dW0.pseudoRandomBytes($)}for(let Y=0;Y<$;Y++)I.push("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"[U[Y]%62]);return I.join("")}function o6($){return typeof $>"u"}function VJ($,I){if(typeof $==="function")return[{},$];if(o6($))return[{},I];let U={};for(let Y of Object.getOwnPropertyNames($))U[Y]=$[Y];return[U,I]}function hQ1($,I,U){let Y=x4.isAbsolute($)?$:x4.join(I,$);x1.stat(Y,function(J){if(J)x1.realpath(x4.dirname(Y),function(Q,K){if(Q)return U(Q);U(null,x4.join(K,x4.basename(Y)))});else x1.realpath(Y,U)})}function xQ1($,I){let U=x4.isAbsolute($)?$:x4.join(I,$);try{return x1.statSync(U),x1.realpathSync(U)}catch(Y){let J=x1.realpathSync(x4.dirname(U));return x4.join(J,x4.basename(U))}}function IV0($){let I=$.tmpdir;if(!o6($.name))return x4.join(I,$.dir,$.name);if(!o6($.template))return x4.join(I,$.dir,$.template).replace(rW0,mW0(6));let U=[$.prefix?$.prefix:"tmp","-",process.pid,"-",mW0(12),$.postfix?"-"+$.postfix:""].join("");return x4.join(I,$.dir,U)}function cy($,I){if(typeof I!=="string")throw Error(`${$} option must be a string, got "${typeof I}".`);if(I.includes(".."))throw Error("Relative value not allowed");return I}function UV0($){if(!o6($.name)){let I=$.name;if(x4.isAbsolute(I))throw Error(`name option must not contain an absolute path, found "${I}".`);let U=x4.basename(I);if(U===".."||U==="."||U!==I)throw Error(`name option must not contain a path, found "${I}".`)}if(!o6($.template)){if(typeof $.template!=="string")throw Error(`template option must be a string, got "${typeof $.template}".`);if(!$.template.match(rW0))throw Error(`Invalid template, found "${$.template}".`)}if(!o6($.tries)&&isNaN($.tries)||$.tries<0)throw Error(`Invalid tries, found "${$.tries}".`);$.tries=o6($.name)?$.tries||3:1,$.keep=!!$.keep,$.detachDescriptor=!!$.detachDescriptor,$.discardDescriptor=!!$.discardDescriptor,$.unsafeCleanup=!!$.unsafeCleanup,$.prefix=o6($.prefix)?"":cy("prefix",$.prefix),$.postfix=o6($.postfix)?"":cy("postfix",$.postfix),$.template=o6($.template)?void 0:cy("template",$.template)}function lW0($,I,U,Y){if(o6(I))return Y(null);hQ1(I,U,function(J,Q){if(J)return Y(J);let K=x4.relative(U,Q);if(K.startsWith("..")||x4.isAbsolute(K))return Y(Error(`${$} option must be relative to "${U}", found "${K}".`));Y(null,K)})}function oW0($,I,U){if(o6(I))return;let Y=xQ1(I,U),J=x4.relative(U,Y);if(J.startsWith("..")||x4.isAbsolute(J))throw ELine truncated
*/var x1=r("fs"),CL=r("os"),x4=r("path"),dW0=r("crypto"),f8={fs:x1.constants,os:CL.constants},rW0=/XXXXXX/,tW0=(f8.O_CREAT||f8.fs.O_CREAT)|(f8.O_EXCL||f8.fs.O_EXCL)|(f8.O_RDWR||f8.fs.O_RDWR),TQ1=CL.platform()==="win32",EQ1=f8.EBADF||f8.os.errno.EBADF,BQ1=f8.ENOENT||f8.os.errno.ENOENT,VJ=[],aW0=x1.rmdirSync.bind(x1),sW0=!1;function vQ1($,I){return x1.rm($,{recursive:!0},I)}function eW0($){return x1.rmSync($,{recursive:!0})}function ly($,I){let U=wJ($,I),Y=U[0],J=U[1];kQ1(Y,function(Q,K){if(Q)return J(Q);let q=K.tries;(function G(){try{let H=IV0(K);x1.stat(H,function(W){if(!W){if(q-- >0)return G();return J(Error("Could not get a unique tmp filename, max tries reached "+H))}J(null,H)})}catch(H){J(H)}})()})}function oy($){let I=wJ($),U=I[0],Y=uQ1(U),J=Y.tries;do{let Q=IV0(Y);try{x1.statSync(Q)}catch(K){return Q}}while(J-- >0);throw Error("Could not get a unique tmp filename, max tries reached")}function RQ1($,I){let U=wJ($,I),Y=U[0],J=U[1];ly(Y,function(K,q){if(K)return J(K);x1.open(q,tW0,Y.mode||384,function(H,W){if(H)return J(H);if(Y.discardDescriptor)return x1.close(W,function(w){return J(w,q,void 0,dy(q,-1,Y,!1))});else{let V=Y.discardDescriptor||Y.detachDescriptor;J(null,q,W,dy(q,V?-1:W,Y,!1))}})})}function CQ1($){let I=wJ($),U=I[0],Y=U.discardDescriptor||U.detachDescriptor,J=oy(U),Q=x1.openSync(J,tW0,U.mode||384);if(U.discardDescriptor)x1.closeSync(Q),Q=void 0;return{name:J,fd:Q,removeCallback:dy(J,Y?-1:Q,U,!0)}}function jQ1($,I){let U=wJ($,I),Y=U[0],J=U[1];ly(Y,function(K,q){if(K)return J(K);x1.mkdir(q,Y.mode||448,function(H){if(H)return J(H);J(null,q,$V0(q,Y,!1))})})}function _Q1($){let I=wJ($),U=I[0],Y=oy(U);return x1.mkdirSync(Y,U.mode||448),{name:Y,removeCallback:$V0(Y,U,!0)}}function SQ1($,I){let U=function(Y){if(Y&&!my(Y))return I(Y);I()};if(0<=$[0])x1.close($[0],function(){x1.unlink($[1],U)});else x1.unlink($[1],U)}function gQ1($){let I=null;try{if(0<=$[0])x1.closeSync($[0])}catch(U){if(!fQ1(U)&&!my(U))throw U}finally{try{x1.unlinkSync($[1])}catch(U){if(!my(U))I=U}}if(I!==null)throw I}function dy($,I,U,Y){let J=RL(gQ1,[I,$],Y),Q=RL(SQ1,[I,$],Y,J);if(!U.keep)VJ.unshift(J);return Y?J:Q}function $V0($,I,U){let Y=I.unsafeCleanup?vQ1:x1.rmdir.bind(x1),J=I.unsafeCleanup?eW0:aW0,Q=RL(J,$,U),K=RL(Y,$,U,Q);if(!I.keep)VJ.unshift(Q);return U?Q:K}function RL($,I,U,Y){let J=!1;return function Q(K){if(!J){let q=Y||Q,G=VJ.indexOf(q);if(G>=0)VJ.splice(G,1);if(J=!0,U||$===aW0||$===eW0)return $(I);else return $(I,K||function(){})}}}function yQ1(){if(!sW0)return;while(VJ.length)try{VJ[0]()}catch($){}}function mW0($){let I=[],U=null;try{U=dW0.randomBytes($)}catch(Y){U=dW0.pseudoRandomBytes($)}for(let Y=0;Y<$;Y++)I.push("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"[U[Y]%62]);return I.join("")}function o6($){return typeof $>"u"}function wJ($,I){if(typeof $==="function")return[{},$];if(o6($))return[{},I];let U={};for(let Y of Object.getOwnPropertyNames($))U[Y]=$[Y];return[U,I]}function hQ1($,I,U){let Y=x4.isAbsolute($)?$:x4.join(I,$);x1.stat(Y,function(J){if(J)x1.realpath(x4.dirname(Y),function(Q,K){if(Q)return U(Q);U(null,x4.join(K,x4.basename(Y)))});else x1.realpath(Y,U)})}function xQ1($,I){let U=x4.isAbsolute($)?$:x4.join(I,$);try{return x1.statSync(U),x1.realpathSync(U)}catch(Y){let J=x1.realpathSync(x4.dirname(U));return x4.join(J,x4.basename(U))}}function IV0($){let I=$.tmpdir;if(!o6($.name))return x4.join(I,$.dir,$.name);if(!o6($.template))return x4.join(I,$.dir,$.template).replace(rW0,mW0(6));let U=[$.prefix?$.prefix:"tmp","-",process.pid,"-",mW0(12),$.postfix?"-"+$.postfix:""].join("");return x4.join(I,$.dir,U)}function cy($,I){if(typeof I!=="string")throw Error(`${$} option must be a string, got "${typeof I}".`);if(I.includes(".."))throw Error("Relative value not allowed");return I}function UV0($){if(!o6($.name)){let I=$.name;if(x4.isAbsolute(I))throw Error(`name option must not contain an absolute path, found "${I}".`);let U=x4.basename(I);if(U===".."||U==="."||U!==I)throw Error(`name option must not contain a path, found "${I}".`)}if(!o6($.template)){if(typeof $.template!=="string")throw Error(`template option must be a string, got "${typeof $.template}".`);if(!$.template.match(rW0))throw Error(`Invalid template, found "${$.template}".`)}if(!o6($.tries)&&isNaN($.tries)||$.tries<0)throw Error(`Invalid tries, found "${$.tries}".`);$.tries=o6($.name)?$.tries||3:1,$.keep=!!$.keep,$.detachDescriptor=!!$.detachDescriptor,$.discardDescriptor=!!$.discardDescriptor,$.unsafeCleanup=!!$.unsafeCleanup,$.prefix=o6($.prefix)?"":cy("prefix",$.prefix),$.postfix=o6($.postfix)?"":cy("postfix",$.postfix),$.template=o6($.template)?void 0:cy("template",$.template)}function lW0($,I,U,Y){if(o6(I))return Y(null);hQ1(I,U,function(J,Q){if(J)return Y(J);let K=x4.relative(U,Q);if(K.startsWith("..")||x4.isAbsolute(K))return Y(Error(`${$} option must be relative to "${U}", found "${K}".`));Y(null,K)})}function oW0($,I,U){if(o6(I))return;let Y=xQ1(I,U),J=x4.relative(U,Y);if(J.startsWith("..")||x4.isAbsolute(J))throw ELine truncated
\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"},ibm1163:"cp1163",csiLine truncated
\v\f\r\x0E\x0F\x10ỨỰỲỶỸÝỴ\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ`},georgianacademy:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"},viscii:{type:"_sbcs",chars:`\x00\x01Ẳ\x03\x04ẴẪ\x07\b
\v\f\r\x0E\x0F\x10\x11\x12\x13Ỷ\x15\x16\x17\x18Ỹ\x1A\x1B\x1C\x1DỴ\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ`},iso646cn:{type:"_sbcs",chars:`\x00\x01\x02\x03\x04\x05\x06\x07\b
\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},iso646jp:{type:"_sbcs",chars:`\x00\x01\x02\x03\x04\x05\x06\x07\b
\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}});var kw0=O((Oq1)=>{var rh=f5().Buffer;Oq1._dbcs=i5;var H6=-1,xw0=-2,x$=-10,g6=-1000,AJ=Array(256),UG=-1;for(IG=0;IG<256;IG++)AJ[IG]=H6;var IG;function i5($,I){if(this.encodingName=$.encodingName,!$)throw Error("DBCS codec is called without the data.");if(!$.table)throw Error("Encoding '"+this.encodingName+"' has no data.");var U=$.table();this.decodeTables=[],this.decodeTables[0]=AJ.slice(0),this.decodeTableSeq=[];for(var Y=0;Y<U.length;Y++)this._addDecodeChunk(U[Y]);if(typeof $.gb18030==="function"){this.gb18030=$.gb18030();var J=this.decodeTables.length;this.decodeTables.push(AJ.slice(0));var Q=this.decodeTables.length;this.decodeTables.push(AJ.slice(0));var K=this.decodeTables[0];for(var Y=129;Y<=254;Y++){var q=this.decodeTables[g6-K[Y]];for(var G=48;G<=57;G++){if(q[G]===H6)q[G]=g6-J;else if(q[G]>g6)throw Error("gb18030 decode tables conflict at byte 2");var H=this.decodeTables[g6-q[G]];for(var W=129;W<=254;W++){if(H[W]===H6)H[W]=g6-Q;else if(H[W]===g6-Q)continue;else if(H[W]>g6)throw Error("gb18030 decode tables conflict at byte 3");var V=this.decodeTables[g6-H[W]];for(var w=48;w<=57;w++)if(V[w]===H6)V[w]=xw0}}}}this.defaultCharUnicode=I.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var Z={};if($.encodeSkipVals)for(var Y=0;Y<$.encodeSkipVals.length;Y++){var z=$.encodeSkipVals[Y];if(typeof z==="number")Z[z]=!0;else for(var G=z.from;G<=z.to;G++)Z[G]=!0}if(this._fillEncodeTable(0,0,Z),$.encodeAdd){for(var L in $.encodeAdd)if(Object.prototype.hasOwnProperty.call($.encodeAdd,L))this._setEncodeChar(L.charCodeAt(0),$.encodeAdd[L])}if(this.defCharSB=this.encodeTable[0][I.defaultCharSingleByte.charCodeAt(0)],this.defCharSB===H6)this.defCharSB=this.encodeTable[0]["?"];if(this.defCharSB===H6)this.defCharSB=63}i5.prototype.encoder=sL;i5.prototype.decoder=th;i5.prototype._getDecodeTrieNode=function($){var I=[];for(;$>0;$>>>=8)I.push($&255);if(I.length==0)I.push(0);var U=this.decodeTables[0];for(var Y=I.length-1;Y>0;Y--){var J=U[I[Y]];if(J==H6)U[I[Y]]=g6-this.decodeTables.length,this.decodeTables.push(U=AJ.slice(0));else if(J<=g6)U=this.decodeTables[g6-J];else throw Error("Overwrite byte in "+this.encodingName+", addr: "+$.toString(16))}return U};i5.prototype._addDecodeChunk=function($){var I=parseInt($[0],16),U=this._getDecodeTrieNode(I);I=I&255;for(var Y=1;Y<$.length;Y++){var J=$[Y];if(typeof J==="string")for(var Q=0;Q<J.length;){var K=J.charCodeAt(Q++);if(K>=55296&&K<56320){var q=J.charCodeAt(Q++);if(q>=56320&&q<57344)U[I++]=65536+(K-55296)*1024+(q-56320);else throw Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+$[0])}else if(K>4080&&K<=4095){var G=4095-K+2,H=[];for(var W=0;W<G;W++)H.push(J.charCodeAt(Q++));U[I++]=x$-this.decodeTableSeq.length,this.decodeTableSeq.push(H)}else U[I++]=K}else if(typeof J==="number"){var V=U[I-1]+1;for(var Q=0;Q<J;Q++)U[I++]=V++}else throw Error("Incorrect type '"+typeof J+"' given in "+this.encodingName+" at chunk "+$[0])}if(I>255)throw Error("Incorrect chunk in "+this.encoLine truncated
`)}var DI=($)=>(I,U,Y,J)=>{let Q=Y?{...Y,async:!1}:{async:!1},K=I._zod.run({value:U,issues:[]},Q);if(K instanceof Promise)throw new K8;if(K.issues.length){let q=new(J?.Err??$)(K.issues.map((G)=>A6(G,Q,w4())));throw nG(q,J?.callee),q}return K.value},cJ=DI(x6),OI=($)=>async(I,U,Y,J)=>{let Q=Y?{...Y,async:!0}:{async:!0},K=I._zod.run({value:U,issues:[]},Q);if(K instanceof Promise)K=await K;if(K.issues.length){let q=new(J?.Err??$)(K.issues.map((G)=>A6(G,Q,w4())));throw nG(q,J?.callee),q}return K.value},dJ=OI(x6),FI=($)=>(I,U,Y)=>{let J=Y?{...Y,async:!1}:{async:!1},Q=I._zod.run({value:U,issues:[]},J);if(Q instanceof Promise)throw new K8;return Q.issues.length?{success:!1,error:new($??iJ)(Q.issues.map((K)=>A6(K,J,w4())))}:{success:!0,data:Q.value}},NI=FI(x6),MI=($)=>async(I,U,Y)=>{let J=Y?{...Y,async:!0}:{async:!0},Q=I._zod.run({value:U,issues:[]},J);if(Q instanceof Promise)Q=await Q;return Q.issues.length?{success:!1,error:new $(Q.issues.map((K)=>A6(K,J,w4())))}:{success:!0,data:Q.value}},mJ=MI(x6),pG=($)=>(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return DI($)(I,U,J)},vk=pG(x6),cG=($)=>(I,U,Y)=>{return DI($)(I,U,Y)},Rk=cG(x6),dG=($)=>async(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return OI($)(I,U,J)},Ck=dG(x6),mG=($)=>async(I,U,Y)=>{return OI($)(I,U,Y)},jk=mG(x6),lG=($)=>(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return FI($)(I,U,J)},_k=lG(x6),oG=($)=>(I,U,Y)=>{return FI($)(I,U,Y)},Sk=oG(x6),rG=($)=>async(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return MI($)(I,U,J)},gk=rG(x6),tG=($)=>async(I,U,Y)=>{return MI($)(I,U,Y)},yk=tG(x6);var e6={};o8(e6,{xid:()=>UO,uuid7:()=>gL0,uuid6:()=>SL0,uuid4:()=>_L0,uuid:()=>P7,uppercase:()=>vO,unicodeEmail:()=>hk,undefined:()=>EO,ulid:()=>IO,time:()=>OO,string:()=>NO,sha512_hex:()=>$D0,sha512_base64url:()=>UD0,sha512_base64:()=>ID0,sha384_hex:()=>aL0,sha384_base64url:()=>eL0,sha384_base64:()=>sL0,sha256_hex:()=>oL0,sha256_base64url:()=>tL0,sha256_base64:()=>rL0,sha1_hex:()=>dL0,sha1_base64url:()=>lL0,sha1_base64:()=>mL0,rfc5322Email:()=>hL0,number:()=>lJ,null:()=>TO,nanoid:()=>JO,md5_hex:()=>nL0,md5_base64url:()=>cL0,md5_base64:()=>pL0,mac:()=>VO,lowercase:()=>BO,ksuid:()=>YO,ipv6:()=>WO,ipv4:()=>HO,integer:()=>AO,idnEmail:()=>xL0,httpProtocol:()=>zO,html5Email:()=>yL0,hostname:()=>fL0,hex:()=>iL0,guid:()=>KO,extendedDuration:()=>jL0,emoji:()=>GO,email:()=>qO,e164:()=>LO,duration:()=>QO,domain:()=>bL0,datetime:()=>FO,date:()=>DO,cuid2:()=>$O,cuid:()=>eD,cidrv6:()=>ZO,cidrv4:()=>wO,browserEmail:()=>kL0,boolean:()=>PO,bigint:()=>MO,base64url:()=>aG,base64:()=>XO});var eD=/^[cC][0-9a-z]{6,}$/,$O=/^[0-9a-z]+$/,IO=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,UO=/^[0-9a-vA-V]{20}$/,YO=/^[A-Za-z0-9]{27}$/,JO=/^[a-zA-Z0-9_-]{21}$/,QO=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jL0=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,KO=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,P7=($)=>{if(!$)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${$}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},_L0=P7(4),SL0=P7(6),gL0=P7(7),qO=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,yL0=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,hL0=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,hk=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,xL0=hk,kL0=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,uL0="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function GO(){return new RegExp(uL0,"u")}var HO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,WO=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,VO=($)=>{let I=z$($??":");return new RegExp(`^(?:[0-9A-F]{2}${I}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${I}){5}[0-9a-f]{2}$`)},wO=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0Line truncated
\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_\`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������`},hproman8:{type:"_sbcs",chars:"€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¾—¼½ªº«■»±�"},macintosh:{type:"_sbcs",chars:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"}}});var kw0=O((Oq1)=>{var rh=f5().Buffer;Oq1._dbcs=i5;var H6=-1,xw0=-2,x$=-10,g6=-1000,PJ=Array(256),UG=-1;for(IG=0;IG<256;IG++)PJ[IG]=H6;var IG;function i5($,I){if(this.encodingName=$.encodingName,!$)throw Error("DBCS codec is called without the data.");if(!$.table)throw Error("Encoding '"+this.encodingName+"' has no data.");var U=$.table();this.decodeTables=[],this.decodeTables[0]=PJ.slice(0),this.decodeTableSeq=[];for(var Y=0;Y<U.length;Y++)this._addDecodeChunk(U[Y]);if(typeof $.gb18030==="function"){this.gb18030=$.gb18030();var J=this.decodeTables.length;this.decodeTables.push(PJ.slice(0));var Q=this.decodeTables.length;this.decodeTables.push(PJ.slice(0));var K=this.decodeTables[0];for(var Y=129;Y<=254;Y++){var q=this.decodeTables[g6-K[Y]];for(var G=48;G<=57;G++){if(q[G]===H6)q[G]=g6-J;else if(q[G]>g6)throw Error("gb18030 decode tables conflict at byte 2");var H=this.decodeTables[g6-q[G]];for(var W=129;W<=254;W++){if(H[W]===H6)H[W]=g6-Q;else if(H[W]===g6-Q)continue;else if(H[W]>g6)throw Error("gb18030 decode tables conflict at byte 3");var V=this.decodeTables[g6-H[W]];for(var w=48;w<=57;w++)if(V[w]===H6)V[w]=xw0}}}}this.defaultCharUnicode=I.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var Z={};if($.encodeSkipVals)for(var Y=0;Y<$.encodeSkipVals.length;Y++){var z=$.encodeSkipVals[Y];if(typeof z==="number")Z[z]=!0;else for(var G=z.from;G<=z.to;G++)Z[G]=!0}if(this._fillEncodeTable(0,0,Z),$.encodeAdd){for(var L in $.encodeAdd)if(Object.prototype.hasOwnProperty.call($.encodeAdd,L))this._setEncodeChar(L.charCodeAt(0),$.encodeAdd[L])}if(this.defCharSB=this.encodeTable[0][I.defaultCharSingleByte.charCodeAt(0)],this.defCharSB===H6)this.defCharSB=this.encodeTable[0]["?"];if(this.defCharSB===H6)this.defCharSB=63}i5.prototype.encoder=sL;i5.prototype.decoder=th;i5.prototype._getDecodeTrieNode=function($){var I=[];for(;$>0;$>>>=8)I.push($&255);if(I.length==0)I.push(0);var U=this.decodeTables[0];for(var Y=I.length-1;Y>0;Y--){var J=U[I[Y]];if(J==H6)U[I[Y]]=g6-this.decodeTables.length,this.decodeTables.push(U=PJ.slice(0));else if(J<=g6)U=this.decodeTables[g6-J];else throw Error("Overwrite byte in "+this.encodingName+", addr: "+$.toString(16))}return U};i5.prototype._addDecodeChunk=function($){var I=parseInt($[0],16),U=this._getDecodeTrieNode(I);I=I&255;for(var Y=1;Y<$.length;Y++){var J=$[Y];if(typeof J==="string")for(var Q=0;Q<J.length;){var K=J.charCodeAt(Q++);if(K>=55296&&K<56320){var q=J.charCodeAt(Q++);if(q>=56320&&q<57344)U[I++]=65536+(K-55296)*1024+(q-56320);else throw Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+$[0])}else if(K>4080&&K<=4095){var G=4095-K+2,H=[];for(var W=0;W<G;W++)H.push(J.charCodeAt(Q++));U[I++]=x$-this.decodeTableSeq.length,this.decodeTableSeq.push(H)}else U[I++]=K}else if(typeof J==="number"){var V=U[I-1]+1;for(var Q=0;Q<J;Q++)U[I++]=V++}else throw Error("Incorrect type '"+typeof J+"' given in "+this.encodingName+" at chunk "+$[0])}if(I>255)throw Error("Incorrect chunk in "+this.encoLine truncated
`)}var OI=($)=>(I,U,Y,J)=>{let Q=Y?{...Y,async:!1}:{async:!1},K=I._zod.run({value:U,issues:[]},Q);if(K instanceof Promise)throw new K8;if(K.issues.length){let q=new(J?.Err??$)(K.issues.map((G)=>A6(G,Q,w4())));throw nG(q,J?.callee),q}return K.value},cJ=OI(x6),FI=($)=>async(I,U,Y,J)=>{let Q=Y?{...Y,async:!0}:{async:!0},K=I._zod.run({value:U,issues:[]},Q);if(K instanceof Promise)K=await K;if(K.issues.length){let q=new(J?.Err??$)(K.issues.map((G)=>A6(G,Q,w4())));throw nG(q,J?.callee),q}return K.value},dJ=FI(x6),NI=($)=>(I,U,Y)=>{let J=Y?{...Y,async:!1}:{async:!1},Q=I._zod.run({value:U,issues:[]},J);if(Q instanceof Promise)throw new K8;return Q.issues.length?{success:!1,error:new($??iJ)(Q.issues.map((K)=>A6(K,J,w4())))}:{success:!0,data:Q.value}},MI=NI(x6),AI=($)=>async(I,U,Y)=>{let J=Y?{...Y,async:!0}:{async:!0},Q=I._zod.run({value:U,issues:[]},J);if(Q instanceof Promise)Q=await Q;return Q.issues.length?{success:!1,error:new $(Q.issues.map((K)=>A6(K,J,w4())))}:{success:!0,data:Q.value}},mJ=AI(x6),pG=($)=>(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return OI($)(I,U,J)},vk=pG(x6),cG=($)=>(I,U,Y)=>{return OI($)(I,U,Y)},Rk=cG(x6),dG=($)=>async(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return FI($)(I,U,J)},Ck=dG(x6),mG=($)=>async(I,U,Y)=>{return FI($)(I,U,Y)},jk=mG(x6),lG=($)=>(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return NI($)(I,U,J)},_k=lG(x6),oG=($)=>(I,U,Y)=>{return NI($)(I,U,Y)},Sk=oG(x6),rG=($)=>async(I,U,Y)=>{let J=Y?{...Y,direction:"backward"}:{direction:"backward"};return AI($)(I,U,J)},gk=rG(x6),tG=($)=>async(I,U,Y)=>{return AI($)(I,U,Y)},yk=tG(x6);var e6={};o8(e6,{xid:()=>UO,uuid7:()=>gL0,uuid6:()=>SL0,uuid4:()=>_L0,uuid:()=>T7,uppercase:()=>vO,unicodeEmail:()=>hk,undefined:()=>EO,ulid:()=>IO,time:()=>OO,string:()=>NO,sha512_hex:()=>$D0,sha512_base64url:()=>UD0,sha512_base64:()=>ID0,sha384_hex:()=>aL0,sha384_base64url:()=>eL0,sha384_base64:()=>sL0,sha256_hex:()=>oL0,sha256_base64url:()=>tL0,sha256_base64:()=>rL0,sha1_hex:()=>dL0,sha1_base64url:()=>lL0,sha1_base64:()=>mL0,rfc5322Email:()=>hL0,number:()=>lJ,null:()=>TO,nanoid:()=>JO,md5_hex:()=>nL0,md5_base64url:()=>cL0,md5_base64:()=>pL0,mac:()=>VO,lowercase:()=>BO,ksuid:()=>YO,ipv6:()=>WO,ipv4:()=>HO,integer:()=>AO,idnEmail:()=>xL0,httpProtocol:()=>zO,html5Email:()=>yL0,hostname:()=>fL0,hex:()=>iL0,guid:()=>KO,extendedDuration:()=>jL0,emoji:()=>GO,email:()=>qO,e164:()=>LO,duration:()=>QO,domain:()=>bL0,datetime:()=>FO,date:()=>DO,cuid2:()=>$O,cuid:()=>eD,cidrv6:()=>ZO,cidrv4:()=>wO,browserEmail:()=>kL0,boolean:()=>PO,bigint:()=>MO,base64url:()=>aG,base64:()=>XO});var eD=/^[cC][0-9a-z]{6,}$/,$O=/^[0-9a-z]+$/,IO=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,UO=/^[0-9a-vA-V]{20}$/,YO=/^[A-Za-z0-9]{27}$/,JO=/^[a-zA-Z0-9_-]{21}$/,QO=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jL0=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,KO=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,T7=($)=>{if(!$)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${$}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},_L0=T7(4),SL0=T7(6),gL0=T7(7),qO=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,yL0=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,hL0=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,hk=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,xL0=hk,kL0=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,uL0="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function GO(){return new RegExp(uL0,"u")}var HO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,WO=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,VO=($)=>{let I=z$($??":");return new RegExp(`^(?:[0-9A-F]{2}${I}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${I}){5}[0-9a-f]{2}$`)},wO=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0Line truncated
`).filter((Q)=>Q),Y=Math.min(...U.map((Q)=>Q.length-Q.trimStart().length)),J=U.map((Q)=>Q.slice(Y)).map((Q)=>" ".repeat(this.indent*2)+Q);for(let Q of J)this.content.push(Q)}compile(){let $=Function,I=this?.args,Y=[...(this?.content??[""]).map((J)=>` ${J}`)];return new $(...I,Y.join(`
`))}}var mO={major:4,minor:4,patch:3};var i0=o("$ZodType",($,I)=>{var U;$??($={}),$._zod.def=I,$._zod.bag=$._zod.bag||{},$._zod.version=mO;let Y=[...$._zod.def.checks??[]];if($._zod.traits.has("$ZodCheck"))Y.unshift($);for(let J of Y)for(let Q of J._zod.onattach)Q($);if(Y.length===0)(U=$._zod).deferred??(U.deferred=[]),$._zod.deferred?.push(()=>{$._zod.run=$._zod.parse});else{let J=(K,q,G)=>{let H=t5(K),W;for(let V of q){if(V._zod.def.when){if(tD(K))continue;if(!V._zod.def.when(K))continue}else if(H)continue;let w=K.issues.length,Z=V._zod.check(K);if(Z instanceof Promise&&G?.async===!1)throw new K8;if(W||Z instanceof Promise)W=(W??Promise.resolve()).then(async()=>{if(await Z,K.issues.length===w)return;if(!H)H=t5(K,w)});else{if(K.issues.length===w)continue;if(!H)H=t5(K,w)}}if(W)return W.then(()=>{return K});return K},Q=(K,q,G)=>{if(t5(K))return K.aborted=!0,K;let H=J(q,Y,G);if(H instanceof Promise){if(G.async===!1)throw new K8;return H.then((W)=>$._zod.parse(W,G))}return $._zod.parse(H,G)};$._zod.run=(K,q)=>{if(q.skipChecks)return $._zod.parse(K,q);if(q.direction==="backward"){let H=$._zod.parse({value:K.value,issues:[]},{...q,skipChecks:!0});if(H instanceof Promise)return H.then((W)=>{return Q(W,K,q)});return Q(H,K,q)}let G=$._zod.parse(K,q);if(G instanceof Promise){if(q.async===!1)throw new K8;return G.then((H)=>J(H,Y,q))}return J(G,Y,q)}}e0($,"~standard",()=>({validate:(J)=>{try{let Q=NI($,J);return Q.success?{value:Q.data}:{issues:Q.error?.issues}}catch(Q){return mJ($,J).then((K)=>K.success?{value:K.data}:{issues:K.error?.issues})}},vendor:"zod",version:1}))}),T7=o("$ZodString",($,I)=>{i0.init($,I),$._zod.pattern=[...$?._zod.bag?.patterns??[]].pop()??NO($._zod.bag),$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=String(U.value)}catch(J){}if(typeof U.value==="string")return U;return U.issues.push({expected:"string",code:"invalid_type",input:U.value,inst:$}),U}}),S1=o("$ZodStringFormat",($,I)=>{AI.init($,I),T7.init($,I)}),oO=o("$ZodGUID",($,I)=>{I.pattern??(I.pattern=KO),S1.init($,I)}),rO=o("$ZodUUID",($,I)=>{if(I.version){let Y={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[I.version];if(Y===void 0)throw Error(`Invalid UUID version: "${I.version}"`);I.pattern??(I.pattern=P7(Y))}else I.pattern??(I.pattern=P7());S1.init($,I)}),tO=o("$ZodEmail",($,I)=>{I.pattern??(I.pattern=qO),S1.init($,I)}),aO=o("$ZodURL",($,I)=>{S1.init($,I),$._zod.check=(U)=>{try{let Y=U.value.trim();if(!I.normalize&&I.protocol?.source===zO.source){if(!/^https?:\/\//i.test(Y)){U.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:U.value,inst:$,continue:!I.abort});return}}let J=new URL(Y);if(I.hostname){if(I.hostname.lastIndex=0,!I.hostname.test(J.hostname))U.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:I.hostname.source,input:U.value,inst:$,continue:!I.abort})}if(I.protocol){if(I.protocol.lastIndex=0,!I.protocol.test(J.protocol.endsWith(":")?J.protocol.slice(0,-1):J.protocol))U.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:I.protocol.source,input:U.value,inst:$,continue:!I.abort})}if(I.normalize)U.value=J.href;else U.value=Y;return}catch(Y){U.issues.push({code:"invalid_format",format:"url",input:U.value,inst:$,continue:!I.abort})}}}),sO=o("$ZodEmoji",($,I)=>{I.pattern??(I.pattern=GO()),S1.init($,I)}),eO=o("$ZodNanoID",($,I)=>{I.pattern??(I.pattern=JO),S1.init($,I)}),$F=o("$ZodCUID",($,I)=>{I.pattern??(I.pattern=eD),S1.init($,I)}),IF=o("$ZodCUID2",($,I)=>{I.pattern??(I.pattern=$O),S1.init($,I)}),UF=o("$ZodULID",($,I)=>{I.pattern??(I.pattern=IO),S1.init($,I)}),YF=o("$ZodXID",($,I)=>{I.pattern??(I.pattern=UO),S1.init($,I)}),JF=o("$ZodKSUID",($,I)=>{I.pattern??(I.pattern=YO),S1.init($,I)}),QF=o("$ZodISODateTime",($,I)=>{I.pattern??(I.pattern=FO(I)),S1.init($,I)}),KF=o("$ZodISODate",($,I)=>{I.pattern??(I.pattern=DO),S1.init($,I)}),qF=o("$ZodISOTime",($,I)=>{I.pattern??(I.pattern=OO(I)),S1.init($,I)}),GF=o("$ZodISODuration",($,I)=>{I.pattern??(I.pattern=QO),S1.init($,I)}),HF=o("$ZodIPv4",($,I)=>{I.pattern??(I.pattern=HO),S1.init($,I),$._zod.bag.format="ipv4"}),WF=o("$ZodIPv6",($,I)=>{I.pattern??(I.pattern=WO),S1.init($,I),$._zod.bag.format="ipv6",$._zod.check=(U)=>{try{new URL(`http://[${U.value}]`)}catch{U.issues.push({code:"invalid_format",format:"ipv6",input:U.value,inst:$,continue:!I.abort})}}}),VF=o("$ZodMAC",($,I)=>{I.pattern??(I.pattern=VO(I.delimiter)),S1.init($,I),$._zod.bag.format="mac"}),wF=o("$ZodCIDRv4",($,I)=>{I.pattern??(I.pattern=wO),S1.init($,I)}),ZF=o("$ZodCIDRv6",($,I)=>{I.pattern??(I.pattern=ZO),S1.init($,I),$._zod.check=(U)=>{let Y=U.value.split("/");try{if(Y.length!==2)throw Error();let[J,Q]=Y;if(!Q)throw Error();let K=Number(Q);if(`${K}`!==Q)throw Error();if(K<0||K>128)throw Error();new URL(`http://[${J}]`)}catch{U.issues.push({code:"invalid_format",format:"cidrv6",input:U.value,inst:$,continue:!I.abort})}}});function XF($){if($==="")return!0;if(/\s/.test($))return!1;if($.length%4!==0)return!1;try{return atob($),!0}catch{return!1}} Line truncated
`))}}var mO={major:4,minor:4,patch:3};var i0=o("$ZodType",($,I)=>{var U;$??($={}),$._zod.def=I,$._zod.bag=$._zod.bag||{},$._zod.version=mO;let Y=[...$._zod.def.checks??[]];if($._zod.traits.has("$ZodCheck"))Y.unshift($);for(let J of Y)for(let Q of J._zod.onattach)Q($);if(Y.length===0)(U=$._zod).deferred??(U.deferred=[]),$._zod.deferred?.push(()=>{$._zod.run=$._zod.parse});else{let J=(K,q,G)=>{let H=a5(K),W;for(let V of q){if(V._zod.def.when){if(tD(K))continue;if(!V._zod.def.when(K))continue}else if(H)continue;let w=K.issues.length,Z=V._zod.check(K);if(Z instanceof Promise&&G?.async===!1)throw new K8;if(W||Z instanceof Promise)W=(W??Promise.resolve()).then(async()=>{if(await Z,K.issues.length===w)return;if(!H)H=a5(K,w)});else{if(K.issues.length===w)continue;if(!H)H=a5(K,w)}}if(W)return W.then(()=>{return K});return K},Q=(K,q,G)=>{if(a5(K))return K.aborted=!0,K;let H=J(q,Y,G);if(H instanceof Promise){if(G.async===!1)throw new K8;return H.then((W)=>$._zod.parse(W,G))}return $._zod.parse(H,G)};$._zod.run=(K,q)=>{if(q.skipChecks)return $._zod.parse(K,q);if(q.direction==="backward"){let H=$._zod.parse({value:K.value,issues:[]},{...q,skipChecks:!0});if(H instanceof Promise)return H.then((W)=>{return Q(W,K,q)});return Q(H,K,q)}let G=$._zod.parse(K,q);if(G instanceof Promise){if(q.async===!1)throw new K8;return G.then((H)=>J(H,Y,q))}return J(G,Y,q)}}e0($,"~standard",()=>({validate:(J)=>{try{let Q=MI($,J);return Q.success?{value:Q.data}:{issues:Q.error?.issues}}catch(Q){return mJ($,J).then((K)=>K.success?{value:K.data}:{issues:K.error?.issues})}},vendor:"zod",version:1}))}),E7=o("$ZodString",($,I)=>{i0.init($,I),$._zod.pattern=[...$?._zod.bag?.patterns??[]].pop()??NO($._zod.bag),$._zod.parse=(U,Y)=>{if(I.coerce)try{U.value=String(U.value)}catch(J){}if(typeof U.value==="string")return U;return U.issues.push({expected:"string",code:"invalid_type",input:U.value,inst:$}),U}}),S1=o("$ZodStringFormat",($,I)=>{PI.init($,I),E7.init($,I)}),oO=o("$ZodGUID",($,I)=>{I.pattern??(I.pattern=KO),S1.init($,I)}),rO=o("$ZodUUID",($,I)=>{if(I.version){let Y={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[I.version];if(Y===void 0)throw Error(`Invalid UUID version: "${I.version}"`);I.pattern??(I.pattern=T7(Y))}else I.pattern??(I.pattern=T7());S1.init($,I)}),tO=o("$ZodEmail",($,I)=>{I.pattern??(I.pattern=qO),S1.init($,I)}),aO=o("$ZodURL",($,I)=>{S1.init($,I),$._zod.check=(U)=>{try{let Y=U.value.trim();if(!I.normalize&&I.protocol?.source===zO.source){if(!/^https?:\/\//i.test(Y)){U.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:U.value,inst:$,continue:!I.abort});return}}let J=new URL(Y);if(I.hostname){if(I.hostname.lastIndex=0,!I.hostname.test(J.hostname))U.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:I.hostname.source,input:U.value,inst:$,continue:!I.abort})}if(I.protocol){if(I.protocol.lastIndex=0,!I.protocol.test(J.protocol.endsWith(":")?J.protocol.slice(0,-1):J.protocol))U.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:I.protocol.source,input:U.value,inst:$,continue:!I.abort})}if(I.normalize)U.value=J.href;else U.value=Y;return}catch(Y){U.issues.push({code:"invalid_format",format:"url",input:U.value,inst:$,continue:!I.abort})}}}),sO=o("$ZodEmoji",($,I)=>{I.pattern??(I.pattern=GO()),S1.init($,I)}),eO=o("$ZodNanoID",($,I)=>{I.pattern??(I.pattern=JO),S1.init($,I)}),$F=o("$ZodCUID",($,I)=>{I.pattern??(I.pattern=eD),S1.init($,I)}),IF=o("$ZodCUID2",($,I)=>{I.pattern??(I.pattern=$O),S1.init($,I)}),UF=o("$ZodULID",($,I)=>{I.pattern??(I.pattern=IO),S1.init($,I)}),YF=o("$ZodXID",($,I)=>{I.pattern??(I.pattern=UO),S1.init($,I)}),JF=o("$ZodKSUID",($,I)=>{I.pattern??(I.pattern=YO),S1.init($,I)}),QF=o("$ZodISODateTime",($,I)=>{I.pattern??(I.pattern=FO(I)),S1.init($,I)}),KF=o("$ZodISODate",($,I)=>{I.pattern??(I.pattern=DO),S1.init($,I)}),qF=o("$ZodISOTime",($,I)=>{I.pattern??(I.pattern=OO(I)),S1.init($,I)}),GF=o("$ZodISODuration",($,I)=>{I.pattern??(I.pattern=QO),S1.init($,I)}),HF=o("$ZodIPv4",($,I)=>{I.pattern??(I.pattern=HO),S1.init($,I),$._zod.bag.format="ipv4"}),WF=o("$ZodIPv6",($,I)=>{I.pattern??(I.pattern=WO),S1.init($,I),$._zod.bag.format="ipv6",$._zod.check=(U)=>{try{new URL(`http://[${U.value}]`)}catch{U.issues.push({code:"invalid_format",format:"ipv6",input:U.value,inst:$,continue:!I.abort})}}}),VF=o("$ZodMAC",($,I)=>{I.pattern??(I.pattern=VO(I.delimiter)),S1.init($,I),$._zod.bag.format="mac"}),wF=o("$ZodCIDRv4",($,I)=>{I.pattern??(I.pattern=wO),S1.init($,I)}),ZF=o("$ZodCIDRv6",($,I)=>{I.pattern??(I.pattern=ZO),S1.init($,I),$._zod.check=(U)=>{let Y=U.value.split("/");try{if(Y.length!==2)throw Error();let[J,Q]=Y;if(!Q)throw Error();let K=Number(Q);if(`${K}`!==Q)throw Error();if(K<0||K>128)throw Error();new URL(`http://[${J}]`)}catch{U.issues.push({code:"invalid_format",format:"cidrv6",input:U.value,inst:$,continue:!I.abort})}}});function XF($){if($==="")return!0;if(/\s/.test($))return!1;if($.length%4!==0)return!1;try{return atob($),!0}catch{return!1}} Line truncated
if (${A}.issues.length) {
if (${R} in input) {
payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
@@ -303,19 +303,19 @@ Unsupported type: `+$.type,"ENOTSUP");$._finish()})};S$.prototype._stat=function
newResult[${R}] = ${A}.value;
}
`)}Z.write("payload.value = newResult;"),Z.write("return payload;");let E=Z.compile();return(T,A)=>E(w,T,A)},Q,K=A7,q=!N7.jitless,H=q&&cD.value,W=I.catchall,V;$._zod.parse=(w,Z)=>{V??(V=Y.value);let z=w.value;if(!K(z))return w.issues.push({expected:"object",code:"invalid_type",input:z,inst:$}),w;if(q&&H&&Z?.async===!1&&Z.jitless!==!0){if(!Q)Q=J(I.shape);if(w=Q(w,Z),!W)return w;return Ju([],z,w,Z,V,$)}return U(w,Z)}});function nk($,I,U,Y){for(let Q of $)if(Q.issues.length===0)return I.value=Q.value,I;let J=$.filter((Q)=>!t5(Q));if(J.length===1)return I.value=J[0].value,J[0];return I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:$.map((Q)=>Q.issues.map((K)=>A6(K,Y,w4())))}),I}var aJ=o("$ZodUnion",($,I)=>{i0.init($,I),e0($._zod,"optin",()=>I.options.some((Y)=>Y._zod.optin==="optional")?"optional":void 0),e0($._zod,"optout",()=>I.options.some((Y)=>Y._zod.optout==="optional")?"optional":void 0),e0($._zod,"values",()=>{if(I.options.every((Y)=>Y._zod.values))return new Set(I.options.flatMap((Y)=>Array.from(Y._zod.values)));return}),e0($._zod,"pattern",()=>{if(I.options.every((Y)=>Y._zod.pattern)){let Y=I.options.map((J)=>J._zod.pattern);return new RegExp(`^(${Y.map((J)=>kJ(J.source)).join("|")})$`)}return});let U=I.options.length===1?I.options[0]._zod.run:null;$._zod.parse=(Y,J)=>{if(U)return U(Y,J);let Q=!1,K=[];for(let q of I.options){let G=q._zod.run({value:Y.value,issues:[]},J);if(G instanceof Promise)K.push(G),Q=!0;else{if(G.issues.length===0)return G;K.push(G)}}if(!Q)return nk(K,Y,$,J);return Promise.all(K).then((q)=>{return nk(q,Y,$,J)})}});function pk($,I,U,Y){let J=$.filter((Q)=>Q.issues.length===0);if(J.length===1)return I.value=J[0].value,I;if(J.length===0)I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:$.map((Q)=>Q.issues.map((K)=>A6(K,Y,w4())))});else I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:[],inclusive:!1});return I}var SF=o("$ZodXor",($,I)=>{aJ.init($,I),I.inclusive=!1;let U=I.options.length===1?I.options[0]._zod.run:null;$._zod.parse=(Y,J)=>{if(U)return U(Y,J);let Q=!1,K=[];for(let q of I.options){let G=q._zod.run({value:Y.value,issues:[]},J);if(G instanceof Promise)K.push(G),Q=!0;else K.push(G)}if(!Q)return pk(K,Y,$,J);return Promise.all(K).then((q)=>{return pk(q,Y,$,J)})}}),gF=o("$ZodDiscriminatedUnion",($,I)=>{I.inclusive=!1,aJ.init($,I);let U=$._zod.parse;e0($._zod,"propValues",()=>{let J={};for(let Q of I.options){let K=Q._zod.propValues;if(!K||Object.keys(K).length===0)throw Error(`Invalid discriminated union option at index "${I.options.indexOf(Q)}"`);for(let[q,G]of Object.entries(K)){if(!J[q])J[q]=new Set;for(let H of G)J[q].add(H)}}return J});let Y=zI(()=>{let J=I.options,Q=new Map;for(let K of J){let q=K._zod.propValues?.[I.discriminator];if(!q||q.size===0)throw Error(`Invalid discriminated union option at index "${I.options.indexOf(K)}"`);for(let G of q){if(Q.has(G))throw Error(`Duplicate discriminator value "${String(G)}"`);Q.set(G,K)}}return Q});$._zod.parse=(J,Q)=>{let K=J.value;if(!A7(K))return J.issues.push({code:"invalid_type",expected:"object",input:K,inst:$}),J;let q=Y.value.get(K?.[I.discriminator]);if(q)return q._zod.run(J,Q);if(I.unionFallback||Q.direction==="backward")return U(J,Q);return J.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:I.discriminator,options:Array.from(Y.value.keys()),input:K,path:[I.discriminator],inst:$}),J}}),yF=o("$ZodIntersection",($,I)=>{i0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value,Q=I.left._zod.run({value:J,issues:[]},Y),K=I.right._zod.run({value:J,issues:[]},Y);if(Q instanceof Promise||K instanceof Promise)return Promise.all([Q,K]).then(([G,H])=>{return ck(U,G,H)});return ck(U,Q,K)}});function lO($,I){if($===I)return{valid:!0,data:$};if($ instanceof Date&&I instanceof Date&&+$===+I)return{valid:!0,data:$};if(r5($)&&r5(I)){let U=Object.keys(I),Y=Object.keys($).filter((Q)=>U.indexOf(Q)!==-1),J={...$,...I};for(let Q of Y){let K=lO($[Q],I[Q]);if(!K.valid)return{valid:!1,mergeErrorPath:[Q,...K.mergeErrorPath]};J[Q]=K.data}return{valid:!0,data:J}}if(Array.isArray($)&&Array.isArray(I)){if($.length!==I.length)return{valid:!1,mergeErrorPath:[]};let U=[];for(let Y=0;Y<$.length;Y++){let J=$[Y],Q=I[Y],K=lO(J,Q);if(!K.valid)return{valid:!1,mergeErrorPath:[Y,...K.mergeErrorPath]};U.push(K.data)}return{valid:!0,data:U}}return{valid:!1,mergeErrorPath:[]}}function ck($,I,U){let Y=new Map,J;for(let q of I.issues)if(q.code==="unrecognized_keys"){J??(J=q);for(let G of q.keys){if(!Y.has(G))Y.set(G,{});Y.get(G).l=!0}}else $.issues.push(q);for(let q of U.issues)if(q.code==="unrecognized_keys")for(let G of q.keys){if(!Y.has(G))Y.set(G,{});Y.get(G).r=!0}else $.issues.push(q);let Q=[...Y].filter(([,q])=>q.l&&q.r).map(([q])=>q);if(Q.length&&J)$.issues.push({...J,keys:Q});if(t5($))return $;let K=lO(I.value,U.value);if(!K.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(K.mergeErrorPath)}`);return $.value=K.data,$}var qH=o("$ZodTuple",($,I)=>{i0. Line truncated
`)}Z.write("payload.value = newResult;"),Z.write("return payload;");let E=Z.compile();return(T,A)=>E(w,T,A)},Q,K=P7,q=!M7.jitless,H=q&&cD.value,W=I.catchall,V;$._zod.parse=(w,Z)=>{V??(V=Y.value);let z=w.value;if(!K(z))return w.issues.push({expected:"object",code:"invalid_type",input:z,inst:$}),w;if(q&&H&&Z?.async===!1&&Z.jitless!==!0){if(!Q)Q=J(I.shape);if(w=Q(w,Z),!W)return w;return Ju([],z,w,Z,V,$)}return U(w,Z)}});function nk($,I,U,Y){for(let Q of $)if(Q.issues.length===0)return I.value=Q.value,I;let J=$.filter((Q)=>!a5(Q));if(J.length===1)return I.value=J[0].value,J[0];return I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:$.map((Q)=>Q.issues.map((K)=>A6(K,Y,w4())))}),I}var aJ=o("$ZodUnion",($,I)=>{i0.init($,I),e0($._zod,"optin",()=>I.options.some((Y)=>Y._zod.optin==="optional")?"optional":void 0),e0($._zod,"optout",()=>I.options.some((Y)=>Y._zod.optout==="optional")?"optional":void 0),e0($._zod,"values",()=>{if(I.options.every((Y)=>Y._zod.values))return new Set(I.options.flatMap((Y)=>Array.from(Y._zod.values)));return}),e0($._zod,"pattern",()=>{if(I.options.every((Y)=>Y._zod.pattern)){let Y=I.options.map((J)=>J._zod.pattern);return new RegExp(`^(${Y.map((J)=>kJ(J.source)).join("|")})$`)}return});let U=I.options.length===1?I.options[0]._zod.run:null;$._zod.parse=(Y,J)=>{if(U)return U(Y,J);let Q=!1,K=[];for(let q of I.options){let G=q._zod.run({value:Y.value,issues:[]},J);if(G instanceof Promise)K.push(G),Q=!0;else{if(G.issues.length===0)return G;K.push(G)}}if(!Q)return nk(K,Y,$,J);return Promise.all(K).then((q)=>{return nk(q,Y,$,J)})}});function pk($,I,U,Y){let J=$.filter((Q)=>Q.issues.length===0);if(J.length===1)return I.value=J[0].value,I;if(J.length===0)I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:$.map((Q)=>Q.issues.map((K)=>A6(K,Y,w4())))});else I.issues.push({code:"invalid_union",input:I.value,inst:U,errors:[],inclusive:!1});return I}var SF=o("$ZodXor",($,I)=>{aJ.init($,I),I.inclusive=!1;let U=I.options.length===1?I.options[0]._zod.run:null;$._zod.parse=(Y,J)=>{if(U)return U(Y,J);let Q=!1,K=[];for(let q of I.options){let G=q._zod.run({value:Y.value,issues:[]},J);if(G instanceof Promise)K.push(G),Q=!0;else K.push(G)}if(!Q)return pk(K,Y,$,J);return Promise.all(K).then((q)=>{return pk(q,Y,$,J)})}}),gF=o("$ZodDiscriminatedUnion",($,I)=>{I.inclusive=!1,aJ.init($,I);let U=$._zod.parse;e0($._zod,"propValues",()=>{let J={};for(let Q of I.options){let K=Q._zod.propValues;if(!K||Object.keys(K).length===0)throw Error(`Invalid discriminated union option at index "${I.options.indexOf(Q)}"`);for(let[q,G]of Object.entries(K)){if(!J[q])J[q]=new Set;for(let H of G)J[q].add(H)}}return J});let Y=LI(()=>{let J=I.options,Q=new Map;for(let K of J){let q=K._zod.propValues?.[I.discriminator];if(!q||q.size===0)throw Error(`Invalid discriminated union option at index "${I.options.indexOf(K)}"`);for(let G of q){if(Q.has(G))throw Error(`Duplicate discriminator value "${String(G)}"`);Q.set(G,K)}}return Q});$._zod.parse=(J,Q)=>{let K=J.value;if(!P7(K))return J.issues.push({code:"invalid_type",expected:"object",input:K,inst:$}),J;let q=Y.value.get(K?.[I.discriminator]);if(q)return q._zod.run(J,Q);if(I.unionFallback||Q.direction==="backward")return U(J,Q);return J.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:I.discriminator,options:Array.from(Y.value.keys()),input:K,path:[I.discriminator],inst:$}),J}}),yF=o("$ZodIntersection",($,I)=>{i0.init($,I),$._zod.parse=(U,Y)=>{let J=U.value,Q=I.left._zod.run({value:J,issues:[]},Y),K=I.right._zod.run({value:J,issues:[]},Y);if(Q instanceof Promise||K instanceof Promise)return Promise.all([Q,K]).then(([G,H])=>{return ck(U,G,H)});return ck(U,Q,K)}});function lO($,I){if($===I)return{valid:!0,data:$};if($ instanceof Date&&I instanceof Date&&+$===+I)return{valid:!0,data:$};if(t5($)&&t5(I)){let U=Object.keys(I),Y=Object.keys($).filter((Q)=>U.indexOf(Q)!==-1),J={...$,...I};for(let Q of Y){let K=lO($[Q],I[Q]);if(!K.valid)return{valid:!1,mergeErrorPath:[Q,...K.mergeErrorPath]};J[Q]=K.data}return{valid:!0,data:J}}if(Array.isArray($)&&Array.isArray(I)){if($.length!==I.length)return{valid:!1,mergeErrorPath:[]};let U=[];for(let Y=0;Y<$.length;Y++){let J=$[Y],Q=I[Y],K=lO(J,Q);if(!K.valid)return{valid:!1,mergeErrorPath:[Y,...K.mergeErrorPath]};U.push(K.data)}return{valid:!0,data:U}}return{valid:!1,mergeErrorPath:[]}}function ck($,I,U){let Y=new Map,J;for(let q of I.issues)if(q.code==="unrecognized_keys"){J??(J=q);for(let G of q.keys){if(!Y.has(G))Y.set(G,{});Y.get(G).l=!0}}else $.issues.push(q);for(let q of U.issues)if(q.code==="unrecognized_keys")for(let G of q.keys){if(!Y.has(G))Y.set(G,{});Y.get(G).r=!0}else $.issues.push(q);let Q=[...Y].filter(([,q])=>q.l&&q.r).map(([q])=>q);if(Q.length&&J)$.issues.push({...J,keys:Q});if(a5($))return $;let K=lO(I.value,U.value);if(!K.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(K.mergeErrorPath)}`);return $.value=K.data,$}var qH=o("$ZodTuple",($,I)=>{i0. Line truncated
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let K of $.seen.entries()){let q=K[1];if(I===K[0]){Q(K);continue}if($.external){let H=$.external.registry.get(K[0])?.id;if(I!==K[0]&&H){Q(K);continue}}if($.metadataRegistry.get(K[0])?.id){Q(K);continue}if(q.cycle){Q(K);continue}if(q.count>1){if($.reused==="ref"){Q(K);continue}}}}function I9($,I){let U=$.seen.get(I);if(!U)throw Error("Unprocessed schema. This is a bug in Zod.");let Y=(q)=>{let G=$.seen.get(q);if(G.ref===null)return;let H=G.def??G.schema,W={...H},V=G.ref;if(G.ref=null,V){Y(V);let Z=$.seen.get(V),z=Z.schema;if(z.$ref&&($.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"))H.allOf=H.allOf??[],H.allOf.push(z);else Object.assign(H,z);if(Object.assign(H,W),q._zod.parent===V)for(let D in H){if(D==="$ref"||D==="allOf")continue;if(!(D in W))delete H[D]}if(z.$ref&&Z.def)for(let D in H){if(D==="$ref"||D==="allOf")continue;if(D in Z.def&&JSON.stringify(H[D])===JSON.stringify(Z.def[D]))delete H[D]}}let w=q._zod.parent;if(w&&w!==V){Y(w);let Z=$.seen.get(w);if(Z?.schema.$ref){if(H.$ref=Z.schema.$ref,Z.def)for(let z in H){if(z==="$ref"||z==="allOf")continue;if(z in Z.def&&JSON.stringify(H[z])===JSON.stringify(Z.def[z]))delete H[z]}}}$.override({zodSchema:q,jsonSchema:H,path:G.path??[]})};for(let q of[...$.seen.entries()].reverse())Y(q[0]);let J={};if($.target==="draft-2020-12")J.$schema="https://json-schema.org/draft/2020-12/schema";else if($.target==="draft-07")J.$schema="http://json-schema.org/draft-07/schema#";else if($.target==="draft-04")J.$schema="http://json-schema.org/draft-04/schema#";else if($.target==="openapi-3.0");if($.external?.uri){let q=$.external.registry.get(I)?.id;if(!q)throw Error("Schema is missing an `id` property");J.$id=$.external.uri(q)}Object.assign(J,U.def??U.schema);let Q=$.metadataRegistry.get(I)?.id;if(Q!==void 0&&J.id===Q)delete J.id;let K=$.external?.defs??{};for(let q of $.seen.entries()){let G=q[1];if(G.def&&G.defId){if(G.def.id===G.defId)delete G.def.id;K[G.defId]=G.def}}if($.external);else if(Object.keys(K).length>0)if($.target==="draft-2020-12")J.$defs=K;else J.definitions=K;try{let q=JSON.parse(JSON.stringify(J));return Object.defineProperty(q,"~standard",{value:{...I["~standard"],jsonSchema:{input:kI(I,"input",$.processors),output:kI(I,"output",$.processors)}},enumerable:!1,writable:!1}),q}catch(q){throw Error("Error converting schema to JSON.")}}function T6($,I){let U=I??{seen:new Set};if(U.seen.has($))return!1;U.seen.add($);let Y=$._zod.def;if(Y.type==="transform")return!0;if(Y.type==="array")return T6(Y.element,U);if(Y.type==="set")return T6(Y.valueType,U);if(Y.type==="lazy")return T6(Y.getter(),U);if(Y.type==="promise"||Y.type==="optional"||Y.type==="nonoptional"||Y.type==="nullable"||Y.type==="readonly"||Y.type==="default"||Y.type==="prefault")return T6(Y.innerType,U);if(Y.type==="intersection")return T6(Y.left,U)||T6(Y.right,U);if(Y.type==="record"||Y.type==="map")return T6(Y.keyType,U)||T6(Y.valueType,U);if(Y.type==="pipe"){if($._zod.traits.has("$ZodCodec"))return!0;return T6(Y.in,U)||T6(Y.out,U)}if(Y.type==="object"){for(let J in Y.shape)if(T6(Y.shape[J],U))return!0;return!1}if(Y.type==="union"){for(let J of Y.options)if(T6(J,U))return!0;return!1}if(Y.type==="tuple"){for(let J of Y.items)if(T6(J,U))return!0;if(Y.rest&&T6(Y.rest,U))return!0;return!1}return!1}var bM=($,I={})=>(U)=>{let Y=e5({...U,processors:I});return C1($,Y),$9(Y,$),I9(Y,$)},kI=($,I,U={})=>(Y)=>{let{libraryOptions:J,target:Q}=Y??{},K=e5({...J??{},target:Q,io:I,processors:U});return C1($,K),$9(K,$),I9(K,$)};var TO0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},iM=($,I,U,Y)=>{let J=U;J.type="string";let{minimum:Q,maximum:K,format:q,patterns:G,contentEncoding:H}=$._zod.bag;if(typeof Q==="number")J.minLength=Q;if(typeof K==="number")J.maxLength=K;if(q){if(J.format=TO0[q]??q,J.format==="")delete J.format;if(q==="time")delete J.format}if(H)J.contentEncoding=H;if(G&&G.size>0){let W=[...G];if(W.length===1)J.pattern=W[0].source;else if(W.length>1)J.allOf=[...W.map((V)=>({...I.target==="draft-07"||I.target==="draft-04"||I.target==="openapi-3.0"?{type:"string"}:{},pattern:V.source}))]}},nM=($,I,U,Y)=>{let J=U,{minimum:Q,maximum:K,format:q,multipleOf:G,exclusiveMaximum:H,exclusiveMinimum:W}=$._zod.bag;if(typeof q==="string"&&q.includes("int"))J.type="integer";else J.type="number";let V=typeof W==="number"&&W>=(Q??Number.NEGATIVE_INFINITY),w=typeof H==="number"&&H<=(K??Number.POSITIVE_INFINITY),Z=I.target==="draft-04"||I.target==="openapi-3.0";if(V)if(Z)J.minimum=W,J.exclusiveMinimum=!0;else J.exclusiveMinimum=W;else if(typeof Q==="number")J.minimum=Q;if(w)if(Z)J.maximum=H,J.exclusiveMaximum=!0;else J.exclusiveMaximum=H;else if(typeof K==="number")J.maximum=K;if(typeof G==="number")J.multipleOf=G},pM=($,I,U,Y)=>{U.type="boolean"},cM=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},dM=($,I,U,Y)=>{if(I.unrepresentable==Line truncated
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let K of $.seen.entries()){let q=K[1];if(I===K[0]){Q(K);continue}if($.external){let H=$.external.registry.get(K[0])?.id;if(I!==K[0]&&H){Q(K);continue}}if($.metadataRegistry.get(K[0])?.id){Q(K);continue}if(q.cycle){Q(K);continue}if(q.count>1){if($.reused==="ref"){Q(K);continue}}}}function U9($,I){let U=$.seen.get(I);if(!U)throw Error("Unprocessed schema. This is a bug in Zod.");let Y=(q)=>{let G=$.seen.get(q);if(G.ref===null)return;let H=G.def??G.schema,W={...H},V=G.ref;if(G.ref=null,V){Y(V);let Z=$.seen.get(V),z=Z.schema;if(z.$ref&&($.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"))H.allOf=H.allOf??[],H.allOf.push(z);else Object.assign(H,z);if(Object.assign(H,W),q._zod.parent===V)for(let D in H){if(D==="$ref"||D==="allOf")continue;if(!(D in W))delete H[D]}if(z.$ref&&Z.def)for(let D in H){if(D==="$ref"||D==="allOf")continue;if(D in Z.def&&JSON.stringify(H[D])===JSON.stringify(Z.def[D]))delete H[D]}}let w=q._zod.parent;if(w&&w!==V){Y(w);let Z=$.seen.get(w);if(Z?.schema.$ref){if(H.$ref=Z.schema.$ref,Z.def)for(let z in H){if(z==="$ref"||z==="allOf")continue;if(z in Z.def&&JSON.stringify(H[z])===JSON.stringify(Z.def[z]))delete H[z]}}}$.override({zodSchema:q,jsonSchema:H,path:G.path??[]})};for(let q of[...$.seen.entries()].reverse())Y(q[0]);let J={};if($.target==="draft-2020-12")J.$schema="https://json-schema.org/draft/2020-12/schema";else if($.target==="draft-07")J.$schema="http://json-schema.org/draft-07/schema#";else if($.target==="draft-04")J.$schema="http://json-schema.org/draft-04/schema#";else if($.target==="openapi-3.0");if($.external?.uri){let q=$.external.registry.get(I)?.id;if(!q)throw Error("Schema is missing an `id` property");J.$id=$.external.uri(q)}Object.assign(J,U.def??U.schema);let Q=$.metadataRegistry.get(I)?.id;if(Q!==void 0&&J.id===Q)delete J.id;let K=$.external?.defs??{};for(let q of $.seen.entries()){let G=q[1];if(G.def&&G.defId){if(G.def.id===G.defId)delete G.def.id;K[G.defId]=G.def}}if($.external);else if(Object.keys(K).length>0)if($.target==="draft-2020-12")J.$defs=K;else J.definitions=K;try{let q=JSON.parse(JSON.stringify(J));return Object.defineProperty(q,"~standard",{value:{...I["~standard"],jsonSchema:{input:uI(I,"input",$.processors),output:uI(I,"output",$.processors)}},enumerable:!1,writable:!1}),q}catch(q){throw Error("Error converting schema to JSON.")}}function T6($,I){let U=I??{seen:new Set};if(U.seen.has($))return!1;U.seen.add($);let Y=$._zod.def;if(Y.type==="transform")return!0;if(Y.type==="array")return T6(Y.element,U);if(Y.type==="set")return T6(Y.valueType,U);if(Y.type==="lazy")return T6(Y.getter(),U);if(Y.type==="promise"||Y.type==="optional"||Y.type==="nonoptional"||Y.type==="nullable"||Y.type==="readonly"||Y.type==="default"||Y.type==="prefault")return T6(Y.innerType,U);if(Y.type==="intersection")return T6(Y.left,U)||T6(Y.right,U);if(Y.type==="record"||Y.type==="map")return T6(Y.keyType,U)||T6(Y.valueType,U);if(Y.type==="pipe"){if($._zod.traits.has("$ZodCodec"))return!0;return T6(Y.in,U)||T6(Y.out,U)}if(Y.type==="object"){for(let J in Y.shape)if(T6(Y.shape[J],U))return!0;return!1}if(Y.type==="union"){for(let J of Y.options)if(T6(J,U))return!0;return!1}if(Y.type==="tuple"){for(let J of Y.items)if(T6(J,U))return!0;if(Y.rest&&T6(Y.rest,U))return!0;return!1}return!1}var bM=($,I={})=>(U)=>{let Y=$9({...U,processors:I});return C1($,Y),I9(Y,$),U9(Y,$)},uI=($,I,U={})=>(Y)=>{let{libraryOptions:J,target:Q}=Y??{},K=$9({...J??{},target:Q,io:I,processors:U});return C1($,K),I9(K,$),U9(K,$)};var TO0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},iM=($,I,U,Y)=>{let J=U;J.type="string";let{minimum:Q,maximum:K,format:q,patterns:G,contentEncoding:H}=$._zod.bag;if(typeof Q==="number")J.minLength=Q;if(typeof K==="number")J.maxLength=K;if(q){if(J.format=TO0[q]??q,J.format==="")delete J.format;if(q==="time")delete J.format}if(H)J.contentEncoding=H;if(G&&G.size>0){let W=[...G];if(W.length===1)J.pattern=W[0].source;else if(W.length>1)J.allOf=[...W.map((V)=>({...I.target==="draft-07"||I.target==="draft-04"||I.target==="openapi-3.0"?{type:"string"}:{},pattern:V.source}))]}},nM=($,I,U,Y)=>{let J=U,{minimum:Q,maximum:K,format:q,multipleOf:G,exclusiveMaximum:H,exclusiveMinimum:W}=$._zod.bag;if(typeof q==="string"&&q.includes("int"))J.type="integer";else J.type="number";let V=typeof W==="number"&&W>=(Q??Number.NEGATIVE_INFINITY),w=typeof H==="number"&&H<=(K??Number.POSITIVE_INFINITY),Z=I.target==="draft-04"||I.target==="openapi-3.0";if(V)if(Z)J.minimum=W,J.exclusiveMinimum=!0;else J.exclusiveMinimum=W;else if(typeof Q==="number")J.minimum=Q;if(w)if(Z)J.maximum=H,J.exclusiveMaximum=!0;else J.exclusiveMaximum=H;else if(typeof K==="number")J.maximum=K;if(typeof G==="number")J.multipleOf=G},pM=($,I,U,Y)=>{U.type="boolean"},cM=($,I,U,Y)=>{if(I.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},dM=($,I,U,Y)=>{if(I.unrepresentable==Line truncated
`);if($===-1)return null;let I=this._buffer.toString("utf8",0,$).replace(/\r$/,"");return this._buffer=this._buffer.subarray($+1),mR0(I)}clear(){this._buffer=void 0}}function mR0($){return hf.parse(JSON.parse($))}function gc($){return JSON.stringify($)+`
`}class JE{constructor($=yc.stdin,I=yc.stdout){this._stdin=$,this._stdout=I,this._readBuffer=new YE,this._started=!1,this._ondata=(U)=>{this._readBuffer.append(U),this.processReadBuffer()},this._onerror=(U)=>{this.onerror?.(U)}}async start(){if(this._started)throw Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){while(!0)try{let $=this._readBuffer.readMessage();if($===null)break;this.onmessage?.($)}catch($){this.onerror?.($)}}async close(){if(this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0)this._stdin.pause();this._readBuffer.clear(),this.onclose?.()}send($){return new Promise((I)=>{let U=gc($);if(this._stdout.write(U))I();else this._stdout.once("drain",I)})}}import{dirname as kx,join as hH1}from"node:path";import{fileURLToPath as xH1}from"node:url";class Y5 extends Error{name="KyError";get isKyError(){return!0}}class U$ extends Y5{name="HTTPError";response;request;options;data;constructor($,I,U){let Y=$.status||$.status===0?$.status:"",J=$.statusText??"",Q=`${Y} ${J}`.trim(),K=Q?`status code ${Q}`:"an unknown error";super(`Request failed with ${K}: ${I.method} ${I.url}`);this.response=$,this.request=I,this.options=U}}class I2 extends Y5{name="NetworkError";request;constructor($,I){super(`Request failed due to a network error: ${$.method} ${$.url}`,I);this.request=$}}class U2 extends Error{name="NonError";value;constructor($){let I="Non-error value was thrown";try{if(typeof $==="string")I=$;else if($&&typeof $==="object"&&"message"in $&&typeof $.message==="string")I=$.message}catch{}super(I);this.value=$}}class WU extends Y5{name="ForceRetryError";customDelay;code;customRequest;constructor($){let I=$?.cause?$.cause instanceof Error?$.cause:new U2($.cause):void 0;super($?.code?`Forced retry: ${$.code}`:"Forced retry",I?{cause:I}:void 0);this.customDelay=$?.delay,this.code=$?.code,this.customRequest=$?.request}}class QE extends Error{name="SchemaValidationError";issues;constructor($){super("Response schema validation failed");this.issues=$}}class m$ extends Y5{name="TimeoutError";request;constructor($){super(`Request timed out: ${$.method} ${$.url}`);this.request=$}}var KE=(()=>{let $=!1,I=!1,U=typeof globalThis.ReadableStream==="function",Y=typeof globalThis.Request==="function";if(U&&Y)try{I=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return $=!0,"half"}}).headers.has("Content-Type")}catch(J){if(J instanceof Error&&J.message==="unsupported BodyInit type")return!1;throw J}return $&&!I})(),hc=typeof globalThis.AbortController==="function",ZV=typeof globalThis.AbortSignal==="function"&&typeof globalThis.AbortSignal.any==="function",xc=typeof globalThis.ReadableStream==="function",kc=typeof globalThis.FormData==="function",XV=["get","post","put","patch","head","delete"],lR0=()=>{return};lR0();var uc={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},VU=2147483647,fc=40,zV=Symbol("stop");class LV{options;constructor($){this.options=$}}var bc=($)=>new LV($),ic={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},nc={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0};var DV=new TextEncoder,oR0=($)=>{if(!$)return 0;if($ instanceof FormData){let I=0;for(let[U,Y]of $)I+=fc,I+=DV.encode(`Content-Disposition: form-data; name="${U}"`).byteLength,I+=typeof Y==="string"?DV.encode(Y).byteLength:Y.size;return I}if($ instanceof Blob)return $.size;if($ instanceof ArrayBuffer||ArrayBuffer.isView($))return $.byteLength;if(typeof $==="string")return DV.encode($).byteLength;if($ instanceof URLSearchParams)return DV.encode($.toString()).byteLength;return 0},pc=($,I,U)=>{let Y,J=0;return $.pipeThrough(new TransformStream({transform(Q,K){if(K.enqueue(Q),Y){J+=Y.byteLength;let q=I===0?0:J/I;if(q>=1)q=1-Number.EPSILON;U?.({percent:q,totalBytes:Math.max(I,J),transferredBytes:J},Y)}Y=Q},flush(){if(Y)J+=Y.byteLength,U?.({percent:1,totalBytes:Math.max(I,J),transferredBytes:J},Y)}}))},cc=($,I)=>{if(!$.body)return $;let U={status:$.status,statusText:$.statusText,headers:$.headers};if($.status===204)return new Response(null,U);let Y=Math.max(0,Number($.headers.get("content-length"))||0);return new Response(pc($.body,Y,I),U)},dc=($,I,U)=>{if(!$.body)return $;let Y=oR0(U??$.body);return new Request($,{duplex:"half",body:pc($.body,Y,I)})};var Z8=($)=>$!==null&&typeof $==="object";var rR0=Symbol("replaceOption"),qE=($)=>Z8($)&&$[rR0]===!0?{isReplace:!0,value:$.value}:{isReplace:!1,value:$};var J2=(...$)=>{for(let I of $)if( Line truncated
`,{mode:384}),I}function ZJ($,I,U=[]){let Y=I.corpId?.trim()||void 0,J=I.stateful?I.defaultCorpId?.trim()||void 0:void 0,Q=Y??J;if(Q){let q=$.find((G)=>G.id===Q);if(q)return q;throw Error(`No enterprise config found for ${Q}`)}if(!I.stateful)throw Error("Stateless mode is enabled. Every enterprise command requires --corp <corpId>. Use `seal-home config mode stateful` to enable a default enterprise.");let K=$[0];if(K)return K;throw Error("No enterprise config found. Add a non-example JSON file under one of: "+(U.length?U.join(", "):"the configured enterprise directories"))}import{readFileSync as JG1}from"node:fs";import{randomBytes as QG1}from"node:crypto";var pV0=300000,iV0=new Map;function b21($,I){return $.map((U)=>U.trim()).filter(Boolean).map((U)=>I?U:U.toLowerCase())}function i21($,I){return I?$:$.toLowerCase()}function n21($,I,U,Y){let J=i21($,Y),Q=I.filter((K)=>J.includes(K));if(U==="all"&&Q.length!==I.length)return[];return Q}function p21($){if(typeof $==="string")return $.split(/\r?\n/);return JSON.stringify($,null,2).split(/\r?\n/)}function c21($,I){if(I.fields&&!I.fields.has($.field))return[];let U=p21($.value),Y=[];return U.forEach((J,Q)=>{let K=n21(J,I.keywords,I.matchMode,I.caseSensitive);if(K.length===0)return;let q=Math.max(0,Q-I.contextLines),G=Math.min(U.length,Q+I.contextLines+1),H={area:$.area,entityType:$.entityType,entityId:$.entityId,title:$.title,field:$.field,lineNumber:Q+1,matchedKeywords:K,matchedText:kL(J,I.maxChars),context:{before:I.snippetOnly?[]:U.slice(q,Q).map((W)=>kL(W,I.maxChars)),line:kL(J,I.maxChars),after:I.snippetOnly?[]:U.slice(Q+1,G).map((W)=>kL(W,I.maxChars))},metadata:$.metadata};if(I.snippetOnly)H.context={before:[],line:H.context.line,after:[]};Y.push(H)}),Y}function kL($,I){if(!I||$.length<=I)return $;return`${$.slice(0,Math.max(0,I))}...`}function d21($){return[{area:"rules",entityType:"rule",entityId:$.id,title:$.scope,field:"description",value:$.description,metadata:{scope:$.scope,strictness:$.strictness,status:$.status}},{area:"rules",entityType:"rule",entityId:$.id,title:$.scope,field:"scope",value:$.scope,metadata:{strictness:$.strictness,status:$.status}}]}function nV0($){return $.rules.flatMap((I,U)=>{let Y=`${$.id}:${I.description.slice(0,32)}`,J={versionId:$.id,versionNumber:$.versionNumber,versionName:$.versionName,publishedByName:$.publishedByName,publishedAt:$.publishedAt,scope:I.scope,strictness:I.strictness,code:"code"in I?I.code:void 0,index:U};return[{area:"rules",entityType:"rule",entityId:Y,title:`${$.versionName} / ${I.scope}`,field:"history.description",value:I.description,metadata:J},{area:"rules",entityType:"rule",entityId:Y,title:`${$.versionName} / ${I.scope}`,field:"history.scope",value:I.scope,metadata:J}]})}function m21($){return[{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"title",value:$.title,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}},{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"purpose",value:$.purpose,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}},{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"content",value:$.content,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}}]}function l21($){let I=[];if($.decisionPreferences)for(let[U,Y]of Object.entries($.decisionPreferences))I.push({area:"preferences",entityType:"preference",field:`decisionPreferences.${U}`,value:Y,metadata:{integrationSystem:$.integrationSystem}});return $.integrations.forEach((U,Y)=>{I.push({area:"preferences",entityType:"integration",title:U.outboundName,field:`integrations[${Y}]`,value:U,metadata:{type:U.type,outboundName:U.outboundName,mode:U.mode,corporationId:U.corporationId}})}),I}async function o21($,I,U){let Y=U.ruleVersionScope??"current",J=[I.id,`ruleVersionScope=${Y}`,`ruleVersionId=${U.ruleVersionId??""}`,`ruleVersionNumber=${U.ruleVersionNumber??""}`,`latestRuleVersion=${U.latestRuleVersion??!1}`,`documentLimit=${U.documentLimit??100}`].join("|"),Q=iV0.get(J);if(!U.refresh&&Q&&Date.now()<Q.expiresAt)return Q;let[K,q,G]=await Promise.all([r21($,{scope:Y,versionId:U.ruleVersionId,versionNumber:U.ruleVersionNumber,latest:U.latestRuleVersion}),z2($,{limit:U.documentLimit??100}),n1($,I.seal.endpoints.approvalStylePreferences)]),H=Date.now(),W={entries:[...K,...q.articles.flatMap(m21),...l21(G)],fetchedAt:H,expiresAt:H+pV0};return iV0.set(J,W),W}async function r21($,I){if(I.scope==="current")return(await M$($)).rules.flatMap(d21);if(I.scope==="version"){let Y=await t21($,I);return nV0(Y)}return(await Q5($)).flatMap(nV0)}async function t21($,I){if(I.versionId)return X2($,I.versionId);let U=await Q5($),Y=I.versionNumber?U.find((J)=>J.versionNumber===I.versionNumber):U[0];if(!Y)throw Error(I.versionNumber?`Rule version not found: ${I.versionNumber}`:"No rule versions found");return Y}async function cV0($,I,U){let Y=U.matchMode??"any",J=U.caseSensitive??!1,Q=U.contextLines??3,K=new Set(U.areas??["rules","documents","preferences"]), Line truncated
`}class JE{constructor($=yc.stdin,I=yc.stdout){this._stdin=$,this._stdout=I,this._readBuffer=new YE,this._started=!1,this._ondata=(U)=>{this._readBuffer.append(U),this.processReadBuffer()},this._onerror=(U)=>{this.onerror?.(U)}}async start(){if(this._started)throw Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){while(!0)try{let $=this._readBuffer.readMessage();if($===null)break;this.onmessage?.($)}catch($){this.onerror?.($)}}async close(){if(this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0)this._stdin.pause();this._readBuffer.clear(),this.onclose?.()}send($){return new Promise((I)=>{let U=gc($);if(this._stdout.write(U))I();else this._stdout.once("drain",I)})}}import{dirname as kx,join as hH1}from"node:path";import{fileURLToPath as xH1}from"node:url";class Y5 extends Error{name="KyError";get isKyError(){return!0}}class U$ extends Y5{name="HTTPError";response;request;options;data;constructor($,I,U){let Y=$.status||$.status===0?$.status:"",J=$.statusText??"",Q=`${Y} ${J}`.trim(),K=Q?`status code ${Q}`:"an unknown error";super(`Request failed with ${K}: ${I.method} ${I.url}`);this.response=$,this.request=I,this.options=U}}class I2 extends Y5{name="NetworkError";request;constructor($,I){super(`Request failed due to a network error: ${$.method} ${$.url}`,I);this.request=$}}class U2 extends Error{name="NonError";value;constructor($){let I="Non-error value was thrown";try{if(typeof $==="string")I=$;else if($&&typeof $==="object"&&"message"in $&&typeof $.message==="string")I=$.message}catch{}super(I);this.value=$}}class VU extends Y5{name="ForceRetryError";customDelay;code;customRequest;constructor($){let I=$?.cause?$.cause instanceof Error?$.cause:new U2($.cause):void 0;super($?.code?`Forced retry: ${$.code}`:"Forced retry",I?{cause:I}:void 0);this.customDelay=$?.delay,this.code=$?.code,this.customRequest=$?.request}}class QE extends Error{name="SchemaValidationError";issues;constructor($){super("Response schema validation failed");this.issues=$}}class m$ extends Y5{name="TimeoutError";request;constructor($){super(`Request timed out: ${$.method} ${$.url}`);this.request=$}}var KE=(()=>{let $=!1,I=!1,U=typeof globalThis.ReadableStream==="function",Y=typeof globalThis.Request==="function";if(U&&Y)try{I=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return $=!0,"half"}}).headers.has("Content-Type")}catch(J){if(J instanceof Error&&J.message==="unsupported BodyInit type")return!1;throw J}return $&&!I})(),hc=typeof globalThis.AbortController==="function",ZV=typeof globalThis.AbortSignal==="function"&&typeof globalThis.AbortSignal.any==="function",xc=typeof globalThis.ReadableStream==="function",kc=typeof globalThis.FormData==="function",XV=["get","post","put","patch","head","delete"],lR0=()=>{return};lR0();var uc={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},wU=2147483647,fc=40,zV=Symbol("stop");class LV{options;constructor($){this.options=$}}var bc=($)=>new LV($),ic={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},nc={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0};var DV=new TextEncoder,oR0=($)=>{if(!$)return 0;if($ instanceof FormData){let I=0;for(let[U,Y]of $)I+=fc,I+=DV.encode(`Content-Disposition: form-data; name="${U}"`).byteLength,I+=typeof Y==="string"?DV.encode(Y).byteLength:Y.size;return I}if($ instanceof Blob)return $.size;if($ instanceof ArrayBuffer||ArrayBuffer.isView($))return $.byteLength;if(typeof $==="string")return DV.encode($).byteLength;if($ instanceof URLSearchParams)return DV.encode($.toString()).byteLength;return 0},pc=($,I,U)=>{let Y,J=0;return $.pipeThrough(new TransformStream({transform(Q,K){if(K.enqueue(Q),Y){J+=Y.byteLength;let q=I===0?0:J/I;if(q>=1)q=1-Number.EPSILON;U?.({percent:q,totalBytes:Math.max(I,J),transferredBytes:J},Y)}Y=Q},flush(){if(Y)J+=Y.byteLength,U?.({percent:1,totalBytes:Math.max(I,J),transferredBytes:J},Y)}}))},cc=($,I)=>{if(!$.body)return $;let U={status:$.status,statusText:$.statusText,headers:$.headers};if($.status===204)return new Response(null,U);let Y=Math.max(0,Number($.headers.get("content-length"))||0);return new Response(pc($.body,Y,I),U)},dc=($,I,U)=>{if(!$.body)return $;let Y=oR0(U??$.body);return new Request($,{duplex:"half",body:pc($.body,Y,I)})};var Z8=($)=>$!==null&&typeof $==="object";var rR0=Symbol("replaceOption"),qE=($)=>Z8($)&&$[rR0]===!0?{isReplace:!0,value:$.value}:{isReplace:!1,value:$};var J2=(...$)=>{for(let I of $)if( Line truncated
`,{mode:384}),I}function XJ($,I,U=[]){let Y=I.corpId?.trim()||void 0,J=I.stateful?I.defaultCorpId?.trim()||void 0:void 0,Q=Y??J;if(Q){let q=$.find((G)=>G.id===Q);if(q)return q;throw Error(`No enterprise config found for ${Q}`)}if(!I.stateful)throw Error("Stateless mode is enabled. Every enterprise command requires --corp <corpId>. Use `seal-home config mode stateful` to enable a default enterprise.");let K=$[0];if(K)return K;throw Error("No enterprise config found. Add a non-example JSON file under one of: "+(U.length?U.join(", "):"the configured enterprise directories"))}import{readFileSync as JG1}from"node:fs";import{randomBytes as QG1}from"node:crypto";var pV0=300000,iV0=new Map;function b21($,I){return $.map((U)=>U.trim()).filter(Boolean).map((U)=>I?U:U.toLowerCase())}function i21($,I){return I?$:$.toLowerCase()}function n21($,I,U,Y){let J=i21($,Y),Q=I.filter((K)=>J.includes(K));if(U==="all"&&Q.length!==I.length)return[];return Q}function p21($){if(typeof $==="string")return $.split(/\r?\n/);return JSON.stringify($,null,2).split(/\r?\n/)}function c21($,I){if(I.fields&&!I.fields.has($.field))return[];let U=p21($.value),Y=[];return U.forEach((J,Q)=>{let K=n21(J,I.keywords,I.matchMode,I.caseSensitive);if(K.length===0)return;let q=Math.max(0,Q-I.contextLines),G=Math.min(U.length,Q+I.contextLines+1),H={area:$.area,entityType:$.entityType,entityId:$.entityId,title:$.title,field:$.field,lineNumber:Q+1,matchedKeywords:K,matchedText:kL(J,I.maxChars),context:{before:I.snippetOnly?[]:U.slice(q,Q).map((W)=>kL(W,I.maxChars)),line:kL(J,I.maxChars),after:I.snippetOnly?[]:U.slice(Q+1,G).map((W)=>kL(W,I.maxChars))},metadata:$.metadata};if(I.snippetOnly)H.context={before:[],line:H.context.line,after:[]};Y.push(H)}),Y}function kL($,I){if(!I||$.length<=I)return $;return`${$.slice(0,Math.max(0,I))}...`}function d21($){return[{area:"rules",entityType:"rule",entityId:$.id,title:$.scope,field:"description",value:$.description,metadata:{scope:$.scope,strictness:$.strictness,status:$.status}},{area:"rules",entityType:"rule",entityId:$.id,title:$.scope,field:"scope",value:$.scope,metadata:{strictness:$.strictness,status:$.status}}]}function nV0($){return $.rules.flatMap((I,U)=>{let Y=`${$.id}:${I.description.slice(0,32)}`,J={versionId:$.id,versionNumber:$.versionNumber,versionName:$.versionName,publishedByName:$.publishedByName,publishedAt:$.publishedAt,scope:I.scope,strictness:I.strictness,code:"code"in I?I.code:void 0,index:U};return[{area:"rules",entityType:"rule",entityId:Y,title:`${$.versionName} / ${I.scope}`,field:"history.description",value:I.description,metadata:J},{area:"rules",entityType:"rule",entityId:Y,title:`${$.versionName} / ${I.scope}`,field:"history.scope",value:I.scope,metadata:J}]})}function m21($){return[{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"title",value:$.title,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}},{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"purpose",value:$.purpose,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}},{area:"documents",entityType:"document",entityId:$.id,title:$.title,field:"content",value:$.content,metadata:{status:$.status,scenarios:$.scenarios,tags:$.tags}}]}function l21($){let I=[];if($.decisionPreferences)for(let[U,Y]of Object.entries($.decisionPreferences))I.push({area:"preferences",entityType:"preference",field:`decisionPreferences.${U}`,value:Y,metadata:{integrationSystem:$.integrationSystem}});return $.integrations.forEach((U,Y)=>{I.push({area:"preferences",entityType:"integration",title:U.outboundName,field:`integrations[${Y}]`,value:U,metadata:{type:U.type,outboundName:U.outboundName,mode:U.mode,corporationId:U.corporationId}})}),I}async function o21($,I,U){let Y=U.ruleVersionScope??"current",J=[I.id,`ruleVersionScope=${Y}`,`ruleVersionId=${U.ruleVersionId??""}`,`ruleVersionNumber=${U.ruleVersionNumber??""}`,`latestRuleVersion=${U.latestRuleVersion??!1}`,`documentLimit=${U.documentLimit??100}`].join("|"),Q=iV0.get(J);if(!U.refresh&&Q&&Date.now()<Q.expiresAt)return Q;let[K,q,G]=await Promise.all([r21($,{scope:Y,versionId:U.ruleVersionId,versionNumber:U.ruleVersionNumber,latest:U.latestRuleVersion}),z2($,{limit:U.documentLimit??100}),n1($,I.seal.endpoints.approvalStylePreferences)]),H=Date.now(),W={entries:[...K,...q.articles.flatMap(m21),...l21(G)],fetchedAt:H,expiresAt:H+pV0};return iV0.set(J,W),W}async function r21($,I){if(I.scope==="current")return(await M$($)).rules.flatMap(d21);if(I.scope==="version"){let Y=await t21($,I);return nV0(Y)}return(await Q5($)).flatMap(nV0)}async function t21($,I){if(I.versionId)return X2($,I.versionId);let U=await Q5($),Y=I.versionNumber?U.find((J)=>J.versionNumber===I.versionNumber):U[0];if(!Y)throw Error(I.versionNumber?`Rule version not found: ${I.versionNumber}`:"No rule versions found");return Y}async function cV0($,I,U){let Y=U.matchMode??"any",J=U.caseSensitive??!1,Q=U.contextLines??3,K=new Set(U.areas??["rules","documents","preferences"]), Line truncated
`,"utf8"),U}function tV0($){return $.map((I,U)=>{let Y;if(typeof I.code==="number")Y=`#${String(I.code).padStart(4,"0")}`;else if(typeof I.code==="string")Y=I.code.startsWith("#")?I.code:`#${I.code}`;else Y=`#${String(U+1).padStart(4,"0")}`;return{id:I.id,code:Y,name:I.name,description:I.description,scope:I.scope,strictness:I.strictness}})}class g$ extends Error{errors;warnings;constructor($,I=[]){super([`材料包校验失败:${$.length} 个错误`,...$.map((U)=>`- ${U}`)].join(`
`));this.errors=$;this.warnings=I;this.name="MaterialPackValidationError"}}import{createHmac as wK1,randomBytes as ZK1}from"node:crypto";function XK1($,I,U,Y){return wK1("sha256",Y).update(`${$}.${I}.${JSON.stringify(U)}`).digest("hex")}function Vh($,I){let U=Math.floor(Date.now()/1000),Y=ZK1(16).toString("hex");return{Authorization:`Bearer ${I}`,"x-webhook-signature":XK1(U,Y,$,I),"x-webhook-timestamp":String(U),"x-webhook-nonce":Y}}var Ix=ZI(Lw0(),1),QZ0=ZI(JZ0(),1);var UD={maxEntries:1000,maxTotalSize:524288000,maxCompressionRatio:150};async function KZ0($){return new Promise((I,U)=>{Ix.default.fromBuffer(Buffer.from($),{lazyEntries:!0,autoClose:!0,decodeStrings:!1},(Y,J)=>{if(Y||!J)return U(Y??Error("无法打开 ZIP"));let Q=[];J.readEntry(),J.on("entry",(K)=>{let q=qZ0(K);if(!q.endsWith("/")&&!pq1(q))Q.push({fileName:q,uncompressedSize:K.uncompressedSize,compressedSize:K.compressedSize,raw:K});J.readEntry()}),J.on("end",()=>I(Q)),J.on("error",U)})})}function qZ0($){let I=Buffer.isBuffer($.fileName)?$.fileName:Buffer.from(String($.fileName),"binary"),U=I.toString("utf8");if(!U.includes("�"))return U;let Y=QZ0.default.decode(I,"gbk");if(!Y.includes("�"))return Y;return U}function pq1($){let I=$.split("/").pop()??"";return $.split("/").includes("__MACOSX")||I===".DS_Store"||I.startsWith("._")||I.startsWith(".~")||I.startsWith("~$")}function GZ0($,I){let U=[],Y=LU(I);if($.length>UD.maxEntries)U.push(`文件数超过 ${UD.maxEntries}`);if($.reduce((K,q)=>K+q.uncompressedSize,0)>UD.maxTotalSize)U.push("解压后总大小超过 500MB");for(let K of $){if(K.fileName.startsWith("/")||K.fileName.split("/").includes(".."))U.push(`存在不安全路径: ${K.fileName}`);if(K.compressedSize>0&&K.uncompressedSize/K.compressedSize>UD.maxCompressionRatio)U.push(`压缩比超过 150: ${K.fileName}`);if(K.fileName==="信息表.xlsx")continue;cq1(K,Y,U)}if(!$.find((K)=>K.fileName==="信息表.xlsx"))U.push("ZIP 根目录缺少精确名为「信息表.xlsx」的文件");if($.some((K)=>K.fileName.toLowerCase().endsWith(".zip")))U.push("不允许嵌套 ZIP");if(U.length)throw new g$(U)}function cq1($,I,U){let Y=dq1($.fileName);if(!Y||!I.allowedExtensions.includes(Y))U.push(`附件后缀不在白名单中: ${$.fileName}(允许: ${I.allowedExtensions.join(", ")})`);if($.uncompressedSize<I.minFileSizeBytes)U.push(`附件文件过小: ${$.fileName}(${$.uncompressedSize} B,小于最小值 ${I.minFileSizeBytes} B)`);if(I.maxFileSizeBytes!==void 0&&I.maxFileSizeBytes!==null&&$.uncompressedSize>I.maxFileSizeBytes)U.push(`附件文件过大: ${$.fileName}(${$.uncompressedSize} B,大于最大值 ${I.maxFileSizeBytes} B)`)}function dq1($){let I=$.split("/").pop()??$,U=I.lastIndexOf(".");return U>0?I.slice(U).toLowerCase():""}function Ux($,I){return new Promise((U,Y)=>{Ix.default.fromBuffer(Buffer.from($),{lazyEntries:!0,autoClose:!0,decodeStrings:!1},(J,Q)=>{if(J||!Q)return Y(J??Error("无法打开 ZIP"));Q.readEntry(),Q.on("entry",(K)=>{if(qZ0(K)!==I.fileName)return Q.readEntry();Q.openReadStream(K,(q,G)=>{if(q||!G)return Y(q??Error(`无法读取 ${I.fileName}`));let H=[];G.on("data",(W)=>H.push(W)),G.on("end",()=>U(Buffer.concat(H))),G.on("error",Y)})}),Q.on("error",Y)})})}var WZ0=ZI(ay(),1);function mq1($){return $.startsWith("[附件]")}function VZ0($){return $.startsWith("[附件]")?$.slice(4):$}function lq1($){return VZ0($).toLowerCase().replace(/\s+/g,"_")||"attachment"}function oq1($){if($==null||$==="")return[];return String($).split(/[\n,;,;]/).map((I)=>I.trim()).filter(Boolean)}function Yx($,I){let U=[];for(let[Y,J]of I.entries()){if(!mq1(Y))continue;let Q=$.getCell(J).value,K=oq1(Q);if(!K.length)continue;U.push({key:lq1(Y),label:VZ0(Y),paths:K})}return U}function Jx($){let I=new Map;return $.map((U)=>{let Y=(I.get(U.key)??0)+1;return I.set(U.key,Y),Y===1?U:{...U,key:`${U.key}-${Y}`}})}function YD($,I,U,Y){return{key:$,label:I,type:U,value:Y}}function wZ0($,I,U){return YD($,I,"TEXT",U==null?"":String(U))}function ZZ0($,I,U){return YD($,I,"AMOUNT",typeof U==="number"?{amount:U,currency:"CNY"}:null)}function XZ0($){if($ instanceof Date)return $.toISOString();if(typeof $==="string"&&$.trim())return $.trim();return null}function rq1($){if($ instanceof Date)return Math.floor($.getTime()/1000);if(typeof $==="string"&&$.trim()){let I=Date.parse($.trim().replace(" ","T"));if(Number.isFinite(I))return Math.floor(I/1000)}return null}function KG($){let I=new Map;return $.getRow(1).eachCell((U,Y)=>I.set(String(U.value??"").trim(),Y)),I}function UI($,I,U){let Y=I.get(U);return Y?$.getCell(Y).value:void 0}function tq1($,I){return[["会议编号","meeting_id","TEXT"],["会议名称","meeting_name","TEXT"],["状态","status","TEXT"],["总金额","total_amount","AMOUNT"],["税前劳务总额","pretax_labor_total","AMOUNT"],["报销事由","reimbursement_reason","TEXT"],["po码","po_code","TEXT"],["快递单号","tracking_number","TEXT"],["申请日期","application_date","DATE"],["更新日期","updated_date","DATE"] Line truncated
`));this.errors=$;this.warnings=I;this.name="MaterialPackValidationError"}}import{createHmac as wK1,randomBytes as ZK1}from"node:crypto";function XK1($,I,U,Y){return wK1("sha256",Y).update(`${$}.${I}.${JSON.stringify(U)}`).digest("hex")}function Vh($,I){let U=Math.floor(Date.now()/1000),Y=ZK1(16).toString("hex");return{Authorization:`Bearer ${I}`,"x-webhook-signature":XK1(U,Y,$,I),"x-webhook-timestamp":String(U),"x-webhook-nonce":Y}}var Ix=XI(Lw0(),1),QZ0=XI(JZ0(),1);var UD={maxEntries:1000,maxTotalSize:524288000,maxCompressionRatio:150};async function KZ0($){return new Promise((I,U)=>{Ix.default.fromBuffer(Buffer.from($),{lazyEntries:!0,autoClose:!0,decodeStrings:!1},(Y,J)=>{if(Y||!J)return U(Y??Error("无法打开 ZIP"));let Q=[];J.readEntry(),J.on("entry",(K)=>{let q=qZ0(K);if(!q.endsWith("/")&&!pq1(q))Q.push({fileName:q,uncompressedSize:K.uncompressedSize,compressedSize:K.compressedSize,raw:K});J.readEntry()}),J.on("end",()=>I(Q)),J.on("error",U)})})}function qZ0($){let I=Buffer.isBuffer($.fileName)?$.fileName:Buffer.from(String($.fileName),"binary"),U=I.toString("utf8");if(!U.includes("�"))return U;let Y=QZ0.default.decode(I,"gbk");if(!Y.includes("�"))return Y;return U}function pq1($){let I=$.split("/").pop()??"";return $.split("/").includes("__MACOSX")||I===".DS_Store"||I.startsWith("._")||I.startsWith(".~")||I.startsWith("~$")}function GZ0($,I){let U=[],Y=DU(I);if($.length>UD.maxEntries)U.push(`文件数超过 ${UD.maxEntries}`);if($.reduce((K,q)=>K+q.uncompressedSize,0)>UD.maxTotalSize)U.push("解压后总大小超过 500MB");for(let K of $){if(K.fileName.startsWith("/")||K.fileName.split("/").includes(".."))U.push(`存在不安全路径: ${K.fileName}`);if(K.compressedSize>0&&K.uncompressedSize/K.compressedSize>UD.maxCompressionRatio)U.push(`压缩比超过 150: ${K.fileName}`);if(K.fileName==="信息表.xlsx")continue;cq1(K,Y,U)}if(!$.find((K)=>K.fileName==="信息表.xlsx"))U.push("ZIP 根目录缺少精确名为「信息表.xlsx」的文件");if($.some((K)=>K.fileName.toLowerCase().endsWith(".zip")))U.push("不允许嵌套 ZIP");if(U.length)throw new g$(U)}function cq1($,I,U){let Y=dq1($.fileName);if(!Y||!I.allowedExtensions.includes(Y))U.push(`附件后缀不在白名单中: ${$.fileName}(允许: ${I.allowedExtensions.join(", ")})`);if($.uncompressedSize<I.minFileSizeBytes)U.push(`附件文件过小: ${$.fileName}(${$.uncompressedSize} B,小于最小值 ${I.minFileSizeBytes} B)`);if(I.maxFileSizeBytes!==void 0&&I.maxFileSizeBytes!==null&&$.uncompressedSize>I.maxFileSizeBytes)U.push(`附件文件过大: ${$.fileName}(${$.uncompressedSize} B,大于最大值 ${I.maxFileSizeBytes} B)`)}function dq1($){let I=$.split("/").pop()??$,U=I.lastIndexOf(".");return U>0?I.slice(U).toLowerCase():""}function Ux($,I){return new Promise((U,Y)=>{Ix.default.fromBuffer(Buffer.from($),{lazyEntries:!0,autoClose:!0,decodeStrings:!1},(J,Q)=>{if(J||!Q)return Y(J??Error("无法打开 ZIP"));Q.readEntry(),Q.on("entry",(K)=>{if(qZ0(K)!==I.fileName)return Q.readEntry();Q.openReadStream(K,(q,G)=>{if(q||!G)return Y(q??Error(`无法读取 ${I.fileName}`));let H=[];G.on("data",(W)=>H.push(W)),G.on("end",()=>U(Buffer.concat(H))),G.on("error",Y)})}),Q.on("error",Y)})})}var WZ0=XI(ay(),1);function mq1($){return $.startsWith("[附件]")}function VZ0($){return $.startsWith("[附件]")?$.slice(4):$}function lq1($){return VZ0($).toLowerCase().replace(/\s+/g,"_")||"attachment"}function oq1($){if($==null||$==="")return[];return String($).split(/[\n,;,;]/).map((I)=>I.trim()).filter(Boolean)}function Yx($,I){let U=[];for(let[Y,J]of I.entries()){if(!mq1(Y))continue;let Q=$.getCell(J).value,K=oq1(Q);if(!K.length)continue;U.push({key:lq1(Y),label:VZ0(Y),paths:K})}return U}function Jx($){let I=new Map;return $.map((U)=>{let Y=(I.get(U.key)??0)+1;return I.set(U.key,Y),Y===1?U:{...U,key:`${U.key}-${Y}`}})}function YD($,I,U,Y){return{key:$,label:I,type:U,value:Y}}function wZ0($,I,U){return YD($,I,"TEXT",U==null?"":String(U))}function ZZ0($,I,U){return YD($,I,"AMOUNT",typeof U==="number"?{amount:U,currency:"CNY"}:null)}function XZ0($){if($ instanceof Date)return $.toISOString();if(typeof $==="string"&&$.trim())return $.trim();return null}function rq1($){if($ instanceof Date)return Math.floor($.getTime()/1000);if(typeof $==="string"&&$.trim()){let I=Date.parse($.trim().replace(" ","T"));if(Number.isFinite(I))return Math.floor(I/1000)}return null}function KG($){let I=new Map;return $.getRow(1).eachCell((U,Y)=>I.set(String(U.value??"").trim(),Y)),I}function YI($,I,U){let Y=I.get(U);return Y?$.getCell(Y).value:void 0}function tq1($,I){return[["会议编号","meeting_id","TEXT"],["会议名称","meeting_name","TEXT"],["状态","status","TEXT"],["总金额","total_amount","AMOUNT"],["税前劳务总额","pretax_labor_total","AMOUNT"],["报销事由","reimbursement_reason","TEXT"],["po码","po_code","TEXT"],["快递单号","tracking_number","TEXT"],["申请日期","application_date","DATE"],["更新日期","updated_date","DATE"] Line truncated
`);let F=new FormData,E=await Ux(Y.fileBuffer,D),T=L.split("/").pop()??L;F.append("files",new File([new Uint8Array(E)],T));let A=await fetch(`${J}/api/v1/integrations/webhook/${encodeURIComponent(Q)}/attachments`,{method:"POST",headers:Vh({},U.secret),body:F});if(!A.ok)throw Error(`附件上传失败 ${A.status}: ${await A.text()}`);let R=await A.json();W.set(L,R.attachments?.map((u)=>u.data)??(R.data===void 0?[]:[R.data])),process.stderr.write(`✓ 附件上传成功: ${L}
`)}process.stderr.write(`\uD83D\uDCE4 推送单据: ${G.document.documentId}
`);let w=Qx(G.document,H,W),Z=await fetch(`${J}/api/v1/integrations/webhook/${encodeURIComponent(Q)}/document`,{method:"POST",headers:{"Content-Type":"application/json",...Vh({webhookId:Q,...w},U.secret)},body:JSON.stringify(w)});if(!Z.ok)throw Error(`Webhook 单据推送失败 ${Z.status}: ${await Z.text()}`);K.push({documentId:w.documentId,document:w,pushResult:await Z.json()}),process.stderr.write(`✓ 单据推送成功: ${w.documentId}
`)}return{warnings:[],results:K}}function JI($){return{fileBuffer:eq1($),fileName:$.split(/[\\\/]/).pop()??"material-pack.zip"}}import{existsSync as YG1}from"node:fs";async function QD($,I,U={}){let J=L4().stateful?"stateful":"stateless",Q="ok",K,q,G;try{let A=await N$($);G={id:A.user.id,name:A.user.name,isAdmin:A.user.isAdmin},q={id:A.tenant.id,name:A.tenant.name,tenantSlug:A.tenant.tenantSlug,corporationName:A.tenant.hoseCorpConfig?.corporationName}}catch(A){Q="error",K=A instanceof Error?A.message:String(A)}let H=[];if(Q==="ok")try{H=await X9($,I.seal.endpoints.approvalStylePreferences)}catch(A){Q="error",K=`读取 Webhook 配置失败: ${A instanceof Error?A.message:String(A)}`}let W=H.length===1,V=H.map((A)=>({id:A.id,name:A.name,mode:A.mode,incomingDocumentWebhookUrl:A.incomingDocumentWebhook.url,outgoingResultWebhookUrl:A.outgoingResultWebhook,autoApprovalRate:A.autoApprovalRate,...W?{isDefault:!0}:{}})),w=W?{id:H[0].id,name:H[0].name,mode:H[0].mode}:null,Z=U.webhook?z9(H,U.webhook):W?H[0]:void 0,z;if(U.filePath)if(!YG1(U.filePath))z={valid:!1,filePath:U.filePath,fileName:U.filePath.split(/[\\/]/).pop()??U.filePath,documentCount:0,errors:[`文件不存在: ${U.filePath}`]};else try{let A=JI(U.filePath),R=await YI(A.fileBuffer,A.fileName,Z?.materialPackFilePolicy);z={valid:!0,filePath:U.filePath,fileName:A.fileName,documentCount:R.documents.length,warnings:R.warnings}}catch(A){z={valid:!1,filePath:U.filePath,fileName:U.filePath.split(/[\\/]/).pop()??U.filePath,documentCount:0,errors:[A instanceof Error?A.message:String(A)]}}let L=z?z.valid:!0,D=Q==="ok"&&V.length>0&&L,F=J==="stateful"?"":` --corp ${I.id}`,E="",T="";if(Q!=="ok")T=`凭证鉴权异常: ${K}`,E=`seal-use auth diagnose${F}`;else if(V.length===0)T="当前企业尚未配置任何 Webhook 集成通道",E=`seal-use webhook add --name "默认入站通道" --result-url "https://your-domain.com/callback"${F}`;else if(z&&!z.valid)T=`材料包预检失败: ${z.errors?.join("; ")}`,E=`seal-use webhook material-pack preview ${z.filePath}${F}`;else{T=W?"所有通道正常,已自动锁定唯一 Webhook 通道,等待载入":`所有通道正常,检测到 ${V.length} 个 Webhook 通道,等待载入`;let A=z?.filePath??"<材料包.zip>",R=W?"":` --webhook ${w?w.id:"<webhookIdOrName>"}`;E=`seal-use webhook material-pack push ${A}${R}${F}`}return{ready:D,corp:{id:I.id,name:I.name,sourceType:I.source.type,tenant:q,user:G},stateMode:J,authStatus:Q,authError:K,activeWebhooks:V,defaultWebhook:w,materialPack:z,statusMessage:T,nextAction:E}}var GG=[{name:"seal_whoami",description:"查询当前 Seal 用户身份及租户信息",parameters:X.object({}),handler:async($)=>N$($)},{name:"seal_session_get",description:"查询当前 Seal Bearer session、用户和过期时间",parameters:X.object({}),handler:async($)=>Gm($)},{name:"seal_delegation_list",description:"查询当前 Seal 租户下的授权链接 (Delegation) 列表",parameters:X.object({}),handler:async($)=>ym($)},{name:"seal_delegation_create",description:"创建新的 Seal 授权链接 (Delegation)",parameters:X.object({note:X.string().optional().describe("授权链接的备注或说明信息")}),handler:async($,I)=>DU($,I)},{name:"seal_delegation_revoke",description:"撤销/废除指定的 Seal 授权链接 (Delegation)",parameters:X.object({tokenId:X.string().describe("授权链接 ID (delegation record ID)")}),handler:async($,I)=>hm($,I.tokenId)},{name:"seal_user_create",description:"创建本地 Seal 用户,生成并返回初始随机密码",parameters:X.object({name:X.string().describe("用户姓名"),phone:X.string().describe("手机号码 (例如 13300001111 或 +8613300001111)"),permissions:X.array(X.string()).optional().describe("权限列表,默认为 []"),departmentIds:X.array(X.string()).optional().describe("关联部门 ID 数组")}),handler:async($,I)=>xm($,I)},{name:"seal_user_reset_password",description:"重置指定 Seal 用户的默认/随机密码,并返回生成的新密码",parameters:X.object({userId:X.string().describe("用户 ID (_id)")}),handler:async($,I)=>fE($,I.userId)},{name:"seal_user_get",description:"获取指定 Seal 用户的详细信息",parameters:X.object({userId:X.string().describe("用户 ID (_id)")}),handler:async($,I)=>yV($,I.userId)},{name:"seal_user_search",description:"按姓名、手机号或邮箱搜索 Seal 成员用户列表",parameters:X.object({keyword:X.string().optional().describe("搜索关键词(姓名、手机号、邮箱等),不传或传空字符串可列出租户成员")}),handler:async($,I)=>hV($,I.keyword??"")},{name:"seal_user_delete",description:"删除指定 Seal 本地用户",parameters:X.object({userId:X.string().describe("用户 ID (_id)")}),handler:async($,I)=>lm($,I.userId)},{name:"seal_user_activate",description:"启用/激活已离职的 Seal 用户账号",parameters:X.object({userId:X.string().describe("用户 ID (_id)")}),handler:async($,I)=>bE($,I.userId)},{name:"seal_user_delegation_create",description:"为指定 S Line truncated
`);return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,document:PJ({id:I?.id,sn:I?.sn??I?.sourceDocumentSN??$.sourceDocumentSN,title:I?.title??I?.name,template:VD(I,["template.name","templateName","form.name","formName","formTitle"]),amount:qD(U,["金额","报销金额","付款金额","合计","价税合计"])??VD(I,["amount","totalAmount","expenseAmount"]),expenseType:qD(U,["费用类型","费用类别","报销类型"]),costCompany:qD(U,["费用承担公司","承担公司","成本中心","费用归属"]),payee:qD(U,["收款方","收款账户","收款信息","开户名","银行账号"]),keyFields:U.slice(0,30)}),invoices:NG1($),attachments:wJ($,{summary:!0}).attachments,aiResult:ZD($),manualResult:KI($)?.value,hints:PJ({amountMentions:MZ0(Y,["金额","合计","税率"],8),partyMentions:MZ0(Y,["买方","卖方","甲方","乙方","收款"],8)})}}function LG1($){let I=[["result.citedRules",n5($,"result.citedRules")],["result.matchedRules",n5($,"result.matchedRules")],["result.ruleResults",n5($,"result.ruleResults")],["result.rules",n5($,"result.rules")],["pipelineData.citedRules",n5($,"pipelineData.citedRules")],["pipelineData.matchedRules",n5($,"pipelineData.matchedRules")]],U=[],Y=new Set;for(let[J,Q]of I)(Array.isArray(Q)?Q:Q&&typeof Q==="object"?Object.values(Q):[]).forEach((q,G)=>{let H=HG(q);if(!H)return;let W=I4(H.runtimeRuleId)??I4(H.runtimeId)??I4(H.id)??I4(H.ruleId),V=I4(H.ruleCode)??I4(H.code)??(W?PG1(W):void 0),w=PJ({runtimeRuleId:W,ruleCode:V,versionNumber:OG1(H.versionNumber)??$.ruleSetVersionNumber,scope:I4(H.scope),strictness:I4(H.strictness),appliedAnalysis:H.appliedAnalysis??H.analysis??H.reasoning,checkResult:H.checkResult??H.result??H.decision,findings:H.findings??H.riskPoints??H.evidence,sourcePath:`${J}.${G}`}),Z=JSON.stringify(w);if(!Y.has(Z))Y.add(Z),U.push(w)});return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,ruleSetVersionNumber:$.ruleSetVersionNumber,count:U.length,rules:U}}function VD($,I){if(!$)return;for(let U of I){let Y=n5($,U);if(Y!==void 0)return Y}return}function NZ0($,I){if(!$)return 0;for(let U of I){let Y=n5($,U);if(Array.isArray(Y))return Y.length;if(Y&&typeof Y==="object")return Object.keys(Y).length;if(typeof Y==="number")return Y}return 0}function n5($,I){return I.split(".").reduce((U,Y)=>{if(U===void 0||U===null)return;if(Array.isArray(U)){let J=Number(Y);return Number.isInteger(J)?U[J]:void 0}if(typeof U==="object")return U[Y];return},$)}function DG1($,I,U){let Y=I.split("."),J=$;for(let Q of Y.slice(0,-1)){let K=J[Q];if(!K||typeof K!=="object"||Array.isArray(K))J[Q]={};J=J[Q]}J[Y[Y.length-1]??I]=U}function PJ($){return Object.fromEntries(Object.entries($).filter(([,I])=>I!==void 0))}function HG($){return $&&typeof $==="object"&&!Array.isArray($)?$:void 0}function OG1($){return typeof $==="number"&&Number.isFinite($)?$:void 0}function FG1($){let I=[];return Gx($,"document",I),I}function Gx($,I,U){if(Array.isArray($)){$.forEach((K,q)=>Gx(K,`${I}.${q}`,U));return}let Y=HG($);if(!Y)return;let J=I4(Y.label)??I4(Y.name)??I4(Y.title)??I4(Y.fieldName),Q=Y.value??Y.displayValue??Y.text??Y.content;if(J&&Q!==void 0&&typeof Q!=="object")U.push(PJ({path:I,label:J,value:Q,type:I4(Y.type)??I4(Y.fieldType)}));for(let[K,q]of Object.entries(Y)){if(K==="attachments")continue;Gx(q,`${I}.${K}`,U)}}function qD($,I){return $.find((Y)=>{let J=I4(Y.label)??"";return I.some((Q)=>J.includes(Q))})?.value}function NG1($){let I=[];return wD($.result,"result",I),wD($.document,"document",I),I.slice(0,20)}function wD($,I,U){if(Array.isArray($)){$.forEach((J,Q)=>wD(J,`${I}.${Q}`,U));return}let Y=HG($);if(!Y)return;if(/invoice|发票/i.test(I))U.push(PJ({path:I,fileName:I4(Y.fileName)??I4(Y.filename)??I4(Y.name),buyer:Y.buyer??Y.buyerName??Y.purchaserName,seller:Y.seller??Y.sellerName,amount:Y.amount??Y.totalAmount??Y.total,taxRate:Y.taxRate,category:Y.category??Y.type}));for(let[J,Q]of Object.entries(Y))wD(Q,`${I}.${J}`,U)}function MZ0($,I,U){return $.split(/\r?\n/).filter((Y)=>I.some((J)=>Y.includes(J))).slice(0,U)}function GD($){return $.map((I)=>{let U=QI(I);return{recordId:U.id,tenantId:U.tenantId,agentId:U.agentId,sourceDocumentSN:U.sourceDocumentSN,sourceDocumentId:U.sourceDocumentId,simulationBatchId:U.simulationBatchId,langfuseTraceId:U.langfuseTraceId,langfuseSessionFallback:U.langfuseSessionFallback,ruleSetVersionNumber:U.ruleSetVersionNumber,ruleSetPublishedAt:U.ruleSetPublishedAt,ruleSetPublishedByName:U.ruleSetPublishedByName,resolution:U.langfuseTraceId?"trace":U.langfuseSessionFallback?"session-fallback":"unresolved"}})}function Kx($){return{id:$.id,tenantId:$.tenantId,versionNumber:$.versionNumber,versionName:$.versionName,publishedBy:$.publishedBy,publishedByName:$.publishedByName,rulesCount:$.rules.length,publishedAt:$.publishedAt,createdAt:$.createdAt}}async function MG1($,I){if(I.recordId&&!I.versionId&&!I.versionNumber&&!I.latest){let U=await f4($,I.recordId);if(!U.ruleSetVersionNumber)throw Er Line truncated
`)}return{warnings:[],results:K}}function QI($){return{fileBuffer:eq1($),fileName:$.split(/[\\\/]/).pop()??"material-pack.zip"}}import{existsSync as YG1}from"node:fs";async function QD($,I,U={}){let J=L4().stateful?"stateful":"stateless",Q="ok",K,q,G;try{let A=await N$($);G={id:A.user.id,name:A.user.name,isAdmin:A.user.isAdmin},q={id:A.tenant.id,name:A.tenant.name,tenantSlug:A.tenant.tenantSlug,corporationName:A.tenant.hoseCorpConfig?.corporationName}}catch(A){Q="error",K=A instanceof Error?A.message:String(A)}let H=[];if(Q==="ok")try{H=await z9($,I.seal.endpoints.approvalStylePreferences)}catch(A){Q="error",K=`读取 Webhook 配置失败: ${A instanceof Error?A.message:String(A)}`}let W=H.length===1,V=H.map((A)=>({id:A.id,name:A.name,mode:A.mode,incomingDocumentWebhookUrl:A.incomingDocumentWebhook.url,outgoingResultWebhookUrl:A.outgoingResultWebhook,autoApprovalRate:A.autoApprovalRate,...W?{isDefault:!0}:{}})),w=W?{id:H[0].id,name:H[0].name,mode:H[0].mode}:null,Z=U.webhook?L9(H,U.webhook):W?H[0]:void 0,z;if(U.filePath)if(!YG1(U.filePath))z={valid:!1,filePath:U.filePath,fileName:U.filePath.split(/[\\/]/).pop()??U.filePath,documentCount:0,errors:[`文件不存在: ${U.filePath}`]};else try{let A=QI(U.filePath),R=await JI(A.fileBuffer,A.fileName,Z?.materialPackFilePolicy);z={valid:!0,filePath:U.filePath,fileName:A.fileName,documentCount:R.documents.length,warnings:R.warnings}}catch(A){z={valid:!1,filePath:U.filePath,fileName:U.filePath.split(/[\\/]/).pop()??U.filePath,documentCount:0,errors:[A instanceof Error?A.message:String(A)]}}let L=z?z.valid:!0,D=Q==="ok"&&V.length>0&&L,F=J==="stateful"?"":` --corp ${I.id}`,E="",T="";if(Q!=="ok")T=`凭证鉴权异常: ${K}`,E=`seal-use auth diagnose${F}`;else if(V.length===0)T="当前企业尚未配置任何 Webhook 集成通道",E=`seal-use webhook add --name "默认入站通道" --result-url "https://your-domain.com/callback"${F}`;else if(z&&!z.valid)T=`材料包预检失败: ${z.errors?.join("; ")}`,E=`seal-use webhook material-pack preview ${z.filePath}${F}`;else{T=W?"所有通道正常,已自动锁定唯一 Webhook 通道,等待载入":`所有通道正常,检测到 ${V.length} 个 Webhook 通道,等待载入`;let A=z?.filePath??"<材料包.zip>",R=W?"":` --webhook ${w?w.id:"<webhookIdOrName>"}`;E=`seal-use webhook material-pack push ${A}${R}${F}`}return{ready:D,corp:{id:I.id,name:I.name,sourceType:I.source.type,tenant:q,user:G},stateMode:J,authStatus:Q,authError:K,activeWebhooks:V,defaultWebhook:w,materialPack:z,statusMessage:T,nextAction:E}}var GG=[{name:"seal_whoami",description:"查询当前 Seal 用户身份及租户信息",parameters:X.object({}),handler:async($)=>N$($)},{name:"seal_session_get",description:"查询当前 Seal Bearer session、用户和过期时间",parameters:X.object({}),handler:async($)=>Gm($)},{name:"seal_delegation_list",description:"查询当前 Seal 租户下的授权链接 (Delegation) 列表",parameters:X.object({}),handler:async($)=>ym($)},{name:"seal_delegation_create",description:"创建新的 Seal 授权链接 (Delegation)",parameters:X.object({note:X.string().optional().describe("授权链接的备注或说明信息")}),handler:async($,I)=>OU($,I)},{name:"seal_delegation_revoke",description:"撤销/废除指定的 Seal 授权链接 (Delegation)",parameters:X.object({tokenId:X.string().describe("授权链接 ID (delegation record ID)")}),handler:async($,I)=>hm($,I.tokenId)},{name:"seal_user_create",description:"创建本地 Seal 用户,生成并返回初始随机密码",parameters:X.object({name:X.string().describe("用户姓名"),phone:X.string().describe("手机号码 (例如 13300001111 或 +8613300001111)"),permissions:X.array(X.string()).optional().describe("权限列表,默认为 []"),departmentIds:X.array(X.string()).optional().describe("关联部门 ID 数组")}),handler:async($,I)=>xm($,I)},{name:"seal_user_reset_password",description:"重置指定 Seal 用户的默认/随机密码,并返回生成的新密码",parameters:X.object({userId:X.string().describe("用户 ID (_id)")}),handler:async($,I)=>fE($,I.userId)},{name:"seal_user_get",description:"获取指定 Seal 用户的详细信息",parameters:X.object({userId:X.string().describe("用户 ID (_id)")}),handler:async($,I)=>yV($,I.userId)},{name:"seal_user_search",description:"按姓名、手机号或邮箱搜索 Seal 成员用户列表",parameters:X.object({keyword:X.string().optional().describe("搜索关键词(姓名、手机号、邮箱等),不传或传空字符串可列出租户成员")}),handler:async($,I)=>hV($,I.keyword??"")},{name:"seal_user_delete",description:"删除指定 Seal 本地用户",parameters:X.object({userId:X.string().describe("用户 ID (_id)")}),handler:async($,I)=>lm($,I.userId)},{name:"seal_user_activate",description:"启用/激活已离职的 Seal 用户账号",parameters:X.object({userId:X.string().describe("用户 ID (_id)")}),handler:async($,I)=>bE($,I.userId)},{name:"seal_user_delegation_create",description:"为指定 S Line truncated
`);return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,document:TJ({id:I?.id,sn:I?.sn??I?.sourceDocumentSN??$.sourceDocumentSN,title:I?.title??I?.name,template:VD(I,["template.name","templateName","form.name","formName","formTitle"]),amount:qD(U,["金额","报销金额","付款金额","合计","价税合计"])??VD(I,["amount","totalAmount","expenseAmount"]),expenseType:qD(U,["费用类型","费用类别","报销类型"]),costCompany:qD(U,["费用承担公司","承担公司","成本中心","费用归属"]),payee:qD(U,["收款方","收款账户","收款信息","开户名","银行账号"]),keyFields:U.slice(0,30)}),invoices:NG1($),attachments:ZJ($,{summary:!0}).attachments,aiResult:ZD($),manualResult:qI($)?.value,hints:TJ({amountMentions:MZ0(Y,["金额","合计","税率"],8),partyMentions:MZ0(Y,["买方","卖方","甲方","乙方","收款"],8)})}}function LG1($){let I=[["result.citedRules",n5($,"result.citedRules")],["result.matchedRules",n5($,"result.matchedRules")],["result.ruleResults",n5($,"result.ruleResults")],["result.rules",n5($,"result.rules")],["pipelineData.citedRules",n5($,"pipelineData.citedRules")],["pipelineData.matchedRules",n5($,"pipelineData.matchedRules")]],U=[],Y=new Set;for(let[J,Q]of I)(Array.isArray(Q)?Q:Q&&typeof Q==="object"?Object.values(Q):[]).forEach((q,G)=>{let H=HG(q);if(!H)return;let W=I4(H.runtimeRuleId)??I4(H.runtimeId)??I4(H.id)??I4(H.ruleId),V=I4(H.ruleCode)??I4(H.code)??(W?PG1(W):void 0),w=TJ({runtimeRuleId:W,ruleCode:V,versionNumber:OG1(H.versionNumber)??$.ruleSetVersionNumber,scope:I4(H.scope),strictness:I4(H.strictness),appliedAnalysis:H.appliedAnalysis??H.analysis??H.reasoning,checkResult:H.checkResult??H.result??H.decision,findings:H.findings??H.riskPoints??H.evidence,sourcePath:`${J}.${G}`}),Z=JSON.stringify(w);if(!Y.has(Z))Y.add(Z),U.push(w)});return{recordId:$.id,sourceDocumentSN:$.sourceDocumentSN,sourceDocumentId:$.sourceDocumentId,ruleSetVersionNumber:$.ruleSetVersionNumber,count:U.length,rules:U}}function VD($,I){if(!$)return;for(let U of I){let Y=n5($,U);if(Y!==void 0)return Y}return}function NZ0($,I){if(!$)return 0;for(let U of I){let Y=n5($,U);if(Array.isArray(Y))return Y.length;if(Y&&typeof Y==="object")return Object.keys(Y).length;if(typeof Y==="number")return Y}return 0}function n5($,I){return I.split(".").reduce((U,Y)=>{if(U===void 0||U===null)return;if(Array.isArray(U)){let J=Number(Y);return Number.isInteger(J)?U[J]:void 0}if(typeof U==="object")return U[Y];return},$)}function DG1($,I,U){let Y=I.split("."),J=$;for(let Q of Y.slice(0,-1)){let K=J[Q];if(!K||typeof K!=="object"||Array.isArray(K))J[Q]={};J=J[Q]}J[Y[Y.length-1]??I]=U}function TJ($){return Object.fromEntries(Object.entries($).filter(([,I])=>I!==void 0))}function HG($){return $&&typeof $==="object"&&!Array.isArray($)?$:void 0}function OG1($){return typeof $==="number"&&Number.isFinite($)?$:void 0}function FG1($){let I=[];return Gx($,"document",I),I}function Gx($,I,U){if(Array.isArray($)){$.forEach((K,q)=>Gx(K,`${I}.${q}`,U));return}let Y=HG($);if(!Y)return;let J=I4(Y.label)??I4(Y.name)??I4(Y.title)??I4(Y.fieldName),Q=Y.value??Y.displayValue??Y.text??Y.content;if(J&&Q!==void 0&&typeof Q!=="object")U.push(TJ({path:I,label:J,value:Q,type:I4(Y.type)??I4(Y.fieldType)}));for(let[K,q]of Object.entries(Y)){if(K==="attachments")continue;Gx(q,`${I}.${K}`,U)}}function qD($,I){return $.find((Y)=>{let J=I4(Y.label)??"";return I.some((Q)=>J.includes(Q))})?.value}function NG1($){let I=[];return wD($.result,"result",I),wD($.document,"document",I),I.slice(0,20)}function wD($,I,U){if(Array.isArray($)){$.forEach((J,Q)=>wD(J,`${I}.${Q}`,U));return}let Y=HG($);if(!Y)return;if(/invoice|发票/i.test(I))U.push(TJ({path:I,fileName:I4(Y.fileName)??I4(Y.filename)??I4(Y.name),buyer:Y.buyer??Y.buyerName??Y.purchaserName,seller:Y.seller??Y.sellerName,amount:Y.amount??Y.totalAmount??Y.total,taxRate:Y.taxRate,category:Y.category??Y.type}));for(let[J,Q]of Object.entries(Y))wD(Q,`${I}.${J}`,U)}function MZ0($,I,U){return $.split(/\r?\n/).filter((Y)=>I.some((J)=>Y.includes(J))).slice(0,U)}function GD($){return $.map((I)=>{let U=KI(I);return{recordId:U.id,tenantId:U.tenantId,agentId:U.agentId,sourceDocumentSN:U.sourceDocumentSN,sourceDocumentId:U.sourceDocumentId,simulationBatchId:U.simulationBatchId,langfuseTraceId:U.langfuseTraceId,langfuseSessionFallback:U.langfuseSessionFallback,ruleSetVersionNumber:U.ruleSetVersionNumber,ruleSetPublishedAt:U.ruleSetPublishedAt,ruleSetPublishedByName:U.ruleSetPublishedByName,resolution:U.langfuseTraceId?"trace":U.langfuseSessionFallback?"session-fallback":"unresolved"}})}function Kx($){return{id:$.id,tenantId:$.tenantId,versionNumber:$.versionNumber,versionName:$.versionName,publishedBy:$.publishedBy,publishedByName:$.publishedByName,rulesCount:$.rules.length,publishedAt:$.publishedAt,createdAt:$.createdAt}}async function MG1($,I){if(I.recordId&&!I.versionId&&!I.versionNumber&&!I.latest){let U=await f4($,I.recordId);if(!U.ruleSetVersionNumber)throw Er Line truncated
`)}
`}function ZG($){return $.replace(/([?&](?:accessToken|token|returnToken)=)[^&\s]+/gi,"$1<redacted>").replace(/(Bearer\s+)[A-Za-z0-9._~+/=-]+/gi,"$1<redacted>")}function B0($,I={}){kG1($,I);let U=`${JSON.stringify($,null,2)}
`;if(I.outputFile){gG1(I.outputFile,U),console.log(JSON.stringify({outputFile:I.outputFile,bytes:Buffer.byteLength(U,"utf-8")},null,2));return}console.log(U.trimEnd())}function kG1($,I={}){if(I.allowFull||I.outputFile)return;let U=Buffer.byteLength(JSON.stringify($),"utf-8");if(U>xG1)throw new XD(`Output is large (${U} bytes). Use --summary, --fields, --count, or --output-file; pass --full only when you really need the full response.`)}function cZ0($,I){if(I)return;let U=$&&typeof $==="object"?$:{},Y=typeof U.count==="number"?U.count:void 0,J=Array.isArray(U.rules)?U.rules.length:void 0,Q=Buffer.byteLength(JSON.stringify($),"utf-8"),K=Y??J??0;if(K>yG1||Q>hG1)throw new XD(`Rule list is large (${K} rules, ${Q} bytes). Use "seal-use rules list --summary" or "seal-use rules count"; pass --full only when you really need full descriptions.`,"seal-use rules list --summary")}function V0($){return{allowFull:N0($.full)===!0,outputFile:h($.outputFile)??h($["output-file"])}}function dZ0(){console.log(`seal-use CLI
@@ -435,12 +435,12 @@ Usage:
seal-use simulation templates [--corp <corpId>]
seal-use simulation integrations [--corp <corpId>]
seal-use simulation package-upload <材料包.zip> [--corp <corpId>]
`)}function D4($){let I=b8(),U=L4();return ZJ(I,{stateful:U.stateful,defaultCorpId:U.defaultCorpId,corpId:$},a3())}function qI($=L4()){return{mode:$.stateful?"stateful":"stateless",stateful:$.stateful,...$.stateful&&$.defaultCorpId?{defaultCorpId:$.defaultCorpId}:{},...$.testEnterprisesDir?{testEnterprisesDir:$.testEnterprisesDir}:{},lint:$.lint,configFile:s3()}}async function D0($,I,U,Y,J={}){B0(await GI($,I,U,Y),J)}async function GI($,I,U,Y){let J=GG.find((q)=>q.name===$);if(!J)throw Error(`Unknown Seal tool: ${$}`);let Q=Object.fromEntries(Object.entries(Y).filter(([,q])=>q!==void 0)),K=J.handler;return K(I,Q,{corp:U})}async function mZ0($,I,U,Y,J){if($==="summary"){let Q=await GI("seal_approval_runs_summary",U,Y,{date:h(J.options.date),timezone:h(J.options.timezone),limit:d0(J.options.limit),startDate:h(J.options.startDate),endDate:h(J.options.endDate),status:h(J.options.status),taskMode:h(J.options.taskMode),manualApprovalStatus:h(J.options.manualApprovalStatus),sourceDocumentSN:h(J.options.sourceDocumentSN),sourceDocumentId:h(J.options.sourceDocumentId),humanResult:h(J.options.humanResult),query:h(J.options.query)});if(Q?.matched===0&&Q?.total>0)console.error(`提示:在 ${Q.date} 未匹配到记录(该企业共有 ${Q.total} 条历史记录)。可使用 --date YYYY-MM-DD 指定日期,或运行 seal-use approval-runs list --limit 10 查看最近记录。`);B0(Q,V0(J.options));return}if($==="stats"){await D0("seal_approval_runs_stats",U,Y,{since:h(J.options.since),dedupeBy:h(J.options.dedupeBy)??h(J.options["dedupe-by"]),status:h(J.options.status),sourceSystem:h(J.options.sourceSystem)??h(J.options["source-system"]),taskMode:h(J.options.taskMode)??h(J.options["task-mode"])},V0(J.options));return}if($==="count"){await D0("seal_approval_runs_count",U,Y,{status:h(J.options.status),sourceSystem:h(J.options.sourceSystem)??h(J.options["source-system"]),taskMode:h(J.options.taskMode)??h(J.options["task-mode"]),search:h(J.options.search)??h(J.options.query)},V0(J.options));return}if($==="search"||$==="list"){await D0("seal_approval_runs_search",U,Y,{limit:d0(J.options.limit),offset:d0(J.options.offset),startDate:h(J.options.startDate),endDate:h(J.options.endDate),status:h(J.options.status),taskMode:h(J.options.taskMode),manualApprovalStatus:h(J.options.manualApprovalStatus),sourceDocumentSN:h(J.options.sourceDocumentSN),sourceDocumentId:h(J.options.sourceDocumentId),humanResult:h(J.options.humanResult),query:h(J.options.query),includeBridge:N0(J.options.includeBridge)},V0(J.options));return}if($==="bridge"){await D0("seal_approval_run_langfuse_bridge_get",U,Y,{recordId:h(J.options.recordId),sourceDocumentSN:h(J.options.sourceDocumentSN),sourceDocumentId:h(J.options.sourceDocumentId),simulationBatchId:h(J.options.simulationBatchId),limit:d0(J.options.limit)},V0(J.options));return}if($==="pick"){let Q=I??h(J.options.query)??h(J.options.sn);if(!Q)throw Error("Usage: seal-use approval-runs pick --sn <documentSN>");await D0("seal_approval_run_pick",U,Y,{query:Q,sn:h(J.options.sn),batchId:h(J.options.batch)??h(J.options.batchId),latest:N0(J.options.latest),fields:h(J.options.fields),limit:d0(J.options.limit),includeBridge:N0(J.options.includeBridge)},V0(J.options));return}if($==="get"){let Q=J.command[2];if(!Q)throw Error("Missing approval run recordId");await D0("seal_approval_run_get",U,Y,{recordId:Q,fields:h(J.options.fields),summary:N0(J.options.summary)},V0(J.options));return}if($==="cited-rules"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs cited-rules <recordId>");await D0("seal_approval_run_cited_rules_get",U,Y,{recordId:Q},V0(J.options));return}if($==="document-summary"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs document-summary <recordId>");await D0("seal_approval_run_document_summary_get",U,Y,{recordId:Q},V0(J.options));return}if($==="attachments"){if(J.command[2]==="download"){let H=J.command[3];if(!H)throw Error("Usage: seal-use approval-runs attachments download <recordId> [--all] [--name <name>] [--out-dir <dir>]");let W=await f4(U,H),V=await gL({record:W,all:N0(J.options.all),name:h(J.options.name),outDir:h(J.options["out-dir"])??h(J.options.outDir)??h(J.options.dir)});if(B0(V,V0(J.options)),V.total>0&&V.downloaded===0)throw Error(`所有 ${V.total} 个附件下载均失败。`);return}let K=J.command[2];if(!K)throw Error("Usage: seal-use approval-runs attachments <recordId> | seal-use approval-runs attachments download <recordId>");if(N0(J.options.download)){let H=await f4(U,K),W=await gL({record:H,all:N0(J.options.all)??!0,name:h(J.options.name),outDir:h(J.options["out-dir"])??h(J.options.outDir)??h(J.options.dir)});if(B0(W,V0(J.options)),W.total>0&&W.downloaded===0)throw Error(`所有 ${W.total} 个附件下载均失败。`);return}let q=await f4(U,K),G=wJ(q,{summary:N0(J.options.summary)});B0(G,V0(J.options));return}if($==="download"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs download <recordId> [--all] [--name <n Line truncated
`)}function D4($){let I=b8(),U=L4();return XJ(I,{stateful:U.stateful,defaultCorpId:U.defaultCorpId,corpId:$},s3())}function GI($=L4()){return{mode:$.stateful?"stateful":"stateless",stateful:$.stateful,...$.stateful&&$.defaultCorpId?{defaultCorpId:$.defaultCorpId}:{},...$.testEnterprisesDir?{testEnterprisesDir:$.testEnterprisesDir}:{},lint:$.lint,configFile:e3()}}async function D0($,I,U,Y,J={}){B0(await HI($,I,U,Y),J)}async function HI($,I,U,Y){let J=GG.find((q)=>q.name===$);if(!J)throw Error(`Unknown Seal tool: ${$}`);let Q=Object.fromEntries(Object.entries(Y).filter(([,q])=>q!==void 0)),K=J.handler;return K(I,Q,{corp:U})}async function mZ0($,I,U,Y,J){if($==="summary"){let Q=await HI("seal_approval_runs_summary",U,Y,{date:h(J.options.date),timezone:h(J.options.timezone),limit:d0(J.options.limit),startDate:h(J.options.startDate),endDate:h(J.options.endDate),status:h(J.options.status),taskMode:h(J.options.taskMode),manualApprovalStatus:h(J.options.manualApprovalStatus),sourceDocumentSN:h(J.options.sourceDocumentSN),sourceDocumentId:h(J.options.sourceDocumentId),humanResult:h(J.options.humanResult),query:h(J.options.query)});if(Q?.matched===0&&Q?.total>0)console.error(`提示:在 ${Q.date} 未匹配到记录(该企业共有 ${Q.total} 条历史记录)。可使用 --date YYYY-MM-DD 指定日期,或运行 seal-use approval-runs list --limit 10 查看最近记录。`);B0(Q,V0(J.options));return}if($==="stats"){await D0("seal_approval_runs_stats",U,Y,{since:h(J.options.since),dedupeBy:h(J.options.dedupeBy)??h(J.options["dedupe-by"]),status:h(J.options.status),sourceSystem:h(J.options.sourceSystem)??h(J.options["source-system"]),taskMode:h(J.options.taskMode)??h(J.options["task-mode"])},V0(J.options));return}if($==="count"){await D0("seal_approval_runs_count",U,Y,{status:h(J.options.status),sourceSystem:h(J.options.sourceSystem)??h(J.options["source-system"]),taskMode:h(J.options.taskMode)??h(J.options["task-mode"]),search:h(J.options.search)??h(J.options.query)},V0(J.options));return}if($==="search"||$==="list"){await D0("seal_approval_runs_search",U,Y,{limit:d0(J.options.limit),offset:d0(J.options.offset),startDate:h(J.options.startDate),endDate:h(J.options.endDate),status:h(J.options.status),taskMode:h(J.options.taskMode),manualApprovalStatus:h(J.options.manualApprovalStatus),sourceDocumentSN:h(J.options.sourceDocumentSN),sourceDocumentId:h(J.options.sourceDocumentId),humanResult:h(J.options.humanResult),query:h(J.options.query),includeBridge:N0(J.options.includeBridge)},V0(J.options));return}if($==="bridge"){await D0("seal_approval_run_langfuse_bridge_get",U,Y,{recordId:h(J.options.recordId),sourceDocumentSN:h(J.options.sourceDocumentSN),sourceDocumentId:h(J.options.sourceDocumentId),simulationBatchId:h(J.options.simulationBatchId),limit:d0(J.options.limit)},V0(J.options));return}if($==="pick"){let Q=I??h(J.options.query)??h(J.options.sn);if(!Q)throw Error("Usage: seal-use approval-runs pick --sn <documentSN>");await D0("seal_approval_run_pick",U,Y,{query:Q,sn:h(J.options.sn),batchId:h(J.options.batch)??h(J.options.batchId),latest:N0(J.options.latest),fields:h(J.options.fields),limit:d0(J.options.limit),includeBridge:N0(J.options.includeBridge)},V0(J.options));return}if($==="get"){let Q=J.command[2];if(!Q)throw Error("Missing approval run recordId");await D0("seal_approval_run_get",U,Y,{recordId:Q,fields:h(J.options.fields),summary:N0(J.options.summary)},V0(J.options));return}if($==="cited-rules"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs cited-rules <recordId>");await D0("seal_approval_run_cited_rules_get",U,Y,{recordId:Q},V0(J.options));return}if($==="document-summary"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs document-summary <recordId>");await D0("seal_approval_run_document_summary_get",U,Y,{recordId:Q},V0(J.options));return}if($==="attachments"){if(J.command[2]==="download"){let H=J.command[3];if(!H)throw Error("Usage: seal-use approval-runs attachments download <recordId> [--all] [--name <name>] [--out-dir <dir>]");let W=await f4(U,H),V=await gL({record:W,all:N0(J.options.all),name:h(J.options.name),outDir:h(J.options["out-dir"])??h(J.options.outDir)??h(J.options.dir)});if(B0(V,V0(J.options)),V.total>0&&V.downloaded===0)throw Error(`所有 ${V.total} 个附件下载均失败。`);return}let K=J.command[2];if(!K)throw Error("Usage: seal-use approval-runs attachments <recordId> | seal-use approval-runs attachments download <recordId>");if(N0(J.options.download)){let H=await f4(U,K),W=await gL({record:H,all:N0(J.options.all)??!0,name:h(J.options.name),outDir:h(J.options["out-dir"])??h(J.options.outDir)??h(J.options.dir)});if(B0(W,V0(J.options)),W.total>0&&W.downloaded===0)throw Error(`所有 ${W.total} 个附件下载均失败。`);return}let q=await f4(U,K),G=ZJ(q,{summary:N0(J.options.summary)});B0(G,V0(J.options));return}if($==="download"){let Q=J.command[2];if(!Q)throw Error("Usage: seal-use approval-runs download <recordId> [--all] [--name <n Line truncated
- `);throw Error(`Missing required parameter: staffId. Found ${C.length} candidate administrators:
- ${p}
Please specify 'staffId', 'staffName', or 'staffPhone' to explicitly select an account (or pass force:true to bypass).`)}}}if(!L)if(!W&&Q)L=Q;else throw Error("Missing required parameter: staffId (or proxyStaffBizId). Run 'seal-use corps hose-staffs' to discover available administrators.");let D=i1($,"id")??w,F=Z??w,E=i1($,"sealUrl")??`https://${w.toLowerCase()}.sealai.cc`,T={id:D,name:F,seal:{url:E,endpoints:{approvalStylePreferences:"api/v1/agent/ai-approval/config"}},source:{type:"hose",domain:V,appKey:U,appSecurity:Y,corpId:w,staffId:L},auth:{refreshTtl:300}};if(W)AV(D),await EJ(T);let A=Jh();QX0(A,{recursive:!0,mode:448});let R=qX0(A,`${zx(D)}.json`);if(JX0(R)&&$.overwrite!==!0)throw Error(`Enterprise config already exists: ${R}. Pass "overwrite": true to replace it.`);KX0(R,`${JSON.stringify(T,null,2)}
`,{mode:384}),B0({id:D,name:F,corpId:w,domain:V,staffId:L,verified:W,path:R})}async function cG1($){let I=z7($,"token"),U=(i1($,"sealUrl")??i1($,"url")??"").replace(/\/+$/,"");if(!U)throw Error("Missing required JSON field: sealUrl");let Y=uZ0($,"expiresIn")??2592000,J=$.force===!0||$.verify===!1?!1:!0,Q=HX0($),K=J?await mG1(U,I,H2(Q)):void 0;WX0($,{token:I,sealUrl:U,expiresIn:Y,verify:J,remote:K,custom:Q})}function HX0($){return{headers:$h.parse($.headers),cookies:Ih.parse($.cookies)}}async function dG1($,I,U){let Y=await PV($),J=W2(Y.sealUrl,Y.token),Q=await N$(J),K={user:Q.user,tenant:Q.tenant};TV(Y.corpId,K.tenant),WX0({id:Y.corpId,corpId:Y.corpId,name:I,provider:"hosecloud",overwrite:U},{token:Y.token,sealUrl:Y.sealUrl,expiresIn:Y.expiresIn,verify:!0,remote:K})}function WX0($,I){let{token:U,sealUrl:Y,expiresIn:J,verify:Q,remote:K}=I,q=I.custom??HX0($),G=K?.user,H=K?.tenant,W=i1($,"tenantSlug")??L7(H?.tenantSlug),V=i1($,"tenantId")??L7(H?.id),w=i1($,"tenantName")??L7(H?.name),Z=i1($,"id")??W??V;if(!Z)throw Error("Missing required JSON field: id. Seal whoami did not return tenantSlug or tenantId.");let z=i1($,"staffId")??L7(G?.providerUserId)??L7(G?.id)??"seal",L=i1($,"provider")??L7(G?.provider)??L7(H?.providerConfig?.provider),D=i1($,"corpId")??W??V??Z,F={id:Z,name:i1($,"name")??w??Z,seal:{url:Y,tenantSlug:W,headers:q.headers,cookies:q.cookies,endpoints:{approvalStylePreferences:"api/v1/agent/ai-approval/config"}},source:{type:"seal",token:U,sealUrl:Y,expiresIn:J,staffId:z,corpId:D,tenantId:V,tenantSlug:W,tenantName:w,providerUserId:L7(G?.providerUserId),provider:L},auth:{refreshTtl:300}},E=Jh();QX0(E,{recursive:!0,mode:448});let T=qX0(E,`${zx(Z)}.json`);if(JX0(T)&&$.overwrite!==!0)throw Error(`Enterprise config already exists: ${T}. Pass "overwrite": true to replace it.`);KX0(T,`${JSON.stringify(F,null,2)}
`,{mode:384}),B0({id:Z,name:F.name,tenantId:V,tenantSlug:W,verified:Q,path:T})}async function mG1($,I,U={}){let Y=await lG1(`${$}/api/v1/auth/me`,{...U,authorization:`Bearer ${I}`}),J=OD(Y.data);return{user:OD(J.user??Y.user),tenant:OD(J.tenant??Y.tenant)}}async function lG1($,I={}){let U=await fetch($,{headers:I}),Y=await U.text();if(!U.ok)throw Error(`${U.status} ${Y}`);let J=JSON.parse(Y);return OD(J)}function OD($){return $&&typeof $==="object"&&!Array.isArray($)?$:{}}function L7($){return typeof $==="string"&&$?$:void 0}async function VX0($,I){let U=await PV($),Y=W2(U.sealUrl,U.token),J=await N$(Y);TV(U.corpId,J.tenant);let Q=await DU(Y,{note:I});B0({tenant:{id:J.tenant.id,name:J.tenant.name,tenantSlug:J.tenant.tenantSlug,corpId:U.corpId},user:{id:J.user.id,name:J.user.name,providerUserId:J.user.providerUserId,isAdmin:J.user.isAdmin},delegation:Q,expiresIn:U.expiresIn})}async function wX0($,I,U,Y,J){if($==="list"){await D0("seal_delegation_list",U,Y,{},V0(J.options));return}if($==="create"){let Q=h(J.options.note)??(I?[I,...J.command.slice(2)].join(" "):void 0);await D0("seal_delegation_create",U,Y,{note:Q},V0(J.options));return}if($==="revoke"){let Q=I??h(J.options.tokenId);if(!Q)throw Error("Usage: seal-use delegation revoke <tokenId>");await D0("seal_delegation_revoke",U,Y,{tokenId:Q},V0(J.options));return}throw Error(`Unknown delegation command: ${$??""}. Run 'seal-use help' for available commands.`)}import{readFileSync as oG1}from"node:fs";async function ZX0($,I,U,Y,J,Q){if(!$||$==="help")throw Error(`Usage: seal-use deploy <system> <action> [options]
`,{mode:384}),B0({id:D,name:F,corpId:w,domain:V,staffId:L,verified:W,path:R})}async function cG1($){let I=L7($,"token"),U=(i1($,"sealUrl")??i1($,"url")??"").replace(/\/+$/,"");if(!U)throw Error("Missing required JSON field: sealUrl");let Y=uZ0($,"expiresIn")??2592000,J=$.force===!0||$.verify===!1?!1:!0,Q=HX0($),K=J?await mG1(U,I,H2(Q)):void 0;WX0($,{token:I,sealUrl:U,expiresIn:Y,verify:J,remote:K,custom:Q})}function HX0($){return{headers:$h.parse($.headers),cookies:Ih.parse($.cookies)}}async function dG1($,I,U){let Y=await PV($),J=W2(Y.sealUrl,Y.token),Q=await N$(J),K={user:Q.user,tenant:Q.tenant};TV(Y.corpId,K.tenant),WX0({id:Y.corpId,corpId:Y.corpId,name:I,provider:"hosecloud",overwrite:U},{token:Y.token,sealUrl:Y.sealUrl,expiresIn:Y.expiresIn,verify:!0,remote:K})}function WX0($,I){let{token:U,sealUrl:Y,expiresIn:J,verify:Q,remote:K}=I,q=I.custom??HX0($),G=K?.user,H=K?.tenant,W=i1($,"tenantSlug")??D7(H?.tenantSlug),V=i1($,"tenantId")??D7(H?.id),w=i1($,"tenantName")??D7(H?.name),Z=i1($,"id")??W??V;if(!Z)throw Error("Missing required JSON field: id. Seal whoami did not return tenantSlug or tenantId.");let z=i1($,"staffId")??D7(G?.providerUserId)??D7(G?.id)??"seal",L=i1($,"provider")??D7(G?.provider)??D7(H?.providerConfig?.provider),D=i1($,"corpId")??W??V??Z,F={id:Z,name:i1($,"name")??w??Z,seal:{url:Y,tenantSlug:W,headers:q.headers,cookies:q.cookies,endpoints:{approvalStylePreferences:"api/v1/agent/ai-approval/config"}},source:{type:"seal",token:U,sealUrl:Y,expiresIn:J,staffId:z,corpId:D,tenantId:V,tenantSlug:W,tenantName:w,providerUserId:D7(G?.providerUserId),provider:L},auth:{refreshTtl:300}},E=Jh();QX0(E,{recursive:!0,mode:448});let T=qX0(E,`${zx(Z)}.json`);if(JX0(T)&&$.overwrite!==!0)throw Error(`Enterprise config already exists: ${T}. Pass "overwrite": true to replace it.`);KX0(T,`${JSON.stringify(F,null,2)}
`,{mode:384}),B0({id:Z,name:F.name,tenantId:V,tenantSlug:W,verified:Q,path:T})}async function mG1($,I,U={}){let Y=await lG1(`${$}/api/v1/auth/me`,{...U,authorization:`Bearer ${I}`}),J=OD(Y.data);return{user:OD(J.user??Y.user),tenant:OD(J.tenant??Y.tenant)}}async function lG1($,I={}){let U=await fetch($,{headers:I}),Y=await U.text();if(!U.ok)throw Error(`${U.status} ${Y}`);let J=JSON.parse(Y);return OD(J)}function OD($){return $&&typeof $==="object"&&!Array.isArray($)?$:{}}function D7($){return typeof $==="string"&&$?$:void 0}async function VX0($,I){let U=await PV($),Y=W2(U.sealUrl,U.token),J=await N$(Y);TV(U.corpId,J.tenant);let Q=await OU(Y,{note:I});B0({tenant:{id:J.tenant.id,name:J.tenant.name,tenantSlug:J.tenant.tenantSlug,corpId:U.corpId},user:{id:J.user.id,name:J.user.name,providerUserId:J.user.providerUserId,isAdmin:J.user.isAdmin},delegation:Q,expiresIn:U.expiresIn})}async function wX0($,I,U,Y,J){if($==="list"){await D0("seal_delegation_list",U,Y,{},V0(J.options));return}if($==="create"){let Q=h(J.options.note)??(I?[I,...J.command.slice(2)].join(" "):void 0);await D0("seal_delegation_create",U,Y,{note:Q},V0(J.options));return}if($==="revoke"){let Q=I??h(J.options.tokenId);if(!Q)throw Error("Usage: seal-use delegation revoke <tokenId>");await D0("seal_delegation_revoke",U,Y,{tokenId:Q},V0(J.options));return}throw Error(`Unknown delegation command: ${$??""}. Run 'seal-use help' for available commands.`)}import{readFileSync as oG1}from"node:fs";async function ZX0($,I,U,Y,J,Q){if(!$||$==="help")throw Error(`Usage: seal-use deploy <system> <action> [options]
`+`支持的审批系统与发布目标:
`+` • hosecloud (合思费控): seal-use deploy hosecloud <requirements|list|get|status|configure|sync> --corp <corpId>
@@ -487,11 +487,11 @@ selection, source authentication, response compaction, and diagnostics-friendly
</body>
</html>`}async function k4($,I,U,Y){let J=$.handler;return J(I,U,{corp:Y})}async function LX0($,I){if(I.setHeader("Access-Control-Allow-Origin","*"),I.setHeader("Access-Control-Allow-Methods","GET, POST, PUT, DELETE, OPTIONS, PATCH"),I.setHeader("Access-Control-Allow-Headers","Content-Type, Authorization, X-Seal-Corp, X-Seal-Home-Session"),$.method==="OPTIONS"){I.writeHead(204),I.end();return}let U=$.headers.host||"localhost",Y=$.headers["x-forwarded-proto"]||"http",J=new tG1($.url||"/",`${Y}://${U}`),Q=J.pathname.replace(/\/+$/,"")||"/",K=($.method||"GET").toUpperCase();try{if(K==="GET"&&Q==="/"){m1(I,200,{name:"seal-use",version:I1,description:"Seal tenant operations and approval automation HTTP API",docs:"/docs",openapi:"/openapi.json",health:"/health",endpoints:{cli:"POST /api/cli",tools:"GET /api/tools",toolInvoke:"POST /api/tool/:name",restV1:"GET/POST /v1/*"}});return}if(K==="GET"&&Q==="/docs"){sG1(I,200,zX0());return}if(K==="GET"&&Q==="/openapi.json"){m1(I,200,FD());return}if(K==="GET"&&Q==="/health"){m1(I,200,{status:"ok",version:I1,name:"seal-use",timestamp:new Date().toISOString()});return}if(K==="POST"&&(Q==="/shutdown"||Q==="/api/shutdown")){m1(I,200,{success:!0,message:"Shutting down seal-use background daemon",pid:process.pid}),setTimeout(()=>{process.kill(process.pid,"SIGTERM")},50);return}if(K==="POST"&&Q==="/api/cli"){let q=await MD($),G=(typeof q?.command==="string"?q.command:"").trim();if(!G){ND(I,400,"Missing 'command' property in request body");return}let H=Mx(G),W=H[0]==="seal-use"||H[0]==="seal-home"||H[0]?.endsWith("/seal-use")||H[0]?.endsWith("/seal-home")?H.slice(1):H,V=await zG(W),w=void 0;try{if(V.stdout.trim().startsWith("{")||V.stdout.trim().startsWith("["))w=JSON.parse(V.stdout)}catch{}m1(I,V.isError?400:200,{success:!V.isError,stdout:V.stdout,stderr:V.stderr,exitCode:V.exitCode,data:w});return}if(K==="POST"&&Q.startsWith("/api/tool/")){let q=Q.slice(10).trim(),G=C4(q);if(!G){ND(I,404,`Tool not found: '${q}'`);return}let H=await MD($)||{},W=y6($,J,H),V=D4(W),w=await Y4(V),Z={...H};delete Z.corp;let z=await k4(G,w,Z,V);m1(I,200,z);return}if(Q.startsWith("/v1/")){if(await aG1($,I,K,Q,J))return}ND(I,404,`Cannot ${K} ${Q}. Visit /docs for available endpoints.`)}catch(q){let G=q instanceof Error?q.message:String(q);ND(I,500,G)}}async function aG1($,I,U,Y,J){let Q=Object.fromEntries(J.searchParams.entries());if(U==="GET"&&Y==="/v1/corps"){let K=b8(),q=L4();return m1(I,200,{count:K.length,mode:q.stateful?"stateful":"stateless",defaultCorpId:q.defaultCorpId,corps:K.map((G)=>({id:G.id,name:G.name,sourceType:G.source.type,sealUrl:G.seal?.url}))}),!0}if(U==="GET"&&Y==="/v1/whoami"){let K=y6($,J,Q),q=D4(K),G=await Y4(q),H=C4("seal_whoami"),W=await k4(H,G,{},q);return m1(I,200,W),!0}if(U==="GET"&&Y==="/v1/session"){let K=y6($,J,Q),q=D4(K),G=await Y4(q),H=C4("seal_session_get"),W=await k4(H,G,{},q);return m1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/summary"){let K=y6($,J,Q),q=D4(K),G=await Y4(q),H=C4("seal_approval_runs_summary"),W=await k4(H,G,Q,q);return m1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/stats"){let K=y6($,J,Q),q=D4(K),G=await Y4(q),H=C4("seal_approval_runs_stats"),W=await k4(H,G,Q,q);return m1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/pick"){let K=y6($,J,Q),q=D4(K),G=await Y4(q),H=C4("seal_approval_run_pick"),W=await k4(H,G,Q,q);return m1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval-runs/url"){let K=y6($,J,Q),q=D4(K),G=await Y4(q),H=C4("seal_approval_run_url_get"),W=await k4(H,G,Q,q);return m1(I,200,W),!0}if(Y.startsWith("/v1/approval-runs/")){let K=Y.slice(18).split("/"),q=K[0],G=K[1];if(q&&!["summary","pick","stats","url","bridge"].includes(q)){let H=y6($,J,Q),W=D4(H),V=await Y4(W);if(!G){let w=C4("seal_approval_run_get"),Z=await k4(w,V,{recordId:q,...Q},W);return m1(I,200,Z),!0}if(G==="attachments"){let w=C4("seal_approval_run_attachments_get"),Z=await k4(w,V,{recordId:q,...Q},W);return m1(I,200,Z),!0}if(G==="cited-rules"){let w=C4("seal_approval_run_cited_rules_get"),Z=await k4(w,V,{recordId:q,...Q},W);return m1(I,200,Z),!0}if(G==="document-summary"){let w=C4("seal_approval_run_document_summary_get"),Z=await k4(w,V,{recordId:q,...Q},W);return m1(I,200,Z),!0}if(G==="result"){let w=C4("seal_approval_run_result_get"),Z=await k4(w,V,{recordId:q,...Q},W);return m1(I,200,Z),!0}}}if(U==="GET"&&Y==="/v1/approval-runs"){let K=y6($,J,Q),q=D4(K),G=await Y4(q),H=C4("seal_approval_runs_search"),W=await k4(H,G,{...Q,limit:Q.limit?Number(Q.limit):void 0,offset:Q.offset?Number(Q.offset):void 0,includeBridge:Q.includeBridge==="true"},q);return m1(I,200,W),!0}if(U==="GET"&&Y==="/v1/approval/rules"){let K=y6($,J,Q),q=D4(K),G=await Y4(q),H=C4("seal_approval_rules_list"),W=await k4(H,G,Q,q);return m1(I,200,W),!0}if(U==="GET"&&Y==="/v1/simulation/batches"){let K=y6($,J,Q),q=D4(K),G=await Y4(q),H=C4("seal_simulation_batches_list"),W=await k4(H,G,Q,q);return m1(I,200,W),!0}if(U==="POST"&&Y==="/v1/simulation/create-batch"){let K=await MD($)||{},q=y6($,J,K),G=D4(q),H=await Y4Line truncated
\uD83D\uDE80 seal-use HTTP Server (v${I1}) started`),console.error(` URL: http://${U}:${I}`),console.error(` Docs: http://${U}:${I}/docs`),console.error(` OpenAPI: http://${U}:${I}/openapi.json`),console.error(` CLI Exec: POST http://${U}:${I}/api/cli`),console.error(` REST API: http://${U}:${I}/v1/...
`);J(Y)})})}async function DX0($){let I=d0($.options.port)??d0($.options.p),U=h($.options.host)??h($.options.h),Y=await TD({port:I,host:U}),J=()=>{Y.close(()=>{process.exit(0)})};process.on("SIGINT",J),process.on("SIGTERM",J),await new Promise(()=>{})}async function OX0($,I,U,Y){if($==="config"||$==="get"){await D0("seal_llm_config_get",I,U,{},V0(Y.options));return}if($==="providers"||$==="list"){await D0("seal_llm_providers_list",I,U,{},V0(Y.options));return}throw Error(`Unknown llm command: ${$??""}. Run 'seal-use help' for available commands.`)}async function FX0($,I){if($==="config"||$==="json"){Ax();return}await Px()}function Ax(){B0({mcpServers:{"seal-use":{type:"stdio",command:"seal-use",args:["mcp"],env:{SEAL_USE_MCP_ENABLED:"true"}}}})}function NX0($){let I=FD();B0(I,{...V0($.options),allowFull:!0})}async function MX0($,I,U,Y){if($==="available"){await D0("seal_permissions_available_list",I,U,{},V0(Y.options));return}if($==="configs"||$==="list"){await D0("seal_permissions_configs_list",I,U,{},V0(Y.options));return}throw Error(`Unknown permissions command: ${$??""}. Run 'seal-use help' for available commands.`)}import{readFileSync as AX0}from"node:fs";async function PX0($,I,U,Y,J,Q,K){if(!$||$==="get"){await D0("seal_preference_get",J,Q,{},V0(K.options));return}if($==="decision"){if(I==="update"||!I){let q=h(K.options.input),G=q?JSON.parse(AX0(q,"utf8")):t6(K.json);if(!G||Object.keys(G).length===0)throw Error(`Usage: seal-use preference decision update --json '{"explicitApprove":"..."}'`);await D0("seal_preference_decision_update",J,Q,{...G,dryRun:N0(K.options.dryRun)??N0(K.options["dry-run"])},V0(K.options));return}}if($==="thinking-depth"||$==="thinkingDepth"){if(I==="set"){let q=h(K.options.default)??h(K.options.level)??Y;if(q!=="medium"&&q!=="high")throw Error("Usage: seal-use preference thinking-depth set --default <medium|high>");await D0("seal_preference_thinking_depth_set",J,Q,{defaultLevel:q,dryRun:N0(K.options.dryRun)??N0(K.options["dry-run"])},V0(K.options));return}if(I==="policies"){if(U==="list"||!U){await D0("seal_preference_thinking_depth_policies_list",J,Q,{},V0(K.options));return}if(U==="upsert"){let q=h(K.options.input),G=q?JSON.parse(AX0(q,"utf8")):t6(K.json);if(!G||!G.id||!G.name)throw Error(`Usage: seal-use preference thinking-depth policies upsert --json '{"id":"...","name":"...","level":"high"}'`);await D0("seal_preference_thinking_depth_policies_upsert",J,Q,{...G,dryRun:N0(K.options.dryRun)??N0(K.options["dry-run"])},V0(K.options));return}if(U==="remove"||U==="delete"){let q=Y??h(K.options.id)??h(K.options.policyId);if(!q)throw Error("Usage: seal-use preference thinking-depth policies remove <policyId>");await D0("seal_preference_thinking_depth_policies_remove",J,Q,{policyId:q,dryRun:N0(K.options.dryRun)??N0(K.options["dry-run"])},V0(K.options));return}}}throw Error(`Unknown preference action: ${$??""}. Available: get, decision update, thinking-depth set, thinking-depth policies list/upsert/remove.`)}async function TX0($={}){let I=b8(),U=L4(),Y=ZJ(I,{stateful:U.stateful,defaultCorpId:U.defaultCorpId,corpId:$.corpId},a3());console.log(`[probe] corp=${Y.id} source=${Y.source.type}`);let J=await EJ(Y);console.log("[probe] seal enterprise"),console.log(JSON.stringify(J,null,2));let Q=await Y4(Y),K=await bV(Q,{documentLimit:20,stylePreferencesEndpoint:Y.seal.endpoints.approvalStylePreferences});console.log("[probe] approval context summary"),console.log(JSON.stringify({rules:K.rules.rules.length,hasPendingRuleDeletes:K.rules.hasPendingDeletes,documents:K.documents.articles.length,documentsTotal:K.documents.total,stylePreferences:K.stylePreferences.ok?"ok":`error: ${K.stylePreferences.error}`},null,2))}async function EX0($,I,U){let Y=I??h(U.options.corp)??($&&$!=="--corp"?$:void 0);await TX0({corpId:Y})}async function Tx($,I,U,Y,J){if($==="count"){await D0("seal_approval_rules_list",U,Y,{countOnly:!0},V0(J.options));return}if($==="list"){if(N0(J.options.count)){await D0("seal_approval_rules_list",U,Y,{countOnly:!0},V0(J.options));return}let Q=d0(J.options.limit),K=d0(J.options.offset);if(N0(J.options.summary)){await D0("seal_approval_rules_list",U,Y,{fields:pZ0,limit:Q,offset:K},V0(J.options));return}let q=await GI("seal_approval_rules_list",U,Y,{limit:Q,offset:K});cZ0(q,N0(J.options.full)===!0),B0(q);return}if($==="clear"){let Q=N0(J.options.yes)===!0,K=N0(J.options.dryRun)??N0(J.options["dry-run"])??!Q;if(!Q&&!K)throw zD("Refusing to clear rules without --yes. Use --dry-run to preview.",`seal-use rules clear --corp ${Y.id} --dry-run`);let q=await GI("seal_approval_rules_clear",U,Y,{dryRun:K,recode:N0(J.options.recode)});if(!Q&&K&&q&&typeof q==="object"){B0({...q,nextCommand:`seal-use rules clear --corp ${Y.id} --yes`},V0(J.options));return}B0(q,V0(J.options));return}if($==="versions"){await D0("seal_approval_rule_versions_list",U,Y,{},V0(J.options));return}if($==="version"){let Q=I??h(J.options.version);if(!Q)throw Error("Usage: seal-use rules version <versionId|versionNumber|l Line truncated
`);J(Y)})})}async function DX0($){let I=d0($.options.port)??d0($.options.p),U=h($.options.host)??h($.options.h),Y=await TD({port:I,host:U}),J=()=>{Y.close(()=>{process.exit(0)})};process.on("SIGINT",J),process.on("SIGTERM",J),await new Promise(()=>{})}async function OX0($,I,U,Y){if($==="config"||$==="get"){await D0("seal_llm_config_get",I,U,{},V0(Y.options));return}if($==="providers"||$==="list"){await D0("seal_llm_providers_list",I,U,{},V0(Y.options));return}throw Error(`Unknown llm command: ${$??""}. Run 'seal-use help' for available commands.`)}async function FX0($,I){if($==="config"||$==="json"){Ax();return}await Px()}function Ax(){B0({mcpServers:{"seal-use":{type:"stdio",command:"seal-use",args:["mcp"],env:{SEAL_USE_MCP_ENABLED:"true"}}}})}function NX0($){let I=FD();B0(I,{...V0($.options),allowFull:!0})}async function MX0($,I,U,Y){if($==="available"){await D0("seal_permissions_available_list",I,U,{},V0(Y.options));return}if($==="configs"||$==="list"){await D0("seal_permissions_configs_list",I,U,{},V0(Y.options));return}throw Error(`Unknown permissions command: ${$??""}. Run 'seal-use help' for available commands.`)}import{readFileSync as AX0}from"node:fs";async function PX0($,I,U,Y,J,Q,K){if(!$||$==="get"){await D0("seal_preference_get",J,Q,{},V0(K.options));return}if($==="decision"){if(I==="update"||!I){let q=h(K.options.input),G=q?JSON.parse(AX0(q,"utf8")):t6(K.json);if(!G||Object.keys(G).length===0)throw Error(`Usage: seal-use preference decision update --json '{"explicitApprove":"..."}'`);await D0("seal_preference_decision_update",J,Q,{...G,dryRun:N0(K.options.dryRun)??N0(K.options["dry-run"])},V0(K.options));return}}if($==="thinking-depth"||$==="thinkingDepth"){if(I==="set"){let q=h(K.options.default)??h(K.options.level)??Y;if(q!=="medium"&&q!=="high")throw Error("Usage: seal-use preference thinking-depth set --default <medium|high>");await D0("seal_preference_thinking_depth_set",J,Q,{defaultLevel:q,dryRun:N0(K.options.dryRun)??N0(K.options["dry-run"])},V0(K.options));return}if(I==="policies"){if(U==="list"||!U){await D0("seal_preference_thinking_depth_policies_list",J,Q,{},V0(K.options));return}if(U==="upsert"){let q=h(K.options.input),G=q?JSON.parse(AX0(q,"utf8")):t6(K.json);if(!G||!G.id||!G.name)throw Error(`Usage: seal-use preference thinking-depth policies upsert --json '{"id":"...","name":"...","level":"high"}'`);await D0("seal_preference_thinking_depth_policies_upsert",J,Q,{...G,dryRun:N0(K.options.dryRun)??N0(K.options["dry-run"])},V0(K.options));return}if(U==="remove"||U==="delete"){let q=Y??h(K.options.id)??h(K.options.policyId);if(!q)throw Error("Usage: seal-use preference thinking-depth policies remove <policyId>");await D0("seal_preference_thinking_depth_policies_remove",J,Q,{policyId:q,dryRun:N0(K.options.dryRun)??N0(K.options["dry-run"])},V0(K.options));return}}}throw Error(`Unknown preference action: ${$??""}. Available: get, decision update, thinking-depth set, thinking-depth policies list/upsert/remove.`)}async function TX0($={}){let I=b8(),U=L4(),Y=XJ(I,{stateful:U.stateful,defaultCorpId:U.defaultCorpId,corpId:$.corpId},s3());console.log(`[probe] corp=${Y.id} source=${Y.source.type}`);let J=await EJ(Y);console.log("[probe] seal enterprise"),console.log(JSON.stringify(J,null,2));let Q=await Y4(Y),K=await bV(Q,{documentLimit:20,stylePreferencesEndpoint:Y.seal.endpoints.approvalStylePreferences});console.log("[probe] approval context summary"),console.log(JSON.stringify({rules:K.rules.rules.length,hasPendingRuleDeletes:K.rules.hasPendingDeletes,documents:K.documents.articles.length,documentsTotal:K.documents.total,stylePreferences:K.stylePreferences.ok?"ok":`error: ${K.stylePreferences.error}`},null,2))}async function EX0($,I,U){let Y=I??h(U.options.corp)??($&&$!=="--corp"?$:void 0);await TX0({corpId:Y})}async function Tx($,I,U,Y,J){if($==="count"){await D0("seal_approval_rules_list",U,Y,{countOnly:!0},V0(J.options));return}if($==="list"){if(N0(J.options.count)){await D0("seal_approval_rules_list",U,Y,{countOnly:!0},V0(J.options));return}let Q=d0(J.options.limit),K=d0(J.options.offset);if(N0(J.options.summary)){await D0("seal_approval_rules_list",U,Y,{fields:pZ0,limit:Q,offset:K},V0(J.options));return}let q=await HI("seal_approval_rules_list",U,Y,{limit:Q,offset:K});cZ0(q,N0(J.options.full)===!0),B0(q);return}if($==="clear"){let Q=N0(J.options.yes)===!0,K=N0(J.options.dryRun)??N0(J.options["dry-run"])??!Q;if(!Q&&!K)throw zD("Refusing to clear rules without --yes. Use --dry-run to preview.",`seal-use rules clear --corp ${Y.id} --dry-run`);let q=await HI("seal_approval_rules_clear",U,Y,{dryRun:K,recode:N0(J.options.recode)});if(!Q&&K&&q&&typeof q==="object"){B0({...q,nextCommand:`seal-use rules clear --corp ${Y.id} --yes`},V0(J.options));return}B0(q,V0(J.options));return}if($==="versions"){await D0("seal_approval_rule_versions_list",U,Y,{},V0(J.options));return}if($==="version"){let Q=I??h(J.options.version);if(!Q)throw Error("Usage: seal-use rules version <versionId|versionNumber|l Line truncated
`).filter(Boolean),Q=J.slice(-I);return{logFile:U,lines:Q,totalLines:J.length}}async function JH1($){let I=RD($),U=vx($),Y=LG($);CX0($.stateDir);let J=$.port??(process.env.PORT?Number.parseInt(process.env.PORT,10):AD),Q=$.host??(process.env.HOST?process.env.HOST:PD);BD(I,`${process.pid}
`,{mode:384}),BD(U,JSON.stringify({pid:process.pid,port:J,host:Q,version:$.version,startedAt:new Date().toISOString()},null,2),{mode:384}),BJ(Y,`service starting on http://${Q}:${J} pid=${process.pid}`);let K=null;try{K=await TD({port:J,host:Q,silent:!0}),BJ(Y,`service listening pid=${process.pid}`)}catch(G){if(BJ(Y,`service failed to bind port ${J}: ${G instanceof Error?G.message:String(G)}`),vD(I)===process.pid)d8(I,{force:!0}),d8(U,{force:!0});throw G}let q=()=>{if(K)K.close(),K=null;if(vD(I)===process.pid)d8(I,{force:!0}),d8(U,{force:!0});BJ(Y,`stopped pid=${process.pid}`)};await new Promise((G)=>{let H=!1,W=()=>{if(H)return;H=!0,q(),process.off("SIGTERM",W),process.off("SIGINT",W),G()};process.once("SIGTERM",W),process.once("SIGINT",W)})}function BX0($){CX0($.stateDir);let I=vJ($);if(I.running)return I;let U=$.launcher??{command:process.execPath,args:[$.entryFile]},Y=[...U.args??[],"service","run"];if($.port)Y.push("--port",String($.port));if($.host)Y.push("--host",String($.host));let J=$H1(U.command,Y,{cwd:$.appRoot,detached:!0,stdio:["ignore","ignore","ignore"],env:process.env});J.unref();let Q=RD($);return BD(Q,`${J.pid}
`,{mode:384}),BJ(LG($),`started pid=${J.pid}`),{started:!0,...vJ($)}}function vX0($,I={}){let U=RD($),Y=vx($),J=vD(U);if(!J||!RX0(J,$.appRoot))return d8(U,{force:!0}),d8(Y,{force:!0}),I.quiet?void 0:{stopped:!1,reason:"not running"};return process.kill(J,"SIGTERM"),d8(U,{force:!0}),d8(Y,{force:!0}),BJ(LG($),`stop requested pid=${J}`),I.quiet?void 0:{stopped:!0,pid:J}}function RX0($,I){if(!QH1($))return!1;try{let U=IH1("ps",["-p",String($),"-o","command="],{encoding:"utf8"});return(U.includes(I)||U.includes("seal-use")||U.includes("src/cli.ts"))&&U.includes("service")&&U.includes("run")}catch{return!1}}function QH1($){try{return process.kill($,0),!0}catch{return!1}}function RD($){return Bx($.stateDir,"service.pid")}function vx($){return Bx($.stateDir,"service.json")}function LG($){return Bx($.stateDir,"service.log")}function vD($){if(!ED($))return;let I=Number(Ex($,"utf8").trim());return Number.isInteger(I)&&I>0?I:void 0}function CX0($){UH1($,{recursive:!0,mode:448})}function BJ($,I){BD($,`${new Date().toISOString()} ${I}
`,{flag:"a",mode:384})}var Rx=qH1(KH1(),".config","seal-use");async function Cx($,I,U){let Y=U?d0(U.options.port)??d0(U.options.p):void 0,J=U?h(U.options.host)??h(U.options.h):void 0,Q=U?d0(U.options.lines)??d0(U.options.n):void 0,K=await HI($,{appRoot:I.appRoot,entryFile:I.entryFile,stateDir:Rx,version:I1,launcher:I.launcher,port:Y,host:J},{maxLines:Q});if(K!==void 0)B0(K)}import{existsSync as GH1,readFileSync as jX0}from"node:fs";async function _X0($,I,U,Y,J){if($==="batch-records"||$==="records"){let Q=I??h(J.options.batchId)??h(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation batch-records <batchId>");await D0("seal_simulation_batch_records_get",U,Y,{batchId:Q,query:h(J.options.query)},V0(J.options));return}if($==="create"||$==="run"){let Q=h(J.options.mode)??h(J.options.sourceSystem)??h(J.options["source-system"])??"hosecloud",K=Q==="material-pack"?"material_pack":Q,q=h(J.options.schemaConfig)??h(J.options["schema-config"]),G=q?JSON.parse(jX0(q,"utf8")):void 0,H=h(J.options.input),W=H?JSON.parse(jX0(H,"utf8")):t6(J.json),V=h(J.options.packageId)??h(J.options["package-id"]),w=W6(J.options.packageIds)??W6(J.options["package-ids"])??(V?[V]:void 0),Z=W6(J.options.flowIds)??W6(J.options["flow-ids"])??W6(J.options.documentSn)??W6(J.options["document-sn"]),z=h(J.options.signKey)??h(J.options["sign-key"])??h(J.options.integration),L=N0(J.options.noWait)??N0(J.options["no-wait"]);await D0("seal_simulation_batch_create",U,Y,{mode:K,sourceSystem:K,flowIds:Z,documentSn:Z,rejectNodeName:h(J.options.rejectNode)??h(J.options["reject-node"])??null,thinkingDepthOverride:h(J.options.thinkingDepth)??h(J.options["thinking-depth"]),skipInvoiceGeneration:N0(J.options.skipInvoiceGeneration)??N0(J.options["skip-invoice-generation"]),skipExpenseExtraction:N0(J.options.skipExpenseExtraction)??N0(J.options["skip-expense-extraction"]),disableAttachmentCache:N0(J.options.disableAttachmentCache)??N0(J.options["disable-attachment-cache"]),signKey:z,packageIds:w,packageId:V,templateId:h(J.options.templateId)??h(J.options["template-id"]),schemaConfig:G,requestIds:W6(J.options.requestIds)??W6(J.options["request-ids"]),workflowTypeId:h(J.options.workflowTypeId)??h(J.options["workflow-type-id"]),flowStatusList:W6(J.options.flowStatusList)?.map(Number)??W6(J.options["flow-status-list"])?.map(Number),businessCodes:W6(J.options.businessCodes)??W6(J.options["business-codes"]),documentType:h(J.options.documentType)??h(J.options["document-type"]),startTime:d0(J.options.startTime)??d0(J.options["start-time"]),endTime:d0(J.options.endTime)??d0(J.options["end-time"]),status:W6(J.options.status),limit:d0(J.options.limit),noWait:L,rawParams:W},V0(J.options));return}if($==="wait"){let Q=I??h(J.options.batchId)??h(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation wait <batchId> [--timeout 10m] [--poll-interval 2s]");await D0("seal_simulation_batch_wait",U,Y,{batchId:Q,timeout:h(J.options.timeout),pollInterval:h(J.options.pollInterval)??h(J.options["poll-interval"])},V0(J.options));return}if($==="status"){let Q=I??h(J.options.batchId)??h(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation status <batchId>");await D0("seal_simulation_batch_status",U,Y,{batchId:Q},V0(J.options));return}if($==="clean"||$==="delete"){let Q=I??h(J.options.batchId)??h(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation clean <batchId>");await D0("seal_simulation_batch_clean",U,Y,{batchId:Q},V0(J.options));return}if($==="specifications"){let Q=I??h(J.options.integration)??h(J.options.signKey)??h(J.options["sign-key"]);await D0("seal_simulation_specifications_list",U,Y,{signKey:Q},V0(J.options));return}if($==="approval-definitions"||$==="definitions"){await D0("seal_simulation_feishu_approval_definitions_list",U,Y,{},V0(J.options));return}if($==="list"){await D0("seal_simulation_batches_list",U,Y,{limit:d0(J.options.limit)},V0(J.options));return}if($==="get"){let Q=I??h(J.options.batchId)??h(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation get <batchId>");await D0("seal_simulation_batch_get",U,Y,{batchId:Q},V0(J.options));return}if($==="templates"){await D0("seal_simulation_templates_get",U,Y,{},V0(J.options));return}if($==="integrations"){await D0("seal_simulation_integrations_get",U,Y,{},V0(J.options));return}if($==="package-upload"){let Q=I??h(J.options.file);if(!Q)throw Error("Usage: seal-use simulation package-upload <材料包.zip>");if(!GH1(Q))throw Error(`File not found: ${Q}`);await D0("seal_simulation_material_package_upload",U,Y,{filePath:Q},V0(J.options));return}throw Error(`Unknown simulation command: ${$??""}. Run 'seal-use help' for available commands.`)}import{existsSync as rX0}from"node:fs";import{join as CD}from"node:path";import{existsSync as jx,mkdirSync as pX0,rmSync as NH1,writeFileSync as MH1}from"node:fs";import{homedir as cX0}from"node:os";import{dirname as AH1,join as _x}from"node:path";var SX0=`---
`,{flag:"a",mode:384})}var Rx=qH1(KH1(),".config","seal-use");async function Cx($,I,U){let Y=U?d0(U.options.port)??d0(U.options.p):void 0,J=U?h(U.options.host)??h(U.options.h):void 0,Q=U?d0(U.options.lines)??d0(U.options.n):void 0,K=await WI($,{appRoot:I.appRoot,entryFile:I.entryFile,stateDir:Rx,version:I1,launcher:I.launcher,port:Y,host:J},{maxLines:Q});if(K!==void 0)B0(K)}import{existsSync as GH1,readFileSync as jX0}from"node:fs";async function _X0($,I,U,Y,J){if($==="batch-records"||$==="records"){let Q=I??h(J.options.batchId)??h(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation batch-records <batchId>");await D0("seal_simulation_batch_records_get",U,Y,{batchId:Q,query:h(J.options.query)},V0(J.options));return}if($==="create"||$==="run"){let Q=h(J.options.mode)??h(J.options.sourceSystem)??h(J.options["source-system"])??"hosecloud",K=Q==="material-pack"?"material_pack":Q,q=h(J.options.schemaConfig)??h(J.options["schema-config"]),G=q?JSON.parse(jX0(q,"utf8")):void 0,H=h(J.options.input),W=H?JSON.parse(jX0(H,"utf8")):t6(J.json),V=h(J.options.packageId)??h(J.options["package-id"]),w=W6(J.options.packageIds)??W6(J.options["package-ids"])??(V?[V]:void 0),Z=W6(J.options.flowIds)??W6(J.options["flow-ids"])??W6(J.options.documentSn)??W6(J.options["document-sn"]),z=h(J.options.signKey)??h(J.options["sign-key"])??h(J.options.integration),L=N0(J.options.noWait)??N0(J.options["no-wait"]);await D0("seal_simulation_batch_create",U,Y,{mode:K,sourceSystem:K,flowIds:Z,documentSn:Z,rejectNodeName:h(J.options.rejectNode)??h(J.options["reject-node"])??null,thinkingDepthOverride:h(J.options.thinkingDepth)??h(J.options["thinking-depth"]),skipInvoiceGeneration:N0(J.options.skipInvoiceGeneration)??N0(J.options["skip-invoice-generation"]),skipExpenseExtraction:N0(J.options.skipExpenseExtraction)??N0(J.options["skip-expense-extraction"]),disableAttachmentCache:N0(J.options.disableAttachmentCache)??N0(J.options["disable-attachment-cache"]),signKey:z,packageIds:w,packageId:V,templateId:h(J.options.templateId)??h(J.options["template-id"]),schemaConfig:G,requestIds:W6(J.options.requestIds)??W6(J.options["request-ids"]),workflowTypeId:h(J.options.workflowTypeId)??h(J.options["workflow-type-id"]),flowStatusList:W6(J.options.flowStatusList)?.map(Number)??W6(J.options["flow-status-list"])?.map(Number),businessCodes:W6(J.options.businessCodes)??W6(J.options["business-codes"]),documentType:h(J.options.documentType)??h(J.options["document-type"]),startTime:d0(J.options.startTime)??d0(J.options["start-time"]),endTime:d0(J.options.endTime)??d0(J.options["end-time"]),status:W6(J.options.status),limit:d0(J.options.limit),noWait:L,rawParams:W},V0(J.options));return}if($==="wait"){let Q=I??h(J.options.batchId)??h(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation wait <batchId> [--timeout 10m] [--poll-interval 2s]");await D0("seal_simulation_batch_wait",U,Y,{batchId:Q,timeout:h(J.options.timeout),pollInterval:h(J.options.pollInterval)??h(J.options["poll-interval"])},V0(J.options));return}if($==="status"){let Q=I??h(J.options.batchId)??h(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation status <batchId>");await D0("seal_simulation_batch_status",U,Y,{batchId:Q},V0(J.options));return}if($==="clean"||$==="delete"){let Q=I??h(J.options.batchId)??h(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation clean <batchId>");await D0("seal_simulation_batch_clean",U,Y,{batchId:Q},V0(J.options));return}if($==="specifications"){let Q=I??h(J.options.integration)??h(J.options.signKey)??h(J.options["sign-key"]);await D0("seal_simulation_specifications_list",U,Y,{signKey:Q},V0(J.options));return}if($==="approval-definitions"||$==="definitions"){await D0("seal_simulation_feishu_approval_definitions_list",U,Y,{},V0(J.options));return}if($==="list"){await D0("seal_simulation_batches_list",U,Y,{limit:d0(J.options.limit)},V0(J.options));return}if($==="get"){let Q=I??h(J.options.batchId)??h(J.options["batch-id"]);if(!Q)throw Error("Usage: seal-use simulation get <batchId>");await D0("seal_simulation_batch_get",U,Y,{batchId:Q},V0(J.options));return}if($==="templates"){await D0("seal_simulation_templates_get",U,Y,{},V0(J.options));return}if($==="integrations"){await D0("seal_simulation_integrations_get",U,Y,{},V0(J.options));return}if($==="package-upload"){let Q=I??h(J.options.file);if(!Q)throw Error("Usage: seal-use simulation package-upload <材料包.zip>");if(!GH1(Q))throw Error(`File not found: ${Q}`);await D0("seal_simulation_material_package_upload",U,Y,{filePath:Q},V0(J.options));return}throw Error(`Unknown simulation command: ${$??""}. Run 'seal-use help' for available commands.`)}import{existsSync as rX0}from"node:fs";import{join as CD}from"node:path";import{existsSync as jx,mkdirSync as pX0,rmSync as NH1,writeFileSync as MH1}from"node:fs";import{homedir as cX0}from"node:os";import{dirname as AH1,join as _x}from"node:path";var SX0=`---
name: seal-use
description: "v0.10.14: Use for Seal Use first-time enterprise onboarding, Hose/合思 or Seal-native authentication, assistance links and browser cURL intake, plus tenant approval operations, diagnosis, simulation, rules, users, configuration, and search."
metadata:
@@ -1360,11 +1360,11 @@ seal-use corps hose-staffs --json '{
\`\`\`
* 直接使用指定 ID 完成接入并进行连通性验证。
`;var dX0={"SKILL.md":SX0,"agents/openai.yaml":gX0,"references/rule-lightweight.md":yX0,"references/approval-bad-cases.md":hX0,"references/cli.md":xX0,"references/approval-run-lightweight.md":kX0,"references/approval-attachment-trace.md":uX0,"references/customer-feedback-rule-remediation.md":fX0,"references/enterprise-onboarding.md":bX0,"references/hose-enterprise-auth.md":iX0,"references/hose-enterprise-init.md":nX0};function mX0(){return dX0["SKILL.md"]||""}function DG(){return _x(cX0(),".agents","skills","seal-use")}function lX0(){return _x(cX0(),".agents","skills","seal-home")}function oX0(){let $=lX0();if(jx($))try{return NH1($,{recursive:!0,force:!0}),!0}catch{return!1}return!1}function Sx($=DG()){oX0(),pX0($,{recursive:!0});let I=[];for(let[U,Y]of Object.entries(dX0)){let J=_x($,U);pX0(AH1(J),{recursive:!0}),MH1(J,Y,"utf8"),I.push(U)}return{targetDir:$,files:I}}function gx(){let $=lX0(),I=DG(),U=jx($),Y=jx(I);if(U||Y)return oX0(),Sx(I),{synced:!0,targetDir:I};return{synced:!1}}function tX0($,I,U){if($==="dump"||$==="cat"||$==="show"){process.stdout.write(`${mX0()}
`);return}if($==="install"||$==="init"||$==="sync"){let Y=N0(U.options.local)||N0(U.options.workspace),J=h(U.options.dir)??h(U.options.target)??I,Q=J?J:Y?CD(process.cwd(),".agents","skills","seal-use"):DG(),K=Sx(Q);B0({installed:!0,targetDir:K.targetDir,fileCount:K.files.length,files:K.files});return}if($==="status"||$==="get"||!$){let Y=DG(),J=CD(process.cwd(),".agents","skills","seal-use");B0({global:{dir:Y,installed:rX0(CD(Y,"SKILL.md"))},local:{dir:J,installed:rX0(CD(J,"SKILL.md"))}});return}throw Error(`Unknown skill command: ${$}. Run 'seal-use help' for available commands.`)}async function aX0($,I){if($==="config"){B0(await EJ(I));return}throw Error(`Unknown source command: ${$??""}. Run 'seal-use help' for available commands.`)}async function sX0($,I,U,Y){if(!$)throw Error("Usage: seal-use tool <toolName> [--json '{...}']");await D0($,I,U,t6(Y.json),V0(Y.options))}function eX0(){B0(GG.map(($)=>({name:$.name,description:$.description})))}import{chmodSync as PH1,mkdirSync as TH1,renameSync as yx,rmSync as EH1,unlinkSync as Jz0,writeFileSync as $z0}from"node:fs";import{dirname as BH1,join as Iz0}from"node:path";import{spawnSync as WI}from"node:child_process";function jD($=process.execPath,I=import.meta.url){if(I.includes("/$bunfs/")||I.includes("\\$bunfs\\"))return!0;let U=$.toLowerCase().replace(/\\/g,"/");return!U.endsWith("/bun")&&!U.endsWith("/bun.exe")&&!U.endsWith("/node")&&!U.endsWith("/node.exe")}var Qz0="yunyingk/seal-use",FG="yunyingk/seal-home";var vH1="SEAL_USE_GITHUB_REPO",RH1="SEAL_HOME_GITHUB_REPO";async function Kz0($,I={}){let U={appRoot:$.appRoot,entryFile:$.entryFile,stateDir:Rx,version:I1,launcher:$.launcher},Y=I.repo||process.env[vH1]?.trim()||process.env[RH1]?.trim()||Qz0,J=I.targetVersion?.trim(),Q=J&&J.toLowerCase()!=="latest"?J:void 0;if(Q){let A=Q.replace(/^v/,""),R=qz0(A,I1);if(R<0){B0({updated:!1,currentVersion:I1,targetVersion:A,mode:jD()?"binary":"source",message:`Cannot downgrade seal-use from v${I1} to older version v${A}. Updates must be forward-only.`});return}if(R===0&&!I.force){B0({updated:!1,currentVersion:I1,targetVersion:A,mode:jD()?"binary":"source",message:`seal-use is already at version v${I1}. Use --force to reinstall.`});return}}if(I.changelogOnly){let A=await hx(Y,I.limit??10);B0({currentVersion:I1,totalQueried:A.length,releases:A.map((R)=>({version:R.version,tagName:R.tagName,publishedAt:R.publishedAt,author:R.author,releaseNotes:R.notes,releaseUrl:R.htmlUrl,isCurrent:R.version===I1,isNewer:OG(R.version,I1)}))});return}if(!jD()){if(I.checkOnly){let R=await hx(Y,30),u=R[0],g=u?.version??I1,b=R.find((n)=>n.version===I1),C=OG(g,I1),p=R.filter((n)=>OG(n.version,I1));B0({updated:!1,updateAvailable:C,currentVersion:I1,currentVersionPublishedAt:b?.publishedAt,latestVersion:g,latestVersionPublishedAt:u?.publishedAt,behindCount:p.length,pendingReleases:p.map((n)=>({version:n.version,tagName:n.tagName,publishedAt:n.publishedAt,author:n.author,releaseNotes:n.notes,releaseUrl:n.htmlUrl})),releaseNotes:u?.notes??"",releaseUrl:u?.htmlUrl??"",mode:"source",message:"Running in source development mode. Run 'seal-use update' to git pull & bun install."});return}let A=vJ(U).running;if(A)await HI("stop",U);try{Yz0("git",["-C",$.appRoot,"pull","--ff-only"])}catch(R){console.error(`git pull skipped: ${R instanceof Error?R.message:String(R)}`)}if(Yz0("bun",["install"],{cwd:$.appRoot}),A)await HI("start",U);B0({updated:!0,serviceRestarted:A,version:I1,mode:"source"});return}let K=CH1(),q=jH1(),G=await hx(Y,30),H=Q?G.find((A)=>A.version===Q||A.tagName===Q||A.tagName===`v${Q}`)??await Uz0(Y,Q):G[0]??await Uz0(Y);if(!H){B0({updated:!1,currentVersion:I1,mode:"binary",message:`Failed to query releases from repository '${Y}'`});return}let W=H.version,V=G.find((A)=>A.version===I1),w=OG(W,I1),Z=w||Boolean(I.force),z=G.filter((A)=>OG(A.version,I1));if(I.checkOnly){B0({updated:!1,updateAvailable:w,currentVersion:I1,currentVersionPublishedAt:V?.publishedAt,latestVersion:W,latestVersionPublishedAt:H.publishedAt,behindCount:z.length,pendingReleases:z.map((A)=>({version:A.version,tagName:A.tagName,publishedAt:A.publishedAt,author:A.author,releaseNotes:A.notes,releaseUrl:A.htmlUrl})),releaseNotes:H.notes,releaseUrl:H.htmlUrl,mode:"binary"});return}if(!Z){B0({updated:!1,currentVersion:I1,currentVersionPublishedAt:V?.publishedAt,latestVersion:W,latestVersionPublishedAt:H.publishedAt,mode:"binary",message:`seal-use is already up to date (v${I1})`});return}let L=_H1(H.assets,K,q);if(!L)throw Error(`No compatible binary found for ${K}-${q} in release v${W}. Available assets: ${H.assets.map((A)=>A.name).join(", ")}`);let D=vJ(U).running;if(D)await HI("stop",U);let F=process.execPath,E=BH1(F),T=Iz0(E,`.tmp-update-${Date.now()}`);TH1(T,{recursive:!0});try{let A=Iz0(T,L.name);await SH1(L.downloadUrl,A,H.tagName,L.name);let R=A;if(L.name.endsWith(".tar.gz")||L.name.endsWith(".tgz"))R=gH1(A,T,K);else if(L.name.endsWith(".zip"))R=yH1(A,T,K);if(PH1(R,493),process.platform==="darwin")try{WI("/usr/bin/codesig Line truncated
`);return}if($==="install"||$==="init"||$==="sync"){let Y=N0(U.options.local)||N0(U.options.workspace),J=h(U.options.dir)??h(U.options.target)??I,Q=J?J:Y?CD(process.cwd(),".agents","skills","seal-use"):DG(),K=Sx(Q);B0({installed:!0,targetDir:K.targetDir,fileCount:K.files.length,files:K.files});return}if($==="status"||$==="get"||!$){let Y=DG(),J=CD(process.cwd(),".agents","skills","seal-use");B0({global:{dir:Y,installed:rX0(CD(Y,"SKILL.md"))},local:{dir:J,installed:rX0(CD(J,"SKILL.md"))}});return}throw Error(`Unknown skill command: ${$}. Run 'seal-use help' for available commands.`)}async function aX0($,I){if($==="config"){B0(await EJ(I));return}throw Error(`Unknown source command: ${$??""}. Run 'seal-use help' for available commands.`)}async function sX0($,I,U,Y){if(!$)throw Error("Usage: seal-use tool <toolName> [--json '{...}']");await D0($,I,U,t6(Y.json),V0(Y.options))}function eX0(){B0(GG.map(($)=>({name:$.name,description:$.description})))}import{chmodSync as PH1,mkdirSync as TH1,renameSync as yx,rmSync as EH1,unlinkSync as Jz0,writeFileSync as $z0}from"node:fs";import{dirname as BH1,join as Iz0}from"node:path";import{spawnSync as VI}from"node:child_process";function jD($=process.execPath,I=import.meta.url){if(I.includes("/$bunfs/")||I.includes("\\$bunfs\\"))return!0;let U=$.toLowerCase().replace(/\\/g,"/");return!U.endsWith("/bun")&&!U.endsWith("/bun.exe")&&!U.endsWith("/node")&&!U.endsWith("/node.exe")}var Qz0="yunyingk/seal-use",FG="yunyingk/seal-home";var vH1="SEAL_USE_GITHUB_REPO",RH1="SEAL_HOME_GITHUB_REPO";async function Kz0($,I={}){let U={appRoot:$.appRoot,entryFile:$.entryFile,stateDir:Rx,version:I1,launcher:$.launcher},Y=I.repo||process.env[vH1]?.trim()||process.env[RH1]?.trim()||Qz0,J=I.targetVersion?.trim(),Q=J&&J.toLowerCase()!=="latest"?J:void 0;if(Q){let A=Q.replace(/^v/,""),R=qz0(A,I1);if(R<0){B0({updated:!1,currentVersion:I1,targetVersion:A,mode:jD()?"binary":"source",message:`Cannot downgrade seal-use from v${I1} to older version v${A}. Updates must be forward-only.`});return}if(R===0&&!I.force){B0({updated:!1,currentVersion:I1,targetVersion:A,mode:jD()?"binary":"source",message:`seal-use is already at version v${I1}. Use --force to reinstall.`});return}}if(I.changelogOnly){let A=await hx(Y,I.limit??10);B0({currentVersion:I1,totalQueried:A.length,releases:A.map((R)=>({version:R.version,tagName:R.tagName,publishedAt:R.publishedAt,author:R.author,releaseNotes:R.notes,releaseUrl:R.htmlUrl,isCurrent:R.version===I1,isNewer:OG(R.version,I1)}))});return}if(!jD()){if(I.checkOnly){let R=await hx(Y,30),u=R[0],g=u?.version??I1,b=R.find((n)=>n.version===I1),C=OG(g,I1),p=R.filter((n)=>OG(n.version,I1));B0({updated:!1,updateAvailable:C,currentVersion:I1,currentVersionPublishedAt:b?.publishedAt,latestVersion:g,latestVersionPublishedAt:u?.publishedAt,behindCount:p.length,pendingReleases:p.map((n)=>({version:n.version,tagName:n.tagName,publishedAt:n.publishedAt,author:n.author,releaseNotes:n.notes,releaseUrl:n.htmlUrl})),releaseNotes:u?.notes??"",releaseUrl:u?.htmlUrl??"",mode:"source",message:"Running in source development mode. Run 'seal-use update' to git pull & bun install."});return}let A=vJ(U).running;if(A)await WI("stop",U);try{Yz0("git",["-C",$.appRoot,"pull","--ff-only"])}catch(R){console.error(`git pull skipped: ${R instanceof Error?R.message:String(R)}`)}if(Yz0("bun",["install"],{cwd:$.appRoot}),A)await WI("start",U);B0({updated:!0,serviceRestarted:A,version:I1,mode:"source"});return}let K=CH1(),q=jH1(),G=await hx(Y,30),H=Q?G.find((A)=>A.version===Q||A.tagName===Q||A.tagName===`v${Q}`)??await Uz0(Y,Q):G[0]??await Uz0(Y);if(!H){B0({updated:!1,currentVersion:I1,mode:"binary",message:`Failed to query releases from repository '${Y}'`});return}let W=H.version,V=G.find((A)=>A.version===I1),w=OG(W,I1),Z=w||Boolean(I.force),z=G.filter((A)=>OG(A.version,I1));if(I.checkOnly){B0({updated:!1,updateAvailable:w,currentVersion:I1,currentVersionPublishedAt:V?.publishedAt,latestVersion:W,latestVersionPublishedAt:H.publishedAt,behindCount:z.length,pendingReleases:z.map((A)=>({version:A.version,tagName:A.tagName,publishedAt:A.publishedAt,author:A.author,releaseNotes:A.notes,releaseUrl:A.htmlUrl})),releaseNotes:H.notes,releaseUrl:H.htmlUrl,mode:"binary"});return}if(!Z){B0({updated:!1,currentVersion:I1,currentVersionPublishedAt:V?.publishedAt,latestVersion:W,latestVersionPublishedAt:H.publishedAt,mode:"binary",message:`seal-use is already up to date (v${I1})`});return}let L=_H1(H.assets,K,q);if(!L)throw Error(`No compatible binary found for ${K}-${q} in release v${W}. Available assets: ${H.assets.map((A)=>A.name).join(", ")}`);let D=vJ(U).running;if(D)await WI("stop",U);let F=process.execPath,E=BH1(F),T=Iz0(E,`.tmp-update-${Date.now()}`);TH1(T,{recursive:!0});try{let A=Iz0(T,L.name);await SH1(L.downloadUrl,A,H.tagName,L.name);let R=A;if(L.name.endsWith(".tar.gz")||L.name.endsWith(".tgz"))R=gH1(A,T,K);else if(L.name.endsWith(".zip"))R=yH1(A,T,K);if(PH1(R,493),process.platform==="darwin")try{VI("/usr/bin/codesig Line truncated
`)}catch{}}async function SH1($,I,U,Y){let J=xx(),Q=[],K=U?U.startsWith("v")?U:`v${U}`:void 0,q=Y||$.split("/").pop()||"";if(J!=="github"){if(K&&q)Q.push(`https://git.ying-qing.cn/gitea/seal-use/releases/download/${K}/${q}`,`https://git.ying-qing.cn/gitea/seal-home/releases/download/${K}/${q}`);if($.startsWith("https://git.ying-qing.cn"))Q.push($)}if(J!=="gitea")if(K&&q){let L=`https://github.com/${Qz0}/releases/download/${K}/${q}`;if(!process.env.CI)Q.push(`https://ghfast.top/${L}`,`https://gh.ddlc.top/${L}`);Q.push(L)}else if($.includes("github.com")){if(!process.env.CI)Q.push(`https://ghfast.top/${$}`,`https://gh.ddlc.top/${$}`);Q.push($)}else Q.push($);let G=Array.from(new Set(Q)),H,W=6000,V=6000,w=307200,Z=1e4,z=180000;for(let L=0;L<G.length;L++){let D=G[L],F=new AbortController,E="",T=(g)=>{E=g;try{F.abort()}catch{}},A=setTimeout(()=>{T("Connection timed out (no response headers within 6s)")},W),R,u;try{_D(`==> [${L+1}/${G.length}] Downloading via: ${D}`);let g=await fetch(D,{signal:F.signal});if(A)clearTimeout(A),A=void 0;if(!g.ok)throw Error(`HTTP ${g.status} ${g.statusText}`);R=setTimeout(()=>{T("Overall download time exceeded 3 minutes")},z);let b=Number(g.headers.get("content-length"))||0,C=g.body?.getReader();if(!C){let i=Buffer.from(await g.arrayBuffer());if(i.length<1000)throw Error(`Downloaded content is suspiciously small (${i.length} bytes)`);$z0(I,i),_D(`✓ Download succeeded (${(i.length/1024/1024).toFixed(1)} MB)`);return}let p=[],n=0,S=0;u=setTimeout(()=>{if(n<w){let i=(n/1024).toFixed(1);T(`Initial transfer too slow (${i} KB < 300 KB in 6s), switching mirror...`)}},V);while(!0){let i=C.read(),Y0,B=new Promise((K0,W0)=>{Y0=setTimeout(()=>{W0(Error("Data transfer stalled (no chunk received for 10s)"))},Z)}),k;try{k=await Promise.race([i,B])}finally{if(Y0)clearTimeout(Y0)}let{done:d,value:t}=k;if(d)break;if(t){if(p.push(t),n+=t.length,u&&n>=w)clearTimeout(u),u=void 0;let K0=Date.now();if(K0-S>200){S=K0;let W0=b?Math.round(n/b*100):0,A0=(n/1048576).toFixed(1),v0=b?(b/1048576).toFixed(1):"?";try{process.stderr.write(`\r ↳ Progress: ${W0}% (${A0} / ${v0} MB)...`)}catch{}}}}try{process.stderr.write(`
`)}catch{}let f=Buffer.concat(p);if(f.length<1000)throw Error(`Downloaded content is suspiciously small (${f.length} bytes)`);$z0(I,f),_D(`✓ Download completed successfully (${(f.length/1024/1024).toFixed(1)} MB)`);return}catch(g){if(A)clearTimeout(A);if(u)clearTimeout(u);if(R)clearTimeout(R);let b=E||(g instanceof Error?g.message:String(g));H=Error(b),_D(`
↳ Mirror failed: ${H.message}`)}finally{if(A)clearTimeout(A);if(u)clearTimeout(u);if(R)clearTimeout(R)}}throw Error(`Failed to download asset from all mirrors: ${H?.message}`)}function gH1($,I,U){let Y=WI("tar",["-xzf",$,"-C",I],{stdio:"pipe"});if(Y.status!==0)throw Error(`Failed to extract tar archive: ${Y.stderr.toString()}`);Jz0($);let J=U==="windows"?"seal-use.exe":"seal-use",Q=WI("find",[I,"-type","f"],{encoding:"utf8"}).stdout.trim().split(`
`).filter(Boolean),K=Q.find((q)=>q.endsWith(`/${J}`)||q.endsWith(J));if(K)return K;return Q[0]||$}function yH1($,I,U){let Y=WI("unzip",["-q","-o",$,"-d",I],{stdio:"pipe"});if(Y.status!==0)throw Error(`Failed to extract zip archive: ${Y.stderr.toString()}`);Jz0($);let J=U==="windows"?"seal-use.exe":"seal-use",Q=WI("find",[I,"-type","f"],{encoding:"utf8"}).stdout.trim().split(`
`).filter(Boolean),K=Q.find((q)=>q.endsWith(`/${J}`)||q.endsWith(J));if(K)return K;return Q[0]||$}function qz0($,I){let U=$.replace(/^v/,"").split(".").map((J)=>Number.parseInt(J,10)||0),Y=I.replace(/^v/,"").split(".").map((J)=>Number.parseInt(J,10)||0);for(let J=0;J<Math.max(U.length,Y.length);J++){let Q=U[J]??0,K=Y[J]??0;if(Q>K)return 1;if(Q<K)return-1}return 0}function OG($,I){return qz0($,I)>0}function Yz0($,I,U={}){let Y=WI($,I,{cwd:U.cwd,encoding:"utf8",stdio:["ignore","pipe","pipe"]});if(Y.stdout)console.error(Y.stdout.trimEnd());if(Y.stderr)console.error(Y.stderr.trimEnd());if(Y.status!==0)throw Error(`${$} ${I.join(" ")} failed with status ${Y.status}`)}async function Gz0($,I,U,Y,J){if($==="create"){let Q=h(J.options.name)??I,K=h(J.options.phone);if(!Q||!K)throw Error("Usage: seal-use users create --name <name> --phone <phone> [--dept <deptId>]");let q=h(J.options.dept)??h(J.options.departmentId);await D0("seal_user_create",U,Y,{name:Q,phone:K,departmentIds:q?[q]:void 0},V0(J.options));return}if($==="reset-password"){let Q=I??h(J.options.userId);if(!Q)throw Error("Usage: seal-use users reset-password <userId>");await D0("seal_user_reset_password",U,Y,{userId:Q},V0(J.options));return}if($==="search"||$==="list"){let Q=I??h(J.options.keyword)??h(J.options.query)??"";await D0("seal_user_search",U,Y,{keyword:Q},V0(J.options));return}if($==="get"){let Q=I??h(J.options.userId);if(!Q)throw Error("Usage: seal-use users get <userId>");await D0("seal_user_get",U,Y,{userId:Q},V0(J.options));return}if($==="delete"){let Q=I??h(J.options.userId);if(!Q)throw Error("Usage: seal-use users delete <userId>");await D0("seal_user_delete",U,Y,{userId:Q},V0(J.options));return}if($==="activate"){let Q=I??h(J.options.userId);if(!Q)throw Error("Usage: seal-use users activate <userId>");await D0("seal_user_activate",U,Y,{userId:Q},V0(J.options));return}if($==="delegation"||$==="impersonate"){let Q=I??h(J.options.userId)??h(J.options.phone);if(!Q)throw Error("Usage: seal-use users delegation <userIdOrPhone> [--note <note>]");let K=h(J.options.note);await D0("seal_user_delegation_create",U,Y,{userIdOrPhone:Q,note:K},V0(J.options));return}throw Error(`Unknown users command: ${$??""}. Run 'seal-use help' for available commands.`)}import{existsSync as Hz0}from"node:fs";async function Wz0($,I){if(!Hz0($))throw Error(`File not found: ${$}`);let U=JI($);console.log(JSON.stringify(await YI(U.fileBuffer,U.fileName,I),null,2))}async function Vz0($,I,U,Y,J){if($==="ready"||$==="status"){let Q=I??h(J.options.file)??h(J.options.input),K=await QD(U,Y,{filePath:Q,webhook:h(J.options.webhook)??h(J.options.selector)});if(console.error(`[webhook-ready] 企业环境: ${K.corp.name} (${K.corp.id}) [${K.stateMode}]`),K.corp.tenant?.name)console.error(`[webhook-ready] 租户信息: ${K.corp.tenant.name} (${K.corp.tenant.id})`);console.error(`[webhook-ready] 凭证状态: ${K.authStatus==="ok"?"OK":`异常 (${K.authError})`}`),console.error(`[webhook-ready] Webhook 通道: ${K.activeWebhooks.length} 个可用`);for(let q of K.activeWebhooks){let G=q.isDefault?" [默认通道]":"";console.error(` - ${q.name} (${q.id}) mode=${q.mode}${G}`)}if(K.materialPack)console.error(`[webhook-ready] 材料包预检: ${K.materialPack.valid?`通过 (${K.materialPack.documentCount} 单)`:`失败 (${K.materialPack.errors?.join("; ")})`}`);if(K.ready)console.error(`\uD83D\uDFE2 ${K.statusMessage}`),console.error(`\uD83D\uDC49 Next action: ${K.nextAction}`);else console.error(`\uD83D\uDD34 准备阶段未通过: ${K.statusMessage}`),console.error(`\uD83D\uDC49 Next action: ${K.nextAction}`);console.log(JSON.stringify(K,null,2));return}if($==="material-pack"||$==="material-pack-push"){let Q=$==="material-pack-push"?"push":I,K=$==="material-pack-push"?h(J.options.file)??h(J.options.input):J.command[3]??h(J.options.file)??h(J.options.input);if(!K)throw Error("Usage: seal-use webhook material-pack <preview|push> <材料包.zip>");if(!Hz0(K))throw Error(`File not found: ${K}`);let q=JI(K);if(Q==="preview"){console.log(JSON.stringify(await YI(q.fileBuffer,q.fileName),null,2));return}if(Q!=="push")throw Error("Usage: seal-use webhook material-pack <preview|push> <材料包.zip>");let G=h(J.options.webhook)??h(J.options.selector),H=await X9(U,Y.seal.endpoints.approvalStylePreferences),W;if(G)W=z9(H,G);else if(H.length===1)W=H[0],console.error(`\uD83D\uDC49 自动锁定唯一可用 Webhook 通道: ${W.name} (${W.id})`);else if(H.length>1){let w=H.map((Z)=>`"${Z.name}" (${Z.id})`).join(", ");throw Error(`当前租户存在多个 Webhook 通道 [${w}],请通过 --webhook <idOrName> 指定目标通道。`)}else throw new c8("当前租户未配置任何 Webhook 集成通道。",1,`seal-use webhook add --name <name> --result-url <url> --corp ${Y.id}`);let V=await JD(q.fileBuffer,q.fileName,{webhookUrl:W.incomingDocumentWebhook.url,secret:W.secret,materialPackFilePolicy:W.materialPackFilePolicy});console.log(JSON.stringify(V,null,2));return}if($==="list"){await D0("seal_webhook_ Line truncated
↳ Mirror failed: ${H.message}`)}finally{if(A)clearTimeout(A);if(u)clearTimeout(u);if(R)clearTimeout(R)}}throw Error(`Failed to download asset from all mirrors: ${H?.message}`)}function gH1($,I,U){let Y=VI("tar",["-xzf",$,"-C",I],{stdio:"pipe"});if(Y.status!==0)throw Error(`Failed to extract tar archive: ${Y.stderr.toString()}`);Jz0($);let J=U==="windows"?"seal-use.exe":"seal-use",Q=VI("find",[I,"-type","f"],{encoding:"utf8"}).stdout.trim().split(`
`).filter(Boolean),K=Q.find((q)=>q.endsWith(`/${J}`)||q.endsWith(J));if(K)return K;return Q[0]||$}function yH1($,I,U){let Y=VI("unzip",["-q","-o",$,"-d",I],{stdio:"pipe"});if(Y.status!==0)throw Error(`Failed to extract zip archive: ${Y.stderr.toString()}`);Jz0($);let J=U==="windows"?"seal-use.exe":"seal-use",Q=VI("find",[I,"-type","f"],{encoding:"utf8"}).stdout.trim().split(`
`).filter(Boolean),K=Q.find((q)=>q.endsWith(`/${J}`)||q.endsWith(J));if(K)return K;return Q[0]||$}function qz0($,I){let U=$.replace(/^v/,"").split(".").map((J)=>Number.parseInt(J,10)||0),Y=I.replace(/^v/,"").split(".").map((J)=>Number.parseInt(J,10)||0);for(let J=0;J<Math.max(U.length,Y.length);J++){let Q=U[J]??0,K=Y[J]??0;if(Q>K)return 1;if(Q<K)return-1}return 0}function OG($,I){return qz0($,I)>0}function Yz0($,I,U={}){let Y=VI($,I,{cwd:U.cwd,encoding:"utf8",stdio:["ignore","pipe","pipe"]});if(Y.stdout)console.error(Y.stdout.trimEnd());if(Y.stderr)console.error(Y.stderr.trimEnd());if(Y.status!==0)throw Error(`${$} ${I.join(" ")} failed with status ${Y.status}`)}async function Gz0($,I,U,Y,J){if($==="create"){let Q=h(J.options.name)??I,K=h(J.options.phone);if(!Q||!K)throw Error("Usage: seal-use users create --name <name> --phone <phone> [--dept <deptId>]");let q=h(J.options.dept)??h(J.options.departmentId);await D0("seal_user_create",U,Y,{name:Q,phone:K,departmentIds:q?[q]:void 0},V0(J.options));return}if($==="reset-password"){let Q=I??h(J.options.userId);if(!Q)throw Error("Usage: seal-use users reset-password <userId>");await D0("seal_user_reset_password",U,Y,{userId:Q},V0(J.options));return}if($==="search"||$==="list"){let Q=I??h(J.options.keyword)??h(J.options.query)??"";await D0("seal_user_search",U,Y,{keyword:Q},V0(J.options));return}if($==="get"){let Q=I??h(J.options.userId);if(!Q)throw Error("Usage: seal-use users get <userId>");await D0("seal_user_get",U,Y,{userId:Q},V0(J.options));return}if($==="delete"){let Q=I??h(J.options.userId);if(!Q)throw Error("Usage: seal-use users delete <userId>");await D0("seal_user_delete",U,Y,{userId:Q},V0(J.options));return}if($==="activate"){let Q=I??h(J.options.userId);if(!Q)throw Error("Usage: seal-use users activate <userId>");await D0("seal_user_activate",U,Y,{userId:Q},V0(J.options));return}if($==="delegation"||$==="impersonate"){let Q=I??h(J.options.userId)??h(J.options.phone);if(!Q)throw Error("Usage: seal-use users delegation <userIdOrPhone> [--note <note>]");let K=h(J.options.note);await D0("seal_user_delegation_create",U,Y,{userIdOrPhone:Q,note:K},V0(J.options));return}throw Error(`Unknown users command: ${$??""}. Run 'seal-use help' for available commands.`)}import{existsSync as Hz0}from"node:fs";async function Wz0($,I){if(!Hz0($))throw Error(`File not found: ${$}`);let U=QI($);console.log(JSON.stringify(await JI(U.fileBuffer,U.fileName,I),null,2))}async function Vz0($,I,U,Y,J){if($==="ready"||$==="status"){let Q=I??h(J.options.file)??h(J.options.input),K=await QD(U,Y,{filePath:Q,webhook:h(J.options.webhook)??h(J.options.selector)});if(console.error(`[webhook-ready] 企业环境: ${K.corp.name} (${K.corp.id}) [${K.stateMode}]`),K.corp.tenant?.name)console.error(`[webhook-ready] 租户信息: ${K.corp.tenant.name} (${K.corp.tenant.id})`);console.error(`[webhook-ready] 凭证状态: ${K.authStatus==="ok"?"OK":`异常 (${K.authError})`}`),console.error(`[webhook-ready] Webhook 通道: ${K.activeWebhooks.length} 个可用`);for(let q of K.activeWebhooks){let G=q.isDefault?" [默认通道]":"";console.error(` - ${q.name} (${q.id}) mode=${q.mode}${G}`)}if(K.materialPack)console.error(`[webhook-ready] 材料包预检: ${K.materialPack.valid?`通过 (${K.materialPack.documentCount} 单)`:`失败 (${K.materialPack.errors?.join("; ")})`}`);if(K.ready)console.error(`\uD83D\uDFE2 ${K.statusMessage}`),console.error(`\uD83D\uDC49 Next action: ${K.nextAction}`);else console.error(`\uD83D\uDD34 准备阶段未通过: ${K.statusMessage}`),console.error(`\uD83D\uDC49 Next action: ${K.nextAction}`);console.log(JSON.stringify(K,null,2));return}if($==="material-pack"||$==="material-pack-push"){let Q=$==="material-pack-push"?"push":I,K=$==="material-pack-push"?h(J.options.file)??h(J.options.input):J.command[3]??h(J.options.file)??h(J.options.input);if(!K)throw Error("Usage: seal-use webhook material-pack <preview|push> <材料包.zip>");if(!Hz0(K))throw Error(`File not found: ${K}`);let q=QI(K);if(Q==="preview"){console.log(JSON.stringify(await JI(q.fileBuffer,q.fileName),null,2));return}if(Q!=="push")throw Error("Usage: seal-use webhook material-pack <preview|push> <材料包.zip>");let G=h(J.options.webhook)??h(J.options.selector),H=await z9(U,Y.seal.endpoints.approvalStylePreferences),W;if(G)W=L9(H,G);else if(H.length===1)W=H[0],console.error(`\uD83D\uDC49 自动锁定唯一可用 Webhook 通道: ${W.name} (${W.id})`);else if(H.length>1){let w=H.map((Z)=>`"${Z.name}" (${Z.id})`).join(", ");throw Error(`当前租户存在多个 Webhook 通道 [${w}],请通过 --webhook <idOrName> 指定目标通道。`)}else throw new c8("当前租户未配置任何 Webhook 集成通道。",1,`seal-use webhook add --name <name> --result-url <url> --corp ${Y.id}`);let V=await JD(q.fileBuffer,q.fileName,{webhookUrl:W.incomingDocumentWebhook.url,secret:W.secret,materialPackFilePolicy:W.materialPackFilePolicy});console.log(JSON.stringify(V,null,2));return}if($==="list"){await D0("seal_webhook_ Line truncated
`)?"":`
`}`);process.exitCode=$.exitCode}var rH1=Boolean(r.main==r.module||!import.meta.url.includes("$bunfs")&&process.argv[1]&&zz0(process.argv[1])===zz0(c5));if(rH1)if(process.argv[2]==="--seal-use-cli"||process.argv[2]==="--seal-home-cli")await oH1();else Px().catch(($)=>{console.error($),process.exitCode=1});export{Mx as tokenizeCommand,Px as startServer,dH1 as resolveMcpEnabled,mH1 as createServer,pH1 as SEAL_MCP_ENABLED_ENV,nH1 as SEAL_CLI_TOOL_NAME,cH1 as LEGACY_SEAL_MCP_ENABLED_ENV};
`}`);process.exitCode=$.exitCode}var rH1=Boolean(r.main==r.module||!import.meta.url.includes("$bunfs")&&process.argv[1]&&zz0(process.argv[1])===zz0(d5));if(rH1)if(process.argv[2]==="--seal-use-cli"||process.argv[2]==="--seal-home-cli")await oH1();else Px().catch(($)=>{console.error($),process.exitCode=1});export{Mx as tokenizeCommand,Px as startServer,dH1 as resolveMcpEnabled,mH1 as createServer,pH1 as SEAL_MCP_ENABLED_ENV,nH1 as SEAL_CLI_TOOL_NAME,cH1 as LEGACY_SEAL_MCP_ENABLED_ENV};
+3 -3
View File
@@ -22,7 +22,7 @@ import {
import { outputOptions } from "../printer.js";
import type { ParsedArgs } from "../types.js";
import type { MaterialPackFilePolicyPatch } from "../../domains/seal/material-pack/policy.js";
import { CliError, confirmationRequired } from "../errors.js";
import { CliError, confirmationRequired, usageError } from "../errors.js";
export async function handleWebhookMaterialPackPreview(
filePath: string,
@@ -182,7 +182,7 @@ export async function handleWebhookCommand(
const secret = stringOption(args.options.secret);
const rotateSecret = booleanOption(args.options.rotateSecret) ?? booleanOption(args.options["rotate-secret"]);
if (secret !== undefined && rotateSecret) {
throw new Error("Use either --secret or --rotate-secret, not both");
throw usageError("Use either --secret or --rotate-secret, not both");
}
const name = stringOption(args.options.name);
const mode = parseWebhookMode(stringOption(args.options.mode));
@@ -204,7 +204,7 @@ export async function handleWebhookCommand(
materialPackFilePolicy === undefined &&
!dryRun
) {
throw new Error("Webhook update requires at least one field option");
throw usageError("Webhook update requires at least one field option");
}
await runTool(
"seal_webhook_update",
+11
View File
@@ -23,4 +23,15 @@ describe("CLI semantic errors", () => {
expect(classifyCliError({ response: { status: 401 } })).toEqual({ exitCode: 11 });
expect(classifyCliError(new Error("bearer token expired"))).toEqual({ exitCode: 11 });
});
test("classifies unknown commands and subcommands across all domains as usage errors", () => {
expect(classifyCliError(new Error("Unknown command: not-a-command"))).toEqual({ exitCode: 2 });
expect(classifyCliError(new Error("Unknown contacts command: . Run 'seal-use help' for available commands."))).toEqual({ exitCode: 2 });
expect(classifyCliError(new Error("Unknown data command: bad-subcommand"))).toEqual({ exitCode: 2 });
expect(classifyCliError(new Error("Unknown analytics command: invalid"))).toEqual({ exitCode: 2 });
expect(classifyCliError(new Error("Unknown approval-runs command: invalid"))).toEqual({ exitCode: 2 });
expect(classifyCliError(new Error("Unknown billing command: invalid"))).toEqual({ exitCode: 2 });
expect(classifyCliError(new Error("Unknown webhook command: invalid"))).toEqual({ exitCode: 2 });
expect(classifyCliError(new Error("Usage: seal-use contacts children <departmentId>"))).toEqual({ exitCode: 2 });
});
});
+1 -1
View File
@@ -40,7 +40,7 @@ export function classifyCliError(error: unknown): {
if (status === 401 || status === 403 || /(?:^|\s)(?:token|bearer|session) (?:expired|missing|invalid)/i.test(value)) {
return { exitCode: 11 };
}
if (/^(?:Usage:|Unknown (?:command|auth|config|corps|delegation|deploy|llm|permissions|preference|rules|simulation|users|webhook)|Invalid (?:number|boolean|command)|--json must|Missing required JSON field)/.test(value)) {
if (/^(?:Usage:|Unknown (?:[a-z0-9_-]+ )?command|Invalid (?:number|boolean|command)|--json must|Missing required JSON field)/i.test(value)) {
return { exitCode: 2 };
}
if (/^Refusing to (?:clear|delete)|without --yes|without confirm=true/i.test(value)) {
+37
View File
@@ -1,3 +1,6 @@
import { mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { describe, expect, test } from "bun:test";
import { runCli } from "./runner.js";
@@ -28,4 +31,38 @@ describe("CLI runner", () => {
expect(result.exitCode).toBe(2);
expect(result.stderr).toContain("Invalid JSON:");
});
test("returns usage exit code 2 for unknown subcommands across standalone domains", async () => {
const result = await runCli(["skill", "not-a-subcommand"]);
expect(result.isError).toBe(true);
expect(result.exitCode).toBe(2);
expect(result.stderr).toContain("Unknown skill command: not-a-subcommand");
});
test("returns usage exit code 2 for unknown subcommands with an active enterprise", async () => {
const tempDir = mkdtempSync(join(tmpdir(), "seal-use-runner-test-"));
const originalEnv = process.env.SEAL_USE_ENTERPRISES_DIR;
try {
process.env.SEAL_USE_ENTERPRISES_DIR = tempDir;
writeFileSync(
join(tempDir, "test.json"),
JSON.stringify({
id: "test",
name: "Test Corp",
source: { type: "seal", token: "dummy-token", sealUrl: "https://test.sealai.cc" },
seal: { url: "https://test.sealai.cc" }
})
);
const result = await runCli(["contacts", "not-a-subcommand", "--corp", "test"]);
expect(result.isError).toBe(true);
expect(result.exitCode).toBe(2);
expect(result.stderr).toContain("Unknown contacts command: not-a-subcommand");
} finally {
if (originalEnv === undefined) delete process.env.SEAL_USE_ENTERPRISES_DIR;
else process.env.SEAL_USE_ENTERPRISES_DIR = originalEnv;
rmSync(tempDir, { recursive: true, force: true });
}
});
});