vbapm 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/addins/build/vbapm.xlam +0 -0
- package/lib/actions/export-project.d.ts +2 -0
- package/lib/actions/update-project.d.ts +7 -0
- package/lib/{add-source-_Z4tr2ea.js → add-source-BOumGmx7.js} +1 -1
- package/lib/addin.d.ts +1 -0
- package/lib/bin/vbapm-update.d.ts +2 -0
- package/lib/build-project-De7NPBpt.js +3 -0
- package/lib/build-target-ooHNsSLD.js +9 -0
- package/lib/{create-project-CTAlegO8.js → create-project-BYc3XMZw.js} +1 -1
- package/lib/errors.d.ts +2 -0
- package/lib/export-project-CgFMyE-g.js +4 -0
- package/lib/export-target-C0RYJqUX.js +4 -0
- package/lib/{get-target-Ba_ZoGUl.js → get-target-LUoY1UWJ.js} +1 -1
- package/lib/index-C61lSPb5.js +1 -0
- package/lib/{index-CB6KQLC7.js → index-CBGUBgfk.js} +3 -3
- package/lib/{index-_8uEunjn.js → index-ClUEyMCY.js} +1 -1
- package/lib/{index-mBZsirl0.js → index-Cp8MNK26.js} +1 -1
- package/lib/{index-Cwtynogk.js → index-Dv6JxqGo.js} +1 -1
- package/lib/index.js +1 -1
- package/lib/{init-project-BY-a8CIk.js → init-project-9RKSVG_H.js} +3 -3
- package/lib/installer-DPj-zT7L.js +9 -0
- package/lib/{load-from-project-wNJg8fme.js → load-from-project-ClF4qaC0.js} +1 -1
- package/lib/messages.d.ts +2 -0
- package/lib/{project-DFh-2QTw.js → project-BPmPCkUS.js} +4 -4
- package/lib/run-macro-C1-aJWu5.js +1 -0
- package/lib/{sat-solver-CqS8Vf6C.js → sat-solver-B6RXdyQs.js} +1 -1
- package/lib/targets/build-target.d.ts +1 -0
- package/lib/targets/export-target.d.ts +3 -1
- package/lib/targets/transforms/format-xml.d.ts +2 -0
- package/lib/test-project-DXBFZH3o.js +1 -0
- package/lib/transform-build-graph-DgRrocSn.js +1 -0
- package/lib/transform-target-CYhuozxP.js +2 -0
- package/lib/utils/encoding.d.ts +30 -0
- package/lib/utils/run.d.ts +4 -1
- package/lib/utils/xml.d.ts +14 -0
- package/lib/{vbapm-add-QPN5uEGK.js → vbapm-add-CASFjXAL.js} +1 -1
- package/lib/vbapm-build-Bhm_pqQW.js +9 -0
- package/lib/vbapm-export-8KDCdFOz.js +9 -0
- package/lib/{vbapm-init-BMY4x_xq.js → vbapm-init-Ba2xCez2.js} +1 -1
- package/lib/{vbapm-new-DLW9SdvJ.js → vbapm-new-YQRNQ4Iq.js} +1 -1
- package/lib/{vbapm-run-DzRxAhlD.js → vbapm-run-J-R--noZ.js} +2 -2
- package/lib/{vbapm-test-DInh0MDC.js → vbapm-test-C4KWMPLz.js} +1 -1
- package/lib/vbapm-update-DnbmW8tc.js +13 -0
- package/lib/{vbapm-version-3Xv7JjGv.js → vbapm-version-CRicT8YA.js} +1 -1
- package/lib/vbapm.js +2 -1
- package/package.json +6 -3
- package/run-scripts/run.applescript +18 -7
- package/run-scripts/run.ps1 +42 -10
- package/lib/build-project-CIZanDh1.js +0 -3
- package/lib/build-target-B03OPzeI.js +0 -9
- package/lib/export-project-DdTYRyAw.js +0 -4
- package/lib/export-target-CEupP86g.js +0 -4
- package/lib/installer-C0iBwEpK.js +0 -9
- package/lib/run-macro-Ck_8Iku3.js +0 -1
- package/lib/test-project-CM-XUOdH.js +0 -1
- package/lib/transform-target-DJmqMjY0.js +0 -2
- package/lib/vbapm-build-BKtQ6OeP.js +0 -9
- package/lib/vbapm-export-4H_qDinP.js +0 -7
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r=require("./transform-target-DJmqMjY0.js"),e=require("./installer-C0iBwEpK.js"),i=require("./project-DFh-2QTw.js");require("assert"),require("fs");var t=require("./get-target-Ba_ZoGUl.js"),a=require("path");exports.runMacro=async function(o){let{target:n,file:s,macro:u,args:l=[""]}=o;if(!s){const r=await i.loadProject(),{target:a}=t.getTarget(r,n);s=e.join(r.paths.dir,"build",a.filename)}if(!s)throw new e.CliError(e.ErrorCode.RunMissingFile,"file is required for vbapm run (e.g. vbapm run --file FILE <macro> <arg>...).");if(!u)throw new e.CliError(e.ErrorCode.RunMissingMacro,"macro is required for vbapm run (e.g. vbapm run --file FILE <macro> <arg>...).");const g=r.extensionToApplication(a.extname(s)),c=await e.run(g,e.resolve(s),u,l),{stdout:f}=c;return f&&f.trim().length&&console.log(f),c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r=require("./installer-C0iBwEpK.js"),t=require("./run-macro-Ck_8Iku3.js");exports.testProject=async function(s){const{target:e,args:a}=s,n=r.env.isWindows?"CON":"/dev/stdout";await t.runMacro({target:e,macro:"Tests.Run",args:[n,...a]})};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("./installer-C0iBwEpK.js"),e=require("path"),n=require("./_commonjsHelpers-Bjf42z7h.js"),r=require("fs"),i=require("node:fs"),s=require("node:path"),a=require("node:buffer"),o=require("string_decoder");const c={excel:["xlsx","xlsm","xlam"]},u={excel:t.join(t.env.addins,"vbapm.xlam")},l={};for(const[t,e]of Object.entries(c))for(const n of e)l[n]=t;function p(e,n,r={}){const i=f(n.type);return{application:i,addin:u[i],file:t.join(r.staging?e.paths.staging:e.paths.build,n.filename)}}function f(e){e=e.replace(".","");const n=l[e];if(!n)throw new t.CliError(t.ErrorCode.AddinUnsupportedType,`The target type "${e} is not currently supported.`);return n}var h,g,m={},d={},y={};function b(){return g||(g=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.EXPANSION_MAX=void 0,t.expand=function(e,o={}){if(!e)return[];const{max:c=t.EXPANSION_MAX}=o;"{}"===e.slice(0,2)&&(e="\\{\\}"+e.slice(2));return v(function(t){return t.replace(f,n).replace(g,r).replace(m,i).replace(d,s).replace(b,a)}(e),c,!0).map(T)};const e=(h||(h=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.range=t.balanced=void 0,t.balanced=(n,r,i)=>{const s=n instanceof RegExp?e(n,i):n,a=r instanceof RegExp?e(r,i):r,o=null!==s&&null!=a&&(0,t.range)(s,a,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+s.length,o[1]),post:i.slice(o[1]+a.length)}};const e=(t,e)=>{const n=e.match(t);return n?n[0]:null};t.range=(t,e,n)=>{let r,i,s,a,o,c=n.indexOf(t),u=n.indexOf(e,c+1),l=c;if(c>=0&&u>0){if(t===e)return[c,u];for(r=[],s=n.length;l>=0&&!o;){if(l===c)r.push(l),c=n.indexOf(t,l+1);else if(1===r.length){const t=r.pop();void 0!==t&&(o=[t,u])}else i=r.pop(),void 0!==i&&i<s&&(s=i,a=u),u=n.indexOf(e,l+1);l=c<u&&c>=0?c:u}r.length&&void 0!==a&&(o=[s,a])}return o}}(y)),y),n="\0SLASH"+Math.random()+"\0",r="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0",o=new RegExp(n,"g"),c=new RegExp(r,"g"),u=new RegExp(i,"g"),l=new RegExp(s,"g"),p=new RegExp(a,"g"),f=/\\\\/g,g=/\\{/g,m=/\\}/g,d=/\\,/g,b=/\\./g;function E(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function T(t){return t.replace(o,"\\").replace(c,"{").replace(u,"}").replace(l,",").replace(p,".")}function _(t){if(!t)return[""];const n=[],r=(0,e.balanced)("{","}",t);if(!r)return t.split(",");const{pre:i,body:s,post:a}=r,o=i.split(",");o[o.length-1]+="{"+s+"}";const c=_(a);return a.length&&(o[o.length-1]+=c.shift(),o.push.apply(o,c)),n.push.apply(n,o),n}function x(t){return"{"+t+"}"}function w(t){return/^-?0\d/.test(t)}function A(t,e){return t<=e}function N(t,e){return t>=e}function v(t,n,r){const s=[],a=(0,e.balanced)("{","}",t);if(!a)return[t];const o=a.pre,c=a.post.length?v(a.post,n,!1):[""];if(/\$$/.test(a.pre))for(let t=0;t<c.length&&t<n;t++){const e=o+"{"+a.body+"}"+c[t];s.push(e)}else{const e=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),l=e||u,p=a.body.indexOf(",")>=0;if(!l&&!p)return a.post.match(/,(?!,).*\}/)?v(t=a.pre+"{"+a.body+i+a.post,n,!0):[t];let f,h;if(l)f=a.body.split(/\.\./);else if(f=_(a.body),1===f.length&&void 0!==f[0]&&(f=v(f[0],n,!1).map(x),1===f.length))return c.map(t=>a.pre+f[0]+t);if(l&&void 0!==f[0]&&void 0!==f[1]){const t=E(f[0]),e=E(f[1]),n=Math.max(f[0].length,f[1].length);let r=3===f.length&&void 0!==f[2]?Math.abs(E(f[2])):1,i=A;e<t&&(r*=-1,i=N);const s=f.some(w);h=[];for(let a=t;i(a,e);a+=r){let t;if(u)t=String.fromCharCode(a),"\\"===t&&(t="");else if(t=String(a),s){const e=n-t.length;if(e>0){const n=new Array(e+1).join("0");t=a<0?"-"+n+t.slice(1):n+t}}h.push(t)}}else{h=[];for(let t=0;t<f.length;t++)h.push.apply(h,v(f[t],n,!1))}for(let t=0;t<h.length;t++)for(let e=0;e<c.length&&s.length<n;e++){const n=o+h[t]+c[e];(!r||l||n)&&s.push(n)}}return s}t.EXPANSION_MAX=1e5}(d)),d}var E,T={};var _,x={},w={};var A,N,v={};function O(){if(A)return v;A=1,Object.defineProperty(v,"__esModule",{value:!0}),v.unescape=void 0;return v.unescape=(t,{windowsPathsNoEscape:e=!1,magicalBraces:n=!0}={})=>n?e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):e?t.replace(/\[([^\/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),v}function S(){if(N)return x;N=1,Object.defineProperty(x,"__esModule",{value:!0}),x.AST=void 0;const t=function(){if(_)return w;_=1,Object.defineProperty(w,"__esModule",{value:!0}),w.parseClass=void 0;const t={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},e=t=>t.replace(/[[\]\\-]/g,"\\$&"),n=t=>t.join("");return w.parseClass=(r,i)=>{const s=i;if("["!==r.charAt(s))throw new Error("not in a brace expression");const a=[],o=[];let c=s+1,u=!1,l=!1,p=!1,f=!1,h=s,g="";t:for(;c<r.length;){const n=r.charAt(c);if("!"!==n&&"^"!==n||c!==s+1){if("]"===n&&u&&!p){h=c+1;break}if(u=!0,"\\"!==n||p){if("["===n&&!p)for(const[e,[n,i,u]]of Object.entries(t))if(r.startsWith(e,c)){if(g)return["$.",!1,r.length-s,!0];c+=e.length,u?o.push(n):a.push(n),l=l||i;continue t}p=!1,g?(n>g?a.push(e(g)+"-"+e(n)):n===g&&a.push(e(n)),g="",c++):r.startsWith("-]",c+1)?(a.push(e(n+"-")),c+=2):r.startsWith("-",c+1)?(g=n,c+=2):(a.push(e(n)),c++)}else p=!0,c++}else f=!0,c++}if(h<c)return["",!1,0,!1];if(!a.length&&!o.length)return["$.",!1,r.length-s,!0];if(0===o.length&&1===a.length&&/^\\?.$/.test(a[0])&&!f){return[(m=2===a[0].length?a[0].slice(-1):a[0],m.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,h-s,!1]}var m;const d="["+(f?"^":"")+n(a)+"]",y="["+(f?"":"^")+n(o)+"]";return[a.length&&o.length?"("+d+"|"+y+")":a.length?d:y,l,h-s,!0]},w}(),e=O(),n=new Set(["!","?","+","*","@"]),r=t=>n.has(t),i="(?!\\.)",s=new Set(["[","."]),a=new Set(["..","."]),o=new Set("().*{}+?[]^$\\!"),c=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),u="[^/]",l=u+"*?",p=u+"+?";class f{type;#t;#e;#n=!1;#r=[];#i;#s;#a;#o=!1;#c;#u;#l=!1;constructor(t,e,n={}){this.type=t,t&&(this.#e=!0),this.#i=e,this.#t=this.#i?this.#i.#t:this,this.#c=this.#t===this?n:this.#t.#c,this.#a=this.#t===this?[]:this.#t.#a,"!"!==t||this.#t.#o||this.#a.push(this),this.#s=this.#i?this.#i.#r.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this.#r)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#u?this.#u:this.type?this.#u=this.type+"("+this.#r.map(t=>String(t)).join("|")+")":this.#u=this.#r.map(t=>String(t)).join("")}#p(){if(this!==this.#t)throw new Error("should only call on root");if(this.#o)return this;let t;for(this.toString(),this.#o=!0;t=this.#a.pop();){if("!"!==t.type)continue;let e=t,n=e.#i;for(;n;){for(let r=e.#s+1;!n.type&&r<n.#r.length;r++)for(const e of t.#r){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(n.#r[r])}e=n,n=e.#i}}return this}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof f&&e.#i===this))throw new Error("invalid part: "+e);this.#r.push(e)}}toJSON(){const t=null===this.type?this.#r.slice().map(t=>"string"==typeof t?t:t.toJSON()):[this.type,...this.#r.map(t=>t.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#o&&"!"===this.#i?.type)&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#i?.isStart())return!1;if(0===this.#s)return!0;const t=this.#i;for(let e=0;e<this.#s;e++){const n=t.#r[e];if(!(n instanceof f&&"!"===n.type))return!1}return!0}isEnd(){if(this.#t===this)return!0;if("!"===this.#i?.type)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();const t=this.#i?this.#i.#r.length:0;return this.#s===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new f(this.type,t);for(const t of this.#r)e.copyIn(t);return e}static#f(t,e,n,i){let s=!1,a=!1,o=-1,c=!1;if(null===e.type){let u=n,l="";for(;u<t.length;){const n=t.charAt(u++);if(s||"\\"===n)s=!s,l+=n;else if(a)u===o+1?"^"!==n&&"!"!==n||(c=!0):"]"!==n||u===o+2&&c||(a=!1),l+=n;else if("["!==n){if(!i.noext&&r(n)&&"("===t.charAt(u)){e.push(l),l="";const r=new f(n,e);u=f.#f(t,r,u,i),e.push(r);continue}l+=n}else a=!0,o=u,c=!1,l+=n}return e.push(l),u}let u=n+1,l=new f(null,e);const p=[];let h="";for(;u<t.length;){const n=t.charAt(u++);if(s||"\\"===n)s=!s,h+=n;else if(a)u===o+1?"^"!==n&&"!"!==n||(c=!0):"]"!==n||u===o+2&&c||(a=!1),h+=n;else if("["!==n){if(r(n)&&"("===t.charAt(u)){l.push(h),h="";const e=new f(n,l);l.push(e),u=f.#f(t,e,u,i);continue}if("|"!==n){if(")"===n)return""===h&&0===e.#r.length&&(e.#l=!0),l.push(h),h="",e.push(...p,l),u;h+=n}else l.push(h),h="",p.push(l),l=new f(null,e)}else a=!0,o=u,c=!1,h+=n}return e.type=null,e.#e=void 0,e.#r=[t.substring(n-1)],u}static fromGlob(t,e={}){const n=new f(null,void 0,e);return f.#f(t,n,0,e),n}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();const t=this.toString(),[e,n,r,i]=this.toRegExpSource();if(!(r||this.#e||this.#c.nocase&&!this.#c.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const s=(this.#c.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${e}$`,s),{_src:e,_glob:t})}get options(){return this.#c}toRegExpSource(t){const n=t??!!this.#c.dot;if(this.#t===this&&this.#p(),!this.type){const r=this.isStart()&&this.isEnd()&&!this.#r.some(t=>"string"!=typeof t),o=this.#r.map(e=>{const[n,i,s,a]="string"==typeof e?f.#h(e,this.#e,r):e.toRegExpSource(t);return this.#e=this.#e||s,this.#n=this.#n||a,n}).join("");let c="";if(this.isStart()&&"string"==typeof this.#r[0]){if(!(1===this.#r.length&&a.has(this.#r[0]))){const e=s,r=n&&e.has(o.charAt(0))||o.startsWith("\\.")&&e.has(o.charAt(2))||o.startsWith("\\.\\.")&&e.has(o.charAt(4)),a=!n&&!t&&e.has(o.charAt(0));c=r?"(?!(?:^|/)\\.\\.?(?:$|/))":a?i:""}}let u="";this.isEnd()&&this.#t.#o&&"!"===this.#i?.type&&(u="(?:$|\\/)");return[c+o+u,(0,e.unescape)(o),this.#e=!!this.#e,this.#n]}const r="*"===this.type||"+"===this.type,o="!"===this.type?"(?:(?!(?:":"(?:";let c=this.#g(n);if(this.isStart()&&this.isEnd()&&!c&&"!"!==this.type){const t=this.toString();return this.#r=[t],this.type=null,this.#e=void 0,[t,(0,e.unescape)(this.toString()),!1,!1]}let u=!r||t||n?"":this.#g(!0);u===c&&(u=""),u&&(c=`(?:${c})(?:${u})*?`);let h="";if("!"===this.type&&this.#l)h=(this.isStart()&&!n?i:"")+p;else{h=o+c+("!"===this.type?"))"+(!this.isStart()||n||t?"":i)+l+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&u?")":"*"===this.type&&u?")?":`)${this.type}`)}return[h,(0,e.unescape)(c),this.#e=!!this.#e,this.#n]}#g(t){return this.#r.map(e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[n,r,i,s]=e.toRegExpSource(t);return this.#n=this.#n||s,n}).filter(t=>!(this.isStart()&&this.isEnd()&&!t)).join("|")}static#h(n,r,i=!1){let s=!1,a="",f=!1,h=!1;for(let e=0;e<n.length;e++){const g=n.charAt(e);if(s)s=!1,a+=(o.has(g)?"\\":"")+g;else if("*"!==g)if(h=!1,"\\"!==g){if("["===g){const[i,s,o,c]=(0,t.parseClass)(n,e);if(o){a+=i,f=f||s,e+=o-1,r=r||c;continue}}"?"!==g?a+=c(g):(a+=u,r=!0)}else e===n.length-1?a+="\\\\":s=!0;else{if(h)continue;h=!0,a+=i&&/^[*]+$/.test(n)?p:l,r=!0}}return[a,(0,e.unescape)(n),!!r,f]}}return x.AST=f,x}var F,I,C,P,D,M,R,j,L={};function K(){if(F)return L;F=1,Object.defineProperty(L,"__esModule",{value:!0}),L.escape=void 0;return L.escape=(t,{windowsPathsNoEscape:e=!1,magicalBraces:n=!1}={})=>n?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),L}function B(){return I||(I=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=t.escape=t.AST=t.Minimatch=t.match=t.makeRe=t.braceExpand=t.defaults=t.filter=t.GLOBSTAR=t.sep=t.minimatch=void 0;const e=b(),n=(E||(E=1,Object.defineProperty(T,"__esModule",{value:!0}),T.assertValidPattern=void 0,T.assertValidPattern=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")}),T),r=S(),i=K(),s=O();t.minimatch=(t,e,r={})=>((0,n.assertValidPattern)(e),!(!r.nocomment&&"#"===e.charAt(0))&&new j(e,r).match(t));const a=/^\*+([^+@!?\*\[\(]*)$/,o=t=>e=>!e.startsWith(".")&&e.endsWith(t),c=t=>e=>e.endsWith(t),u=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),l=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),p=/^\*+\.\*+$/,f=t=>!t.startsWith(".")&&t.includes("."),h=t=>"."!==t&&".."!==t&&t.includes("."),g=/^\.\*+$/,m=t=>"."!==t&&".."!==t&&t.startsWith("."),d=/^\*+$/,y=t=>0!==t.length&&!t.startsWith("."),_=t=>0!==t.length&&"."!==t&&".."!==t,x=/^\?+([^+@!?\*\[\(]*)?$/,w=([t,e=""])=>{const n=F([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},A=([t,e=""])=>{const n=I([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},N=([t,e=""])=>{const n=I([t]);return e?t=>n(t)&&t.endsWith(e):n},v=([t,e=""])=>{const n=F([t]);return e?t=>n(t)&&t.endsWith(e):n},F=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},I=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},C="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",P={sep:"\\"},D={sep:"/"};t.sep="win32"===C?P.sep:D.sep,t.minimatch.sep=t.sep,t.GLOBSTAR=Symbol("globstar **"),t.minimatch.GLOBSTAR=t.GLOBSTAR;t.filter=(e,n={})=>r=>(0,t.minimatch)(r,e,n),t.minimatch.filter=t.filter;const M=(t,e={})=>Object.assign({},t,e);t.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return t.minimatch;const n=t.minimatch;return Object.assign((t,r,i={})=>n(t,r,M(e,i)),{Minimatch:class extends n.Minimatch{constructor(t,n={}){super(t,M(e,n))}static defaults(t){return n.defaults(M(e,t)).Minimatch}},AST:class extends n.AST{constructor(t,n,r={}){super(t,n,M(e,r))}static fromGlob(t,r={}){return n.AST.fromGlob(t,M(e,r))}},unescape:(t,r={})=>n.unescape(t,M(e,r)),escape:(t,r={})=>n.escape(t,M(e,r)),filter:(t,r={})=>n.filter(t,M(e,r)),defaults:t=>n.defaults(M(e,t)),makeRe:(t,r={})=>n.makeRe(t,M(e,r)),braceExpand:(t,r={})=>n.braceExpand(t,M(e,r)),match:(t,r,i={})=>n.match(t,r,M(e,i)),sep:n.sep,GLOBSTAR:t.GLOBSTAR})},t.minimatch.defaults=t.defaults;t.braceExpand=(t,r={})=>((0,n.assertValidPattern)(t),r.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,e.expand)(t,{max:r.braceExpandMax})),t.minimatch.braceExpand=t.braceExpand;t.makeRe=(t,e={})=>new j(t,e).makeRe(),t.minimatch.makeRe=t.makeRe;t.match=(t,e,n={})=>{const r=new j(e,n);return t=t.filter(t=>r.match(t)),r.options.nonull&&!t.length&&t.push(e),t},t.minimatch.match=t.match;const R=/[?*]|[+@!]\(.*?\)|\[|\]/;class j{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){(0,n.assertValidPattern)(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||C,this.isWindows="win32"===this.platform;this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(t=>this.slashSplit(t));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((t,e,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&R.test(t[2])||R.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map(t=>this.parse(t))];if(n)return[t[0],...t.slice(1).map(t=>this.parse(t))]}return t.map(t=>this.parse(t))});if(this.debug(this.pattern,r),this.set=r.filter(t=>-1===t.indexOf(!1)),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t})}levelOneOptimize(t){return t.map(t=>0===(t=t.reduce((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)},[])).length?[""]:t)}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;n<t.length-1;n++){const r=t[n];1===n&&""===r&&""===t[0]||("."!==r&&""!==r||(e=!0,t.splice(n,1),n--))}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const r=t[n-1];r&&"."!==r&&".."!==r&&"**"!==r&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let r=-1;for(;-1!==(r=n.indexOf("**",r+1));){let i=r;for(;"**"===n[i+1];)i++;i>r&&n.splice(r+1,i-r);let s=n[r+1];const a=n[r+2],o=n[r+3];if(".."!==s)continue;if(!a||"."===a||".."===a||!o||"."===o||".."===o)continue;e=!0,n.splice(r,1);const c=n.slice(0);c[r]="**",t.push(c),r--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const r=n[t];1===t&&""===r&&""===n[0]||("."!==r&&""!==r||(e=!0,n.splice(t,1),t--))}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let i=0;for(;-1!==(i=n.indexOf("..",i+1));){const t=n[i-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===i&&"**"===n[i+1]?["."]:[];n.splice(i-1,2,...t),0===n.length&&n.push(""),i-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const r=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);if(r){t[e]=[],t[n]=r;break}}return t.filter(t=>t.length)}partsMatch(t,e,n=!1){let r=0,i=0,s=[],a="";for(;r<t.length&&i<e.length;)if(t[r]===e[i])s.push("b"===a?e[i]:t[r]),r++,i++;else if(n&&"**"===t[r]&&e[i]===t[r+1])s.push(t[r]),r++;else if(n&&"**"===e[i]&&t[r]===e[i+1])s.push(e[i]),i++;else if("*"!==t[r]||!e[i]||!this.options.dot&&e[i].startsWith(".")||"**"===e[i]){if("*"!==e[i]||!t[r]||!this.options.dot&&t[r].startsWith(".")||"**"===t[r])return!1;if("a"===a)return!1;a="b",s.push(e[i]),r++,i++}else{if("b"===a)return!1;a="a",s.push(t[r]),r++,i++}return t.length===e.length&&s}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let r=0;r<t.length&&"!"===t.charAt(r);r++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(e,n,r=!1){const i=this.options;if(this.isWindows){const t="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=!t&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),i="string"==typeof n[0]&&/^[a-z]:$/i.test(n[0]),s=r?3:t?0:void 0,a=!i&&""===n[0]&&""===n[1]&&"?"===n[2]&&"string"==typeof n[3]&&/^[a-z]:$/i.test(n[3])?3:i?0:void 0;if("number"==typeof s&&"number"==typeof a){const[t,r]=[e[s],n[a]];t.toLowerCase()===r.toLowerCase()&&(n[a]=t,a>s?n=n.slice(a):s>a&&(e=e.slice(s)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var a=0,o=0,c=e.length,u=n.length;a<c&&o<u;a++,o++){this.debug("matchOne loop");var l=n[o],p=e[a];if(this.debug(n,l,p),!1===l)return!1;if(l===t.GLOBSTAR){this.debug("GLOBSTAR",[n,l,p]);var f=a,h=o+1;if(h===u){for(this.debug("** at the end");a<c;a++)if("."===e[a]||".."===e[a]||!i.dot&&"."===e[a].charAt(0))return!1;return!0}for(;f<c;){var g=e[f];if(this.debug("\nglobstar while",e,f,n,h,g),this.matchOne(e.slice(f),n.slice(h),r))return this.debug("globstar found match!",f,c,g),!0;if("."===g||".."===g||!i.dot&&"."===g.charAt(0)){this.debug("dot detected!",e,f,n,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!r||(this.debug("\n>>> no match, partial?",e,f,n,h),f!==c))}let s;if("string"==typeof l?(s=p===l,this.debug("string match",l,p,s)):(s=l.test(p),this.debug("pattern match",l,p,s)),!s)return!1}if(a===c&&o===u)return!0;if(a===c)return r;if(o===u)return a===c-1&&""===e[a];throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(e){(0,n.assertValidPattern)(e);const i=this.options;if("**"===e)return t.GLOBSTAR;if(""===e)return"";let s,b=null;(s=e.match(d))?b=i.dot?_:y:(s=e.match(a))?b=(i.nocase?i.dot?l:u:i.dot?c:o)(s[1]):(s=e.match(x))?b=(i.nocase?i.dot?A:w:i.dot?N:v)(s):(s=e.match(p))?b=i.dot?h:f:(s=e.match(g))&&(b=m);const E=r.AST.fromGlob(e,this.options).toMMPattern();return b&&"object"==typeof E&&Reflect.defineProperty(E,"test",{value:b}),E}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const n=this.options,r=n.noglobstar?"[^/]*?":n.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(n.nocase?["i"]:[]);let s=e.map(e=>{const n=e.map(e=>{if(e instanceof RegExp)for(const t of e.flags.split(""))i.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===t.GLOBSTAR?t.GLOBSTAR:e._src});n.forEach((e,i)=>{const s=n[i+1],a=n[i-1];e===t.GLOBSTAR&&a!==t.GLOBSTAR&&(void 0===a?void 0!==s&&s!==t.GLOBSTAR?n[i+1]="(?:\\/|"+r+"\\/)?"+s:n[i]=r:void 0===s?n[i-1]=a+"(?:\\/|\\/"+r+")?":s!==t.GLOBSTAR&&(n[i-1]=a+"(?:\\/|\\/"+r+"\\/)"+s,n[i+1]=t.GLOBSTAR))});const s=n.filter(e=>e!==t.GLOBSTAR);if(this.partial&&s.length>=1){const t=[];for(let e=1;e<=s.length;e++)t.push(s.slice(0,e).join("/"));return"(?:"+t.join("|")+")"}return s.join("/")}).join("|");const[a,o]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+o+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+o+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const r=this.slashSplit(t);this.debug(this.pattern,"split",r);const i=this.set;this.debug(this.pattern,"set",i);let s=r[r.length-1];if(!s)for(let t=r.length-2;!s&&t>=0;t--)s=r[t];for(let t=0;t<i.length;t++){const a=i[t];let o=r;n.matchBase&&1===a.length&&(o=[s]);if(this.matchOne(o,a,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(e){return t.minimatch.defaults(e).Minimatch}}t.Minimatch=j;var L=S();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return L.AST}});var B=K();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return B.escape}});var k=O();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return k.unescape}}),t.minimatch.AST=r.AST,t.minimatch.Minimatch=j,t.minimatch.escape=i.escape,t.minimatch.unescape=s.unescape}(m)),m}var k=function(){if(j)return R;j=1;const t=r,n=function(){if(P)return C;P=1;var t=B();return C=function(){function e(e){this.matchers=e.map(function(e){return"string"==typeof e?new t.Minimatch(e):e})}return e.prototype.match=function(t){for(var e=0;e<this.matchers.length;e++)if(this.matchers[e].match(t))return!0;return!1},e.prototype.mayContain=function(t){for(var e=t.split(/\/|\\/g).filter(Boolean),n=0;n<this.matchers.length;n++)for(var r=this.matchers[n],i=0;i<r.set.length;i++)if(r.matchOne(e,r.set[i],!0))return!0;return!1},e}()}(),i=B(),s=function(){if(M)return D;M=1;var t=e;return D=function(e){return"/"!==t.sep?e.split(t.sep).join("/"):e}}(),a=e;function o(t,e){const n=u(e);let r;return r=n.includeBasePath?function(t){return t.basePath.split(a.sep).join("/").replace(/\/+$/,"")+"/"+t.relativePath}:function(t){return t.relativePath},f(t,n,null,[]).map(r)}function c(t){return void 0!==t}function u(t){let e={};return Array.isArray(t)?e.globs=t:t&&(e=t),e}function l(t,e){return null==t?void 0:t.map(t=>"string"==typeof t?new i.Minimatch(t,e):t)}function p(t,e){const n=t.relativePath,r=e.relativePath;return n===r?0:n<r?-1:1}function f(e,r,i,s){var a;const u=null!==(a=r.fs)&&void 0!==a?a:t,h=function(t){return null==t?"":"/"!==t.slice(-1)?t+"/":t}(i),g=u.realpathSync(e+"/"+h);if(s.indexOf(g)>=0)return[];s.push(g);try{const i=r.globOptions,a=c(i)?l(r.ignore,i):r.ignore,g=c(i)?l(r.globs,i):r.globs;let m,d,y=[];if(a&&(d=new n(a)),g&&(m=new n(g)),m&&!m.mayContain(h))return y;const b=u.readdirSync(e+"/"+h).map(n=>{let r=h+n;if(d&&d.match(r))return;let i=function(e,n=t){try{return n.statSync(e)}catch(t){if(null!==t&&"object"==typeof t&&["ENOENT","ENOTDIR","EPERM"].includes(t.code))return;throw t}}(e+"/"+r,u);return i&&i.isDirectory()?new o.Entry(r+"/",e,i.mode,i.size,i.mtime.getTime()):new o.Entry(r,e,i&&i.mode||0,i&&i.size||0,i&&i.mtime.getTime()||0)}).filter(c),E=b.sort(p);for(let t=0;t<E.length;++t){let n=E[t];n.isDirectory()?(!1===r.directories||m&&!m.match(n.relativePath)||y.push(n),y=y.concat(f(e,r,n.relativePath,s))):m&&!m.match(n.relativePath)||y.push(n)}return y}finally{s.pop()}}return function(e){e.entries=function(t,e){const n=u(e);return f(s(t),n,null,[])};e.Entry=class{constructor(t,e,n,r,i){this.relativePath=t,this.basePath=e,this.mode=n,this.size=r,this.mtime=i}get fullPath(){return`${this.basePath}/${this.relativePath}`}isDirectory(){return(this.mode&t.constants.S_IFMT)===t.constants.S_IFDIR}}}(o||(o={})),R=o}(),G=n.getDefaultExportFromCjs(k);function U(...t){return async e=>{let n=e;for(const e of t)n=await e(n);return n}}var V,$={},W={};function z(){if(V)return W;V=1;const t=Object.freeze({Key:0,0:"Key",Value:1,1:"Value",Section:2,2:"Section",CommentIndicator:3,3:"CommentIndicator",CommentValue:4,4:"CommentValue"});function e(t){const n=typeof t;if("number"==n||"boolean"==n||null==t)return`${t}`;if("string"==n)return`"${t}"`;if("symbol"==n){const e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==n){const e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){const n=t.length;let r="[";n>0&&(r+=e(t[0]));for(let i=1;i<n;i++)r+=", "+e(t[i]);return r+="]",r}const r=/\[object ([^\]]+)\]/.exec(toString.call(t));let i;if(!(r&&r.length>1))return toString.call(t);if(i=r[1],"Object"==i)try{return"Object("+JSON.stringify(t)+")"}catch(t){return"Object"}return t instanceof Error?`${t.name}: ${t.message}\n${t.stack}`:i}W.TokenTypes=t,W.parse_to_json=function(t){const e=u(t,d.__wbindgen_malloc,d.__wbindgen_realloc),n=f;return d.parse_to_json(e,n)},W.parse_to_uint32array=function(t){const e=function(t,e){const n=e(1*t.length,1)>>>0;return c().set(t,n/1),f=t.length,n}(t,d.__wbindgen_malloc),n=f,r=d.parse_to_uint32array(e,n);if(r[3])throw function(t){const e=d.__wbindgen_externrefs.get(t);return d.__externref_table_dealloc(t),e}(r[2]);var i,s,o=(i=r[0],s=r[1],i>>>=0,(null!==a&&0!==a.byteLength||(a=new Uint32Array(d.memory.buffer)),a).subarray(i/4,i/4+s)).slice();return d.__wbindgen_free(r[0],4*r[1],4),o},W.version=function(){let t,e;try{const n=d.version();return t=n[0],e=n[1],s(n[0],n[1])}finally{d.__wbindgen_free(t,e,1)}};let n=null;function i(){return(null===n||!0===n.buffer.detached||void 0===n.buffer.detached&&n.buffer!==d.memory.buffer)&&(n=new DataView(d.memory.buffer)),n}function s(t,e){return function(t,e){return l.decode(c().subarray(t,t+e))}(t>>>=0,e)}let a=null;let o=null;function c(){return null!==o&&0!==o.byteLength||(o=new Uint8Array(d.memory.buffer)),o}function u(t,e,n){if(void 0===n){const n=p.encode(t),r=e(n.length,1)>>>0;return c().subarray(r,r+n.length).set(n),f=n.length,r}let r=t.length,i=e(r,1)>>>0;const s=c();let a=0;for(;a<r;a++){const e=t.charCodeAt(a);if(e>127)break;s[i+a]=e}if(a!==r){0!==a&&(t=t.slice(a)),i=n(i,r,r=a+3*t.length,1)>>>0;const e=c().subarray(i+a,i+r);a+=p.encodeInto(t,e).written,i=n(i,r,a,1)>>>0}return f=a,i}let l=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});l.decode();const p=new TextEncoder;"encodeInto"in p||(p.encodeInto=function(t,e){const n=p.encode(t);return e.set(n),{read:t.length,written:n.length}});let f=0;const h=`${__dirname}/one_ini_bg.wasm`,g=r.readFileSync(h),m=new WebAssembly.Module(g);let d=new WebAssembly.Instance(m,function(){const t={__proto__:null,__wbg_Error_ecbf49c1b9d07c30:function(t,e){return Error(s(t,e))},__wbg___wbindgen_debug_string_43c7ccb034739216:function(t,n){const r=u(e(n),d.__wbindgen_malloc,d.__wbindgen_realloc),s=f;i().setInt32(t+4,s,!0),i().setInt32(t+0,r,!0)},__wbg___wbindgen_throw_df03e93053e0f4bc:function(t,e){throw new Error(s(t,e))},__wbg_fromCodePoint_e00c387b1e85dfa6:function(){return function(t,e){try{return t.apply(this,e)}catch(t){const e=function(t){const e=d.__externref_table_alloc();return d.__wbindgen_externrefs.set(e,t),e}(t);d.__wbindgen_exn_store(e)}}(function(t){return String.fromCodePoint(t>>>0)},arguments)},__wbg_new_62f131e968c83d75:function(){return new Object},__wbg_new_66075f8c2ea6575e:function(){return new Array},__wbg_set_6be42768c690e380:function(t,e,n){t[e]=n},__wbg_set_7bf9e2df46e7632c:function(t,e,n){t[e>>>0]=n},__wbindgen_cast_0000000000000001:function(t,e){return s(t,e)},__wbindgen_init_externref_table:function(){const t=d.__wbindgen_externrefs,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)}};return{__proto__:null,"./one_ini_bg.js":t}}()).exports;return d.__wbindgen_start(),W}var q,X={name:"editorconfig",version:"3.0.2",description:"EditorConfig File Locator and Interpreter for Node.js",keywords:["editorconfig","core"],main:"./lib/index.js",files:["lib/*","bin/*"],contributors:["Hong Xu (topbug.net)","Jed Mao (https://github.com/jedmao/)","Trey Hunner (http://treyhunner.com)","Joe Hildebrand (https://github.com/hildjj/)","SunsetTechuila (https://github.com/SunsetTechuila/)","Rex Lorenzo (https://github.com/rlorenzo/)"],directories:{bin:"./bin",lib:"./lib"},repository:{type:"git",url:"git://github.com/editorconfig/editorconfig-core-js.git"},bugs:"https://github.com/editorconfig/editorconfig-core-js/issues",author:"EditorConfig Team",license:"MIT",dependencies:{"@one-ini/wasm":"0.2.1",commander:"^14.0.3",minimatch:"~10.2.4",semver:"^7.7.4"},engines:{node:">=20"}};var Y=function(){if(q)return $;q=1;var e,n=$&&$.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=$&&$.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=$&&$.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},e(t)},function(t){if(t&&t.__esModule)return t;var i={};if(null!=t)for(var s=e(t),a=0;a<s.length;a++)"default"!==s[a]&&n(i,t,s[a]);return r(i,t),i}),c=$&&$.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($,"__esModule",{value:!0}),$.parseBuffer=E,$.parseString=function(t){return E(g.Buffer.from(t))},$.unset=O,$.parseFromFilesSync=F,$.parseFromFiles=async function(t,e,n={}){return F(t,await e,n)},$.parse=async function(t,e={}){const[n,r]=v(t,e),i=T(n,r),s=await async function(t,e){const n=[];for(const r of t){const t=await A(r,e);if(!t.notfound&&(n.push(t),t.root))break}return n}(i,r);return S(n,s,r)},$.parseSync=function(t,e={}){const[n,r]=v(t,e),i=function(t,e){const n=[];for(const r of t){const t=N(r,e);if(!t.notfound&&(n.push(t),t.root))break}return n}(T(n,r),r);return S(n,i,r)},$.matcher=function(t,...e){const[n,r]=v("",t),i=e.map((t,e)=>w(l.join(r.root,`buffer-${e}`),t,r));return t=>S(l.resolve(t),i,r)};const u=o(i),l=o(s),p=o(t.requireSemver()),f=B(),h=z(),g=a,m=c(X),d=new RegExp(l.sep.replace(/\\/g,"\\\\"),"g"),y={matchBase:!0,dot:!0},b=new Set(["charset","end_of_line","indent_size","indent_style","insert_final_newline","trim_trailing_whitespace"]);function E(t){const e=(0,h.parse_to_uint32array)(t);let n={};const r=[[null,n]];let i=null;for(let s=0;s<e.length;s+=3)switch(e[s]){case h.TokenTypes.Section:n={},r.push([t.toString("utf8",e[s+1],e[s+2]),n]);break;case h.TokenTypes.Key:i=t.toString("utf8",e[s+1],e[s+2]);break;case h.TokenTypes.Value:n[i]=t.toString("utf8",e[s+1],e[s+2])}return r}function T(t,e){const n=[];do{t=l.dirname(t),n.push(l.join(t,e.config))}while(t!==e.root);return n}function _(t,e){switch(e.indexOf("/")){case-1:e=`**/${e}`;break;case 0:e=e.substring(1)}return e=(e=e.replace(/\\\\/g,"\\\\\\\\")).replace(/\*\*/g,"{*,**/**/**}"),new f.Minimatch(`${t}/${e}`,y)}function x(t){const e={};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n],i=n.toLowerCase();let s=r;b.has(i)&&(s=String(r).toLowerCase());try{s=JSON.parse(String(r))}catch(t){}null==s&&(s=String(r)),e[i]=s}return e}function w(t,e,n){let r;if(e){let n=l.dirname(t);"/"!==l.sep&&(n=n.replace(d,"/")),n=(0,f.escape)(n,{windowsPathsNoEscape:!0}),n=n.replace(/^#/,"[#]");const i=E(e).map(([t,e])=>[t,x(e),t?_(n,t):null]);r={root:Boolean(i[0][1].root),name:t,config:i}}else r={root:!1,notfound:!0,name:t,config:[[null,{},null]]};return n.cache&&n.cache.set(t,r),r}async function A(t,e){if(e.cache){const n=e.cache.get(t);if(n)return n}const n=await new Promise(e=>{u.readFile(t,(t,n)=>{e(n)})});return w(t,n,e)}function N(t,e){if(e.cache){const n=e.cache.get(t);if(n)return n}let n;try{n=u.readFileSync(t)}catch(t){}return w(t,n,e)}function v(t,e={}){const n=l.resolve(t);return[n,{config:e.config||".editorconfig",version:e.version||m.default.version,root:l.resolve(e.root||l.parse(n).root),files:e.files,cache:e.cache,unset:e.unset}]}function O(t){const e=Object.keys(t);for(const n of e)"unset"===t[n]&&delete t[n]}function S(t,e,n){const r=e.reverse().reduce((e,r)=>{for(const[i,s,a]of r.config)(null==a?void 0:a.match(t))&&(Object.assign(e,s),n.files&&n.files.push({fileName:r.name,glob:i}));return e},{});return n.unset&&O(r),function(t,e){return"indent_style"in t&&"tab"===t.indent_style&&!("indent_size"in t)&&p.gte(e,"0.10.0")&&(t.indent_size="tab"),"indent_size"in t&&!("tab_width"in t)&&"tab"!==t.indent_size&&(t.tab_width=t.indent_size),"indent_size"in t&&"tab_width"in t&&"tab"===t.indent_size&&(t.indent_size=t.tab_width),t}(r,n.version)}function F(t,e,n={}){const[r,i]=v(t,n),s=[];for(const t of e){let e;if(n.cache&&(e=n.cache.get(t.name))||(e=w(t.name,t.contents,i)),e.notfound||s.push(e),e.root)break}return S(r,s,i)}return $}();const H=t.env.debug("vbapm:editor-config"),Q=new Map;async function J(n){const{end_of_line:r,trim_trailing_whitespace:i,insert_final_newline:s}=await async function(t){const n=e.extname(t.filename);if(Q.has(n))return Q.get(n);const r=await Y.parse(t.filename);return Q.set(n,r),H(`Formatting ${n} with`,r),r}(n),a="lf"===r?"\n":"\r\n",o=n.code.split(t.BY_LINE).map(i?Z:tt).join(a);return n.code=s?function(t){"\n"!==t[t.length-1]&&(t+="\n");return t}(o):o,n}function Z(t){return t.trimEnd()}function tt(t){return t}var et=Object.freeze({__proto__:null,toCompiled:async function(t){return t},toSrc:async function(e){const{name:n,references:r,fromDependencies:i}=e;return{name:n,components:await t.parallel(e.components,J),references:r,fromDependencies:i}}});const nt=[et];U(...nt.map(t=>t.toCompiled).filter(Boolean));const rt=U(...nt.map(t=>t.toSrc).filter(Boolean));var it,st,at,ot,ct,ut,lt,pt,ft,ht,gt,mt,dt,yt,bt,Et={};function Tt(){return it||(it=1,function(t){t.parser=function(t,e){return new r(t,e)},t.SAXParser=r,t.SAXStream=s,t.createStream=function(t,e){return new s(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function r(e,i){if(!(this instanceof r))return new r(e,i);var s=this;!function(t){for(var e=0,r=n.length;e<r;e++)t[n[e]]=""}(s),s.q=s.c="",s.bufferCheckPosition=t.MAX_BUFFER_LENGTH,s.opt=i||{},s.opt.lowercase=s.opt.lowercase||s.opt.lowercasetags,s.looseCase=s.opt.lowercase?"toLowerCase":"toUpperCase",s.tags=[],s.closed=s.closedRoot=s.sawRoot=!1,s.tag=s.error=null,s.strict=!!e,s.noscript=!(!e&&!s.opt.noscript),s.state=A.BEGIN,s.strictEntities=s.opt.strictEntities,s.ENTITIES=s.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),s.attribList=[],s.opt.xmlns&&(s.ns=Object.create(p)),s.trackPosition=!1!==s.opt.position,s.trackPosition&&(s.position=s.line=s.column=0),v(s,"onready")}t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),r.prototype={end:function(){C(this)},write:function(e){var r=this;if(this.error)throw this.error;if(r.closed)return I(r,"Cannot write after close. Assign an onready handler.");if(null===e)return C(r);"object"==typeof e&&(e=e.toString());for(var i=0,s="";s=k(e,i++),r.c=s,s;)switch(r.trackPosition&&(r.position++,"\n"===s?(r.line++,r.column=0):r.column++),r.state){case A.BEGIN:if(r.state=A.BEGIN_WHITESPACE,"\ufeff"===s)continue;B(r,s);continue;case A.BEGIN_WHITESPACE:B(r,s);continue;case A.TEXT:if(r.sawRoot&&!r.closedRoot){for(var o=i-1;s&&"<"!==s&&"&"!==s;)(s=k(e,i++))&&r.trackPosition&&(r.position++,"\n"===s?(r.line++,r.column=0):r.column++);r.textNode+=e.substring(o,i-1)}"<"!==s||r.sawRoot&&r.closedRoot&&!r.strict?(d(s)||r.sawRoot&&!r.closedRoot||P(r,"Text data outside of root node."),"&"===s?r.state=A.TEXT_ENTITY:r.textNode+=s):(r.state=A.OPEN_WAKA,r.startTagPosition=r.position);continue;case A.SCRIPT:"<"===s?r.state=A.SCRIPT_ENDING:r.script+=s;continue;case A.SCRIPT_ENDING:"/"===s?r.state=A.CLOSE_TAG:(r.script+="<"+s,r.state=A.SCRIPT);continue;case A.OPEN_WAKA:if("!"===s)r.state=A.SGML_DECL,r.sgmlDecl="";else if(d(s));else if(E(f,s))r.state=A.OPEN_TAG,r.tagName=s;else if("/"===s)r.state=A.CLOSE_TAG,r.tagName="";else if("?"===s)r.state=A.PROC_INST,r.procInstName=r.procInstBody="";else{if(P(r,"Unencoded <"),r.startTagPosition+1<r.position){var u=r.position-r.startTagPosition;s=new Array(u).join(" ")+s}r.textNode+="<"+s,r.state=A.TEXT}continue;case A.SGML_DECL:(r.sgmlDecl+s).toUpperCase()===a?(O(r,"onopencdata"),r.state=A.CDATA,r.sgmlDecl="",r.cdata=""):r.sgmlDecl+s==="--"?(r.state=A.COMMENT,r.comment="",r.sgmlDecl=""):(r.sgmlDecl+s).toUpperCase()===c?(r.state=A.DOCTYPE,(r.doctype||r.sawRoot)&&P(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):">"===s?(O(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=A.TEXT):y(s)?(r.state=A.SGML_DECL_QUOTED,r.sgmlDecl+=s):r.sgmlDecl+=s;continue;case A.SGML_DECL_QUOTED:s===r.q&&(r.state=A.SGML_DECL,r.q=""),r.sgmlDecl+=s;continue;case A.DOCTYPE:">"===s?(r.state=A.TEXT,O(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=s,"["===s?r.state=A.DOCTYPE_DTD:y(s)&&(r.state=A.DOCTYPE_QUOTED,r.q=s));continue;case A.DOCTYPE_QUOTED:r.doctype+=s,s===r.q&&(r.q="",r.state=A.DOCTYPE);continue;case A.DOCTYPE_DTD:r.doctype+=s,"]"===s?r.state=A.DOCTYPE:y(s)&&(r.state=A.DOCTYPE_DTD_QUOTED,r.q=s);continue;case A.DOCTYPE_DTD_QUOTED:r.doctype+=s,s===r.q&&(r.state=A.DOCTYPE_DTD,r.q="");continue;case A.COMMENT:"-"===s?r.state=A.COMMENT_ENDING:r.comment+=s;continue;case A.COMMENT_ENDING:"-"===s?(r.state=A.COMMENT_ENDED,r.comment=F(r.opt,r.comment),r.comment&&O(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+s,r.state=A.COMMENT);continue;case A.COMMENT_ENDED:">"!==s?(P(r,"Malformed comment"),r.comment+="--"+s,r.state=A.COMMENT):r.state=A.TEXT;continue;case A.CDATA:"]"===s?r.state=A.CDATA_ENDING:r.cdata+=s;continue;case A.CDATA_ENDING:"]"===s?r.state=A.CDATA_ENDING_2:(r.cdata+="]"+s,r.state=A.CDATA);continue;case A.CDATA_ENDING_2:">"===s?(r.cdata&&O(r,"oncdata",r.cdata),O(r,"onclosecdata"),r.cdata="",r.state=A.TEXT):"]"===s?r.cdata+="]":(r.cdata+="]]"+s,r.state=A.CDATA);continue;case A.PROC_INST:"?"===s?r.state=A.PROC_INST_ENDING:d(s)?r.state=A.PROC_INST_BODY:r.procInstName+=s;continue;case A.PROC_INST_BODY:if(!r.procInstBody&&d(s))continue;"?"===s?r.state=A.PROC_INST_ENDING:r.procInstBody+=s;continue;case A.PROC_INST_ENDING:">"===s?(O(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=A.TEXT):(r.procInstBody+="?"+s,r.state=A.PROC_INST_BODY);continue;case A.OPEN_TAG:E(h,s)?r.tagName+=s:(D(r),">"===s?j(r):"/"===s?r.state=A.OPEN_TAG_SLASH:(d(s)||P(r,"Invalid character in tag name"),r.state=A.ATTRIB));continue;case A.OPEN_TAG_SLASH:">"===s?(j(r,!0),L(r)):(P(r,"Forward-slash in opening tag not followed by >"),r.state=A.ATTRIB);continue;case A.ATTRIB:if(d(s))continue;">"===s?j(r):"/"===s?r.state=A.OPEN_TAG_SLASH:E(f,s)?(r.attribName=s,r.attribValue="",r.state=A.ATTRIB_NAME):P(r,"Invalid attribute name");continue;case A.ATTRIB_NAME:"="===s?r.state=A.ATTRIB_VALUE:">"===s?(P(r,"Attribute without value"),r.attribValue=r.attribName,R(r),j(r)):d(s)?r.state=A.ATTRIB_NAME_SAW_WHITE:E(h,s)?r.attribName+=s:P(r,"Invalid attribute name");continue;case A.ATTRIB_NAME_SAW_WHITE:if("="===s)r.state=A.ATTRIB_VALUE;else{if(d(s))continue;P(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",O(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",">"===s?j(r):E(f,s)?(r.attribName=s,r.state=A.ATTRIB_NAME):(P(r,"Invalid attribute name"),r.state=A.ATTRIB)}continue;case A.ATTRIB_VALUE:if(d(s))continue;y(s)?(r.q=s,r.state=A.ATTRIB_VALUE_QUOTED):(P(r,"Unquoted attribute value"),r.state=A.ATTRIB_VALUE_UNQUOTED,r.attribValue=s);continue;case A.ATTRIB_VALUE_QUOTED:if(s!==r.q){"&"===s?r.state=A.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=s;continue}R(r),r.q="",r.state=A.ATTRIB_VALUE_CLOSED;continue;case A.ATTRIB_VALUE_CLOSED:d(s)?r.state=A.ATTRIB:">"===s?j(r):"/"===s?r.state=A.OPEN_TAG_SLASH:E(f,s)?(P(r,"No whitespace between attributes"),r.attribName=s,r.attribValue="",r.state=A.ATTRIB_NAME):P(r,"Invalid attribute name");continue;case A.ATTRIB_VALUE_UNQUOTED:if(!b(s)){"&"===s?r.state=A.ATTRIB_VALUE_ENTITY_U:r.attribValue+=s;continue}R(r),">"===s?j(r):r.state=A.ATTRIB;continue;case A.CLOSE_TAG:if(r.tagName)">"===s?L(r):E(h,s)?r.tagName+=s:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=A.SCRIPT):(d(s)||P(r,"Invalid tagname in closing tag"),r.state=A.CLOSE_TAG_SAW_WHITE);else{if(d(s))continue;T(f,s)?r.script?(r.script+="</"+s,r.state=A.SCRIPT):P(r,"Invalid tagname in closing tag."):r.tagName=s}continue;case A.CLOSE_TAG_SAW_WHITE:if(d(s))continue;">"===s?L(r):P(r,"Invalid characters in closing tag");continue;case A.TEXT_ENTITY:case A.ATTRIB_VALUE_ENTITY_Q:case A.ATTRIB_VALUE_ENTITY_U:var l,p;switch(r.state){case A.TEXT_ENTITY:l=A.TEXT,p="textNode";break;case A.ATTRIB_VALUE_ENTITY_Q:l=A.ATTRIB_VALUE_QUOTED,p="attribValue";break;case A.ATTRIB_VALUE_ENTITY_U:l=A.ATTRIB_VALUE_UNQUOTED,p="attribValue"}";"===s?(r[p]+=K(r),r.entity="",r.state=l):E(r.entity.length?m:g,s)?r.entity+=s:(P(r,"Invalid character in entity name"),r[p]+="&"+r.entity+s,r.entity="",r.state=l);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&function(e){for(var r=Math.max(t.MAX_BUFFER_LENGTH,10),i=0,s=0,a=n.length;s<a;s++){var o=e[n[s]].length;if(o>r)switch(n[s]){case"textNode":S(e);break;case"cdata":O(e,"oncdata",e.cdata),e.cdata="";break;case"script":O(e,"onscript",e.script),e.script="";break;default:I(e,"Max buffer length exceeded: "+n[s])}i=Math.max(i,o)}var c=t.MAX_BUFFER_LENGTH-i;e.bufferCheckPosition=c+e.position}(r),r}
|
|
2
|
-
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;S(t=this),""!==t.cdata&&(O(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(O(t,"onscript",t.script),t.script="")}};try{e=require("stream").Stream}catch(t){e=function(){}}var i=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function s(t,n){if(!(this instanceof s))return new s(t,n);e.apply(this),this._parser=new r(t,n),this.writable=!0,this.readable=!0;var a=this;this._parser.onend=function(){a.emit("end")},this._parser.onerror=function(t){a.emit("error",t),a._parser.error=null},this._decoder=null,i.forEach(function(t){Object.defineProperty(a,"on"+t,{get:function(){return a._parser["on"+t]},set:function(e){if(!e)return a.removeAllListeners(t),a._parser["on"+t]=e,e;a.on(t,e)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(e.prototype,{constructor:{value:s}}),s.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=o.StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},s.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},s.prototype.on=function(t,n){var r=this;return r._parser["on"+t]||-1===i.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),e.prototype.on.call(r,t,n)};var a="[CDATA[",c="DOCTYPE",u="http://www.w3.org/XML/1998/namespace",l="http://www.w3.org/2000/xmlns/",p={xml:u,xmlns:l},f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function d(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function y(t){return'"'===t||"'"===t}function b(t){return">"===t||d(t)}function E(t,e){return t.test(e)}function T(t,e){return!E(t,e)}var _,x,w,A=0;for(var N in t.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var n=t.ENTITIES[e],r="number"==typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r}),t.STATE)t.STATE[t.STATE[N]]=N;function v(t,e,n){t[e]&&t[e](n)}function O(t,e,n){t.textNode&&S(t),v(t,e,n)}function S(t){t.textNode=F(t.opt,t.textNode),t.textNode&&v(t,"ontext",t.textNode),t.textNode=""}function F(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function I(t,e){return S(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,v(t,"onerror",e),t}function C(t){return t.sawRoot&&!t.closedRoot&&P(t,"Unclosed root tag"),t.state!==A.BEGIN&&t.state!==A.BEGIN_WHITESPACE&&t.state!==A.TEXT&&I(t,"Unexpected end"),S(t),t.c="",t.closed=!0,v(t,"onend"),r.call(t,t.strict,t.opt),t}function P(t,e){if("object"!=typeof t||!(t instanceof r))throw new Error("bad call to strictFail");t.strict&&I(t,e)}function D(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,O(t,"onopentagstart",n)}function M(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),r=n[0],i=n[1];return e&&"xmlns"===t&&(r="xmlns",i=""),{prefix:r,local:i}}function R(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=M(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==u)P(t,"xml: prefix must be bound to "+u+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==l)P(t,"xmlns: prefix must be bound to "+l+"\nActual: "+t.attribValue);else{var i=t.tag,s=t.tags[t.tags.length-1]||t;i.ns===s.ns&&(i.ns=Object.create(s.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,O(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function j(t,e){if(t.opt.xmlns){var n=t.tag,r=M(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(P(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){O(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var s=0,a=t.attribList.length;s<a;s++){var o=t.attribList[s],c=o[0],u=o[1],l=M(c,!0),p=l.prefix,f=l.local,h=""===p?"":n.ns[p]||"",g={name:c,value:u,prefix:p,local:f,uri:h};p&&"xmlns"!==p&&!h&&(P(t,"Unbound namespace prefix: "+JSON.stringify(p)),g.uri=p),t.tag.attributes[c]=g,O(t,"onattribute",g)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),O(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=A.TEXT:t.state=A.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function L(t){if(!t.tagName)return P(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=A.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=A.SCRIPT);O(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--&&t.tags[e].name!==r;)P(t,"Unexpected close tag");if(e<0)return P(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=A.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var s=t.tag=t.tags.pop();t.tagName=t.tag.name,O(t,"onclosetag",t.tagName);var a={};for(var o in s.ns)a[o]=s.ns[o];var c=t.tags[t.tags.length-1]||t;t.opt.xmlns&&s.ns!==c.ns&&Object.keys(s.ns).forEach(function(e){var n=s.ns[e];O(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=A.TEXT}function K(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),i=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),i=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(P(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function B(t,e){"<"===e?(t.state=A.OPEN_WAKA,t.startTagPosition=t.position):d(e)||(P(t,"Non-whitespace before first tag."),t.textNode=e,t.state=A.TEXT)}function k(t,e){var n="";return e<t.length&&(n=t.charAt(e)),n}A=t.STATE,String.fromCodePoint||(_=String.fromCharCode,x=Math.floor,w=function(){var t,e,n=[],r=-1,i=arguments.length;if(!i)return"";for(var s="";++r<i;){var a=Number(arguments[r]);if(!isFinite(a)||a<0||a>1114111||x(a)!==a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(t=55296+((a-=65536)>>10),e=a%1024+56320,n.push(t,e)),(r+1===i||n.length>16384)&&(s+=_.apply(null,n),n.length=0)}return s},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:w,configurable:!0,writable:!0}):String.fromCodePoint=w)}(Et)),Et}function _t(){return at?st:(at=1,st={isArray:function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}})}function xt(){if(ct)return ot;ct=1;var t=_t().isArray;return ot={copyOptions:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n},ensureFlagExists:function(t,e){t in e&&"boolean"==typeof e[t]||(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||"number"!=typeof t.spaces&&"string"!=typeof t.spaces)&&(t.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||t(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(t,e){t+"Key"in e&&"string"==typeof e[t+"Key"]||(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}}}function wt(){if(lt)return ut;lt=1;var t,e,n=Tt(),r=xt(),i=_t().isArray;function s(t){var e=Number(t);if(!isNaN(e))return e;var n=t.toLowerCase();return"true"===n||"false"!==n&&t}function a(n,r){var s;if(t.compact){if(!e[t[n+"Key"]]&&(i(t.alwaysArray)?-1!==t.alwaysArray.indexOf(t[n+"Key"]):t.alwaysArray)&&(e[t[n+"Key"]]=[]),e[t[n+"Key"]]&&!i(e[t[n+"Key"]])&&(e[t[n+"Key"]]=[e[t[n+"Key"]]]),n+"Fn"in t&&"string"==typeof r&&(r=t[n+"Fn"](r,e)),"instruction"===n&&("instructionFn"in t||"instructionNameFn"in t))for(s in r)if(r.hasOwnProperty(s))if("instructionFn"in t)r[s]=t.instructionFn(r[s],s,e);else{var a=r[s];delete r[s],r[t.instructionNameFn(s,a,e)]=a}i(e[t[n+"Key"]])?e[t[n+"Key"]].push(r):e[t[n+"Key"]]=r}else{e[t.elementsKey]||(e[t.elementsKey]=[]);var o={};if(o[t.typeKey]=n,"instruction"===n){for(s in r)if(r.hasOwnProperty(s))break;o[t.nameKey]="instructionNameFn"in t?t.instructionNameFn(s,r,e):s,t.instructionHasAttributes?(o[t.attributesKey]=r[s][t.attributesKey],"instructionFn"in t&&(o[t.attributesKey]=t.instructionFn(o[t.attributesKey],s,e))):("instructionFn"in t&&(r[s]=t.instructionFn(r[s],s,e)),o[t.instructionKey]=r[s])}else n+"Fn"in t&&(r=t[n+"Fn"](r,e)),o[t[n+"Key"]]=r;t.addParent&&(o[t.parentKey]=e),e[t.elementsKey].push(o)}}function o(n){var r;if("attributesFn"in t&&n&&(n=t.attributesFn(n,e)),(t.trim||"attributeValueFn"in t||"attributeNameFn"in t||t.nativeTypeAttributes)&&n)for(r in n)if(n.hasOwnProperty(r)&&(t.trim&&(n[r]=n[r].trim()),t.nativeTypeAttributes&&(n[r]=s(n[r])),"attributeValueFn"in t&&(n[r]=t.attributeValueFn(n[r],r,e)),"attributeNameFn"in t)){var i=n[r];delete n[r],n[t.attributeNameFn(r,n[r],e)]=i}return n}function c(n){var r={};if(n.body&&("xml"===n.name.toLowerCase()||t.instructionHasAttributes)){for(var i,s=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(i=s.exec(n.body));)r[i[1]]=i[2]||i[3]||i[4];r=o(r)}if("xml"===n.name.toLowerCase()){if(t.ignoreDeclaration)return;e[t.declarationKey]={},Object.keys(r).length&&(e[t.declarationKey][t.attributesKey]=r),t.addParent&&(e[t.declarationKey][t.parentKey]=e)}else{if(t.ignoreInstruction)return;t.trim&&(n.body=n.body.trim());var c={};t.instructionHasAttributes&&Object.keys(r).length?(c[n.name]={},c[n.name][t.attributesKey]=r):c[n.name]=n.body,a("instruction",c)}}function u(n,r){var s;if("object"==typeof n&&(r=n.attributes,n=n.name),r=o(r),"elementNameFn"in t&&(n=t.elementNameFn(n,e)),t.compact){var a;if(s={},!t.ignoreAttributes&&r&&Object.keys(r).length)for(a in s[t.attributesKey]={},r)r.hasOwnProperty(a)&&(s[t.attributesKey][a]=r[a]);!(n in e)&&(i(t.alwaysArray)?-1!==t.alwaysArray.indexOf(n):t.alwaysArray)&&(e[n]=[]),e[n]&&!i(e[n])&&(e[n]=[e[n]]),i(e[n])?e[n].push(s):e[n]=s}else e[t.elementsKey]||(e[t.elementsKey]=[]),(s={})[t.typeKey]="element",s[t.nameKey]=n,!t.ignoreAttributes&&r&&Object.keys(r).length&&(s[t.attributesKey]=r),t.alwaysChildren&&(s[t.elementsKey]=[]),e[t.elementsKey].push(s);s[t.parentKey]=e,e=s}function l(e){t.ignoreText||(e.trim()||t.captureSpacesBetweenElements)&&(t.trim&&(e=e.trim()),t.nativeType&&(e=s(e)),t.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),a("text",e))}function p(e){t.ignoreComment||(t.trim&&(e=e.trim()),a("comment",e))}function f(n){var r=e[t.parentKey];t.addParent||delete e[t.parentKey],e=r}function h(e){t.ignoreCdata||(t.trim&&(e=e.trim()),a("cdata",e))}function g(e){t.ignoreDoctype||(e=e.replace(/^ /,""),t.trim&&(e=e.trim()),a("doctype",e))}function m(t){t.note=t}return ut=function(i,s){var a=n.parser(!0,{}),o={};if(e=o,t=function(e){return t=r.copyOptions(e),r.ensureFlagExists("ignoreDeclaration",t),r.ensureFlagExists("ignoreInstruction",t),r.ensureFlagExists("ignoreAttributes",t),r.ensureFlagExists("ignoreText",t),r.ensureFlagExists("ignoreComment",t),r.ensureFlagExists("ignoreCdata",t),r.ensureFlagExists("ignoreDoctype",t),r.ensureFlagExists("compact",t),r.ensureFlagExists("alwaysChildren",t),r.ensureFlagExists("addParent",t),r.ensureFlagExists("trim",t),r.ensureFlagExists("nativeType",t),r.ensureFlagExists("nativeTypeAttributes",t),r.ensureFlagExists("sanitize",t),r.ensureFlagExists("instructionHasAttributes",t),r.ensureFlagExists("captureSpacesBetweenElements",t),r.ensureAlwaysArrayExists(t),r.ensureKeyExists("declaration",t),r.ensureKeyExists("instruction",t),r.ensureKeyExists("attributes",t),r.ensureKeyExists("text",t),r.ensureKeyExists("comment",t),r.ensureKeyExists("cdata",t),r.ensureKeyExists("doctype",t),r.ensureKeyExists("type",t),r.ensureKeyExists("name",t),r.ensureKeyExists("elements",t),r.ensureKeyExists("parent",t),r.checkFnExists("doctype",t),r.checkFnExists("instruction",t),r.checkFnExists("cdata",t),r.checkFnExists("comment",t),r.checkFnExists("text",t),r.checkFnExists("instructionName",t),r.checkFnExists("elementName",t),r.checkFnExists("attributeName",t),r.checkFnExists("attributeValue",t),r.checkFnExists("attributes",t),t}(s),a.opt={strictEntities:!0},a.onopentag=u,a.ontext=l,a.oncomment=p,a.onclosetag=f,a.onerror=m,a.oncdata=h,a.ondoctype=g,a.onprocessinginstruction=c,a.write(i).close(),o[t.elementsKey]){var d=o[t.elementsKey];delete o[t.elementsKey],o[t.elementsKey]=d,delete o.text}return o}}function At(){if(ft)return pt;ft=1;var t=xt(),e=wt();return pt=function(n,r){var i,s,a;return i=function(e){var n=t.copyOptions(e);return t.ensureSpacesExists(n),n}(r),s=e(n,i),a="compact"in i&&i.compact?"_parent":"parent",("addParent"in i&&i.addParent?JSON.stringify(s,function(t,e){return t===a?"_":e},i.spaces):JSON.stringify(s,null,i.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}function Nt(){if(gt)return ht;gt=1;var t,e,n=xt(),r=_t().isArray;function i(t,e,n){return(!n&&t.spaces?"\n":"")+Array(e+1).join(t.spaces)}function s(n,r,s){if(r.ignoreAttributes)return"";"attributesFn"in r&&(n=r.attributesFn(n,e,t));var a,o,c,u,l=[];for(a in n)n.hasOwnProperty(a)&&null!==n[a]&&void 0!==n[a]&&(u=r.noQuotesForNativeAttributes&&"string"!=typeof n[a]?"":'"',o=(o=""+n[a]).replace(/"/g,"""),c="attributeNameFn"in r?r.attributeNameFn(a,o,e,t):a,l.push(r.spaces&&r.indentAttributes?i(r,s+1,!1):" "),l.push(c+"="+u+("attributeValueFn"in r?r.attributeValueFn(o,a,e,t):o)+u));return n&&Object.keys(n).length&&r.spaces&&r.indentAttributes&&l.push(i(r,s,!1)),l.join("")}function a(n,r,i){return t=n,e="xml",r.ignoreDeclaration?"":"<?xml"+s(n[r.attributesKey],r,i)+"?>"}function o(n,r,i){if(r.ignoreInstruction)return"";var a;for(a in n)if(n.hasOwnProperty(a))break;var o="instructionNameFn"in r?r.instructionNameFn(a,n[a],e,t):a;if("object"==typeof n[a])return t=n,e=o,"<?"+o+s(n[a][r.attributesKey],r,i)+"?>";var c=n[a]?n[a]:"";return"instructionFn"in r&&(c=r.instructionFn(c,a,e,t)),"<?"+o+(c?" "+c:"")+"?>"}function c(n,r){return r.ignoreComment?"":"\x3c!--"+("commentFn"in r?r.commentFn(n,e,t):n)+"--\x3e"}function u(n,r){return r.ignoreCdata?"":"<![CDATA["+("cdataFn"in r?r.cdataFn(n,e,t):n.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function l(n,r){return r.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in r?r.doctypeFn(n,e,t):n)+">"}function p(n,r){return r.ignoreText?"":(n=(n=(n=""+n).replace(/&/g,"&")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in r?r.textFn(n,e,t):n)}function f(n,r,a,h){return n.reduce(function(n,g){var m=i(r,a,h&&!n);switch(g.type){case"element":return n+m+function(n,r,i){t=n,e=n.name;var a=[],o="elementNameFn"in r?r.elementNameFn(n.name,n):n.name;a.push("<"+o),n[r.attributesKey]&&a.push(s(n[r.attributesKey],r,i));var c=n[r.elementsKey]&&n[r.elementsKey].length||n[r.attributesKey]&&"preserve"===n[r.attributesKey]["xml:space"];return c||(c="fullTagEmptyElementFn"in r?r.fullTagEmptyElementFn(n.name,n):r.fullTagEmptyElement),c?(a.push(">"),n[r.elementsKey]&&n[r.elementsKey].length&&(a.push(f(n[r.elementsKey],r,i+1)),t=n,e=n.name),a.push(r.spaces&&function(t,e){var n;if(t.elements&&t.elements.length)for(n=0;n<t.elements.length;++n)switch(t.elements[n][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;default:return!0}return!1}(n,r)?"\n"+Array(i+1).join(r.spaces):""),a.push("</"+o+">")):a.push("/>"),a.join("")}(g,r,a);case"comment":return n+m+c(g[r.commentKey],r);case"doctype":return n+m+l(g[r.doctypeKey],r);case"cdata":return n+(r.indentCdata?m:"")+u(g[r.cdataKey],r);case"text":return n+(r.indentText?m:"")+p(g[r.textKey],r);case"instruction":var d={};return d[g[r.nameKey]]=g[r.attributesKey]?g:g[r.instructionKey],n+(r.indentInstruction?m:"")+o(d,r,a)}},"")}function h(t,e,n){var r;for(r in t)if(t.hasOwnProperty(r))switch(r){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||n)return!0;break;case e.cdataKey:if(e.indentCdata||n)return!0;break;case e.instructionKey:if(e.indentInstruction||n)return!0;break;case e.doctypeKey:case e.commentKey:default:return!0}return!1}function g(n,r,a,o,c){t=n,e=r;var u="elementNameFn"in a?a.elementNameFn(r,n):r;if(null==n||""===n)return"fullTagEmptyElementFn"in a&&a.fullTagEmptyElementFn(r,n)||a.fullTagEmptyElement?"<"+u+"></"+u+">":"<"+u+"/>";var l=[];if(r){if(l.push("<"+u),"object"!=typeof n)return l.push(">"+p(n,a)+"</"+u+">"),l.join("");n[a.attributesKey]&&l.push(s(n[a.attributesKey],a,o));var f=h(n,a,!0)||n[a.attributesKey]&&"preserve"===n[a.attributesKey]["xml:space"];if(f||(f="fullTagEmptyElementFn"in a?a.fullTagEmptyElementFn(r,n):a.fullTagEmptyElement),!f)return l.push("/>"),l.join("");l.push(">")}return l.push(m(n,a,o+1,!1)),t=n,e=r,r&&l.push((c?i(a,o,!1):"")+"</"+u+">"),l.join("")}function m(t,e,n,s){var f,m,d,y=[];for(m in t)if(t.hasOwnProperty(m))for(d=r(t[m])?t[m]:[t[m]],f=0;f<d.length;++f){switch(m){case e.declarationKey:y.push(a(d[f],e,n));break;case e.instructionKey:y.push((e.indentInstruction?i(e,n,s):"")+o(d[f],e,n));break;case e.attributesKey:case e.parentKey:break;case e.textKey:y.push((e.indentText?i(e,n,s):"")+p(d[f],e));break;case e.cdataKey:y.push((e.indentCdata?i(e,n,s):"")+u(d[f],e));break;case e.doctypeKey:y.push(i(e,n,s)+l(d[f],e));break;case e.commentKey:y.push(i(e,n,s)+c(d[f],e));break;default:y.push(i(e,n,s)+g(d[f],m,e,n,h(d[f],e)))}s=s&&!y.length}return y.join("")}return ht=function(r,i){i=function(t){var e=n.copyOptions(t);return n.ensureFlagExists("ignoreDeclaration",e),n.ensureFlagExists("ignoreInstruction",e),n.ensureFlagExists("ignoreAttributes",e),n.ensureFlagExists("ignoreText",e),n.ensureFlagExists("ignoreComment",e),n.ensureFlagExists("ignoreCdata",e),n.ensureFlagExists("ignoreDoctype",e),n.ensureFlagExists("compact",e),n.ensureFlagExists("indentText",e),n.ensureFlagExists("indentCdata",e),n.ensureFlagExists("indentAttributes",e),n.ensureFlagExists("indentInstruction",e),n.ensureFlagExists("fullTagEmptyElement",e),n.ensureFlagExists("noQuotesForNativeAttributes",e),n.ensureSpacesExists(e),"number"==typeof e.spaces&&(e.spaces=Array(e.spaces+1).join(" ")),n.ensureKeyExists("declaration",e),n.ensureKeyExists("instruction",e),n.ensureKeyExists("attributes",e),n.ensureKeyExists("text",e),n.ensureKeyExists("comment",e),n.ensureKeyExists("cdata",e),n.ensureKeyExists("doctype",e),n.ensureKeyExists("type",e),n.ensureKeyExists("name",e),n.ensureKeyExists("elements",e),n.checkFnExists("doctype",e),n.checkFnExists("instruction",e),n.checkFnExists("cdata",e),n.checkFnExists("comment",e),n.checkFnExists("text",e),n.checkFnExists("instructionName",e),n.checkFnExists("elementName",e),n.checkFnExists("attributeName",e),n.checkFnExists("attributeValue",e),n.checkFnExists("attributes",e),n.checkFnExists("fullTagEmptyElement",e),e}(i);var s=[];return t=r,e="_root_",i.compact?s.push(m(r,i,0,!0)):(r[i.declarationKey]&&s.push(a(r[i.declarationKey],i,0)),r[i.elementsKey]&&r[i.elementsKey].length&&s.push(f(r[i.elementsKey],i,0,!s.length))),s.join("")}}function vt(){if(dt)return mt;dt=1;var t=Nt();return mt=function(e,n){e instanceof Buffer&&(e=e.toString());var r=null;if("string"==typeof e)try{r=JSON.parse(e)}catch(t){throw new Error("The JSON structure is invalid")}else r=e;return t(r,n)}}var Ot=function(){if(bt)return yt;bt=1;var t=wt(),e=At(),n=Nt(),r=vt();return yt={xml2js:t,xml2json:e,js2xml:n,json2xml:r}}();function St(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),Ot.xml2js(t,{compact:!1})}function Ft(t,e){return Ot.js2xml(t,e)}function It(t,e){return function(t,e){return t&&t.find(e)}(t,t=>t.name===e)}const Ct=t.env.debug("vbapm:target.transforms.core-xml"),Pt=/docProps[\/,\\]core\.xml/i;function Dt(t,...e){t=t.slice();for(const n of e){const e=t.indexOf(n);t.splice(e,1)}return t}const Mt=t.env.debug("vbapm:target.transforms.workbook-xml"),Rt=/xl[\/,\\]workbook\.xml/i;const jt=/vba.*\.bin/i;const Lt=function(...t){return(e,n,r)=>t.reduce((t,i)=>t?i(e,n,r):t,!0)}(function(t){return!jt.test(t.path)}),Kt=function(...t){return(e,n,r)=>t.reduce((t,e)=>e(t,n,r),e)}(function(t){if(!Pt.test(t.path))return t;const e=St(t.data.toString("utf8")),n=It(e.elements,"cp:coreProperties");if(n){const t=It(n.elements,"cp:lastModifiedBy"),e=It(n.elements,"dc:creator");t&&e&&(t.elements[0].text=e.elements[0].text);const r=It(n.elements,"dcterms:modified"),i=It(n.elements,"dcterms:created");r&&i&&(r.elements[0].text=i.elements[0].text)}else Ct("Warning: cp:coreProperties not found, unable to transform core.xml");return t.data=Buffer.from(Ft(e)),t},function(t){if(!Rt.test(t.path))return t;const e=St(t.data.toString("utf8")),n=It(e.elements,"workbook");if(n){const t=It(n.elements,"mc:AlternateContent"),e=It(t&&t.elements,"mc:Choice"),r=It(e&&e.elements,"x15ac:absPath");r&&(r.attributes.url="");const i=It(n.elements,"bookViews");i&&(n.elements=Dt(n.elements,i));const s=It(n.elements,"fileVersion");s&&(n.elements=Dt(n.elements,s));const a=It(n.elements,"calcPr");a&&(a.attributes.calcId="0")}else Mt("Warning: workbook not found, unable to transform workbook.xml");return t.data=Buffer.from(Ft(e)),t});exports.addins=u,exports.createDocument=async function(n,r,i={}){const{application:s,addin:a,file:o}=p(n,r,i),c=!t.env.isWindows&&!i.staging;let u=c?t.join(n.paths.staging,r.filename):o;return await t.mkdirsExports.ensureDir(e.dirname(u)),await t.run(s,i.addin||a,"Build.CreateDocument",[JSON.stringify({path:u})]),c&&(await t.mkdirsExports.ensureDir(e.dirname(o)),await t.copyExports.copy(u,o)),o},exports.exportTo=async function(n,r,i,s={}){let{application:a,addin:o,file:c}=p(n,r);if(!t.env.isWindows){const n=t.join(i,"staged",r.filename);await t.pathExistsExports.pathExists(n)||(await t.mkdirsExports.ensureDir(e.dirname(n)),await t.copyExports.copy(c,n)),c=n}await t.run(a,s.addin||o,"Build.ExportTo",[JSON.stringify({file:c,staging:i})])},exports.extensionToApplication=f,exports.filterTarget=Lt,exports.importGraph=async function(e,n,r,i,s={}){const{application:a,addin:o}=p(e,n),{name:c,components:u,references:l}=r;await t.run(a,s.addin||o,"Build.ImportGraph",[JSON.stringify({file:i,name:c,src:u,references:l})])},exports.mapTarget=Kt,exports.requireCommonjs=B,exports.toSrc=rt,exports.walk=G;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./installer-C0iBwEpK.js"),r=require("node:process"),t=require("node:path"),o=require("node:url"),n=require("node:child_process"),i=require("node:fs/promises"),a=require("node:util"),s=require("node:os"),c=require("node:fs"),l=require("node:buffer"),u=require("./_commonjsHelpers-Bjf42z7h.js"),m=require("./build-project-CIZanDh1.js");require("child_process"),require("util"),require("assert"),require("path"),require("fs"),require("crypto"),require("events"),require("os"),require("constants"),require("stream"),require("http"),require("url"),require("punycode"),require("https"),require("zlib"),require("./project-DFh-2QTw.js"),require("./index-CB6KQLC7.js"),require("querystring"),require("./build-target-B03OPzeI.js"),require("./transform-target-DJmqMjY0.js"),require("string_decoder"),require("./load-from-project-wNJg8fme.js"),require("./get-target-Ba_ZoGUl.js");var d="undefined"!=typeof document?document.currentScript:null;let p,f;function g(){return void 0===p&&(p=function(){try{return c.statSync("/.dockerenv"),!0}catch{return!1}}()||function(){try{return c.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}()),p}function w(){return void 0===f&&(f=(()=>{try{return c.statSync("/run/.containerenv"),!0}catch{return!1}})()||g()),f}const h=()=>{if("linux"!==r.platform)return!1;if(s.release().toLowerCase().includes("microsoft"))return!w();try{if(c.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft"))return!w()}catch{}return!(!c.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")&&!c.existsSync("/run/WSL"))&&!w()};var v=r.env.__IS_WSL_TEST__?h:h();const y=a.promisify(n.execFile),x=()=>`${r.env.SYSTEMROOT||r.env.windir||String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,b=async(e,r={})=>{const{powerShellPath:t,...o}=r,n=b.encodeCommand(e);return y(t??x(),[...b.argumentsPrefix,n],{encoding:"utf8",...o})};b.argumentsPrefix=["-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"],b.encodeCommand=e=>l.Buffer.from(e,"utf16le").toString("base64"),b.escapeArgument=e=>`'${String(e).replaceAll("'","''")}'`;const S=a.promisify(n.execFile),P=(()=>{const e="/mnt/";let r;return async function(){if(r)return r;const t="/etc/wsl.conf";let o=!1;try{await i.access(t,i.constants.F_OK),o=!0}catch{}if(!o)return e;const n=function(e){for(const r of e.split("\n")){if(/^\s*#/.test(r))continue;const e=/^\s*root\s*=\s*(?<mountPoint>"[^"]*"|'[^']*'|[^#]*)/.exec(r);if(e)return e.groups.mountPoint.trim().replaceAll(/^["']|["']$/g,"")}}(await i.readFile(t,{encoding:"utf8"}));return void 0===n?e:(r=n,r=r.endsWith("/")?r:`${r}/`,r)}})(),E=v?async()=>`${await P()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:x;let q;function C(e,r,t){const o=t=>Object.defineProperty(e,r,{value:t,enumerable:!0,writable:!0});return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){const e=t();return o(e),e},set(e){o(e)}}),e}const B=a.promisify(n.execFile);const A=a.promisify(n.execFile);async function F(e){return async function(e,{humanReadableOutput:t=!0,signal:o}={}){if("darwin"!==r.platform)throw new Error("macOS only");const n=t?[]:["-ss"],i={};o&&(i.signal=o);const{stdout:a}=await A("osascript",["-e",e,n],i);return a.trim()}(`tell application "Finder" to set app_path to application file id "${e}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}const T=a.promisify(n.execFile),L={MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},MSEdgeBHTML:{name:"Edge Beta",id:"com.microsoft.edge.beta"},MSEdgeDHTML:{name:"Edge Dev",id:"com.microsoft.edge.dev"},AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},ChromeBHTML:{name:"Chrome Beta",id:"com.google.chrome.beta"},ChromeDHTML:{name:"Chrome Dev",id:"com.google.chrome.dev"},ChromiumHTM:{name:"Chromium",id:"org.chromium.Chromium"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveDHTML:{name:"Brave Dev",id:"com.brave.Browser.dev"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},OperaStable:{name:"Opera",id:"com.operasoftware.Opera"},VivaldiHTM:{name:"Vivaldi",id:"com.vivaldi.Vivaldi"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"}},_=new Map(Object.entries(L));class O extends Error{}const j=a.promisify(n.execFile);async function M(){if("darwin"===r.platform){const e=await async function(){if("darwin"!==r.platform)throw new Error("macOS only");const{stdout:e}=await B("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),t=/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(e),o=t?.groups.id??"com.apple.Safari";return"com.apple.safari"===o?"com.apple.Safari":o}();return{name:await F(e),id:e}}if("linux"===r.platform){const{stdout:e}=await j("xdg-mime",["query","default","x-scheme-handler/http"]),r=e.trim();return{name:r.replace(/.desktop$/,"").replace("-"," ").toLowerCase().replaceAll(/(?:^|\s|-)\S/g,e=>e.toUpperCase()),id:r}}if("win32"===r.platform)return async function(e=T){const{stdout:r}=await e("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),t=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(r);if(!t)throw new O(`Cannot find Windows browser in stdout: ${JSON.stringify(r)}`);const{id:o}=t.groups,n=o.lastIndexOf("."),i=o.lastIndexOf("-"),a=-1===n?void 0:o.slice(0,n),s=-1===i?void 0:o.slice(0,i);return L[o]??L[a]??L[s]??{name:o,id:o}}();throw new Error("Only macOS, Linux, and Windows are supported")}const H=Boolean(r.env.SSH_CONNECTION||r.env.SSH_CLIENT||r.env.SSH_TTY),I=Symbol("fallbackAttempt"),U=("undefined"==typeof document?require("url").pathToFileURL(__filename).href:d&&"SCRIPT"===d.tagName.toUpperCase()&&d.src||new URL("vbapm-build-BKtQ6OeP.js",document.baseURI).href)?t.dirname(o.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:d&&"SCRIPT"===d.tagName.toUpperCase()&&d.src||new URL("vbapm-build-BKtQ6OeP.js",document.baseURI).href)):"",R=t.join(U,"xdg-open"),{platform:$,arch:N}=r,W=async(e,r)=>{if(0===e.length)return;const t=[];for(const o of e)try{return await r(o)}catch(e){t.push(e)}throw new AggregateError(t,"Failed to open in all supported apps")},k=async e=>{const t=!0===(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e})[I];if(delete e[I],Array.isArray(e.app))return W(e.app,r=>k({...e,app:r,[I]:!0}));let o,{name:a,arguments:s=[]}=e.app??{};if(s=[...s],Array.isArray(a))return W(a,r=>k({...e,app:{name:r,arguments:s},[I]:!0}));if("browser"===a||"browserPrivate"===a){const r={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","com.brave.browser":"brave","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","com.microsoft.edgemac":"edge","microsoft-edge.desktop":"edge","com.apple.safari":"safari"},t={chrome:"--incognito",brave:"--incognito",firefox:"--private-window",edge:"--inPrivate"};let o;if(v){const e=await(async()=>{const e=await E(),r=String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`,{stdout:t}=await b(r,{powerShellPath:e});return t.trim()})();o=_.get(e)??{}}else o=await M();if(o.id in r){const n=r[o.id.toLowerCase()];if("browserPrivate"===a){if("safari"===n)throw new Error("Safari doesn't support opening in private mode via command line");s.push(t[n])}return k({...e,app:{name:Y[n],arguments:s}})}throw new Error(`${o.name} is not supported as a default browser`)}const c=[],l={};let u=!1;if(!v||w()||H||a||(u=await(async()=>(q??=(async()=>{try{const e=await E();return await i.access(e,i.constants.X_OK),!0}catch{return!1}})(),q))()),"darwin"===$)o="open",e.wait&&c.push("--wait-apps"),e.background&&c.push("--background"),e.newInstance&&c.push("--new"),a&&c.push("-a",a);else if("win32"===$||u){o=await E(),c.push(...b.argumentsPrefix),v||(l.windowsVerbatimArguments=!0),v&&e.target&&(e.target=await(async e=>{if(/^[a-z]+:\/\//i.test(e))return e;try{const{stdout:r}=await S("wslpath",["-aw",e],{encoding:"utf8"});return r.trim()}catch{return e}})(e.target));const r=["$ProgressPreference = 'SilentlyContinue';","Start"];e.wait&&r.push("-Wait"),a?(r.push(b.escapeArgument(a)),e.target&&s.push(e.target)):e.target&&r.push(b.escapeArgument(e.target)),s.length>0&&(s=s.map(e=>b.escapeArgument(e)),r.push("-ArgumentList",s.join(","))),e.target=b.encodeCommand(r.join(" ")),e.wait||(l.stdio="ignore")}else{if(a)o=a;else{const e=!U||"/"===U;let t=!1;try{await i.access(R,i.constants.X_OK),t=!0}catch{}o=r.versions.electron??("android"===$||e||!t)?"xdg-open":R}s.length>0&&c.push(...s),e.wait||(l.stdio="ignore",l.detached=!0)}"darwin"===$&&s.length>0&&c.push("--args",...s),e.target&&c.push(e.target);const m=n.spawn(o,c,l);return e.wait?new Promise((r,t)=>{m.once("error",t),m.once("close",o=>{e.allowNonzeroExitCode||0===o?r(m):t(new Error(`Exited with code ${o}`))})}):t?new Promise((e,r)=>{m.once("error",r),m.once("spawn",()=>{m.once("close",t=>{m.off("error",r),0===t?(m.unref(),e(m)):r(new Error(`Exited with code ${t}`))})})}):(m.unref(),new Promise((e,r)=>{m.once("error",r),m.once("spawn",()=>{m.off("error",r),e(m)})}))};function z(e){if("string"==typeof e||Array.isArray(e))return e;const{[N]:r}=e;if(!r)throw new Error(`${N} is not supported`);return r}function D({[$]:e},{wsl:r}={}){if(r&&v)return z(r);if(!e)throw new Error(`${$} is not supported`);return z(e)}const Y={browser:"browser",browserPrivate:"browserPrivate"};var G,K;C(Y,"chrome",()=>D({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium","chromium-browser"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}})),C(Y,"brave",()=>D({darwin:"brave browser",win32:"brave",linux:["brave-browser","brave"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",x64:["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe","/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]}})),C(Y,"firefox",()=>D({darwin:"firefox",win32:String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"})),C(Y,"edge",()=>D({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"})),C(Y,"safari",()=>D({darwin:"Safari"}));var V=function(){if(K)return G;K=1;var e=["h","min","s","ms","μs","ns"],r=["hour","minute","second","millisecond","microsecond","nanosecond"],t=[3600,60,1,1e6,1e3,1];return G=function(o,n){var i,a,s,c,l,u,m,d,p;if(i=!1,a=!1,n&&(i=n.verbose||!1,a=n.precise||!1),!Array.isArray(o)||2!==o.length)return"";if("number"!=typeof o[0]||"number"!=typeof o[1])return"";for(o[1]<0&&(p=o[0]+o[1]/1e9,o[0]=parseInt(p),o[1]=1e9*parseFloat((p%1).toPrecision(9))),d="",s=0;s<6&&(c=o[s<3?0:1],3!==s&&0!==s&&(c%=t[s-1]),2===s&&(c+=o[1]/1e9),!((l=c/t[s])>=1)||(i&&(l=Math.floor(l)),a?m=l.toString():(u=l>=10?0:2,m=l.toFixed(u)),m.indexOf(".")>-1&&"0"===m[m.length-1]&&(m=m.replace(/\.?0+$/,"")),d&&(d+=" "),d+=m,i?(d+=" "+r[s],"1"!==m&&(d+="s")):d+=" "+e[s],i));s++);return d}}(),X=u.getDefaultExportFromCjs(V);const J=e.dedent`
|
|
2
|
-
Build project from manifest (after backing up any existing built targets).
|
|
3
|
-
|
|
4
|
-
Usage: vbapm build [options]
|
|
5
|
-
|
|
6
|
-
Options:
|
|
7
|
-
--target=TYPE Build target of type TYPE
|
|
8
|
-
--release Exclude dev-* items from build
|
|
9
|
-
--open Open built target`;exports.default=async function(e){if(e.help)return void console.log(J);const r=process.hrtime(),t=e.target,o=e.addin,n=!!e.release,i=await m.buildProject({target:t,addin:o,release:n});if(console.log(`Done. ${X(process.hrtime(r))}`),e.open){console.log(`Opening built target: ${i}`);try{await((e,r)=>{if("string"!=typeof e)throw new TypeError("Expected a `target`");return k({...r,target:e})})(i,{wait:!0})}catch(e){throw console.error(`Failed to open built target: ${(null==e?void 0:e.message)||e}`),e}}};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./installer-C0iBwEpK.js"),r=require("./export-project-DdTYRyAw.js");require("child_process"),require("util"),require("assert"),require("path"),require("fs"),require("./_commonjsHelpers-Bjf42z7h.js"),require("crypto"),require("events"),require("os"),require("constants"),require("stream"),require("http"),require("url"),require("punycode"),require("https"),require("zlib"),require("./transform-target-DJmqMjY0.js"),require("node:fs"),require("node:path"),require("node:buffer"),require("string_decoder"),require("./project-DFh-2QTw.js"),require("./index-CB6KQLC7.js"),require("querystring"),require("./export-target-CEupP86g.js"),require("./load-from-project-wNJg8fme.js");const t=e.dedent`
|
|
2
|
-
Export built project, including src, references, and target.
|
|
3
|
-
|
|
4
|
-
Usage: vbapm export
|
|
5
|
-
|
|
6
|
-
Options:
|
|
7
|
-
--target=TYPE Export target of type TYPE`;exports.default=async function(e){if(e.help)return void console.log(t);const i=e.target,u=e.completed,o=e.addin;await r.exportProject({target:i,completed:u,addin:o})};
|