@omniviewdev/runtime 0.8.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.js +183 -186
  3. package/dist/calls-Bg_uMVc9.cjs +1 -0
  4. package/dist/{calls-C1yoW06C.js → calls-BvZkVSse.js} +11 -5
  5. package/dist/context/drawer/types.d.ts +3 -2
  6. package/dist/context/settings/SettingsContext.d.ts +1 -1
  7. package/dist/{events-CtgYnKmS.cjs → events-DnLqUWri.cjs} +1 -1
  8. package/dist/{events-Bcx6NsMp.js → events-uBheGmqm.js} +1 -1
  9. package/dist/hooks/exec/useExecSession.d.ts +11 -1
  10. package/dist/hooks/resource/useResource.d.ts +1 -1
  11. package/dist/index-BVi9X4oU.cjs +6 -0
  12. package/dist/{index-D2mKAO8s.js → index-zyAgCXOO.js} +52 -52
  13. package/dist/index.cjs +4 -4
  14. package/dist/index.js +2934 -2089
  15. package/dist/{legacyEnum-DORXlU_y.js → legacyEnum-CKqyRmbX.js} +3 -1
  16. package/dist/models-CT4kHj47.js +2444 -0
  17. package/dist/models-DQl7tqts.cjs +1 -0
  18. package/dist/models-DU8pTcoZ.js +142 -0
  19. package/dist/models-KV9f8Ceh.cjs +1 -0
  20. package/dist/models.cjs +1 -1
  21. package/dist/models.js +229 -232
  22. package/dist/resourceIcons.d.ts +2 -2
  23. package/dist/router/Link.d.ts +1 -1
  24. package/dist/router/index.d.ts +1 -1
  25. package/dist/router/usePluginRouter.d.ts +1 -1
  26. package/dist/runtime.cjs +1 -1
  27. package/dist/runtime.js +6 -6
  28. package/dist/servicewrapper-CCW7kIVs.cjs +1 -0
  29. package/dist/servicewrapper-Q1ww3DUo.js +849 -0
  30. package/dist/types/app.d.ts +1 -1
  31. package/package.json +22 -16
  32. package/dist/calls-DUhq86Ki.cjs +0 -1
  33. package/dist/graphservice-1J8q3eeL.cjs +0 -1
  34. package/dist/graphservice-CUg1PUsC.js +0 -852
  35. package/dist/index-D_aIcqH0.cjs +0 -6
  36. package/dist/models-4EtitZnM.js +0 -2447
  37. package/dist/models-BQsuB2Lj.cjs +0 -1
  38. package/dist/models-BpVWHqlF.cjs +0 -1
  39. package/dist/models-C5sf8GNY.js +0 -145
