+var plugin;(()=>{var t={846:(t,r,e)=>{"use strict";const n=e(81),o=e(782),s=e(682);function c(t,r,e){const c=o(t,r,e),i=n.spawn(c.command,c.args,c.options);return s.hookChildProcess(i,c),i}t.exports=c,t.exports.spawn=c,t.exports.sync=function(t,r,e){const c=o(t,r,e),i=n.spawnSync(c.command,c.args,c.options);return i.error=i.error||s.verifyENOENTSync(i.status,c),i},t.exports._parse=o,t.exports._enoent=s},682:t=>{"use strict";const r="win32"===process.platform;function e(t,r){return Object.assign(new Error(`${r} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${t.command}`,path:t.command,spawnargs:t.args})}function n(t,n){return r&&1===t&&!n.file?e(n.original,"spawn"):null}t.exports={hookChildProcess:function(t,e){if(!r)return;const o=t.emit;t.emit=function(r,s){if("exit"===r){const r=n(s,e);if(r)return o.call(t,"error",r)}return o.apply(t,arguments)}},verifyENOENT:n,verifyENOENTSync:function(t,n){return r&&1===t&&!n.file?e(n.original,"spawnSync"):null},notFoundError:e}},782:(t,r,e)=>{"use strict";const n=e(17),o=e(326),s=e(541),c=e(449),i="win32"===process.platform,a=/\.(?:com|exe)$/i,p=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(t){if(!i)return t;const r=function(t){t.file=o(t);const r=t.file&&c(t.file);return r?(t.args.unshift(t.file),t.command=r,o(t)):t.file}(t),e=!a.test(r);if(t.options.forceShell||e){const e=p.test(r);t.command=n.normalize(t.command),t.command=s.command(t.command),t.args=t.args.map(t=>s.argument(t,e));const o=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${o}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}t.exports=function(t,r,e){r&&!Array.isArray(r)&&(e=r,r=null);const n={command:t,args:r=r?r.slice(0):[],options:e=Object.assign({},e),file:void 0,original:{command:t,args:r}};return e.shell?n:u(n)}},541:t=>{"use strict";const r=/([()\][%!^"`<>&|;, *?])/g;t.exports.command=function(t){return t=t.replace(r,"^$1")},t.exports.argument=function(t,e){return t=(t=`"${t=(t=(t=""+t).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(r,"^$1"),e&&(t=t.replace(r,"^$1")),t}},449:(t,r,e)=>{"use strict";const n=e(147),o=e(104);t.exports=function(t){const r=Buffer.alloc(150);let e;try{e=n.openSync(t,"r"),n.readSync(e,r,0,150,0),n.closeSync(e)}catch(t){}return o(r.toString())}},326:(t,r,e)=>{"use strict";const n=e(17),o=e(658),s=e(687);function c(t,r){const e=t.options.env||process.env,c=process.cwd(),i=null!=t.options.cwd,a=i&&void 0!==process.chdir&&!process.chdir.disabled;if(a)try{process.chdir(t.options.cwd)}catch(t){}let p;try{p=o.sync(t.command,{path:e[s({env:e})],pathExt:r?n.delimiter:void 0})}catch(t){}finally{a&&process.chdir(c)}return p&&(p=n.resolve(i?t.options.cwd:"",p)),p}t.exports=function(t){return c(t)||c(t,!0)}},768:(t,r,e)=>{var n;e(147);function o(t,r,e){if("function"==typeof r&&(e=r,r={}),!e){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(e,n){o(t,r||{},(function(t,r){t?n(t):e(r)}))}))}n(t,r||{},(function(t,n){t&&("EACCES"===t.code||r&&r.ignoreErrors)&&(t=null,n=!1),e(t,n)}))}n="win32"===process.platform||global.TESTING_WINDOWS?e(73):e(721),t.exports=o,o.sync=function(t,r){try{return n.sync(t,r||{})}catch(t){if(r&&r.ignoreErrors||"EACCES"===t.code)return!1;throw t}}},721:(t,r,e)=>{t.exports=o,o.sync=function(t,r){return s(n.statSync(t),r)};var n=e(147);function o(t,r,e){n.stat(t,(function(t,n){e(t,!t&&s(n,r))}))}function s(t,r){return t.isFile()&&function(t,r){var e=t.mode,n=t.uid,o=t.gid,s=void 0!==r.uid?r.uid:process.getuid&&process.getuid(),c=void 0!==r.gid?r.gid:process.getgid&&process.getgid(),i=parseInt("100",8),a=parseInt("010",8),p=parseInt("001",8),u=i|a;return e&p||e&a&&o===c||e&i&&n===s||e&u&&0===s}(t,r)}},73:(t,r,e)=>{t.exports=s,s.sync=function(t,r){return o(n.statSync(t),t,r)};var n=e(147);function o(t,r,e){return!(!t.isSymbolicLink()&&!t.isFile())&&function(t,r){var e=void 0!==r.pathExt?r.pathExt:process.env.PATHEXT;if(!e)return!0;if(-1!==(e=e.split(";")).indexOf(""))return!0;for(var n=0;n<e.length;n++){var o=e[n].toLowerCase();if(o&&t.substr(-o.length).toLowerCase()===o)return!0}return!1}(r,e)}function s(t,r,e){n.stat(t,(function(n,s){e(n,!n&&o(s,t,r))}))}},687:t=>{"use strict";const r=(t={})=>{const r=t.env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(r).reverse().find(t=>"PATH"===t.toUpperCase())||"Path"};t.exports=r,t.exports.default=r},104:(t,r,e)=>{"use strict";const n=e(367);t.exports=(t="")=>{const r=t.match(n);if(!r)return null;const[e,o]=r[0].replace(/#! ?/,"").split(" "),s=e.split("/").pop();return"env"===s?o:o?`${s} ${o}`:s}},367:t=>{"use strict";t.exports=/^#!(.*)/},658:(t,r,e)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,o=e(17),s=n?";":":",c=e(768),i=t=>Object.assign(new Error("not found: "+t),{code:"ENOENT"}),a=(t,r)=>{const e=r.colon||s,o=t.match(/\//)||n&&t.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(e)],c=n?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=n?c.split(e):[""];return n&&-1!==t.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:o,pathExt:i,pathExtExe:c}},p=(t,r,e)=>{"function"==typeof r&&(e=r,r={}),r||(r={});const{pathEnv:n,pathExt:s,pathExtExe:p}=a(t,r),u=[],l=e=>new Promise((s,c)=>{if(e===n.length)return r.all&&u.length?s(u):c(i(t));const a=n[e],p=/^".*"$/.test(a)?a.slice(1,-1):a,l=o.join(p,t),d=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;s(f(d,e,0))}),f=(t,e,n)=>new Promise((o,i)=>{if(n===s.length)return o(l(e+1));const a=s[n];c(t+a,{pathExt:p},(s,c)=>{if(!s&&c){if(!r.all)return o(t+a);u.push(t+a)}return o(f(t,e,n+1))})});return e?l(0).then(t=>e(null,t),e):l(0)};t.exports=p,p.sync=(t,r)=>{r=r||{};const{pathEnv:e,pathExt:n,pathExtExe:s}=a(t,r),p=[];for(let i=0;i<e.length;i++){const a=e[i],u=/^".*"$/.test(a)?a.slice(1,-1):a,l=o.join(u,t),f=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let t=0;t<n.length;t++){const e=f+n[t];try{if(c.sync(e,{pathExt:s})){if(!r.all)return e;p.push(e)}}catch(t){}}}if(r.all&&p.length)return p;if(r.nothrow)return null;throw i(t)}},81:t=>{"use strict";t.exports=require("child_process")},147:t=>{"use strict";t.exports=require("fs")},17:t=>{"use strict";t.exports=require("path")}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var s=r[n]={exports:{}};return t[n](s,s.exports,e),s.exports}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";e.r(n),e.d(n,{default:()=>r});var t=e(846);const r={hooks:{async afterAllInstalled(r){await new Promise(e=>{const n=(0,t.spawn)("yarn",["run","postinstallDev"],{cwd:r.cwd});n.stdout.pipe(process.stdout),n.stderr.pipe(process.stderr),n.addListener("exit",()=>e())})}}}})(),plugin=n})();
0 commit comments