var Wails=function(n){var t={};function e(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)e.d(r,i,function(t){return n[t]}.bind(null,i));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=1)}([function(n,t,e){"use strict";e.r(t),e.d(t,"AppType",(function(){return r}));var r="desktop"},function(n,t,e){"use strict";e.r(t);var r={};e.r(r),e.d(r,"Trace",(function(){return b})),e.d(r,"Print",(function(){return y})),e.d(r,"Debug",(function(){return g})),e.d(r,"Info",(function(){return m})),e.d(r,"Warning",(function(){return O})),e.d(r,"Error",(function(){return h})),e.d(r,"Fatal",(function(){return S})),e.d(r,"SetLogLevel",(function(){return E})),e.d(r,"Level",(function(){return j}));var i={};e.r(i),e.d(i,"Open",(function(){return D}));var o={};e.r(o),e.d(o,"Center",(function(){return M})),e.d(o,"SetTitle",(function(){return x})),e.d(o,"Fullscreen",(function(){return T})),e.d(o,"UnFullscreen",(function(){return I})),e.d(o,"SetSize",(function(){return J})),e.d(o,"SetPosition",(function(){return L})),e.d(o,"Hide",(function(){return A})),e.d(o,"Show",(function(){return R})),e.d(o,"Maximise",(function(){return H})),e.d(o,"Unmaximise",(function(){return _})),e.d(o,"Minimise",(function(){return F})),e.d(o,"Unminimise",(function(){return U})),e.d(o,"Close",(function(){return B}));var a={};e.r(a),e.d(a,"Open",(function(){return G})),e.d(a,"Save",(function(){return q})),e.d(a,"Message",(function(){return z}));var u={};e.r(u),e.d(u,"New",(function(){return on}));var c={};function s(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function l(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}e.r(c),e.d(c,"SetIcon",(function(){return an}));var f=function(n){for(var t=1;t0)for(var t=0;t0)var a=setTimeout((function(){i(Error("Call to "+n+" timed out. Request ID: "+o))}),e);P[o]={timeoutHandle:a,reject:i,resolve:r};try{var u={name:n,args:t,callbackID:o};p("C"+JSON.stringify(u))}catch(n){console.error(n)}}))}function N(n){var t;try{t=JSON.parse(n)}catch(t){var e="Invalid JSON passed to callback: ".concat(t.message,". Message: ").concat(n);throw g(e),new Error(e)}var r=t.callbackid,i=P[r];if(!i){var o="Callback '".concat(r,"' not registered!!!");throw console.error(o),new Error(o)}clearTimeout(i.timeoutHandle),delete P[r],t.error?i.reject(t.error):i.resolve(t.result)}function W(n){var t=[].slice.apply(arguments).slice(1);return C(".wails."+n,t)}function D(n){return p("RBO"+n)}function M(){p("Wc")}function x(n){p("WT"+n)}function T(){p("WF")}function I(){p("Wf")}function J(n,t){p("Ws:"+n+":"+t)}function L(n,t){p("Wp:"+n+":"+t)}function A(){p("WH")}function R(){p("WS")}function H(){p("WM")}function _(){p("WU")}function F(){p("Wm")}function U(){p("Wu")}function B(){p("WC")}function G(n){return W("Dialog.Open",n)}function q(n){return W("Dialog.Save",n)}function z(n){return W("Dialog.Message",n)}k=window.crypto?function(){var n=new Uint32Array(1);return window.crypto.getRandomValues(n)[0]}:function(){return 9007199254740991*Math.random()},window.backend={};var V=function n(t,e){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),e=e||-1,this.Callback=function(n){return t.apply(null,n),-1!==e&&0===(e-=1)}},K={};function Q(n,t,e){K[n]=K[n]||[];var r=new V(t,e);console.log("Pushing event listener: "+n),K[n].push(r)}function X(n,t){Q(n,t)}function Y(n,t){Q(n,t,1)}function Z(n){var t=n.name;if(K[t]){for(var e=K[t].slice(),r=0;r