diff --git a/examples/ts-utility/src/index.ts b/examples/ts-utility/src/index.ts index 22fa429..535db66 100644 --- a/examples/ts-utility/src/index.ts +++ b/examples/ts-utility/src/index.ts @@ -44,6 +44,5 @@ onEventShowMenu('contextmenu', async (e:MouseEvent) => { } ] }; - console.log(e, options); return options;  }); \ No newline at end of file diff --git a/package.json b/package.json index 4e95a2c..f395232 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tauri-plugin-context-menu", - "version": "0.4.0", + "version": "0.4.1", "author": "c2r0b", "type": "module", "description": "", diff --git a/webview-dist/index.d.ts b/webview-dist/index.d.ts index 8a24d03..0cd81c5 100644 --- a/webview-dist/index.d.ts +++ b/webview-dist/index.d.ts @@ -1,5 +1,5 @@ import * as ContextMenu from './types'; export { ContextMenu }; export declare function assetToPath(asset: string): Promise; -export declare function showMenu(options: ContextMenu.Options): void; +export declare function showMenu(options: ContextMenu.Options): Promise; export declare function onEventShowMenu(eventName: string, options: ContextMenu.EventOptions): void; diff --git a/webview-dist/index.js b/webview-dist/index.js index 519ed82..6de3407 100644 --- a/webview-dist/index.js +++ b/webview-dist/index.js @@ -1,8 +1,8 @@ -var Ge=Object.defineProperty,n=(e,t)=>{for(var s in t)Ge(e,s,{get:t[s],enumerable:!0})};var z={};n(z,{convertFileSrc:()=>$e,invoke:()=>p,transformCallback:()=>u});function Ve(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function u(e,t=!1){let s=Ve(),r=`_${s}`;return Object.defineProperty(window,r,{value:i=>(t&&Reflect.deleteProperty(window,r),e?.(i)),writable:!1,configurable:!0}),s}async function p(e,t={}){return new Promise((s,r)=>{let i=u(l=>{s(l),Reflect.deleteProperty(window,`_${o}`)},!0),o=u(l=>{r(l),Reflect.deleteProperty(window,`_${i}`)},!0);window.__TAURI_IPC__({cmd:e,callback:i,error:o,...t})})}function $e(e,t="asset"){let s=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${s}`:`${t}://localhost/${s}`}async function a(e){return p("tauri",e)}var S={};n(S,{TauriEvent:()=>x,emit:()=>h,listen:()=>c,once:()=>_});async function F(e,t){return a({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function D(e,t,s){await a({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:s}})}async function f(e,t,s){return a({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:u(s)}}).then(r=>async()=>F(e,r))}async function P(e,t,s){return f(e,t,r=>{s(r),F(e,r.id).catch(()=>{})})}var x=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(x||{});async function c(e,t){return f(e,null,t)}async function _(e,t){return P(e,null,t)}async function h(e,t){return D(e,void 0,t)}var I={};n(I,{checkUpdate:()=>Ye,installUpdate:()=>Je,onUpdaterEvent:()=>A});async function A(e){return c("tauri://update-status",t=>{e(t?.payload)})}async function Je(){let e;function t(){e&&e(),e=void 0}return new Promise((s,r)=>{function i(o){if(o.error){t(),r(o.error);return}o.status==="DONE"&&(t(),s())}A(i).then(o=>{e=o}).catch(o=>{throw t(),o}),h("tauri://update-install").catch(o=>{throw t(),o})})}async function Ye(){let e;function t(){e&&e(),e=void 0}return new Promise((s,r)=>{function i(l){t(),s({manifest:l,shouldUpdate:!0})}function o(l){if(l.error){t(),r(l.error);return}l.status==="UPTODATE"&&(t(),s({shouldUpdate:!1}))}_("tauri://update-available",l=>{i(l?.payload)}).catch(l=>{throw t(),l}),A(o).then(l=>{e=l}).catch(l=>{throw t(),l}),h("tauri://update").catch(l=>{throw t(),l})})}var N={};n(N,{CloseRequestedEvent:()=>H,LogicalPosition:()=>j,LogicalSize:()=>k,PhysicalPosition:()=>w,PhysicalSize:()=>b,UserAttentionType:()=>U,WebviewWindow:()=>d,WebviewWindowHandle:()=>q,WindowManager:()=>B,appWindow:()=>E,availableMonitors:()=>Xe,currentMonitor:()=>Qe,getAll:()=>W,getCurrent:()=>Ke,primaryMonitor:()=>Ze});var k=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},b=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new k(this.width/e,this.height/e)}},j=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},w=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new j(this.x/e,this.y/e)}},U=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(U||{});function Ke(){return new d(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function W(){return window.__TAURI_METADATA__.__windows.map(e=>new d(e.label,{skip:!0}))}var R=["tauri://created","tauri://error"],q=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let s=this.listeners[e];s.splice(s.indexOf(t),1)}):f(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let s=this.listeners[e];s.splice(s.indexOf(t),1)}):P(e,this.label,t)}async emit(e,t){if(R.includes(e)){for(let s of this.listeners[e]||[])s({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return D(e,this.label,t)}_handleTauriEvent(e,t){return R.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},B=class extends q{async scaleFactor(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new w(e,t))}async outerPosition(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new w(e,t))}async innerSize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new b(e,t))}async outerSize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new b(e,t))}async isFullscreen(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setMaximizable(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:e}}}})}async setMinimizable(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:e}}}})}async setClosable(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:e}}}})}async setTitle(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",t=>{t.payload=V(t.payload),e(t)})}async onMoved(e){return this.listen("tauri://move",t=>{t.payload=G(t.payload),e(t)})}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let s=new H(t);Promise.resolve(e(s)).then(()=>{if(!s.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",r=>{e({...r,payload:!0})}),s=await this.listen("tauri://blur",r=>{e({...r,payload:!1})});return()=>{t(),s()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",i=>{e({...i,payload:{type:"drop",paths:i.payload}})}),s=await this.listen("tauri://file-drop-hover",i=>{e({...i,payload:{type:"hover",paths:i.payload}})}),r=await this.listen("tauri://file-drop-cancelled",i=>{e({...i,payload:{type:"cancel"}})});return()=>{t(),s(),r()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},H=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},d=class extends B{constructor(e,t={}){super(e),t?.skip||a({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async s=>this.emit("tauri://error",s))}static getByLabel(e){return W().some(t=>t.label===e)?new d(e,{skip:!0}):null}static async getFocusedWindow(){for(let e of W())if(await e.isFocused())return e;return null}},E;"__TAURI_METADATA__"in window?E=new d(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. -Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),E=new d("main",{skip:!0}));function L(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:G(e.position),size:V(e.size)}}function G(e){return new w(e.x,e.y)}function V(e){return new b(e.width,e.height)}async function Qe(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(L)}async function Ze(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(L)}async function Xe(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(L))}var $={};n($,{isPermissionGranted:()=>et,requestPermission:()=>tt,sendNotification:()=>at});async function et(){return window.Notification.permission!=="default"?Promise.resolve(window.Notification.permission==="granted"):a({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function tt(){return window.Notification.requestPermission()}function at(e){typeof e=="string"?new window.Notification(e):new window.Notification(e.title,e)}function y(){return navigator.appVersion.includes("Win")}var J={};n(J,{EOL:()=>st,arch:()=>ot,locale:()=>ut,platform:()=>rt,tempdir:()=>lt,type:()=>nt,version:()=>it});var st=y()?`\r +var Ve=Object.defineProperty,n=(e,t)=>{for(var s in t)Ve(e,s,{get:t[s],enumerable:!0})};var z={};n(z,{convertFileSrc:()=>Je,invoke:()=>p,transformCallback:()=>u});function $e(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function u(e,t=!1){let s=$e(),r=`_${s}`;return Object.defineProperty(window,r,{value:i=>(t&&Reflect.deleteProperty(window,r),e?.(i)),writable:!1,configurable:!0}),s}async function p(e,t={}){return new Promise((s,r)=>{let i=u(o=>{s(o),Reflect.deleteProperty(window,`_${l}`)},!0),l=u(o=>{r(o),Reflect.deleteProperty(window,`_${i}`)},!0);window.__TAURI_IPC__({cmd:e,callback:i,error:l,...t})})}function Je(e,t="asset"){let s=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${s}`:`${t}://localhost/${s}`}async function a(e){return p("tauri",e)}var F={};n(F,{TauriEvent:()=>x,emit:()=>h,listen:()=>c,once:()=>_});async function S(e,t){return a({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function D(e,t,s){await a({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:s}})}async function f(e,t,s){return a({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:u(s)}}).then(r=>async()=>S(e,r))}async function P(e,t,s){return f(e,t,r=>{s(r),S(e,r.id).catch(()=>{})})}var x=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(x||{});async function c(e,t){return f(e,null,t)}async function _(e,t){return P(e,null,t)}async function h(e,t){return D(e,void 0,t)}var I={};n(I,{checkUpdate:()=>Ke,installUpdate:()=>Ye,onUpdaterEvent:()=>A});async function A(e){return c("tauri://update-status",t=>{e(t?.payload)})}async function Ye(){let e;function t(){e&&e(),e=void 0}return new Promise((s,r)=>{function i(l){if(l.error){t(),r(l.error);return}l.status==="DONE"&&(t(),s())}A(i).then(l=>{e=l}).catch(l=>{throw t(),l}),h("tauri://update-install").catch(l=>{throw t(),l})})}async function Ke(){let e;function t(){e&&e(),e=void 0}return new Promise((s,r)=>{function i(o){t(),s({manifest:o,shouldUpdate:!0})}function l(o){if(o.error){t(),r(o.error);return}o.status==="UPTODATE"&&(t(),s({shouldUpdate:!1}))}_("tauri://update-available",o=>{i(o?.payload)}).catch(o=>{throw t(),o}),A(l).then(o=>{e=o}).catch(o=>{throw t(),o}),h("tauri://update").catch(o=>{throw t(),o})})}var N={};n(N,{CloseRequestedEvent:()=>H,LogicalPosition:()=>U,LogicalSize:()=>k,PhysicalPosition:()=>w,PhysicalSize:()=>b,UserAttentionType:()=>j,WebviewWindow:()=>d,WebviewWindowHandle:()=>q,WindowManager:()=>B,appWindow:()=>E,availableMonitors:()=>et,currentMonitor:()=>Ze,getAll:()=>W,getCurrent:()=>Qe,primaryMonitor:()=>Xe});var k=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},b=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new k(this.width/e,this.height/e)}},U=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},w=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new U(this.x/e,this.y/e)}},j=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(j||{});function Qe(){return new d(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function W(){return window.__TAURI_METADATA__.__windows.map(e=>new d(e.label,{skip:!0}))}var R=["tauri://created","tauri://error"],q=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let s=this.listeners[e];s.splice(s.indexOf(t),1)}):f(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let s=this.listeners[e];s.splice(s.indexOf(t),1)}):P(e,this.label,t)}async emit(e,t){if(R.includes(e)){for(let s of this.listeners[e]||[])s({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return D(e,this.label,t)}_handleTauriEvent(e,t){return R.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},B=class extends q{async scaleFactor(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new w(e,t))}async outerPosition(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new w(e,t))}async innerSize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new b(e,t))}async outerSize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new b(e,t))}async isFullscreen(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setMaximizable(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:e}}}})}async setMinimizable(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:e}}}})}async setClosable(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:e}}}})}async setTitle(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",t=>{t.payload=V(t.payload),e(t)})}async onMoved(e){return this.listen("tauri://move",t=>{t.payload=G(t.payload),e(t)})}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let s=new H(t);Promise.resolve(e(s)).then(()=>{if(!s.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",r=>{e({...r,payload:!0})}),s=await this.listen("tauri://blur",r=>{e({...r,payload:!1})});return()=>{t(),s()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",i=>{e({...i,payload:{type:"drop",paths:i.payload}})}),s=await this.listen("tauri://file-drop-hover",i=>{e({...i,payload:{type:"hover",paths:i.payload}})}),r=await this.listen("tauri://file-drop-cancelled",i=>{e({...i,payload:{type:"cancel"}})});return()=>{t(),s(),r()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},H=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},d=class extends B{constructor(e,t={}){super(e),t?.skip||a({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async s=>this.emit("tauri://error",s))}static getByLabel(e){return W().some(t=>t.label===e)?new d(e,{skip:!0}):null}static async getFocusedWindow(){for(let e of W())if(await e.isFocused())return e;return null}},E;"__TAURI_METADATA__"in window?E=new d(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. +Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),E=new d("main",{skip:!0}));function L(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:G(e.position),size:V(e.size)}}function G(e){return new w(e.x,e.y)}function V(e){return new b(e.width,e.height)}async function Ze(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(L)}async function Xe(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(L)}async function et(){return a({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(L))}var $={};n($,{isPermissionGranted:()=>tt,requestPermission:()=>at,sendNotification:()=>st});async function tt(){return window.Notification.permission!=="default"?Promise.resolve(window.Notification.permission==="granted"):a({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function at(){return window.Notification.requestPermission()}function st(e){typeof e=="string"?new window.Notification(e):new window.Notification(e.title,e)}function y(){return navigator.appVersion.includes("Win")}var J={};n(J,{EOL:()=>rt,arch:()=>lt,locale:()=>ct,platform:()=>it,tempdir:()=>ut,type:()=>ot,version:()=>nt});var rt=y()?`\r `:` -`;async function rt(){return a({__tauriModule:"Os",message:{cmd:"platform"}})}async function it(){return a({__tauriModule:"Os",message:{cmd:"version"}})}async function nt(){return a({__tauriModule:"Os",message:{cmd:"osType"}})}async function ot(){return a({__tauriModule:"Os",message:{cmd:"arch"}})}async function lt(){return a({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function ut(){return a({__tauriModule:"Os",message:{cmd:"locale"}})}var K={};n(K,{BaseDirectory:()=>m,Dir:()=>m,copyFile:()=>gt,createDir:()=>ht,exists:()=>bt,readBinaryFile:()=>dt,readDir:()=>pt,readTextFile:()=>ct,removeDir:()=>yt,removeFile:()=>ft,renameFile:()=>_t,writeBinaryFile:()=>mt,writeFile:()=>Y,writeTextFile:()=>Y});var m=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(m||{});async function ct(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function dt(e,t={}){let s=await a({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(s)}async function Y(e,t,s){typeof s=="object"&&Object.freeze(s),typeof e=="object"&&Object.freeze(e);let r={path:"",contents:""},i=s;return typeof e=="string"?r.path=e:(r.path=e.path,r.contents=e.contents),typeof t=="string"?r.contents=t??"":i=t,a({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:i}})}async function mt(e,t,s){typeof s=="object"&&Object.freeze(s),typeof e=="object"&&Object.freeze(e);let r={path:"",contents:[]},i=s;return typeof e=="string"?r.path=e:(r.path=e.path,r.contents=e.contents),t&&"dir"in t?i=t:typeof e=="string"&&(r.contents=t??[]),a({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:i}})}async function pt(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function ht(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function yt(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function gt(e,t,s={}){return a({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:s}})}async function ft(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function _t(e,t,s={}){return a({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:s}})}async function bt(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}var Q={};n(Q,{BaseDirectory:()=>m,appCacheDir:()=>te,appConfigDir:()=>T,appDataDir:()=>X,appDir:()=>Z,appLocalDataDir:()=>ee,appLogDir:()=>C,audioDir:()=>ae,basename:()=>We,cacheDir:()=>se,configDir:()=>re,dataDir:()=>ie,delimiter:()=>Me,desktopDir:()=>ne,dirname:()=>xe,documentDir:()=>oe,downloadDir:()=>le,executableDir:()=>ue,extname:()=>Ae,fontDir:()=>ce,homeDir:()=>de,isAbsolute:()=>Ee,join:()=>Pe,localDataDir:()=>me,logDir:()=>be,normalize:()=>De,pictureDir:()=>pe,publicDir:()=>he,resolve:()=>ve,resolveResource:()=>M,resourceDir:()=>ye,runtimeDir:()=>ge,sep:()=>we,templateDir:()=>fe,videoDir:()=>_e});async function Z(){return T()}async function T(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function X(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function ee(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function te(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function ae(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function se(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function re(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function ie(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function ne(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function oe(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function le(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function ue(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function ce(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function de(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function me(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function pe(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function he(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function ye(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function M(e){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:e,directory:17}})}async function ge(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function fe(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function _e(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function be(){return C()}async function C(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var we=y()?"\\":"/",Me=y()?";":":";async function ve(...e){return a({__tauriModule:"Path",message:{cmd:"resolve",paths:e}})}async function De(e){return a({__tauriModule:"Path",message:{cmd:"normalize",path:e}})}async function Pe(...e){return a({__tauriModule:"Path",message:{cmd:"join",paths:e}})}async function xe(e){return a({__tauriModule:"Path",message:{cmd:"dirname",path:e}})}async function Ae(e){return a({__tauriModule:"Path",message:{cmd:"extname",path:e}})}async function We(e,t){return a({__tauriModule:"Path",message:{cmd:"basename",path:e,ext:t}})}async function Ee(e){return a({__tauriModule:"Path",message:{cmd:"isAbsolute",path:e}})}var Le={};n(Le,{exit:()=>wt,relaunch:()=>Mt});async function wt(e=0){return a({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function Mt(){return a({__tauriModule:"Process",message:{cmd:"relaunch"}})}var Te={};n(Te,{Child:()=>Ce,Command:()=>Oe,EventEmitter:()=>v,open:()=>Dt});async function vt(e,t,s=[],r){return typeof s=="object"&&Object.freeze(s),a({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:s,options:r,onEventFn:u(e)}})}var v=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let s=(...r)=>{this.removeListener(e,s),t(...r)};return this.addListener(e,s)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(s=>s!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let s=this.eventListeners[e];for(let r of s)r(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let s=(...r)=>{this.removeListener(e,s),t(...r)};return this.prependListener(e,s)}},Ce=class{constructor(e){this.pid=e}async write(e){return a({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return a({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},Oe=class extends v{constructor(e,t=[],s){super(),this.stdout=new v,this.stderr=new v,this.program=e,this.args=typeof t=="string"?[t]:t,this.options=s??{}}static sidecar(e,t=[],s){let r=new Oe(e,t,s);return r.options.sidecar=!0,r}async spawn(){return vt(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new Ce(e))}async execute(){return new Promise((e,t)=>{this.on("error",t);let s=[],r=[];this.stdout.on("data",i=>{s.push(i)}),this.stderr.on("data",i=>{r.push(i)}),this.on("close",i=>{e({code:i.code,signal:i.signal,stdout:s.join(` +`;async function it(){return a({__tauriModule:"Os",message:{cmd:"platform"}})}async function nt(){return a({__tauriModule:"Os",message:{cmd:"version"}})}async function ot(){return a({__tauriModule:"Os",message:{cmd:"osType"}})}async function lt(){return a({__tauriModule:"Os",message:{cmd:"arch"}})}async function ut(){return a({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function ct(){return a({__tauriModule:"Os",message:{cmd:"locale"}})}var K={};n(K,{BaseDirectory:()=>m,Dir:()=>m,copyFile:()=>ft,createDir:()=>yt,exists:()=>wt,readBinaryFile:()=>mt,readDir:()=>ht,readTextFile:()=>dt,removeDir:()=>gt,removeFile:()=>_t,renameFile:()=>bt,writeBinaryFile:()=>pt,writeFile:()=>Y,writeTextFile:()=>Y});var m=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(m||{});async function dt(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function mt(e,t={}){let s=await a({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(s)}async function Y(e,t,s){typeof s=="object"&&Object.freeze(s),typeof e=="object"&&Object.freeze(e);let r={path:"",contents:""},i=s;return typeof e=="string"?r.path=e:(r.path=e.path,r.contents=e.contents),typeof t=="string"?r.contents=t??"":i=t,a({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(new TextEncoder().encode(r.contents)),options:i}})}async function pt(e,t,s){typeof s=="object"&&Object.freeze(s),typeof e=="object"&&Object.freeze(e);let r={path:"",contents:[]},i=s;return typeof e=="string"?r.path=e:(r.path=e.path,r.contents=e.contents),t&&"dir"in t?i=t:typeof e=="string"&&(r.contents=t??[]),a({__tauriModule:"Fs",message:{cmd:"writeFile",path:r.path,contents:Array.from(r.contents instanceof ArrayBuffer?new Uint8Array(r.contents):r.contents),options:i}})}async function ht(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function yt(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function gt(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function ft(e,t,s={}){return a({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:s}})}async function _t(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function bt(e,t,s={}){return a({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:s}})}async function wt(e,t={}){return a({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}var Q={};n(Q,{BaseDirectory:()=>m,appCacheDir:()=>te,appConfigDir:()=>T,appDataDir:()=>X,appDir:()=>Z,appLocalDataDir:()=>ee,appLogDir:()=>C,audioDir:()=>ae,basename:()=>We,cacheDir:()=>se,configDir:()=>re,dataDir:()=>ie,delimiter:()=>Me,desktopDir:()=>ne,dirname:()=>xe,documentDir:()=>oe,downloadDir:()=>le,executableDir:()=>ue,extname:()=>Ae,fontDir:()=>ce,homeDir:()=>de,isAbsolute:()=>Ee,join:()=>Pe,localDataDir:()=>me,logDir:()=>be,normalize:()=>De,pictureDir:()=>pe,publicDir:()=>he,resolve:()=>ve,resolveResource:()=>M,resourceDir:()=>ye,runtimeDir:()=>ge,sep:()=>we,templateDir:()=>fe,videoDir:()=>_e});async function Z(){return T()}async function T(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:21}})}async function X(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:22}})}async function ee(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:23}})}async function te(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:24}})}async function ae(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:1}})}async function se(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:2}})}async function re(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:3}})}async function ie(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:4}})}async function ne(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:6}})}async function oe(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:7}})}async function le(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:8}})}async function ue(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:9}})}async function ce(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:10}})}async function de(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:11}})}async function me(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:5}})}async function pe(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:12}})}async function he(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:13}})}async function ye(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:17}})}async function M(e){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:e,directory:17}})}async function ge(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:14}})}async function fe(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:15}})}async function _e(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:16}})}async function be(){return C()}async function C(){return a({__tauriModule:"Path",message:{cmd:"resolvePath",path:"",directory:25}})}var we=y()?"\\":"/",Me=y()?";":":";async function ve(...e){return a({__tauriModule:"Path",message:{cmd:"resolve",paths:e}})}async function De(e){return a({__tauriModule:"Path",message:{cmd:"normalize",path:e}})}async function Pe(...e){return a({__tauriModule:"Path",message:{cmd:"join",paths:e}})}async function xe(e){return a({__tauriModule:"Path",message:{cmd:"dirname",path:e}})}async function Ae(e){return a({__tauriModule:"Path",message:{cmd:"extname",path:e}})}async function We(e,t){return a({__tauriModule:"Path",message:{cmd:"basename",path:e,ext:t}})}async function Ee(e){return a({__tauriModule:"Path",message:{cmd:"isAbsolute",path:e}})}var Le={};n(Le,{exit:()=>Mt,relaunch:()=>vt});async function Mt(e=0){return a({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function vt(){return a({__tauriModule:"Process",message:{cmd:"relaunch"}})}var Te={};n(Te,{Child:()=>Ce,Command:()=>Oe,EventEmitter:()=>v,open:()=>Pt});async function Dt(e,t,s=[],r){return typeof s=="object"&&Object.freeze(s),a({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:s,options:r,onEventFn:u(e)}})}var v=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let s=(...r)=>{this.removeListener(e,s),t(...r)};return this.addListener(e,s)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(s=>s!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let s=this.eventListeners[e];for(let r of s)r(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let s=(...r)=>{this.removeListener(e,s),t(...r)};return this.prependListener(e,s)}},Ce=class{constructor(e){this.pid=e}async write(e){return a({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return a({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},Oe=class extends v{constructor(e,t=[],s){super(),this.stdout=new v,this.stderr=new v,this.program=e,this.args=typeof t=="string"?[t]:t,this.options=s??{}}static sidecar(e,t=[],s){let r=new Oe(e,t,s);return r.options.sidecar=!0,r}async spawn(){return Dt(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new Ce(e))}async execute(){return new Promise((e,t)=>{this.on("error",t);let s=[],r=[];this.stdout.on("data",i=>{s.push(i)}),this.stderr.on("data",i=>{r.push(i)}),this.on("close",i=>{e({code:i.code,signal:i.signal,stdout:s.join(` `),stderr:r.join(` -`)})}),this.spawn().catch(t)})}};async function Dt(e,t){return a({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var ze={};n(ze,{getName:()=>xt,getTauriVersion:()=>At,getVersion:()=>Pt,hide:()=>Et,show:()=>Wt});async function Pt(){return a({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function xt(){return a({__tauriModule:"App",message:{cmd:"getAppName"}})}async function At(){return a({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function Wt(){return a({__tauriModule:"App",message:{cmd:"show"}})}async function Et(){return a({__tauriModule:"App",message:{cmd:"hide"}})}var Se={};n(Se,{getMatches:()=>Lt});async function Lt(){return a({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var Fe={};n(Fe,{readText:()=>Ct,writeText:()=>Tt});async function Tt(e){return a({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function Ct(){return a({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var Ie={};n(Ie,{ask:()=>Ft,confirm:()=>It,message:()=>St,open:()=>Ot,save:()=>zt});async function Ot(e={}){return typeof e=="object"&&Object.freeze(e),a({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function zt(e={}){return typeof e=="object"&&Object.freeze(e),a({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function St(e,t){let s=typeof t=="string"?{title:t}:t;return a({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:s?.title?.toString(),type:s?.type,buttonLabel:s?.okLabel?.toString()}})}async function Ft(e,t){let s=typeof t=="string"?{title:t}:t;return a({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:s?.title?.toString(),type:s?.type,buttonLabels:[s?.okLabel?.toString()??"Yes",s?.cancelLabel?.toString()??"No"]}})}async function It(e,t){let s=typeof t=="string"?{title:t}:t;return a({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:s?.title?.toString(),type:s?.type,buttonLabels:[s?.okLabel?.toString()??"Ok",s?.cancelLabel?.toString()??"Cancel"]}})}var Re={};n(Re,{isRegistered:()=>kt,register:()=>Rt,registerAll:()=>Nt,unregister:()=>jt,unregisterAll:()=>Ut});async function Rt(e,t){return a({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:u(t)}})}async function Nt(e,t){return a({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:u(t)}})}async function kt(e){return a({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function jt(e){return a({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function Ut(){return a({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var Ne={};n(Ne,{Body:()=>g,Client:()=>Ue,Response:()=>je,ResponseType:()=>ke,fetch:()=>qt,getClient:()=>qe});var ke=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(ke||{}),g=class{constructor(e,t){this.type=e,this.payload=t}static form(e){let t={},s=(r,i)=>{if(i!==null){let o;typeof i=="string"?o=i:i instanceof Uint8Array||Array.isArray(i)?o=Array.from(i):i instanceof File?o={file:i.name,mime:i.type,fileName:i.name}:typeof i.file=="string"?o={file:i.file,mime:i.mime,fileName:i.fileName}:o={file:Array.from(i.file),mime:i.mime,fileName:i.fileName},t[String(r)]=o}};if(e instanceof FormData)for(let[r,i]of e)s(r,i);else for(let[r,i]of Object.entries(e))s(r,i);return new g("Form",t)}static json(e){return new g("Json",e)}static text(e){return new g("Text",e)}static bytes(e){return new g("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},je=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},Ue=class{constructor(e){this.id=e}async drop(){return a({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),a({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(s=>{let r=new je(s);if(t){try{r.data=JSON.parse(r.data)}catch(i){if(r.ok&&r.data==="")r.data={};else if(r.ok)throw Error(`Failed to parse response \`${r.data}\` as JSON: ${i}; - try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return r}return r})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,s){return this.request({method:"POST",url:e,body:t,...s})}async put(e,t,s){return this.request({method:"PUT",url:e,body:t,...s})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function qe(e){return a({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new Ue(t))}var O=null;async function qt(e,t){return O===null&&(O=await qe()),O.request({url:e,method:t?.method??"GET",...t})}var Be=p;var Vt={};var $t="plugin:context_menu|show_context_menu";async function qs(e){return await M(e)}function Jt(e){function t(s,r){for(let i=0;io(He)),s[i].event=l}s[i].subitems&&t(s[i].subitems,`${r}_${i}`)}}t(e.items,"root"),Be($t,e)}function Bs(e,t){window.addEventListener(e,async s=>{s.preventDefault(),typeof t=="function"&&(t=await t(s)),Jt(t)})}export{Vt as ContextMenu,qs as assetToPath,Bs as onEventShowMenu,Jt as showMenu}; +`)})}),this.spawn().catch(t)})}};async function Pt(e,t){return a({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var ze={};n(ze,{getName:()=>At,getTauriVersion:()=>Wt,getVersion:()=>xt,hide:()=>Lt,show:()=>Et});async function xt(){return a({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function At(){return a({__tauriModule:"App",message:{cmd:"getAppName"}})}async function Wt(){return a({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function Et(){return a({__tauriModule:"App",message:{cmd:"show"}})}async function Lt(){return a({__tauriModule:"App",message:{cmd:"hide"}})}var Fe={};n(Fe,{getMatches:()=>Tt});async function Tt(){return a({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}var Se={};n(Se,{readText:()=>Ot,writeText:()=>Ct});async function Ct(e){return a({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function Ot(){return a({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}var Ie={};n(Ie,{ask:()=>It,confirm:()=>Rt,message:()=>St,open:()=>zt,save:()=>Ft});async function zt(e={}){return typeof e=="object"&&Object.freeze(e),a({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function Ft(e={}){return typeof e=="object"&&Object.freeze(e),a({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function St(e,t){let s=typeof t=="string"?{title:t}:t;return a({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:s?.title?.toString(),type:s?.type,buttonLabel:s?.okLabel?.toString()}})}async function It(e,t){let s=typeof t=="string"?{title:t}:t;return a({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:s?.title?.toString(),type:s?.type,buttonLabels:[s?.okLabel?.toString()??"Yes",s?.cancelLabel?.toString()??"No"]}})}async function Rt(e,t){let s=typeof t=="string"?{title:t}:t;return a({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:s?.title?.toString(),type:s?.type,buttonLabels:[s?.okLabel?.toString()??"Ok",s?.cancelLabel?.toString()??"Cancel"]}})}var Re={};n(Re,{isRegistered:()=>Ut,register:()=>Nt,registerAll:()=>kt,unregister:()=>jt,unregisterAll:()=>qt});async function Nt(e,t){return a({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:u(t)}})}async function kt(e,t){return a({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:u(t)}})}async function Ut(e){return a({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function jt(e){return a({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function qt(){return a({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}var Ne={};n(Ne,{Body:()=>g,Client:()=>je,Response:()=>Ue,ResponseType:()=>ke,fetch:()=>Bt,getClient:()=>qe});var ke=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(ke||{}),g=class{constructor(e,t){this.type=e,this.payload=t}static form(e){let t={},s=(r,i)=>{if(i!==null){let l;typeof i=="string"?l=i:i instanceof Uint8Array||Array.isArray(i)?l=Array.from(i):i instanceof File?l={file:i.name,mime:i.type,fileName:i.name}:typeof i.file=="string"?l={file:i.file,mime:i.mime,fileName:i.fileName}:l={file:Array.from(i.file),mime:i.mime,fileName:i.fileName},t[String(r)]=l}};if(e instanceof FormData)for(let[r,i]of e)s(r,i);else for(let[r,i]of Object.entries(e))s(r,i);return new g("Form",t)}static json(e){return new g("Json",e)}static text(e){return new g("Text",e)}static bytes(e){return new g("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},Ue=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},je=class{constructor(e){this.id=e}async drop(){return a({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),a({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(s=>{let r=new Ue(s);if(t){try{r.data=JSON.parse(r.data)}catch(i){if(r.ok&&r.data==="")r.data={};else if(r.ok)throw Error(`Failed to parse response \`${r.data}\` as JSON: ${i}; + try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return r}return r})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,s){return this.request({method:"POST",url:e,body:t,...s})}async put(e,t,s){return this.request({method:"PUT",url:e,body:t,...s})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function qe(e){return a({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new je(t))}var O=null;async function Bt(e,t){return O===null&&(O=await qe()),O.request({url:e,method:t?.method??"GET",...t})}var Be=p;var $t={};var Jt="plugin:context_menu|show_context_menu";async function Bs(e){return await M(e)}async function He(e,t){let s=[],r=[...e.map(i=>({...i}))];for(let i=0;il(Ge))),r[i].event=o}if(e[i].subitems){let o=await He(e[i].subitems,`${t}_${i}`);s.push(...o.unlisteners),r[i].subitems=o.processed}}return{unlisteners:s,processed:r}}async function Yt(e){let{unlisteners:t,processed:s}=await He(e.items,"root"),r=await c("menu-did-close",()=>{t.forEach(i=>i()),t.length=0,r()});Be(Jt,{...e,items:s})}function Hs(e,t){window.addEventListener(e,async s=>{s.preventDefault(),typeof t=="function"&&(t=await t(s)),await Yt(t)})}export{$t as ContextMenu,Bs as assetToPath,Hs as onEventShowMenu,Yt as showMenu}; //# sourceMappingURL=index.js.map diff --git a/webview-dist/index.js.map b/webview-dist/index.js.map index 9a2b8c5..d279aa2 100644 --- a/webview-dist/index.js.map +++ b/webview-dist/index.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../node_modules/@tauri-apps/api/chunk-FEIY7W7S.js", "../node_modules/@tauri-apps/api/chunk-5UWJICAP.js", "../node_modules/@tauri-apps/api/chunk-RKMHWDGH.js", "../node_modules/@tauri-apps/api/chunk-M3Y6ZK7U.js", "../node_modules/@tauri-apps/api/chunk-4NZJJ336.js", "../node_modules/@tauri-apps/api/chunk-NMUKSDLG.js", "../node_modules/@tauri-apps/api/chunk-CICBN6X2.js", "../node_modules/@tauri-apps/api/chunk-V5J25SYE.js", "../node_modules/@tauri-apps/api/chunk-2GTLV2NE.js", "../node_modules/@tauri-apps/api/chunk-GP2EXCRB.js", "../node_modules/@tauri-apps/api/chunk-PEDMYRP6.js", "../node_modules/@tauri-apps/api/chunk-3O263AOJ.js", "../node_modules/@tauri-apps/api/chunk-6XWZL67Z.js", "../node_modules/@tauri-apps/api/chunk-DIFM6EX4.js", "../node_modules/@tauri-apps/api/chunk-6IDLE7HB.js", "../node_modules/@tauri-apps/api/chunk-6PDK3LJA.js", "../node_modules/@tauri-apps/api/chunk-WJKH4UU7.js", "../node_modules/@tauri-apps/api/chunk-ITP3W3MJ.js", "../node_modules/@tauri-apps/api/chunk-XH7VLPQH.js", "../node_modules/@tauri-apps/api/index.js", "../webview-src/types.ts", "../webview-src/index.ts"], - "sourcesContent": ["var d=Object.defineProperty;var e=(c,a)=>{for(var b in a)d(c,b,{get:a[b],enumerable:!0})};export{e as a};\n", "import{a as c}from\"./chunk-FEIY7W7S.js\";var w={};c(w,{convertFileSrc:()=>u,invoke:()=>d,transformCallback:()=>s});function l(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function s(r,n=!1){let e=l(),t=`_${e}`;return Object.defineProperty(window,t,{value:o=>(n&&Reflect.deleteProperty(window,t),r?.(o)),writable:!1,configurable:!0}),e}async function d(r,n={}){return new Promise((e,t)=>{let o=s(i=>{e(i),Reflect.deleteProperty(window,`_${a}`)},!0),a=s(i=>{t(i),Reflect.deleteProperty(window,`_${o}`)},!0);window.__TAURI_IPC__({cmd:r,callback:o,error:a,...n})})}function u(r,n=\"asset\"){let e=encodeURIComponent(r);return navigator.userAgent.includes(\"Windows\")?`https://${n}.localhost/${e}`:`${n}://localhost/${e}`}export{s as a,d as b,u as c,w as d};\n", "import{b as o}from\"./chunk-5UWJICAP.js\";async function a(i){return o(\"tauri\",i)}export{a};\n", "import{a as o}from\"./chunk-RKMHWDGH.js\";import{a as l}from\"./chunk-5UWJICAP.js\";import{a as d}from\"./chunk-FEIY7W7S.js\";var W={};d(W,{TauriEvent:()=>c,emit:()=>D,listen:()=>E,once:()=>_});async function s(n,t){return o({__tauriModule:\"Event\",message:{cmd:\"unlisten\",event:n,eventId:t}})}async function m(n,t,r){await o({__tauriModule:\"Event\",message:{cmd:\"emit\",event:n,windowLabel:t,payload:r}})}async function a(n,t,r){return o({__tauriModule:\"Event\",message:{cmd:\"listen\",event:n,windowLabel:t,handler:l(r)}}).then(i=>async()=>s(n,i))}async function u(n,t,r){return a(n,t,i=>{r(i),s(n,i.id).catch(()=>{})})}var c=(e=>(e.WINDOW_RESIZED=\"tauri://resize\",e.WINDOW_MOVED=\"tauri://move\",e.WINDOW_CLOSE_REQUESTED=\"tauri://close-requested\",e.WINDOW_CREATED=\"tauri://window-created\",e.WINDOW_DESTROYED=\"tauri://destroyed\",e.WINDOW_FOCUS=\"tauri://focus\",e.WINDOW_BLUR=\"tauri://blur\",e.WINDOW_SCALE_FACTOR_CHANGED=\"tauri://scale-change\",e.WINDOW_THEME_CHANGED=\"tauri://theme-changed\",e.WINDOW_FILE_DROP=\"tauri://file-drop\",e.WINDOW_FILE_DROP_HOVER=\"tauri://file-drop-hover\",e.WINDOW_FILE_DROP_CANCELLED=\"tauri://file-drop-cancelled\",e.MENU=\"tauri://menu\",e.CHECK_UPDATE=\"tauri://update\",e.UPDATE_AVAILABLE=\"tauri://update-available\",e.INSTALL_UPDATE=\"tauri://update-install\",e.STATUS_UPDATE=\"tauri://update-status\",e.DOWNLOAD_PROGRESS=\"tauri://update-download-progress\",e))(c||{});async function E(n,t){return a(n,null,t)}async function _(n,t){return u(n,null,t)}async function D(n,t){return m(n,void 0,t)}export{m as a,a as b,u as c,c as d,E as e,_ as f,D as g,W as h};\n", "import{e as u,f as p,g as s}from\"./chunk-M3Y6ZK7U.js\";import{a as U}from\"./chunk-FEIY7W7S.js\";var l={};U(l,{checkUpdate:()=>c,installUpdate:()=>f,onUpdaterEvent:()=>d});async function d(n){return u(\"tauri://update-status\",e=>{n(e?.payload)})}async function f(){let n;function e(){n&&n(),n=void 0}return new Promise((i,r)=>{function o(a){if(a.error){e(),r(a.error);return}a.status===\"DONE\"&&(e(),i())}d(o).then(a=>{n=a}).catch(a=>{throw e(),a}),s(\"tauri://update-install\").catch(a=>{throw e(),a})})}async function c(){let n;function e(){n&&n(),n=void 0}return new Promise((i,r)=>{function o(t){e(),i({manifest:t,shouldUpdate:!0})}function a(t){if(t.error){e(),r(t.error);return}t.status===\"UPTODATE\"&&(e(),i({shouldUpdate:!1}))}p(\"tauri://update-available\",t=>{o(t?.payload)}).catch(t=>{throw e(),t}),d(a).then(t=>{n=t}).catch(t=>{throw e(),t}),s(\"tauri://update\").catch(t=>{throw e(),t})})}export{d as a,f as b,c,l as d};\n", "import{a as _,b as w,c as P}from\"./chunk-M3Y6ZK7U.js\";import{a as i}from\"./chunk-RKMHWDGH.js\";import{a as z}from\"./chunk-FEIY7W7S.js\";var S={};z(S,{CloseRequestedEvent:()=>y,LogicalPosition:()=>c,LogicalSize:()=>m,PhysicalPosition:()=>r,PhysicalSize:()=>o,UserAttentionType:()=>W,WebviewWindow:()=>s,WebviewWindowHandle:()=>u,WindowManager:()=>b,appWindow:()=>g,availableMonitors:()=>D,currentMonitor:()=>C,getAll:()=>h,getCurrent:()=>E,primaryMonitor:()=>T});var m=class{constructor(e,a){this.type=\"Logical\";this.width=e,this.height=a}},o=class{constructor(e,a){this.type=\"Physical\";this.width=e,this.height=a}toLogical(e){return new m(this.width/e,this.height/e)}},c=class{constructor(e,a){this.type=\"Logical\";this.x=e,this.y=a}},r=class{constructor(e,a){this.type=\"Physical\";this.x=e,this.y=a}toLogical(e){return new c(this.x/e,this.y/e)}},W=(a=>(a[a.Critical=1]=\"Critical\",a[a.Informational=2]=\"Informational\",a))(W||{});function E(){return new s(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function h(){return window.__TAURI_METADATA__.__windows.map(t=>new s(t.label,{skip:!0}))}var M=[\"tauri://created\",\"tauri://error\"],u=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,a){return this._handleTauriEvent(e,a)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(a),1)}):w(e,this.label,a)}async once(e,a){return this._handleTauriEvent(e,a)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(a),1)}):P(e,this.label,a)}async emit(e,a){if(M.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:a});return Promise.resolve()}return _(e,this.label,a)}_handleTauriEvent(e,a){return M.includes(e)?(e in this.listeners?this.listeners[e].push(a):this.listeners[e]=[a],!0):!1}},b=class extends u{async scaleFactor(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"scaleFactor\"}}}})}async innerPosition(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"innerPosition\"}}}}).then(({x:e,y:a})=>new r(e,a))}async outerPosition(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"outerPosition\"}}}}).then(({x:e,y:a})=>new r(e,a))}async innerSize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"innerSize\"}}}}).then(({width:e,height:a})=>new o(e,a))}async outerSize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"outerSize\"}}}}).then(({width:e,height:a})=>new o(e,a))}async isFullscreen(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isFullscreen\"}}}})}async isMinimized(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isMinimized\"}}}})}async isMaximized(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isMaximized\"}}}})}async isFocused(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isFocused\"}}}})}async isDecorated(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isDecorated\"}}}})}async isResizable(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isResizable\"}}}})}async isMaximizable(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isMaximizable\"}}}})}async isMinimizable(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isMinimizable\"}}}})}async isClosable(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isClosable\"}}}})}async isVisible(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isVisible\"}}}})}async title(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"title\"}}}})}async theme(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"theme\"}}}})}async center(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"center\"}}}})}async requestUserAttention(e){let a=null;return e&&(e===1?a={type:\"Critical\"}:a={type:\"Informational\"}),i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"requestUserAttention\",payload:a}}}})}async setResizable(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setResizable\",payload:e}}}})}async setMaximizable(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMaximizable\",payload:e}}}})}async setMinimizable(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMinimizable\",payload:e}}}})}async setClosable(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setClosable\",payload:e}}}})}async setTitle(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setTitle\",payload:e}}}})}async maximize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"maximize\"}}}})}async unmaximize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"unmaximize\"}}}})}async toggleMaximize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"toggleMaximize\"}}}})}async minimize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"minimize\"}}}})}async unminimize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"unminimize\"}}}})}async show(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"show\"}}}})}async hide(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"hide\"}}}})}async close(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"close\"}}}})}async setDecorations(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setDecorations\",payload:e}}}})}async setAlwaysOnTop(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setAlwaysOnTop\",payload:e}}}})}async setContentProtected(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setContentProtected\",payload:e}}}})}async setSize(e){if(!e||e.type!==\"Logical\"&&e.type!==\"Physical\")throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setSize\",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!==\"Logical\"&&e.type!==\"Physical\")throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMinSize\",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!==\"Logical\"&&e.type!==\"Physical\")throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMaxSize\",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!==\"Logical\"&&e.type!==\"Physical\")throw new Error(\"the `position` argument must be either a LogicalPosition or a PhysicalPosition instance\");return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setPosition\",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setFullscreen\",payload:e}}}})}async setFocus(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setFocus\"}}}})}async setIcon(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setIcon\",payload:{icon:typeof e==\"string\"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setSkipTaskbar\",payload:e}}}})}async setCursorGrab(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setCursorGrab\",payload:e}}}})}async setCursorVisible(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setCursorVisible\",payload:e}}}})}async setCursorIcon(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setCursorIcon\",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!==\"Logical\"&&e.type!==\"Physical\")throw new Error(\"the `position` argument must be either a LogicalPosition or a PhysicalPosition instance\");return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setCursorPosition\",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setIgnoreCursorEvents\",payload:e}}}})}async startDragging(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"startDragging\"}}}})}async onResized(e){return this.listen(\"tauri://resize\",a=>{a.payload=f(a.payload),e(a)})}async onMoved(e){return this.listen(\"tauri://move\",a=>{a.payload=v(a.payload),e(a)})}async onCloseRequested(e){return this.listen(\"tauri://close-requested\",a=>{let n=new y(a);Promise.resolve(e(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})}async onFocusChanged(e){let a=await this.listen(\"tauri://focus\",d=>{e({...d,payload:!0})}),n=await this.listen(\"tauri://blur\",d=>{e({...d,payload:!1})});return()=>{a(),n()}}async onScaleChanged(e){return this.listen(\"tauri://scale-change\",e)}async onMenuClicked(e){return this.listen(\"tauri://menu\",e)}async onFileDropEvent(e){let a=await this.listen(\"tauri://file-drop\",l=>{e({...l,payload:{type:\"drop\",paths:l.payload}})}),n=await this.listen(\"tauri://file-drop-hover\",l=>{e({...l,payload:{type:\"hover\",paths:l.payload}})}),d=await this.listen(\"tauri://file-drop-cancelled\",l=>{e({...l,payload:{type:\"cancel\"}})});return()=>{a(),n(),d()}}async onThemeChanged(e){return this.listen(\"tauri://theme-changed\",e)}},y=class{constructor(e){this._preventDefault=!1;this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},s=class extends b{constructor(e,a={}){super(e),a?.skip||i({__tauriModule:\"Window\",message:{cmd:\"createWebview\",data:{options:{label:e,...a}}}}).then(async()=>this.emit(\"tauri://created\")).catch(async n=>this.emit(\"tauri://error\",n))}static getByLabel(e){return h().some(a=>a.label===e)?new s(e,{skip:!0}):null}static async getFocusedWindow(){for(let e of h())if(await e.isFocused())return e;return null}},g;\"__TAURI_METADATA__\"in window?g=new s(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(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.`),g=new s(\"main\",{skip:!0}));function p(t){return t===null?null:{name:t.name,scaleFactor:t.scaleFactor,position:v(t.position),size:f(t.size)}}function v(t){return new r(t.x,t.y)}function f(t){return new o(t.width,t.height)}async function C(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"currentMonitor\"}}}}).then(p)}async function T(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"primaryMonitor\"}}}}).then(p)}async function D(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"availableMonitors\"}}}}).then(t=>t.map(p))}export{m as a,o as b,c,r as d,W as e,E as f,h as g,u as h,b as i,y as j,s as k,g as l,C as m,T as n,D as o,S as p};\n", "import{a as n}from\"./chunk-RKMHWDGH.js\";import{a as e}from\"./chunk-FEIY7W7S.js\";var s={};e(s,{isPermissionGranted:()=>o,requestPermission:()=>t,sendNotification:()=>r});async function o(){return window.Notification.permission!==\"default\"?Promise.resolve(window.Notification.permission===\"granted\"):n({__tauriModule:\"Notification\",message:{cmd:\"isNotificationPermissionGranted\"}})}async function t(){return window.Notification.requestPermission()}function r(i){typeof i==\"string\"?new window.Notification(i):new window.Notification(i.title,i)}export{o as a,t as b,r as c,s as d};\n", "function n(){return navigator.appVersion.includes(\"Win\")}export{n as a};\n", "import{a as s}from\"./chunk-V5J25SYE.js\";import{a as r}from\"./chunk-RKMHWDGH.js\";import{a as e}from\"./chunk-FEIY7W7S.js\";var u={};e(u,{EOL:()=>n,arch:()=>a,locale:()=>c,platform:()=>o,tempdir:()=>m,type:()=>t,version:()=>i});var n=s()?`\\r\n`:`\n`;async function o(){return r({__tauriModule:\"Os\",message:{cmd:\"platform\"}})}async function i(){return r({__tauriModule:\"Os\",message:{cmd:\"version\"}})}async function t(){return r({__tauriModule:\"Os\",message:{cmd:\"osType\"}})}async function a(){return r({__tauriModule:\"Os\",message:{cmd:\"arch\"}})}async function m(){return r({__tauriModule:\"Os\",message:{cmd:\"tempdir\"}})}async function c(){return r({__tauriModule:\"Os\",message:{cmd:\"locale\"}})}export{n as a,o as b,i as c,t as d,a as e,m as f,c as g,u as h};\n", "import{a as o}from\"./chunk-RKMHWDGH.js\";import{a as p}from\"./chunk-FEIY7W7S.js\";var x={};p(x,{BaseDirectory:()=>F,Dir:()=>F,copyFile:()=>c,createDir:()=>d,exists:()=>v,readBinaryFile:()=>a,readDir:()=>m,readTextFile:()=>l,removeDir:()=>g,removeFile:()=>O,renameFile:()=>_,writeBinaryFile:()=>f,writeFile:()=>u,writeTextFile:()=>u});var F=(n=>(n[n.Audio=1]=\"Audio\",n[n.Cache=2]=\"Cache\",n[n.Config=3]=\"Config\",n[n.Data=4]=\"Data\",n[n.LocalData=5]=\"LocalData\",n[n.Desktop=6]=\"Desktop\",n[n.Document=7]=\"Document\",n[n.Download=8]=\"Download\",n[n.Executable=9]=\"Executable\",n[n.Font=10]=\"Font\",n[n.Home=11]=\"Home\",n[n.Picture=12]=\"Picture\",n[n.Public=13]=\"Public\",n[n.Runtime=14]=\"Runtime\",n[n.Template=15]=\"Template\",n[n.Video=16]=\"Video\",n[n.Resource=17]=\"Resource\",n[n.App=18]=\"App\",n[n.Log=19]=\"Log\",n[n.Temp=20]=\"Temp\",n[n.AppConfig=21]=\"AppConfig\",n[n.AppData=22]=\"AppData\",n[n.AppLocalData=23]=\"AppLocalData\",n[n.AppCache=24]=\"AppCache\",n[n.AppLog=25]=\"AppLog\",n))(F||{});async function l(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"readTextFile\",path:i,options:t}})}async function a(i,t={}){let s=await o({__tauriModule:\"Fs\",message:{cmd:\"readFile\",path:i,options:t}});return Uint8Array.from(s)}async function u(i,t,s){typeof s==\"object\"&&Object.freeze(s),typeof i==\"object\"&&Object.freeze(i);let e={path:\"\",contents:\"\"},r=s;return typeof i==\"string\"?e.path=i:(e.path=i.path,e.contents=i.contents),typeof t==\"string\"?e.contents=t??\"\":r=t,o({__tauriModule:\"Fs\",message:{cmd:\"writeFile\",path:e.path,contents:Array.from(new TextEncoder().encode(e.contents)),options:r}})}async function f(i,t,s){typeof s==\"object\"&&Object.freeze(s),typeof i==\"object\"&&Object.freeze(i);let e={path:\"\",contents:[]},r=s;return typeof i==\"string\"?e.path=i:(e.path=i.path,e.contents=i.contents),t&&\"dir\"in t?r=t:typeof i==\"string\"&&(e.contents=t??[]),o({__tauriModule:\"Fs\",message:{cmd:\"writeFile\",path:e.path,contents:Array.from(e.contents instanceof ArrayBuffer?new Uint8Array(e.contents):e.contents),options:r}})}async function m(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"readDir\",path:i,options:t}})}async function d(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"createDir\",path:i,options:t}})}async function g(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"removeDir\",path:i,options:t}})}async function c(i,t,s={}){return o({__tauriModule:\"Fs\",message:{cmd:\"copyFile\",source:i,destination:t,options:s}})}async function O(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"removeFile\",path:i,options:t}})}async function _(i,t,s={}){return o({__tauriModule:\"Fs\",message:{cmd:\"renameFile\",oldPath:i,newPath:t,options:s}})}async function v(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"exists\",path:i,options:t}})}export{F as a,l as b,a as c,u as d,f as e,m as f,d as g,g as h,c as i,O as j,_ as k,v as l,x as m};\n", "import{a as e}from\"./chunk-V5J25SYE.js\";import{a as i}from\"./chunk-GP2EXCRB.js\";import{a as r}from\"./chunk-RKMHWDGH.js\";import{a as o}from\"./chunk-FEIY7W7S.js\";var q={};o(q,{BaseDirectory:()=>i,appCacheDir:()=>g,appConfigDir:()=>s,appDataDir:()=>c,appDir:()=>u,appLocalDataDir:()=>m,appLogDir:()=>n,audioDir:()=>d,basename:()=>V,cacheDir:()=>P,configDir:()=>h,dataDir:()=>l,delimiter:()=>z,desktopDir:()=>_,dirname:()=>F,documentDir:()=>p,downloadDir:()=>y,executableDir:()=>f,extname:()=>H,fontDir:()=>D,homeDir:()=>M,isAbsolute:()=>W,join:()=>E,localDataDir:()=>v,logDir:()=>w,normalize:()=>B,pictureDir:()=>b,publicDir:()=>A,resolve:()=>T,resolveResource:()=>x,resourceDir:()=>C,runtimeDir:()=>L,sep:()=>j,templateDir:()=>R,videoDir:()=>k});async function u(){return s()}async function s(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:21}})}async function c(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:22}})}async function m(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:23}})}async function g(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:24}})}async function d(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:1}})}async function P(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:2}})}async function h(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:3}})}async function l(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:4}})}async function _(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:6}})}async function p(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:7}})}async function y(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:8}})}async function f(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:9}})}async function D(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:10}})}async function M(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:11}})}async function v(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:5}})}async function b(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:12}})}async function A(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:13}})}async function C(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:17}})}async function x(t){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:t,directory:17}})}async function L(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:14}})}async function R(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:15}})}async function k(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:16}})}async function w(){return n()}async function n(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:25}})}var j=e()?\"\\\\\":\"/\",z=e()?\";\":\":\";async function T(...t){return r({__tauriModule:\"Path\",message:{cmd:\"resolve\",paths:t}})}async function B(t){return r({__tauriModule:\"Path\",message:{cmd:\"normalize\",path:t}})}async function E(...t){return r({__tauriModule:\"Path\",message:{cmd:\"join\",paths:t}})}async function F(t){return r({__tauriModule:\"Path\",message:{cmd:\"dirname\",path:t}})}async function H(t){return r({__tauriModule:\"Path\",message:{cmd:\"extname\",path:t}})}async function V(t,a){return r({__tauriModule:\"Path\",message:{cmd:\"basename\",path:t,ext:a}})}async function W(t){return r({__tauriModule:\"Path\",message:{cmd:\"isAbsolute\",path:t}})}export{u as a,s as b,c,m as d,g as e,d as f,P as g,h,l as i,_ as j,p as k,y as l,f as m,D as n,M as o,v as p,b as q,A as r,C as s,x as t,L as u,R as v,k as w,w as x,n as y,j as z,z as A,T as B,B as C,E as D,F as E,H as F,V as G,W as H,q as I};\n", "import{a as e}from\"./chunk-RKMHWDGH.js\";import{a as o}from\"./chunk-FEIY7W7S.js\";var s={};o(s,{exit:()=>i,relaunch:()=>n});async function i(r=0){return e({__tauriModule:\"Process\",message:{cmd:\"exit\",exitCode:r}})}async function n(){return e({__tauriModule:\"Process\",message:{cmd:\"relaunch\"}})}export{i as a,n as b,s as c};\n", "import{a as d}from\"./chunk-RKMHWDGH.js\";import{a as h}from\"./chunk-5UWJICAP.js\";import{a as u}from\"./chunk-FEIY7W7S.js\";var m={};u(m,{Child:()=>c,Command:()=>l,EventEmitter:()=>i,open:()=>g});async function p(o,e,t=[],r){return typeof t==\"object\"&&Object.freeze(t),d({__tauriModule:\"Shell\",message:{cmd:\"execute\",program:e,args:t,options:r,onEventFn:h(o)}})}var i=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let r=(...s)=>{this.removeListener(e,r),t(...s)};return this.addListener(e,r)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let r=this.eventListeners[e];for(let s of r)s(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let r=(...s)=>{this.removeListener(e,r),t(...s)};return this.prependListener(e,r)}},c=class{constructor(e){this.pid=e}async write(e){return d({__tauriModule:\"Shell\",message:{cmd:\"stdinWrite\",pid:this.pid,buffer:typeof e==\"string\"?e:Array.from(e)}})}async kill(){return d({__tauriModule:\"Shell\",message:{cmd:\"killChild\",pid:this.pid}})}},l=class extends i{constructor(t,r=[],s){super();this.stdout=new i;this.stderr=new i;this.program=t,this.args=typeof r==\"string\"?[r]:r,this.options=s??{}}static sidecar(t,r=[],s){let a=new l(t,r,s);return a.options.sidecar=!0,a}async spawn(){return p(t=>{switch(t.event){case\"Error\":this.emit(\"error\",t.payload);break;case\"Terminated\":this.emit(\"close\",t.payload);break;case\"Stdout\":this.stdout.emit(\"data\",t.payload);break;case\"Stderr\":this.stderr.emit(\"data\",t.payload);break}},this.program,this.args,this.options).then(t=>new c(t))}async execute(){return new Promise((t,r)=>{this.on(\"error\",r);let s=[],a=[];this.stdout.on(\"data\",n=>{s.push(n)}),this.stderr.on(\"data\",n=>{a.push(n)}),this.on(\"close\",n=>{t({code:n.code,signal:n.signal,stdout:s.join(`\n`),stderr:a.join(`\n`)})}),this.spawn().catch(r)})}};async function g(o,e){return d({__tauriModule:\"Shell\",message:{cmd:\"open\",path:o,with:e}})}export{i as a,c as b,l as c,g as d,m as e};\n", "import{a as e}from\"./chunk-RKMHWDGH.js\";import{a as r}from\"./chunk-FEIY7W7S.js\";var u={};r(u,{getName:()=>n,getTauriVersion:()=>s,getVersion:()=>i,hide:()=>t,show:()=>o});async function i(){return e({__tauriModule:\"App\",message:{cmd:\"getAppVersion\"}})}async function n(){return e({__tauriModule:\"App\",message:{cmd:\"getAppName\"}})}async function s(){return e({__tauriModule:\"App\",message:{cmd:\"getTauriVersion\"}})}async function o(){return e({__tauriModule:\"App\",message:{cmd:\"show\"}})}async function t(){return e({__tauriModule:\"App\",message:{cmd:\"hide\"}})}export{i as a,n as b,s as c,o as d,t as e,u as f};\n", "import{a as e}from\"./chunk-RKMHWDGH.js\";import{a}from\"./chunk-FEIY7W7S.js\";var t={};a(t,{getMatches:()=>c});async function c(){return e({__tauriModule:\"Cli\",message:{cmd:\"cliMatches\"}})}export{c as a,t as b};\n", "import{a as e}from\"./chunk-RKMHWDGH.js\";import{a as t}from\"./chunk-FEIY7W7S.js\";var n={};t(n,{readText:()=>i,writeText:()=>a});async function a(r){return e({__tauriModule:\"Clipboard\",message:{cmd:\"writeText\",data:r}})}async function i(){return e({__tauriModule:\"Clipboard\",message:{cmd:\"readText\",data:null}})}export{a,i as b,n as c};\n", "import{a as n}from\"./chunk-RKMHWDGH.js\";import{a as o}from\"./chunk-FEIY7W7S.js\";var c={};o(c,{ask:()=>l,confirm:()=>g,message:()=>s,open:()=>a,save:()=>r});async function a(t={}){return typeof t==\"object\"&&Object.freeze(t),n({__tauriModule:\"Dialog\",message:{cmd:\"openDialog\",options:t}})}async function r(t={}){return typeof t==\"object\"&&Object.freeze(t),n({__tauriModule:\"Dialog\",message:{cmd:\"saveDialog\",options:t}})}async function s(t,i){let e=typeof i==\"string\"?{title:i}:i;return n({__tauriModule:\"Dialog\",message:{cmd:\"messageDialog\",message:t.toString(),title:e?.title?.toString(),type:e?.type,buttonLabel:e?.okLabel?.toString()}})}async function l(t,i){let e=typeof i==\"string\"?{title:i}:i;return n({__tauriModule:\"Dialog\",message:{cmd:\"askDialog\",message:t.toString(),title:e?.title?.toString(),type:e?.type,buttonLabels:[e?.okLabel?.toString()??\"Yes\",e?.cancelLabel?.toString()??\"No\"]}})}async function g(t,i){let e=typeof i==\"string\"?{title:i}:i;return n({__tauriModule:\"Dialog\",message:{cmd:\"confirmDialog\",message:t.toString(),title:e?.title?.toString(),type:e?.type,buttonLabels:[e?.okLabel?.toString()??\"Ok\",e?.cancelLabel?.toString()??\"Cancel\"]}})}export{a,r as b,s as c,l as d,g as e,c as f};\n", "import{a as e}from\"./chunk-RKMHWDGH.js\";import{a as o}from\"./chunk-5UWJICAP.js\";import{a as i}from\"./chunk-FEIY7W7S.js\";var c={};i(c,{isRegistered:()=>u,register:()=>s,registerAll:()=>n,unregister:()=>a,unregisterAll:()=>l});async function s(r,t){return e({__tauriModule:\"GlobalShortcut\",message:{cmd:\"register\",shortcut:r,handler:o(t)}})}async function n(r,t){return e({__tauriModule:\"GlobalShortcut\",message:{cmd:\"registerAll\",shortcuts:r,handler:o(t)}})}async function u(r){return e({__tauriModule:\"GlobalShortcut\",message:{cmd:\"isRegistered\",shortcut:r}})}async function a(r){return e({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregister\",shortcut:r}})}async function l(){return e({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregisterAll\"}})}export{s as a,n as b,u as c,a as d,l as e,c as f};\n", "import{a as u}from\"./chunk-RKMHWDGH.js\";import{a as f}from\"./chunk-FEIY7W7S.js\";var T={};f(T,{Body:()=>i,Client:()=>p,Response:()=>m,ResponseType:()=>c,fetch:()=>y,getClient:()=>d});var c=(s=>(s[s.JSON=1]=\"JSON\",s[s.Text=2]=\"Text\",s[s.Binary=3]=\"Binary\",s))(c||{}),i=class{constructor(e,r){this.type=e,this.payload=r}static form(e){let r={},s=(n,t)=>{if(t!==null){let a;typeof t==\"string\"?a=t:t instanceof Uint8Array||Array.isArray(t)?a=Array.from(t):t instanceof File?a={file:t.name,mime:t.type,fileName:t.name}:typeof t.file==\"string\"?a={file:t.file,mime:t.mime,fileName:t.fileName}:a={file:Array.from(t.file),mime:t.mime,fileName:t.fileName},r[String(n)]=a}};if(e instanceof FormData)for(let[n,t]of e)s(n,t);else for(let[n,t]of Object.entries(e))s(n,t);return new i(\"Form\",r)}static json(e){return new i(\"Json\",e)}static text(e){return new i(\"Text\",e)}static bytes(e){return new i(\"Bytes\",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},m=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},p=class{constructor(e){this.id=e}async drop(){return u({__tauriModule:\"Http\",message:{cmd:\"dropClient\",client:this.id}})}async request(e){let r=!e.responseType||e.responseType===1;return r&&(e.responseType=2),u({__tauriModule:\"Http\",message:{cmd:\"httpRequest\",client:this.id,options:e}}).then(s=>{let n=new m(s);if(r){try{n.data=JSON.parse(n.data)}catch(t){if(n.ok&&n.data===\"\")n.data={};else if(n.ok)throw Error(`Failed to parse response \\`${n.data}\\` as JSON: ${t};\n try setting the \\`responseType\\` option to \\`ResponseType.Text\\` or \\`ResponseType.Binary\\` if the API does not return a JSON response.`)}return n}return n})}async get(e,r){return this.request({method:\"GET\",url:e,...r})}async post(e,r,s){return this.request({method:\"POST\",url:e,body:r,...s})}async put(e,r,s){return this.request({method:\"PUT\",url:e,body:r,...s})}async patch(e,r){return this.request({method:\"PATCH\",url:e,...r})}async delete(e,r){return this.request({method:\"DELETE\",url:e,...r})}};async function d(o){return u({__tauriModule:\"Http\",message:{cmd:\"createClient\",options:o}}).then(e=>new p(e))}var l=null;async function y(o,e){return l===null&&(l=await d()),l.request({url:o,method:e?.method??\"GET\",...e})}export{c as a,i as b,m as c,p as d,d as e,y as f,T as g};\n", "import{d as h}from\"./chunk-4NZJJ336.js\";import{p as u}from\"./chunk-NMUKSDLG.js\";import{d as l}from\"./chunk-CICBN6X2.js\";import{h as v}from\"./chunk-2GTLV2NE.js\";import{I as n}from\"./chunk-PEDMYRP6.js\";import\"./chunk-V5J25SYE.js\";import{c}from\"./chunk-3O263AOJ.js\";import{e as d}from\"./chunk-6XWZL67Z.js\";import{f as m}from\"./chunk-DIFM6EX4.js\";import{b as t}from\"./chunk-6IDLE7HB.js\";import{c as i}from\"./chunk-6PDK3LJA.js\";import{f as a}from\"./chunk-WJKH4UU7.js\";import{h as p}from\"./chunk-M3Y6ZK7U.js\";import{m as s}from\"./chunk-GP2EXCRB.js\";import{f}from\"./chunk-ITP3W3MJ.js\";import{g as e}from\"./chunk-XH7VLPQH.js\";import\"./chunk-RKMHWDGH.js\";import{b as o,d as r}from\"./chunk-5UWJICAP.js\";import\"./chunk-FEIY7W7S.js\";var b=o;export{m as app,t as cli,i as clipboard,a as dialog,p as event,s as fs,f as globalShortcut,e as http,b as invoke,l as notification,v as os,n as path,c as process,d as shell,r as tauri,h as updater,u as window};\n", "export interface Position {\n x: number\n y: number\n is_absolute?: boolean\n}\n\nexport interface Icon {\n path: string\n width?: number\n height?: number\n}\n\nexport interface Item {\n label?: string\n disabled?: boolean\n is_separator?: boolean\n event?: string|Function\n shortcut?: string\n icon?: Icon\n subitems?: Item[]\n}\n\nexport interface Options {\n pos?: Position\n items: Item[]\n}\n\nexport type EventOptionsFunction = (e?: MouseEvent) => Options | Promise;\n\nexport type EventOptions = Options | EventOptionsFunction;", "import * as tauriApi from '@tauri-apps/api';\nimport * as tauriEvent from '@tauri-apps/api/event';\nimport * as tauriApiPath from '@tauri-apps/api/path';\n\nconst SHOW_COMMAND = 'plugin:context_menu|show_context_menu';\n\nimport * as ContextMenu from './types';\nexport { ContextMenu };\n\nexport async function assetToPath(asset: string): Promise {\n return await tauriApiPath.resolveResource(asset);\n}\n\nexport function showMenu(options: ContextMenu.Options): void {\n // for each item, if it is a function, replace it with an event listener\n function processItems(items: ContextMenu.Item[], prefix: string): void {\n for (let i = 0; i < items.length; i++) {\n const itemEvent = items[i].event;\n \n if (typeof itemEvent === 'function') {\n const eventName = `${prefix}_context_menu_item_${i}`;\n \n // Listen to the event and call the function directly\n tauriEvent.listen(eventName, (e) => itemEvent(e));\n items[i].event = eventName;\n }\n \n // Recurse into subitems if they exist\n if (items[i].subitems) {\n processItems(items[i].subitems as ContextMenu.Item[], `${prefix}_${i}`);\n }\n }\n }\n \n processItems(options.items, 'root');\n \n // send the options to the plugin\n tauriApi.invoke(SHOW_COMMAND, options as any);\n }\n \n\nexport function onEventShowMenu(eventName: string, options: ContextMenu.EventOptions): void {\n window.addEventListener(eventName, async (e) => {\n e.preventDefault();\n\n // if options is a function, call it to get the options\n if (typeof options === 'function') {\n options = await options(e as MouseEvent);\n }\n\n showMenu(options);\n });\n}"], - "mappings":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D,CAEO,SAASE,GAASC,EAAoC,CAEzD,SAASC,EAAaC,EAA2BC,EAAsB,CACrE,QAAS,EAAI,EAAG,EAAID,EAAM,OAAQ,IAAK,CACrC,IAAME,EAAYF,EAAM,CAAC,EAAE,MAE3B,GAAI,OAAOE,GAAc,WAAY,CACnC,IAAMC,EAAY,GAAGF,CAAM,sBAAsB,CAAC,GAGvCG,EAAOD,EAAYE,IAAMH,EAAUG,EAAC,CAAC,EAChDL,EAAM,CAAC,EAAE,MAAQG,CACnB,CAGIH,EAAM,CAAC,EAAE,UACXD,EAAaC,EAAM,CAAC,EAAE,SAAgC,GAAGC,CAAM,IAAI,CAAC,EAAE,CAE1E,CACF,CAEAF,EAAaD,EAAQ,MAAO,MAAM,EAGzBQ,GAAOC,GAAcT,CAAc,CAC9C,CAGK,SAASU,GAAgBL,EAAmBL,EAAyC,CACxF,OAAO,iBAAiBK,EAAW,MAAOE,GAAM,CAC5CA,EAAE,eAAe,EAGb,OAAOP,GAAY,aACnBA,EAAU,MAAMA,EAAQO,CAAe,GAG3CR,GAASC,CAAO,CACpB,CAAC,CACL", - "names": ["d", "e", "c", "a", "b", "w", "e", "u", "d", "s", "l", "r", "n", "t", "o", "i", "a", "i", "d", "W", "e", "c", "D", "E", "s", "n", "m", "r", "a", "i", "u", "l", "e", "c", "f", "d", "n", "E", "i", "o", "a", "D", "t", "S", "e", "y", "c", "m", "r", "o", "W", "s", "u", "b", "g", "D", "C", "h", "E", "T", "a", "t", "M", "n", "f", "v", "d", "l", "p", "s", "e", "o", "t", "r", "i", "n", "u", "e", "n", "a", "c", "o", "m", "t", "i", "x", "e", "F", "c", "d", "v", "a", "m", "l", "g", "O", "_", "f", "u", "n", "i", "r", "q", "e", "F", "g", "s", "c", "u", "m", "n", "d", "V", "P", "h", "l", "z", "_", "p", "y", "f", "H", "D", "M", "W", "E", "v", "w", "B", "b", "A", "T", "x", "C", "L", "j", "R", "k", "t", "a", "s", "e", "i", "n", "r", "m", "e", "c", "l", "i", "g", "p", "o", "t", "s", "r", "a", "n", "u", "e", "n", "s", "i", "t", "o", "t", "e", "c", "n", "e", "i", "a", "r", "c", "e", "l", "g", "s", "a", "r", "t", "i", "c", "e", "u", "s", "n", "a", "l", "r", "T", "e", "i", "p", "m", "c", "y", "d", "s", "r", "n", "t", "a", "o", "l", "b", "d", "types_exports", "SHOW_COMMAND", "assetToPath", "asset", "x", "showMenu", "options", "processItems", "items", "prefix", "itemEvent", "eventName", "E", "e", "b", "SHOW_COMMAND", "onEventShowMenu"] + "sourcesContent": ["var d=Object.defineProperty;var e=(c,a)=>{for(var b in a)d(c,b,{get:a[b],enumerable:!0})};export{e as a};\n", "import{a as c}from\"./chunk-FEIY7W7S.js\";var w={};c(w,{convertFileSrc:()=>u,invoke:()=>d,transformCallback:()=>s});function l(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function s(r,n=!1){let e=l(),t=`_${e}`;return Object.defineProperty(window,t,{value:o=>(n&&Reflect.deleteProperty(window,t),r?.(o)),writable:!1,configurable:!0}),e}async function d(r,n={}){return new Promise((e,t)=>{let o=s(i=>{e(i),Reflect.deleteProperty(window,`_${a}`)},!0),a=s(i=>{t(i),Reflect.deleteProperty(window,`_${o}`)},!0);window.__TAURI_IPC__({cmd:r,callback:o,error:a,...n})})}function u(r,n=\"asset\"){let e=encodeURIComponent(r);return navigator.userAgent.includes(\"Windows\")?`https://${n}.localhost/${e}`:`${n}://localhost/${e}`}export{s as a,d as b,u as c,w as d};\n", "import{b as o}from\"./chunk-5UWJICAP.js\";async function a(i){return o(\"tauri\",i)}export{a};\n", "import{a as o}from\"./chunk-RKMHWDGH.js\";import{a as l}from\"./chunk-5UWJICAP.js\";import{a as d}from\"./chunk-FEIY7W7S.js\";var W={};d(W,{TauriEvent:()=>c,emit:()=>D,listen:()=>E,once:()=>_});async function s(n,t){return o({__tauriModule:\"Event\",message:{cmd:\"unlisten\",event:n,eventId:t}})}async function m(n,t,r){await o({__tauriModule:\"Event\",message:{cmd:\"emit\",event:n,windowLabel:t,payload:r}})}async function a(n,t,r){return o({__tauriModule:\"Event\",message:{cmd:\"listen\",event:n,windowLabel:t,handler:l(r)}}).then(i=>async()=>s(n,i))}async function u(n,t,r){return a(n,t,i=>{r(i),s(n,i.id).catch(()=>{})})}var c=(e=>(e.WINDOW_RESIZED=\"tauri://resize\",e.WINDOW_MOVED=\"tauri://move\",e.WINDOW_CLOSE_REQUESTED=\"tauri://close-requested\",e.WINDOW_CREATED=\"tauri://window-created\",e.WINDOW_DESTROYED=\"tauri://destroyed\",e.WINDOW_FOCUS=\"tauri://focus\",e.WINDOW_BLUR=\"tauri://blur\",e.WINDOW_SCALE_FACTOR_CHANGED=\"tauri://scale-change\",e.WINDOW_THEME_CHANGED=\"tauri://theme-changed\",e.WINDOW_FILE_DROP=\"tauri://file-drop\",e.WINDOW_FILE_DROP_HOVER=\"tauri://file-drop-hover\",e.WINDOW_FILE_DROP_CANCELLED=\"tauri://file-drop-cancelled\",e.MENU=\"tauri://menu\",e.CHECK_UPDATE=\"tauri://update\",e.UPDATE_AVAILABLE=\"tauri://update-available\",e.INSTALL_UPDATE=\"tauri://update-install\",e.STATUS_UPDATE=\"tauri://update-status\",e.DOWNLOAD_PROGRESS=\"tauri://update-download-progress\",e))(c||{});async function E(n,t){return a(n,null,t)}async function _(n,t){return u(n,null,t)}async function D(n,t){return m(n,void 0,t)}export{m as a,a as b,u as c,c as d,E as e,_ as f,D as g,W as h};\n", "import{e as u,f as p,g as s}from\"./chunk-M3Y6ZK7U.js\";import{a as U}from\"./chunk-FEIY7W7S.js\";var l={};U(l,{checkUpdate:()=>c,installUpdate:()=>f,onUpdaterEvent:()=>d});async function d(n){return u(\"tauri://update-status\",e=>{n(e?.payload)})}async function f(){let n;function e(){n&&n(),n=void 0}return new Promise((i,r)=>{function o(a){if(a.error){e(),r(a.error);return}a.status===\"DONE\"&&(e(),i())}d(o).then(a=>{n=a}).catch(a=>{throw e(),a}),s(\"tauri://update-install\").catch(a=>{throw e(),a})})}async function c(){let n;function e(){n&&n(),n=void 0}return new Promise((i,r)=>{function o(t){e(),i({manifest:t,shouldUpdate:!0})}function a(t){if(t.error){e(),r(t.error);return}t.status===\"UPTODATE\"&&(e(),i({shouldUpdate:!1}))}p(\"tauri://update-available\",t=>{o(t?.payload)}).catch(t=>{throw e(),t}),d(a).then(t=>{n=t}).catch(t=>{throw e(),t}),s(\"tauri://update\").catch(t=>{throw e(),t})})}export{d as a,f as b,c,l as d};\n", "import{a as _,b as w,c as P}from\"./chunk-M3Y6ZK7U.js\";import{a as i}from\"./chunk-RKMHWDGH.js\";import{a as z}from\"./chunk-FEIY7W7S.js\";var S={};z(S,{CloseRequestedEvent:()=>y,LogicalPosition:()=>c,LogicalSize:()=>m,PhysicalPosition:()=>r,PhysicalSize:()=>o,UserAttentionType:()=>W,WebviewWindow:()=>s,WebviewWindowHandle:()=>u,WindowManager:()=>b,appWindow:()=>g,availableMonitors:()=>D,currentMonitor:()=>C,getAll:()=>h,getCurrent:()=>E,primaryMonitor:()=>T});var m=class{constructor(e,a){this.type=\"Logical\";this.width=e,this.height=a}},o=class{constructor(e,a){this.type=\"Physical\";this.width=e,this.height=a}toLogical(e){return new m(this.width/e,this.height/e)}},c=class{constructor(e,a){this.type=\"Logical\";this.x=e,this.y=a}},r=class{constructor(e,a){this.type=\"Physical\";this.x=e,this.y=a}toLogical(e){return new c(this.x/e,this.y/e)}},W=(a=>(a[a.Critical=1]=\"Critical\",a[a.Informational=2]=\"Informational\",a))(W||{});function E(){return new s(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function h(){return window.__TAURI_METADATA__.__windows.map(t=>new s(t.label,{skip:!0}))}var M=[\"tauri://created\",\"tauri://error\"],u=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,a){return this._handleTauriEvent(e,a)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(a),1)}):w(e,this.label,a)}async once(e,a){return this._handleTauriEvent(e,a)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(a),1)}):P(e,this.label,a)}async emit(e,a){if(M.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:a});return Promise.resolve()}return _(e,this.label,a)}_handleTauriEvent(e,a){return M.includes(e)?(e in this.listeners?this.listeners[e].push(a):this.listeners[e]=[a],!0):!1}},b=class extends u{async scaleFactor(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"scaleFactor\"}}}})}async innerPosition(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"innerPosition\"}}}}).then(({x:e,y:a})=>new r(e,a))}async outerPosition(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"outerPosition\"}}}}).then(({x:e,y:a})=>new r(e,a))}async innerSize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"innerSize\"}}}}).then(({width:e,height:a})=>new o(e,a))}async outerSize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"outerSize\"}}}}).then(({width:e,height:a})=>new o(e,a))}async isFullscreen(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isFullscreen\"}}}})}async isMinimized(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isMinimized\"}}}})}async isMaximized(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isMaximized\"}}}})}async isFocused(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isFocused\"}}}})}async isDecorated(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isDecorated\"}}}})}async isResizable(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isResizable\"}}}})}async isMaximizable(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isMaximizable\"}}}})}async isMinimizable(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isMinimizable\"}}}})}async isClosable(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isClosable\"}}}})}async isVisible(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isVisible\"}}}})}async title(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"title\"}}}})}async theme(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"theme\"}}}})}async center(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"center\"}}}})}async requestUserAttention(e){let a=null;return e&&(e===1?a={type:\"Critical\"}:a={type:\"Informational\"}),i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"requestUserAttention\",payload:a}}}})}async setResizable(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setResizable\",payload:e}}}})}async setMaximizable(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMaximizable\",payload:e}}}})}async setMinimizable(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMinimizable\",payload:e}}}})}async setClosable(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setClosable\",payload:e}}}})}async setTitle(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setTitle\",payload:e}}}})}async maximize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"maximize\"}}}})}async unmaximize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"unmaximize\"}}}})}async toggleMaximize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"toggleMaximize\"}}}})}async minimize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"minimize\"}}}})}async unminimize(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"unminimize\"}}}})}async show(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"show\"}}}})}async hide(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"hide\"}}}})}async close(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"close\"}}}})}async setDecorations(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setDecorations\",payload:e}}}})}async setAlwaysOnTop(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setAlwaysOnTop\",payload:e}}}})}async setContentProtected(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setContentProtected\",payload:e}}}})}async setSize(e){if(!e||e.type!==\"Logical\"&&e.type!==\"Physical\")throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setSize\",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!==\"Logical\"&&e.type!==\"Physical\")throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMinSize\",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!==\"Logical\"&&e.type!==\"Physical\")throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMaxSize\",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!==\"Logical\"&&e.type!==\"Physical\")throw new Error(\"the `position` argument must be either a LogicalPosition or a PhysicalPosition instance\");return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setPosition\",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setFullscreen\",payload:e}}}})}async setFocus(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setFocus\"}}}})}async setIcon(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setIcon\",payload:{icon:typeof e==\"string\"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setSkipTaskbar\",payload:e}}}})}async setCursorGrab(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setCursorGrab\",payload:e}}}})}async setCursorVisible(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setCursorVisible\",payload:e}}}})}async setCursorIcon(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setCursorIcon\",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!==\"Logical\"&&e.type!==\"Physical\")throw new Error(\"the `position` argument must be either a LogicalPosition or a PhysicalPosition instance\");return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setCursorPosition\",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setIgnoreCursorEvents\",payload:e}}}})}async startDragging(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"startDragging\"}}}})}async onResized(e){return this.listen(\"tauri://resize\",a=>{a.payload=f(a.payload),e(a)})}async onMoved(e){return this.listen(\"tauri://move\",a=>{a.payload=v(a.payload),e(a)})}async onCloseRequested(e){return this.listen(\"tauri://close-requested\",a=>{let n=new y(a);Promise.resolve(e(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})}async onFocusChanged(e){let a=await this.listen(\"tauri://focus\",d=>{e({...d,payload:!0})}),n=await this.listen(\"tauri://blur\",d=>{e({...d,payload:!1})});return()=>{a(),n()}}async onScaleChanged(e){return this.listen(\"tauri://scale-change\",e)}async onMenuClicked(e){return this.listen(\"tauri://menu\",e)}async onFileDropEvent(e){let a=await this.listen(\"tauri://file-drop\",l=>{e({...l,payload:{type:\"drop\",paths:l.payload}})}),n=await this.listen(\"tauri://file-drop-hover\",l=>{e({...l,payload:{type:\"hover\",paths:l.payload}})}),d=await this.listen(\"tauri://file-drop-cancelled\",l=>{e({...l,payload:{type:\"cancel\"}})});return()=>{a(),n(),d()}}async onThemeChanged(e){return this.listen(\"tauri://theme-changed\",e)}},y=class{constructor(e){this._preventDefault=!1;this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},s=class extends b{constructor(e,a={}){super(e),a?.skip||i({__tauriModule:\"Window\",message:{cmd:\"createWebview\",data:{options:{label:e,...a}}}}).then(async()=>this.emit(\"tauri://created\")).catch(async n=>this.emit(\"tauri://error\",n))}static getByLabel(e){return h().some(a=>a.label===e)?new s(e,{skip:!0}):null}static async getFocusedWindow(){for(let e of h())if(await e.isFocused())return e;return null}},g;\"__TAURI_METADATA__\"in window?g=new s(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(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.`),g=new s(\"main\",{skip:!0}));function p(t){return t===null?null:{name:t.name,scaleFactor:t.scaleFactor,position:v(t.position),size:f(t.size)}}function v(t){return new r(t.x,t.y)}function f(t){return new o(t.width,t.height)}async function C(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"currentMonitor\"}}}}).then(p)}async function T(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"primaryMonitor\"}}}}).then(p)}async function D(){return i({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"availableMonitors\"}}}}).then(t=>t.map(p))}export{m as a,o as b,c,r as d,W as e,E as f,h as g,u as h,b as i,y as j,s as k,g as l,C as m,T as n,D as o,S as p};\n", "import{a as n}from\"./chunk-RKMHWDGH.js\";import{a as e}from\"./chunk-FEIY7W7S.js\";var s={};e(s,{isPermissionGranted:()=>o,requestPermission:()=>t,sendNotification:()=>r});async function o(){return window.Notification.permission!==\"default\"?Promise.resolve(window.Notification.permission===\"granted\"):n({__tauriModule:\"Notification\",message:{cmd:\"isNotificationPermissionGranted\"}})}async function t(){return window.Notification.requestPermission()}function r(i){typeof i==\"string\"?new window.Notification(i):new window.Notification(i.title,i)}export{o as a,t as b,r as c,s as d};\n", "function n(){return navigator.appVersion.includes(\"Win\")}export{n as a};\n", "import{a as s}from\"./chunk-V5J25SYE.js\";import{a as r}from\"./chunk-RKMHWDGH.js\";import{a as e}from\"./chunk-FEIY7W7S.js\";var u={};e(u,{EOL:()=>n,arch:()=>a,locale:()=>c,platform:()=>o,tempdir:()=>m,type:()=>t,version:()=>i});var n=s()?`\\r\n`:`\n`;async function o(){return r({__tauriModule:\"Os\",message:{cmd:\"platform\"}})}async function i(){return r({__tauriModule:\"Os\",message:{cmd:\"version\"}})}async function t(){return r({__tauriModule:\"Os\",message:{cmd:\"osType\"}})}async function a(){return r({__tauriModule:\"Os\",message:{cmd:\"arch\"}})}async function m(){return r({__tauriModule:\"Os\",message:{cmd:\"tempdir\"}})}async function c(){return r({__tauriModule:\"Os\",message:{cmd:\"locale\"}})}export{n as a,o as b,i as c,t as d,a as e,m as f,c as g,u as h};\n", "import{a as o}from\"./chunk-RKMHWDGH.js\";import{a as p}from\"./chunk-FEIY7W7S.js\";var x={};p(x,{BaseDirectory:()=>F,Dir:()=>F,copyFile:()=>c,createDir:()=>d,exists:()=>v,readBinaryFile:()=>a,readDir:()=>m,readTextFile:()=>l,removeDir:()=>g,removeFile:()=>O,renameFile:()=>_,writeBinaryFile:()=>f,writeFile:()=>u,writeTextFile:()=>u});var F=(n=>(n[n.Audio=1]=\"Audio\",n[n.Cache=2]=\"Cache\",n[n.Config=3]=\"Config\",n[n.Data=4]=\"Data\",n[n.LocalData=5]=\"LocalData\",n[n.Desktop=6]=\"Desktop\",n[n.Document=7]=\"Document\",n[n.Download=8]=\"Download\",n[n.Executable=9]=\"Executable\",n[n.Font=10]=\"Font\",n[n.Home=11]=\"Home\",n[n.Picture=12]=\"Picture\",n[n.Public=13]=\"Public\",n[n.Runtime=14]=\"Runtime\",n[n.Template=15]=\"Template\",n[n.Video=16]=\"Video\",n[n.Resource=17]=\"Resource\",n[n.App=18]=\"App\",n[n.Log=19]=\"Log\",n[n.Temp=20]=\"Temp\",n[n.AppConfig=21]=\"AppConfig\",n[n.AppData=22]=\"AppData\",n[n.AppLocalData=23]=\"AppLocalData\",n[n.AppCache=24]=\"AppCache\",n[n.AppLog=25]=\"AppLog\",n))(F||{});async function l(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"readTextFile\",path:i,options:t}})}async function a(i,t={}){let s=await o({__tauriModule:\"Fs\",message:{cmd:\"readFile\",path:i,options:t}});return Uint8Array.from(s)}async function u(i,t,s){typeof s==\"object\"&&Object.freeze(s),typeof i==\"object\"&&Object.freeze(i);let e={path:\"\",contents:\"\"},r=s;return typeof i==\"string\"?e.path=i:(e.path=i.path,e.contents=i.contents),typeof t==\"string\"?e.contents=t??\"\":r=t,o({__tauriModule:\"Fs\",message:{cmd:\"writeFile\",path:e.path,contents:Array.from(new TextEncoder().encode(e.contents)),options:r}})}async function f(i,t,s){typeof s==\"object\"&&Object.freeze(s),typeof i==\"object\"&&Object.freeze(i);let e={path:\"\",contents:[]},r=s;return typeof i==\"string\"?e.path=i:(e.path=i.path,e.contents=i.contents),t&&\"dir\"in t?r=t:typeof i==\"string\"&&(e.contents=t??[]),o({__tauriModule:\"Fs\",message:{cmd:\"writeFile\",path:e.path,contents:Array.from(e.contents instanceof ArrayBuffer?new Uint8Array(e.contents):e.contents),options:r}})}async function m(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"readDir\",path:i,options:t}})}async function d(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"createDir\",path:i,options:t}})}async function g(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"removeDir\",path:i,options:t}})}async function c(i,t,s={}){return o({__tauriModule:\"Fs\",message:{cmd:\"copyFile\",source:i,destination:t,options:s}})}async function O(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"removeFile\",path:i,options:t}})}async function _(i,t,s={}){return o({__tauriModule:\"Fs\",message:{cmd:\"renameFile\",oldPath:i,newPath:t,options:s}})}async function v(i,t={}){return o({__tauriModule:\"Fs\",message:{cmd:\"exists\",path:i,options:t}})}export{F as a,l as b,a as c,u as d,f as e,m as f,d as g,g as h,c as i,O as j,_ as k,v as l,x as m};\n", "import{a as e}from\"./chunk-V5J25SYE.js\";import{a as i}from\"./chunk-GP2EXCRB.js\";import{a as r}from\"./chunk-RKMHWDGH.js\";import{a as o}from\"./chunk-FEIY7W7S.js\";var q={};o(q,{BaseDirectory:()=>i,appCacheDir:()=>g,appConfigDir:()=>s,appDataDir:()=>c,appDir:()=>u,appLocalDataDir:()=>m,appLogDir:()=>n,audioDir:()=>d,basename:()=>V,cacheDir:()=>P,configDir:()=>h,dataDir:()=>l,delimiter:()=>z,desktopDir:()=>_,dirname:()=>F,documentDir:()=>p,downloadDir:()=>y,executableDir:()=>f,extname:()=>H,fontDir:()=>D,homeDir:()=>M,isAbsolute:()=>W,join:()=>E,localDataDir:()=>v,logDir:()=>w,normalize:()=>B,pictureDir:()=>b,publicDir:()=>A,resolve:()=>T,resolveResource:()=>x,resourceDir:()=>C,runtimeDir:()=>L,sep:()=>j,templateDir:()=>R,videoDir:()=>k});async function u(){return s()}async function s(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:21}})}async function c(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:22}})}async function m(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:23}})}async function g(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:24}})}async function d(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:1}})}async function P(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:2}})}async function h(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:3}})}async function l(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:4}})}async function _(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:6}})}async function p(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:7}})}async function y(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:8}})}async function f(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:9}})}async function D(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:10}})}async function M(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:11}})}async function v(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:5}})}async function b(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:12}})}async function A(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:13}})}async function C(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:17}})}async function x(t){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:t,directory:17}})}async function L(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:14}})}async function R(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:15}})}async function k(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:16}})}async function w(){return n()}async function n(){return r({__tauriModule:\"Path\",message:{cmd:\"resolvePath\",path:\"\",directory:25}})}var j=e()?\"\\\\\":\"/\",z=e()?\";\":\":\";async function T(...t){return r({__tauriModule:\"Path\",message:{cmd:\"resolve\",paths:t}})}async function B(t){return r({__tauriModule:\"Path\",message:{cmd:\"normalize\",path:t}})}async function E(...t){return r({__tauriModule:\"Path\",message:{cmd:\"join\",paths:t}})}async function F(t){return r({__tauriModule:\"Path\",message:{cmd:\"dirname\",path:t}})}async function H(t){return r({__tauriModule:\"Path\",message:{cmd:\"extname\",path:t}})}async function V(t,a){return r({__tauriModule:\"Path\",message:{cmd:\"basename\",path:t,ext:a}})}async function W(t){return r({__tauriModule:\"Path\",message:{cmd:\"isAbsolute\",path:t}})}export{u as a,s as b,c,m as d,g as e,d as f,P as g,h,l as i,_ as j,p as k,y as l,f as m,D as n,M as o,v as p,b as q,A as r,C as s,x as t,L as u,R as v,k as w,w as x,n as y,j as z,z as A,T as B,B as C,E as D,F as E,H as F,V as G,W as H,q as I};\n", "import{a as e}from\"./chunk-RKMHWDGH.js\";import{a as o}from\"./chunk-FEIY7W7S.js\";var s={};o(s,{exit:()=>i,relaunch:()=>n});async function i(r=0){return e({__tauriModule:\"Process\",message:{cmd:\"exit\",exitCode:r}})}async function n(){return e({__tauriModule:\"Process\",message:{cmd:\"relaunch\"}})}export{i as a,n as b,s as c};\n", "import{a as d}from\"./chunk-RKMHWDGH.js\";import{a as h}from\"./chunk-5UWJICAP.js\";import{a as u}from\"./chunk-FEIY7W7S.js\";var m={};u(m,{Child:()=>c,Command:()=>l,EventEmitter:()=>i,open:()=>g});async function p(o,e,t=[],r){return typeof t==\"object\"&&Object.freeze(t),d({__tauriModule:\"Shell\",message:{cmd:\"execute\",program:e,args:t,options:r,onEventFn:h(o)}})}var i=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let r=(...s)=>{this.removeListener(e,r),t(...s)};return this.addListener(e,r)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let r=this.eventListeners[e];for(let s of r)s(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let r=(...s)=>{this.removeListener(e,r),t(...s)};return this.prependListener(e,r)}},c=class{constructor(e){this.pid=e}async write(e){return d({__tauriModule:\"Shell\",message:{cmd:\"stdinWrite\",pid:this.pid,buffer:typeof e==\"string\"?e:Array.from(e)}})}async kill(){return d({__tauriModule:\"Shell\",message:{cmd:\"killChild\",pid:this.pid}})}},l=class extends i{constructor(t,r=[],s){super();this.stdout=new i;this.stderr=new i;this.program=t,this.args=typeof r==\"string\"?[r]:r,this.options=s??{}}static sidecar(t,r=[],s){let a=new l(t,r,s);return a.options.sidecar=!0,a}async spawn(){return p(t=>{switch(t.event){case\"Error\":this.emit(\"error\",t.payload);break;case\"Terminated\":this.emit(\"close\",t.payload);break;case\"Stdout\":this.stdout.emit(\"data\",t.payload);break;case\"Stderr\":this.stderr.emit(\"data\",t.payload);break}},this.program,this.args,this.options).then(t=>new c(t))}async execute(){return new Promise((t,r)=>{this.on(\"error\",r);let s=[],a=[];this.stdout.on(\"data\",n=>{s.push(n)}),this.stderr.on(\"data\",n=>{a.push(n)}),this.on(\"close\",n=>{t({code:n.code,signal:n.signal,stdout:s.join(`\n`),stderr:a.join(`\n`)})}),this.spawn().catch(r)})}};async function g(o,e){return d({__tauriModule:\"Shell\",message:{cmd:\"open\",path:o,with:e}})}export{i as a,c as b,l as c,g as d,m as e};\n", "import{a as e}from\"./chunk-RKMHWDGH.js\";import{a as r}from\"./chunk-FEIY7W7S.js\";var u={};r(u,{getName:()=>n,getTauriVersion:()=>s,getVersion:()=>i,hide:()=>t,show:()=>o});async function i(){return e({__tauriModule:\"App\",message:{cmd:\"getAppVersion\"}})}async function n(){return e({__tauriModule:\"App\",message:{cmd:\"getAppName\"}})}async function s(){return e({__tauriModule:\"App\",message:{cmd:\"getTauriVersion\"}})}async function o(){return e({__tauriModule:\"App\",message:{cmd:\"show\"}})}async function t(){return e({__tauriModule:\"App\",message:{cmd:\"hide\"}})}export{i as a,n as b,s as c,o as d,t as e,u as f};\n", "import{a as e}from\"./chunk-RKMHWDGH.js\";import{a}from\"./chunk-FEIY7W7S.js\";var t={};a(t,{getMatches:()=>c});async function c(){return e({__tauriModule:\"Cli\",message:{cmd:\"cliMatches\"}})}export{c as a,t as b};\n", "import{a as e}from\"./chunk-RKMHWDGH.js\";import{a as t}from\"./chunk-FEIY7W7S.js\";var n={};t(n,{readText:()=>i,writeText:()=>a});async function a(r){return e({__tauriModule:\"Clipboard\",message:{cmd:\"writeText\",data:r}})}async function i(){return e({__tauriModule:\"Clipboard\",message:{cmd:\"readText\",data:null}})}export{a,i as b,n as c};\n", "import{a as n}from\"./chunk-RKMHWDGH.js\";import{a as o}from\"./chunk-FEIY7W7S.js\";var c={};o(c,{ask:()=>l,confirm:()=>g,message:()=>s,open:()=>a,save:()=>r});async function a(t={}){return typeof t==\"object\"&&Object.freeze(t),n({__tauriModule:\"Dialog\",message:{cmd:\"openDialog\",options:t}})}async function r(t={}){return typeof t==\"object\"&&Object.freeze(t),n({__tauriModule:\"Dialog\",message:{cmd:\"saveDialog\",options:t}})}async function s(t,i){let e=typeof i==\"string\"?{title:i}:i;return n({__tauriModule:\"Dialog\",message:{cmd:\"messageDialog\",message:t.toString(),title:e?.title?.toString(),type:e?.type,buttonLabel:e?.okLabel?.toString()}})}async function l(t,i){let e=typeof i==\"string\"?{title:i}:i;return n({__tauriModule:\"Dialog\",message:{cmd:\"askDialog\",message:t.toString(),title:e?.title?.toString(),type:e?.type,buttonLabels:[e?.okLabel?.toString()??\"Yes\",e?.cancelLabel?.toString()??\"No\"]}})}async function g(t,i){let e=typeof i==\"string\"?{title:i}:i;return n({__tauriModule:\"Dialog\",message:{cmd:\"confirmDialog\",message:t.toString(),title:e?.title?.toString(),type:e?.type,buttonLabels:[e?.okLabel?.toString()??\"Ok\",e?.cancelLabel?.toString()??\"Cancel\"]}})}export{a,r as b,s as c,l as d,g as e,c as f};\n", "import{a as e}from\"./chunk-RKMHWDGH.js\";import{a as o}from\"./chunk-5UWJICAP.js\";import{a as i}from\"./chunk-FEIY7W7S.js\";var c={};i(c,{isRegistered:()=>u,register:()=>s,registerAll:()=>n,unregister:()=>a,unregisterAll:()=>l});async function s(r,t){return e({__tauriModule:\"GlobalShortcut\",message:{cmd:\"register\",shortcut:r,handler:o(t)}})}async function n(r,t){return e({__tauriModule:\"GlobalShortcut\",message:{cmd:\"registerAll\",shortcuts:r,handler:o(t)}})}async function u(r){return e({__tauriModule:\"GlobalShortcut\",message:{cmd:\"isRegistered\",shortcut:r}})}async function a(r){return e({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregister\",shortcut:r}})}async function l(){return e({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregisterAll\"}})}export{s as a,n as b,u as c,a as d,l as e,c as f};\n", "import{a as u}from\"./chunk-RKMHWDGH.js\";import{a as f}from\"./chunk-FEIY7W7S.js\";var T={};f(T,{Body:()=>i,Client:()=>p,Response:()=>m,ResponseType:()=>c,fetch:()=>y,getClient:()=>d});var c=(s=>(s[s.JSON=1]=\"JSON\",s[s.Text=2]=\"Text\",s[s.Binary=3]=\"Binary\",s))(c||{}),i=class{constructor(e,r){this.type=e,this.payload=r}static form(e){let r={},s=(n,t)=>{if(t!==null){let a;typeof t==\"string\"?a=t:t instanceof Uint8Array||Array.isArray(t)?a=Array.from(t):t instanceof File?a={file:t.name,mime:t.type,fileName:t.name}:typeof t.file==\"string\"?a={file:t.file,mime:t.mime,fileName:t.fileName}:a={file:Array.from(t.file),mime:t.mime,fileName:t.fileName},r[String(n)]=a}};if(e instanceof FormData)for(let[n,t]of e)s(n,t);else for(let[n,t]of Object.entries(e))s(n,t);return new i(\"Form\",r)}static json(e){return new i(\"Json\",e)}static text(e){return new i(\"Text\",e)}static bytes(e){return new i(\"Bytes\",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},m=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},p=class{constructor(e){this.id=e}async drop(){return u({__tauriModule:\"Http\",message:{cmd:\"dropClient\",client:this.id}})}async request(e){let r=!e.responseType||e.responseType===1;return r&&(e.responseType=2),u({__tauriModule:\"Http\",message:{cmd:\"httpRequest\",client:this.id,options:e}}).then(s=>{let n=new m(s);if(r){try{n.data=JSON.parse(n.data)}catch(t){if(n.ok&&n.data===\"\")n.data={};else if(n.ok)throw Error(`Failed to parse response \\`${n.data}\\` as JSON: ${t};\n try setting the \\`responseType\\` option to \\`ResponseType.Text\\` or \\`ResponseType.Binary\\` if the API does not return a JSON response.`)}return n}return n})}async get(e,r){return this.request({method:\"GET\",url:e,...r})}async post(e,r,s){return this.request({method:\"POST\",url:e,body:r,...s})}async put(e,r,s){return this.request({method:\"PUT\",url:e,body:r,...s})}async patch(e,r){return this.request({method:\"PATCH\",url:e,...r})}async delete(e,r){return this.request({method:\"DELETE\",url:e,...r})}};async function d(o){return u({__tauriModule:\"Http\",message:{cmd:\"createClient\",options:o}}).then(e=>new p(e))}var l=null;async function y(o,e){return l===null&&(l=await d()),l.request({url:o,method:e?.method??\"GET\",...e})}export{c as a,i as b,m as c,p as d,d as e,y as f,T as g};\n", "import{d as h}from\"./chunk-4NZJJ336.js\";import{p as u}from\"./chunk-NMUKSDLG.js\";import{d as l}from\"./chunk-CICBN6X2.js\";import{h as v}from\"./chunk-2GTLV2NE.js\";import{I as n}from\"./chunk-PEDMYRP6.js\";import\"./chunk-V5J25SYE.js\";import{c}from\"./chunk-3O263AOJ.js\";import{e as d}from\"./chunk-6XWZL67Z.js\";import{f as m}from\"./chunk-DIFM6EX4.js\";import{b as t}from\"./chunk-6IDLE7HB.js\";import{c as i}from\"./chunk-6PDK3LJA.js\";import{f as a}from\"./chunk-WJKH4UU7.js\";import{h as p}from\"./chunk-M3Y6ZK7U.js\";import{m as s}from\"./chunk-GP2EXCRB.js\";import{f}from\"./chunk-ITP3W3MJ.js\";import{g as e}from\"./chunk-XH7VLPQH.js\";import\"./chunk-RKMHWDGH.js\";import{b as o,d as r}from\"./chunk-5UWJICAP.js\";import\"./chunk-FEIY7W7S.js\";var b=o;export{m as app,t as cli,i as clipboard,a as dialog,p as event,s as fs,f as globalShortcut,e as http,b as invoke,l as notification,v as os,n as path,c as process,d as shell,r as tauri,h as updater,u as window};\n", "import type { UnlistenFn } from \"@tauri-apps/api/event\"\n\nexport interface Position {\n x: number\n y: number\n is_absolute?: boolean\n}\n\nexport interface Icon {\n path: string\n width?: number\n height?: number\n}\n\nexport interface Item {\n label?: string\n disabled?: boolean\n is_separator?: boolean\n event?: string|Function\n shortcut?: string\n icon?: Icon\n subitems?: Item[]\n}\n\nexport interface Options {\n pos?: Position\n items: Item[]\n}\n\nexport interface ProcessResult {\n unlisteners: UnlistenFn[]\n processed: Item[]\n}\n\nexport type EventOptionsFunction = (e?: MouseEvent) => Options | Promise;\n\nexport type EventOptions = Options | EventOptionsFunction;", "import * as tauriApi from '@tauri-apps/api';\nimport * as tauriEvent from '@tauri-apps/api/event';\nimport * as tauriApiPath from '@tauri-apps/api/path';\n\nconst SHOW_COMMAND = 'plugin:context_menu|show_context_menu';\n\nimport * as ContextMenu from './types';\nexport { ContextMenu };\n\nexport async function assetToPath(asset: string): Promise {\n\treturn await tauriApiPath.resolveResource(asset);\n}\n\n// for each item, if it is a function, replace it with an event listener\nasync function processItems(items: ContextMenu.Item[], prefix: string): Promise {\n\tconst unlisteners: tauriEvent.UnlistenFn[] = [];\n\tconst processed:ContextMenu.Item[] = [ ...items.map((item) => ({ ...item })) ];\n\n\tfor (let i = 0; i < processed.length; i++) {\n\t\tconst itemEvent = processed[i].event;\n\n\t\tif (typeof itemEvent === 'function') {\n\t\t\tconst eventName = `${prefix}_context_menu_item_${i}`;\n\n\t\t\t// Listen to the event and call the function directly\n\t\t\tunlisteners.push(await tauriEvent.listen(eventName, (e) => itemEvent(e)));\n\t\t\tprocessed[i].event = eventName;\n\t\t}\n\n\t\t// Recurse into subitems if they exist\n\t\tif (items[i].subitems) {\n\t\t\tconst result = await processItems(items[i].subitems as ContextMenu.Item[], `${prefix}_${i}`);\n\t\t\tunlisteners.push(...result.unlisteners);\n\t\t\tprocessed[i].subitems = result.processed;\n\t\t}\n\t}\n\n\treturn { unlisteners, processed };\n}\n\nexport async function showMenu(options: ContextMenu.Options) {\n\tconst { unlisteners, processed } = await processItems(options.items, 'root');\n\n\t// unlisten all events when the menu closes\n\tconst unlistenMenuClose = await tauriEvent.listen(\"menu-did-close\", () => {\n\t\tunlisteners.forEach((unlistener) => unlistener());\n\t\tunlisteners.length = 0;\n\t\tunlistenMenuClose();\n\t});\n\n\t// send the options to the plugin\n\ttauriApi.invoke(SHOW_COMMAND, { ...options, items: processed } as any);\n}\n\nexport function onEventShowMenu(eventName: string, options: ContextMenu.EventOptions): void {\n\twindow.addEventListener(eventName, async (e) => {\n\t\te.preventDefault();\n\t\t\n\t\t// if options is a function, call it to get the options\n\t\tif (typ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QH,CAAe,GAGxC,MAAME,GAASC,CAAO,CACvB,CAAC,CACF", + "names": ["d", "e", "c", "a", "b", "w", "e", "u", "d", "s", "l", "r", "n", "t", "o", "i", "a", "i", "d", "W", "e", "c", "D", "E", "s", "n", "m", "r", "a", "i", "u", "l", "e", "c", "f", "d", "n", "E", "i", "o", "a", "D", "t", "S", "e", "y", "c", "m", "r", "o", "W", "s", "u", "b", "g", "D", "C", "h", "E", "T", "a", "t", "M", "n", "f", "v", "d", "l", "p", "s", "e", "o", "t", "r", "i", "n", "u", "e", "n", "a", "c", "o", "m", "t", "i", "x", "e", "F", "c", "d", "v", "a", "m", "l", "g", "O", "_", "f", "u", "n", "i", "r", "q", "e", "F", "g", "s", "c", "u", "m", "n", "d", "V", "P", "h", "l", "z", "_", "p", "y", "f", "H", "D", "M", "W", "E", "v", "w", "B", "b", "A", "T", "x", "C", "L", "j", "R", "k", "t", "a", "s", "e", "i", "n", "r", "m", "e", "c", "l", "i", "g", "p", "o", "t", "s", "r", "a", "n", "u", "e", "n", "s", "i", "t", "o", "t", "e", "c", "n", "e", "i", "a", "r", "c", "e", "l", "g", "s", "a", "r", "t", "i", "c", "e", "u", "s", "n", "a", "l", "r", "T", "e", "i", "p", "m", "c", "y", "d", "s", "r", "n", "t", "a", "o", "l", "b", "d", "types_exports", "SHOW_COMMAND", "assetToPath", "asset", "x", "processItems", "items", "prefix", "unlisteners", "processed", "item", "itemEvent", "eventName", "E", "e", "result", "showMenu", "options", "unlistenMenuClose", "unlistener", "b", "SHOW_COMMAND", "onEventShowMenu"] } diff --git a/webview-dist/types.d.ts b/webview-dist/types.d.ts index 78d3147..33dbdbe 100644 --- a/webview-dist/types.d.ts +++ b/webview-dist/types.d.ts @@ -1,3 +1,4 @@ +import type { UnlistenFn } from "@tauri-apps/api/event"; export interface Position { x: number; y: number; @@ -21,5 +22,9 @@ export interface Options { pos?: Position; items: Item[]; } +export interface ProcessResult { + unlisteners: UnlistenFn[]; + processed: Item[]; +} export type EventOptionsFunction = (e?: MouseEvent) => Options | Promise; export type EventOptions = Options | EventOptionsFunction; diff --git a/webview-src/index.spec.ts b/webview-src/index.spec.ts index 56e8ca5..1864fca 100644 --- a/webview-src/index.spec.ts +++ b/webview-src/index.spec.ts @@ -4,51 +4,51 @@ import * as tauriApiPath from '@tauri-apps/api/path'; import { assetToPath, showMenu, onEventShowMenu, ContextMenu } from './index'; jest.mock('@tauri-apps/api', () => ({ - invoke: jest.fn() + invoke: jest.fn() })); jest.mock('@tauri-apps/api/event', () => ({ - listen: jest.fn() + listen: jest.fn() })); jest.mock('@tauri-apps/api/path', () => ({ - resolveResource: jest.fn() + resolveResource: jest.fn() })); describe('assetToPath', () => { - it('calls tauriApiPath.resolveResource', async () => { - const asset = 'testAsset'; - await assetToPath(asset); - expect(tauriApiPath.resolveResource).toHaveBeenCalledWith(asset); - }); + it('calls tauriApiPath.resolveResource', async () => { + const asset = 'testAsset'; + await assetToPath(asset); + expect(tauriApiPath.resolveResource).toHaveBeenCalledWith(asset); + }); }); describe('showMenu', () => { - it('sets up event listeners for item events', () => { - const items = [ - { event: jest.fn() }, - { - event: jest.fn(), - subitems: [ - { event: jest.fn() } - ] - } - ]; - showMenu({ items }); - expect(tauriEvent.listen).toHaveBeenCalledTimes(3); - }); + it('sets up event listeners for item events', async () => { + const items = [ + { event: jest.fn() }, + { + event: jest.fn(), + subitems: [ + { event: jest.fn() } + ] + } + ]; + await showMenu({ items }); + expect(tauriEvent.listen).toHaveBeenCalledTimes(4); // events + menu-did-close + }); - it('invokes tauriApi with the SHOW_COMMAND', () => { - showMenu({ items: [] }); - expect(tauriApi.invoke).toHaveBeenCalledWith(expect.stringMatching('plugin:context_menu|show_context_menu'), expect.any(Object)); - }); + it('invokes tauriApi with the SHOW_COMMAND', () => { + showMenu({ items: [] }); + expect(tauriApi.invoke).toHaveBeenCalledWith(expect.stringMatching('plugin:context_menu|show_context_menu'), expect.any(Object)); + }); }); describe('onEventShowMenu', () => { - it('sets up a window event listener', () => { - const addEventListenerSpy = jest.spyOn(window, 'addEventListener'); - onEventShowMenu('testEvent', {} as ContextMenu.Options); - expect(addEventListenerSpy).toHaveBeenCalledWith('testEvent', expect.any(Function)); - addEventListenerSpy.mockRestore(); - }); + it('sets up a window event listener', () => { + const addEventListenerSpy = jest.spyOn(window, 'addEventListener'); + onEventShowMenu('testEvent', {} as ContextMenu.Options); + expect(addEventListenerSpy).toHaveBeenCalledWith('testEvent', expect.any(Function)); + addEventListenerSpy.mockRestore(); + }); }); \ No newline at end of file diff --git a/webview-src/index.ts b/webview-src/index.ts index 1354f22..e62e586 100644 --- a/webview-src/index.ts +++ b/webview-src/index.ts @@ -8,46 +8,59 @@ import * as ContextMenu from './types'; export { ContextMenu }; export async function assetToPath(asset: string): Promise { - return await tauriApiPath.resolveResource(asset); + return await tauriApiPath.resolveResource(asset); } -export function showMenu(options: ContextMenu.Options): void { - // for each item, if it is a function, replace it with an event listener - function processItems(items: ContextMenu.Item[], prefix: string): void { - for (let i = 0; i < items.length; i++) { - const itemEvent = items[i].event; - - if (typeof itemEvent === 'function') { - const eventName = `${prefix}_context_menu_item_${i}`; - - // Listen to the event and call the function directly - tauriEvent.listen(eventName, (e) => itemEvent(e)); - items[i].event = eventName; - } - - // Recurse into subitems if they exist - if (items[i].subitems) { - processItems(items[i].subitems as ContextMenu.Item[], `${prefix}_${i}`); - } - } - } - - processItems(options.items, 'root'); - - // send the options to the plugin - tauriApi.invoke(SHOW_COMMAND, options as any); - } - +// for each item, if it is a function, replace it with an event listener +async function processItems(items: ContextMenu.Item[], prefix: string): Promise { + const unlisteners: tauriEvent.UnlistenFn[] = []; + const processed:ContextMenu.Item[] = [ ...items.map((item) => ({ ...item })) ]; -export function onEventShowMenu(eventName: string, options: ContextMenu.EventOptions): void { - window.addEventListener(eventName, async (e) => { - e.preventDefault(); + for (let i = 0; i < processed.length; i++) { + const itemEvent = processed[i].event; + + if (typeof itemEvent === 'function') { + const eventName = `${prefix}_context_menu_item_${i}`; + + // Listen to the event and call the function directly + unlisteners.push(await tauriEvent.listen(eventName, (e) => itemEvent(e))); + processed[i].event = eventName; + } + + // Recurse into subitems if they exist + if (items[i].subitems) { + const result = await processItems(items[i].subitems as ContextMenu.Item[], `${prefix}_${i}`); + unlisteners.push(...result.unlisteners); + processed[i].subitems = result.processed; + } + } + + return { unlisteners, processed }; +} - // if options is a function, call it to get the options - if (typeof options === 'function') { - options = await options(e as MouseEvent); - } +export async function showMenu(options: ContextMenu.Options) { + const { unlisteners, processed } = await processItems(options.items, 'root'); + + // unlisten all events when the menu closes + const unlistenMenuClose = await tauriEvent.listen("menu-did-close", () => { + unlisteners.forEach((unlistener) => unlistener()); + unlisteners.length = 0; + unlistenMenuClose(); + }); + + // send the options to the plugin + tauriApi.invoke(SHOW_COMMAND, { ...options, items: processed } as any); +} + +export function onEventShowMenu(eventName: string, options: ContextMenu.EventOptions): void { + window.addEventListener(eventName, async (e) => { + e.preventDefault(); + + // if options is a function, call it to get the options + if (typeof options === 'function') { + options = await options(e as MouseEvent); + } - showMenu(options); - }); + await showMenu(options); + }); } \ No newline at end of file diff --git a/webview-src/types.ts b/webview-src/types.ts index f94a6c4..3143765 100644 --- a/webview-src/types.ts +++ b/webview-src/types.ts @@ -1,3 +1,5 @@ +import type { UnlistenFn } from "@tauri-apps/api/event" + export interface Position { x: number y: number @@ -25,6 +27,11 @@ export interface Options { items: Item[] } +export interface ProcessResult { + unlisteners: UnlistenFn[] + processed: Item[] +} + export type EventOptionsFunction = (e?: MouseEvent) => Options | Promise; export type EventOptions = Options | EventOptionsFunction; \ No newline at end of file