@stacksjs/desktop 0.64.6 → 0.65.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/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
- var q9=Object.defineProperty;var O=(J,K)=>{for(var X in K)q9(J,X,{get:K[X],enumerable:!0,configurable:!0,set:(V)=>K[X]=()=>V})};var g={};O(g,{open:()=>b,EventEmitter:()=>U,Command:()=>f,Child:()=>E});var P={};O(P,{transformCallback:()=>q,invoke:()=>z,convertFileSrc:()=>S9});function M9(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function q(J,K=!1){const X=M9(),V=`_${X}`;return Object.defineProperty(window,V,{value:(Z)=>{if(K)Reflect.deleteProperty(window,V);return J===null||J===void 0?void 0:J(Z)},writable:!1,configurable:!0}),X}async function z(J,K={}){return new Promise((X,V)=>{const Z=q((G)=>{X(G),Reflect.deleteProperty(window,`_${Y}`)},!0),Y=q((G)=>{V(G),Reflect.deleteProperty(window,`_${Z}`)},!0);window.__TAURI_IPC__({cmd:J,callback:Z,error:Y,...K})})}function S9(J,K="asset"){return window.__TAURI__.convertFileSrc(J,K)}async function Q(J){return z("tauri",J)}async function b(J,K){return Q({__tauriModule:"Shell",message:{cmd:"open",path:J,with:K}})}class U{constructor(){this.eventListeners=Object.create(null)}addListener(J,K){return this.on(J,K)}removeListener(J,K){return this.off(J,K)}on(J,K){if(J in this.eventListeners)this.eventListeners[J].push(K);else this.eventListeners[J]=[K];return this}once(J,K){const X=(...V)=>{this.removeListener(J,X),K(...V)};return this.addListener(J,X)}off(J,K){if(J in this.eventListeners)this.eventListeners[J]=this.eventListeners[J].filter((X)=>X!==K);return this}removeAllListeners(J){if(J)delete this.eventListeners[J];else this.eventListeners=Object.create(null);return this}emit(J,...K){if(J in this.eventListeners){const X=this.eventListeners[J];for(let V of X)V(...K);return!0}return!1}listenerCount(J){if(J in this.eventListeners)return this.eventListeners[J].length;return 0}prependListener(J,K){if(J in this.eventListeners)this.eventListeners[J].unshift(K);else this.eventListeners[J]=[K];return this}prependOnceListener(J,K){const X=(...V)=>{this.removeListener(J,X),K(...V)};return this.prependListener(J,X)}}class E{constructor(J){this.pid=J}async write(J){return Q({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof J==="string"?J:Array.from(J)}})}async kill(){return Q({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}}class f extends U{constructor(J,K=[],X){super();this.stdout=new U,this.stderr=new U,this.program=J,this.args=typeof K==="string"?[K]:K,this.options=X!==null&&X!==void 0?X:{}}static sidecar(J,K=[],X){const V=new f(J,K,X);return V.options.sidecar=!0,V}async spawn(){const J=this.program,K=this.args,X=this.options;if(typeof K==="object")Object.freeze(K);return Q({__tauriModule:"Shell",message:{cmd:"execute",program:J,args:K,options:X,onEventFn:q((Z)=>{switch(Z.event){case"Error":this.emit("error",Z.payload);break;case"Terminated":this.emit("close",Z.payload);break;case"Stdout":this.stdout.emit("data",Z.payload);break;case"Stderr":this.stderr.emit("data",Z.payload);break}})}}).then((Z)=>new E(Z))}async execute(){const J=this.program,K=this.args,X=this.options;if(typeof K==="object")Object.freeze(K);return Q({__tauriModule:"Shell",message:{cmd:"executeAndReturn",program:J,args:K,options:X}})}}var w={};O(w,{show:()=>A9,hide:()=>j9,getVersion:()=>U9,getTauriVersion:()=>L9,getName:()=>F9});async function U9(){return Q({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function F9(){return Q({__tauriModule:"App",message:{cmd:"getAppName"}})}async function L9(){return Q({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function A9(){return Q({__tauriModule:"App",message:{cmd:"show"}})}async function j9(){return Q({__tauriModule:"App",message:{cmd:"hide"}})}var B={};O(B,{writeText:()=>N9,readText:()=>x9});async function N9(J){return Q({__tauriModule:"Clipboard",message:{cmd:"writeText",data:J}})}async function x9(){return Q({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var C={};O(C,{save:()=>R9,open:()=>W9,message:()=>_9,confirm:()=>P9,ask:()=>z9});async function W9(J={}){if(typeof J==="object")Object.freeze(J);return Q({__tauriModule:"Dialog",message:{cmd:"openDialog",options:J}})}async function R9(J={}){if(typeof J==="object")Object.freeze(J);return Q({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:J}})}async function _9(J,K){var X,V;const Z=typeof K==="string"?{title:K}:K;return Q({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:J.toString(),title:(X=Z===null||Z===void 0?void 0:Z.title)===null||X===void 0?void 0:X.toString(),type:Z===null||Z===void 0?void 0:Z.type,buttonLabel:(V=Z===null||Z===void 0?void 0:Z.okLabel)===null||V===void 0?void 0:V.toString()}})}async function z9(J,K){var X,V,Z,Y,G;const H=typeof K==="string"?{title:K}:K;return Q({__tauriModule:"Dialog",message:{cmd:"askDialog",message:J.toString(),title:(X=H===null||H===void 0?void 0:H.title)===null||X===void 0?void 0:X.toString(),type:H===null||H===void 0?void 0:H.type,buttonLabels:[(Z=(V=H===null||H===void 0?void 0:H.okLabel)===null||V===void 0?void 0:V.toString())!==null&&Z!==void 0?Z:"Yes",(G=(Y=H===null||H===void 0?void 0:H.cancelLabel)===null||Y===void 0?void 0:Y.toString())!==null&&G!==void 0?G:"No"]}})}async function P9(J,K){var X,V,Z,Y,G;const H=typeof K==="string"?{title:K}:K;return Q({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:J.toString(),title:(X=H===null||H===void 0?void 0:H.title)===null||X===void 0?void 0:X.toString(),type:H===null||H===void 0?void 0:H.type,buttonLabels:[(Z=(V=H===null||H===void 0?void 0:H.okLabel)===null||V===void 0?void 0:V.toString())!==null&&Z!==void 0?Z:"Ok",(G=(Y=H===null||H===void 0?void 0:H.cancelLabel)===null||Y===void 0?void 0:Y.toString())!==null&&G!==void 0?G:"Cancel"]}})}var T={};O(T,{once:()=>D,listen:()=>k,emit:()=>R,TauriEvent:()=>I});async function V9(J,K){return Q({__tauriModule:"Event",message:{cmd:"unlisten",event:J,eventId:K}})}async function x(J,K,X){await Q({__tauriModule:"Event",message:{cmd:"emit",event:J,windowLabel:K,payload:X}})}async function F(J,K,X){return Q({__tauriModule:"Event",message:{cmd:"listen",event:J,windowLabel:K,handler:q(X)}}).then((V)=>{return async()=>V9(J,V)})}async function W(J,K,X){return F(J,K,(V)=>{X(V),V9(J,V.id).catch(()=>{})})}async function k(J,K){return F(J,null,K)}async function D(J,K){return W(J,null,K)}async function R(J,K){return x(J,void 0,K)}var I;(function(J){J.WINDOW_RESIZED="tauri://resize",J.WINDOW_MOVED="tauri://move",J.WINDOW_CLOSE_REQUESTED="tauri://close-requested",J.WINDOW_CREATED="tauri://window-created",J.WINDOW_DESTROYED="tauri://destroyed",J.WINDOW_FOCUS="tauri://focus",J.WINDOW_BLUR="tauri://blur",J.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",J.WINDOW_THEME_CHANGED="tauri://theme-changed",J.WINDOW_FILE_DROP="tauri://file-drop",J.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",J.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",J.MENU="tauri://menu",J.CHECK_UPDATE="tauri://update",J.UPDATE_AVAILABLE="tauri://update-available",J.INSTALL_UPDATE="tauri://update-install",J.STATUS_UPDATE="tauri://update-status",J.DOWNLOAD_PROGRESS="tauri://update-download-progress"})(I||(I={}));var y={};O(y,{writeTextFile:()=>b9,writeFile:()=>b9,writeBinaryFile:()=>g9,renameFile:()=>T9,removeFile:()=>D9,removeDir:()=>C9,readTextFile:()=>E9,readDir:()=>w9,readBinaryFile:()=>f9,exists:()=>y9,createDir:()=>B9,copyFile:()=>k9,Dir:()=>$,BaseDirectory:()=>$});async function E9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"readTextFile",path:J,options:K}})}async function f9(J,K={}){const X=await Q({__tauriModule:"Fs",message:{cmd:"readFile",path:J,options:K}});return Uint8Array.from(X)}async function b9(J,K,X){if(typeof X==="object")Object.freeze(X);if(typeof J==="object")Object.freeze(J);const V={path:"",contents:""};let Z=X;if(typeof J==="string")V.path=J;else V.path=J.path,V.contents=J.contents;if(typeof K==="string")V.contents=K!==null&&K!==void 0?K:"";else Z=K;return Q({__tauriModule:"Fs",message:{cmd:"writeFile",path:V.path,contents:Array.from(new TextEncoder().encode(V.contents)),options:Z}})}async function g9(J,K,X){if(typeof X==="object")Object.freeze(X);if(typeof J==="object")Object.freeze(J);const V={path:"",contents:[]};let Z=X;if(typeof J==="string")V.path=J;else V.path=J.path,V.contents=J.contents;if(K&&"dir"in K)Z=K;else if(typeof J==="string")V.contents=K!==null&&K!==void 0?K:[];return Q({__tauriModule:"Fs",message:{cmd:"writeFile",path:V.path,contents:Array.from(V.contents instanceof ArrayBuffer?new Uint8Array(V.contents):V.contents),options:Z}})}async function w9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"readDir",path:J,options:K}})}async function B9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"createDir",path:J,options:K}})}async function C9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"removeDir",path:J,options:K}})}async function k9(J,K,X={}){return Q({__tauriModule:"Fs",message:{cmd:"copyFile",source:J,destination:K,options:X}})}async function D9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"removeFile",path:J,options:K}})}async function T9(J,K,X={}){return Q({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:J,newPath:K,options:X}})}async function y9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"exists",path:J,options:K}})}var $;(function(J){J[J.Audio=1]="Audio",J[J.Cache=2]="Cache",J[J.Config=3]="Config",J[J.Data=4]="Data",J[J.LocalData=5]="LocalData",J[J.Desktop=6]="Desktop",J[J.Document=7]="Document",J[J.Download=8]="Download",J[J.Executable=9]="Executable",J[J.Font=10]="Font",J[J.Home=11]="Home",J[J.Picture=12]="Picture",J[J.Public=13]="Public",J[J.Runtime=14]="Runtime",J[J.Template=15]="Template",J[J.Video=16]="Video",J[J.Resource=17]="Resource",J[J.App=18]="App",J[J.Log=19]="Log",J[J.Temp=20]="Temp",J[J.AppConfig=21]="AppConfig",J[J.AppData=22]="AppData",J[J.AppLocalData=23]="AppLocalData",J[J.AppCache=24]="AppCache",J[J.AppLog=25]="AppLog"})($||($={}));var h={};O(h,{unregisterAll:()=>c9,unregister:()=>d9,registerAll:()=>u9,register:()=>h9,isRegistered:()=>v9});async function h9(J,K){return Q({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:J,handler:q(K)}})}async function u9(J,K){return Q({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:J,handler:q(K)}})}async function v9(J){return Q({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:J}})}async function d9(J){return Q({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:J}})}async function c9(){return Q({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var c={};O(c,{getClient:()=>Y9,fetch:()=>l9,ResponseType:()=>L,Response:()=>v,Client:()=>d,Body:()=>S});async function m9(J){const K={},X=async(V,Z)=>{if(Z!==null){let Y;if(typeof Z==="string")Y=Z;else if(Z instanceof Uint8Array||Array.isArray(Z))Y=Array.from(Z);else if(Z instanceof File)Y={file:Array.from(new Uint8Array(await Z.arrayBuffer())),mime:Z.type,fileName:Z.name};else if(typeof Z.file==="string")Y={file:Z.file,mime:Z.mime,fileName:Z.fileName};else Y={file:Array.from(Z.file),mime:Z.mime,fileName:Z.fileName};K[String(V)]=Y}};if(J instanceof FormData)for(let[V,Z]of J)await X(V,Z);else for(let[V,Z]of Object.entries(J))await X(V,Z);return K}async function Y9(J){return Q({__tauriModule:"Http",message:{cmd:"createClient",options:J}}).then((K)=>new d(K))}async function l9(J,K){var X;if(u===null)u=await Y9();return u.request({url:J,method:(X=K===null||K===void 0?void 0:K.method)!==null&&X!==void 0?X:"GET",...K})}var L;(function(J){J[J.JSON=1]="JSON",J[J.Text=2]="Text",J[J.Binary=3]="Binary"})(L||(L={}));class S{constructor(J,K){this.type=J,this.payload=K}static form(J){return new S("Form",J)}static json(J){return new S("Json",J)}static text(J){return new S("Text",J)}static bytes(J){return new S("Bytes",Array.from(J instanceof ArrayBuffer?new Uint8Array(J):J))}}class v{constructor(J){this.url=J.url,this.status=J.status,this.ok=this.status>=200&&this.status<300,this.headers=J.headers,this.rawHeaders=J.rawHeaders,this.data=J.data}}class d{constructor(J){this.id=J}async drop(){return Q({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(J){var K;const X=!J.responseType||J.responseType===L.JSON;if(X)J.responseType=L.Text;if(((K=J.body)===null||K===void 0?void 0:K.type)==="Form")J.body.payload=await m9(J.body.payload);return Q({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:J}}).then((V)=>{const Z=new v(V);if(X){try{Z.data=JSON.parse(Z.data)}catch(Y){if(Z.ok&&Z.data==="")Z.data={};else if(Z.ok)throw Error(`Failed to parse response \`${Z.data}\` as JSON: ${Y};
3
- try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return Z}return Z})}async get(J,K){return this.request({method:"GET",url:J,...K})}async post(J,K,X){return this.request({method:"POST",url:J,body:K,...X})}async put(J,K,X){return this.request({method:"PUT",url:J,body:K,...X})}async patch(J,K){return this.request({method:"PATCH",url:J,...K})}async delete(J,K){return this.request({method:"DELETE",url:J,...K})}}var u=null;var m={};O(m,{mockWindows:()=>s9,mockIPC:()=>p9,mockConvertFileSrc:()=>r9,clearMocks:()=>n9});function p9(J){window.__TAURI_IPC__=async({cmd:K,callback:X,error:V,...Z})=>{try{window[`_${X}`](await J(K,Z))}catch(Y){window[`_${V}`](Y)}}}function s9(J,...K){window.__TAURI_METADATA__={__windows:[J,...K].map((X)=>({label:X})),__currentWindow:{label:J}}}function r9(J,K="https"){var X;window.__TAURI__=(X=window.__TAURI__)!==null&&X!==void 0?X:{},window.__TAURI__.convertFileSrc=function(V,Z="asset"){const Y=encodeURIComponent(V);return J==="windows"?`${K}://${Z}.localhost/${Y}`:`${Z}://localhost/${Y}`}}function n9(){var J;if((J=window.__TAURI__)===null||J===void 0?void 0:J.convertFileSrc)delete window.__TAURI__.convertFileSrc;if(window.__TAURI_IPC__)delete window.__TAURI_IPC__;if(window.__TAURI_METADATA__)delete window.__TAURI_METADATA__}var l={};O(l,{sendNotification:()=>i9,requestPermission:()=>a9,isPermissionGranted:()=>o9});async function o9(){if(window.Notification.permission!=="default")return Promise.resolve(window.Notification.permission==="granted");return Q({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function a9(){return window.Notification.requestPermission()}function i9(J){if(typeof J==="string")new window.Notification(J);else new window.Notification(J.title,J)}var p={};O(p,{version:()=>JJ,type:()=>KJ,tempdir:()=>XJ,platform:()=>e9,locale:()=>ZJ,arch:()=>QJ,EOL:()=>t9});function A(){return navigator.appVersion.includes("Win")}async function e9(){return Q({__tauriModule:"Os",message:{cmd:"platform"}})}async function JJ(){return Q({__tauriModule:"Os",message:{cmd:"version"}})}async function KJ(){return Q({__tauriModule:"Os",message:{cmd:"osType"}})}async function QJ(){return Q({__tauriModule:"Os",message:{cmd:"arch"}})}async function XJ(){return Q({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function ZJ(){return Q({__tauriModule:"Os",message:{cmd:"locale"}})}var t9=A()?"\r\n":"\n";var s={};O(s,{videoDir:()=>PJ,templateDir:()=>zJ,sep:()=>fJ,runtimeDir:()=>_J,resourceDir:()=>WJ,resolveResource:()=>RJ,resolve:()=>gJ,publicDir:()=>xJ,pictureDir:()=>NJ,normalize:()=>wJ,logDir:()=>EJ,localDataDir:()=>jJ,join:()=>BJ,isAbsolute:()=>TJ,homeDir:()=>AJ,fontDir:()=>LJ,extname:()=>kJ,executableDir:()=>FJ,downloadDir:()=>UJ,documentDir:()=>SJ,dirname:()=>CJ,desktopDir:()=>MJ,delimiter:()=>bJ,dataDir:()=>qJ,configDir:()=>OJ,cacheDir:()=>IJ,basename:()=>DJ,audioDir:()=>HJ,appLogDir:()=>$9,appLocalDataDir:()=>GJ,appDir:()=>VJ,appDataDir:()=>YJ,appConfigDir:()=>G9,appCacheDir:()=>$J,BaseDirectory:()=>$});async function VJ(){return G9()}async function G9(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.AppConfig}})}async function YJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.AppData}})}async function GJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.AppLocalData}})}async function $J(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.AppCache}})}async function HJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Audio}})}async function IJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Cache}})}async function OJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Config}})}async function qJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Data}})}async function MJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Desktop}})}async function SJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Document}})}async function UJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Download}})}async function FJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Executable}})}async function LJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Font}})}async function AJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Home}})}async function jJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.LocalData}})}async function NJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Picture}})}async function xJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Public}})}async function WJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Resource}})}async function RJ(J){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:J,directory:$.Resource}})}async function _J(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Runtime}})}async function zJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Template}})}async function PJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Video}})}async function EJ(){return $9()}async function $9(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.AppLog}})}async function gJ(...J){return Q({__tauriModule:"Path",message:{cmd:"resolve",paths:J}})}async function wJ(J){return Q({__tauriModule:"Path",message:{cmd:"normalize",path:J}})}async function BJ(...J){return Q({__tauriModule:"Path",message:{cmd:"join",paths:J}})}async function CJ(J){return Q({__tauriModule:"Path",message:{cmd:"dirname",path:J}})}async function kJ(J){return Q({__tauriModule:"Path",message:{cmd:"extname",path:J}})}async function DJ(J,K){return Q({__tauriModule:"Path",message:{cmd:"basename",path:J,ext:K}})}async function TJ(J){return Q({__tauriModule:"Path",message:{cmd:"isAbsolute",path:J}})}var fJ=A()?"\\":"/",bJ=A()?";":":";var r={};O(r,{relaunch:()=>hJ,exit:()=>yJ});async function yJ(J=0){return Q({__tauriModule:"Process",message:{cmd:"exit",exitCode:J}})}async function hJ(){return Q({__tauriModule:"Process",message:{cmd:"relaunch"}})}var o={};O(o,{onUpdaterEvent:()=>n,installUpdate:()=>uJ,checkUpdate:()=>vJ});async function n(J){return k(I.STATUS_UPDATE,(K)=>{J(K===null||K===void 0?void 0:K.payload)})}async function uJ(){let J;function K(){if(J)J();J=void 0}return new Promise((X,V)=>{function Z(Y){if(Y.error){K(),V(Y.error);return}if(Y.status==="DONE")K(),X()}n(Z).then((Y)=>{J=Y}).catch((Y)=>{throw K(),Y}),R(I.INSTALL_UPDATE).catch((Y)=>{throw K(),Y})})}async function vJ(){let J;function K(){if(J)J();J=void 0}return new Promise((X,V)=>{function Z(G){K(),X({manifest:G,shouldUpdate:!0})}function Y(G){if(G.error){K(),V(G.error);return}if(G.status==="UPTODATE")K(),X({shouldUpdate:!1})}D(I.UPDATE_AVAILABLE,(G)=>{Z(G===null||G===void 0?void 0:G.payload)}).catch((G)=>{throw K(),G}),n(Y).then((G)=>{J=G}).catch((G)=>{throw K(),G}),R(I.CHECK_UPDATE).catch((G)=>{throw K(),G})})}var Z9={};O(Z9,{primaryMonitor:()=>mJ,getCurrent:()=>dJ,getAll:()=>a,currentMonitor:()=>cJ,availableMonitors:()=>lJ,appWindow:()=>i,WindowManager:()=>K9,WebviewWindowHandle:()=>J9,WebviewWindow:()=>M,UserAttentionType:()=>_,PhysicalSize:()=>j,PhysicalPosition:()=>N,LogicalSize:()=>t,LogicalPosition:()=>e,CloseRequestedEvent:()=>Q9});function dJ(){return new M(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function a(){return window.__TAURI_METADATA__.__windows.map((J)=>new M(J.label,{skip:!0}))}function X9(J){return J===null?null:{name:J.name,scaleFactor:J.scaleFactor,position:I9(J.position),size:O9(J.size)}}function I9(J){return new N(J.x,J.y)}function O9(J){return new j(J.width,J.height)}async function cJ(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(X9)}async function mJ(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(X9)}async function lJ(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then((J)=>J.map(X9))}class t{constructor(J,K){this.type="Logical",this.width=J,this.height=K}}class j{constructor(J,K){this.type="Physical",this.width=J,this.height=K}toLogical(J){return new t(this.width/J,this.height/J)}}class e{constructor(J,K){this.type="Logical",this.x=J,this.y=K}}class N{constructor(J,K){this.type="Physical",this.x=J,this.y=K}toLogical(J){return new e(this.x/J,this.y/J)}}var _;(function(J){J[J.Critical=1]="Critical",J[J.Informational=2]="Informational"})(_||(_={}));var H9=["tauri://created","tauri://error"];class J9{constructor(J){this.label=J,this.listeners=Object.create(null)}async listen(J,K){if(this._handleTauriEvent(J,K))return Promise.resolve(()=>{const X=this.listeners[J];X.splice(X.indexOf(K),1)});return F(J,this.label,K)}async once(J,K){if(this._handleTauriEvent(J,K))return Promise.resolve(()=>{const X=this.listeners[J];X.splice(X.indexOf(K),1)});return W(J,this.label,K)}async emit(J,K){if(H9.includes(J)){for(let X of this.listeners[J]||[])X({event:J,id:-1,windowLabel:this.label,payload:K});return Promise.resolve()}return x(J,this.label,K)}_handleTauriEvent(J,K){if(H9.includes(J)){if(!(J in this.listeners))this.listeners[J]=[K];else this.listeners[J].push(K);return!0}return!1}}class K9 extends J9{async scaleFactor(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:J,y:K})=>new N(J,K))}async outerPosition(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:J,y:K})=>new N(J,K))}async innerSize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:J,height:K})=>new j(J,K))}async outerSize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:J,height:K})=>new j(J,K))}async isFullscreen(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(J){let K=null;if(J)if(J===_.Critical)K={type:"Critical"};else K={type:"Informational"};return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:K}}}})}async setResizable(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:J}}}})}async setMaximizable(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:J}}}})}async setMinimizable(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:J}}}})}async setClosable(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:J}}}})}async setTitle(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:J}}}})}async maximize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:J}}}})}async setAlwaysOnTop(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:J}}}})}async setContentProtected(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:J}}}})}async setSize(J){if(!J||J.type!=="Logical"&&J.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:J.type,data:{width:J.width,height:J.height}}}}}})}async setMinSize(J){if(J&&J.type!=="Logical"&&J.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:J?{type:J.type,data:{width:J.width,height:J.height}}:null}}}})}async setMaxSize(J){if(J&&J.type!=="Logical"&&J.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:J?{type:J.type,data:{width:J.width,height:J.height}}:null}}}})}async setPosition(J){if(!J||J.type!=="Logical"&&J.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:J.type,data:{x:J.x,y:J.y}}}}}})}async setFullscreen(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:J}}}})}async setFocus(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof J==="string"?J:Array.from(J)}}}}})}async setSkipTaskbar(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:J}}}})}async setCursorGrab(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:J}}}})}async setCursorVisible(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:J}}}})}async setCursorIcon(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:J}}}})}async setCursorPosition(J){if(!J||J.type!=="Logical"&&J.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:J.type,data:{x:J.x,y:J.y}}}}}})}async setIgnoreCursorEvents(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:J}}}})}async startDragging(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(J){return this.listen(I.WINDOW_RESIZED,(K)=>{K.payload=O9(K.payload),J(K)})}async onMoved(J){return this.listen(I.WINDOW_MOVED,(K)=>{K.payload=I9(K.payload),J(K)})}async onCloseRequested(J){return this.listen(I.WINDOW_CLOSE_REQUESTED,(K)=>{const X=new Q9(K);Promise.resolve(J(X)).then(()=>{if(!X.isPreventDefault())return this.close()})})}async onFocusChanged(J){const K=await this.listen(I.WINDOW_FOCUS,(V)=>{J({...V,payload:!0})}),X=await this.listen(I.WINDOW_BLUR,(V)=>{J({...V,payload:!1})});return()=>{K(),X()}}async onScaleChanged(J){return this.listen(I.WINDOW_SCALE_FACTOR_CHANGED,J)}async onMenuClicked(J){return this.listen(I.MENU,J)}async onFileDropEvent(J){const K=await this.listen(I.WINDOW_FILE_DROP,(Z)=>{J({...Z,payload:{type:"drop",paths:Z.payload}})}),X=await this.listen(I.WINDOW_FILE_DROP_HOVER,(Z)=>{J({...Z,payload:{type:"hover",paths:Z.payload}})}),V=await this.listen(I.WINDOW_FILE_DROP_CANCELLED,(Z)=>{J({...Z,payload:{type:"cancel"}})});return()=>{K(),X(),V()}}async onThemeChanged(J){return this.listen(I.WINDOW_THEME_CHANGED,J)}}class Q9{constructor(J){this._preventDefault=!1,this.event=J.event,this.windowLabel=J.windowLabel,this.id=J.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}class M extends K9{constructor(J,K={}){super(J);if(!(K===null||K===void 0?void 0:K.skip))Q({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:J,...K}}}}).then(async()=>this.emit("tauri://created")).catch(async(X)=>this.emit("tauri://error",X))}static getByLabel(J){if(a().some((K)=>K.label===J))return new M(J,{skip:!0});return null}static async getFocusedWindow(){for(let J of a())if(await J.isFocused())return J;return null}}var i;if("__TAURI_METADATA__"in window)i=new M(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0});else console.warn('Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label.\nNote that this is not an issue if running this frontend on a browser instead of a Tauri window.'),i=new M("main",{skip:!0});async function RK(J){await b(J)}var jK="testing this";var WK={app:w,event:T,clipboard:B,dialog:C,fs:y,globalShortcut:h,http:c,mocks:m,notification:l,os:p,path:s,process:r,shell:g,tauri:P,updater:o,window:Z9};export{jK as testingThis,RK as openShell,WK as desktop};
2
+ var q9=Object.defineProperty;var O=(J,K)=>{for(var X in K)q9(J,X,{get:K[X],enumerable:!0,configurable:!0,set:(V)=>K[X]=()=>V})};var E={};O(E,{show:()=>A9,hide:()=>j9,getVersion:()=>U9,getTauriVersion:()=>L9,getName:()=>F9});var P={};O(P,{transformCallback:()=>q,invoke:()=>z,convertFileSrc:()=>S9});function M9(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function q(J,K=!1){const X=M9(),V=`_${X}`;return Object.defineProperty(window,V,{value:(Z)=>{if(K)Reflect.deleteProperty(window,V);return J===null||J===void 0?void 0:J(Z)},writable:!1,configurable:!0}),X}async function z(J,K={}){return new Promise((X,V)=>{const Z=q((G)=>{X(G),Reflect.deleteProperty(window,`_${Y}`)},!0),Y=q((G)=>{V(G),Reflect.deleteProperty(window,`_${Z}`)},!0);window.__TAURI_IPC__({cmd:J,callback:Z,error:Y,...K})})}function S9(J,K="asset"){return window.__TAURI__.convertFileSrc(J,K)}async function Q(J){return z("tauri",J)}async function U9(){return Q({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function F9(){return Q({__tauriModule:"App",message:{cmd:"getAppName"}})}async function L9(){return Q({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function A9(){return Q({__tauriModule:"App",message:{cmd:"show"}})}async function j9(){return Q({__tauriModule:"App",message:{cmd:"hide"}})}var f={};O(f,{writeText:()=>N9,readText:()=>x9});async function N9(J){return Q({__tauriModule:"Clipboard",message:{cmd:"writeText",data:J}})}async function x9(){return Q({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var b={};O(b,{save:()=>R9,open:()=>W9,message:()=>_9,confirm:()=>P9,ask:()=>z9});async function W9(J={}){if(typeof J==="object")Object.freeze(J);return Q({__tauriModule:"Dialog",message:{cmd:"openDialog",options:J}})}async function R9(J={}){if(typeof J==="object")Object.freeze(J);return Q({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:J}})}async function _9(J,K){var X,V;const Z=typeof K==="string"?{title:K}:K;return Q({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:J.toString(),title:(X=Z===null||Z===void 0?void 0:Z.title)===null||X===void 0?void 0:X.toString(),type:Z===null||Z===void 0?void 0:Z.type,buttonLabel:(V=Z===null||Z===void 0?void 0:Z.okLabel)===null||V===void 0?void 0:V.toString()}})}async function z9(J,K){var X,V,Z,Y,G;const H=typeof K==="string"?{title:K}:K;return Q({__tauriModule:"Dialog",message:{cmd:"askDialog",message:J.toString(),title:(X=H===null||H===void 0?void 0:H.title)===null||X===void 0?void 0:X.toString(),type:H===null||H===void 0?void 0:H.type,buttonLabels:[(Z=(V=H===null||H===void 0?void 0:H.okLabel)===null||V===void 0?void 0:V.toString())!==null&&Z!==void 0?Z:"Yes",(G=(Y=H===null||H===void 0?void 0:H.cancelLabel)===null||Y===void 0?void 0:Y.toString())!==null&&G!==void 0?G:"No"]}})}async function P9(J,K){var X,V,Z,Y,G;const H=typeof K==="string"?{title:K}:K;return Q({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:J.toString(),title:(X=H===null||H===void 0?void 0:H.title)===null||X===void 0?void 0:X.toString(),type:H===null||H===void 0?void 0:H.type,buttonLabels:[(Z=(V=H===null||H===void 0?void 0:H.okLabel)===null||V===void 0?void 0:V.toString())!==null&&Z!==void 0?Z:"Ok",(G=(Y=H===null||H===void 0?void 0:H.cancelLabel)===null||Y===void 0?void 0:Y.toString())!==null&&G!==void 0?G:"Cancel"]}})}var B={};O(B,{once:()=>w,listen:()=>g,emit:()=>R,TauriEvent:()=>I});async function V9(J,K){return Q({__tauriModule:"Event",message:{cmd:"unlisten",event:J,eventId:K}})}async function x(J,K,X){await Q({__tauriModule:"Event",message:{cmd:"emit",event:J,windowLabel:K,payload:X}})}async function U(J,K,X){return Q({__tauriModule:"Event",message:{cmd:"listen",event:J,windowLabel:K,handler:q(X)}}).then((V)=>{return async()=>V9(J,V)})}async function W(J,K,X){return U(J,K,(V)=>{X(V),V9(J,V.id).catch(()=>{})})}async function g(J,K){return U(J,null,K)}async function w(J,K){return W(J,null,K)}async function R(J,K){return x(J,void 0,K)}var I;(function(J){J.WINDOW_RESIZED="tauri://resize",J.WINDOW_MOVED="tauri://move",J.WINDOW_CLOSE_REQUESTED="tauri://close-requested",J.WINDOW_CREATED="tauri://window-created",J.WINDOW_DESTROYED="tauri://destroyed",J.WINDOW_FOCUS="tauri://focus",J.WINDOW_BLUR="tauri://blur",J.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",J.WINDOW_THEME_CHANGED="tauri://theme-changed",J.WINDOW_FILE_DROP="tauri://file-drop",J.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",J.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",J.MENU="tauri://menu",J.CHECK_UPDATE="tauri://update",J.UPDATE_AVAILABLE="tauri://update-available",J.INSTALL_UPDATE="tauri://update-install",J.STATUS_UPDATE="tauri://update-status",J.DOWNLOAD_PROGRESS="tauri://update-download-progress"})(I||(I={}));var C={};O(C,{writeTextFile:()=>b9,writeFile:()=>b9,writeBinaryFile:()=>g9,renameFile:()=>T9,removeFile:()=>D9,removeDir:()=>C9,readTextFile:()=>E9,readDir:()=>w9,readBinaryFile:()=>f9,exists:()=>y9,createDir:()=>B9,copyFile:()=>k9,Dir:()=>$,BaseDirectory:()=>$});async function E9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"readTextFile",path:J,options:K}})}async function f9(J,K={}){const X=await Q({__tauriModule:"Fs",message:{cmd:"readFile",path:J,options:K}});return Uint8Array.from(X)}async function b9(J,K,X){if(typeof X==="object")Object.freeze(X);if(typeof J==="object")Object.freeze(J);const V={path:"",contents:""};let Z=X;if(typeof J==="string")V.path=J;else V.path=J.path,V.contents=J.contents;if(typeof K==="string")V.contents=K!==null&&K!==void 0?K:"";else Z=K;return Q({__tauriModule:"Fs",message:{cmd:"writeFile",path:V.path,contents:Array.from(new TextEncoder().encode(V.contents)),options:Z}})}async function g9(J,K,X){if(typeof X==="object")Object.freeze(X);if(typeof J==="object")Object.freeze(J);const V={path:"",contents:[]};let Z=X;if(typeof J==="string")V.path=J;else V.path=J.path,V.contents=J.contents;if(K&&"dir"in K)Z=K;else if(typeof J==="string")V.contents=K!==null&&K!==void 0?K:[];return Q({__tauriModule:"Fs",message:{cmd:"writeFile",path:V.path,contents:Array.from(V.contents instanceof ArrayBuffer?new Uint8Array(V.contents):V.contents),options:Z}})}async function w9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"readDir",path:J,options:K}})}async function B9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"createDir",path:J,options:K}})}async function C9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"removeDir",path:J,options:K}})}async function k9(J,K,X={}){return Q({__tauriModule:"Fs",message:{cmd:"copyFile",source:J,destination:K,options:X}})}async function D9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"removeFile",path:J,options:K}})}async function T9(J,K,X={}){return Q({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:J,newPath:K,options:X}})}async function y9(J,K={}){return Q({__tauriModule:"Fs",message:{cmd:"exists",path:J,options:K}})}var $;(function(J){J[J.Audio=1]="Audio",J[J.Cache=2]="Cache",J[J.Config=3]="Config",J[J.Data=4]="Data",J[J.LocalData=5]="LocalData",J[J.Desktop=6]="Desktop",J[J.Document=7]="Document",J[J.Download=8]="Download",J[J.Executable=9]="Executable",J[J.Font=10]="Font",J[J.Home=11]="Home",J[J.Picture=12]="Picture",J[J.Public=13]="Public",J[J.Runtime=14]="Runtime",J[J.Template=15]="Template",J[J.Video=16]="Video",J[J.Resource=17]="Resource",J[J.App=18]="App",J[J.Log=19]="Log",J[J.Temp=20]="Temp",J[J.AppConfig=21]="AppConfig",J[J.AppData=22]="AppData",J[J.AppLocalData=23]="AppLocalData",J[J.AppCache=24]="AppCache",J[J.AppLog=25]="AppLog"})($||($={}));var k={};O(k,{unregisterAll:()=>c9,unregister:()=>d9,registerAll:()=>u9,register:()=>h9,isRegistered:()=>v9});async function h9(J,K){return Q({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:J,handler:q(K)}})}async function u9(J,K){return Q({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:J,handler:q(K)}})}async function v9(J){return Q({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:J}})}async function d9(J){return Q({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:J}})}async function c9(){return Q({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var h={};O(h,{getClient:()=>Y9,fetch:()=>l9,ResponseType:()=>F,Response:()=>T,Client:()=>y,Body:()=>S});async function m9(J){const K={},X=async(V,Z)=>{if(Z!==null){let Y;if(typeof Z==="string")Y=Z;else if(Z instanceof Uint8Array||Array.isArray(Z))Y=Array.from(Z);else if(Z instanceof File)Y={file:Array.from(new Uint8Array(await Z.arrayBuffer())),mime:Z.type,fileName:Z.name};else if(typeof Z.file==="string")Y={file:Z.file,mime:Z.mime,fileName:Z.fileName};else Y={file:Array.from(Z.file),mime:Z.mime,fileName:Z.fileName};K[String(V)]=Y}};if(J instanceof FormData)for(let[V,Z]of J)await X(V,Z);else for(let[V,Z]of Object.entries(J))await X(V,Z);return K}async function Y9(J){return Q({__tauriModule:"Http",message:{cmd:"createClient",options:J}}).then((K)=>new y(K))}async function l9(J,K){var X;if(D===null)D=await Y9();return D.request({url:J,method:(X=K===null||K===void 0?void 0:K.method)!==null&&X!==void 0?X:"GET",...K})}var F;(function(J){J[J.JSON=1]="JSON",J[J.Text=2]="Text",J[J.Binary=3]="Binary"})(F||(F={}));class S{constructor(J,K){this.type=J,this.payload=K}static form(J){return new S("Form",J)}static json(J){return new S("Json",J)}static text(J){return new S("Text",J)}static bytes(J){return new S("Bytes",Array.from(J instanceof ArrayBuffer?new Uint8Array(J):J))}}class T{constructor(J){this.url=J.url,this.status=J.status,this.ok=this.status>=200&&this.status<300,this.headers=J.headers,this.rawHeaders=J.rawHeaders,this.data=J.data}}class y{constructor(J){this.id=J}async drop(){return Q({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(J){var K;const X=!J.responseType||J.responseType===F.JSON;if(X)J.responseType=F.Text;if(((K=J.body)===null||K===void 0?void 0:K.type)==="Form")J.body.payload=await m9(J.body.payload);return Q({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:J}}).then((V)=>{const Z=new T(V);if(X){try{Z.data=JSON.parse(Z.data)}catch(Y){if(Z.ok&&Z.data==="")Z.data={};else if(Z.ok)throw Error(`Failed to parse response \`${Z.data}\` as JSON: ${Y};
3
+ try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return Z}return Z})}async get(J,K){return this.request({method:"GET",url:J,...K})}async post(J,K,X){return this.request({method:"POST",url:J,body:K,...X})}async put(J,K,X){return this.request({method:"PUT",url:J,body:K,...X})}async patch(J,K){return this.request({method:"PATCH",url:J,...K})}async delete(J,K){return this.request({method:"DELETE",url:J,...K})}}var D=null;var u={};O(u,{mockWindows:()=>s9,mockIPC:()=>p9,mockConvertFileSrc:()=>r9,clearMocks:()=>n9});function p9(J){window.__TAURI_IPC__=async({cmd:K,callback:X,error:V,...Z})=>{try{window[`_${X}`](await J(K,Z))}catch(Y){window[`_${V}`](Y)}}}function s9(J,...K){window.__TAURI_METADATA__={__windows:[J,...K].map((X)=>({label:X})),__currentWindow:{label:J}}}function r9(J,K="https"){var X;window.__TAURI__=(X=window.__TAURI__)!==null&&X!==void 0?X:{},window.__TAURI__.convertFileSrc=function(V,Z="asset"){const Y=encodeURIComponent(V);return J==="windows"?`${K}://${Z}.localhost/${Y}`:`${Z}://localhost/${Y}`}}function n9(){var J;if((J=window.__TAURI__)===null||J===void 0?void 0:J.convertFileSrc)delete window.__TAURI__.convertFileSrc;if(window.__TAURI_IPC__)delete window.__TAURI_IPC__;if(window.__TAURI_METADATA__)delete window.__TAURI_METADATA__}var v={};O(v,{sendNotification:()=>i9,requestPermission:()=>a9,isPermissionGranted:()=>o9});async function o9(){if(window.Notification.permission!=="default")return Promise.resolve(window.Notification.permission==="granted");return Q({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function a9(){return window.Notification.requestPermission()}function i9(J){if(typeof J==="string")new window.Notification(J);else new window.Notification(J.title,J)}var d={};O(d,{version:()=>JJ,type:()=>KJ,tempdir:()=>XJ,platform:()=>e9,locale:()=>ZJ,arch:()=>QJ,EOL:()=>t9});function L(){return navigator.appVersion.includes("Win")}async function e9(){return Q({__tauriModule:"Os",message:{cmd:"platform"}})}async function JJ(){return Q({__tauriModule:"Os",message:{cmd:"version"}})}async function KJ(){return Q({__tauriModule:"Os",message:{cmd:"osType"}})}async function QJ(){return Q({__tauriModule:"Os",message:{cmd:"arch"}})}async function XJ(){return Q({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function ZJ(){return Q({__tauriModule:"Os",message:{cmd:"locale"}})}var t9=L()?"\r\n":"\n";var c={};O(c,{videoDir:()=>PJ,templateDir:()=>zJ,sep:()=>fJ,runtimeDir:()=>_J,resourceDir:()=>WJ,resolveResource:()=>RJ,resolve:()=>gJ,publicDir:()=>xJ,pictureDir:()=>NJ,normalize:()=>wJ,logDir:()=>EJ,localDataDir:()=>jJ,join:()=>BJ,isAbsolute:()=>TJ,homeDir:()=>AJ,fontDir:()=>LJ,extname:()=>kJ,executableDir:()=>FJ,downloadDir:()=>UJ,documentDir:()=>SJ,dirname:()=>CJ,desktopDir:()=>MJ,delimiter:()=>bJ,dataDir:()=>qJ,configDir:()=>OJ,cacheDir:()=>IJ,basename:()=>DJ,audioDir:()=>HJ,appLogDir:()=>$9,appLocalDataDir:()=>GJ,appDir:()=>VJ,appDataDir:()=>YJ,appConfigDir:()=>G9,appCacheDir:()=>$J,BaseDirectory:()=>$});async function VJ(){return G9()}async function G9(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.AppConfig}})}async function YJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.AppData}})}async function GJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.AppLocalData}})}async function $J(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.AppCache}})}async function HJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Audio}})}async function IJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Cache}})}async function OJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Config}})}async function qJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Data}})}async function MJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Desktop}})}async function SJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Document}})}async function UJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Download}})}async function FJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Executable}})}async function LJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Font}})}async function AJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Home}})}async function jJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.LocalData}})}async function NJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Picture}})}async function xJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Public}})}async function WJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Resource}})}async function RJ(J){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:J,directory:$.Resource}})}async function _J(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Runtime}})}async function zJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Template}})}async function PJ(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.Video}})}async function EJ(){return $9()}async function $9(){return Q({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:$.AppLog}})}async function gJ(...J){return Q({__tauriModule:"Path",message:{cmd:"resolve",paths:J}})}async function wJ(J){return Q({__tauriModule:"Path",message:{cmd:"normalize",path:J}})}async function BJ(...J){return Q({__tauriModule:"Path",message:{cmd:"join",paths:J}})}async function CJ(J){return Q({__tauriModule:"Path",message:{cmd:"dirname",path:J}})}async function kJ(J){return Q({__tauriModule:"Path",message:{cmd:"extname",path:J}})}async function DJ(J,K){return Q({__tauriModule:"Path",message:{cmd:"basename",path:J,ext:K}})}async function TJ(J){return Q({__tauriModule:"Path",message:{cmd:"isAbsolute",path:J}})}var fJ=L()?"\\":"/",bJ=L()?";":":";var m={};O(m,{relaunch:()=>hJ,exit:()=>yJ});async function yJ(J=0){return Q({__tauriModule:"Process",message:{cmd:"exit",exitCode:J}})}async function hJ(){return Q({__tauriModule:"Process",message:{cmd:"relaunch"}})}var r={};O(r,{open:()=>s,EventEmitter:()=>A,Command:()=>p,Child:()=>l});async function s(J,K){return Q({__tauriModule:"Shell",message:{cmd:"open",path:J,with:K}})}class A{constructor(){this.eventListeners=Object.create(null)}addListener(J,K){return this.on(J,K)}removeListener(J,K){return this.off(J,K)}on(J,K){if(J in this.eventListeners)this.eventListeners[J].push(K);else this.eventListeners[J]=[K];return this}once(J,K){const X=(...V)=>{this.removeListener(J,X),K(...V)};return this.addListener(J,X)}off(J,K){if(J in this.eventListeners)this.eventListeners[J]=this.eventListeners[J].filter((X)=>X!==K);return this}removeAllListeners(J){if(J)delete this.eventListeners[J];else this.eventListeners=Object.create(null);return this}emit(J,...K){if(J in this.eventListeners){const X=this.eventListeners[J];for(let V of X)V(...K);return!0}return!1}listenerCount(J){if(J in this.eventListeners)return this.eventListeners[J].length;return 0}prependListener(J,K){if(J in this.eventListeners)this.eventListeners[J].unshift(K);else this.eventListeners[J]=[K];return this}prependOnceListener(J,K){const X=(...V)=>{this.removeListener(J,X),K(...V)};return this.prependListener(J,X)}}class l{constructor(J){this.pid=J}async write(J){return Q({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof J==="string"?J:Array.from(J)}})}async kill(){return Q({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}}class p extends A{constructor(J,K=[],X){super();this.stdout=new A,this.stderr=new A,this.program=J,this.args=typeof K==="string"?[K]:K,this.options=X!==null&&X!==void 0?X:{}}static sidecar(J,K=[],X){const V=new p(J,K,X);return V.options.sidecar=!0,V}async spawn(){const J=this.program,K=this.args,X=this.options;if(typeof K==="object")Object.freeze(K);return Q({__tauriModule:"Shell",message:{cmd:"execute",program:J,args:K,options:X,onEventFn:q((Z)=>{switch(Z.event){case"Error":this.emit("error",Z.payload);break;case"Terminated":this.emit("close",Z.payload);break;case"Stdout":this.stdout.emit("data",Z.payload);break;case"Stderr":this.stderr.emit("data",Z.payload);break}})}}).then((Z)=>new l(Z))}async execute(){const J=this.program,K=this.args,X=this.options;if(typeof K==="object")Object.freeze(K);return Q({__tauriModule:"Shell",message:{cmd:"executeAndReturn",program:J,args:K,options:X}})}}var o={};O(o,{onUpdaterEvent:()=>n,installUpdate:()=>uJ,checkUpdate:()=>vJ});async function n(J){return g(I.STATUS_UPDATE,(K)=>{J(K===null||K===void 0?void 0:K.payload)})}async function uJ(){let J;function K(){if(J)J();J=void 0}return new Promise((X,V)=>{function Z(Y){if(Y.error){K(),V(Y.error);return}if(Y.status==="DONE")K(),X()}n(Z).then((Y)=>{J=Y}).catch((Y)=>{throw K(),Y}),R(I.INSTALL_UPDATE).catch((Y)=>{throw K(),Y})})}async function vJ(){let J;function K(){if(J)J();J=void 0}return new Promise((X,V)=>{function Z(G){K(),X({manifest:G,shouldUpdate:!0})}function Y(G){if(G.error){K(),V(G.error);return}if(G.status==="UPTODATE")K(),X({shouldUpdate:!1})}w(I.UPDATE_AVAILABLE,(G)=>{Z(G===null||G===void 0?void 0:G.payload)}).catch((G)=>{throw K(),G}),n(Y).then((G)=>{J=G}).catch((G)=>{throw K(),G}),R(I.CHECK_UPDATE).catch((G)=>{throw K(),G})})}var Z9={};O(Z9,{primaryMonitor:()=>mJ,getCurrent:()=>dJ,getAll:()=>a,currentMonitor:()=>cJ,availableMonitors:()=>lJ,appWindow:()=>i,WindowManager:()=>K9,WebviewWindowHandle:()=>J9,WebviewWindow:()=>M,UserAttentionType:()=>_,PhysicalSize:()=>j,PhysicalPosition:()=>N,LogicalSize:()=>t,LogicalPosition:()=>e,CloseRequestedEvent:()=>Q9});function dJ(){return new M(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function a(){return window.__TAURI_METADATA__.__windows.map((J)=>new M(J.label,{skip:!0}))}function X9(J){return J===null?null:{name:J.name,scaleFactor:J.scaleFactor,position:I9(J.position),size:O9(J.size)}}function I9(J){return new N(J.x,J.y)}function O9(J){return new j(J.width,J.height)}async function cJ(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(X9)}async function mJ(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(X9)}async function lJ(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then((J)=>J.map(X9))}class t{constructor(J,K){this.type="Logical",this.width=J,this.height=K}}class j{constructor(J,K){this.type="Physical",this.width=J,this.height=K}toLogical(J){return new t(this.width/J,this.height/J)}}class e{constructor(J,K){this.type="Logical",this.x=J,this.y=K}}class N{constructor(J,K){this.type="Physical",this.x=J,this.y=K}toLogical(J){return new e(this.x/J,this.y/J)}}var _;(function(J){J[J.Critical=1]="Critical",J[J.Informational=2]="Informational"})(_||(_={}));var H9=["tauri://created","tauri://error"];class J9{constructor(J){this.label=J,this.listeners=Object.create(null)}async listen(J,K){if(this._handleTauriEvent(J,K))return Promise.resolve(()=>{const X=this.listeners[J];X.splice(X.indexOf(K),1)});return U(J,this.label,K)}async once(J,K){if(this._handleTauriEvent(J,K))return Promise.resolve(()=>{const X=this.listeners[J];X.splice(X.indexOf(K),1)});return W(J,this.label,K)}async emit(J,K){if(H9.includes(J)){for(let X of this.listeners[J]||[])X({event:J,id:-1,windowLabel:this.label,payload:K});return Promise.resolve()}return x(J,this.label,K)}_handleTauriEvent(J,K){if(H9.includes(J)){if(!(J in this.listeners))this.listeners[J]=[K];else this.listeners[J].push(K);return!0}return!1}}class K9 extends J9{async scaleFactor(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:J,y:K})=>new N(J,K))}async outerPosition(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:J,y:K})=>new N(J,K))}async innerSize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:J,height:K})=>new j(J,K))}async outerSize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:J,height:K})=>new j(J,K))}async isFullscreen(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(J){let K=null;if(J)if(J===_.Critical)K={type:"Critical"};else K={type:"Informational"};return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:K}}}})}async setResizable(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:J}}}})}async setMaximizable(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:J}}}})}async setMinimizable(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:J}}}})}async setClosable(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:J}}}})}async setTitle(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:J}}}})}async maximize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:J}}}})}async setAlwaysOnTop(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:J}}}})}async setContentProtected(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:J}}}})}async setSize(J){if(!J||J.type!=="Logical"&&J.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:J.type,data:{width:J.width,height:J.height}}}}}})}async setMinSize(J){if(J&&J.type!=="Logical"&&J.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:J?{type:J.type,data:{width:J.width,height:J.height}}:null}}}})}async setMaxSize(J){if(J&&J.type!=="Logical"&&J.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:J?{type:J.type,data:{width:J.width,height:J.height}}:null}}}})}async setPosition(J){if(!J||J.type!=="Logical"&&J.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:J.type,data:{x:J.x,y:J.y}}}}}})}async setFullscreen(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:J}}}})}async setFocus(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof J==="string"?J:Array.from(J)}}}}})}async setSkipTaskbar(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:J}}}})}async setCursorGrab(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:J}}}})}async setCursorVisible(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:J}}}})}async setCursorIcon(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:J}}}})}async setCursorPosition(J){if(!J||J.type!=="Logical"&&J.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:J.type,data:{x:J.x,y:J.y}}}}}})}async setIgnoreCursorEvents(J){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:J}}}})}async startDragging(){return Q({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(J){return this.listen(I.WINDOW_RESIZED,(K)=>{K.payload=O9(K.payload),J(K)})}async onMoved(J){return this.listen(I.WINDOW_MOVED,(K)=>{K.payload=I9(K.payload),J(K)})}async onCloseRequested(J){return this.listen(I.WINDOW_CLOSE_REQUESTED,(K)=>{const X=new Q9(K);Promise.resolve(J(X)).then(()=>{if(!X.isPreventDefault())return this.close()})})}async onFocusChanged(J){const K=await this.listen(I.WINDOW_FOCUS,(V)=>{J({...V,payload:!0})}),X=await this.listen(I.WINDOW_BLUR,(V)=>{J({...V,payload:!1})});return()=>{K(),X()}}async onScaleChanged(J){return this.listen(I.WINDOW_SCALE_FACTOR_CHANGED,J)}async onMenuClicked(J){return this.listen(I.MENU,J)}async onFileDropEvent(J){const K=await this.listen(I.WINDOW_FILE_DROP,(Z)=>{J({...Z,payload:{type:"drop",paths:Z.payload}})}),X=await this.listen(I.WINDOW_FILE_DROP_HOVER,(Z)=>{J({...Z,payload:{type:"hover",paths:Z.payload}})}),V=await this.listen(I.WINDOW_FILE_DROP_CANCELLED,(Z)=>{J({...Z,payload:{type:"cancel"}})});return()=>{K(),X(),V()}}async onThemeChanged(J){return this.listen(I.WINDOW_THEME_CHANGED,J)}}class Q9{constructor(J){this._preventDefault=!1,this.event=J.event,this.windowLabel=J.windowLabel,this.id=J.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}class M extends K9{constructor(J,K={}){super(J);if(!(K===null||K===void 0?void 0:K.skip))Q({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:J,...K}}}}).then(async()=>this.emit("tauri://created")).catch(async(X)=>this.emit("tauri://error",X))}static getByLabel(J){if(a().some((K)=>K.label===J))return new M(J,{skip:!0});return null}static async getFocusedWindow(){for(let J of a())if(await J.isFocused())return J;return null}}var i;if("__TAURI_METADATA__"in window)i=new M(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0});else console.warn('Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label.\nNote that this is not an issue if running this frontend on a browser instead of a Tauri window.'),i=new M("main",{skip:!0});async function RK(J){await s(J)}var jK="testing this";var WK={app:E,event:B,clipboard:f,dialog:b,fs:C,globalShortcut:k,http:h,mocks:u,notification:v,os:d,path:c,process:m,shell:r,tauri:P,updater:o,window:Z9};export{jK as testingThis,RK as openShell,WK as desktop};
4
4
 