@@ -1 +1 @@
1
- "use strict";const t=require("./index-D_aIcqH0.cjs"),p=t.newRuntimeCaller(t.objectNames.Browser),D=0;function W(i){return p(D,{url:i.toString()})}const g=Object.freeze(Object.defineProperty({__proto__:null,OpenURL:W},Symbol.toStringTag,{value:"Module"})),o=new Map;class u{constructor(e,n,d){this.eventName=e,this.callback=n,this.maxCallbacks=d||-1}dispatch(e){try{this.callback(e)}catch(n){console.error(n)}return this.maxCallbacks===-1?!1:(this.maxCallbacks-=1,this.maxCallbacks===0)}}function h(i){let e=o.get(i.eventName);e&&(e=e.filter(n=>n!==i),e.length===0?o.delete(i.eventName):o.set(i.eventName,e))}const S=Object.freeze({Windows:Object.freeze({APMPowerSettingChange:"windows:APMPowerSettingChange",APMPowerStatusChange:"windows:APMPowerStatusChange",APMResumeAutomatic:"windows:APMResumeAutomatic",APMResumeSuspend:"windows:APMResumeSuspend",APMSuspend:"windows:APMSuspend",ApplicationStarted:"windows:ApplicationStarted",SystemThemeChanged:"windows:SystemThemeChanged",WebViewNavigationCompleted:"windows:WebViewNavigationCompleted",WindowActive:"windows:WindowActive",WindowBackgroundErase:"windows:WindowBackgroundErase",WindowClickActive:"windows:WindowClickActive",WindowClosing:"windows:WindowClosing",WindowDidMove:"windows:WindowDidMove",WindowDidResize:"windows:WindowDidResize",WindowDPIChanged:"windows:WindowDPIChanged",WindowDragDrop:"windows:WindowDragDrop",WindowDragEnter:"windows:WindowDragEnter",WindowDragLeave:"windows:WindowDragLeave",WindowDragOver:"windows:WindowDragOver",WindowEndMove:"windows:WindowEndMove",WindowEndResize:"windows:WindowEndResize",WindowFullscreen:"windows:WindowFullscreen",WindowHide:"windows:WindowHide",WindowInactive:"windows:WindowInactive",WindowKeyDown:"windows:WindowKeyDown",WindowKeyUp:"windows:WindowKeyUp",WindowKillFocus:"windows:WindowKillFocus",WindowNonClientHit:"windows:WindowNonClientHit",WindowNonClientMouseDown:"windows:WindowNonClientMouseDown",WindowNonClientMouseLeave:"windows:WindowNonClientMouseLeave",WindowNonClientMouseMove:"windows:WindowNonClientMouseMove",WindowNonClientMouseUp:"windows:WindowNonClientMouseUp",WindowPaint:"windows:WindowPaint",WindowRestore:"windows:WindowRestore",WindowSetFocus:"windows:WindowSetFocus",WindowShow:"windows:WindowShow",WindowStartMove:"windows:WindowStartMove",WindowStartResize:"windows:WindowStartResize",WindowUnFullscreen:"windows:WindowUnFullscreen",WindowZOrderChanged:"windows:WindowZOrderChanged",WindowMinimise:"windows:WindowMinimise",WindowUnMinimise:"windows:WindowUnMinimise",WindowMaximise:"windows:WindowMaximise",WindowUnMaximise:"windows:WindowUnMaximise"}),Mac:Object.freeze({ApplicationDidBecomeActive:"mac:ApplicationDidBecomeActive",ApplicationDidChangeBackingProperties:"mac:ApplicationDidChangeBackingProperties",ApplicationDidChangeEffectiveAppearance:"mac:ApplicationDidChangeEffectiveAppearance",ApplicationDidChangeIcon:"mac:ApplicationDidChangeIcon",ApplicationDidChangeOcclusionState:"mac:ApplicationDidChangeOcclusionState",ApplicationDidChangeScreenParameters:"mac:ApplicationDidChangeScreenParameters",ApplicationDidChangeStatusBarFrame:"mac:ApplicationDidChangeStatusBarFrame",ApplicationDidChangeStatusBarOrientation:"mac:ApplicationDidChangeStatusBarOrientation",ApplicationDidChangeTheme:"mac:ApplicationDidChangeTheme",ApplicationDidFinishLaunching:"mac:ApplicationDidFinishLaunching",ApplicationDidHide:"mac:ApplicationDidHide",ApplicationDidResignActive:"mac:ApplicationDidResignActive",ApplicationDidUnhide:"mac:ApplicationDidUnhide",ApplicationDidUpdate:"mac:ApplicationDidUpdate",ApplicationDidWake:"mac:ApplicationDidWake",ApplicationScreensDidSleep:"mac:ApplicationScreensDidSleep",ApplicationScreensDidWake:"mac:ApplicationScreensDidWake",ApplicationShouldHandleReopen:"mac:ApplicationShouldHandleReopen",ApplicationWillBecomeActive:"mac:ApplicationWillBecomeActive",ApplicationWillFinishLaunching:"mac:ApplicationWillFinishLaunching",ApplicationWillHide:"mac:ApplicationWillHide",ApplicationWillResignActive:"mac:ApplicationWillResignActive",ApplicationWillSleep:"mac:ApplicationWillSleep",ApplicationWillTerminate:"mac:ApplicationWillTerminate",ApplicationWillUnhide:"mac:ApplicationWillUnhide",ApplicationWillUpdate:"mac:ApplicationWillUpdate",MenuDidAddItem:"mac:MenuDidAddItem",MenuDidBeginTracking:"mac:MenuDidBeginTracking",MenuDidClose:"mac:MenuDidClose",MenuDidDisplayItem:"mac:MenuDidDisplayItem",MenuDidEndTracking:"mac:MenuDidEndTracking",MenuDidHighlightItem:"mac:MenuDidHighlightItem",MenuDidOpen:"mac:MenuDidOpen",MenuDidPopUp:"mac:MenuDidPopUp",MenuDidRemoveItem:"mac:MenuDidRemoveItem",MenuDidSendAction:"mac:MenuDidSendAction",MenuDidSendActionToItem:"mac:MenuDidSendActionToItem",MenuDidUpdate:"mac:MenuDidUpdate",MenuWillAddItem:"mac:MenuWillAddItem",MenuWillBeginTracking:"mac:MenuWillBeginTracking",MenuWillDisplayItem:"mac:MenuWillDisplayItem",MenuWillEndTracking:"mac:MenuWillEndTracking",MenuWillHighlightItem:"mac:MenuWillHighlightItem",MenuWillOpen:"mac:MenuWillOpen",MenuWillPopUp:"mac:MenuWillPopUp",MenuWillRemoveItem:"mac:MenuWillRemoveItem",MenuWillSendAction:"mac:MenuWillSendAction",MenuWillSendActionToItem:"mac:MenuWillSendActionToItem",MenuWillUpdate:"mac:MenuWillUpdate",WebViewDidCommitNavigation:"mac:WebViewDidCommitNavigation",WebViewDidFinishNavigation:"mac:WebViewDidFinishNavigation",WebViewDidReceiveServerRedirectForProvisionalNavigation:"mac:WebViewDidReceiveServerRedirectForProvisionalNavigation",WebViewDidStartProvisionalNavigation:"mac:WebViewDidStartProvisionalNavigation",WindowDidBecomeKey:"mac:WindowDidBecomeKey",WindowDidBecomeMain:"mac:WindowDidBecomeMain",WindowDidBeginSheet:"mac:WindowDidBeginSheet",WindowDidChangeAlpha:"mac:WindowDidChangeAlpha",WindowDidChangeBackingLocation:"mac:WindowDidChangeBackingLocation",WindowDidChangeBackingProperties:"mac:WindowDidChangeBackingProperties",WindowDidChangeCollectionBehavior:"mac:WindowDidChangeCollectionBehavior",WindowDidChangeEffectiveAppearance:"mac:WindowDidChangeEffectiveAppearance",WindowDidChangeOcclusionState:"mac:WindowDidChangeOcclusionState",WindowDidChangeOrderingMode:"mac:WindowDidChangeOrderingMode",WindowDidChangeScreen:"mac:WindowDidChangeScreen",WindowDidChangeScreenParameters:"mac:WindowDidChangeScreenParameters",WindowDidChangeScreenProfile:"mac:WindowDidChangeScreenProfile",WindowDidChangeScreenSpace:"mac:WindowDidChangeScreenSpace",WindowDidChangeScreenSpaceProperties:"mac:WindowDidChangeScreenSpaceProperties",WindowDidChangeSharingType:"mac:WindowDidChangeSharingType",WindowDidChangeSpace:"mac:WindowDidChangeSpace",WindowDidChangeSpaceOrderingMode:"mac:WindowDidChangeSpaceOrderingMode",WindowDidChangeTitle:"mac:WindowDidChangeTitle",WindowDidChangeToolbar:"mac:WindowDidChangeToolbar",WindowDidDeminiaturize:"mac:WindowDidDeminiaturize",WindowDidEndSheet:"mac:WindowDidEndSheet",WindowDidEnterFullScreen:"mac:WindowDidEnterFullScreen",WindowDidEnterVersionBrowser:"mac:WindowDidEnterVersionBrowser",WindowDidExitFullScreen:"mac:WindowDidExitFullScreen",WindowDidExitVersionBrowser:"mac:WindowDidExitVersionBrowser",WindowDidExpose:"mac:WindowDidExpose",WindowDidFocus:"mac:WindowDidFocus",WindowDidMiniaturize:"mac:WindowDidMiniaturize",WindowDidMove:"mac:WindowDidMove",WindowDidOrderOffScreen:"mac:WindowDidOrderOffScreen",WindowDidOrderOnScreen:"mac:WindowDidOrderOnScreen",WindowDidResignKey:"mac:WindowDidResignKey",WindowDidResignMain:"mac:WindowDidResignMain",WindowDidResize:"mac:WindowDidResize",WindowDidUpdate:"mac:WindowDidUpdate",WindowDidUpdateAlpha:"mac:WindowDidUpdateAlpha",WindowDidUpdateCollectionBehavior:"mac:WindowDidUpdateCollectionBehavior",WindowDidUpdateCollectionProperties:"mac:WindowDidUpdateCollectionProperties",WindowDidUpdateShadow:"mac:WindowDidUpdateShadow",WindowDidUpdateTitle:"mac:WindowDidUpdateTitle",WindowDidUpdateToolbar:"mac:WindowDidUpdateToolbar",WindowDidZoom:"mac:WindowDidZoom",WindowFileDraggingEntered:"mac:WindowFileDraggingEntered",WindowFileDraggingExited:"mac:WindowFileDraggingExited",WindowFileDraggingPerformed:"mac:WindowFileDraggingPerformed",WindowHide:"mac:WindowHide",WindowMaximise:"mac:WindowMaximise",WindowUnMaximise:"mac:WindowUnMaximise",WindowMinimise:"mac:WindowMinimise",WindowUnMinimise:"mac:WindowUnMinimise",WindowShouldClose:"mac:WindowShouldClose",WindowShow:"mac:WindowShow",WindowWillBecomeKey:"mac:WindowWillBecomeKey",WindowWillBecomeMain:"mac:WindowWillBecomeMain",WindowWillBeginSheet:"mac:WindowWillBeginSheet",WindowWillChangeOrderingMode:"mac:WindowWillChangeOrderingMode",WindowWillClose:"mac:WindowWillClose",WindowWillDeminiaturize:"mac:WindowWillDeminiaturize",WindowWillEnterFullScreen:"mac:WindowWillEnterFullScreen",WindowWillEnterVersionBrowser:"mac:WindowWillEnterVersionBrowser",WindowWillExitFullScreen:"mac:WindowWillExitFullScreen",WindowWillExitVersionBrowser:"mac:WindowWillExitVersionBrowser",WindowWillFocus:"mac:WindowWillFocus",WindowWillMiniaturize:"mac:WindowWillMiniaturize",WindowWillMove:"mac:WindowWillMove",WindowWillOrderOffScreen:"mac:WindowWillOrderOffScreen",WindowWillOrderOnScreen:"mac:WindowWillOrderOnScreen",WindowWillResignMain:"mac:WindowWillResignMain",WindowWillResize:"mac:WindowWillResize",WindowWillUnfocus:"mac:WindowWillUnfocus",WindowWillUpdate:"mac:WindowWillUpdate",WindowWillUpdateAlpha:"mac:WindowWillUpdateAlpha",WindowWillUpdateCollectionBehavior:"mac:WindowWillUpdateCollectionBehavior",WindowWillUpdateCollectionProperties:"mac:WindowWillUpdateCollectionProperties",WindowWillUpdateShadow:"mac:WindowWillUpdateShadow",WindowWillUpdateTitle:"mac:WindowWillUpdateTitle",WindowWillUpdateToolbar:"mac:WindowWillUpdateToolbar",WindowWillUpdateVisibility:"mac:WindowWillUpdateVisibility",WindowWillUseStandardFrame:"mac:WindowWillUseStandardFrame",WindowZoomIn:"mac:WindowZoomIn",WindowZoomOut:"mac:WindowZoomOut",WindowZoomReset:"mac:WindowZoomReset",WebViewWebContentProcessDidTerminate:"mac:WebViewWebContentProcessDidTerminate"}),Linux:Object.freeze({ApplicationStartup:"linux:ApplicationStartup",SystemDidWake:"linux:SystemDidWake",SystemThemeChanged:"linux:SystemThemeChanged",SystemWillSleep:"linux:SystemWillSleep",WindowDeleteEvent:"linux:WindowDeleteEvent",WindowDidMove:"linux:WindowDidMove",WindowDidResize:"linux:WindowDidResize",WindowFocusIn:"linux:WindowFocusIn",WindowFocusOut:"linux:WindowFocusOut",WindowLoadStarted:"linux:WindowLoadStarted",WindowLoadRedirected:"linux:WindowLoadRedirected",WindowLoadCommitted:"linux:WindowLoadCommitted",WindowLoadFinished:"linux:WindowLoadFinished"}),iOS:Object.freeze({ApplicationDidBecomeActive:"ios:ApplicationDidBecomeActive",ApplicationDidEnterBackground:"ios:ApplicationDidEnterBackground",ApplicationDidFinishLaunching:"ios:ApplicationDidFinishLaunching",ApplicationDidReceiveMemoryWarning:"ios:ApplicationDidReceiveMemoryWarning",ApplicationWillEnterForeground:"ios:ApplicationWillEnterForeground",ApplicationWillResignActive:"ios:ApplicationWillResignActive",ApplicationWillTerminate:"ios:ApplicationWillTerminate",WindowDidLoad:"ios:WindowDidLoad",WindowWillAppear:"ios:WindowWillAppear",WindowDidAppear:"ios:WindowDidAppear",WindowWillDisappear:"ios:WindowWillDisappear",WindowDidDisappear:"ios:WindowDidDisappear",WindowSafeAreaInsetsChanged:"ios:WindowSafeAreaInsetsChanged",WindowOrientationChanged:"ios:WindowOrientationChanged",WindowTouchBegan:"ios:WindowTouchBegan",WindowTouchMoved:"ios:WindowTouchMoved",WindowTouchEnded:"ios:WindowTouchEnded",WindowTouchCancelled:"ios:WindowTouchCancelled",WebViewDidStartNavigation:"ios:WebViewDidStartNavigation",WebViewDidFinishNavigation:"ios:WebViewDidFinishNavigation",WebViewDidFailNavigation:"ios:WebViewDidFailNavigation",WebViewDecidePolicyForNavigationAction:"ios:WebViewDecidePolicyForNavigationAction",BatteryChanged:"ios:BatteryChanged",NetworkChanged:"ios:NetworkChanged",ThemeChanged:"ios:ThemeChanged",ScreenLocked:"ios:ScreenLocked",ScreenUnlocked:"ios:ScreenUnlocked"}),Android:Object.freeze({ActivityCreated:"android:ActivityCreated",ActivityStarted:"android:ActivityStarted",ActivityResumed:"android:ActivityResumed",ActivityPaused:"android:ActivityPaused",ActivityStopped:"android:ActivityStopped",ActivityDestroyed:"android:ActivityDestroyed",ApplicationLowMemory:"android:ApplicationLowMemory",WebViewPageStarted:"android:WebViewPageStarted",WebViewPageFinished:"android:WebViewPageFinished",BatteryChanged:"android:BatteryChanged",NetworkChanged:"android:NetworkChanged",ThemeChanged:"android:ThemeChanged",ScreenLocked:"android:ScreenLocked",ScreenUnlocked:"android:ScreenUnlocked"}),Common:Object.freeze({ApplicationOpenedWithFile:"common:ApplicationOpenedWithFile",ApplicationStarted:"common:ApplicationStarted",ApplicationLaunchedWithUrl:"common:ApplicationLaunchedWithUrl",ThemeChanged:"common:ThemeChanged",SystemDidWake:"common:SystemDidWake",SystemWillSleep:"common:SystemWillSleep",WindowClosing:"common:WindowClosing",WindowDidMove:"common:WindowDidMove",WindowDidResize:"common:WindowDidResize",WindowDPIChanged:"common:WindowDPIChanged",WindowFilesDropped:"common:WindowFilesDropped",WindowFocus:"common:WindowFocus",WindowFullscreen:"common:WindowFullscreen",WindowHide:"common:WindowHide",WindowLostFocus:"common:WindowLostFocus",WindowMaximise:"common:WindowMaximise",WindowMinimise:"common:WindowMinimise",WindowToggleFrameless:"common:WindowToggleFrameless",WindowRestore:"common:WindowRestore",WindowRuntimeReady:"common:WindowRuntimeReady",WindowShow:"common:WindowShow",WindowUnFullscreen:"common:WindowUnFullscreen",WindowUnMaximise:"common:WindowUnMaximise",WindowUnMinimise:"common:WindowUnMinimise",WindowZoom:"common:WindowZoom",WindowZoomIn:"common:WindowZoomIn",WindowZoomOut:"common:WindowZoomOut",WindowZoomReset:"common:WindowZoomReset",BatteryChanged:"common:BatteryChanged",NetworkChanged:"common:NetworkChanged",ScreenLocked:"common:ScreenLocked",ScreenUnlocked:"common:ScreenUnlocked",LowMemory:"common:LowMemory"})});t.hasDOM&&(window._wails=window._wails||{},window._wails.dispatchWailsEvent=M);const A=t.newRuntimeCaller(t.objectNames.Events),C=0;class c{constructor(e,n){this.name=e,this.data=n??null}}function M(i){let e=o.get(i.name);if(!e)return;let n=new c(i.name,i.name in t.Events?t.Events[i.name](i.data):i.data);"sender"in i&&(n.sender=i.sender);const d=new Set;for(const a of e.slice())a.dispatch(n)&&d.add(a);if(d.size>0){const a=o.get(i.name);if(a){const w=a.filter(s=>!d.has(s));w.length===0?o.delete(i.name):o.set(i.name,w)}}}function l(i,e,n){let d=o.get(i)||[];const a=new u(i,e,n);return d.push(a),o.set(i,d),()=>h(a)}function r(i,e){return l(i,e,-1)}function v(i,e){return l(i,e,1)}function U(...i){i.forEach(e=>o.delete(e))}function F(){o.clear()}function m(i,e){return A(C,new c(i,e))}const O=Object.freeze(Object.defineProperty({__proto__:null,Emit:m,Off:U,OffAll:F,On:r,OnMultiple:l,Once:v,Types:S,WailsEvent:c},Symbol.toStringTag,{value:"Module"}));exports.Emit=m;exports.On=r;exports.OpenURL=W;exports.browser=g;exports.events=O;
1
+ "use strict";const t=require("./index-BVi9X4oU.cjs"),p=t.newRuntimeCaller(t.objectNames.Browser),D=0;function W(i){return p(D,{url:i.toString()})}const g=Object.freeze(Object.defineProperty({__proto__:null,OpenURL:W},Symbol.toStringTag,{value:"Module"})),o=new Map;class u{constructor(e,n,d){this.eventName=e,this.callback=n,this.maxCallbacks=d||-1}dispatch(e){try{this.callback(e)}catch(n){console.error(n)}return this.maxCallbacks===-1?!1:(this.maxCallbacks-=1,this.maxCallbacks===0)}}function h(i){let e=o.get(i.eventName);e&&(e=e.filter(n=>n!==i),e.length===0?o.delete(i.eventName):o.set(i.eventName,e))}const S=Object.freeze({Windows:Object.freeze({APMPowerSettingChange:"windows:APMPowerSettingChange",APMPowerStatusChange:"windows:APMPowerStatusChange",APMResumeAutomatic:"windows:APMResumeAutomatic",APMResumeSuspend:"windows:APMResumeSuspend",APMSuspend:"windows:APMSuspend",ApplicationStarted:"windows:ApplicationStarted",SystemThemeChanged:"windows:SystemThemeChanged",WebViewNavigationCompleted:"windows:WebViewNavigationCompleted",WindowActive:"windows:WindowActive",WindowBackgroundErase:"windows:WindowBackgroundErase",WindowClickActive:"windows:WindowClickActive",WindowClosing:"windows:WindowClosing",WindowDidMove:"windows:WindowDidMove",WindowDidResize:"windows:WindowDidResize",WindowDPIChanged:"windows:WindowDPIChanged",WindowDragDrop:"windows:WindowDragDrop",WindowDragEnter:"windows:WindowDragEnter",WindowDragLeave:"windows:WindowDragLeave",WindowDragOver:"windows:WindowDragOver",WindowEndMove:"windows:WindowEndMove",WindowEndResize:"windows:WindowEndResize",WindowFullscreen:"windows:WindowFullscreen",WindowHide:"windows:WindowHide",WindowInactive:"windows:WindowInactive",WindowKeyDown:"windows:WindowKeyDown",WindowKeyUp:"windows:WindowKeyUp",WindowKillFocus:"windows:WindowKillFocus",WindowNonClientHit:"windows:WindowNonClientHit",WindowNonClientMouseDown:"windows:WindowNonClientMouseDown",WindowNonClientMouseLeave:"windows:WindowNonClientMouseLeave",WindowNonClientMouseMove:"windows:WindowNonClientMouseMove",WindowNonClientMouseUp:"windows:WindowNonClientMouseUp",WindowPaint:"windows:WindowPaint",WindowRestore:"windows:WindowRestore",WindowSetFocus:"windows:WindowSetFocus",WindowShow:"windows:WindowShow",WindowStartMove:"windows:WindowStartMove",WindowStartResize:"windows:WindowStartResize",WindowUnFullscreen:"windows:WindowUnFullscreen",WindowZOrderChanged:"windows:WindowZOrderChanged",WindowMinimise:"windows:WindowMinimise",WindowUnMinimise:"windows:WindowUnMinimise",WindowMaximise:"windows:WindowMaximise",WindowUnMaximise:"windows:WindowUnMaximise"}),Mac:Object.freeze({ApplicationDidBecomeActive:"mac:ApplicationDidBecomeActive",ApplicationDidChangeBackingProperties:"mac:ApplicationDidChangeBackingProperties",ApplicationDidChangeEffectiveAppearance:"mac:ApplicationDidChangeEffectiveAppearance",ApplicationDidChangeIcon:"mac:ApplicationDidChangeIcon",ApplicationDidChangeOcclusionState:"mac:ApplicationDidChangeOcclusionState",ApplicationDidChangeScreenParameters:"mac:ApplicationDidChangeScreenParameters",ApplicationDidChangeStatusBarFrame:"mac:ApplicationDidChangeStatusBarFrame",ApplicationDidChangeStatusBarOrientation:"mac:ApplicationDidChangeStatusBarOrientation",ApplicationDidChangeTheme:"mac:ApplicationDidChangeTheme",ApplicationDidFinishLaunching:"mac:ApplicationDidFinishLaunching",ApplicationDidHide:"mac:ApplicationDidHide",ApplicationDidResignActive:"mac:ApplicationDidResignActive",ApplicationDidUnhide:"mac:ApplicationDidUnhide",ApplicationDidUpdate:"mac:ApplicationDidUpdate",ApplicationDidWake:"mac:ApplicationDidWake",ApplicationScreensDidSleep:"mac:ApplicationScreensDidSleep",ApplicationScreensDidWake:"mac:ApplicationScreensDidWake",ApplicationShouldHandleReopen:"mac:ApplicationShouldHandleReopen",ApplicationWillBecomeActive:"mac:ApplicationWillBecomeActive",ApplicationWillFinishLaunching:"mac:ApplicationWillFinishLaunching",ApplicationWillHide:"mac:ApplicationWillHide",ApplicationWillResignActive:"mac:ApplicationWillResignActive",ApplicationWillSleep:"mac:ApplicationWillSleep",ApplicationWillTerminate:"mac:ApplicationWillTerminate",ApplicationWillUnhide:"mac:ApplicationWillUnhide",ApplicationWillUpdate:"mac:ApplicationWillUpdate",MenuDidAddItem:"mac:MenuDidAddItem",MenuDidBeginTracking:"mac:MenuDidBeginTracking",MenuDidClose:"mac:MenuDidClose",MenuDidDisplayItem:"mac:MenuDidDisplayItem",MenuDidEndTracking:"mac:MenuDidEndTracking",MenuDidHighlightItem:"mac:MenuDidHighlightItem",MenuDidOpen:"mac:MenuDidOpen",MenuDidPopUp:"mac:MenuDidPopUp",MenuDidRemoveItem:"mac:MenuDidRemoveItem",MenuDidSendAction:"mac:MenuDidSendAction",MenuDidSendActionToItem:"mac:MenuDidSendActionToItem",MenuDidUpdate:"mac:MenuDidUpdate",MenuWillAddItem:"mac:MenuWillAddItem",MenuWillBeginTracking:"mac:MenuWillBeginTracking",MenuWillDisplayItem:"mac:MenuWillDisplayItem",MenuWillEndTracking:"mac:MenuWillEndTracking",MenuWillHighlightItem:"mac:MenuWillHighlightItem",MenuWillOpen:"mac:MenuWillOpen",MenuWillPopUp:"mac:MenuWillPopUp",MenuWillRemoveItem:"mac:MenuWillRemoveItem",MenuWillSendAction:"mac:MenuWillSendAction",MenuWillSendActionToItem:"mac:MenuWillSendActionToItem",MenuWillUpdate:"mac:MenuWillUpdate",WebViewDidCommitNavigation:"mac:WebViewDidCommitNavigation",WebViewDidFinishNavigation:"mac:WebViewDidFinishNavigation",WebViewDidReceiveServerRedirectForProvisionalNavigation:"mac:WebViewDidReceiveServerRedirectForProvisionalNavigation",WebViewDidStartProvisionalNavigation:"mac:WebViewDidStartProvisionalNavigation",WindowDidBecomeKey:"mac:WindowDidBecomeKey",WindowDidBecomeMain:"mac:WindowDidBecomeMain",WindowDidBeginSheet:"mac:WindowDidBeginSheet",WindowDidChangeAlpha:"mac:WindowDidChangeAlpha",WindowDidChangeBackingLocation:"mac:WindowDidChangeBackingLocation",WindowDidChangeBackingProperties:"mac:WindowDidChangeBackingProperties",WindowDidChangeCollectionBehavior:"mac:WindowDidChangeCollectionBehavior",WindowDidChangeEffectiveAppearance:"mac:WindowDidChangeEffectiveAppearance",WindowDidChangeOcclusionState:"mac:WindowDidChangeOcclusionState",WindowDidChangeOrderingMode:"mac:WindowDidChangeOrderingMode",WindowDidChangeScreen:"mac:WindowDidChangeScreen",WindowDidChangeScreenParameters:"mac:WindowDidChangeScreenParameters",WindowDidChangeScreenProfile:"mac:WindowDidChangeScreenProfile",WindowDidChangeScreenSpace:"mac:WindowDidChangeScreenSpace",WindowDidChangeScreenSpaceProperties:"mac:WindowDidChangeScreenSpaceProperties",WindowDidChangeSharingType:"mac:WindowDidChangeSharingType",WindowDidChangeSpace:"mac:WindowDidChangeSpace",WindowDidChangeSpaceOrderingMode:"mac:WindowDidChangeSpaceOrderingMode",WindowDidChangeTitle:"mac:WindowDidChangeTitle",WindowDidChangeToolbar:"mac:WindowDidChangeToolbar",WindowDidDeminiaturize:"mac:WindowDidDeminiaturize",WindowDidEndSheet:"mac:WindowDidEndSheet",WindowDidEnterFullScreen:"mac:WindowDidEnterFullScreen",WindowDidEnterVersionBrowser:"mac:WindowDidEnterVersionBrowser",WindowDidExitFullScreen:"mac:WindowDidExitFullScreen",WindowDidExitVersionBrowser:"mac:WindowDidExitVersionBrowser",WindowDidExpose:"mac:WindowDidExpose",WindowDidFocus:"mac:WindowDidFocus",WindowDidMiniaturize:"mac:WindowDidMiniaturize",WindowDidMove:"mac:WindowDidMove",WindowDidOrderOffScreen:"mac:WindowDidOrderOffScreen",WindowDidOrderOnScreen:"mac:WindowDidOrderOnScreen",WindowDidResignKey:"mac:WindowDidResignKey",WindowDidResignMain:"mac:WindowDidResignMain",WindowDidResize:"mac:WindowDidResize",WindowDidUpdate:"mac:WindowDidUpdate",WindowDidUpdateAlpha:"mac:WindowDidUpdateAlpha",WindowDidUpdateCollectionBehavior:"mac:WindowDidUpdateCollectionBehavior",WindowDidUpdateCollectionProperties:"mac:WindowDidUpdateCollectionProperties",WindowDidUpdateShadow:"mac:WindowDidUpdateShadow",WindowDidUpdateTitle:"mac:WindowDidUpdateTitle",WindowDidUpdateToolbar:"mac:WindowDidUpdateToolbar",WindowDidZoom:"mac:WindowDidZoom",WindowFileDraggingEntered:"mac:WindowFileDraggingEntered",WindowFileDraggingExited:"mac:WindowFileDraggingExited",WindowFileDraggingPerformed:"mac:WindowFileDraggingPerformed",WindowHide:"mac:WindowHide",WindowMaximise:"mac:WindowMaximise",WindowUnMaximise:"mac:WindowUnMaximise",WindowMinimise:"mac:WindowMinimise",WindowUnMinimise:"mac:WindowUnMinimise",WindowShouldClose:"mac:WindowShouldClose",WindowShow:"mac:WindowShow",WindowWillBecomeKey:"mac:WindowWillBecomeKey",WindowWillBecomeMain:"mac:WindowWillBecomeMain",WindowWillBeginSheet:"mac:WindowWillBeginSheet",WindowWillChangeOrderingMode:"mac:WindowWillChangeOrderingMode",WindowWillClose:"mac:WindowWillClose",WindowWillDeminiaturize:"mac:WindowWillDeminiaturize",WindowWillEnterFullScreen:"mac:WindowWillEnterFullScreen",WindowWillEnterVersionBrowser:"mac:WindowWillEnterVersionBrowser",WindowWillExitFullScreen:"mac:WindowWillExitFullScreen",WindowWillExitVersionBrowser:"mac:WindowWillExitVersionBrowser",WindowWillFocus:"mac:WindowWillFocus",WindowWillMiniaturize:"mac:WindowWillMiniaturize",WindowWillMove:"mac:WindowWillMove",WindowWillOrderOffScreen:"mac:WindowWillOrderOffScreen",WindowWillOrderOnScreen:"mac:WindowWillOrderOnScreen",WindowWillResignMain:"mac:WindowWillResignMain",WindowWillResize:"mac:WindowWillResize",WindowWillUnfocus:"mac:WindowWillUnfocus",WindowWillUpdate:"mac:WindowWillUpdate",WindowWillUpdateAlpha:"mac:WindowWillUpdateAlpha",WindowWillUpdateCollectionBehavior:"mac:WindowWillUpdateCollectionBehavior",WindowWillUpdateCollectionProperties:"mac:WindowWillUpdateCollectionProperties",WindowWillUpdateShadow:"mac:WindowWillUpdateShadow",WindowWillUpdateTitle:"mac:WindowWillUpdateTitle",WindowWillUpdateToolbar:"mac:WindowWillUpdateToolbar",WindowWillUpdateVisibility:"mac:WindowWillUpdateVisibility",WindowWillUseStandardFrame:"mac:WindowWillUseStandardFrame",WindowZoomIn:"mac:WindowZoomIn",WindowZoomOut:"mac:WindowZoomOut",WindowZoomReset:"mac:WindowZoomReset",WebViewWebContentProcessDidTerminate:"mac:WebViewWebContentProcessDidTerminate"}),Linux:Object.freeze({ApplicationStartup:"linux:ApplicationStartup",SystemDidWake:"linux:SystemDidWake",SystemThemeChanged:"linux:SystemThemeChanged",SystemWillSleep:"linux:SystemWillSleep",WindowDeleteEvent:"linux:WindowDeleteEvent",WindowDidMove:"linux:WindowDidMove",WindowDidResize:"linux:WindowDidResize",WindowFocusIn:"linux:WindowFocusIn",WindowFocusOut:"linux:WindowFocusOut",WindowLoadStarted:"linux:WindowLoadStarted",WindowLoadRedirected:"linux:WindowLoadRedirected",WindowLoadCommitted:"linux:WindowLoadCommitted",WindowLoadFinished:"linux:WindowLoadFinished"}),iOS:Object.freeze({ApplicationDidBecomeActive:"ios:ApplicationDidBecomeActive",ApplicationDidEnterBackground:"ios:ApplicationDidEnterBackground",ApplicationDidFinishLaunching:"ios:ApplicationDidFinishLaunching",ApplicationDidReceiveMemoryWarning:"ios:ApplicationDidReceiveMemoryWarning",ApplicationWillEnterForeground:"ios:ApplicationWillEnterForeground",ApplicationWillResignActive:"ios:ApplicationWillResignActive",ApplicationWillTerminate:"ios:ApplicationWillTerminate",WindowDidLoad:"ios:WindowDidLoad",WindowWillAppear:"ios:WindowWillAppear",WindowDidAppear:"ios:WindowDidAppear",WindowWillDisappear:"ios:WindowWillDisappear",WindowDidDisappear:"ios:WindowDidDisappear",WindowSafeAreaInsetsChanged:"ios:WindowSafeAreaInsetsChanged",WindowOrientationChanged:"ios:WindowOrientationChanged",WindowTouchBegan:"ios:WindowTouchBegan",WindowTouchMoved:"ios:WindowTouchMoved",WindowTouchEnded:"ios:WindowTouchEnded",WindowTouchCancelled:"ios:WindowTouchCancelled",WebViewDidStartNavigation:"ios:WebViewDidStartNavigation",WebViewDidFinishNavigation:"ios:WebViewDidFinishNavigation",WebViewDidFailNavigation:"ios:WebViewDidFailNavigation",WebViewDecidePolicyForNavigationAction:"ios:WebViewDecidePolicyForNavigationAction",BatteryChanged:"ios:BatteryChanged",NetworkChanged:"ios:NetworkChanged",ThemeChanged:"ios:ThemeChanged",ScreenLocked:"ios:ScreenLocked",ScreenUnlocked:"ios:ScreenUnlocked"}),Android:Object.freeze({ActivityCreated:"android:ActivityCreated",ActivityStarted:"android:ActivityStarted",ActivityResumed:"android:ActivityResumed",ActivityPaused:"android:ActivityPaused",ActivityStopped:"android:ActivityStopped",ActivityDestroyed:"android:ActivityDestroyed",ApplicationLowMemory:"android:ApplicationLowMemory",WebViewPageStarted:"android:WebViewPageStarted",WebViewPageFinished:"android:WebViewPageFinished",BatteryChanged:"android:BatteryChanged",NetworkChanged:"android:NetworkChanged",ThemeChanged:"android:ThemeChanged",ScreenLocked:"android:ScreenLocked",ScreenUnlocked:"android:ScreenUnlocked"}),Common:Object.freeze({ApplicationOpenedWithFile:"common:ApplicationOpenedWithFile",ApplicationStarted:"common:ApplicationStarted",ApplicationLaunchedWithUrl:"common:ApplicationLaunchedWithUrl",ThemeChanged:"common:ThemeChanged",SystemDidWake:"common:SystemDidWake",SystemWillSleep:"common:SystemWillSleep",WindowClosing:"common:WindowClosing",WindowDidMove:"common:WindowDidMove",WindowDidResize:"common:WindowDidResize",WindowDPIChanged:"common:WindowDPIChanged",WindowFilesDropped:"common:WindowFilesDropped",WindowFocus:"common:WindowFocus",WindowFullscreen:"common:WindowFullscreen",WindowHide:"common:WindowHide",WindowLostFocus:"common:WindowLostFocus",WindowMaximise:"common:WindowMaximise",WindowMinimise:"common:WindowMinimise",WindowToggleFrameless:"common:WindowToggleFrameless",WindowRestore:"common:WindowRestore",WindowRuntimeReady:"common:WindowRuntimeReady",WindowShow:"common:WindowShow",WindowUnFullscreen:"common:WindowUnFullscreen",WindowUnMaximise:"common:WindowUnMaximise",WindowUnMinimise:"common:WindowUnMinimise",WindowZoom:"common:WindowZoom",WindowZoomIn:"common:WindowZoomIn",WindowZoomOut:"common:WindowZoomOut",WindowZoomReset:"common:WindowZoomReset",BatteryChanged:"common:BatteryChanged",NetworkChanged:"common:NetworkChanged",ScreenLocked:"common:ScreenLocked",ScreenUnlocked:"common:ScreenUnlocked",LowMemory:"common:LowMemory"})});t.hasDOM&&(window._wails=window._wails||{},window._wails.dispatchWailsEvent=M);const A=t.newRuntimeCaller(t.objectNames.Events),C=0;class c{constructor(e,n){this.name=e,this.data=n??null}}function M(i){let e=o.get(i.name);if(!e)return;let n=new c(i.name,i.name in t.Events?t.Events[i.name](i.data):i.data);"sender"in i&&(n.sender=i.sender);const d=new Set;for(const a of e.slice())a.dispatch(n)&&d.add(a);if(d.size>0){const a=o.get(i.name);if(a){const w=a.filter(s=>!d.has(s));w.length===0?o.delete(i.name):o.set(i.name,w)}}}function l(i,e,n){let d=o.get(i)||[];const a=new u(i,e,n);return d.push(a),o.set(i,d),()=>h(a)}function r(i,e){return l(i,e,-1)}function v(i,e){return l(i,e,1)}function U(...i){i.forEach(e=>o.delete(e))}function F(){o.clear()}function m(i,e){return A(C,new c(i,e))}const O=Object.freeze(Object.defineProperty({__proto__:null,Emit:m,Off:U,OffAll:F,On:r,OnMultiple:l,Once:v,Types:S,WailsEvent:c},Symbol.toStringTag,{value:"Module"}));exports.Emit=m;exports.On=r;exports.OpenURL=W;exports.browser=g;exports.events=O;
@@ -1,4 +1,4 @@
1
- import { n as W, o as r, h as m, E as w } from "./index-D2mKAO8s.js";
1
+ import { n as W, o as r, h as m, E as w } from "./index-zyAgCXOO.js";
2
2
  const p = W(r.Browser), D = 0;
