varn=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varnine)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};functioni(t,e,n,i){returnnew(n||(n=Promise))((function(r,o){functionu(t){try{s(i.next(t))}catch(t){o(t)}}functiona(t){try{s(i.throw(t))}catch(t){o(t)}}functions(t){vare;t.done?r(t.value):(e=t.value,einstanceofn?e:newn((function(t){t(e)}))).then(u,a)}s((i=i.apply(t,e||[])).next())}))}functionr(t,e){varn,i,r,o,u={label:0,sent:function(){if(1&r[0])throwr[1];returnr[1]},trys:[],ops:[]};returno={next:a(0),throw:a(1),return:a(2)},"function"==typeofSymbol&&(o[Symbol.iterator]=function(){returnthis}),o;functiona(o){returnfunction(a){returnfunction(o){if(n)thrownewTypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)returnr;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case0:case1:r=o;break;case4:returnu.label++,{value:o[1],done:!1};case5:u.label++,i=o[1],o=[0];continue;case7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((r=(r=u.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){u.label=o[1];break}if(6===o[0]&&u.label<r[1]){u.label=r[1],r=o;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(o);break}r[2]&&u.ops.pop(),u.trys.pop();continue}o=e.call(t,u)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throwo[1];return{value:o[0]?o[1]:void0,done:!0}}([o,a])}}}functiono(t,e){void0===e&&(e=!1);varn=function(){vart=newInt8Array(1);window.crypto.getRandomValues(t);vare=newUint8Array(Math.max(16,Math.abs(t[0])));returnwindow.crypto.getRandomValues(e),e.join("")}();returnObject.defineProperty(window,n,{value:function(i){returne&&Reflect.deleteProperty(window,n),null==t?void0:t(i)},writable:!1,configurable:!0}),n}functionu(t,n){returnvoid0===n&&(n={}),i(this,void0,void0,(function(){returnr(this,(function(i){return[2,newPromise((function(i,r){varu=o((function(t){i(t),Reflect.deleteProperty(window,a)}),!0),a=o((function(t){r(t),Reflect.deleteProperty(window,u)}),!0);window.rpc.notify(t,e._assign({callback:u,error:a},n))}))]}))}))}e._assign=function(){returne._assign=Object.assign||function(t){for(vare,n=1,i=arguments.length;n<i;n++)for(varrine=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);returnt},e._assign.apply(this,arguments)};vara=Object.freeze({__proto__:null,transformCallback:o,invoke:u});e.__awaiter=i,e.__extends=function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Class extends value "+String(e)+" is not a constructor or null");functioni(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,newi)},e.__generator=r,e.invoke=u,e.tauri=a,e.transformCallback=o})),J={invokeTauriCommand:function(t){returnG.__awaiter(this,void0,void0,(function(){returnG.__generator(this,(function(e){return[2,G.invoke("tauri",t)]}))}))}},V=N((function(t,e){varn=J;functioni(t,e,i,r){returnG.__awaiter(this,void0,void0,(function(){returnG.__generator(this,(function(o){return"object"==typeofr&&Object.freeze(r),[2,n.invokeTauriCommand({__tauriModule:"Shell",message:{cmd:"execute",program:t,sidecar:e,onEventFn:G.transformCallback(i),args:"string"==typeofr?[r]:r}})]}))}))}varr=function(){functiont(){this.eventListeners={}}returnt.prototype.addEventListener=function(t,e){tinthis.eventListeners?this.eventListeners[t].push(e):this.eventListeners[t]=[e]},t.prototype._emit=function(t,e){if(tinthis.eventListeners)for(varn=0,i=this.eventListeners[t];n<i.length;n++)(0,i[n])(e)},t.prototype.on=function(t,e){returnthis.addEventListener(t,e),this},t}(),o=function(){functiont(t){this.pid=t}returnt.prototype.write=function(t){returnG.__awaiter(this,void0,void0,(function(){returnG.__generator(this,(function(e){return[2,n.invokeTauriCommand({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:t}})]}))}))},t.prototype.kill=function(){returnG.__await