function P(){}function rt(t){return t()}function ot(){return Object.create(null)}function z(t){t.forEach(rt)}function kt(t){return typeof t=="function"}function Dt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Lt(t){return Object.keys(t).length===0}function Ft(t,...e){if(t==null)return P;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Ie(t,e,n){t.$$.on_destroy.push(Ft(e,n))}function Ge(t,e){t.appendChild(e)}function Kt(t,e,n){t.insertBefore(e,n||null)}function ut(t){t.parentNode.removeChild(t)}function Je(t,e){for(let n=0;nt.removeEventListener(e,n,i)}function Qe(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ze(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function tn(t){return t===""?null:+t}function Bt(t){return Array.from(t.childNodes)}function en(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function nn(t,e){t.value=e==null?"":e}function rn(t,e,n,i){t.style.setProperty(e,n,i?"important":"")}function on(t,e){for(let n=0;n{D.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}}function hn(t){t&&t.c()}function It(t,e,n,i){const{fragment:r,on_mount:o,on_destroy:c,after_update:f}=t.$$;r&&r.m(e,n),i||N(()=>{const d=o.map(rt).filter(kt);c?c.push(...d):z(d),t.$$.on_mount=[]}),f.forEach(N)}function Gt(t,e){const n=t.$$;n.fragment!==null&&(z(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Jt(t,e){t.$$.dirty[0]===-1&&(E.push(t),qt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const g=_.length?_[0]:v;return d.ctx&&r(d.ctx[l],d.ctx[l]=g)&&(!d.skip_bound&&d.bound[l]&&d.bound[l](g),h&&Jt(t,l)),v}):[],d.update(),h=!0,z(d.before_update),d.fragment=i?i(d.ctx):!1,e.target){if(e.hydrate){const l=Bt(e.target);d.fragment&&d.fragment.l(l),l.forEach(ut)}else d.fragment&&d.fragment.c();e.intro&&Ht(t.$$.fragment),It(t,e.target,e.anchor,e.customElement),lt()}C(f)}class mn{$destroy(){Gt(this,1),this.$destroy=P}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!Lt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const S=[];function vn(t,e=P){let n;const i=[];function r(f){if(Dt(t,f)&&(t=f,n)){const d=!S.length;for(let h=0;h{const l=i.indexOf(h);l!==-1&&i.splice(l,1),i.length===0&&(n(),n=null)}}return{set:r,update:o,subscribe:c}}/*! * hotkeys-js v3.8.5 * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. * * Copyright (c) 2021 kenny wong * http://jaywcjlove.github.io/hotkeys * * Licensed under the MIT license. */var H=typeof navigator!="undefined"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function I(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on".concat(e),function(){n(window.event)})}function dt(t,e){for(var n=e.slice(0,e.length-1),i=0;i=0;)e[n-1]+=",",e.splice(n,1),n=e.lastIndexOf("");return e}function Xt(t,e){for(var n=t.length>=e.length?t:e,i=t.length>=e.length?e:t,r=!0,o=0;o=0&&p.splice(n,1),t.key&&t.key.toLowerCase()==="meta"&&p.splice(0,p.length),(e===93||e===224)&&(e=91),e in y){y[e]=!1;for(var i in O)O[i]===e&&(M[i]=!1)}}function ne(t){if(!t)Object.keys(m).forEach(function(c){return delete m[c]});else if(Array.isArray(t))t.forEach(function(c){c.key&&G(c)});else if(typeof t=="object")t.key&&G(t);else if(typeof t=="string"){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?dt(O,h):[];m[_]=m[_].map(function(b){var Ct=r?b.method===r:!0;return Ct&&b.scope===i&&Xt(b.mods,g)?{}:b})}})};function _t(t,e,n){var i;if(e.scope===n||e.scope==="all"){i=e.mods.length>0;for(var r in y)Object.prototype.hasOwnProperty.call(y,r)&&(!y[r]&&e.mods.indexOf(+r)>-1||y[r]&&e.mods.indexOf(+r)===-1)&&(i=!1);(e.mods.length===0&&!y[16]&&!y[18]&&!y[17]&&!y[91]||i||e.shortcut==="*")&&e.method(t,e)===!1&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function gt(t){var e=m["*"],n=t.keyCode||t.which||t.charCode;if(!!M.filter.call(this,t)){if((n===93||n===224)&&(n=91),p.indexOf(n)===-1&&n!==229&&p.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(g){var b=pt[g];t[g]&&p.indexOf(b)===-1?p.push(b):!t[g]&&p.indexOf(b)>-1?p.splice(p.indexOf(b),1):g==="metaKey"&&t[g]&&p.length===3&&(t.ctrlKey||t.shiftKey||t.altKey||(p=p.slice(p.indexOf(b))))}),n in y){y[n]=!0;for(var i in O)O[i]===n&&(M[i]=!0);if(!e)return}for(var r in y)Object.prototype.hasOwnProperty.call(y,r)&&(y[r]=t[pt[r]]);t.getModifierState&&!(t.altKey&&!t.ctrlKey)&&t.getModifierState("AltGraph")&&(p.indexOf(17)===-1&&p.push(17),p.indexOf(18)===-1&&p.push(18),y[17]=!0,y[18]=!0);var o=T();if(e)for(var c=0;c-1}function M(t,e,n){p=[];var i=ft(t),r=[],o="all",c=document,f=0,d=!1,h=!0,l="+";for(n===void 0&&typeof e=="function"&&(n=e),Object.prototype.toString.call(e)==="[object Object]"&&(e.scope&&(o=e.scope),e.element&&(c=e.element),e.keyup&&(d=e.keyup),e.keydown!==void 0&&(h=e.keydown),typeof e.splitKey=="string"&&(l=e.splitKey)),typeof e=="string"&&(o=e);f1&&(r=dt(O,t)),t=t[t.length-1],t=t==="*"?"*":F(t),t in m||(m[t]=[]),m[t].push({keyup:d,keydown:h,scope:o,mods:r,shortcut:i[f],method:n,key:i[f],splitKey:l});typeof c!="undefined"&&!ie(c)&&window&&(vt.push(c),I(c,"keydown",function(v){gt(v)}),I(window,"focus",function(){p=[]}),I(c,"keyup",function(v){gt(v),ee(v)}))}var J={setScope:yt,getScope:T,deleteScope:te,getPressedKeyCodes:Yt,isPressed:Zt,filter:Qt,unbind:ne};for(var X in J)Object.prototype.hasOwnProperty.call(J,X)&&(M[X]=J[X]);if(typeof window!="undefined"){var re=window.hotkeys;M.noConflict=function(t){return t&&window.hotkeys===M&&(window.hotkeys=re),M},window.hotkeys=M}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var bt=function(t,e){return(bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])})(t,e)};function Y(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}bt(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var w=function(){return(w=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])||l[0]!==6&&l[0]!==2)){c=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]=200&&this.status<300,this.headers=t.headers,this.data=t.data},Pt=function(){function t(e){this.id=e}return t.prototype.drop=function(){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,a({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})]})})},t.prototype.request=function(e){return u(this,void 0,void 0,function(){var n;return s(this,function(i){return(n=!e.responseType||e.responseType===A.JSON)&&(e.responseType=A.Text),[2,a({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(function(r){var o=new $t(r);if(n){try{o.data=JSON.parse(o.data)}catch(c){if(o.ok&&o.data==="")o.data={};else if(o.ok)throw Error("Failed to parse response `".concat(o.data,"` as JSON: ").concat(c,";\n try setting the `responseType` option to `ResponseType.Text` or `ResponseType.Binary` if the API does not return a JSON response."))}return o}return o})]})})},t.prototype.get=function(e,n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,this.request(w({method:"GET",url:e},n))]})})},t.prototype.post=function(e,n,i){return u(this,void 0,void 0,function(){return s(this,function(r){return[2,this.request(w({method:"POST",url:e,body:n},i))]})})},t.prototype.put=function(e,n,i){return u(this,void 0,void 0,function(){return s(this,function(r){return[2,this.request(w({method:"PUT",url:e,body:n},i))]})})},t.prototype.patch=function(e,n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,this.request(w({method:"PATCH",url:e},n))]})})},t.prototype.delete=function(e,n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,this.request(w({method:"DELETE",url:e},n))]})})},t}();function St(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,a({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(function(n){return new Pt(n)})]})})}var et=null;function Ae(t,e){var n;return u(this,void 0,void 0,function(){return s(this,function(i){switch(i.label){case 0:return et!==null?[3,2]:[4,St()];case 1:et=i.sent(),i.label=2;case 2:return[2,et.request(w({url:t,method:(n=e==null?void 0:e.method)!==null&&n!==void 0?n:"GET"},e))]}})})}Object.freeze({__proto__:null,getClient:St,fetch:Ae,Body:je,Client:Pt,Response:$t,get ResponseType(){return A}});var R,zt=function(t,e){this.type="Logical",this.width=t,this.height=e},nt=function(){function t(e,n){this.type="Physical",this.width=e,this.height=n}return t.prototype.toLogical=function(e){return new zt(this.width/e,this.height/e)},t}(),Et=function(t,e){this.type="Logical",this.x=t,this.y=e},it=function(){function t(e,n){this.type="Physical",this.x=e,this.y=n}return t.prototype.toLogical=function(e){return new Et(this.x/e,this.y/e)},t}();function We(){return new U(window.__TAURI__.__currentWindow.label,{skip:!0})}function Tt(){return window.__TAURI__.__windows.map(function(t){return new U(t.label,{skip:!0})})}(function(t){t[t.Critical=1]="Critical",t[t.Informational=2]="Informational"})(R||(R={}));var jt=["tauri://created","tauri://error"],At=function(){function t(e){try{this.label=e!=null?e:window.__TAURI__.__currentWindow.label}catch{this.label=""}this.listeners=Object.create(null)}return t.prototype.listen=function(e,n){return u(this,void 0,void 0,function(){var i=this;return s(this,function(r){return this._handleTauriEvent(e,n)?[2,Promise.resolve(function(){var o=i.listeners[e];o.splice(o.indexOf(n),1)})]:[2,j(e,n)]})})},t.prototype.once=function(e,n){return u(this,void 0,void 0,function(){var i=this;return s(this,function(r){return this._handleTauriEvent(e,n)?[2,Promise.resolve(function(){var o=i.listeners[e];o.splice(o.indexOf(n),1)})]:[2,Z(e,n)]})})},t.prototype.emit=function(e,n){return u(this,void 0,void 0,function(){var i,r;return s(this,function(o){if(jt.includes(e)){for(i=0,r=this.listeners[e]||[];i