function L(){}function zt(t){return t()}function St(){return Object.create(null)}function N(t){t.forEach(zt)}function ge(t){return typeof t=="function"}function Et(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ye(t){return Object.keys(t).length===0}function be(t,...e){if(t==null)return L;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Wn(t,e,n){t.$$.on_destroy.push(be(e,n))}function P(t,e){t.appendChild(e)}function E(t,e,n){t.insertBefore(e,n||null)}function S(t){t.parentNode.removeChild(t)}function we(t,e){for(let n=0;nt.removeEventListener(e,n,i)}function Dn(t){return function(e){return e.preventDefault(),t.call(this,e)}}function T(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Cn(t){return t===""?null:+t}function Me(t){return Array.from(t.childNodes)}function q(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ln(t,e){t.value=e==null?"":e}function Fn(t,e){for(let n=0;n{tt.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}}function Pe(t){t&&t.c()}function Ft(t,e,n,i){const{fragment:r,on_mount:o,on_destroy:u,after_update:f}=t.$$;r&&r.m(e,n),i||ct(()=>{const d=o.map(zt).filter(ge);u?u.push(...d):N(d),t.$$.on_mount=[]}),f.forEach(ct)}function xt(t,e){const n=t.$$;n.fragment!==null&&(N(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Te(t,e){t.$$.dirty[0]===-1&&(I.push(t),ke(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const g=m.length?m[0]:_;return d.ctx&&r(d.ctx[c],d.ctx[c]=g)&&(!d.skip_bound&&d.bound[c]&&d.bound[c](g),h&&Te(t,c)),_}):[],d.update(),h=!0,N(d.before_update),d.fragment=i?i(d.ctx):!1,e.target){if(e.hydrate){const c=Me(e.target);d.fragment&&d.fragment.l(c),c.forEach(S)}else d.fragment&&d.fragment.c();e.intro&&D(t.$$.fragment),Ft(t,e.target,e.anchor,e.customElement),Lt()}Y(f)}class ze{$destroy(){xt(this,1),this.$destroy=L}$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&&!ye(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const H=[];function Bn(t,e=L){let n;const i=[];function r(f){if(Et(t,f)&&(t=f,n)){const d=!H.length;for(let h=0;h{const c=i.indexOf(h);c!==-1&&i.splice(c,1),i.length===0&&(n(),n=null)}}return{set:r,update:o,subscribe:u}}/*! * 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 pt=typeof navigator!="undefined"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function mt(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on".concat(e),function(){n(window.event)})}function Kt(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 Se(t,e){for(var n=t.length>=e.length?t:e,i=t.length>=e.length?e:t,r=!0,o=0;o=0&&y.splice(n,1),t.key&&t.key.toLowerCase()==="meta"&&y.splice(0,y.length),(e===93||e===224)&&(e=91),e in A){A[e]=!1;for(var i in U)U[i]===e&&(F[i]=!1)}}function Le(t){if(!t)Object.keys(k).forEach(function(u){return delete k[u]});else if(Array.isArray(t))t.forEach(function(u){u.key&&_t(u)});else if(typeof t=="object")t.key&&_t(t);else if(typeof t=="string"){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?Kt(U,h):[];k[m]=k[m].map(function(b){var v=r?b.method===r:!0;return v&&b.scope===i&&Se(b.mods,g)?{}:b})}})};function Vt(t,e,n){var i;if(e.scope===n||e.scope==="all"){i=e.mods.length>0;for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(!A[r]&&e.mods.indexOf(+r)>-1||A[r]&&e.mods.indexOf(+r)===-1)&&(i=!1);(e.mods.length===0&&!A[16]&&!A[18]&&!A[17]&&!A[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 It(t){var e=k["*"],n=t.keyCode||t.which||t.charCode;if(!!F.filter.call(this,t)){if((n===93||n===224)&&(n=91),y.indexOf(n)===-1&&n!==229&&y.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(g){var b=Bt[g];t[g]&&y.indexOf(b)===-1?y.push(b):!t[g]&&y.indexOf(b)>-1?y.splice(y.indexOf(b),1):g==="metaKey"&&t[g]&&y.length===3&&(t.ctrlKey||t.shiftKey||t.altKey||(y=y.slice(y.indexOf(b))))}),n in A){A[n]=!0;for(var i in U)U[i]===n&&(F[i]=!0);if(!e)return}for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(A[r]=t[Bt[r]]);t.getModifierState&&!(t.altKey&&!t.ctrlKey)&&t.getModifierState("AltGraph")&&(y.indexOf(17)===-1&&y.push(17),y.indexOf(18)===-1&&y.push(18),A[17]=!0,A[18]=!0);var o=J();if(e)for(var u=0;u-1}function F(t,e,n){y=[];var i=Rt(t),r=[],o="all",u=document,f=0,d=!1,h=!0,c="+";for(n===void 0&&typeof e=="function"&&(n=e),Object.prototype.toString.call(e)==="[object Object]"&&(e.scope&&(o=e.scope),e.element&&(u=e.element),e.keyup&&(d=e.keyup),e.keydown!==void 0&&(h=e.keydown),typeof e.splitKey=="string"&&(c=e.splitKey)),typeof e=="string"&&(o=e);f1&&(r=Kt(U,t)),t=t[t.length-1],t=t==="*"?"*":nt(t),t in k||(k[t]=[]),k[t].push({keyup:d,keydown:h,scope:o,mods:r,shortcut:i[f],method:n,key:i[f],splitKey:c});typeof u!="undefined"&&!Fe(u)&&window&&(qt.push(u),mt(u,"keydown",function(_){It(_)}),mt(window,"focus",function(){y=[]}),mt(u,"keyup",function(_){It(_),Ce(_)}))}var vt={setScope:Ht,getScope:J,deleteScope:De,getPressedKeyCodes:Ee,isPressed:We,filter:$e,unbind:Le};for(var gt in vt)Object.prototype.hasOwnProperty.call(vt,gt)&&(F[gt]=vt[gt]);if(typeof window!="undefined"){var xe=window.hotkeys;F.noConflict=function(t){return t&&window.hotkeys===F&&(window.hotkeys=xe),F},window.hotkeys=F}/*! ***************************************************************************** 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 Jt=function(t,e){return(Jt=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 yt(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}Jt(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var C=function(){return(C=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])||c[0]!==6&&c[0]!==2)){u=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]=200&&this.status<300,this.headers=t.headers,this.rawHeaders=t.rawHeaders,this.data=t.data},ne=function(){function t(e){this.id=e}return t.prototype.drop=function(){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})]})})},t.prototype.request=function(e){return s(this,void 0,void 0,function(){var n;return a(this,function(i){return(n=!e.responseType||e.responseType===G.JSON)&&(e.responseType=G.Text),[2,l({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(function(r){var o=new ee(r);if(n){try{o.data=JSON.parse(o.data)}catch(u){if(o.ok&&o.data==="")o.data={};else if(o.ok)throw Error("Failed to parse response `".concat(o.data,"` as JSON: ").concat(u,";\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 s(this,void 0,void 0,function(){return a(this,function(i){return[2,this.request(C({method:"GET",url:e},n))]})})},t.prototype.post=function(e,n,i){return s(this,void 0,void 0,function(){return a(this,function(r){return[2,this.request(C({method:"POST",url:e,body:n},i))]})})},t.prototype.put=function(e,n,i){return s(this,void 0,void 0,function(){return a(this,function(r){return[2,this.request(C({method:"PUT",url:e,body:n},i))]})})},t.prototype.patch=function(e,n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,this.request(C({method:"PATCH",url:e},n))]})})},t.prototype.delete=function(e,n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,this.request(C({method:"DELETE",url:e},n))]})})},t}();function ie(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(function(n){return new ne(n)})]})})}var kt=null;function dn(t,e){var n;return s(this,void 0,void 0,function(){return a(this,function(i){switch(i.label){case 0:return kt!==null?[3,2]:[4,ie()];case 1:kt=i.sent(),i.label=2;case 2:return[2,kt.request(C({url:t,method:(n=e==null?void 0:e.method)!==null&&n!==void 0?n:"GET"},e))]}})})}Object.freeze({__proto__:null,getClient:ie,fetch:dn,Body:fn,Client:ne,Response:ee,get ResponseType(){return G}});var rt,re=function(t,e){this.type="Logical",this.width=t,this.height=e},At=function(){function t(e,n){this.type="Physical",this.width=e,this.height=n}return t.prototype.toLogical=function(e){return new re(this.width/e,this.height/e)},t}(),oe=function(t,e){this.type="Logical",this.x=t,this.y=e},Pt=function(){function t(e,n){this.type="Physical",this.x=e,this.y=n}return t.prototype.toLogical=function(e){return new oe(this.x/e,this.y/e)},t}();function hn(){return new ot(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function ue(){return window.__TAURI_METADATA__.__windows.map(function(t){return new ot(t.label,{skip:!0})})}(function(t){t[t.Critical=1]="Critical",t[t.Informational=2]="Informational"})(rt||(rt={}));var se=["tauri://created","tauri://error"],ae=function(){function t(e){this.label=e,this.listeners=Object.create(null)}return t.prototype.listen=function(e,n){return s(this,void 0,void 0,function(){var i=this;return a(this,function(r){return this._handleTauriEvent(e,n)?[2,Promise.resolve(function(){var o=i.listeners[e];o.splice(o.indexOf(n),1)})]:[2,wt(e,this.label,n)]})})},t.prototype.once=function(e,n){return s(this,void 0,void 0,function(){var i=this;return a(this,function(r){return this._handleTauriEvent(e,n)?[2,Promise.resolve(function(){var o=i.listeners[e];o.splice(o.indexOf(n),1)})]:[2,Zt(e,this.label,n)]})})},t.prototype.emit=function(e,n){return s(this,void 0,void 0,function(){var i,r;return a(this,function(o){if(se.includes(e)){for(i=0,r=this.listeners[e]||[];iR(M[p],1,1,()=>{M[p]=null});let j=!t[3]&&me(),z=!t[3]&&t[8]&&_e();return{c(){e=$("span"),n=$("span"),i=W(t[6]),r=V(),o=$("ul");for(let p=0;p{c[b]=null}),ht(),o=c[r],o?o.p(m,g):(o=c[r]=h[r](m),o.c()),D(o,1),o.m(e,u))},i(m){f||(D(o),f=!0)},o(m){R(o),f=!1},d(m){m&&S(e),d&&d.d(),c[r].d()}}}function me(t){let e;return{c(){e=$("span"),e.textContent=",",T(e,"class","comma svelte-gbh3pt")},m(n,i){E(n,e,i)},d(n){n&&S(e)}}}function _e(t){let e;return{c(){e=$("span"),e.textContent=",",T(e,"class","comma svelte-gbh3pt")},m(n,i){E(n,e,i)},d(n){n&&S(e)}}}function zn(t){let e,n,i=t[5].length&&fe(t);return{c(){i&&i.c(),e=$t()},m(r,o){i&&i.m(r,o),E(r,e,o),n=!0},p(r,[o]){r[5].length?i?(i.p(r,o),o&32&&D(i,1)):(i=fe(r),i.c(),D(i,1),i.m(e.parentNode,e)):i&&(dt(),R(i,1,1,()=>{i=null}),ht())},i(r){n||(D(i),n=!0)},o(r){R(i),n=!1},d(r){i&&i.d(r),r&&S(e)}}}const Sn="...";function En(t,e,n){let{json:i}=e,{depth:r=1/0}=e,{_lvl:o=0}=e,{_last:u=!0}=e;const f=v=>v===null?"null":typeof v;let d,h,c,_,m;const g=v=>{switch(f(v)){case"string":return`"${v}"`;case"function":return"f () {...}";case"symbol":return v.toString();default:return v}},b=()=>{n(8,m=!m)};return t.$$set=v=>{"json"in v&&n(0,i=v.json),"depth"in v&&n(1,r=v.depth),"_lvl"in v&&n(2,o=v._lvl),"_last"in v&&n(3,u=v._last)},t.$$.update=()=>{t.$$.dirty&17&&(n(5,d=f(i)==="object"?Object.keys(i):[]),n(4,h=Array.isArray(i)),n(6,c=h?"[":"{"),n(7,_=h?"]":"}")),t.$$.dirty&6&&n(8,m=r