3
3
  function g(i) {
4
4
  return p(D, { url: i.toString() });
@@ -11,11 +11,21 @@ type CreateSessionOptions = {
11
11
  icon?: string | React.ReactNode;
12
12
  label?: string;
13
13
  opts: Partial<SessionOptions>;
14
+ /** UI-only explicit recovery; never serialized into session options. */
15
+ recovery?: {
16
+ label: string;
17
+ canRecover: (error: {
18
+ title: string;
19
+ suggestion: string;
20
+ raw: string;
21
+ }) => boolean;
22
+ run: () => Promise<void>;
23
+ };
14
24
  };
15
25
  /**
16
26
  * Create or manage sessions from throughout the app
17
27
  */
18
28
  export declare const useExec: ({ pluginID: explicitPluginID }: UseResourceMutationsOptions) => {
19
- createSession: import('@tanstack/react-query').UseMutateAsyncFunction<void, Error, CreateSessionOptions, unknown>;
29
+ createSession: import('@tanstack/react-query').UseMutateAsyncFunction<import('../../models').Session | null, Error, CreateSessionOptions, unknown>;
20
30
  };
21
31
  export default useExec;
@@ -56,6 +56,6 @@ export declare const useResource: ({ pluginID: explicitPluginID, connectionID, r
56
56
  */
57
57
  remove: import('@tanstack/react-query').UseMutateAsyncFunction<import('../../models').DeleteResult | null, unknown, {
58
58
  gracePeriodSeconds?: number;
59
- } | undefined, unknown>;
59
+ }, unknown>;
60
60
  };
61
61
  export default useResource;
@@ -0,0 +1,6 @@
1
+ "use strict";const f=typeof window<"u"&&typeof document<"u",ie="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function P(e=21){const t=typeof crypto<"u"&&typeof crypto.getRandomValues=="function"?crypto:null;if(t){const o=new Uint8Array(e);t.getRandomValues(o);let r="";for(let l=0;l<e;l++)r+=ie[o[l]&63];return r}let n="",i=e|0;for(;i--;)n+=ie[Math.random()*64|0];return n}var N;function ye(){return window.location.origin+"/wails/runtime"}const C=512*1024;class ce extends Error{constructor(t,n){super(t,n),this.name="RuntimeError"}}const A=Object.freeze({Call:0,Clipboard:1,Application:2,Events:3,ContextMenu:4,Dialog:5,Window:6,Screens:7,System:8,Browser:9,CancelCall:10,IOS:11,Android:12});let K=P(),G=null;function I(e,t=""){return function(n,i=null){return Me(e,n,t,i)}}async function Me(e,t,n,i){var o,r;if(G)return G.call(e,t,n,i);let l=new URL(ye()),a={object:e,method:t};i!=null&&(a.args=i);let u={"x-wails-client-id":K,"Content-Type":"application/json"};n&&(u["x-wails-window-name"]=n);const g=JSON.stringify(a);let c;if(g.length>C?c=await _e(l,u,g):c=await fetch(l,{method:"POST",headers:u,body:g}),!c.ok){const p=c.headers.get("Content-Type");if(p?.includes("application/json")){const h=await c.json();let m;switch(h.kind){case"ReferenceError":m=new ReferenceError(h.message);break;case"TypeError":m=new TypeError(h.message);break;case"RuntimeError":m=new ce(h.message);break;default:m=new Error(h.message)}throw m.cause=h.cause,m}throw new Error(await c.text())}return((r=(o=c.headers.get("Content-Type"))===null||o===void 0?void 0:o.indexOf("application/json"))!==null&&r!==void 0?r:-1)!==-1?c.json():c.text()}async function _e(e,t,n){const i=P(),o=new TextEncoder().encode(n),r=Math.ceil(o.length/C);for(let l=0;l<r-1;l++){const a=o.subarray(l*C,(l+1)*C),u=await fetch(e,{method:"POST",headers:Object.assign(Object.assign({},t),{"x-wails-chunk-id":i,"x-wails-chunk-index":String(l),"x-wails-chunk-total":String(r)}),body:a});if(!u.ok)throw new Error(await u.text())}return fetch(e,{method:"POST",headers:Object.assign(Object.assign({},t),{"x-wails-chunk-id":i,"x-wails-chunk-index":String(r-1),"x-wails-chunk-total":String(r)}),body:o.subarray((r-1)*C)})}const oe=f&&typeof((N=window.wails)===null||N===void 0?void 0:N.invokeAsync)=="function"?window.wails:null;if(oe){const e=new Map;window._wailsAndroidCallback=(t,n,i)=>{var o;const r=e.get(t);if(r){if(e.delete(t),i){r.reject(new Error(i));return}try{const l=JSON.parse(n??"{}");if(!l.ok){r.reject(new Error((o=l.error)!==null&&o!==void 0?o:"unknown runtime call error"));return}r.resolve("text"in l?l.text:l.data)}catch(l){r.reject(l)}}},G={call(t,n,i,o){return new Promise((r,l)=>{const a=P();e.set(a,{resolve:r,reject:l});try{oe.invokeAsync(a,JSON.stringify({object:t,method:n,windowName:i,args:o??null,clientId:K}))}catch(u){e.delete(a),l(u)}})}}}const Q=I(A.System),Se=0,Ee=1,Te=2,W=(function(){var e,t,n,i,o,r;try{if(!((t=(e=window.chrome)===null||e===void 0?void 0:e.webview)===null||t===void 0)&&t.postMessage)return window.chrome.webview.postMessage.bind(window.chrome.webview);if(!((o=(i=(n=window.webkit)===null||n===void 0?void 0:n.messageHandlers)===null||i===void 0?void 0:i.external)===null||o===void 0)&&o.postMessage)return window.webkit.messageHandlers.external.postMessage.bind(window.webkit.messageHandlers.external);if(!((r=window.wails)===null||r===void 0)&&r.invoke)return l=>window.wails.invoke(typeof l=="string"?l:JSON.stringify(l))}catch{}return console.warn(`
2
+ %c⚠️ Browser Environment Detected %c
3
+
4
+ %cOnly UI previews are available in the browser. For full functionality, please run the application in desktop mode.
5
+ More information at: https://v3.wails.io/learn/build/#using-a-browser-for-development
6
+ `,"background: #ffffff; color: #000000; font-weight: bold; padding: 4px 8px; border-radius: 4px; border: 2px solid #000000;","background: transparent;","color: #ffffff; font-style: italic; font-weight: bold;"),null})();function M(e){W?.(e)}function Ce(){return Q(Se)}async function De(){return Q(Te)}function ze(){return Q(Ee)}function H(){var e,t;return((t=(e=window._wails)===null||e===void 0?void 0:e.environment)===null||t===void 0?void 0:t.OS)==="windows"}function ee(){var e,t;return((t=(e=window._wails)===null||e===void 0?void 0:e.environment)===null||t===void 0?void 0:t.OS)==="linux"}function te(){var e,t;return((t=(e=window._wails)===null||e===void 0?void 0:e.environment)===null||t===void 0?void 0:t.OS)==="darwin"}function fe(){var e,t;return((t=(e=window._wails)===null||e===void 0?void 0:e.environment)===null||t===void 0?void 0:t.OS)==="ios"}function we(){var e,t;return((t=(e=window._wails)===null||e===void 0?void 0:e.environment)===null||t===void 0?void 0:t.OS)==="android"}function Oe(){return fe()||we()}function Re(){return te()||H()||ee()}function xe(){var e,t;return((t=(e=window._wails)===null||e===void 0?void 0:e.environment)===null||t===void 0?void 0:t.Arch)==="amd64"}function ke(){var e,t;return((t=(e=window._wails)===null||e===void 0?void 0:e.environment)===null||t===void 0?void 0:t.Arch)==="arm"}function Le(){var e,t;return((t=(e=window._wails)===null||e===void 0?void 0:e.environment)===null||t===void 0?void 0:t.Arch)==="arm64"}function he(){var e,t;return!!(!((t=(e=window._wails)===null||e===void 0?void 0:e.environment)===null||t===void 0)&&t.Debug)}const Fe=Object.freeze(Object.defineProperty({__proto__:null,Capabilities:De,Environment:ze,IsAMD64:xe,IsARM:ke,IsARM64:Le,IsAndroid:we,IsDarkMode:Ce,IsDebug:he,IsDesktop:Re,IsIOS:fe,IsLinux:ee,IsMac:te,IsMobile:Oe,IsWindows:H,invoke:M},Symbol.toStringTag,{value:"Module"}));function Pe(){return new MouseEvent("mousedown").buttons===0}function Ae(){if(!EventTarget||!AbortSignal||!AbortController)return!1;let e=!0;const t=new EventTarget,n=new AbortController;return t.addEventListener("test",()=>{e=!1},{signal:n.signal}),n.abort(),t.dispatchEvent(new CustomEvent("test")),e}function me(e){var t;return e.target instanceof HTMLElement?e.target:!(e.target instanceof HTMLElement)&&e.target instanceof Node&&(t=e.target.parentElement)!==null&&t!==void 0?t:document.body}let ve=!1;f&&document.addEventListener("DOMContentLoaded",()=>{ve=!0});function pe(e){ve||document.readyState==="complete"?e():document.addEventListener("DOMContentLoaded",e)}f&&window.addEventListener("contextmenu",Be);const Ie=I(A.ContextMenu),He=0;function je(e,t,n,i){Ie(He,{id:e,x:t,y:n,data:i})}function Be(e){const t=me(e),n=window.getComputedStyle(t).getPropertyValue("--custom-contextmenu").trim();if(n){e.preventDefault();const i=window.getComputedStyle(t).getPropertyValue("--custom-contextmenu-data");je(n,e.clientX,e.clientY,i)}else Ne(e,t)}function Ne(e,t){if(he())return;switch(window.getComputedStyle(t).getPropertyValue("--default-contextmenu").trim()){case"show":return;case"hide":e.preventDefault();return}if(t.isContentEditable)return;const n=window.getSelection(),i=n&&n.toString().length>0;if(i)for(let o=0;o<n.rangeCount;o++){const l=n.getRangeAt(o).getClientRects();for(let a=0;a<l.length;a++){const u=l[a];if(document.elementFromPoint(u.left,u.top)===t)return}}(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(i||!t.readOnly&&!t.disabled)||e.preventDefault()}function D(e){try{return window._wails.flags[e]}catch(t){throw new Error("Unable to retrieve flag '"+e+"': "+t,{cause:t})}}const We=Object.freeze(Object.defineProperty({__proto__:null,GetFlag:D},Symbol.toStringTag,{value:"Module"}));let z=!1,O=!1,J=!1,E=!1,T=!1,y="",re="auto",_=0,x=!1;f&&(x=Pe(),window._wails=window._wails||{},window._wails.setResizable=e=>{J=e,J||(E=T=!1,w())});let k=!1;function Ue(){var e,t;const n=(t=(e=window._wails)===null||e===void 0?void 0:e.environment)===null||t===void 0?void 0:t.OS;if(n==="ios"||n==="android")return!0;const i=navigator.userAgent||navigator.vendor||window.opera||"";return/android|iphone|ipad|ipod|iemobile|wpdesktop/i.test(i)}function U(){if(!k&&!Ue()){window.addEventListener("mousedown",Y,{capture:!0}),window.addEventListener("mousemove",Y,{capture:!0}),window.addEventListener("mouseup",Y,{capture:!0});for(const e of["click","contextmenu","dblclick"])window.addEventListener(e,Ve,{capture:!0});k=!0}}if(f){U(),document.addEventListener("DOMContentLoaded",U,{once:!0});let e=0;const t=k?void 0:window.setInterval(()=>{if(k){window.clearInterval(t);return}U(),++e>100&&window.clearInterval(t)},50)}function Ve(e){if(e.type==="dblclick"&&te()&&window===window.top&&ge(e)){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),M("wails:drag:doubleclick");return}(O||T)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}function ge(e){const t=me(e);return window.getComputedStyle(t).getPropertyValue("--wails-draggable").trim()==="drag"&&e.offsetX>=0&&e.offsetX<t.clientWidth&&e.offsetY>=0&&e.offsetY<t.clientHeight}const V=0,Xe=1,X=2;function Y(e){let t,n=e.buttons;switch(e.type){case"mousedown":t=V,x||(n=_|1<<e.button);break;case"mouseup":t=Xe,x||(n=_&~(1<<e.button));break;default:t=X,x||(n=_);break}let i=_&~n,o=n&~_;_=n,t===V&&!(o&e.button)&&(i|=1<<e.button,o|=1<<e.button),(t!==X&&T||O&&(t===V||e.button!==0))&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault()),i&1&&Ze(),o&1&&Ye(e),t===X&&Je(e)}function Ye(e){if(z=!1,E=!1,!(!H()&&e.type==="mousedown"&&e.button===0&&e.detail!==1)){if(y){if(e.type!=="mousedown")return;E=!0;return}z=ge(e)}}function Ze(e){z=!1,O=!1,E=!1,T=!1}const Ge=Object.freeze({"se-resize":"nwse-resize","sw-resize":"nesw-resize","nw-resize":"nwse-resize","ne-resize":"nesw-resize","w-resize":"ew-resize","n-resize":"ns-resize","s-resize":"ns-resize","e-resize":"ew-resize"});function w(e){e?(y||(re=document.body.style.cursor),document.body.style.cursor=Ge[e]):!e&&y&&(document.body.style.cursor=re),y=e||""}function Je(e){if(E&&y?(T=!0,M("wails:resize:"+y)):z&&(O=!0,M("wails:drag")),O||T){z=E=!1;return}if(!J||!H()&&!(ee()&&D("frameless"))){y&&w();return}const t=D("system.resizeHandleHeight")||5,n=D("system.resizeHandleWidth")||5,i=D("resizeCornerExtra")||10,o=Math.max(0,window.innerWidth-document.documentElement.clientWidth),r=Math.max(0,window.innerHeight-document.documentElement.clientHeight),l=window.innerWidth-o,a=window.innerHeight-r,u=e.clientX<l&&l-e.clientX<n,g=e.clientX<n,c=e.clientY<t,p=e.clientY<a&&a-e.clientY<t,h=e.clientX<l&&l-e.clientX<n+i,m=e.clientX<n+i,j=e.clientY<t+i,B=e.clientY<a&&a-e.clientY<t+i;!m&&!j&&!B&&!h?w():h&&B?w("se-resize"):m&&B?w("sw-resize"):m&&j?w("nw-resize"):j&&h?w("ne-resize"):g?w("w-resize"):c?w("n-resize"):p?w("s-resize"):u?w("e-resize"):w()}const se="--wails-non-client-region",$e="wails:runtime-config-ready",qe=new Set(["caption","minimize","maximize","close"]);f&&(window._wails=window._wails||{});let $=!1,le="",Z=new Set,S,ae=!1;function de(e){const t=e.trim().toLowerCase();if(qe.has(t))return t}function Ke(e){if(!(e instanceof HTMLElement))return;const t=window.getComputedStyle(e),n=de(t.getPropertyValue(se));if(!n)return;const i=e.parentElement;if(i){const o=window.getComputedStyle(i);if(de(o.getPropertyValue(se))===n)return}return n}function Qe(e){const t=window.getComputedStyle(e);return t.display!=="none"&&t.visibility!=="hidden"&&t.contentVisibility!=="hidden"}function et(e){if(!(e instanceof HTMLElement))return;const t=Ke(e);if(!t||!Qe(e))return;const n=e.getBoundingClientRect();if(n.width<=0||n.height<=0)return;const i=window.devicePixelRatio||1,o=Math.floor(n.left*i),r=Math.floor(n.top*i),l=Math.ceil(n.right*i),a=Math.ceil(n.bottom*i);if(!(l<=o||a<=r))return{kind:t,left:o,top:r,right:l,bottom:a}}function tt(){const e=[];if(document.documentElement&&e.push(document.documentElement),document.body){e.push(document.body);for(const t of document.body.querySelectorAll("*"))e.push(t)}return e}function nt(e){if(typeof ResizeObserver>"u")return;S??(S=new ResizeObserver(b));const t=new Set(e);for(const n of Z)t.has(n)||S.unobserve(n);for(const n of t)Z.has(n)||S.observe(n);Z=t}function it(){$=!1;const e=tt(),t=[],n=[];for(const o of e){const r=et(o);r&&(t.push(r),n.push(o))}nt(n);const i=JSON.stringify({version:1,regions:t});i!==le&&(le=i,M("wails:non-client-region:"+i))}function b(){$||($=!0,window.requestAnimationFrame(it))}function ot(){var e,t;if(ae)return;ae=!0,b(),new MutationObserver(b).observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0}),window.addEventListener("resize",b),window.addEventListener("scroll",b,!0),(e=window.visualViewport)===null||e===void 0||e.addEventListener("resize",b),(t=window.visualViewport)===null||t===void 0||t.addEventListener("scroll",b)}function ue(){var e,t;const n=(e=window._wails.environment)===null||e===void 0?void 0:e.OS;if(n===void 0)return!1;const i=(t=window._wails.flags)===null||t===void 0?void 0:t.nonClientRegionTracking;return n==="windows"&&i===!0&&pe(ot),!0}f&&!ue()&&window.addEventListener($e,ue,{once:!0});function R(e){return e}function rt(e){return e??""}function st(e){return e===R?t=>t===null?[]:t:t=>{if(t===null)return[];for(let n=0;n<t.length;n++)t[n]=e(t[n]);return t}}function lt(e,t){return t===R?n=>n===null?{}:n:n=>{if(n===null)return{};for(const i in n)n[i]=t(n[i]);return n}}function at(e){return e===R?R:t=>t===null?null:e(t)}const dt={},ut="data-file-drop-target",v="file-drop-target-active";let d=null;const ct=0,ft=1,wt=2,ht=3,mt=4,vt=5,pt=6,gt=7,bt=8,yt=9,Mt=10,_t=11,St=12,Et=13,Tt=14,Ct=15,Dt=16,zt=17,Ot=18,Rt=19,xt=20,kt=21,Lt=22,Ft=23,Pt=24,At=25,It=26,Ht=27,jt=28,Bt=29,Nt=30,Wt=31,Ut=32,Vt=33,Xt=34,Yt=35,Zt=36,Gt=37,Jt=38,$t=39,qt=40,Kt=41,Qt=42,en=43,tn=44,nn=45,on=46,rn=47,sn=48,ln=49,an=50,dn=51,un=52;function L(e){return e?e.closest(`[${ut}]`):null}function cn(){var e,t,n,i;return((t=(e=window.chrome)===null||e===void 0?void 0:e.webview)===null||t===void 0?void 0:t.postMessageWithAdditionalObjects)==null?!1:((i=(n=window._wails)===null||n===void 0?void 0:n.flags)===null||i===void 0?void 0:i.enableFileDrop)===!0}function fn(e,t,n){var i,o;!((o=(i=window.chrome)===null||i===void 0?void 0:i.webview)===null||o===void 0)&&o.postMessageWithAdditionalObjects&&window.chrome.webview.postMessageWithAdditionalObjects(`file:drop:${e}:${t}`,n)}let ne=!1;function be(){ne=!1,d&&(d.classList.remove(v),d=null)}function wn(){var e,t;((t=(e=window._wails)===null||e===void 0?void 0:e.flags)===null||t===void 0?void 0:t.enableFileDrop)!==!1&&(ne=!0)}function hn(){be()}function mn(e,t){var n,i;if(!ne||((i=(n=window._wails)===null||n===void 0?void 0:n.flags)===null||i===void 0?void 0:i.enableFileDrop)===!1)return;const o=document.elementFromPoint(e,t),r=L(o);d&&d!==r&&d.classList.remove(v),r?(r.classList.add(v),d=r):d=null}const s=Symbol("caller");class F{constructor(t=""){this[s]=I(A.Window,t);for(const n of Object.getOwnPropertyNames(F.prototype))n!=="constructor"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}Get(t){return new F(t)}Position(){return this[s](ct)}Center(){return this[s](ft)}Close(){return this[s](wt)}DisableSizeConstraints(){return this[s](ht)}EnableSizeConstraints(){return this[s](mt)}Focus(){return this[s](vt)}ForceReload(){return this[s](pt)}Fullscreen(){return this[s](gt)}GetScreen(){return this[s](bt)}GetZoom(){return this[s](yt)}Height(){return this[s](Mt)}Hide(){return this[s](_t)}IsFocused(){return this[s](St)}IsFullscreen(){return this[s](Et)}IsMaximised(){return this[s](Tt)}IsMinimised(){return this[s](Ct)}Maximise(){return this[s](Dt)}Minimise(){return this[s](zt)}Name(){return this[s](Ot)}OpenDevTools(){return this[s](Rt)}RelativePosition(){return this[s](xt)}Reload(){return this[s](kt)}Resizable(){return this[s](Lt)}Restore(){return this[s](Ft)}SetPosition(t,n){return this[s](Pt,{x:t,y:n})}SetAlwaysOnTop(t){return this[s](At,{alwaysOnTop:t})}SetBackgroundColour(t,n,i,o){return this[s](It,{r:t,g:n,b:i,a:o})}SetFrameless(t){return this[s](Ht,{frameless:t})}SetFullscreenButtonEnabled(t){return this[s](jt,{enabled:t})}SetMaxSize(t,n){return this[s](Bt,{width:t,height:n})}SetMinSize(t,n){return this[s](Nt,{width:t,height:n})}SetRelativePosition(t,n){return this[s](Wt,{x:t,y:n})}SetResizable(t){return this[s](Ut,{resizable:t})}SetSize(t,n){return this[s](Vt,{width:t,height:n})}SetTitle(t){return this[s](Xt,{title:t})}SetZoom(t){return this[s](Yt,{zoom:t})}Show(){return this[s](Zt)}Size(){return this[s](Gt)}ToggleFullscreen(){return this[s](Jt)}ToggleMaximise(){return this[s]($t)}ToggleFrameless(){return this[s](qt)}UnFullscreen(){return this[s](Kt)}UnMaximise(){return this[s](Qt)}UnMinimise(){return this[s](en)}Width(){return this[s](tn)}Zoom(){return this[s](nn)}ZoomIn(){return this[s](on)}ZoomOut(){return this[s](rn)}ZoomReset(){return this[s](sn)}HandlePlatformFileDrop(t,n,i){var o,r;if(((r=(o=window._wails)===null||o===void 0?void 0:o.flags)===null||r===void 0?void 0:r.enableFileDrop)===!1)return;const l=document.elementFromPoint(n,i),a=L(l);if(!a)return;const u={id:a.id,classList:Array.from(a.classList),attributes:{}};for(let c=0;c<a.attributes.length;c++){const p=a.attributes[c];u.attributes[p.name]=p.value}const g={filenames:t,x:n,y:i,elementDetails:u};this[s](an,g),be()}SetScreen(t){return this[s](un,{screenID:t})}SnapAssist(){return this[s](ln)}Print(){return this[s](dn)}}const q=new F("");function vn(){const e=document.documentElement;let t=0;e.addEventListener("dragenter",n=>{var i,o,r;if(!(!((i=n.dataTransfer)===null||i===void 0)&&i.types.includes("Files")))return;if(n.preventDefault(),((r=(o=window._wails)===null||o===void 0?void 0:o.flags)===null||r===void 0?void 0:r.enableFileDrop)===!1){n.dataTransfer.dropEffect="none";return}t++;const l=document.elementFromPoint(n.clientX,n.clientY),a=L(l);d&&d!==a&&d.classList.remove(v),a?(a.classList.add(v),n.dataTransfer.dropEffect="copy",d=a):(n.dataTransfer.dropEffect="none",d=null)},!1),e.addEventListener("dragover",n=>{var i,o,r;if(!(!((i=n.dataTransfer)===null||i===void 0)&&i.types.includes("Files")))return;if(n.preventDefault(),((r=(o=window._wails)===null||o===void 0?void 0:o.flags)===null||r===void 0?void 0:r.enableFileDrop)===!1){n.dataTransfer.dropEffect="none";return}const l=document.elementFromPoint(n.clientX,n.clientY),a=L(l);d&&d!==a&&d.classList.remove(v),a?(a.classList.contains(v)||a.classList.add(v),n.dataTransfer.dropEffect="copy",d=a):(n.dataTransfer.dropEffect="none",d=null)},!1),e.addEventListener("dragleave",n=>{var i,o,r;!((i=n.dataTransfer)===null||i===void 0)&&i.types.includes("Files")&&(n.preventDefault(),((r=(o=window._wails)===null||o===void 0?void 0:o.flags)===null||r===void 0?void 0:r.enableFileDrop)!==!1&&n.relatedTarget!==null&&(t--,(t===0||d&&!d.contains(n.relatedTarget))&&(d&&(d.classList.remove(v),d=null),t=0)))},!1),e.addEventListener("drop",n=>{var i,o,r;if(!((i=n.dataTransfer)===null||i===void 0)&&i.types.includes("Files")&&(n.preventDefault(),((r=(o=window._wails)===null||o===void 0?void 0:o.flags)===null||r===void 0?void 0:r.enableFileDrop)!==!1&&(t=0,d&&(d.classList.remove(v),d=null),cn()))){const l=[];if(n.dataTransfer.items){for(const a of n.dataTransfer.items)if(a.kind==="file"){const u=a.getAsFile();u&&l.push(u)}}else if(n.dataTransfer.files)for(const a of n.dataTransfer.files)l.push(a);l.length>0&&fn(n.clientX,n.clientY,l)}},!1)}typeof window<"u"&&typeof document<"u"&&vn();f&&(window._wails=window._wails||{});f&&(window._wails.invoke=M,window._wails.clientId=K);f&&(window._wails.handlePlatformFileDrop=q.HandlePlatformFileDrop.bind(q));f&&(window._wails.handleDragEnter=wn,window._wails.handleDragLeave=hn,window._wails.handleDragOver=mn);f&&M("wails:runtime:ready");function pn(e){return fetch(e,{method:"HEAD"}).then(t=>{if(t.ok&&(t.headers.get("content-type")||"").toLowerCase().includes("javascript")){const i=document.createElement("script");i.src=e,document.head.appendChild(i)}}).catch(()=>{})}f&&pn("/wails/custom.js");exports.Any=R;exports.Array=st;exports.ByteSlice=rt;exports.Events=dt;exports.Map=lt;exports.Nullable=at;exports.RuntimeError=ce;exports.canAbortListeners=Ae;exports.flags=We;exports.hasDOM=f;exports.nanoid=P;exports.newRuntimeCaller=I;exports.objectNames=A;exports.system=Fe;exports.thisWindow=q;exports.whenReady=pe;
@@ -14,7 +14,7 @@ function G(e = 21) {
14
14
  n += ne[Math.random() * 64 | 0];
15
15
  return n;
16
16
  }
17
- var I;
17
+ var H;
18
18
  function ge() {
19
19
  return window.location.origin + "/wails/runtime";
20
20
  }
@@ -44,7 +44,7 @@ const J = Object.freeze({
44
44
  IOS: 11,
45
45
  Android: 12
46
46
  });
47
- let $ = G(), V = null;
47
+ let $ = G(), X = null;
48
48
  function q(e, t = "") {
49
49
  return function(n, o = null) {
50
50
  return ye(e, n, t, o);
@@ -52,8 +52,8 @@ function q(e, t = "") {
52
52
  }
53
53
  async function ye(e, t, n, o) {
54
54
  var i, r;
55
- if (V)
56
- return V.call(e, t, n, o);
55
+ if (X)
56
+ return X.call(e, t, n, o);
57
57
  let l = new URL(ge()), a = {
58
58
  object: e,
59
59
  method: t
@@ -68,7 +68,7 @@ async function ye(e, t, n, o) {
68
68
  let c;
69
69
  if (g.length > C ? c = await Me(l, u, g) : c = await fetch(l, { method: "POST", headers: u, body: g }), !c.ok) {
70
70
  const v = c.headers.get("Content-Type");
71
- if (v != null && v.includes("application/json")) {
71
+ if (v?.includes("application/json")) {
72
72
  const h = await c.json();
73
73
  let m;
74
74
  switch (h.kind) {
@@ -107,7 +107,7 @@ async function Me(e, t, n) {
107
107
  body: i.subarray((r - 1) * C)
108
108
  });
109
109
  }
110
- const oe = f && typeof ((I = window.wails) === null || I === void 0 ? void 0 : I.invokeAsync) == "function" ? window.wails : null;
110
+ const oe = f && typeof ((H = window.wails) === null || H === void 0 ? void 0 : H.invokeAsync) == "function" ? window.wails : null;
111
111
  if (oe) {
112
112
  const e = /* @__PURE__ */ new Map();
113
113
  window._wailsAndroidCallback = (t, n, o) => {
@@ -129,7 +129,7 @@ if (oe) {
129
129
  r.reject(l);
130
130
  }
131
131
  }
132
- }, V = {
132
+ }, X = {
133
133
  call(t, n, o, i) {
134
134
  return new Promise((r, l) => {
135
135
  const a = G();
@@ -149,7 +149,7 @@ if (oe) {
149
149
  }
150
150
  };
151
151
  }
152
- const K = q(J.System), _e = 0, Se = 1, Ee = 2, H = function() {
152
+ const K = q(J.System), _e = 0, Se = 1, Ee = 2, j = (function() {
153
153
  var e, t, n, o, i, r;
154
154
  try {
155
155
  if (!((t = (e = window.chrome) === null || e === void 0 ? void 0 : e.webview) === null || t === void 0) && t.postMessage)
@@ -166,9 +166,9 @@ const K = q(J.System), _e = 0, Se = 1, Ee = 2, H = function() {
166
166
  %cOnly UI previews are available in the browser. For full functionality, please run the application in desktop mode.
167
167
  More information at: https://v3.wails.io/learn/build/#using-a-browser-for-development
168
168
  `, "background: #ffffff; color: #000000; font-weight: bold; padding: 4px 8px; border-radius: 4px; border: 2px solid #000000;", "background: transparent;", "color: #ffffff; font-style: italic; font-weight: bold;"), null;