5
- //# debugId=CD078A7503EC431464756E2164756E21
5
+ //# debugId=76C7969D16AD516664756E2164756E21
6
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../../node_modules/@tauri-apps/api/tauri.js", "../../../../../node_modules/@tauri-apps/api/helpers/tauri.js", "../../../../../node_modules/@tauri-apps/api/shell.js", "../../../../../node_modules/@tauri-apps/api/app.js", "../../../../../node_modules/@tauri-apps/api/clipboard.js", "../../../../../node_modules/@tauri-apps/api/dialog.js", "../../../../../node_modules/@tauri-apps/api/helpers/event.js", "../../../../../node_modules/@tauri-apps/api/event.js", "../../../../../node_modules/@tauri-apps/api/fs.js", "../../../../../node_modules/@tauri-apps/api/globalShortcut.js", "../../../../../node_modules/@tauri-apps/api/http.js", "../../../../../node_modules/@tauri-apps/api/mocks.js", "../../../../../node_modules/@tauri-apps/api/notification.js", "../../../../../node_modules/@tauri-apps/api/helpers/os-check.js", "../../../../../node_modules/@tauri-apps/api/os.js", "../../../../../node_modules/@tauri-apps/api/path.js", "../../../../../node_modules/@tauri-apps/api/process.js", "../../../../../node_modules/@tauri-apps/api/updater.js", "../../../../../node_modules/@tauri-apps/api/window.js", "../src/index.ts", "../src/system-tray.ts"],
3
+ "sources": ["../../../../../node_modules/@tauri-apps/api/tauri.js", "../../../../../node_modules/@tauri-apps/api/helpers/tauri.js", "../../../../../node_modules/@tauri-apps/api/app.js", "../../../../../node_modules/@tauri-apps/api/clipboard.js", "../../../../../node_modules/@tauri-apps/api/dialog.js", "../../../../../node_modules/@tauri-apps/api/helpers/event.js", "../../../../../node_modules/@tauri-apps/api/event.js", "../../../../../node_modules/@tauri-apps/api/fs.js", "../../../../../node_modules/@tauri-apps/api/globalShortcut.js", "../../../../../node_modules/@tauri-apps/api/http.js", "../../../../../node_modules/@tauri-apps/api/mocks.js", "../../../../../node_modules/@tauri-apps/api/notification.js", "../../../../../node_modules/@tauri-apps/api/helpers/os-check.js", "../../../../../node_modules/@tauri-apps/api/os.js", "../../../../../node_modules/@tauri-apps/api/path.js", "../../../../../node_modules/@tauri-apps/api/process.js", "../../../../../node_modules/@tauri-apps/api/shell.js", "../../../../../node_modules/@tauri-apps/api/updater.js", "../../../../../node_modules/@tauri-apps/api/window.js", "../src/index.ts", "../src/system-tray.ts"],
4
4
  "sourcesContent": [
5
5
  "// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/** @ignore */\nfunction uid() {\n return window.crypto.getRandomValues(new Uint32Array(1))[0];\n}\n/**\n * Transforms a callback function to a string identifier that can be passed to the backend.\n * The backend uses the identifier to `eval()` the callback.\n *\n * @return A unique identifier associated with the callback function.\n *\n * @since 1.0.0\n */\nfunction transformCallback(callback, once = false) {\n const identifier = uid();\n const prop = `_${identifier}`;\n Object.defineProperty(window, prop, {\n value: (result) => {\n if (once) {\n Reflect.deleteProperty(window, prop);\n }\n return callback === null || callback === void 0 ? void 0 : callback(result);\n },\n writable: false,\n configurable: true\n });\n return identifier;\n}\n/**\n * Sends a message to the backend.\n * @example\n * ```typescript\n * import { invoke } from '@tauri-apps/api/tauri';\n * await invoke('login', { user: 'tauri', password: 'poiwe3h4r5ip3yrhtew9ty' });\n * ```\n *\n * @param cmd The command name.\n * @param args The optional arguments to pass to the command.\n * @return A promise resolving or rejecting to the backend response.\n *\n * @since 1.0.0\n */\nasync function invoke(cmd, args = {}) {\n return new Promise((resolve, reject) => {\n const callback = transformCallback((e) => {\n resolve(e);\n Reflect.deleteProperty(window, `_${error}`);\n }, true);\n const error = transformCallback((e) => {\n reject(e);\n Reflect.deleteProperty(window, `_${callback}`);\n }, true);\n window.__TAURI_IPC__({\n cmd,\n callback,\n error,\n ...args\n });\n });\n}\n/**\n * Convert a device file path to an URL that can be loaded by the webview.\n * Note that `asset:` and `https://asset.localhost` must be added to [`tauri.security.csp`](https://tauri.app/v1/api/config/#securityconfig.csp) in `tauri.conf.json`.\n * Example CSP value: `\"csp\": \"default-src 'self'; img-src 'self' asset: https://asset.localhost\"` to use the asset protocol on image sources.\n *\n * Additionally, `asset` must be added to [`tauri.allowlist.protocol`](https://tauri.app/v1/api/config/#allowlistconfig.protocol)\n * in `tauri.conf.json` and its access scope must be defined on the `assetScope` array on the same `protocol` object.\n * For example:\n * ```json\n * {\n * \"tauri\": {\n * \"allowlist\": {\n * \"protocol\": {\n * \"asset\": true,\n * \"assetScope\": [\"$APPDATA/assets/*\"]\n * }\n * }\n * }\n * }\n * ```\n *\n * @param filePath The file path.\n * @param protocol The protocol to use. Defaults to `asset`. You only need to set this when using a custom protocol.\n * @example\n * ```typescript\n * import { appDataDir, join } from '@tauri-apps/api/path';\n * import { convertFileSrc } from '@tauri-apps/api/tauri';\n * const appDataDirPath = await appDataDir();\n * const filePath = await join(appDataDirPath, 'assets/video.mp4');\n * const assetUrl = convertFileSrc(filePath);\n *\n * const video = document.getElementById('my-video');\n * const source = document.createElement('source');\n * source.type = 'video/mp4';\n * source.src = assetUrl;\n * video.appendChild(source);\n * video.load();\n * ```\n *\n * @return the URL that can be used as source on the webview.\n *\n * @since 1.0.0\n */\nfunction convertFileSrc(filePath, protocol = 'asset') {\n return window.__TAURI__.convertFileSrc(filePath, protocol);\n}\n\nexport { convertFileSrc, invoke, transformCallback };\n",
6
6
  "import { invoke } from '../tauri.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/** @ignore */\nasync function invokeTauriCommand(command) {\n return invoke('tauri', command);\n}\n\nexport { invokeTauriCommand };\n",
7
- "import { invokeTauriCommand } from './helpers/tauri.js';\nimport { transformCallback } from './tauri.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Access the system shell.\n * Allows you to spawn child processes and manage files and URLs using their default application.\n *\n * This package is also accessible with `window.__TAURI__.shell` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.\n *\n * The APIs must be added to [`tauri.allowlist.shell`](https://tauri.app/v1/api/config/#allowlistconfig.shell) in `tauri.conf.json`:\n * ```json\n * {\n * \"tauri\": {\n * \"allowlist\": {\n * \"shell\": {\n * \"all\": true, // enable all shell APIs\n * \"execute\": true, // enable process spawn APIs\n * \"sidecar\": true, // enable spawning sidecars\n * \"open\": true // enable opening files/URLs using the default program\n * }\n * }\n * }\n * }\n * ```\n * It is recommended to allowlist only the APIs you use for optimal bundle size and security.\n *\n * ## Security\n *\n * This API has a scope configuration that forces you to restrict the programs and arguments that can be used.\n *\n * ### Restricting access to the {@link open | `open`} API\n *\n * On the allowlist, `open: true` means that the {@link open} API can be used with any URL,\n * as the argument is validated with the `^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+` regex.\n * You can change that regex by changing the boolean value to a string, e.g. `open: ^https://github.com/`.\n *\n * ### Restricting access to the {@link Command | `Command`} APIs\n *\n * The `shell` allowlist object has a `scope` field that defines an array of CLIs that can be used.\n * Each CLI is a configuration object `{ name: string, cmd: string, sidecar?: bool, args?: boolean | Arg[] }`.\n *\n * - `name`: the unique identifier of the command, passed to the {@link Command.constructor | Command constructor}.\n * If it's a sidecar, this must be the value defined on `tauri.conf.json > tauri > bundle > externalBin`.\n * - `cmd`: the program that is executed on this configuration. If it's a sidecar, this value is ignored.\n * - `sidecar`: whether the object configures a sidecar or a system program.\n * - `args`: the arguments that can be passed to the program. By default no arguments are allowed.\n * - `true` means that any argument list is allowed.\n * - `false` means that no arguments are allowed.\n * - otherwise an array can be configured. Each item is either a string representing the fixed argument value\n * or a `{ validator: string }` that defines a regex validating the argument value.\n *\n * #### Example scope configuration\n *\n * CLI: `git commit -m \"the commit message\"`\n *\n * Configuration:\n * ```json\n * {\n * \"scope\": [\n * {\n * \"name\": \"run-git-commit\",\n * \"cmd\": \"git\",\n * \"args\": [\"commit\", \"-m\", { \"validator\": \"\\\\S+\" }]\n * }\n * ]\n * }\n * ```\n * Usage:\n * ```typescript\n * import { Command } from '@tauri-apps/api/shell'\n * new Command('run-git-commit', ['commit', '-m', 'the commit message'])\n * ```\n *\n * Trying to execute any API with a program not configured on the scope results in a promise rejection due to denied access.\n *\n * @module\n */\n/**\n * @since 1.0.0\n */\nclass EventEmitter {\n constructor() {\n /** @ignore */\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n this.eventListeners = Object.create(null);\n }\n /**\n * Alias for `emitter.on(eventName, listener)`.\n *\n * @since 1.1.0\n */\n addListener(eventName, listener) {\n return this.on(eventName, listener);\n }\n /**\n * Alias for `emitter.off(eventName, listener)`.\n *\n * @since 1.1.0\n */\n removeListener(eventName, listener) {\n return this.off(eventName, listener);\n }\n /**\n * Adds the `listener` function to the end of the listeners array for the\n * event named `eventName`. No checks are made to see if the `listener` has\n * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple\n * times.\n *\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.0.0\n */\n on(eventName, listener) {\n if (eventName in this.eventListeners) {\n // eslint-disable-next-line security/detect-object-injection\n this.eventListeners[eventName].push(listener);\n }\n else {\n // eslint-disable-next-line security/detect-object-injection\n this.eventListeners[eventName] = [listener];\n }\n return this;\n }\n /**\n * Adds a **one-time**`listener` function for the event named `eventName`. The\n * next time `eventName` is triggered, this listener is removed and then invoked.\n *\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.1.0\n */\n once(eventName, listener) {\n const wrapper = (...args) => {\n this.removeListener(eventName, wrapper);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n listener(...args);\n };\n return this.addListener(eventName, wrapper);\n }\n /**\n * Removes the all specified listener from the listener array for the event eventName\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.1.0\n */\n off(eventName, listener) {\n if (eventName in this.eventListeners) {\n // eslint-disable-next-line security/detect-object-injection\n this.eventListeners[eventName] = this.eventListeners[eventName].filter((l) => l !== listener);\n }\n return this;\n }\n /**\n * Removes all listeners, or those of the specified eventName.\n *\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.1.0\n */\n removeAllListeners(event) {\n if (event) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete,security/detect-object-injection\n delete this.eventListeners[event];\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n this.eventListeners = Object.create(null);\n }\n return this;\n }\n /**\n * @ignore\n * Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments\n * to each.\n *\n * @returns `true` if the event had listeners, `false` otherwise.\n */\n emit(eventName, ...args) {\n if (eventName in this.eventListeners) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,security/detect-object-injection\n const listeners = this.eventListeners[eventName];\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n for (const listener of listeners)\n listener(...args);\n return true;\n }\n return false;\n }\n /**\n * Returns the number of listeners listening to the event named `eventName`.\n *\n * @since 1.1.0\n */\n listenerCount(eventName) {\n if (eventName in this.eventListeners)\n // eslint-disable-next-line security/detect-object-injection\n return this.eventListeners[eventName].length;\n return 0;\n }\n /**\n * Adds the `listener` function to the _beginning_ of the listeners array for the\n * event named `eventName`. No checks are made to see if the `listener` has\n * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple\n * times.\n *\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.1.0\n */\n prependListener(eventName, listener) {\n if (eventName in this.eventListeners) {\n // eslint-disable-next-line security/detect-object-injection\n this.eventListeners[eventName].unshift(listener);\n }\n else {\n // eslint-disable-next-line security/detect-object-injection\n this.eventListeners[eventName] = [listener];\n }\n return this;\n }\n /**\n * Adds a **one-time**`listener` function for the event named `eventName` to the_beginning_ of the listeners array. The next time `eventName` is triggered, this\n * listener is removed, and then invoked.\n *\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.1.0\n */\n prependOnceListener(eventName, listener) {\n const wrapper = (...args) => {\n this.removeListener(eventName, wrapper);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n listener(...args);\n };\n return this.prependListener(eventName, wrapper);\n }\n}\n/**\n * @since 1.1.0\n */\nclass Child {\n constructor(pid) {\n this.pid = pid;\n }\n /**\n * Writes `data` to the `stdin`.\n *\n * @param data The message to write, either a string or a byte array.\n * @example\n * ```typescript\n * import { Command } from '@tauri-apps/api/shell';\n * const command = new Command('node');\n * const child = await command.spawn();\n * await child.write('message');\n * await child.write([0, 1, 2, 3, 4, 5]);\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async write(data) {\n return invokeTauriCommand({\n __tauriModule: 'Shell',\n message: {\n cmd: 'stdinWrite',\n pid: this.pid,\n // correctly serialize Uint8Arrays\n buffer: typeof data === 'string' ? data : Array.from(data)\n }\n });\n }\n /**\n * Kills the child process.\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async kill() {\n return invokeTauriCommand({\n __tauriModule: 'Shell',\n message: {\n cmd: 'killChild',\n pid: this.pid\n }\n });\n }\n}\n/**\n * The entry point for spawning child processes.\n * It emits the `close` and `error` events.\n * @example\n * ```typescript\n * import { Command } from '@tauri-apps/api/shell';\n * const command = new Command('node');\n * command.on('close', data => {\n * console.log(`command finished with code ${data.code} and signal ${data.signal}`)\n * });\n * command.on('error', error => console.error(`command error: \"${error}\"`));\n * command.stdout.on('data', line => console.log(`command stdout: \"${line}\"`));\n * command.stderr.on('data', line => console.log(`command stderr: \"${line}\"`));\n *\n * const child = await command.spawn();\n * console.log('pid:', child.pid);\n * ```\n *\n * @since 1.1.0\n *\n */\nclass Command extends EventEmitter {\n /**\n * Creates a new `Command` instance.\n *\n * @param program The program name to execute.\n * It must be configured on `tauri.conf.json > tauri > allowlist > shell > scope`.\n * @param args Program arguments.\n * @param options Spawn options.\n */\n constructor(program, args = [], options) {\n super();\n /** Event emitter for the `stdout`. Emits the `data` event. */\n this.stdout = new EventEmitter();\n /** Event emitter for the `stderr`. Emits the `data` event. */\n this.stderr = new EventEmitter();\n this.program = program;\n this.args = typeof args === 'string' ? [args] : args;\n this.options = options !== null && options !== void 0 ? options : {};\n }\n /**\n * Creates a command to execute the given sidecar program.\n * @example\n * ```typescript\n * import { Command } from '@tauri-apps/api/shell';\n * const command = Command.sidecar('my-sidecar');\n * const output = await command.execute();\n * ```\n *\n * @param program The program to execute.\n * It must be configured on `tauri.conf.json > tauri > allowlist > shell > scope`.\n */\n static sidecar(program, args = [], options) {\n const instance = new Command(program, args, options);\n instance.options.sidecar = true;\n return instance;\n }\n /**\n * Executes the command as a child process, returning a handle to it.\n *\n * @returns A promise resolving to the child process handle.\n */\n async spawn() {\n const program = this.program;\n const args = this.args;\n const options = this.options;\n if (typeof args === 'object') {\n Object.freeze(args);\n }\n const onEvent = (event) => {\n switch (event.event) {\n case 'Error':\n this.emit('error', event.payload);\n break;\n case 'Terminated':\n this.emit('close', event.payload);\n break;\n case 'Stdout':\n this.stdout.emit('data', event.payload);\n break;\n case 'Stderr':\n this.stderr.emit('data', event.payload);\n break;\n }\n };\n return invokeTauriCommand({\n __tauriModule: 'Shell',\n message: {\n cmd: 'execute',\n program,\n args,\n options,\n onEventFn: transformCallback(onEvent)\n }\n }).then((pid) => new Child(pid));\n }\n /**\n * Executes the command as a child process, waiting for it to finish and collecting all of its output.\n * @example\n * ```typescript\n * import { Command } from '@tauri-apps/api/shell';\n * const output = await new Command('echo', 'message').execute();\n * assert(output.code === 0);\n * assert(output.signal === null);\n * assert(output.stdout === 'message');\n * assert(output.stderr === '');\n * ```\n *\n * @returns A promise resolving to the child process output.\n */\n async execute() {\n const program = this.program;\n const args = this.args;\n const options = this.options;\n if (typeof args === 'object') {\n Object.freeze(args);\n }\n return invokeTauriCommand({\n __tauriModule: 'Shell',\n message: {\n cmd: 'executeAndReturn',\n program,\n args,\n options\n }\n });\n }\n}\n/**\n * Opens a path or URL with the system's default app,\n * or the one specified with `openWith`.\n *\n * The `openWith` value must be one of `firefox`, `google chrome`, `chromium` `safari`,\n * `open`, `start`, `xdg-open`, `gio`, `gnome-open`, `kde-open` or `wslview`.\n *\n * @example\n * ```typescript\n * import { open } from '@tauri-apps/api/shell';\n * // opens the given URL on the default browser:\n * await open('https://github.com/tauri-apps/tauri');\n * // opens the given URL using `firefox`:\n * await open('https://github.com/tauri-apps/tauri', 'firefox');\n * // opens a file using the default program:\n * await open('/path/to/file');\n * ```\n *\n * @param path The path or URL to open.\n * This value is matched against the string regex defined on `tauri.conf.json > tauri > allowlist > shell > open`,\n * which defaults to `^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+`.\n * @param openWith The app to open the file or URL with.\n * Defaults to the system default application for the specified path type.\n *\n * @since 1.0.0\n */\nasync function open(path, openWith) {\n return invokeTauriCommand({\n __tauriModule: 'Shell',\n message: {\n cmd: 'open',\n path,\n with: openWith\n }\n });\n}\n\nexport { Child, Command, EventEmitter, open };\n",
8
7
  "import { invokeTauriCommand } from './helpers/tauri.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Get application metadata.\n *\n * This package is also accessible with `window.__TAURI__.app` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.\n *\n * The APIs must be added to [`tauri.allowlist.app`](https://tauri.app/v1/api/config/#allowlistconfig.app) in `tauri.conf.json`:\n * ```json\n * {\n * \"tauri\": {\n * \"allowlist\": {\n * \"app\": {\n * \"all\": true, // enable all app APIs\n * \"show\": true,\n * \"hide\": true\n * }\n * }\n * }\n * }\n * ```\n * It is recommended to allowlist only the APIs you use for optimal bundle size and security.\n *\n * @module\n */\n/**\n * Gets the application version.\n * @example\n * ```typescript\n * import { getVersion } from '@tauri-apps/api/app';\n * const appVersion = await getVersion();\n * ```\n *\n * @since 1.0.0\n */\nasync function getVersion() {\n return invokeTauriCommand({\n __tauriModule: 'App',\n message: {\n cmd: 'getAppVersion'\n }\n });\n}\n/**\n * Gets the application name.\n * @example\n * ```typescript\n * import { getName } from '@tauri-apps/api/app';\n * const appName = await getName();\n * ```\n *\n * @since 1.0.0\n */\nasync function getName() {\n return invokeTauriCommand({\n __tauriModule: 'App',\n message: {\n cmd: 'getAppName'\n }\n });\n}\n/**\n * Gets the Tauri version.\n *\n * @example\n * ```typescript\n * import { getTauriVersion } from '@tauri-apps/api/app';\n * const tauriVersion = await getTauriVersion();\n * ```\n *\n * @since 1.0.0\n */\nasync function getTauriVersion() {\n return invokeTauriCommand({\n __tauriModule: 'App',\n message: {\n cmd: 'getTauriVersion'\n }\n });\n}\n/**\n * Shows the application on macOS. This function does not automatically focus any specific app window.\n *\n * @example\n * ```typescript\n * import { show } from '@tauri-apps/api/app';\n * await show();\n * ```\n *\n * @since 1.2.0\n */\nasync function show() {\n return invokeTauriCommand({\n __tauriModule: 'App',\n message: {\n cmd: 'show'\n }\n });\n}\n/**\n * Hides the application on macOS.\n *\n * @example\n * ```typescript\n * import { hide } from '@tauri-apps/api/app';\n * await hide();\n * ```\n *\n * @since 1.2.0\n */\nasync function hide() {\n return invokeTauriCommand({\n __tauriModule: 'App',\n message: {\n cmd: 'hide'\n }\n });\n}\n\nexport { getName, getTauriVersion, getVersion, hide, show };\n",
9
8
  "import { invokeTauriCommand } from './helpers/tauri.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Read and write to the system clipboard.\n *\n * This package is also accessible with `window.__TAURI__.clipboard` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.\n *\n * The APIs must be added to [`tauri.allowlist.clipboard`](https://tauri.app/v1/api/config/#allowlistconfig.clipboard) in `tauri.conf.json`:\n * ```json\n * {\n * \"tauri\": {\n * \"allowlist\": {\n * \"clipboard\": {\n * \"all\": true, // enable all Clipboard APIs\n * \"writeText\": true,\n * \"readText\": true\n * }\n * }\n * }\n * }\n * ```\n * It is recommended to allowlist only the APIs you use for optimal bundle size and security.\n *\n * @module\n */\n/**\n * Writes plain text to the clipboard.\n * @example\n * ```typescript\n * import { writeText, readText } from '@tauri-apps/api/clipboard';\n * await writeText('Tauri is awesome!');\n * assert(await readText(), 'Tauri is awesome!');\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 1.0.0.\n */\nasync function writeText(text) {\n return invokeTauriCommand({\n __tauriModule: 'Clipboard',\n message: {\n cmd: 'writeText',\n data: text\n }\n });\n}\n/**\n * Gets the clipboard content as plain text.\n * @example\n * ```typescript\n * import { readText } from '@tauri-apps/api/clipboard';\n * const clipboardText = await readText();\n * ```\n * @since 1.0.0.\n */\nasync function readText() {\n return invokeTauriCommand({\n __tauriModule: 'Clipboard',\n message: {\n cmd: 'readText',\n // if data is not set, `serde` will ignore the custom deserializer\n // that is set when the API is not allowlisted\n data: null\n }\n });\n}\n\nexport { readText, writeText };\n",
10
9
  "import { invokeTauriCommand } from './helpers/tauri.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Native system dialogs for opening and saving files.\n *\n * This package is also accessible with `window.__TAURI__.dialog` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.\n *\n * The APIs must be added to [`tauri.allowlist.dialog`](https://tauri.app/v1/api/config/#allowlistconfig.dialog) in `tauri.conf.json`:\n * ```json\n * {\n * \"tauri\": {\n * \"allowlist\": {\n * \"dialog\": {\n * \"all\": true, // enable all dialog APIs\n * \"ask\": true, // enable dialog ask API\n * \"confirm\": true, // enable dialog confirm API\n * \"message\": true, // enable dialog message API\n * \"open\": true, // enable file open API\n * \"save\": true // enable file save API\n * }\n * }\n * }\n * }\n * ```\n * It is recommended to allowlist only the APIs you use for optimal bundle size and security.\n * @module\n */\n/**\n * Open a file/directory selection dialog.\n *\n * The selected paths are added to the filesystem and asset protocol allowlist scopes.\n * When security is more important than the easy of use of this API,\n * prefer writing a dedicated command instead.\n *\n * Note that the allowlist scope change is not persisted, so the values are cleared when the application is restarted.\n * You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/plugins-workspace/tree/v1/plugins/persisted-scope).\n * @example\n * ```typescript\n * import { open } from '@tauri-apps/api/dialog';\n * // Open a selection dialog for image files\n * const selected = await open({\n * multiple: true,\n * filters: [{\n * name: 'Image',\n * extensions: ['png', 'jpeg']\n * }]\n * });\n * if (Array.isArray(selected)) {\n * // user selected multiple files\n * } else if (selected === null) {\n * // user cancelled the selection\n * } else {\n * // user selected a single file\n * }\n * ```\n *\n * @example\n * ```typescript\n * import { open } from '@tauri-apps/api/dialog';\n * import { appDir } from '@tauri-apps/api/path';\n * // Open a selection dialog for directories\n * const selected = await open({\n * directory: true,\n * multiple: true,\n * defaultPath: await appDir(),\n * });\n * if (Array.isArray(selected)) {\n * // user selected multiple directories\n * } else if (selected === null) {\n * // user cancelled the selection\n * } else {\n * // user selected a single directory\n * }\n * ```\n *\n * @returns A promise resolving to the selected path(s)\n *\n * @since 1.0.0\n */\nasync function open(options = {}) {\n if (typeof options === 'object') {\n Object.freeze(options);\n }\n return invokeTauriCommand({\n __tauriModule: 'Dialog',\n message: {\n cmd: 'openDialog',\n options\n }\n });\n}\n/**\n * Open a file/directory save dialog.\n *\n * The selected path is added to the filesystem and asset protocol allowlist scopes.\n * When security is more important than the easy of use of this API,\n * prefer writing a dedicated command instead.\n *\n * Note that the allowlist scope change is not persisted, so the values are cleared when the application is restarted.\n * You can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/plugins-workspace/tree/v1/plugins/persisted-scope).\n * @example\n * ```typescript\n * import { save } from '@tauri-apps/api/dialog';\n * const filePath = await save({\n * filters: [{\n * name: 'Image',\n * extensions: ['png', 'jpeg']\n * }]\n * });\n * ```\n *\n * @returns A promise resolving to the selected path.\n *\n * @since 1.0.0\n */\nasync function save(options = {}) {\n if (typeof options === 'object') {\n Object.freeze(options);\n }\n return invokeTauriCommand({\n __tauriModule: 'Dialog',\n message: {\n cmd: 'saveDialog',\n options\n }\n });\n}\n/**\n * Shows a message dialog with an `Ok` button.\n * @example\n * ```typescript\n * import { message } from '@tauri-apps/api/dialog';\n * await message('Tauri is awesome', 'Tauri');\n * await message('File not found', { title: 'Tauri', type: 'error' });\n * ```\n *\n * @param message The message to show.\n * @param options The dialog's options. If a string, it represents the dialog title.\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 1.0.0\n *\n */\nasync function message(message, options) {\n var _a, _b;\n const opts = typeof options === 'string' ? { title: options } : options;\n return invokeTauriCommand({\n __tauriModule: 'Dialog',\n message: {\n cmd: 'messageDialog',\n message: message.toString(),\n title: (_a = opts === null || opts === void 0 ? void 0 : opts.title) === null || _a === void 0 ? void 0 : _a.toString(),\n type: opts === null || opts === void 0 ? void 0 : opts.type,\n buttonLabel: (_b = opts === null || opts === void 0 ? void 0 : opts.okLabel) === null || _b === void 0 ? void 0 : _b.toString()\n }\n });\n}\n/**\n * Shows a question dialog with `Yes` and `No` buttons.\n * @example\n * ```typescript\n * import { ask } from '@tauri-apps/api/dialog';\n * const yes = await ask('Are you sure?', 'Tauri');\n * const yes2 = await ask('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });\n * ```\n *\n * @param message The message to show.\n * @param options The dialog's options. If a string, it represents the dialog title.\n *\n * @returns A promise resolving to a boolean indicating whether `Yes` was clicked or not.\n *\n * @since 1.0.0\n */\nasync function ask(message, options) {\n var _a, _b, _c, _d, _e;\n const opts = typeof options === 'string' ? { title: options } : options;\n return invokeTauriCommand({\n __tauriModule: 'Dialog',\n message: {\n cmd: 'askDialog',\n message: message.toString(),\n title: (_a = opts === null || opts === void 0 ? void 0 : opts.title) === null || _a === void 0 ? void 0 : _a.toString(),\n type: opts === null || opts === void 0 ? void 0 : opts.type,\n buttonLabels: [\n (_c = (_b = opts === null || opts === void 0 ? void 0 : opts.okLabel) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : 'Yes',\n (_e = (_d = opts === null || opts === void 0 ? void 0 : opts.cancelLabel) === null || _d === void 0 ? void 0 : _d.toString()) !== null && _e !== void 0 ? _e : 'No'\n ]\n }\n });\n}\n/**\n * Shows a question dialog with `Ok` and `Cancel` buttons.\n * @example\n * ```typescript\n * import { confirm } from '@tauri-apps/api/dialog';\n * const confirmed = await confirm('Are you sure?', 'Tauri');\n * const confirmed2 = await confirm('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });\n * ```\n *\n * @param message The message to show.\n * @param options The dialog's options. If a string, it represents the dialog title.\n *\n * @returns A promise resolving to a boolean indicating whether `Ok` was clicked or not.\n *\n * @since 1.0.0\n */\nasync function confirm(message, options) {\n var _a, _b, _c, _d, _e;\n const opts = typeof options === 'string' ? { title: options } : options;\n return invokeTauriCommand({\n __tauriModule: 'Dialog',\n message: {\n cmd: 'confirmDialog',\n message: message.toString(),\n title: (_a = opts === null || opts === void 0 ? void 0 : opts.title) === null || _a === void 0 ? void 0 : _a.toString(),\n type: opts === null || opts === void 0 ? void 0 : opts.type,\n buttonLabels: [\n (_c = (_b = opts === null || opts === void 0 ? void 0 : opts.okLabel) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : 'Ok',\n (_e = (_d = opts === null || opts === void 0 ? void 0 : opts.cancelLabel) === null || _d === void 0 ? void 0 : _d.toString()) !== null && _e !== void 0 ? _e : 'Cancel'\n ]\n }\n });\n}\n\nexport { ask, confirm, message, open, save };\n",
@@ -19,12 +18,13 @@
19
18
  "import { isWindows } from './helpers/os-check.js';\nimport { invokeTauriCommand } from './helpers/tauri.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Provides operating system-related utility methods and properties.\n *\n * This package is also accessible with `window.__TAURI__.os` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.\n *\n * The APIs must be added to [`tauri.allowlist.os`](https://tauri.app/v1/api/config/#allowlistconfig.os) in `tauri.conf.json`:\n * ```json\n * {\n * \"tauri\": {\n * \"allowlist\": {\n * \"os\": {\n * \"all\": true, // enable all Os APIs\n * }\n * }\n * }\n * }\n * ```\n * It is recommended to allowlist only the APIs you use for optimal bundle size and security.\n * @module\n */\n/**\n * The operating system-specific end-of-line marker.\n * - `\\n` on POSIX\n * - `\\r\\n` on Windows\n *\n * @since 1.0.0\n * */\nconst EOL = isWindows() ? '\\r\\n' : '\\n';\n/**\n * Returns a string identifying the operating system platform.\n * The value is set at compile time. Possible values are `'linux'`, `'darwin'`, `'ios'`, `'freebsd'`, `'dragonfly'`, `'netbsd'`, `'openbsd'`, `'solaris'`, `'android'`, `'win32'`\n * @example\n * ```typescript\n * import { platform } from '@tauri-apps/api/os';\n * const platformName = await platform();\n * ```\n *\n * @since 1.0.0\n *\n */\nasync function platform() {\n return invokeTauriCommand({\n __tauriModule: 'Os',\n message: {\n cmd: 'platform'\n }\n });\n}\n/**\n * Returns a string identifying the kernel version.\n * @example\n * ```typescript\n * import { version } from '@tauri-apps/api/os';\n * const osVersion = await version();\n * ```\n *\n * @since 1.0.0\n */\nasync function version() {\n return invokeTauriCommand({\n __tauriModule: 'Os',\n message: {\n cmd: 'version'\n }\n });\n}\n/**\n * Returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows.\n * @example\n * ```typescript\n * import { type } from '@tauri-apps/api/os';\n * const osType = await type();\n * ```\n *\n * @since 1.0.0\n */\nasync function type() {\n return invokeTauriCommand({\n __tauriModule: 'Os',\n message: {\n cmd: 'osType'\n }\n });\n}\n/**\n * Returns the operating system CPU architecture for which the tauri app was compiled.\n * Possible values are `'x86'`, `'x86_64'`, `'arm'`, `'aarch64'`, `'mips'`, `'mips64'`, `'powerpc'`, `'powerpc64'`, `'riscv64'`, `'s390x'`, `'sparc64'`.\n * @example\n * ```typescript\n * import { arch } from '@tauri-apps/api/os';\n * const archName = await arch();\n * ```\n *\n * @since 1.0.0\n */\nasync function arch() {\n return invokeTauriCommand({\n __tauriModule: 'Os',\n message: {\n cmd: 'arch'\n }\n });\n}\n/**\n * Returns the operating system's default directory for temporary files as a string.\n * @example\n * ```typescript\n * import { tempdir } from '@tauri-apps/api/os';\n * const tempdirPath = await tempdir();\n * ```\n *\n * @since 1.0.0\n */\nasync function tempdir() {\n return invokeTauriCommand({\n __tauriModule: 'Os',\n message: {\n cmd: 'tempdir'\n }\n });\n}\n/**\n * Returns a String with a `BCP-47` language tag inside. If the locale couldn’t be obtained, `null` is returned instead.\n * @example\n * ```typescript\n * import { locale } from '@tauri-apps/api/os';\n * const locale = await locale();\n * if (locale) {\n * // use the locale string here\n * }\n * ```\n *\n * @since 1.4.0\n */\nasync function locale() {\n return invokeTauriCommand({\n __tauriModule: 'Os',\n message: {\n cmd: 'locale'\n }\n });\n}\n\nexport { EOL, arch, locale, platform, tempdir, type, version };\n",
20
19
  "import { invokeTauriCommand } from './helpers/tauri.js';\nimport { BaseDirectory } from './fs.js';\nimport { isWindows } from './helpers/os-check.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * The path module provides utilities for working with file and directory paths.\n *\n * This package is also accessible with `window.__TAURI__.path` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.\n *\n * The APIs must be added to [`tauri.allowlist.path`](https://tauri.app/v1/api/config/#allowlistconfig.path) in `tauri.conf.json`:\n * ```json\n * {\n * \"tauri\": {\n * \"allowlist\": {\n * \"path\": {\n * \"all\": true, // enable all Path APIs\n * }\n * }\n * }\n * }\n * ```\n * It is recommended to allowlist only the APIs you use for optimal bundle size and security.\n * @module\n */\n/**\n * Returns the path to the suggested directory for your app config files.\n *\n * @deprecated since 1.2.0: Will be removed in 2.0.0. Use {@link appConfigDir} or {@link appDataDir} instead.\n * @since 1.0.0\n */\nasync function appDir() {\n return appConfigDir();\n}\n/**\n * Returns the path to the suggested directory for your app's config files.\n * Resolves to `${configDir}/${bundleIdentifier}`, where `bundleIdentifier` is the value [`tauri.bundle.identifier`](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in `tauri.conf.json`.\n * @example\n * ```typescript\n * import { appConfigDir } from '@tauri-apps/api/path';\n * const appConfigDirPath = await appConfigDir();\n * ```\n *\n * @since 1.2.0\n */\nasync function appConfigDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.AppConfig\n }\n });\n}\n/**\n * Returns the path to the suggested directory for your app's data files.\n * Resolves to `${dataDir}/${bundleIdentifier}`, where `bundleIdentifier` is the value [`tauri.bundle.identifier`](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in `tauri.conf.json`.\n * @example\n * ```typescript\n * import { appDataDir } from '@tauri-apps/api/path';\n * const appDataDirPath = await appDataDir();\n * ```\n *\n * @since 1.2.0\n */\nasync function appDataDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.AppData\n }\n });\n}\n/**\n * Returns the path to the suggested directory for your app's local data files.\n * Resolves to `${localDataDir}/${bundleIdentifier}`, where `bundleIdentifier` is the value [`tauri.bundle.identifier`](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in `tauri.conf.json`.\n * @example\n * ```typescript\n * import { appLocalDataDir } from '@tauri-apps/api/path';\n * const appLocalDataDirPath = await appLocalDataDir();\n * ```\n *\n * @since 1.2.0\n */\nasync function appLocalDataDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.AppLocalData\n }\n });\n}\n/**\n * Returns the path to the suggested directory for your app's cache files.\n * Resolves to `${cacheDir}/${bundleIdentifier}`, where `bundleIdentifier` is the value [`tauri.bundle.identifier`](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in `tauri.conf.json`.\n * @example\n * ```typescript\n * import { appCacheDir } from '@tauri-apps/api/path';\n * const appCacheDirPath = await appCacheDir();\n * ```\n *\n * @since 1.2.0\n */\nasync function appCacheDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.AppCache\n }\n });\n}\n/**\n * Returns the path to the user's audio directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to [`xdg-user-dirs`](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' `XDG_MUSIC_DIR`.\n * - **macOS:** Resolves to `$HOME/Music`.\n * - **Windows:** Resolves to `{FOLDERID_Music}`.\n * @example\n * ```typescript\n * import { audioDir } from '@tauri-apps/api/path';\n * const audioDirPath = await audioDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function audioDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Audio\n }\n });\n}\n/**\n * Returns the path to the user's cache directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to `$XDG_CACHE_HOME` or `$HOME/.cache`.\n * - **macOS:** Resolves to `$HOME/Library/Caches`.\n * - **Windows:** Resolves to `{FOLDERID_LocalAppData}`.\n * @example\n * ```typescript\n * import { cacheDir } from '@tauri-apps/api/path';\n * const cacheDirPath = await cacheDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function cacheDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Cache\n }\n });\n}\n/**\n * Returns the path to the user's config directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to `$XDG_CONFIG_HOME` or `$HOME/.config`.\n * - **macOS:** Resolves to `$HOME/Library/Application Support`.\n * - **Windows:** Resolves to `{FOLDERID_RoamingAppData}`.\n * @example\n * ```typescript\n * import { configDir } from '@tauri-apps/api/path';\n * const configDirPath = await configDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function configDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Config\n }\n });\n}\n/**\n * Returns the path to the user's data directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to `$XDG_DATA_HOME` or `$HOME/.local/share`.\n * - **macOS:** Resolves to `$HOME/Library/Application Support`.\n * - **Windows:** Resolves to `{FOLDERID_RoamingAppData}`.\n * @example\n * ```typescript\n * import { dataDir } from '@tauri-apps/api/path';\n * const dataDirPath = await dataDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function dataDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Data\n }\n });\n}\n/**\n * Returns the path to the user's desktop directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to [`xdg-user-dirs`](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' `XDG_DESKTOP_DIR`.\n * - **macOS:** Resolves to `$HOME/Desktop`.\n * - **Windows:** Resolves to `{FOLDERID_Desktop}`.\n * @example\n * ```typescript\n * import { desktopDir } from '@tauri-apps/api/path';\n * const desktopPath = await desktopDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function desktopDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Desktop\n }\n });\n}\n/**\n * Returns the path to the user's document directory.\n * @example\n * ```typescript\n * import { documentDir } from '@tauri-apps/api/path';\n * const documentDirPath = await documentDir();\n * ```\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to [`xdg-user-dirs`](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' `XDG_DOCUMENTS_DIR`.\n * - **macOS:** Resolves to `$HOME/Documents`.\n * - **Windows:** Resolves to `{FOLDERID_Documents}`.\n *\n * @since 1.0.0\n */\nasync function documentDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Document\n }\n });\n}\n/**\n * Returns the path to the user's download directory.\n *\n * #### Platform-specific\n *\n * - **Linux**: Resolves to [`xdg-user-dirs`](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' `XDG_DOWNLOAD_DIR`.\n * - **macOS**: Resolves to `$HOME/Downloads`.\n * - **Windows**: Resolves to `{FOLDERID_Downloads}`.\n * @example\n * ```typescript\n * import { downloadDir } from '@tauri-apps/api/path';\n * const downloadDirPath = await downloadDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function downloadDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Download\n }\n });\n}\n/**\n * Returns the path to the user's executable directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to `$XDG_BIN_HOME/../bin` or `$XDG_DATA_HOME/../bin` or `$HOME/.local/bin`.\n * - **macOS:** Not supported.\n * - **Windows:** Not supported.\n * @example\n * ```typescript\n * import { executableDir } from '@tauri-apps/api/path';\n * const executableDirPath = await executableDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function executableDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Executable\n }\n });\n}\n/**\n * Returns the path to the user's font directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to `$XDG_DATA_HOME/fonts` or `$HOME/.local/share/fonts`.\n * - **macOS:** Resolves to `$HOME/Library/Fonts`.\n * - **Windows:** Not supported.\n * @example\n * ```typescript\n * import { fontDir } from '@tauri-apps/api/path';\n * const fontDirPath = await fontDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function fontDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Font\n }\n });\n}\n/**\n * Returns the path to the user's home directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to `$HOME`.\n * - **macOS:** Resolves to `$HOME`.\n * - **Windows:** Resolves to `{FOLDERID_Profile}`.\n * @example\n * ```typescript\n * import { homeDir } from '@tauri-apps/api/path';\n * const homeDirPath = await homeDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function homeDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Home\n }\n });\n}\n/**\n * Returns the path to the user's local data directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to `$XDG_DATA_HOME` or `$HOME/.local/share`.\n * - **macOS:** Resolves to `$HOME/Library/Application Support`.\n * - **Windows:** Resolves to `{FOLDERID_LocalAppData}`.\n * @example\n * ```typescript\n * import { localDataDir } from '@tauri-apps/api/path';\n * const localDataDirPath = await localDataDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function localDataDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.LocalData\n }\n });\n}\n/**\n * Returns the path to the user's picture directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to [`xdg-user-dirs`](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' `XDG_PICTURES_DIR`.\n * - **macOS:** Resolves to `$HOME/Pictures`.\n * - **Windows:** Resolves to `{FOLDERID_Pictures}`.\n * @example\n * ```typescript\n * import { pictureDir } from '@tauri-apps/api/path';\n * const pictureDirPath = await pictureDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function pictureDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Picture\n }\n });\n}\n/**\n * Returns the path to the user's public directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to [`xdg-user-dirs`](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' `XDG_PUBLICSHARE_DIR`.\n * - **macOS:** Resolves to `$HOME/Public`.\n * - **Windows:** Resolves to `{FOLDERID_Public}`.\n * @example\n * ```typescript\n * import { publicDir } from '@tauri-apps/api/path';\n * const publicDirPath = await publicDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function publicDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Public\n }\n });\n}\n/**\n * Returns the path to the application's resource directory.\n * To resolve a resource path, see the [[resolveResource | `resolveResource API`]].\n * @example\n * ```typescript\n * import { resourceDir } from '@tauri-apps/api/path';\n * const resourceDirPath = await resourceDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function resourceDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Resource\n }\n });\n}\n/**\n * Resolve the path to a resource file.\n * @example\n * ```typescript\n * import { resolveResource } from '@tauri-apps/api/path';\n * const resourcePath = await resolveResource('script.sh');\n * ```\n *\n * @param resourcePath The path to the resource.\n * Must follow the same syntax as defined in `tauri.conf.json > tauri > bundle > resources`, i.e. keeping subfolders and parent dir components (`../`).\n * @returns The full path to the resource.\n *\n * @since 1.0.0\n */\nasync function resolveResource(resourcePath) {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: resourcePath,\n directory: BaseDirectory.Resource\n }\n });\n}\n/**\n * Returns the path to the user's runtime directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to `$XDG_RUNTIME_DIR`.\n * - **macOS:** Not supported.\n * - **Windows:** Not supported.\n * @example\n * ```typescript\n * import { runtimeDir } from '@tauri-apps/api/path';\n * const runtimeDirPath = await runtimeDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function runtimeDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Runtime\n }\n });\n}\n/**\n * Returns the path to the user's template directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to [`xdg-user-dirs`](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' `XDG_TEMPLATES_DIR`.\n * - **macOS:** Not supported.\n * - **Windows:** Resolves to `{FOLDERID_Templates}`.\n * @example\n * ```typescript\n * import { templateDir } from '@tauri-apps/api/path';\n * const templateDirPath = await templateDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function templateDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Template\n }\n });\n}\n/**\n * Returns the path to the user's video directory.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to [`xdg-user-dirs`](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' `XDG_VIDEOS_DIR`.\n * - **macOS:** Resolves to `$HOME/Movies`.\n * - **Windows:** Resolves to `{FOLDERID_Videos}`.\n * @example\n * ```typescript\n * import { videoDir } from '@tauri-apps/api/path';\n * const videoDirPath = await videoDir();\n * ```\n *\n * @since 1.0.0\n */\nasync function videoDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.Video\n }\n });\n}\n/**\n * Returns the path to the suggested log directory.\n *\n * @deprecated since 1.2.0: Will be removed in 2.0.0. Use {@link appLogDir} instead.\n * @since 1.0.0\n */\nasync function logDir() {\n return appLogDir();\n}\n/**\n * Returns the path to the suggested directory for your app's log files.\n *\n * #### Platform-specific\n *\n * - **Linux:** Resolves to `${configDir}/${bundleIdentifier}/logs`.\n * - **macOS:** Resolves to `${homeDir}/Library/Logs/{bundleIdentifier}`\n * - **Windows:** Resolves to `${configDir}/${bundleIdentifier}/logs`.\n * @example\n * ```typescript\n * import { appLogDir } from '@tauri-apps/api/path';\n * const appLogDirPath = await appLogDir();\n * ```\n *\n * @since 1.2.0\n */\nasync function appLogDir() {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolvePath',\n path: '',\n directory: BaseDirectory.AppLog\n }\n });\n}\n/**\n * Provides the platform-specific path segment separator:\n * - `\\` on Windows\n * - `/` on POSIX\n *\n * @since 1.0.0\n */\nconst sep = isWindows() ? '\\\\' : '/';\n/**\n * Provides the platform-specific path segment delimiter:\n * - `;` on Windows\n * - `:` on POSIX\n *\n * @since 1.0.0\n */\nconst delimiter = isWindows() ? ';' : ':';\n/**\n * Resolves a sequence of `paths` or `path` segments into an absolute path.\n * @example\n * ```typescript\n * import { resolve, appDataDir } from '@tauri-apps/api/path';\n * const appDataDirPath = await appDataDir();\n * const path = await resolve(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n * ```\n *\n * @since 1.0.0\n */\nasync function resolve(...paths) {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'resolve',\n paths\n }\n });\n}\n/**\n * Normalizes the given `path`, resolving `'..'` and `'.'` segments and resolve symbolic links.\n * @example\n * ```typescript\n * import { normalize, appDataDir } from '@tauri-apps/api/path';\n * const appDataDirPath = await appDataDir();\n * const path = await normalize(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n * ```\n *\n * @since 1.0.0\n */\nasync function normalize(path) {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'normalize',\n path\n }\n });\n}\n/**\n * Joins all given `path` segments together using the platform-specific separator as a delimiter, then normalizes the resulting path.\n * @example\n * ```typescript\n * import { join, appDataDir } from '@tauri-apps/api/path';\n * const appDataDirPath = await appDataDir();\n * const path = await join(appDataDirPath, 'users', 'tauri', 'avatar.png');\n * ```\n *\n * @since 1.0.0\n */\nasync function join(...paths) {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'join',\n paths\n }\n });\n}\n/**\n * Returns the directory name of a `path`. Trailing directory separators are ignored.\n * @example\n * ```typescript\n * import { dirname } from '@tauri-apps/api/path';\n * const dir = await dirname('/path/to/somedir/');\n * assert(dir === 'somedir');\n * ```\n *\n * @since 1.0.0\n */\nasync function dirname(path) {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'dirname',\n path\n }\n });\n}\n/**\n * Returns the extension of the `path`.\n * @example\n * ```typescript\n * import { extname } from '@tauri-apps/api/path';\n * const ext = await extname('/path/to/file.html');\n * assert(ext === 'html');\n * ```\n *\n * @since 1.0.0\n */\nasync function extname(path) {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'extname',\n path\n }\n });\n}\n/**\n * Returns the last portion of a `path`. Trailing directory separators are ignored.\n * @example\n * ```typescript\n * import { basename } from '@tauri-apps/api/path';\n * const base = await basename('path/to/app.conf');\n * assert(base === 'app.conf');\n * ```\n *\n * @param ext An optional file extension to be removed from the returned path.\n *\n * @since 1.0.0\n */\nasync function basename(path, ext) {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'basename',\n path,\n ext\n }\n });\n}\n/**\n * Returns whether the path is absolute or not.\n * @example\n * ```typescript\n * import { isAbsolute } from '@tauri-apps/api/path';\n * assert(await isAbsolute('/home/tauri'));\n * ```\n *\n * @since 1.0.0\n */\nasync function isAbsolute(path) {\n return invokeTauriCommand({\n __tauriModule: 'Path',\n message: {\n cmd: 'isAbsolute',\n path\n }\n });\n}\n\nexport { BaseDirectory, appCacheDir, appConfigDir, appDataDir, appDir, appLocalDataDir, appLogDir, audioDir, basename, cacheDir, configDir, dataDir, delimiter, desktopDir, dirname, documentDir, downloadDir, executableDir, extname, fontDir, homeDir, isAbsolute, join, localDataDir, logDir, normalize, pictureDir, publicDir, resolve, resolveResource, resourceDir, runtimeDir, sep, templateDir, videoDir };\n",
21
20
  "import { invokeTauriCommand } from './helpers/tauri.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Perform operations on the current process.\n *\n * This package is also accessible with `window.__TAURI__.process` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.\n * @module\n */\n/**\n * Exits immediately with the given `exitCode`.\n * @example\n * ```typescript\n * import { exit } from '@tauri-apps/api/process';\n * await exit(1);\n * ```\n *\n * @param exitCode The exit code to use.\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 1.0.0\n */\nasync function exit(exitCode = 0) {\n return invokeTauriCommand({\n __tauriModule: 'Process',\n message: {\n cmd: 'exit',\n exitCode\n }\n });\n}\n/**\n * Exits the current instance of the app then relaunches it.\n * @example\n * ```typescript\n * import { relaunch } from '@tauri-apps/api/process';\n * await relaunch();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 1.0.0\n */\nasync function relaunch() {\n return invokeTauriCommand({\n __tauriModule: 'Process',\n message: {\n cmd: 'relaunch'\n }\n });\n}\n\nexport { exit, relaunch };\n",
21
+ "import { invokeTauriCommand } from './helpers/tauri.js';\nimport { transformCallback } from './tauri.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Access the system shell.\n * Allows you to spawn child processes and manage files and URLs using their default application.\n *\n * This package is also accessible with `window.__TAURI__.shell` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.\n *\n * The APIs must be added to [`tauri.allowlist.shell`](https://tauri.app/v1/api/config/#allowlistconfig.shell) in `tauri.conf.json`:\n * ```json\n * {\n * \"tauri\": {\n * \"allowlist\": {\n * \"shell\": {\n * \"all\": true, // enable all shell APIs\n * \"execute\": true, // enable process spawn APIs\n * \"sidecar\": true, // enable spawning sidecars\n * \"open\": true // enable opening files/URLs using the default program\n * }\n * }\n * }\n * }\n * ```\n * It is recommended to allowlist only the APIs you use for optimal bundle size and security.\n *\n * ## Security\n *\n * This API has a scope configuration that forces you to restrict the programs and arguments that can be used.\n *\n * ### Restricting access to the {@link open | `open`} API\n *\n * On the allowlist, `open: true` means that the {@link open} API can be used with any URL,\n * as the argument is validated with the `^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+` regex.\n * You can change that regex by changing the boolean value to a string, e.g. `open: ^https://github.com/`.\n *\n * ### Restricting access to the {@link Command | `Command`} APIs\n *\n * The `shell` allowlist object has a `scope` field that defines an array of CLIs that can be used.\n * Each CLI is a configuration object `{ name: string, cmd: string, sidecar?: bool, args?: boolean | Arg[] }`.\n *\n * - `name`: the unique identifier of the command, passed to the {@link Command.constructor | Command constructor}.\n * If it's a sidecar, this must be the value defined on `tauri.conf.json > tauri > bundle > externalBin`.\n * - `cmd`: the program that is executed on this configuration. If it's a sidecar, this value is ignored.\n * - `sidecar`: whether the object configures a sidecar or a system program.\n * - `args`: the arguments that can be passed to the program. By default no arguments are allowed.\n * - `true` means that any argument list is allowed.\n * - `false` means that no arguments are allowed.\n * - otherwise an array can be configured. Each item is either a string representing the fixed argument value\n * or a `{ validator: string }` that defines a regex validating the argument value.\n *\n * #### Example scope configuration\n *\n * CLI: `git commit -m \"the commit message\"`\n *\n * Configuration:\n * ```json\n * {\n * \"scope\": [\n * {\n * \"name\": \"run-git-commit\",\n * \"cmd\": \"git\",\n * \"args\": [\"commit\", \"-m\", { \"validator\": \"\\\\S+\" }]\n * }\n * ]\n * }\n * ```\n * Usage:\n * ```typescript\n * import { Command } from '@tauri-apps/api/shell'\n * new Command('run-git-commit', ['commit', '-m', 'the commit message'])\n * ```\n *\n * Trying to execute any API with a program not configured on the scope results in a promise rejection due to denied access.\n *\n * @module\n */\n/**\n * @since 1.0.0\n */\nclass EventEmitter {\n constructor() {\n /** @ignore */\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n this.eventListeners = Object.create(null);\n }\n /**\n * Alias for `emitter.on(eventName, listener)`.\n *\n * @since 1.1.0\n */\n addListener(eventName, listener) {\n return this.on(eventName, listener);\n }\n /**\n * Alias for `emitter.off(eventName, listener)`.\n *\n * @since 1.1.0\n */\n removeListener(eventName, listener) {\n return this.off(eventName, listener);\n }\n /**\n * Adds the `listener` function to the end of the listeners array for the\n * event named `eventName`. No checks are made to see if the `listener` has\n * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple\n * times.\n *\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.0.0\n */\n on(eventName, listener) {\n if (eventName in this.eventListeners) {\n // eslint-disable-next-line security/detect-object-injection\n this.eventListeners[eventName].push(listener);\n }\n else {\n // eslint-disable-next-line security/detect-object-injection\n this.eventListeners[eventName] = [listener];\n }\n return this;\n }\n /**\n * Adds a **one-time**`listener` function for the event named `eventName`. The\n * next time `eventName` is triggered, this listener is removed and then invoked.\n *\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.1.0\n */\n once(eventName, listener) {\n const wrapper = (...args) => {\n this.removeListener(eventName, wrapper);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n listener(...args);\n };\n return this.addListener(eventName, wrapper);\n }\n /**\n * Removes the all specified listener from the listener array for the event eventName\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.1.0\n */\n off(eventName, listener) {\n if (eventName in this.eventListeners) {\n // eslint-disable-next-line security/detect-object-injection\n this.eventListeners[eventName] = this.eventListeners[eventName].filter((l) => l !== listener);\n }\n return this;\n }\n /**\n * Removes all listeners, or those of the specified eventName.\n *\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.1.0\n */\n removeAllListeners(event) {\n if (event) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete,security/detect-object-injection\n delete this.eventListeners[event];\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n this.eventListeners = Object.create(null);\n }\n return this;\n }\n /**\n * @ignore\n * Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments\n * to each.\n *\n * @returns `true` if the event had listeners, `false` otherwise.\n */\n emit(eventName, ...args) {\n if (eventName in this.eventListeners) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,security/detect-object-injection\n const listeners = this.eventListeners[eventName];\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n for (const listener of listeners)\n listener(...args);\n return true;\n }\n return false;\n }\n /**\n * Returns the number of listeners listening to the event named `eventName`.\n *\n * @since 1.1.0\n */\n listenerCount(eventName) {\n if (eventName in this.eventListeners)\n // eslint-disable-next-line security/detect-object-injection\n return this.eventListeners[eventName].length;\n return 0;\n }\n /**\n * Adds the `listener` function to the _beginning_ of the listeners array for the\n * event named `eventName`. No checks are made to see if the `listener` has\n * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple\n * times.\n *\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.1.0\n */\n prependListener(eventName, listener) {\n if (eventName in this.eventListeners) {\n // eslint-disable-next-line security/detect-object-injection\n this.eventListeners[eventName].unshift(listener);\n }\n else {\n // eslint-disable-next-line security/detect-object-injection\n this.eventListeners[eventName] = [listener];\n }\n return this;\n }\n /**\n * Adds a **one-time**`listener` function for the event named `eventName` to the_beginning_ of the listeners array. The next time `eventName` is triggered, this\n * listener is removed, and then invoked.\n *\n * Returns a reference to the `EventEmitter`, so that calls can be chained.\n *\n * @since 1.1.0\n */\n prependOnceListener(eventName, listener) {\n const wrapper = (...args) => {\n this.removeListener(eventName, wrapper);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n listener(...args);\n };\n return this.prependListener(eventName, wrapper);\n }\n}\n/**\n * @since 1.1.0\n */\nclass Child {\n constructor(pid) {\n this.pid = pid;\n }\n /**\n * Writes `data` to the `stdin`.\n *\n * @param data The message to write, either a string or a byte array.\n * @example\n * ```typescript\n * import { Command } from '@tauri-apps/api/shell';\n * const command = new Command('node');\n * const child = await command.spawn();\n * await child.write('message');\n * await child.write([0, 1, 2, 3, 4, 5]);\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async write(data) {\n return invokeTauriCommand({\n __tauriModule: 'Shell',\n message: {\n cmd: 'stdinWrite',\n pid: this.pid,\n // correctly serialize Uint8Arrays\n buffer: typeof data === 'string' ? data : Array.from(data)\n }\n });\n }\n /**\n * Kills the child process.\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async kill() {\n return invokeTauriCommand({\n __tauriModule: 'Shell',\n message: {\n cmd: 'killChild',\n pid: this.pid\n }\n });\n }\n}\n/**\n * The entry point for spawning child processes.\n * It emits the `close` and `error` events.\n * @example\n * ```typescript\n * import { Command } from '@tauri-apps/api/shell';\n * const command = new Command('node');\n * command.on('close', data => {\n * console.log(`command finished with code ${data.code} and signal ${data.signal}`)\n * });\n * command.on('error', error => console.error(`command error: \"${error}\"`));\n * command.stdout.on('data', line => console.log(`command stdout: \"${line}\"`));\n * command.stderr.on('data', line => console.log(`command stderr: \"${line}\"`));\n *\n * const child = await command.spawn();\n * console.log('pid:', child.pid);\n * ```\n *\n * @since 1.1.0\n *\n */\nclass Command extends EventEmitter {\n /**\n * Creates a new `Command` instance.\n *\n * @param program The program name to execute.\n * It must be configured on `tauri.conf.json > tauri > allowlist > shell > scope`.\n * @param args Program arguments.\n * @param options Spawn options.\n */\n constructor(program, args = [], options) {\n super();\n /** Event emitter for the `stdout`. Emits the `data` event. */\n this.stdout = new EventEmitter();\n /** Event emitter for the `stderr`. Emits the `data` event. */\n this.stderr = new EventEmitter();\n this.program = program;\n this.args = typeof args === 'string' ? [args] : args;\n this.options = options !== null && options !== void 0 ? options : {};\n }\n /**\n * Creates a command to execute the given sidecar program.\n * @example\n * ```typescript\n * import { Command } from '@tauri-apps/api/shell';\n * const command = Command.sidecar('my-sidecar');\n * const output = await command.execute();\n * ```\n *\n * @param program The program to execute.\n * It must be configured on `tauri.conf.json > tauri > allowlist > shell > scope`.\n */\n static sidecar(program, args = [], options) {\n const instance = new Command(program, args, options);\n instance.options.sidecar = true;\n return instance;\n }\n /**\n * Executes the command as a child process, returning a handle to it.\n *\n * @returns A promise resolving to the child process handle.\n */\n async spawn() {\n const program = this.program;\n const args = this.args;\n const options = this.options;\n if (typeof args === 'object') {\n Object.freeze(args);\n }\n const onEvent = (event) => {\n switch (event.event) {\n case 'Error':\n this.emit('error', event.payload);\n break;\n case 'Terminated':\n this.emit('close', event.payload);\n break;\n case 'Stdout':\n this.stdout.emit('data', event.payload);\n break;\n case 'Stderr':\n this.stderr.emit('data', event.payload);\n break;\n }\n };\n return invokeTauriCommand({\n __tauriModule: 'Shell',\n message: {\n cmd: 'execute',\n program,\n args,\n options,\n onEventFn: transformCallback(onEvent)\n }\n }).then((pid) => new Child(pid));\n }\n /**\n * Executes the command as a child process, waiting for it to finish and collecting all of its output.\n * @example\n * ```typescript\n * import { Command } from '@tauri-apps/api/shell';\n * const output = await new Command('echo', 'message').execute();\n * assert(output.code === 0);\n * assert(output.signal === null);\n * assert(output.stdout === 'message');\n * assert(output.stderr === '');\n * ```\n *\n * @returns A promise resolving to the child process output.\n */\n async execute() {\n const program = this.program;\n const args = this.args;\n const options = this.options;\n if (typeof args === 'object') {\n Object.freeze(args);\n }\n return invokeTauriCommand({\n __tauriModule: 'Shell',\n message: {\n cmd: 'executeAndReturn',\n program,\n args,\n options\n }\n });\n }\n}\n/**\n * Opens a path or URL with the system's default app,\n * or the one specified with `openWith`.\n *\n * The `openWith` value must be one of `firefox`, `google chrome`, `chromium` `safari`,\n * `open`, `start`, `xdg-open`, `gio`, `gnome-open`, `kde-open` or `wslview`.\n *\n * @example\n * ```typescript\n * import { open } from '@tauri-apps/api/shell';\n * // opens the given URL on the default browser:\n * await open('https://github.com/tauri-apps/tauri');\n * // opens the given URL using `firefox`:\n * await open('https://github.com/tauri-apps/tauri', 'firefox');\n * // opens a file using the default program:\n * await open('/path/to/file');\n * ```\n *\n * @param path The path or URL to open.\n * This value is matched against the string regex defined on `tauri.conf.json > tauri > allowlist > shell > open`,\n * which defaults to `^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+`.\n * @param openWith The app to open the file or URL with.\n * Defaults to the system default application for the specified path type.\n *\n * @since 1.0.0\n */\nasync function open(path, openWith) {\n return invokeTauriCommand({\n __tauriModule: 'Shell',\n message: {\n cmd: 'open',\n path,\n with: openWith\n }\n });\n}\n\nexport { Child, Command, EventEmitter, open };\n",
22
22
  "import { listen, TauriEvent, emit, once } from './event.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Customize the auto updater flow.\n *\n * This package is also accessible with `window.__TAURI__.updater` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.\n * @module\n */\n/**\n * Listen to an updater event.\n * @example\n * ```typescript\n * import { onUpdaterEvent } from \"@tauri-apps/api/updater\";\n * const unlisten = await onUpdaterEvent(({ error, status }) => {\n * console.log('Updater event', error, status);\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * @returns A promise resolving to a function to unlisten to the event.\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @since 1.0.2\n */\nasync function onUpdaterEvent(handler) {\n return listen(TauriEvent.STATUS_UPDATE, (data) => {\n handler(data === null || data === void 0 ? void 0 : data.payload);\n });\n}\n/**\n * Install the update if there's one available.\n * @example\n * ```typescript\n * import { checkUpdate, installUpdate } from '@tauri-apps/api/updater';\n * const update = await checkUpdate();\n * if (update.shouldUpdate) {\n * console.log(`Installing update ${update.manifest?.version}, ${update.manifest?.date}, ${update.manifest.body}`);\n * await installUpdate();\n * }\n * ```\n *\n * @return A promise indicating the success or failure of the operation.\n *\n * @since 1.0.0\n */\nasync function installUpdate() {\n let unlistenerFn;\n function cleanListener() {\n if (unlistenerFn) {\n unlistenerFn();\n }\n unlistenerFn = undefined;\n }\n return new Promise((resolve, reject) => {\n function onStatusChange(statusResult) {\n if (statusResult.error) {\n cleanListener();\n reject(statusResult.error);\n return;\n }\n // install complete\n if (statusResult.status === 'DONE') {\n cleanListener();\n resolve();\n }\n }\n // listen status change\n onUpdaterEvent(onStatusChange)\n .then((fn) => {\n unlistenerFn = fn;\n })\n .catch((e) => {\n cleanListener();\n // dispatch the error to our checkUpdate\n throw e;\n });\n // start the process we dont require much security as it's\n // handled by rust\n emit(TauriEvent.INSTALL_UPDATE).catch((e) => {\n cleanListener();\n // dispatch the error to our checkUpdate\n throw e;\n });\n });\n}\n/**\n * Checks if an update is available.\n * @example\n * ```typescript\n * import { checkUpdate } from '@tauri-apps/api/updater';\n * const update = await checkUpdate();\n * // now run installUpdate() if needed\n * ```\n *\n * @return Promise resolving to the update status.\n *\n * @since 1.0.0\n */\nasync function checkUpdate() {\n let unlistenerFn;\n function cleanListener() {\n if (unlistenerFn) {\n unlistenerFn();\n }\n unlistenerFn = undefined;\n }\n return new Promise((resolve, reject) => {\n function onUpdateAvailable(manifest) {\n cleanListener();\n resolve({\n manifest,\n shouldUpdate: true\n });\n }\n function onStatusChange(statusResult) {\n if (statusResult.error) {\n cleanListener();\n reject(statusResult.error);\n return;\n }\n if (statusResult.status === 'UPTODATE') {\n cleanListener();\n resolve({\n shouldUpdate: false\n });\n }\n }\n // wait to receive the latest update\n once(TauriEvent.UPDATE_AVAILABLE, (data) => {\n onUpdateAvailable(data === null || data === void 0 ? void 0 : data.payload);\n }).catch((e) => {\n cleanListener();\n // dispatch the error to our checkUpdate\n throw e;\n });\n // listen status change\n onUpdaterEvent(onStatusChange)\n .then((fn) => {\n unlistenerFn = fn;\n })\n .catch((e) => {\n cleanListener();\n // dispatch the error to our checkUpdate\n throw e;\n });\n // start the process\n emit(TauriEvent.CHECK_UPDATE).catch((e) => {\n cleanListener();\n // dispatch the error to our checkUpdate\n throw e;\n });\n });\n}\n\nexport { checkUpdate, installUpdate, onUpdaterEvent };\n",
23
23
  "import { invokeTauriCommand } from './helpers/tauri.js';\nimport { listen, once, emit } from './helpers/event.js';\nimport { TauriEvent } from './event.js';\n\n// Copyright 2019-2023 Tauri Programme within The Commons Conservancy\n// SPDX-License-Identifier: Apache-2.0\n// SPDX-License-Identifier: MIT\n/**\n * Provides APIs to create windows, communicate with other windows and manipulate the current window.\n *\n * This package is also accessible with `window.__TAURI__.window` when [`build.withGlobalTauri`](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in `tauri.conf.json` is set to `true`.\n *\n * The APIs must be added to [`tauri.allowlist.window`](https://tauri.app/v1/api/config/#allowlistconfig.window) in `tauri.conf.json`:\n * ```json\n * {\n * \"tauri\": {\n * \"allowlist\": {\n * \"window\": {\n * \"all\": true, // enable all window APIs\n * \"create\": true, // enable window creation\n * \"center\": true,\n * \"requestUserAttention\": true,\n * \"setResizable\": true,\n * \"setMaximizable\": true,\n * \"setMinimizable\": true,\n * \"setClosable\": true,\n * \"setTitle\": true,\n * \"maximize\": true,\n * \"unmaximize\": true,\n * \"minimize\": true,\n * \"unminimize\": true,\n * \"show\": true,\n * \"hide\": true,\n * \"close\": true,\n * \"setDecorations\": true,\n * \"setAlwaysOnTop\": true,\n * \"setContentProtected\": true,\n * \"setSize\": true,\n * \"setMinSize\": true,\n * \"setMaxSize\": true,\n * \"setPosition\": true,\n * \"setFullscreen\": true,\n * \"setFocus\": true,\n * \"setIcon\": true,\n * \"setSkipTaskbar\": true,\n * \"setCursorGrab\": true,\n * \"setCursorVisible\": true,\n * \"setCursorIcon\": true,\n * \"setCursorPosition\": true,\n * \"setIgnoreCursorEvents\": true,\n * \"startDragging\": true,\n * \"print\": true\n * }\n * }\n * }\n * }\n * ```\n * It is recommended to allowlist only the APIs you use for optimal bundle size and security.\n *\n * ## Window events\n *\n * Events can be listened to using `appWindow.listen`:\n * ```typescript\n * import { appWindow } from \"@tauri-apps/api/window\";\n * appWindow.listen(\"my-window-event\", ({ event, payload }) => { });\n * ```\n *\n * @module\n */\n/**\n * A size represented in logical pixels.\n *\n * @since 1.0.0\n */\nclass LogicalSize {\n constructor(width, height) {\n this.type = 'Logical';\n this.width = width;\n this.height = height;\n }\n}\n/**\n * A size represented in physical pixels.\n *\n * @since 1.0.0\n */\nclass PhysicalSize {\n constructor(width, height) {\n this.type = 'Physical';\n this.width = width;\n this.height = height;\n }\n /**\n * Converts the physical size to a logical one.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const factor = await appWindow.scaleFactor();\n * const size = await appWindow.innerSize();\n * const logical = size.toLogical(factor);\n * ```\n * */\n toLogical(scaleFactor) {\n return new LogicalSize(this.width / scaleFactor, this.height / scaleFactor);\n }\n}\n/**\n * A position represented in logical pixels.\n *\n * @since 1.0.0\n */\nclass LogicalPosition {\n constructor(x, y) {\n this.type = 'Logical';\n this.x = x;\n this.y = y;\n }\n}\n/**\n * A position represented in physical pixels.\n *\n * @since 1.0.0\n */\nclass PhysicalPosition {\n constructor(x, y) {\n this.type = 'Physical';\n this.x = x;\n this.y = y;\n }\n /**\n * Converts the physical position to a logical one.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const factor = await appWindow.scaleFactor();\n * const position = await appWindow.innerPosition();\n * const logical = position.toLogical(factor);\n * ```\n * */\n toLogical(scaleFactor) {\n return new LogicalPosition(this.x / scaleFactor, this.y / scaleFactor);\n }\n}\n/**\n * Attention type to request on a window.\n *\n * @since 1.0.0\n */\nvar UserAttentionType;\n(function (UserAttentionType) {\n /**\n * #### Platform-specific\n * - **macOS:** Bounces the dock icon until the application is in focus.\n * - **Windows:** Flashes both the window and the taskbar button until the application is in focus.\n */\n UserAttentionType[UserAttentionType[\"Critical\"] = 1] = \"Critical\";\n /**\n * #### Platform-specific\n * - **macOS:** Bounces the dock icon once.\n * - **Windows:** Flashes the taskbar button until the application is in focus.\n */\n UserAttentionType[UserAttentionType[\"Informational\"] = 2] = \"Informational\";\n})(UserAttentionType || (UserAttentionType = {}));\n/**\n * Get an instance of `WebviewWindow` for the current webview window.\n *\n * @since 1.0.0\n */\nfunction getCurrent() {\n return new WebviewWindow(window.__TAURI_METADATA__.__currentWindow.label, {\n // @ts-expect-error `skip` is not defined in the public API but it is handled by the constructor\n skip: true\n });\n}\n/**\n * Gets a list of instances of `WebviewWindow` for all available webview windows.\n *\n * @since 1.0.0\n */\nfunction getAll() {\n return window.__TAURI_METADATA__.__windows.map((w) => new WebviewWindow(w.label, {\n // @ts-expect-error `skip` is not defined in the public API but it is handled by the constructor\n skip: true\n }));\n}\n/** @ignore */\n// events that are emitted right here instead of by the created webview\nconst localTauriEvents = ['tauri://created', 'tauri://error'];\n/**\n * A webview window handle allows emitting and listening to events from the backend that are tied to the window.\n *\n * @ignore\n * @since 1.0.0\n */\nclass WebviewWindowHandle {\n constructor(label) {\n this.label = label;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n this.listeners = Object.create(null);\n }\n /**\n * Listen to an event emitted by the backend or webview.\n * The event must either be a global event or an event targetting this window.\n *\n * See {@link WebviewWindow.emit | `emit`} for more information.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const unlisten = await appWindow.listen<string>('state-changed', (event) => {\n * console.log(`Got error: ${payload}`);\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @param event Event name. Must include only alphanumeric characters, `-`, `/`, `:` and `_`.\n * @param handler Event handler.\n * @returns A promise resolving to a function to unlisten to the event.\n */\n async listen(event, handler) {\n if (this._handleTauriEvent(event, handler)) {\n return Promise.resolve(() => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, security/detect-object-injection\n const listeners = this.listeners[event];\n listeners.splice(listeners.indexOf(handler), 1);\n });\n }\n return listen(event, this.label, handler);\n }\n /**\n * Listen to an one-off event.\n * See {@link WebviewWindow.listen | `listen`} for more information.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const unlisten = await appWindow.once<null>('initialized', (event) => {\n * console.log(`Window initialized!`);\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @param event Event name. Must include only alphanumeric characters, `-`, `/`, `:` and `_`.\n * @param handler Event handler.\n * @returns A promise resolving to a function to unlisten to the event.\n */\n async once(event, handler) {\n if (this._handleTauriEvent(event, handler)) {\n return Promise.resolve(() => {\n // eslint-disable-next-line security/detect-object-injection\n const listeners = this.listeners[event];\n listeners.splice(listeners.indexOf(handler), 1);\n });\n }\n return once(event, this.label, handler);\n }\n /**\n * Emits an event to the backend and all Tauri windows.\n * The event will have this window's {@link WebviewWindow.label | label} as {@link Event.windowLabel | source window label}.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.emit('window-loaded', { loggedIn: true, token: 'authToken' });\n * ```\n *\n * This function can also be used to communicate between windows:\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.listen('sync-data', (event) => { });\n *\n * // on another window...\n * import { WebviewWindow } from '@tauri-apps/api/window';\n * const otherWindow = WebviewWindow.getByLabel('other')\n * await otherWindow.emit('sync-data');\n * ```\n *\n * Global listeners are also triggered:\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * import { listen } from '@tauri-apps/api/event';\n * await listen('ping', (event) => { });\n *\n * await appWindow.emit('ping');\n * ```\n *\n * @param event Event name. Must include only alphanumeric characters, `-`, `/`, `:` and `_`.\n * @param payload Event payload.\n */\n async emit(event, payload) {\n if (localTauriEvents.includes(event)) {\n // eslint-disable-next-line\n for (const handler of this.listeners[event] || []) {\n handler({ event, id: -1, windowLabel: this.label, payload });\n }\n return Promise.resolve();\n }\n return emit(event, this.label, payload);\n }\n /** @ignore */\n _handleTauriEvent(event, handler) {\n if (localTauriEvents.includes(event)) {\n if (!(event in this.listeners)) {\n // eslint-disable-next-line\n this.listeners[event] = [handler];\n }\n else {\n // eslint-disable-next-line\n this.listeners[event].push(handler);\n }\n return true;\n }\n return false;\n }\n}\n/**\n * Manage the current window object.\n *\n * @ignore\n * @since 1.0.0\n */\nclass WindowManager extends WebviewWindowHandle {\n // Getters\n /**\n * The scale factor that can be used to map physical pixels to logical pixels.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const factor = await appWindow.scaleFactor();\n * ```\n *\n * @returns The window's monitor scale factor.\n * */\n async scaleFactor() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'scaleFactor'\n }\n }\n }\n });\n }\n /**\n * The position of the top-left hand corner of the window's client area relative to the top-left hand corner of the desktop.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const position = await appWindow.innerPosition();\n * ```\n *\n * @returns The window's inner position.\n * */\n async innerPosition() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'innerPosition'\n }\n }\n }\n }).then(({ x, y }) => new PhysicalPosition(x, y));\n }\n /**\n * The position of the top-left hand corner of the window relative to the top-left hand corner of the desktop.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const position = await appWindow.outerPosition();\n * ```\n *\n * @returns The window's outer position.\n * */\n async outerPosition() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'outerPosition'\n }\n }\n }\n }).then(({ x, y }) => new PhysicalPosition(x, y));\n }\n /**\n * The physical size of the window's client area.\n * The client area is the content of the window, excluding the title bar and borders.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const size = await appWindow.innerSize();\n * ```\n *\n * @returns The window's inner size.\n */\n async innerSize() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'innerSize'\n }\n }\n }\n }).then(({ width, height }) => new PhysicalSize(width, height));\n }\n /**\n * The physical size of the entire window.\n * These dimensions include the title bar and borders. If you don't want that (and you usually don't), use inner_size instead.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const size = await appWindow.outerSize();\n * ```\n *\n * @returns The window's outer size.\n */\n async outerSize() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'outerSize'\n }\n }\n }\n }).then(({ width, height }) => new PhysicalSize(width, height));\n }\n /**\n * Gets the window's current fullscreen state.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const fullscreen = await appWindow.isFullscreen();\n * ```\n *\n * @returns Whether the window is in fullscreen mode or not.\n * */\n async isFullscreen() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'isFullscreen'\n }\n }\n }\n });\n }\n /**\n * Gets the window's current minimized state.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const minimized = await appWindow.isMinimized();\n * ```\n *\n * @since 1.3.0\n * */\n async isMinimized() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'isMinimized'\n }\n }\n }\n });\n }\n /**\n * Gets the window's current maximized state.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const maximized = await appWindow.isMaximized();\n * ```\n *\n * @returns Whether the window is maximized or not.\n * */\n async isMaximized() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'isMaximized'\n }\n }\n }\n });\n }\n /**\n * Gets the window's current focus state.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const focused = await appWindow.isFocused();\n * ```\n *\n * @returns Whether the window is focused or not.\n *\n * @since 1.4\n * */\n async isFocused() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'isFocused'\n }\n }\n }\n });\n }\n /**\n * Gets the window's current decorated state.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const decorated = await appWindow.isDecorated();\n * ```\n *\n * @returns Whether the window is decorated or not.\n * */\n async isDecorated() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'isDecorated'\n }\n }\n }\n });\n }\n /**\n * Gets the window's current resizable state.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const resizable = await appWindow.isResizable();\n * ```\n *\n * @returns Whether the window is resizable or not.\n * */\n async isResizable() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'isResizable'\n }\n }\n }\n });\n }\n /**\n * Gets the window’s native maximize button state.\n *\n * #### Platform-specific\n *\n * - **Linux / iOS / Android:** Unsupported.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const maximizable = await appWindow.isMaximizable();\n * ```\n *\n * @returns Whether the window's native maximize button is enabled or not.\n * */\n async isMaximizable() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'isMaximizable'\n }\n }\n }\n });\n }\n /**\n * Gets the window’s native minimize button state.\n *\n * #### Platform-specific\n *\n * - **Linux / iOS / Android:** Unsupported.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const minimizable = await appWindow.isMinimizable();\n * ```\n *\n * @returns Whether the window's native minimize button is enabled or not.\n * */\n async isMinimizable() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'isMinimizable'\n }\n }\n }\n });\n }\n /**\n * Gets the window’s native close button state.\n *\n * #### Platform-specific\n *\n * - **Linux / iOS / Android:** Unsupported.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const closable = await appWindow.isClosable();\n * ```\n *\n * @returns Whether the window's native close button is enabled or not.\n * */\n async isClosable() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'isClosable'\n }\n }\n }\n });\n }\n /**\n * Gets the window's current visible state.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const visible = await appWindow.isVisible();\n * ```\n *\n * @returns Whether the window is visible or not.\n * */\n async isVisible() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'isVisible'\n }\n }\n }\n });\n }\n /**\n * Gets the window's current title.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const title = await appWindow.title();\n * ```\n *\n * @since 1.3.0\n * */\n async title() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'title'\n }\n }\n }\n });\n }\n /**\n * Gets the window's current theme.\n *\n * #### Platform-specific\n *\n * - **macOS:** Theme was introduced on macOS 10.14. Returns `light` on macOS 10.13 and below.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * const theme = await appWindow.theme();\n * ```\n *\n * @returns The window theme.\n * */\n async theme() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'theme'\n }\n }\n }\n });\n }\n // Setters\n /**\n * Centers the window.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.center();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async center() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'center'\n }\n }\n }\n });\n }\n /**\n * Requests user attention to the window, this has no effect if the application\n * is already focused. How requesting for user attention manifests is platform dependent,\n * see `UserAttentionType` for details.\n *\n * Providing `null` will unset the request for user attention. Unsetting the request for\n * user attention might not be done automatically by the WM when the window receives input.\n *\n * #### Platform-specific\n *\n * - **macOS:** `null` has no effect.\n * - **Linux:** Urgency levels have the same effect.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.requestUserAttention();\n * ```\n *\n * @param requestType\n * @returns A promise indicating the success or failure of the operation.\n */\n async requestUserAttention(requestType) {\n let requestType_ = null;\n if (requestType) {\n if (requestType === UserAttentionType.Critical) {\n requestType_ = { type: 'Critical' };\n }\n else {\n requestType_ = { type: 'Informational' };\n }\n }\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'requestUserAttention',\n payload: requestType_\n }\n }\n }\n });\n }\n /**\n * Updates the window resizable flag.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setResizable(false);\n * ```\n *\n * @param resizable\n * @returns A promise indicating the success or failure of the operation.\n */\n async setResizable(resizable) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setResizable',\n payload: resizable\n }\n }\n }\n });\n }\n /**\n * Sets whether the window's native maximize button is enabled or not.\n * If resizable is set to false, this setting is ignored.\n *\n * #### Platform-specific\n *\n * - **macOS:** Disables the \"zoom\" button in the window titlebar, which is also used to enter fullscreen mode.\n * - **Linux / iOS / Android:** Unsupported.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setMaximizable(false);\n * ```\n *\n * @param maximizable\n * @returns A promise indicating the success or failure of the operation.\n */\n async setMaximizable(maximizable) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setMaximizable',\n payload: maximizable\n }\n }\n }\n });\n }\n /**\n * Sets whether the window's native minimize button is enabled or not.\n *\n * #### Platform-specific\n *\n * - **Linux / iOS / Android:** Unsupported.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setMinimizable(false);\n * ```\n *\n * @param minimizable\n * @returns A promise indicating the success or failure of the operation.\n */\n async setMinimizable(minimizable) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setMinimizable',\n payload: minimizable\n }\n }\n }\n });\n }\n /**\n * Sets whether the window's native close button is enabled or not.\n *\n * #### Platform-specific\n *\n * - **Linux:** GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible\n * - **iOS / Android:** Unsupported.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setClosable(false);\n * ```\n *\n * @param closable\n * @returns A promise indicating the success or failure of the operation.\n */\n async setClosable(closable) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setClosable',\n payload: closable\n }\n }\n }\n });\n }\n /**\n * Sets the window title.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setTitle('Tauri');\n * ```\n *\n * @param title The new title\n * @returns A promise indicating the success or failure of the operation.\n */\n async setTitle(title) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setTitle',\n payload: title\n }\n }\n }\n });\n }\n /**\n * Maximizes the window.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.maximize();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async maximize() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'maximize'\n }\n }\n }\n });\n }\n /**\n * Unmaximizes the window.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.unmaximize();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async unmaximize() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'unmaximize'\n }\n }\n }\n });\n }\n /**\n * Toggles the window maximized state.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.toggleMaximize();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async toggleMaximize() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'toggleMaximize'\n }\n }\n }\n });\n }\n /**\n * Minimizes the window.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.minimize();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async minimize() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'minimize'\n }\n }\n }\n });\n }\n /**\n * Unminimizes the window.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.unminimize();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async unminimize() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'unminimize'\n }\n }\n }\n });\n }\n /**\n * Sets the window visibility to true.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.show();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async show() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'show'\n }\n }\n }\n });\n }\n /**\n * Sets the window visibility to false.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.hide();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async hide() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'hide'\n }\n }\n }\n });\n }\n /**\n * Closes the window.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.close();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async close() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'close'\n }\n }\n }\n });\n }\n /**\n * Whether the window should have borders and bars.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setDecorations(false);\n * ```\n *\n * @param decorations Whether the window should have borders and bars.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setDecorations(decorations) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setDecorations',\n payload: decorations\n }\n }\n }\n });\n }\n /**\n * Whether the window should always be on top of other windows.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setAlwaysOnTop(true);\n * ```\n *\n * @param alwaysOnTop Whether the window should always be on top of other windows or not.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setAlwaysOnTop(alwaysOnTop) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setAlwaysOnTop',\n payload: alwaysOnTop\n }\n }\n }\n });\n }\n /**\n * Prevents the window contents from being captured by other apps.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setContentProtected(true);\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n *\n * @since 1.2.0\n */\n async setContentProtected(protected_) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setContentProtected',\n payload: protected_\n }\n }\n }\n });\n }\n /**\n * Resizes the window with a new inner size.\n * @example\n * ```typescript\n * import { appWindow, LogicalSize } from '@tauri-apps/api/window';\n * await appWindow.setSize(new LogicalSize(600, 500));\n * ```\n *\n * @param size The logical or physical inner size.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setSize(size) {\n if (!size || (size.type !== 'Logical' && size.type !== 'Physical')) {\n throw new Error('the `size` argument must be either a LogicalSize or a PhysicalSize instance');\n }\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setSize',\n payload: {\n type: size.type,\n data: {\n width: size.width,\n height: size.height\n }\n }\n }\n }\n }\n });\n }\n /**\n * Sets the window minimum inner size. If the `size` argument is not provided, the constraint is unset.\n * @example\n * ```typescript\n * import { appWindow, PhysicalSize } from '@tauri-apps/api/window';\n * await appWindow.setMinSize(new PhysicalSize(600, 500));\n * ```\n *\n * @param size The logical or physical inner size, or `null` to unset the constraint.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setMinSize(size) {\n if (size && size.type !== 'Logical' && size.type !== 'Physical') {\n throw new Error('the `size` argument must be either a LogicalSize or a PhysicalSize instance');\n }\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setMinSize',\n payload: size\n ? {\n type: size.type,\n data: {\n width: size.width,\n height: size.height\n }\n }\n : null\n }\n }\n }\n });\n }\n /**\n * Sets the window maximum inner size. If the `size` argument is undefined, the constraint is unset.\n * @example\n * ```typescript\n * import { appWindow, LogicalSize } from '@tauri-apps/api/window';\n * await appWindow.setMaxSize(new LogicalSize(600, 500));\n * ```\n *\n * @param size The logical or physical inner size, or `null` to unset the constraint.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setMaxSize(size) {\n if (size && size.type !== 'Logical' && size.type !== 'Physical') {\n throw new Error('the `size` argument must be either a LogicalSize or a PhysicalSize instance');\n }\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setMaxSize',\n payload: size\n ? {\n type: size.type,\n data: {\n width: size.width,\n height: size.height\n }\n }\n : null\n }\n }\n }\n });\n }\n /**\n * Sets the window outer position.\n * @example\n * ```typescript\n * import { appWindow, LogicalPosition } from '@tauri-apps/api/window';\n * await appWindow.setPosition(new LogicalPosition(600, 500));\n * ```\n *\n * @param position The new position, in logical or physical pixels.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setPosition(position) {\n if (!position ||\n (position.type !== 'Logical' && position.type !== 'Physical')) {\n throw new Error('the `position` argument must be either a LogicalPosition or a PhysicalPosition instance');\n }\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setPosition',\n payload: {\n type: position.type,\n data: {\n x: position.x,\n y: position.y\n }\n }\n }\n }\n }\n });\n }\n /**\n * Sets the window fullscreen state.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setFullscreen(true);\n * ```\n *\n * @param fullscreen Whether the window should go to fullscreen or not.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setFullscreen(fullscreen) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setFullscreen',\n payload: fullscreen\n }\n }\n }\n });\n }\n /**\n * Bring the window to front and focus.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setFocus();\n * ```\n *\n * @returns A promise indicating the success or failure of the operation.\n */\n async setFocus() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setFocus'\n }\n }\n }\n });\n }\n /**\n * Sets the window icon.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setIcon('/tauri/awesome.png');\n * ```\n *\n * Note that you need the `icon-ico` or `icon-png` Cargo features to use this API.\n * To enable it, change your Cargo.toml file:\n * ```toml\n * [dependencies]\n * tauri = { version = \"...\", features = [\"...\", \"icon-png\"] }\n * ```\n *\n * @param icon Icon bytes or path to the icon file.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setIcon(icon) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setIcon',\n payload: {\n // correctly serialize Uint8Arrays\n icon: typeof icon === 'string' ? icon : Array.from(icon)\n }\n }\n }\n }\n });\n }\n /**\n * Whether the window icon should be hidden from the taskbar or not.\n *\n * #### Platform-specific\n *\n * - **macOS:** Unsupported.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setSkipTaskbar(true);\n * ```\n *\n * @param skip true to hide window icon, false to show it.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setSkipTaskbar(skip) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setSkipTaskbar',\n payload: skip\n }\n }\n }\n });\n }\n /**\n * Grabs the cursor, preventing it from leaving the window.\n *\n * There's no guarantee that the cursor will be hidden. You should\n * hide it by yourself if you want so.\n *\n * #### Platform-specific\n *\n * - **Linux:** Unsupported.\n * - **macOS:** This locks the cursor in a fixed location, which looks visually awkward.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setCursorGrab(true);\n * ```\n *\n * @param grab `true` to grab the cursor icon, `false` to release it.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setCursorGrab(grab) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setCursorGrab',\n payload: grab\n }\n }\n }\n });\n }\n /**\n * Modifies the cursor's visibility.\n *\n * #### Platform-specific\n *\n * - **Windows:** The cursor is only hidden within the confines of the window.\n * - **macOS:** The cursor is hidden as long as the window has input focus, even if the cursor is\n * outside of the window.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setCursorVisible(false);\n * ```\n *\n * @param visible If `false`, this will hide the cursor. If `true`, this will show the cursor.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setCursorVisible(visible) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setCursorVisible',\n payload: visible\n }\n }\n }\n });\n }\n /**\n * Modifies the cursor icon of the window.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setCursorIcon('help');\n * ```\n *\n * @param icon The new cursor icon.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setCursorIcon(icon) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setCursorIcon',\n payload: icon\n }\n }\n }\n });\n }\n /**\n * Changes the position of the cursor in window coordinates.\n * @example\n * ```typescript\n * import { appWindow, LogicalPosition } from '@tauri-apps/api/window';\n * await appWindow.setCursorPosition(new LogicalPosition(600, 300));\n * ```\n *\n * @param position The new cursor position.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setCursorPosition(position) {\n if (!position ||\n (position.type !== 'Logical' && position.type !== 'Physical')) {\n throw new Error('the `position` argument must be either a LogicalPosition or a PhysicalPosition instance');\n }\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setCursorPosition',\n payload: {\n type: position.type,\n data: {\n x: position.x,\n y: position.y\n }\n }\n }\n }\n }\n });\n }\n /**\n * Changes the cursor events behavior.\n *\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.setIgnoreCursorEvents(true);\n * ```\n *\n * @param ignore `true` to ignore the cursor events; `false` to process them as usual.\n * @returns A promise indicating the success or failure of the operation.\n */\n async setIgnoreCursorEvents(ignore) {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'setIgnoreCursorEvents',\n payload: ignore\n }\n }\n }\n });\n }\n /**\n * Starts dragging the window.\n * @example\n * ```typescript\n * import { appWindow } from '@tauri-apps/api/window';\n * await appWindow.startDragging();\n * ```\n *\n * @return A promise indicating the success or failure of the operation.\n */\n async startDragging() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n label: this.label,\n cmd: {\n type: 'startDragging'\n }\n }\n }\n });\n }\n // Listeners\n /**\n * Listen to window resize.\n *\n * @example\n * ```typescript\n * import { appWindow } from \"@tauri-apps/api/window\";\n * const unlisten = await appWindow.onResized(({ payload: size }) => {\n * console.log('Window resized', size);\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * @returns A promise resolving to a function to unlisten to the event.\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @since 1.0.2\n */\n async onResized(handler) {\n return this.listen(TauriEvent.WINDOW_RESIZED, (e) => {\n e.payload = mapPhysicalSize(e.payload);\n handler(e);\n });\n }\n /**\n * Listen to window move.\n *\n * @example\n * ```typescript\n * import { appWindow } from \"@tauri-apps/api/window\";\n * const unlisten = await appWindow.onMoved(({ payload: position }) => {\n * console.log('Window moved', position);\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * @returns A promise resolving to a function to unlisten to the event.\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @since 1.0.2\n */\n async onMoved(handler) {\n return this.listen(TauriEvent.WINDOW_MOVED, (e) => {\n e.payload = mapPhysicalPosition(e.payload);\n handler(e);\n });\n }\n /**\n * Listen to window close requested. Emitted when the user requests to closes the window.\n *\n * @example\n * ```typescript\n * import { appWindow } from \"@tauri-apps/api/window\";\n * import { confirm } from '@tauri-apps/api/dialog';\n * const unlisten = await appWindow.onCloseRequested(async (event) => {\n * const confirmed = await confirm('Are you sure?');\n * if (!confirmed) {\n * // user did not confirm closing the window; let's prevent it\n * event.preventDefault();\n * }\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * @returns A promise resolving to a function to unlisten to the event.\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @since 1.0.2\n */\n /* eslint-disable @typescript-eslint/promise-function-async */\n async onCloseRequested(handler) {\n return this.listen(TauriEvent.WINDOW_CLOSE_REQUESTED, (event) => {\n const evt = new CloseRequestedEvent(event);\n void Promise.resolve(handler(evt)).then(() => {\n if (!evt.isPreventDefault()) {\n return this.close();\n }\n });\n });\n }\n /* eslint-enable */\n /**\n * Listen to window focus change.\n *\n * @example\n * ```typescript\n * import { appWindow } from \"@tauri-apps/api/window\";\n * const unlisten = await appWindow.onFocusChanged(({ payload: focused }) => {\n * console.log('Focus changed, window is focused? ' + focused);\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * @returns A promise resolving to a function to unlisten to the event.\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @since 1.0.2\n */\n async onFocusChanged(handler) {\n const unlistenFocus = await this.listen(TauriEvent.WINDOW_FOCUS, (event) => {\n handler({ ...event, payload: true });\n });\n const unlistenBlur = await this.listen(TauriEvent.WINDOW_BLUR, (event) => {\n handler({ ...event, payload: false });\n });\n return () => {\n unlistenFocus();\n unlistenBlur();\n };\n }\n /**\n * Listen to window scale change. Emitted when the window's scale factor has changed.\n * The following user actions can cause DPI changes:\n * - Changing the display's resolution.\n * - Changing the display's scale factor (e.g. in Control Panel on Windows).\n * - Moving the window to a display with a different scale factor.\n *\n * @example\n * ```typescript\n * import { appWindow } from \"@tauri-apps/api/window\";\n * const unlisten = await appWindow.onScaleChanged(({ payload }) => {\n * console.log('Scale changed', payload.scaleFactor, payload.size);\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * @returns A promise resolving to a function to unlisten to the event.\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @since 1.0.2\n */\n async onScaleChanged(handler) {\n return this.listen(TauriEvent.WINDOW_SCALE_FACTOR_CHANGED, handler);\n }\n /**\n * Listen to the window menu item click. The payload is the item id.\n *\n * @example\n * ```typescript\n * import { appWindow } from \"@tauri-apps/api/window\";\n * const unlisten = await appWindow.onMenuClicked(({ payload: menuId }) => {\n * console.log('Menu clicked: ' + menuId);\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * @returns A promise resolving to a function to unlisten to the event.\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @since 1.0.2\n */\n async onMenuClicked(handler) {\n return this.listen(TauriEvent.MENU, handler);\n }\n /**\n * Listen to a file drop event.\n * The listener is triggered when the user hovers the selected files on the window,\n * drops the files or cancels the operation.\n *\n * @example\n * ```typescript\n * import { appWindow } from \"@tauri-apps/api/window\";\n * const unlisten = await appWindow.onFileDropEvent((event) => {\n * if (event.payload.type === 'hover') {\n * console.log('User hovering', event.payload.paths);\n * } else if (event.payload.type === 'drop') {\n * console.log('User dropped', event.payload.paths);\n * } else {\n * console.log('File drop cancelled');\n * }\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * @returns A promise resolving to a function to unlisten to the event.\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @since 1.0.2\n */\n async onFileDropEvent(handler) {\n const unlistenFileDrop = await this.listen(TauriEvent.WINDOW_FILE_DROP, (event) => {\n handler({ ...event, payload: { type: 'drop', paths: event.payload } });\n });\n const unlistenFileHover = await this.listen(TauriEvent.WINDOW_FILE_DROP_HOVER, (event) => {\n handler({ ...event, payload: { type: 'hover', paths: event.payload } });\n });\n const unlistenCancel = await this.listen(TauriEvent.WINDOW_FILE_DROP_CANCELLED, (event) => {\n handler({ ...event, payload: { type: 'cancel' } });\n });\n return () => {\n unlistenFileDrop();\n unlistenFileHover();\n unlistenCancel();\n };\n }\n /**\n * Listen to the system theme change.\n *\n * @example\n * ```typescript\n * import { appWindow } from \"@tauri-apps/api/window\";\n * const unlisten = await appWindow.onThemeChanged(({ payload: theme }) => {\n * console.log('New theme: ' + theme);\n * });\n *\n * // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\n * unlisten();\n * ```\n *\n * @returns A promise resolving to a function to unlisten to the event.\n * Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted.\n *\n * @since 1.0.2\n */\n async onThemeChanged(handler) {\n return this.listen(TauriEvent.WINDOW_THEME_CHANGED, handler);\n }\n}\n/**\n * @since 1.0.2\n */\nclass CloseRequestedEvent {\n constructor(event) {\n this._preventDefault = false;\n this.event = event.event;\n this.windowLabel = event.windowLabel;\n this.id = event.id;\n }\n preventDefault() {\n this._preventDefault = true;\n }\n isPreventDefault() {\n return this._preventDefault;\n }\n}\n/**\n * Create new webview windows and get a handle to existing ones.\n *\n * Windows are identified by a *label* a unique identifier that can be used to reference it later.\n * It may only contain alphanumeric characters `a-zA-Z` plus the following special characters `-`, `/`, `:` and `_`.\n *\n * @example\n * ```typescript\n * // loading embedded asset:\n * const webview = new WebviewWindow('theUniqueLabel', {\n * url: 'path/to/page.html'\n * });\n * // alternatively, load a remote URL:\n * const webview = new WebviewWindow('theUniqueLabel', {\n * url: 'https://github.com/tauri-apps/tauri'\n * });\n *\n * webview.once('tauri://created', function () {\n * // webview window successfully created\n * });\n * webview.once('tauri://error', function (e) {\n * // an error happened creating the webview window\n * });\n *\n * // emit an event to the backend\n * await webview.emit(\"some event\", \"data\");\n * // listen to an event from the backend\n * const unlisten = await webview.listen(\"event name\", e => {});\n * unlisten();\n * ```\n *\n * @since 1.0.2\n */\nclass WebviewWindow extends WindowManager {\n /**\n * Creates a new WebviewWindow.\n * @example\n * ```typescript\n * import { WebviewWindow } from '@tauri-apps/api/window';\n * const webview = new WebviewWindow('my-label', {\n * url: 'https://github.com/tauri-apps/tauri'\n * });\n * webview.once('tauri://created', function () {\n * // webview window successfully created\n * });\n * webview.once('tauri://error', function (e) {\n * // an error happened creating the webview window\n * });\n * ```\n *\n * * @param label The unique webview window label. Must be alphanumeric: `a-zA-Z-/:_`.\n * @returns The WebviewWindow instance to communicate with the webview.\n */\n constructor(label, options = {}) {\n super(label);\n // @ts-expect-error `skip` is not a public API so it is not defined in WindowOptions\n if (!(options === null || options === void 0 ? void 0 : options.skip)) {\n invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'createWebview',\n data: {\n options: {\n label,\n ...options\n }\n }\n }\n })\n .then(async () => this.emit('tauri://created'))\n .catch(async (e) => this.emit('tauri://error', e));\n }\n }\n /**\n * Gets the WebviewWindow for the webview associated with the given label.\n * @example\n * ```typescript\n * import { WebviewWindow } from '@tauri-apps/api/window';\n * const mainWindow = WebviewWindow.getByLabel('main');\n * ```\n *\n * @param label The webview window label.\n * @returns The WebviewWindow instance to communicate with the webview or null if the webview doesn't exist.\n */\n static getByLabel(label) {\n if (getAll().some((w) => w.label === label)) {\n // @ts-expect-error `skip` is not defined in the public API but it is handled by the constructor\n return new WebviewWindow(label, { skip: true });\n }\n return null;\n }\n /**\n * Gets the focused window.\n * @example\n * ```typescript\n * import { WebviewWindow } from '@tauri-apps/api/window';\n * const focusedWindow = WebviewWindow.getFocusedWindow();\n * ```\n *\n * @returns The WebviewWindow instance to communicate with the webview or `undefined` if there is not any focused window.\n *\n * @since 1.4\n */\n static async getFocusedWindow() {\n for (const w of getAll()) {\n if (await w.isFocused()) {\n return w;\n }\n }\n return null;\n }\n}\n/** The WebviewWindow for the current window. */\nlet appWindow;\nif ('__TAURI_METADATA__' in window) {\n appWindow = new WebviewWindow(window.__TAURI_METADATA__.__currentWindow.label, {\n // @ts-expect-error `skip` is not defined in the public API but it is handled by the constructor\n skip: true\n });\n}\nelse {\n console.warn(`Could not find \"window.__TAURI_METADATA__\". The \"appWindow\" value will reference the \"main\" window label.\\nNote that this is not an issue if running this frontend on a browser instead of a Tauri window.`);\n appWindow = new WebviewWindow('main', {\n // @ts-expect-error `skip` is not defined in the public API but it is handled by the constructor\n skip: true\n });\n}\nfunction mapMonitor(m) {\n return m === null\n ? null\n : {\n name: m.name,\n scaleFactor: m.scaleFactor,\n position: mapPhysicalPosition(m.position),\n size: mapPhysicalSize(m.size)\n };\n}\nfunction mapPhysicalPosition(m) {\n return new PhysicalPosition(m.x, m.y);\n}\nfunction mapPhysicalSize(m) {\n return new PhysicalSize(m.width, m.height);\n}\n/**\n * Returns the monitor on which the window currently resides.\n * Returns `null` if current monitor can't be detected.\n * @example\n * ```typescript\n * import { currentMonitor } from '@tauri-apps/api/window';\n * const monitor = currentMonitor();\n * ```\n *\n * @since 1.0.0\n */\nasync function currentMonitor() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n cmd: {\n type: 'currentMonitor'\n }\n }\n }\n }).then(mapMonitor);\n}\n/**\n * Returns the primary monitor of the system.\n * Returns `null` if it can't identify any monitor as a primary one.\n * @example\n * ```typescript\n * import { primaryMonitor } from '@tauri-apps/api/window';\n * const monitor = primaryMonitor();\n * ```\n *\n * @since 1.0.0\n */\nasync function primaryMonitor() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n cmd: {\n type: 'primaryMonitor'\n }\n }\n }\n }).then(mapMonitor);\n}\n/**\n * Returns the list of all the monitors available on the system.\n * @example\n * ```typescript\n * import { availableMonitors } from '@tauri-apps/api/window';\n * const monitors = availableMonitors();\n * ```\n *\n * @since 1.0.0\n */\nasync function availableMonitors() {\n return invokeTauriCommand({\n __tauriModule: 'Window',\n message: {\n cmd: 'manage',\n data: {\n cmd: {\n type: 'availableMonitors'\n }\n }\n }\n }).then((ms) => ms.map(mapMonitor));\n}\n\nexport { CloseRequestedEvent, LogicalPosition, LogicalSize, PhysicalPosition, PhysicalSize, UserAttentionType, WebviewWindow, WebviewWindowHandle, WindowManager, appWindow, availableMonitors, currentMonitor, getAll, getCurrent, primaryMonitor };\n",
24
- "import { open as shellOpen } from '@tauri-apps/api/shell'\n\nimport * as app from '@tauri-apps/api/app'\nimport * as clipboard from '@tauri-apps/api/clipboard'\nimport * as dialog from '@tauri-apps/api/dialog'\nimport * as event from '@tauri-apps/api/event'\nimport * as fs from '@tauri-apps/api/fs'\nimport * as globalShortcut from '@tauri-apps/api/globalShortcut'\nimport * as http from '@tauri-apps/api/http'\nimport * as mocks from '@tauri-apps/api/mocks'\nimport * as notification from '@tauri-apps/api/notification'\nimport * as os from '@tauri-apps/api/os'\nimport * as path from '@tauri-apps/api/path'\nimport * as process from '@tauri-apps/api/process'\nimport * as shell from '@tauri-apps/api/shell'\nimport * as tauri from '@tauri-apps/api/tauri'\nimport * as updater from '@tauri-apps/api/updater'\nimport * as window from '@tauri-apps/api/window'\n\nexport const desktop = {\n app,\n event,\n clipboard,\n dialog,\n fs,\n globalShortcut,\n http,\n mocks,\n notification,\n os,\n path,\n process,\n shell,\n tauri,\n updater,\n window,\n}\n\nexport async function openShell(link: string) {\n await shellOpen(link)\n}\n\nexport * from './system-tray'\n",
24
+ "import * as app from '@tauri-apps/api/app'\n\nimport * as clipboard from '@tauri-apps/api/clipboard'\nimport * as dialog from '@tauri-apps/api/dialog'\nimport * as event from '@tauri-apps/api/event'\nimport * as fs from '@tauri-apps/api/fs'\nimport * as globalShortcut from '@tauri-apps/api/globalShortcut'\nimport * as http from '@tauri-apps/api/http'\nimport * as mocks from '@tauri-apps/api/mocks'\nimport * as notification from '@tauri-apps/api/notification'\nimport * as os from '@tauri-apps/api/os'\nimport * as path from '@tauri-apps/api/path'\nimport * as process from '@tauri-apps/api/process'\nimport { open as shellOpen } from '@tauri-apps/api/shell'\nimport * as shell from '@tauri-apps/api/shell'\nimport * as tauri from '@tauri-apps/api/tauri'\nimport * as updater from '@tauri-apps/api/updater'\nimport * as window from '@tauri-apps/api/window'\n\nexport const desktop = {\n app,\n event,\n clipboard,\n dialog,\n fs,\n globalShortcut,\n http,\n mocks,\n notification,\n os,\n path,\n process,\n shell,\n tauri,\n updater,\n window,\n}\n\nexport async function openShell(link: string) {\n await shellOpen(link)\n}\n\nexport * from './system-tray'\n",
25
25
  "export const testingThis = 'testing this'\n"
26
26
  ],
