mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-15 23:25:49 +01:00
# Conflicts: # v3/UNRELEASED_CHANGELOG.md # v3/internal/assetserver/bundledassets/runtime.debug.js # v3/internal/assetserver/bundledassets/runtime.js # v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/hierarchy.js # v3/internal/runtime/desktop/@wailsio/runtime/docs/assets/navigation.js # v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancelError.html # v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancellablePromise.html # v3/internal/runtime/desktop/@wailsio/runtime/docs/classes/CancelledRejectionError.html # v3/internal/runtime/desktop/@wailsio/runtime/docs/hierarchy.html
1 line
38 KiB
JavaScript
1 line
38 KiB
JavaScript
var Ge=Object.defineProperty,Tn=Object.defineProperties;var Mn=Object.getOwnPropertyDescriptors;var Ke=Object.getOwnPropertySymbols;var Sn=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable;var _e=(n,e,i)=>e in n?Ge(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i,Ye=(n,e)=>{for(var i in e||(e={}))Sn.call(e,i)&&_e(n,i,e[i]);if(Ke)for(var i of Ke(e))En.call(e,i)&&_e(n,i,e[i]);return n},Xe=(n,e)=>Tn(n,Mn(e));var p=(n,e)=>{for(var i in e)Ge(n,i,{get:e[i],enumerable:!0})};var fe={};p(fe,{Application:()=>xe,Browser:()=>ie,Call:()=>Ue,CancelError:()=>L,CancellablePromise:()=>H,CancelledRejectionError:()=>v,Clipboard:()=>ze,Create:()=>re,Dialogs:()=>te,Events:()=>le,Flags:()=>ve,IOS:()=>Ve,Screens:()=>Ne,System:()=>be,WML:()=>pe,Window:()=>E,clientId:()=>I,getTransport:()=>qe,loadOptionalScript:()=>Ze,loadOptionalStylesheet:()=>Pn,objectNames:()=>m,setTransport:()=>Qe});var pe={};p(pe,{Enable:()=>we,Reload:()=>cn});var ie={};p(ie,{OpenURL:()=>ne});var xn="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function Z(n=21){let e="",i=n|0;for(;i--;)e+=xn[Math.random()*64|0];return e}var An=window.location.origin+"/wails/runtime";var m=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}),I=Z(),K=null;function Qe(n){K=n}function qe(){return K}function u(n,e=""){return function(i,o=null){return Rn(n,i,e,o)}}async function Rn(n,e,i,o){var d,w;if(K)return K.call(n,e,i,o);let t=new URL(An),r={object:n,method:e};o!=null&&(r.args=o);let a={"x-wails-client-id":I,"Content-Type":"application/json"};i&&(a["x-wails-window-name"]=i);let l=await fetch(t,{method:"POST",headers:a,body:JSON.stringify(r)});if(!l.ok)throw new Error(await l.text());return((w=(d=l.headers.get("Content-Type"))==null?void 0:d.indexOf("application/json"))!=null?w:-1)!==-1?l.json():l.text()}var Fn=u(m.Browser),On=0;function ne(n){return Fn(On,{url:n.toString()})}var te={};p(te,{Error:()=>Vn,Info:()=>Bn,OpenFile:()=>Zn,Question:()=>oe,SaveFile:()=>Kn,Warning:()=>Hn});window._wails=window._wails||{};var kn=u(m.Dialog),Ln=0,In=1,Un=2,zn=3,jn=4,Nn=5;function S(n,e={}){return kn(n,e)}function Bn(n){return S(Ln,n)}function Hn(n){return S(In,n)}function Vn(n){return S(Un,n)}function oe(n){return S(zn,n)}function Zn(n){var e;return(e=S(jn,n))!=null?e:[]}function Kn(n){return S(Nn,n)}var le={};p(le,{Emit:()=>se,Off:()=>oi,OffAll:()=>ti,On:()=>ni,OnMultiple:()=>ae,Once:()=>ii,Types:()=>qn,WailsEvent:()=>U});var g=new Map,_=class{constructor(e,i,o){this.eventName=e,this.callback=i,this.maxCallbacks=o||-1}dispatch(e){try{this.callback(e)}catch(i){}return this.maxCallbacks===-1?!1:(this.maxCallbacks-=1,this.maxCallbacks===0)}};function $e(n){let e=g.get(n.eventName);e&&(e=e.filter(i=>i!==n),e.length===0?g.delete(n.eventName):g.set(n.eventName,e))}var re={};p(re,{Any:()=>D,Array:()=>Gn,ByteSlice:()=>_n,Events:()=>G,Map:()=>Yn,Nullable:()=>Xn,Struct:()=>Qn});function D(n){return n}function _n(n){return n==null?"":n}function Gn(n){return n===D?e=>e===null?[]:e:e=>{if(e===null)return[];for(let i=0;i<e.length;i++)e[i]=n(e[i]);return e}}function Yn(n,e){return e===D?i=>i===null?{}:i:i=>{if(i===null)return{};for(let o in i)i[o]=e(i[o]);return i}}function Xn(n){return n===D?D:e=>e===null?null:n(e)}function Qn(n){let e=!0;for(let i in n)if(n[i]!==D){e=!1;break}return e?D:i=>{for(let o in n)o in i&&(i[o]=n[o](i[o]));return i}}var G={};var qn=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",ApplicationShouldHandleReopen:"mac:ApplicationShouldHandleReopen",ApplicationWillBecomeActive:"mac:ApplicationWillBecomeActive",ApplicationWillFinishLaunching:"mac:ApplicationWillFinishLaunching",ApplicationWillHide:"mac:ApplicationWillHide",ApplicationWillResignActive:"mac:ApplicationWillResignActive",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"}),Linux:Object.freeze({ApplicationStartup:"linux:ApplicationStartup",SystemThemeChanged:"linux:SystemThemeChanged",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"}),Common:Object.freeze({ApplicationOpenedWithFile:"common:ApplicationOpenedWithFile",ApplicationStarted:"common:ApplicationStarted",ApplicationLaunchedWithUrl:"common:ApplicationLaunchedWithUrl",ThemeChanged:"common:ThemeChanged",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"})});window._wails=window._wails||{};window._wails.dispatchWailsEvent=ei;var $n=u(m.Events),Jn=0,U=class{constructor(e,i){this.name=e,this.data=i!=null?i:null}};function ei(n){let e=g.get(n.name);if(!e)return;let i=new U(n.name,n.name in G?G[n.name](n.data):n.data);"sender"in n&&(i.sender=n.sender),e=e.filter(o=>!o.dispatch(i)),e.length===0?g.delete(n.name):g.set(n.name,e)}function ae(n,e,i){let o=g.get(n)||[],t=new _(n,e,i);return o.push(t),g.set(n,o),()=>$e(t)}function ni(n,e){return ae(n,e,-1)}function ii(n,e){return ae(n,e,1)}function oi(...n){n.forEach(e=>g.delete(e))}function ti(){g.clear()}function se(n,e){return $n(Jn,new U(n,e))}function Je(){return new MouseEvent("mousedown").buttons===0}function en(){if(!EventTarget||!AbortSignal||!AbortController)return!1;let n=!0,e=new EventTarget,i=new AbortController;return e.addEventListener("test",()=>{n=!1},{signal:i.signal}),i.abort(),e.dispatchEvent(new CustomEvent("test")),n}function Y(n){var e;return n.target instanceof HTMLElement?n.target:!(n.target instanceof HTMLElement)&&n.target instanceof Node&&(e=n.target.parentElement)!=null?e:document.body}var nn=!1;document.addEventListener("DOMContentLoaded",()=>{nn=!0});function on(n){nn||document.readyState==="complete"?n():document.addEventListener("DOMContentLoaded",n)}var ri="data-file-drop-target",h="file-drop-target-active",c=null,ai=0,si=1,li=2,di=3,ci=4,mi=5,ui=6,wi=7,pi=8,fi=9,gi=10,hi=11,Wi=12,bi=13,vi=14,yi=15,Di=16,Ci=17,Pi=18,Ti=19,Mi=20,Si=21,Ei=22,xi=23,Ai=24,Ri=25,Fi=26,Oi=27,ki=28,Li=29,Ii=30,Ui=31,zi=32,ji=33,Ni=34,Bi=35,Hi=36,Vi=37,Zi=38,Ki=39,_i=40,Gi=41,Yi=42,Xi=43,Qi=44,qi=45,$i=46,Ji=47,eo=48,no=49,io=50,oo=51;function X(n){return n?n.closest("[".concat(ri,"]")):null}function to(){var n,e,i,o;return((e=(n=window.chrome)==null?void 0:n.webview)==null?void 0:e.postMessageWithAdditionalObjects)==null?!1:((o=(i=window._wails)==null?void 0:i.flags)==null?void 0:o.enableFileDrop)===!0}function ro(n,e,i){var o,t;(t=(o=window.chrome)==null?void 0:o.webview)!=null&&t.postMessageWithAdditionalObjects&&window.chrome.webview.postMessageWithAdditionalObjects("file:drop:".concat(n,":").concat(e),i)}var ce=!1;function tn(){ce=!1,c&&(c.classList.remove(h),c=null)}function rn(){var n,e;((e=(n=window._wails)==null?void 0:n.flags)==null?void 0:e.enableFileDrop)!==!1&&(ce=!0)}function an(){tn()}function sn(n,e){var t,r;if(!ce||((r=(t=window._wails)==null?void 0:t.flags)==null?void 0:r.enableFileDrop)===!1)return;let i=document.elementFromPoint(n,e),o=X(i);c&&c!==o&&c.classList.remove(h),o?(o.classList.add(h),c=o):c=null}var s=Symbol("caller"),Q=class Q{constructor(e=""){this[s]=u(m.Window,e);for(let i of Object.getOwnPropertyNames(Q.prototype))i!=="constructor"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this))}Get(e){return new Q(e)}Position(){return this[s](ai)}Center(){return this[s](si)}Close(){return this[s](li)}DisableSizeConstraints(){return this[s](di)}EnableSizeConstraints(){return this[s](ci)}Focus(){return this[s](mi)}ForceReload(){return this[s](ui)}Fullscreen(){return this[s](wi)}GetScreen(){return this[s](pi)}GetZoom(){return this[s](fi)}Height(){return this[s](gi)}Hide(){return this[s](hi)}IsFocused(){return this[s](Wi)}IsFullscreen(){return this[s](bi)}IsMaximised(){return this[s](vi)}IsMinimised(){return this[s](yi)}Maximise(){return this[s](Di)}Minimise(){return this[s](Ci)}Name(){return this[s](Pi)}OpenDevTools(){return this[s](Ti)}RelativePosition(){return this[s](Mi)}Reload(){return this[s](Si)}Resizable(){return this[s](Ei)}Restore(){return this[s](xi)}SetPosition(e,i){return this[s](Ai,{x:e,y:i})}SetAlwaysOnTop(e){return this[s](Ri,{alwaysOnTop:e})}SetBackgroundColour(e,i,o,t){return this[s](Fi,{r:e,g:i,b:o,a:t})}SetFrameless(e){return this[s](Oi,{frameless:e})}SetFullscreenButtonEnabled(e){return this[s](ki,{enabled:e})}SetMaxSize(e,i){return this[s](Li,{width:e,height:i})}SetMinSize(e,i){return this[s](Ii,{width:e,height:i})}SetRelativePosition(e,i){return this[s](Ui,{x:e,y:i})}SetResizable(e){return this[s](zi,{resizable:e})}SetSize(e,i){return this[s](ji,{width:e,height:i})}SetTitle(e){return this[s](Ni,{title:e})}SetZoom(e){return this[s](Bi,{zoom:e})}Show(){return this[s](Hi)}Size(){return this[s](Vi)}ToggleFullscreen(){return this[s](Zi)}ToggleMaximise(){return this[s](Ki)}ToggleFrameless(){return this[s](_i)}UnFullscreen(){return this[s](Gi)}UnMaximise(){return this[s](Yi)}UnMinimise(){return this[s](Xi)}Width(){return this[s](Qi)}Zoom(){return this[s](qi)}ZoomIn(){return this[s]($i)}ZoomOut(){return this[s](Ji)}ZoomReset(){return this[s](eo)}HandlePlatformFileDrop(e,i,o){var d,w;if(((w=(d=window._wails)==null?void 0:d.flags)==null?void 0:w.enableFileDrop)===!1)return;let t=document.elementFromPoint(i,o),r=X(t);if(!r)return;let a={id:r.id,classList:Array.from(r.classList),attributes:{}};for(let y=0;y<r.attributes.length;y++){let M=r.attributes[y];a.attributes[M.name]=M.value}let l={filenames:e,x:i,y:o,elementDetails:a};this[s](io,l),tn()}SnapAssist(){return this[s](no)}Print(){return this[s](oo)}},de=Q,ao=new de("");function so(){let n=document.documentElement,e=0;n.addEventListener("dragenter",i=>{var r,a,l;if(!((r=i.dataTransfer)!=null&&r.types.includes("Files")))return;if(i.preventDefault(),((l=(a=window._wails)==null?void 0:a.flags)==null?void 0:l.enableFileDrop)===!1){i.dataTransfer.dropEffect="none";return}e++;let o=document.elementFromPoint(i.clientX,i.clientY),t=X(o);c&&c!==t&&c.classList.remove(h),t?(t.classList.add(h),i.dataTransfer.dropEffect="copy",c=t):(i.dataTransfer.dropEffect="none",c=null)},!1),n.addEventListener("dragover",i=>{var r,a,l;if(!((r=i.dataTransfer)!=null&&r.types.includes("Files")))return;if(i.preventDefault(),((l=(a=window._wails)==null?void 0:a.flags)==null?void 0:l.enableFileDrop)===!1){i.dataTransfer.dropEffect="none";return}let o=document.elementFromPoint(i.clientX,i.clientY),t=X(o);c&&c!==t&&c.classList.remove(h),t?(t.classList.contains(h)||t.classList.add(h),i.dataTransfer.dropEffect="copy",c=t):(i.dataTransfer.dropEffect="none",c=null)},!1),n.addEventListener("dragleave",i=>{var o,t,r;(o=i.dataTransfer)!=null&&o.types.includes("Files")&&(i.preventDefault(),((r=(t=window._wails)==null?void 0:t.flags)==null?void 0:r.enableFileDrop)!==!1&&i.relatedTarget!==null&&(e--,(e===0||c&&!c.contains(i.relatedTarget))&&(c&&(c.classList.remove(h),c=null),e=0)))},!1),n.addEventListener("drop",i=>{var o,t,r;if((o=i.dataTransfer)!=null&&o.types.includes("Files")&&(i.preventDefault(),((r=(t=window._wails)==null?void 0:t.flags)==null?void 0:r.enableFileDrop)!==!1&&(e=0,c&&(c.classList.remove(h),c=null),to()))){let a=[];if(i.dataTransfer.items){for(let l of i.dataTransfer.items)if(l.kind==="file"){let d=l.getAsFile();d&&a.push(d)}}else if(i.dataTransfer.files)for(let l of i.dataTransfer.files)a.push(l);a.length>0&&ro(i.clientX,i.clientY,a)}},!1)}typeof window<"u"&&typeof document<"u"&&so();var E=ao;function lo(n,e=null){se(n,e)}function co(n,e){let i=E.Get(n),o=i[e];if(typeof o=="function")try{o.call(i)}catch(t){}}function ln(n){let e=n.currentTarget;function i(t="Yes"){if(t!=="Yes")return;let r=e.getAttribute("wml-event")||e.getAttribute("data-wml-event"),a=e.getAttribute("wml-target-window")||e.getAttribute("data-wml-target-window")||"",l=e.getAttribute("wml-window")||e.getAttribute("data-wml-window"),d=e.getAttribute("wml-openurl")||e.getAttribute("data-wml-openurl");r!==null&&lo(r),l!==null&&co(a,l),d!==null&&ne(d)}let o=e.getAttribute("wml-confirm")||e.getAttribute("data-wml-confirm");o?oe({Title:"Confirm",Message:o,Detached:!1,Buttons:[{Label:"Yes"},{Label:"No",IsDefault:!0}]}).then(i):i()}var z=Symbol("controller"),x=Symbol("triggerMap"),C=Symbol("elementCount"),me=class{constructor(){this[z]=new AbortController}set(e,i){return{signal:this[z].signal}}reset(){this[z].abort(),this[z]=new AbortController}},ue=class{constructor(){this[x]=new WeakMap,this[C]=0}set(e,i){return this[x].has(e)||this[C]++,this[x].set(e,i),{}}reset(){if(!(this[C]<=0)){for(let e of document.body.querySelectorAll("*")){if(this[C]<=0)break;let i=this[x].get(e);i!=null&&this[C]--;for(let o of i||[])e.removeEventListener(o,ln)}this[x]=new WeakMap,this[C]=0}}},dn=en()?new me:new ue;function mo(n){let e=/\S+/g,i=n.getAttribute("wml-trigger")||n.getAttribute("data-wml-trigger")||"click",o=[],t;for(;(t=e.exec(i))!==null;)o.push(t[0]);let r=dn.set(n,o);for(let a of o)n.addEventListener(a,ln,r)}function we(){on(cn)}function cn(){dn.reset(),document.body.querySelectorAll("[wml-event], [wml-window], [wml-openurl], [data-wml-event], [data-wml-window], [data-wml-openurl]").forEach(mo)}window.wails=fe;we();var be={};p(be,{Capabilities:()=>go,Environment:()=>ho,IsAMD64:()=>vo,IsARM:()=>yo,IsARM64:()=>Do,IsDarkMode:()=>fo,IsDebug:()=>We,IsLinux:()=>Wo,IsMac:()=>bo,IsWindows:()=>q,invoke:()=>P});var he=u(m.System),uo=0,wo=1,po=2,ge=(function(){var n,e,i,o,t,r;try{if((e=(n=window.chrome)==null?void 0:n.webview)!=null&&e.postMessage)return window.chrome.webview.postMessage.bind(window.chrome.webview);if((t=(o=(i=window.webkit)==null?void 0:i.messageHandlers)==null?void 0:o.external)!=null&&t.postMessage)return window.webkit.messageHandlers.external.postMessage.bind(window.webkit.messageHandlers.external);if((r=window.wails)!=null&&r.invoke)return a=>window.wails.invoke(typeof a=="string"?a:JSON.stringify(a))}catch(a){}return null})();function P(n){ge==null||ge(n)}function fo(){return he(uo)}async function go(){return he(po)}function ho(){return he(wo)}function q(){var n,e;return((e=(n=window._wails)==null?void 0:n.environment)==null?void 0:e.OS)==="windows"}function Wo(){var n,e;return((e=(n=window._wails)==null?void 0:n.environment)==null?void 0:e.OS)==="linux"}function bo(){var n,e;return((e=(n=window._wails)==null?void 0:n.environment)==null?void 0:e.OS)==="darwin"}function vo(){var n,e;return((e=(n=window._wails)==null?void 0:n.environment)==null?void 0:e.Arch)==="amd64"}function yo(){var n,e;return((e=(n=window._wails)==null?void 0:n.environment)==null?void 0:e.Arch)==="arm"}function Do(){var n,e;return((e=(n=window._wails)==null?void 0:n.environment)==null?void 0:e.Arch)==="arm64"}function We(){var n,e;return!!((e=(n=window._wails)==null?void 0:n.environment)!=null&&e.Debug)}window.addEventListener("contextmenu",Mo);var Co=u(m.ContextMenu),Po=0;function To(n,e,i,o){Co(Po,{id:n,x:e,y:i,data:o})}function Mo(n){let e=Y(n),i=window.getComputedStyle(e).getPropertyValue("--custom-contextmenu").trim();if(i){n.preventDefault();let o=window.getComputedStyle(e).getPropertyValue("--custom-contextmenu-data");To(i,n.clientX,n.clientY,o)}else So(n,e)}function So(n,e){if(We())return;switch(window.getComputedStyle(e).getPropertyValue("--default-contextmenu").trim()){case"show":return;case"hide":n.preventDefault();return}if(e.isContentEditable)return;let i=window.getSelection(),o=i&&i.toString().length>0;if(o)for(let t=0;t<i.rangeCount;t++){let a=i.getRangeAt(t).getClientRects();for(let l=0;l<a.length;l++){let d=a[l];if(document.elementFromPoint(d.left,d.top)===e)return}}(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(o||!e.readOnly&&!e.disabled)||n.preventDefault()}var ve={};p(ve,{GetFlag:()=>j});function j(n){try{return window._wails.flags[n]}catch(e){throw new Error("Unable to retrieve flag '"+n+"': "+e,{cause:e})}}var N=!1,B=!1,Te=!1,R=!1,F=!1,T="",mn="auto",A=0,ye=Je();window._wails=window._wails||{};window._wails.setResizable=n=>{Te=n,Te||(R=F=!1,f())};var Me=!1;function Eo(){var i,o;let n=(o=(i=window._wails)==null?void 0:i.environment)==null?void 0:o.OS;if(n==="ios"||n==="android")return!0;let e=navigator.userAgent||navigator.vendor||window.opera||"";return/android|iphone|ipad|ipod|iemobile|wpdesktop/i.test(e)}function Se(){if(!Me&&!Eo()){window.addEventListener("mousedown",Pe,{capture:!0}),window.addEventListener("mousemove",Pe,{capture:!0}),window.addEventListener("mouseup",Pe,{capture:!0});for(let n of["click","contextmenu","dblclick"])window.addEventListener(n,Ao,{capture:!0});Me=!0}}Se();document.addEventListener("DOMContentLoaded",Se,{once:!0});var xo=0,un=window.setInterval(()=>{if(Me){window.clearInterval(un);return}Se(),++xo>100&&window.clearInterval(un)},50);function Ao(n){(B||F)&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())}var De=0,Ro=1,Ce=2;function Pe(n){let e,i=n.buttons;switch(n.type){case"mousedown":e=De,ye||(i=A|1<<n.button);break;case"mouseup":e=Ro,ye||(i=A&~(1<<n.button));break;default:e=Ce,ye||(i=A);break}let o=A&~i,t=i&~A;A=i,e===De&&!(t&n.button)&&(o|=1<<n.button,t|=1<<n.button),(e!==Ce&&F||B&&(e===De||n.button!==0))&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault()),o&1&&Oo(n),t&1&&Fo(n),e===Ce&&Lo(n)}function Fo(n){if(N=!1,R=!1,!q()&&n.type==="mousedown"&&n.button===0&&n.detail!==1)return;if(T){R=!0;return}let e=Y(n),i=window.getComputedStyle(e);N=i.getPropertyValue("--wails-draggable").trim()==="drag"&&n.offsetX-parseFloat(i.paddingLeft)<e.clientWidth&&n.offsetY-parseFloat(i.paddingTop)<e.clientHeight}function Oo(n){N=!1,B=!1,R=!1,F=!1}var ko=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 f(n){n?(T||(mn=document.body.style.cursor),document.body.style.cursor=ko[n]):!n&&T&&(document.body.style.cursor=mn),T=n||""}function Lo(n){if(R&&T?(F=!0,P("wails:resize:"+T)):N&&(B=!0,P("wails:drag")),B||F){N=R=!1;return}if(!Te||!q()){T&&f();return}let e=j("system.resizeHandleHeight")||5,i=j("system.resizeHandleWidth")||5,o=j("resizeCornerExtra")||10,t=window.outerWidth-n.clientX<i,r=n.clientX<i,a=n.clientY<e,l=window.outerHeight-n.clientY<e,d=window.outerWidth-n.clientX<i+o,w=n.clientX<i+o,y=n.clientY<e+o,M=window.outerHeight-n.clientY<e+o;!w&&!y&&!M&&!d?f():d&&M?f("se-resize"):w&&M?f("sw-resize"):w&&y?f("nw-resize"):y&&d?f("ne-resize"):r?f("w-resize"):a?f("n-resize"):l?f("s-resize"):t?f("e-resize"):f()}var xe={};p(xe,{Hide:()=>jo,Quit:()=>Bo,Show:()=>No});var Ee=u(m.Application),Io=0,Uo=1,zo=2;function jo(){return Ee(Io)}function No(){return Ee(Uo)}function Bo(){return Ee(zo)}var Ue={};p(Ue,{ByID:()=>st,ByName:()=>at,Call:()=>Ie,RuntimeError:()=>Le});var pn=Function.prototype.toString,O=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Ae,$;if(typeof O=="function"&&typeof Object.defineProperty=="function")try{Ae=Object.defineProperty({},"length",{get:function(){throw $}}),$={},O(function(){throw 42},null,Ae)}catch(n){n!==$&&(O=null)}else O=null;var Ho=/^\s*class\b/,Fe=function(e){try{var i=pn.call(e);return Ho.test(i)}catch(o){return!1}},Re=function(e){try{return Fe(e)?!1:(pn.call(e),!0)}catch(i){return!1}},J=Object.prototype.toString,Vo="[object Object]",Zo="[object Function]",Ko="[object GeneratorFunction]",_o="[object HTMLAllCollection]",Go="[object HTML document.all class]",Yo="[object HTMLCollection]",Xo=typeof Symbol=="function"&&!!Symbol.toStringTag,Qo=!(0 in[,]),Oe=function(){return!1};typeof document=="object"&&(wn=document.all,J.call(wn)===J.call(document.all)&&(Oe=function(e){if((Qo||!e)&&(typeof e>"u"||typeof e=="object"))try{var i=J.call(e);return(i===_o||i===Go||i===Yo||i===Vo)&&e("")==null}catch(o){}return!1}));var wn;function qo(n){if(Oe(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;try{O(n,null,Ae)}catch(e){if(e!==$)return!1}return!Fe(n)&&Re(n)}function $o(n){if(Oe(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(Xo)return Re(n);if(Fe(n))return!1;var e=J.call(n);return e!==Zo&&e!==Ko&&!/^\[object HTML/.test(e)?!1:Re(n)}var b=O?qo:$o;var L=class extends Error{constructor(e,i){super(e,i),this.name="CancelError"}},v=class extends Error{constructor(e,i,o){super((o!=null?o:"Unhandled rejection in cancelled promise.")+" Reason: "+Jo(i),{cause:i}),this.promise=e,this.name="CancelledRejectionError"}},W=Symbol("barrier"),ke=Symbol("cancelImpl"),Wn,fn=(Wn=Symbol.species)!=null?Wn:Symbol("speciesPolyfill"),H=class n extends Promise{constructor(e,i){let o,t;if(super((d,w)=>{o=d,t=w}),this.constructor[fn]!==Promise)throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property.");let r={promise:this,resolve:o,reject:t,get oncancelled(){return i!=null?i:null},set oncancelled(d){i=d!=null?d:void 0}},a={get root(){return a},resolving:!1,settled:!1};Object.defineProperties(this,{[W]:{configurable:!1,enumerable:!1,writable:!0,value:null},[ke]:{configurable:!1,enumerable:!1,writable:!1,value:bn(r,a)}});let l=yn(r,a);try{e(vn(r,a),l)}catch(d){a.resolving||l(d)}}cancel(e){return new n(i=>{Promise.all([this[ke](new L("Promise cancelled.",{cause:e})),et(this)]).then(()=>i(),()=>i())})}cancelOn(e){return e.aborted?this.cancel(e.reason):e.addEventListener("abort",()=>{this.cancel(e.reason)},{capture:!0}),this}then(e,i,o){if(!(this instanceof n))throw new TypeError("CancellablePromise.prototype.then called on an invalid object.");if(b(e)||(e=gn),b(i)||(i=hn),e===gn&&i==hn)return new n(r=>r(this));let t={};return this[W]=t,new n((r,a)=>{super.then(l=>{var d;this[W]===t&&(this[W]=null),(d=t.resolve)==null||d.call(t);try{r(e(l))}catch(w){a(w)}},l=>{var d;this[W]===t&&(this[W]=null),(d=t.resolve)==null||d.call(t);try{r(i(l))}catch(w){a(w)}})},async r=>{try{return o==null?void 0:o(r)}finally{await this.cancel(r)}})}catch(e,i){return this.then(void 0,e,i)}finally(e,i){if(!(this instanceof n))throw new TypeError("CancellablePromise.prototype.finally called on an invalid object.");return b(e)?this.then(o=>n.resolve(e()).then(()=>o),o=>n.resolve(e()).then(()=>{throw o}),i):this.then(e,e,i)}static get[(W,ke,fn)](){return Promise}static all(e){let i=Array.from(e),o=i.length===0?n.resolve(i):new n((t,r)=>{Promise.all(i).then(t,r)},t=>ee(o,i,t));return o}static allSettled(e){let i=Array.from(e),o=i.length===0?n.resolve(i):new n((t,r)=>{Promise.allSettled(i).then(t,r)},t=>ee(o,i,t));return o}static any(e){let i=Array.from(e),o=i.length===0?n.resolve(i):new n((t,r)=>{Promise.any(i).then(t,r)},t=>ee(o,i,t));return o}static race(e){let i=Array.from(e),o=new n((t,r)=>{Promise.race(i).then(t,r)},t=>ee(o,i,t));return o}static cancel(e){let i=new n(()=>{});return i.cancel(e),i}static timeout(e,i){let o=new n(()=>{});return AbortSignal&&typeof AbortSignal=="function"&&AbortSignal.timeout&&typeof AbortSignal.timeout=="function"?AbortSignal.timeout(e).addEventListener("abort",()=>{o.cancel(i)}):setTimeout(()=>{o.cancel(i)},e),o}static sleep(e,i){return new n(o=>{setTimeout(()=>o(i),e)})}static reject(e){return new n((i,o)=>o(e))}static resolve(e){return e instanceof n?e:new n(i=>i(e))}static withResolvers(){let e={oncancelled:null};return e.promise=new n((i,o)=>{e.resolve=i,e.reject=o},i=>{var o;(o=e.oncancelled)==null||o.call(e,i)}),e}};function bn(n,e){let i;return o=>{if(e.settled||(e.settled=!0,e.reason=o,n.reject(o),Promise.prototype.then.call(n.promise,void 0,t=>{if(t!==o)throw t})),!(!e.reason||!n.oncancelled))return i=new Promise(t=>{try{t(n.oncancelled(e.reason.cause))}catch(r){Promise.reject(new v(n.promise,r,"Unhandled exception in oncancelled callback."))}}).catch(t=>{Promise.reject(new v(n.promise,t,"Unhandled rejection in oncancelled callback."))}),n.oncancelled=null,i}}function vn(n,e){return i=>{if(!e.resolving){if(e.resolving=!0,i===n.promise){if(e.settled)return;e.settled=!0,n.reject(new TypeError("A promise cannot be resolved with itself."));return}if(i!=null&&(typeof i=="object"||typeof i=="function")){let o;try{o=i.then}catch(t){e.settled=!0,n.reject(t);return}if(b(o)){try{let a=i.cancel;if(b(a)){let l=d=>{Reflect.apply(a,i,[d])};e.reason?bn(Xe(Ye({},n),{oncancelled:l}),e)(e.reason):n.oncancelled=l}}catch(a){}let t={root:e.root,resolving:!1,get settled(){return this.root.settled},set settled(a){this.root.settled=a},get reason(){return this.root.reason}},r=yn(n,t);try{Reflect.apply(o,i,[vn(n,t),r])}catch(a){r(a)}return}}e.settled||(e.settled=!0,n.resolve(i))}}}function yn(n,e){return i=>{if(!e.resolving)if(e.resolving=!0,e.settled){try{if(i instanceof L&&e.reason instanceof L&&Object.is(i.cause,e.reason.cause))return}catch(o){}Promise.reject(new v(n.promise,i))}else e.settled=!0,n.reject(i)}}function ee(n,e,i){let o=[];for(let t of e){let r;try{if(!b(t.then)||(r=t.cancel,!b(r)))continue}catch(l){continue}let a;try{a=Reflect.apply(r,t,[i])}catch(l){Promise.reject(new v(n,l,"Unhandled exception in cancel method."));continue}a&&o.push((a instanceof Promise?a:Promise.resolve(a)).catch(l=>{Promise.reject(new v(n,l,"Unhandled rejection in cancel method."))}))}return Promise.all(o)}function gn(n){return n}function hn(n){throw n}function Jo(n){try{if(n instanceof Error||typeof n!="object"||n.toString!==Object.prototype.toString)return""+n}catch(e){}try{return JSON.stringify(n)}catch(e){}try{return Object.prototype.toString.call(n)}catch(e){}return"<could not convert error to string>"}function et(n){var i;let e=(i=n[W])!=null?i:{};return"promise"in e||Object.assign(e,k()),n[W]==null&&(e.resolve(),n[W]=e),e.promise}var k=Promise.withResolvers;k&&typeof k=="function"?k=k.bind(Promise):k=function(){let n,e;return{promise:new Promise((o,t)=>{n=o,e=t}),resolve:n,reject:e}};window._wails=window._wails||{};var nt=u(m.Call),it=u(m.CancelCall),V=new Map,ot=0,tt=0,Le=class extends Error{constructor(e,i){super(e,i),this.name="RuntimeError"}};function rt(){let n;do n=Z();while(V.has(n));return n}function Ie(n){let e=rt(),i=H.withResolvers();V.set(e,{resolve:i.resolve,reject:i.reject});let o=nt(ot,Object.assign({"call-id":e},n)),t=!0;o.then(a=>{t=!1,V.delete(e),i.resolve(a)},a=>{t=!1,V.delete(e),i.reject(a)});let r=()=>(V.delete(e),it(tt,{"call-id":e}).catch(a=>{}));return i.oncancelled=()=>t?r():o.then(r),i.promise}function at(n,...e){return Ie({methodName:n,args:e})}function st(n,...e){return Ie({methodID:n,args:e})}var ze={};p(ze,{SetText:()=>ct,Text:()=>mt});var Dn=u(m.Clipboard),lt=0,dt=1;function ct(n){return Dn(lt,{text:n})}function mt(){return Dn(dt)}var Ne={};p(Ne,{GetAll:()=>ft,GetCurrent:()=>ht,GetPrimary:()=>gt});var je=u(m.Screens),ut=0,wt=1,pt=2;function ft(){return je(ut)}function gt(){return je(wt)}function ht(){return je(pt)}var Ve={};p(Ve,{Device:()=>He,Haptics:()=>Be});var Cn=u(m.IOS),Wt=0,bt=1,Be;(e=>{function n(i="medium"){return Cn(Wt,{style:i})}e.Impact=n})(Be||(Be={}));var He;(e=>{function n(){return Cn(bt)}e.Info=n})(He||(He={}));window._wails=window._wails||{};window._wails.invoke=P;window._wails.clientId=I;window._wails.handlePlatformFileDrop=E.HandlePlatformFileDrop.bind(E);window._wails.handleDragEnter=rn;window._wails.handleDragLeave=an;window._wails.handleDragOver=sn;P("wails:runtime:ready");function Ze(n){return fetch(n,{method:"HEAD"}).then(e=>{if(e.status===200){let i=document.createElement("script");i.src=n,document.head.appendChild(i)}}).catch(()=>{})}function Pn(n){return fetch(n,{method:"HEAD"}).then(e=>{if(e.status===200){let i=document.createElement("link");i.rel="stylesheet",i.href=n,document.head.appendChild(i)}}).catch(()=>{})}Ze("/wails/custom.js");Ze("/wails/init.js");Pn("/wails/init.css");export{xe as Application,ie as Browser,Ue as Call,L as CancelError,H as CancellablePromise,v as CancelledRejectionError,ze as Clipboard,re as Create,te as Dialogs,le as Events,ve as Flags,Ve as IOS,Ne as Screens,be as System,pe as WML,E as Window,I as clientId,qe as getTransport,Ze as loadOptionalScript,Pn as loadOptionalStylesheet,m as objectNames,Qe as setTransport};
|