169
- }();
169
+ })();
170
170
  function M(e) {
171
- H == null || H(e);
171
+ j?.(e);
172
172
  }
173
173
  function Te() {
174
174
  return K(_e);
@@ -179,7 +179,7 @@ async function Ce() {
179
179
  function ze() {
180
180
  return K(Se);
181
181
  }
182
- function F() {
182
+ function P() {
183
183
  var e, t;
184
184
  return ((t = (e = window._wails) === null || e === void 0 ? void 0 : e.environment) === null || t === void 0 ? void 0 : t.OS) === "windows";
185
185
  }
@@ -203,7 +203,7 @@ function De() {
203
203
  return ce() || fe();
204
204
  }
205
205
  function Oe() {
206
- return ee() || F() || Q();
206
+ return ee() || P() || Q();
207
207
  }
208
208
  function xe() {
209
209
  var e, t;
@@ -236,7 +236,7 @@ const un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
236
236
  IsLinux: Q,
237
237
  IsMac: ee,
238
238
  IsMobile: De,
239
- IsWindows: F,
239
+ IsWindows: P,
240
240
  invoke: M
241
241
  }, Symbol.toStringTag, { value: "Module" }));
242
242
  function Le() {
@@ -311,11 +311,11 @@ const fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
311
311
  __proto__: null,
312
312
  GetFlag: z
313
313
  }, Symbol.toStringTag, { value: "Module" }));