27
- "mappings": ";mRAIA,SAAS,EAAG,EAAG,CACX,OAAO,OAAO,OAAO,gBAAgB,IAAI,YAAY,CAAC,CAAC,EAAE,GAU7D,SAAS,CAAiB,CAAC,EAAU,EAAO,GAAO,CAC/C,MAAM,EAAa,GAAI,EACjB,EAAO,IAAI,IAWjB,OAVA,OAAO,eAAe,OAAQ,EAAM,CAChC,MAAO,CAAC,IAAW,CACf,GAAI,EACA,QAAQ,eAAe,OAAQ,CAAI,EAEvC,OAAO,IAAa,MAAQ,IAAkB,OAAS,OAA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AAK,EAEtC,OAAO,IAAI,EAAc,EAAO,CAAE,KAAM,EAAK,CAAC,EAElD,OAAO,iBAcE,iBAAgB,EAAG,CAC5B,QAAW,KAAK,EAAO,EACnB,GAAI,MAAM,EAAE,UAAU,EAClB,OAAO,EAGf,OAAO,KAEf,CAEA,IAAI,EACJ,GAAI,uBAAwB,OACxB,EAAY,IAAI,EAAc,OAAO,mBAAmB,gBAAgB,MAAO,CAE3E,KAAM,EACV,CAAC,MAGD,SAAQ,KAAK,4MAA4M,EACzN,EAAY,IAAI,EAAc,OAAQ,CAElC,KAAM,EACV,CAAC,EC5+DL,eAAsB,EAAS,CAAC,EAAc,CAC5C,MAAM,EAAU,CAAI,ECvCf,IAAM,GAAc,eDmBpB,IAAM,GAAU,CACrB,MACA,QACA,YACA,SACA,KACA,iBACA,OACA,QACA,eACA,KACA,OACA,UACA,QACA,QACA,UACA,SACF",
28
+ "debugId": "76C7969D16AD516664756E2164756E21",
29
29
  "names": []
30
30
  }
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@stacksjs/desktop",
3
3
  "type": "module",
4
- "version": "0.64.6",
4
+ "version": "0.65.0",
5
5
  "description": "The Stacks Desktop engine.",
6
6
  "author": "Chris Breuer",
7
+ "contributors": ["Chris Breuer <chris@stacksjs.org>"],
7
8
  "license": "MIT",
8
9
  "funding": "https://github.com/sponsors/chrisbbreuer",
9
10
  "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/desktop#readme",
@@ -40,33 +41,26 @@
40
41
  },
41
42
  "module": "dist/index.js",
42
43
  "types": "dist/index.d.ts",
43
- "contributors": [
44
- "Chris Breuer <chris@stacksjs.org>"
45
- ],
46
- "files": [
47
- "README.md",
48
- "dist",
49
- "src"
50
- ],
44
+ "files": ["README.md", "dist", "src"],
51
45
  "scripts": {
52
- "dev": "bunx vite ../../dashboard -c ../vite-config/src/desktop.ts",
46
+ "dev": "bunx --bun vite ../../dashboard -c ../vite-config/src/desktop.ts",
53
47
  "dev:app": "tauri dev",
54
- "build": "bun --bun build.ts",
55
- "build:app": "bunx vite build ../../dashboard -c ../vite-config/src/desktop.ts",
48
+ "build": "bun build.ts",
49
+ "build:app": "bunx --bun vite build ../../dashboard -c ../vite-config/src/desktop.ts",
56
50
  "tauri:build": "tauri build",
57
- "typecheck": "bun --bun tsc --noEmit",
51
+ "typecheck": "bun tsc --noEmit",
58
52
  "prepublishOnly": "bun run build"
59
53
  },