314
- let D = !1, O = !1, X = !1, E = !1, T = !1, y = "", ie = "auto", _ = 0, x = !1;
314
+ let D = !1, O = !1, Y = !1, E = !1, T = !1, y = "", ie = "auto", _ = 0, x = !1;
315
315
  f && (x = Le(), window._wails = window._wails || {}, window._wails.setResizable = (e) => {
316
- X = e, X || (E = T = !1, w());
316
+ Y = e, Y || (E = T = !1, w());
317
317
  });
318
- let Y = !1;
318
+ let R = !1;
319
319
  function Be() {
320
320
  var e, t;
321
321
  const n = (t = (e = window._wails) === null || e === void 0 ? void 0 : e.environment) === null || t === void 0 ? void 0 : t.OS;
@@ -324,23 +324,23 @@ function Be() {
324
324
  const o = navigator.userAgent || navigator.vendor || window.opera || "";
325
325
  return /android|iphone|ipad|ipod|iemobile|wpdesktop/i.test(o);
326
326
  }
327
- function j() {
328
- if (!Y && !Be()) {
329
- window.addEventListener("mousedown", U, { capture: !0 }), window.addEventListener("mousemove", U, { capture: !0 }), window.addEventListener("mouseup", U, { capture: !0 });
327
+ function B() {
328
+ if (!R && !Be()) {
329
+ window.addEventListener("mousedown", W, { capture: !0 }), window.addEventListener("mousemove", W, { capture: !0 }), window.addEventListener("mouseup", W, { capture: !0 });
330
330
  for (const e of ["click", "contextmenu", "dblclick"])
331
331
  window.addEventListener(e, Ne, { capture: !0 });
332
- Y = !0;
332
+ R = !0;
333
333
  }
334
334
  }
335
335
  if (f) {
336
- j(), document.addEventListener("DOMContentLoaded", j, { once: !0 });
336
+ B(), document.addEventListener("DOMContentLoaded", B, { once: !0 });
337
337
  let e = 0;
338
- const t = window.setInterval(() => {
339
- if (Y) {
338
+ const t = R ? void 0 : window.setInterval(() => {
339
+ if (R) {
340
340
  window.clearInterval(t);
341
341
  return;
342
342
  }
343
- j(), ++e > 100 && window.clearInterval(t);
343
+ B(), ++e > 100 && window.clearInterval(t);
344
344
  }, 50);
345
345
  }
346
346
  function Ne(e) {
@@ -354,25 +354,25 @@ function pe(e) {
354
354
  const t = he(e);
355
355
  return window.getComputedStyle(t).getPropertyValue("--wails-draggable").trim() === "drag" && e.offsetX >= 0 && e.offsetX < t.clientWidth && e.offsetY >= 0 && e.offsetY < t.clientHeight;
356
356
  }
357
- const B = 0, Ue = 1, N = 2;
358
- function U(e) {
357
+ const N = 0, Ue = 1, U = 2;
358
+ function W(e) {
359
359
  let t, n = e.buttons;
360
360
  switch (e.type) {
361
361
  case "mousedown":
362
- t = B, x || (n = _ | 1 << e.button);
362
+ t = N, x || (n = _ | 1 << e.button);
363
363
  break;
364
364
  case "mouseup":
365
365
  t = Ue, x || (n = _ & ~(1 << e.button));
366
366
  break;
367
367
  default:
368
- t = N, x || (n = _);
368
+ t = U, x || (n = _);
369
369
  break;
370
370
  }
371
371
  let o = _ & ~n, i = n & ~_;
372
- _ = n, t === B && !(i & e.button) && (o |= 1 << e.button, i |= 1 << e.button), (t !== N && T || O && (t === B || e.button !== 0)) && (e.stopImmediatePropagation(), e.stopPropagation(), e.preventDefault()), o & 1 && Ve(), i & 1 && We(e), t === N && Ye(e);
372
+ _ = n, t === N && !(i & e.button) && (o |= 1 << e.button, i |= 1 << e.button), (t !== U && T || O && (t === N || e.button !== 0)) && (e.stopImmediatePropagation(), e.stopPropagation(), e.preventDefault()), o & 1 && Ve(), i & 1 && We(e), t === U && Ye(e);
373
373
  }
374
374
  function We(e) {
375
- if (D = !1, E = !1, !(!F() && e.type === "mousedown" && e.button === 0 && e.detail !== 1)) {
375
+ if (D = !1, E = !1, !(!P() && e.type === "mousedown" && e.button === 0 && e.detail !== 1)) {
376
376
  if (y) {
377
377
  if (e.type !== "mousedown")
378
378
  return;
@@ -403,16 +403,16 @@ function Ye(e) {
403
403
  D = E = !1;
404
404
  return;
405
405
  }
406
- if (!X || !F() && !(Q() && z("frameless"))) {
406
+ if (!Y || !P() && !(Q() && z("frameless"))) {
407
407
  y && w();
408
408
  return;
409
409
  }
410
- const t = z("system.resizeHandleHeight") || 5, n = z("system.resizeHandleWidth") || 5, o = z("resizeCornerExtra") || 10, i = Math.max(0, window.innerWidth - document.documentElement.clientWidth), r = Math.max(0, window.innerHeight - document.documentElement.clientHeight), l = window.innerWidth - i, a = window.innerHeight - r, u = e.clientX < l && l - e.clientX < n, g = e.clientX < n, c = e.clientY < t, v = e.clientY < a && a - e.clientY < t, h = e.clientX < l && l - e.clientX < n + o, m = e.clientX < n + o, P = e.clientY < t + o, A = e.clientY < a && a - e.clientY < t + o;
411
- !m && !P && !A && !h ? w() : h && A ? w("se-resize") : m && A ? w("sw-resize") : m && P ? w("nw-resize") : P && h ? w("ne-resize") : g ? w("w-resize") : c ? w("n-resize") : v ? w("s-resize") : u ? w("e-resize") : w();
410
+ const t = z("system.resizeHandleHeight") || 5, n = z("system.resizeHandleWidth") || 5, o = z("resizeCornerExtra") || 10, i = Math.max(0, window.innerWidth - document.documentElement.clientWidth), r = Math.max(0, window.innerHeight - document.documentElement.clientHeight), l = window.innerWidth - i, a = window.innerHeight - r, u = e.clientX < l && l - e.clientX < n, g = e.clientX < n, c = e.clientY < t, v = e.clientY < a && a - e.clientY < t, h = e.clientX < l && l - e.clientX < n + o, m = e.clientX < n + o, A = e.clientY < t + o, I = e.clientY < a && a - e.clientY < t + o;
411
+ !m && !A && !I && !h ? w() : h && I ? w("se-resize") : m && I ? w("sw-resize") : m && A ? w("nw-resize") : A && h ? w("ne-resize") : g ? w("w-resize") : c ? w("n-resize") : v ? w("s-resize") : u ? w("e-resize") : w();
412
412
  }
413
413
  const re = "--wails-non-client-region", Ze = "wails:runtime-config-ready", Ge = /* @__PURE__ */ new Set(["caption", "minimize", "maximize", "close"]);
414
414
  f && (window._wails = window._wails || {});
415
- let Z = !1, se = "", W = /* @__PURE__ */ new Set(), S, le = !1;
415
+ let Z = !1, se = "", V = /* @__PURE__ */ new Set(), S, le = !1;
416
416
  function ae(e) {
417
417
  const t = e.trim().toLowerCase();
418
418
  if (Ge.has(t))
@@ -463,11 +463,11 @@ function Qe(e) {
463
463
  return;
464
464
  S ?? (S = new ResizeObserver(b));
465
465
  const t = new Set(e);
466
- for (const n of W)
466
+ for (const n of V)
467
467
  t.has(n) || S.unobserve(n);
468
468
  for (const n of t)
469
- W.has(n) || S.observe(n);
470
- W = t;
469
+ V.has(n) || S.observe(n);
470
+ V = t;
471
471
  }
472
472
  function et() {
473
473
  Z = !1;
@@ -502,14 +502,14 @@ function de() {
502
502
  return n === "windows" && o === !0 && Fe(tt), !0;
503
503
  }
504
504
  f && !de() && window.addEventListener(Ze, de, { once: !0 });
505
- function R(e) {
505
+ function k(e) {
506
506
  return e;
507
507
  }
508
508
  function wn(e) {
509
509
  return e ?? "";
510
510
  }
511
511
  function hn(e) {
512
- return e === R ? (t) => t === null ? [] : t : (t) => {
512
+ return e === k ? (t) => t === null ? [] : t : (t) => {
513
513
  if (t === null)
514
514
  return [];
515
515
  for (let n = 0; n < t.length; n++)
@@ -518,7 +518,7 @@ function hn(e) {
518
518
  };
519
519
  }
520
520
  function mn(e, t) {
521
- return t === R ? (n) => n === null ? {} : n : (n) => {
521
+ return t === k ? (n) => n === null ? {} : n : (n) => {
522
522
  if (n === null)
523
523
  return {};
524
524
  for (const o in n)
@@ -527,12 +527,12 @@ function mn(e, t) {
527
527
  };
528
528
  }
529
529
  function pn(e) {
530
- return e === R ? R : (t) => t === null ? null : e(t);
530
+ return e === k ? k : (t) => t === null ? null : e(t);
531
531
  }
532
532
  const vn = {}, nt = "data-file-drop-target", p = "file-drop-target-active";
533
533
  let d = null;
534
534
  const ot = 0, it = 1, rt = 2, st = 3, lt = 4, at = 5, dt = 6, ut = 7, ct = 8, ft = 9, wt = 10, ht = 11, mt = 12, pt = 13, vt = 14, gt = 15, bt = 16, yt = 17, Mt = 18, _t = 19, St = 20, Et = 21, Tt = 22, Ct = 23, zt = 24, Dt = 25, Ot = 26, xt = 27, Rt = 28, kt = 29, Lt = 30, Ft = 31, Pt = 32, At = 33, It = 34, Ht = 35, jt = 36, Bt = 37, Nt = 38, Ut = 39, Wt = 40, Vt = 41, Xt = 42, Yt = 43, Zt = 44, Gt = 45, Jt = 46, $t = 47, qt = 48, Kt = 49, Qt = 50, en = 51, tn = 52;
535
- function k(e) {
535
+ function L(e) {
536
536
  return e ? e.closest(`[${nt}]`) : null;
537
537
  }
538
538
  function nn() {
@@ -558,11 +558,11 @@ function ln(e, t) {
558
558
  var n, o;
559
559
  if (!te || ((o = (n = window._wails) === null || n === void 0 ? void 0 : n.flags) === null || o === void 0 ? void 0 : o.enableFileDrop) === !1)
560
560
  return;
561
- const i = document.elementFromPoint(e, t), r = k(i);
561
+ const i = document.elementFromPoint(e, t), r = L(i);
562
562
  d && d !== r && d.classList.remove(p), r ? (r.classList.add(p), d = r) : d = null;
563
563
  }
564
- const s = Symbol("caller");
565
- class L {
564
+ const s = /* @__PURE__ */ Symbol("caller");
565
+ class F {
566
566
  /**
567
567
  * Initialises a window object with the specified name.
568
568
  *
@@ -571,7 +571,7 @@ class L {
571
571
  */
572
572
  constructor(t = "") {
573
573
  this[s] = q(J.Window, t);
574
- for (const n of Object.getOwnPropertyNames(L.prototype))
574
+ for (const n of Object.getOwnPropertyNames(F.prototype))
575
575
  n !== "constructor" && typeof this[n] == "function" && (this[n] = this[n].bind(this));
576
576
  }
577
577
  /**
@@ -581,7 +581,7 @@ class L {
581
581
  * @returns The corresponding window object.
582
582
  */
583
583
  Get(t) {
584
- return new L(t);
584
+ return new F(t);
585
585
  }
586
586
  /**
587
587
  * Returns the absolute position of the window.
@@ -947,7 +947,7 @@ class L {
947
947
  var i, r;
948
948
  if (((r = (i = window._wails) === null || i === void 0 ? void 0 : i.flags) === null || r === void 0 ? void 0 : r.enableFileDrop) === !1)
949
949
  return;
950
- const l = document.elementFromPoint(n, o), a = k(l);
950
+ const l = document.elementFromPoint(n, o), a = L(l);
951
951
  if (!a)
952
952
  return;
953
953
  const u = {
@@ -988,7 +988,7 @@ class L {
988
988
  return this[s](en);
989
989
  }
990
990
  }
991
- const ue = new L("");
991
+ const ue = new F("");
992
992
  function an() {
993
993
  const e = document.documentElement;
994
994
  let t = 0;
@@ -1001,7 +1001,7 @@ function an() {
1001
1001
  return;
1002
1002
  }
1003
1003
  t++;
1004
- const l = document.elementFromPoint(n.clientX, n.clientY), a = k(l);
1004
+ const l = document.elementFromPoint(n.clientX, n.clientY), a = L(l);
1005
1005
  d && d !== a && d.classList.remove(p), a ? (a.classList.add(p), n.dataTransfer.dropEffect = "copy", d = a) : (n.dataTransfer.dropEffect = "none", d = null);
1006
1006
  }, !1), e.addEventListener("dragover", (n) => {
1007
1007
  var o, i, r;
@@ -1011,7 +1011,7 @@ function an() {
1011
1011
  n.dataTransfer.dropEffect = "none";
1012
1012
  return;
1013
1013
  }
1014
- const l = document.elementFromPoint(n.clientX, n.clientY), a = k(l);
1014
+ const l = document.elementFromPoint(n.clientX, n.clientY), a = L(l);
1015
1015
  d && d !== a && d.classList.remove(p), a ? (a.classList.contains(p) || a.classList.add(p), n.dataTransfer.dropEffect = "copy", d = a) : (n.dataTransfer.dropEffect = "none", d = null);
1016
1016
  }, !1), e.addEventListener("dragleave", (n) => {
1017
1017
  var o, i, r;
@@ -1056,7 +1056,7 @@ export {
1056
1056
  mn as M,
1057
1057
  pn as N,
1058
1058
  be as R,
1059
- R as a,
1059
+ k as a,
1060
1060
  G as b,
1061
1061
  cn as c,
1062
1062
  fn as f,