60
54
  "dependencies": {
61
- "@stacksjs/build": "latest",
62
- "@stacksjs/server": "latest",
55
+ "@stacksjs/build": "0.64.6",
56
+ "@stacksjs/server": "0.64.6",
63
57
  "@tauri-apps/api": "^1.6.0",
64
- "@tauri-apps/cli": "^1.6.1",
58
+ "@tauri-apps/cli": "^1.6.2",
65
59
  "unified-network": "^0.6.4",
66
- "unstorage": "^1.10.2",
67
- "vue": "^3.4.38"
60
+ "unstorage": "^1.12.0",
61
+ "vue": "^3.5.11"
68
62
  },
69
63
  "devDependencies": {
70
- "@stacksjs/development": "latest"
64
+ "@stacksjs/development": "0.64.6"
71
65
  }
72
66
  }
package/src/index.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { open as shellOpen } from '@tauri-apps/api/shell'
2
-
3
1
  import * as app from '@tauri-apps/api/app'
2
+
4
3
  import * as clipboard from '@tauri-apps/api/clipboard'
5
4
  import * as dialog from '@tauri-apps/api/dialog'
6
5
  import * as event from '@tauri-apps/api/event'
@@ -12,6 +11,7 @@ import * as notification from '@tauri-apps/api/notification'
12
11
  import * as os from '@tauri-apps/api/os'
13
12
  import * as path from '@tauri-apps/api/path'
14
13
  import * as process from '@tauri-apps/api/process'
14
+ import { open as shellOpen } from '@tauri-apps/api/shell'
15
15
  import * as shell from '@tauri-apps/api/shell'
16
16
  import * as tauri from '@tauri-apps/api/tauri'
17
17
  import * as updater from '@tauri-apps/api/updater'