diff --git a/build/darwin/Info.plist b/build/darwin/Info.plist index 23890f3..c1d9343 100644 --- a/build/darwin/Info.plist +++ b/build/darwin/Info.plist @@ -14,5 +14,6 @@ LSApplicationCategoryTypepublic.app-category.utilities NSHighResolutionCapabletrue NSHumanReadableCopyrightLicensed Under the GPLv3 + ITSAppUsesNonExemptEncryption \ No newline at end of file diff --git a/frontend/dist/assets/images/copy-regular.svg b/frontend/dist/assets/images/copy-regular.svg new file mode 100644 index 0000000..9f9d337 --- /dev/null +++ b/frontend/dist/assets/images/copy-regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/dist/bundle.js b/frontend/dist/bundle.js index d1aad59..2211a83 100644 --- a/frontend/dist/bundle.js +++ b/frontend/dist/bundle.js @@ -1,2 +1,2 @@ -var app=function(){"use strict";function t(){}const e=t=>t;function o(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(o)}function i(t){return"function"==typeof t}function a(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e,o,r){return t[1]&&r?function(t,e){for(const o in e)t[o]=e[o];return t}(o.ctx.slice(),t[1](r(e))):o.ctx}function c(t,e,o,r,n,i,a){const c=function(t,e,o,r){if(t[2]&&r){const n=t[2](r(o));if(void 0===e.dirty)return n;if("object"==typeof n){const t=[],o=Math.max(e.dirty.length,n.length);for(let r=0;rwindow.performance.now():()=>Date.now(),p=l?t=>requestAnimationFrame(t):t;const g=new Set;function u(t){g.forEach((e=>{e.c(t)||(g.delete(e),e.f())})),0!==g.size&&p(u)}function w(t){let e;return 0===g.size&&p(u),{promise:new Promise((o=>{g.add(e={c:t,f:o})})),abort(){g.delete(e)}}}let m=!1;function b(t,e,o,r){for(;t>1);o(n)<=r?t=n+1:e=n}return t}function h(t,e){m?(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;const e=t.childNodes,o=new Int32Array(e.length+1),r=new Int32Array(e.length);o[0]=-1;let n=0;for(let t=0;te[o[t]].claim_order),e[t].claim_order)-1;r[t]=o[i]+1;const a=i+1;o[a]=t,n=Math.max(a,n)}const i=[],a=[];let s=e.length-1;for(let t=o[n]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,o=0;e=i[o].claim_order;)o++;const r=ot.removeEventListener(e,o,r)}function C(t,e,o){null==o?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o)}function A(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function F(t,e){t.value=null==e?"":e}const _=new Set;let E,z=0;function j(t,e,o,r,n,i,a,s=0){const c=16.666/r;let l="{\n";for(let t=0;t<=1;t+=c){const r=e+(o-e)*i(t);l+=100*t+`%{${a(r,1-r)}}\n`}const d=l+`100% {${a(o,1-o)}}\n}`,p=`__svelte_${function(t){let e=5381,o=t.length;for(;o--;)e=(e<<5)-e^t.charCodeAt(o);return e>>>0}(d)}_${s}`,g=t.ownerDocument;_.add(g);const u=g.__svelte_stylesheet||(g.__svelte_stylesheet=g.head.appendChild(y("style")).sheet),w=g.__svelte_rules||(g.__svelte_rules={});w[p]||(w[p]=!0,u.insertRule(`@keyframes ${p} ${d}`,u.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${p} ${r}ms linear ${n}ms 1 both`,z+=1,p}function O(t,e){const o=(t.style.animation||"").split(", "),r=o.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),n=o.length-r.length;n&&(t.style.animation=r.join(", "),z-=n,z||p((()=>{z||(_.forEach((t=>{const e=t.__svelte_stylesheet;let o=e.cssRules.length;for(;o--;)e.deleteRule(o);t.__svelte_rules={}})),_.clear())})))}function U(t){E=t}function P(t){(function(){if(!E)throw new Error("Function called outside component initialization");return E})().$$.on_mount.push(t)}const D=[],R=[],G=[],N=[],M=Promise.resolve();let B=!1;function I(t){G.push(t)}let L=!1;const T=new Set;function q(){if(!L){L=!0;do{for(let t=0;t{V=null}))),V}function J(t,e,o){t.dispatchEvent(function(t,e){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,!1,!1,e),o}(`${e?"intro":"outro"}${o}`))}const Q=new Set;let K;function X(){K={r:0,c:[],p:K}}function Y(){K.r||n(K.c),K=K.p}function Z(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function tt(t,e,o,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),K.c.push((()=>{Q.delete(t),r&&(o&&t.d(1),r())})),t.o(e)}}const et={duration:0};function ot(o,r,n){let a,s,c=r(o,n),l=!1,p=0;function g(){a&&O(o,a)}function u(){const{delay:r=0,duration:n=300,easing:i=e,tick:u=t,css:m}=c||et;m&&(a=j(o,0,1,n,r,i,m,p++)),u(0,1);const b=d()+r,h=b+n;s&&s.abort(),l=!0,I((()=>J(o,!0,"start"))),s=w((t=>{if(l){if(t>=h)return u(1,0),J(o,!0,"end"),g(),l=!1;if(t>=b){const e=i((t-b)/n);u(e,1-e)}}return l}))}let m=!1;return{start(){m||(O(o),i(c)?(c=c(),H().then(u)):u())},invalidate(){m=!1},end(){l&&(g(),l=!1)}}}function rt(o,r,a,s){let c=r(o,a),l=s?0:1,p=null,g=null,u=null;function m(){u&&O(o,u)}function b(t,e){const o=t.b-l;return e*=Math.abs(o),{a:l,b:t.b,d:o,duration:e,start:t.start,end:t.start+e,group:t.group}}function h(r){const{delay:i=0,duration:a=300,easing:s=e,tick:h=t,css:f}=c||et,x={start:d()+i,b:r};r||(x.group=K,K.r+=1),p||g?g=x:(f&&(m(),u=j(o,l,r,a,i,s,f)),r&&h(0,1),p=b(x,a),I((()=>J(o,r,"start"))),w((t=>{if(g&&t>g.start&&(p=b(g,a),g=null,J(o,p.b,"start"),f&&(m(),u=j(o,l,p.b,p.duration,0,s,c.css))),p)if(t>=p.end)h(l=p.b,1-l),J(o,p.b,"end"),g||(p.b?m():--p.group.r||n(p.group.c)),p=null;else if(t>=p.start){const e=t-p.start;l=p.a+p.d*s(e/p.duration),h(l,1-l)}return!(!p&&!g)})))}return{run(t){i(c)?H().then((()=>{c=c(),h(t)})):h(t)},end(){m(),p=g=null}}}function nt(t){t&&t.c()}function it(t,e,r,a){const{fragment:s,on_mount:c,on_destroy:l,after_update:d}=t.$$;s&&s.m(e,r),a||I((()=>{const e=c.map(o).filter(i);l?l.push(...e):n(e),t.$$.on_mount=[]})),d.forEach(I)}function at(t,e){const o=t.$$;null!==o.fragment&&(n(o.on_destroy),o.fragment&&o.fragment.d(e),o.on_destroy=o.fragment=null,o.ctx=[])}function st(t,e){-1===t.$$.dirty[0]&&(D.push(t),B||(B=!0,M.then(q)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const n=r.length?r[0]:o;return p.ctx&&s(p.ctx[t],p.ctx[t]=n)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](n),g&&st(e,t)),o})):[],p.update(),g=!0,n(p.before_update),p.fragment=!!a&&a(p.ctx),o.target){if(o.hydrate){m=!0;const t=function(t){return Array.from(t.childNodes)}(o.target);p.fragment&&p.fragment.l(t),t.forEach(x)}else p.fragment&&p.fragment.c();o.intro&&Z(e.$$.fragment),it(e,o.target,o.anchor,o.customElement),m=!1,q()}U(d)}class lt{$destroy(){at(this,1),this.$destroy=t}$on(t,e){const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(e),()=>{const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function dt(t){const e=t-1;return e*e*e+1}function pt(t,{delay:e=0,duration:o=400,easing:r=dt}={}){const n=getComputedStyle(t),i=+n.opacity,a=parseFloat(n.height),s=parseFloat(n.paddingTop),c=parseFloat(n.paddingBottom),l=parseFloat(n.marginTop),d=parseFloat(n.marginBottom),p=parseFloat(n.borderTopWidth),g=parseFloat(n.borderBottomWidth);return{delay:e,duration:o,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*i};height: ${t*a}px;padding-top: ${t*s}px;padding-bottom: ${t*c}px;margin-top: ${t*l}px;margin-bottom: ${t*d}px;border-top-width: ${t*p}px;border-bottom-width: ${t*g}px;`}}window.wailsbindings={main:{App:{AppInstalledFromPackageManager:{name:"main.App.AppInstalledFromPackageManager",outputs:[{type:"bool"}]},CancelWormholeRequest:{name:"main.App.CancelWormholeRequest"},ClearSelectedFiles:{name:"main.App.ClearSelectedFiles"},GetCurrentVersion:{name:"main.App.GetCurrentVersion",outputs:[{type:"string"}]},GetLogPath:{name:"main.App.GetLogPath",outputs:[{type:"string"}]},GetReceivedFile:{name:"main.App.GetReceivedFile",outputs:[{type:"string"}]},GetSelectedFiles:{name:"main.App.GetSelectedFiles",outputs:[{type:"[]string"}]},GetUserPrefs:{name:"main.App.GetUserPrefs",outputs:[{type:"settings.UserSettings"}]},OpenDirectoryDialog:{name:"main.App.OpenDirectoryDialog",outputs:[{type:"[]string"},{type:"error"}]},OpenFile:{name:"main.App.OpenFile",inputs:[{type:"string"}]},OpenFilesDialog:{name:"main.App.OpenFilesDialog",outputs:[{type:"[]string"},{type:"error"}]},PersistUserSettings:{name:"main.App.PersistUserSettings"},ReceiveFile:{name:"main.App.ReceiveFile",inputs:[{type:"string"}]},SelectedFilesSend:{name:"main.App.SelectedFilesSend"},SendDirectory:{name:"main.App.SendDirectory",inputs:[{type:"string"}]},SendFile:{name:"main.App.SendFile",inputs:[{type:"string"}]},SetDownloadsFolder:{name:"main.App.SetDownloadsFolder",outputs:[{type:"string"}]},SetNotificationsParam:{name:"main.App.SetNotificationsParam",inputs:[{type:"bool"}],outputs:[{type:"bool"}]},SetOverwriteParam:{name:"main.App.SetOverwriteParam",inputs:[{type:"bool"}],outputs:[{type:"bool"}]},SetSelfUpdateParam:{name:"main.App.SetSelfUpdateParam",inputs:[{type:"bool"}],outputs:[{type:"bool"}]},ShowErrorDialog:{name:"main.App.ShowErrorDialog",inputs:[{type:"string"}]},UpdateCheckUI:{name:"main.App.UpdateCheckUI"},UpdateSendProgress:{name:"main.App.UpdateSendProgress",inputs:[{type:"int64"},{type:"int64"}]}}}};const gt={App:{AppInstalledFromPackageManager:()=>window.go.main.App.AppInstalledFromPackageManager(),CancelWormholeRequest:()=>window.go.main.App.CancelWormholeRequest(),ClearSelectedFiles:()=>window.go.main.App.ClearSelectedFiles(),GetCurrentVersion:()=>window.go.main.App.GetCurrentVersion(),GetLogPath:()=>window.go.main.App.GetLogPath(),GetReceivedFile:()=>window.go.main.App.GetReceivedFile(),GetSelectedFiles:()=>window.go.main.App.GetSelectedFiles(),GetUserPrefs:()=>window.go.main.App.GetUserPrefs(),OpenDirectoryDialog:()=>window.go.main.App.OpenDirectoryDialog(),OpenFile:t=>window.go.main.App.OpenFile(t),OpenFilesDialog:()=>window.go.main.App.OpenFilesDialog(),PersistUserSettings:()=>window.go.main.App.PersistUserSettings(),ReceiveFile:t=>window.go.main.App.ReceiveFile(t),SelectedFilesSend:()=>window.go.main.App.SelectedFilesSend(),SendDirectory:t=>window.go.main.App.SendDirectory(t),SendFile:t=>window.go.main.App.SendFile(t),SetDownloadsFolder:()=>window.go.main.App.SetDownloadsFolder(),SetNotificationsParam:t=>window.go.main.App.SetNotificationsParam(t),SetOverwriteParam:t=>window.go.main.App.SetOverwriteParam(t),SetSelfUpdateParam:t=>window.go.main.App.SetSelfUpdateParam(t),ShowErrorDialog:t=>window.go.main.App.ShowErrorDialog(t),UpdateCheckUI:()=>window.go.main.App.UpdateCheckUI(),UpdateSendProgress:(t,e)=>window.go.main.App.UpdateSendProgress(t,e)}};function ut(t){let e,o,r,n,i,a,l,d,p,g,u,w,m,b,v,S;const F=t[3].default,_=function(t,e,o,r){if(t){const n=s(t,e,o,r);return t[0](n)}}(F,t,t[2],null);return{c(){e=y("div"),o=y("div"),r=y("div"),n=y("span"),i=k(t[0]),a=$(),l=y("span"),d=k(t[1]),p=k("%"),g=$(),u=y("div"),w=y("div"),b=$(),_&&_.c(),C(n,"class","text-base text-gray-100 font-medium"),C(l,"class","text-sm font-medium text-gray-100"),C(r,"class","mb-1 flex justify-between"),C(w,"class","bg-green-500 h-4 rounded-full animate-pulse"),C(w,"style",m="width: "+t[1].toString()+"%"),C(u,"class","w-full bg-green-900 rounded-full h-4 shadow-inner"),C(o,"class","progress-inner"),C(e,"class","progress-outer")},m(t,s){f(t,e,s),h(e,o),h(o,r),h(r,n),h(n,i),h(r,a),h(r,l),h(l,d),h(l,p),h(o,g),h(o,u),h(u,w),h(o,b),_&&_.m(o,null),S=!0},p(t,[e]){(!S||1&e)&&A(i,t[0]),(!S||2&e)&&A(d,t[1]),(!S||2&e&&m!==(m="width: "+t[1].toString()+"%"))&&C(w,"style",m),_&&_.p&&(!S||4&e)&&c(_,F,t,t[2],S?e:-1,null,null)},i(t){S||(Z(_,t),I((()=>{v||(v=rt(e,pt,{},!0)),v.run(1)})),S=!0)},o(t){tt(_,t),v||(v=rt(e,pt,{},!1)),v.run(0),S=!1},d(t){t&&x(e),_&&_.d(t),t&&v&&v.end()}}}function wt(t,e,o){let{$$slots:r={},$$scope:n}=e,{status:i=waiting}=e,{percent:a=0}=e;return t.$$set=t=>{"status"in t&&o(0,i=t.status),"percent"in t&&o(1,a=t.percent),"$$scope"in t&&o(2,n=t.$$scope)},[i,a,n,r]}class mt extends lt{constructor(t){super(),ct(this,t,wt,ut,a,{status:0,percent:1})}}function bt(t,e,o){const r=t.slice();return r[11]=e[o],r[13]=o,r}function ht(t){let e,o,r,i,a,s,c,l,d,p,g,u;return{c(){e=y("div"),o=y("div"),r=y("span"),r.textContent="Send Files",i=$(),a=y("button"),s=$(),c=y("div"),l=y("span"),l.textContent="Send Directory",d=$(),p=y("button"),C(r,"class","tooltip"),C(a,"class","file-select-icon"),a.disabled=t[4],C(o,"class","has-tooltip"),C(l,"class","tooltip"),C(p,"class","folder-select-icon"),p.disabled=t[4],C(c,"class","has-tooltip"),C(e,"class","flex flex-row items-center content-center justify-around place-items-center h-full")},m(n,w){f(n,e,w),h(e,o),h(o,r),h(o,i),h(o,a),h(e,s),h(e,c),h(c,l),h(c,d),h(c,p),g||(u=[S(a,"click",t[7]),S(p,"click",t[6])],g=!0)},p(t,e){16&e&&(a.disabled=t[4]),16&e&&(p.disabled=t[4])},d(t){t&&x(e),g=!1,n(u)}}}function ft(t){let e,o=t[5],r=[];for(let e=0;e{i=ot(o,pt,{duration:200}),i.start()})),l||I((()=>{l=ot(s,pt,{duration:200}),l.start()}))},o:t,d(t){t&&x(o),t&&x(a),t&&x(s),d=!1,n(p)}}}function $t(t){let e,o;return e=new mt({props:{percent:t[3],status:t[2],$$slots:{default:[Ct]},$$scope:{ctx:t}}}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},p(t,o){const r={};8&o&&(r.percent=t[3]),4&o&&(r.status=t[2]),16386&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function St(t){let e,o,r,n,i,a,s,c,l,d;return{c(){e=y("div"),o=y("label"),o.textContent="Send Code",r=$(),n=y("input"),i=$(),a=y("button"),a.textContent="📄",C(o,"for","sendCode"),C(o,"class","send-input-label"),C(n,"id","sendCode"),n.readOnly=!0,C(n,"type","text"),C(n,"placeholder","Send code will appear"),n.value=t[1],C(n,"class","send-input mt-1"),C(a,"class","send-button"),C(e,"class","mx-auto mt-2")},m(t,s){f(t,e,s),h(e,o),h(e,r),h(e,n),h(e,i),h(e,a),c=!0,l||(d=S(a,"click",Ft),l=!0)},p(t,e){(!c||2&e&&n.value!==t[1])&&(n.value=t[1])},i(t){c||(I((()=>{s||(s=rt(e,pt,{},!0)),s.run(1)})),c=!0)},o(t){s||(s=rt(e,pt,{},!1)),s.run(0),c=!1},d(t){t&&x(e),t&&s&&s.end(),l=!1,d()}}}function Ct(t){let e,o,r,n,i,a,s=t[1]&&St(t);return{c(){e=y("div"),o=y("button"),o.textContent="Cancel",r=$(),s&&s.c(),C(o,"class","my-2 mx-auto cancel-button"),C(e,"class","container grid")},m(c,l){f(c,e,l),h(e,o),h(e,r),s&&s.m(e,null),n=!0,i||(a=S(o,"click",t[9]),i=!0)},p(t,o){t[1]?s?(s.p(t,o),2&o&&Z(s,1)):(s=St(t),s.c(),Z(s,1),s.m(e,null)):s&&(X(),tt(s,1,1,(()=>{s=null})),Y())},i(t){n||(Z(s),n=!0)},o(t){tt(s),n=!1},d(t){t&&x(e),s&&s.d(),i=!1,a()}}}function At(t){let e,o,r,n,i,a;function s(t,e){return t[0].length>0?ft:ht}let c=s(t),l=c(t),d=t[0].length>0&&kt(t),p=t[4]&&$t(t);return{c(){e=y("div"),o=y("div"),l.c(),r=$(),n=y("div"),d&&d.c(),i=$(),p&&p.c(),C(o,"class","border-2 border-green-300 rounded-md shadow-md w-72 h-56 p-2 mx-auto cursor-fix send-icon-container"),C(n,"class","p-2 mx-auto"),C(e,"class","flex flex-col justify-items-center content-center m-2")},m(t,s){f(t,e,s),h(e,o),l.m(o,null),h(e,r),h(e,n),d&&d.m(n,null),h(e,i),p&&p.m(e,null),a=!0},p(t,[r]){c===(c=s(t))&&l?l.p(t,r):(l.d(1),l=c(t),l&&(l.c(),l.m(o,null))),t[0].length>0?d?(d.p(t,r),1&r&&Z(d,1)):(d=kt(t),d.c(),Z(d,1),d.m(n,null)):d&&(d.d(1),d=null),t[4]?p?(p.p(t,r),16&r&&Z(p,1)):(p=$t(t),p.c(),Z(p,1),p.m(e,null)):p&&(X(),tt(p,1,1,(()=>{p=null})),Y())},i(t){a||(Z(d),Z(p),a=!0)},o(t){tt(p),a=!1},d(t){t&&x(e),l.d(),d&&d.d(),p&&p.d()}}}function Ft(){var t=document.getElementById("sendCode");t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value)}function _t(t,e,o){let r;String.prototype.trimEllip=function(t){return this.length>t?this.substring(0,t)+"...":this};let n="",i="waiting",a=0,s=[],c=!1;return window.runtime.EventsOn("send:started",(function(t){o(1,n=t)})),window.runtime.EventsOn("send:updated",(function(t){o(3,a=t),"transferring"!=i&&o(2,i="transferring")})),window.runtime.EventsOn("send:status",(function(t){o(2,i=t),"completed"!=t&&"failed"!=t||setTimeout((()=>{o(4,c=!1),o(1,n="")}),500)})),P((()=>{gt.App.GetSelectedFiles().then((t=>{t&&t.length>0&&o(0,s=t)}))})),t.$$.update=()=>{1&t.$$.dirty&&o(5,r=s.map((t=>t.split("\\").pop().split("/").pop().trimEllip(30))))},[s,n,i,a,c,r,function(){gt.App.OpenDirectoryDialog().then((t=>{o(0,s=null!=t?t:[])})).catch((t=>{console.log(t)}))},function(){gt.App.OpenFilesDialog().then((t=>{o(0,s=null!=t?t:[])})).catch((t=>{console.log(t)}))},function(){o(1,n=""),o(2,i="waiting"),o(3,a=0),o(0,s=[]),o(4,c=!1),gt.App.ClearSelectedFiles()},function(){gt.App.CancelWormholeRequest().then((()=>{o(4,c=!1),o(1,n=""),o(2,i="waiting"),o(3,a=0)})).catch((t=>{console.log(t)}))},function(){gt.App.SelectedFilesSend(),o(4,c=!0)}]}class Et extends lt{constructor(t){super(),ct(this,t,_t,At,a,{})}}function zt(t){let e,o,r,n,i,a,s=!t[4]&&jt(t);return{c(){e=y("div"),o=y("div"),r=$(),n=y("span"),i=k(t[6]),a=$(),s&&s.c(),C(o,"class","icon-lg receive-file-icon"),C(n,"class","text-gray-200"),C(e,"class","flex flex-col justify-center items-center space-y-2 bg-gray-800 rounded-md bg-opacity-60 h-full")},m(t,c){f(t,e,c),h(e,o),h(e,r),h(e,n),h(n,i),h(e,a),s&&s.m(e,null)},p(t,o){64&o&&A(i,t[6]),t[4]?s&&(s.d(1),s=null):s?s.p(t,o):(s=jt(t),s.c(),s.m(e,null))},d(t){t&&x(e),s&&s.d()}}}function jt(e){let o,r,n;return{c(){o=y("button"),o.textContent="Open",C(o,"class","open-button text-sm")},m(t,i){f(t,o,i),r||(n=S(o,"click",e[8]),r=!0)},p:t,d(t){t&&x(o),r=!1,n()}}}function Ot(t){let e,o;return e=new mt({props:{percent:t[3],status:t[2],$$slots:{default:[Ut]},$$scope:{ctx:t}}}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},p(t,o){const r={};8&o&&(r.percent=t[3]),4&o&&(r.status=t[2]),2048&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Ut(e){let o,r,n,i;return{c(){o=y("div"),r=y("button"),r.textContent="Cancel",C(r,"class","my-2 mx-auto cancel-button"),C(o,"class","container grid")},m(t,a){f(t,o,a),h(o,r),n||(i=S(r,"click",e[9]),n=!0)},p:t,d(t){t&&x(o),n=!1,i()}}}function Pt(t){let e,o,r,i,a,s,c,l,d,p,g,u,w,m,b,v,A=t[1]&&zt(t),_=t[4]&&Ot(t);return{c(){e=y("div"),o=y("div"),A&&A.c(),r=$(),i=y("div"),a=y("form"),s=y("label"),s.textContent="Receive Code",c=$(),l=y("input"),d=$(),p=y("button"),g=k("Download"),w=$(),_&&_.c(),C(o,"class","border-2 border-green-300 rounded-md shadow-md w-72 h-56 p-2 mx-auto receive-icon-container"),C(s,"for","receiveCode"),C(s,"class","receive-input-label"),C(l,"id","receiveCode"),C(l,"type","text"),C(l,"placeholder","eg. 5-component-button"),C(l,"class","receive-input"),C(p,"class","receive-button"),C(p,"type","submit"),p.disabled=u=!t[5],C(a,"autocomplete","off"),C(i,"class","p-2 mx-auto"),C(e,"class","flex flex-col justify-items-center content-center m-2")},m(n,u){var x;f(n,e,u),h(e,o),A&&A.m(o,null),h(e,r),h(e,i),h(i,a),h(a,s),h(a,c),h(a,l),F(l,t[0]),h(a,d),h(a,p),h(p,g),h(e,w),_&&_.m(e,null),m=!0,b||(v=[S(l,"input",t[10]),S(a,"submit",(x=t[7],function(t){return t.preventDefault(),x.call(this,t)}))],b=!0)},p(t,[r]){t[1]?A?A.p(t,r):(A=zt(t),A.c(),A.m(o,null)):A&&(A.d(1),A=null),1&r&&l.value!==t[0]&&F(l,t[0]),(!m||32&r&&u!==(u=!t[5]))&&(p.disabled=u),t[4]?_?(_.p(t,r),16&r&&Z(_,1)):(_=Ot(t),_.c(),Z(_,1),_.m(e,null)):_&&(X(),tt(_,1,1,(()=>{_=null})),Y())},i(t){m||(Z(_),m=!0)},o(t){tt(_),m=!1},d(t){t&&x(e),A&&A.d(),_&&_.d(),b=!1,n(v)}}}const Dt=/\d+\-\w+\-\w+/;function Rt(t,e,o){let r,n,i="",a="waiting",s=0,c=!1,l="";return String.prototype.trimEllip=function(t){return this.length>t?this.substring(0,t)+"...":this},window.runtime.EventsOn("receive:updated",(function(t){o(3,s=t)})),window.runtime.EventsOn("receive:started",(function(){o(4,c=!0)})),window.runtime.EventsOn("receive:path",(function(t){o(1,l=t)})),window.runtime.EventsOn("receive:status",(function(t){o(2,a=t),"completed"==t&&setTimeout((()=>{o(4,c=!1)}),500)})),P((()=>{gt.App.GetReceivedFile().then((t=>{t&&o(1,l=t)}))})),t.$$.update=()=>{1&t.$$.dirty&&o(5,r=Dt.test(i)),2&t.$$.dirty&&o(6,n=l.split("\\").pop().split("/").pop().trimEllip(24))},[i,l,a,s,c,r,n,function(){gt.App.ReceiveFile(i)},function(){gt.App.OpenFile(l)},function(){gt.App.CancelWormholeRequest().then((()=>{o(4,c=!1),o(0,i=""),o(2,a="waiting"),o(3,s=0),o(1,l="")})).catch((t=>{console.log(t)}))},function(){i=this.value,o(0,i)}]}class Gt extends lt{constructor(t){super(),ct(this,t,Rt,Pt,a,{})}}function Nt(t){let e,o,r,n,i;return{c(){e=y("label"),e.textContent="Auto Update Enabled",o=$(),r=y("input"),C(e,"class","text-sm"),C(e,"for","selfUpdate"),C(r,"class","checkbox"),C(r,"type","checkbox"),C(r,"id","selfUpdate"),C(r,"name","selfUpdate"),r.checked=t[4]},m(a,s){f(a,e,s),f(a,o,s),f(a,r,s),n||(i=S(r,"input",t[10]),n=!0)},p(t,e){16&e&&(r.checked=t[4])},d(t){t&&x(e),t&&x(o),t&&x(r),n=!1,i()}}}function Mt(e){let o;return{c(){o=y("span"),o.textContent="Update from Package Manager",C(o,"class","text-sm")},m(t,e){f(t,o,e)},p:t,d(t){t&&x(o)}}}function Bt(e){let o,r,i,a,s,c,l,d,p,g,u,w,m,b,v,F,_,E,z,j,O,U,P,D,R,G,N,M,B,I,L,T,q,W,V,H,J,Q,K,X,Y,Z;function tt(t,e){return t[5]?Mt:Nt}let et=tt(e),ot=et(e);return{c(){o=y("div"),r=y("div"),i=y("div"),i.textContent="Downloads Folder",a=$(),s=y("div"),c=y("div"),l=k(e[0]),d=$(),p=y("div"),g=y("button"),g.textContent="Edit",u=$(),w=y("button"),w.textContent="Open",m=$(),b=y("div"),b.textContent="Notifications",v=$(),F=y("div"),_=y("label"),_.textContent="Show Desktop Notifications",E=$(),z=y("input"),j=$(),O=y("div"),O.textContent="Overwrite",U=$(),P=y("div"),D=y("label"),D.textContent="Overwrite Existing Files",R=$(),G=y("input"),N=$(),M=y("div"),M.textContent="Auto Update",B=$(),I=y("div"),ot.c(),L=$(),T=y("div"),q=y("div"),q.textContent="Logs",W=$(),V=y("div"),H=y("div"),J=k(e[1]),Q=$(),K=y("div"),X=y("button"),X.textContent="Open",C(i,"class","text-gray-300 font-bold"),C(c,"class","text-gray-200 text-xs truncate max-w-md"),C(g,"class","settings-button mr-1"),C(w,"class","settings-button"),C(p,"class","w-22"),C(s,"class","flex flex-row items-center justify-between"),C(r,"class","mb-1"),C(b,"class","text-gray-300 font-bold"),C(_,"class","text-sm"),C(_,"for","notifications"),C(z,"class","checkbox"),C(z,"type","checkbox"),C(z,"id","notifications"),C(z,"name","notifications"),z.checked=e[2],C(F,"class","flex flex-row items-center justify-between mb-1"),C(O,"class","text-gray-300 font-bold"),C(D,"class","text-sm"),C(D,"for","overwrite"),C(G,"class","checkbox"),C(G,"type","checkbox"),C(G,"id","overwrite"),C(G,"name","overwrite"),G.checked=e[3],C(P,"class","flex flex-row items-center justify-between mb-1"),C(M,"class","text-gray-300 font-bold"),C(I,"class","flex flex-row items-center justify-between mb-1"),C(q,"class","text-gray-300 font-bold"),C(H,"class","text-gray-200 text-xs truncate max-w-lg"),C(X,"class","settings-button"),C(V,"class","flex flex-row items-center justify-between"),C(T,"class","mb-1"),C(o,"class","text-gray-200")},m(t,n){f(t,o,n),h(o,r),h(r,i),h(r,a),h(r,s),h(s,c),h(c,l),h(s,d),h(s,p),h(p,g),h(p,u),h(p,w),h(o,m),h(o,b),h(o,v),h(o,F),h(F,_),h(F,E),h(F,z),h(o,j),h(o,O),h(o,U),h(o,P),h(P,D),h(P,R),h(P,G),h(o,N),h(o,M),h(o,B),h(o,I),ot.m(I,null),h(o,L),h(o,T),h(T,q),h(T,W),h(T,V),h(V,H),h(H,J),h(V,Q),h(V,K),h(K,X),Y||(Z=[S(g,"click",e[6]),S(w,"click",e[7]),S(z,"input",e[9]),S(G,"input",e[8]),S(X,"click",e[11])],Y=!0)},p(t,[e]){1&e&&A(l,t[0]),4&e&&(z.checked=t[2]),8&e&&(G.checked=t[3]),et===(et=tt(t))&&ot?ot.p(t,e):(ot.d(1),ot=et(t),ot&&(ot.c(),ot.m(I,null))),2&e&&A(J,t[1])},i:t,o:t,d(t){t&&x(o),ot.d(),Y=!1,n(Z)}}}function It(t,e,o){let r="",n="",i=!1,a=!1,s=!1,c=!1;P((()=>{gt.App.GetUserPrefs().then((t=>{o(0,r=t.downloadsDirectory),o(2,i=t.notifications),o(3,a=t.overwrite),o(4,s=t.selfUpdate)})),gt.App.GetLogPath().then((t=>{o(1,n=t)})),gt.App.AppInstalledFromPackageManager().then((t=>{o(5,c=t)}))}));return[r,n,i,a,s,c,function(){gt.App.SetDownloadsFolder().then((t=>{o(0,r=t)}))},function(){gt.App.OpenFile(r)},function(){gt.App.SetOverwriteParam(!a).then((t=>{o(3,a=t)}))},function(){gt.App.SetNotificationsParam(!i).then((t=>{o(2,i=t)}))},function(){gt.App.SetSelfUpdateParam(!s).then((t=>{o(4,s=t)}))},t=>window.runtime.BrowserOpenURL(n)]}class Lt extends lt{constructor(t){super(),ct(this,t,It,Bt,a,{})}}function Tt(t,e,o){const r=t.slice();return r[5]=e[o][0],r[6]=e[o][1],r}function qt(t){let e,o,r,n,i,a=t[5]+"";function s(...e){return t[4](t[6],...e)}return{c(){e=y("li"),o=y("button"),r=k(a),C(o,"class","text-blue-500")},m(t,a){f(t,e,a),h(e,o),h(o,r),n||(i=S(o,"click",s),n=!0)},p(e,o){t=e},d(t){t&&x(e),n=!1,i()}}}function Wt(e){let o,r,i,a,s,c,l,d,p,g,u,w,m,b,F,_,E,z,j,O,U,P=Object.entries(e[1]),D=[];for(let t=0;t{gt.App.GetCurrentVersion().then((t=>{o(0,r=t)}))}));return[r,{"wailsapp/wails":"https://wails.io","Jackalz/wails-wormhole-gui":"https://github.com/Jacalz/wormhole-gui","psanford/wormhole-william":"https://github.com/psanford/wormhole-william","magic-wormhole":"https://magic-wormhole.readthedocs.io/",svelte:"https://github.com/sveltejs/svelte",tailwindcss:"https://github.com/tailwindlabs/tailwindcss","font awesome":"https://fontawesome.com","klauspost/compress":"https://github.com/klauspost/compress","go-github-selfupdate":"https://github.com/rhysd/go-github-selfupdate"},t=>window.runtime.BrowserOpenURL("https://riftshare.app"),t=>window.runtime.BrowserOpenURL("https://riftshare.app/faq.html"),(t,e)=>window.runtime.BrowserOpenURL(t)]}class Ht extends lt{constructor(t){super(),ct(this,t,Vt,Wt,a,{})}}function Jt(t){let e,o;return e=new Ht({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Qt(t){let e,o;return e=new Lt({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Kt(t){let e,o;return e=new Gt({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Xt(t){let e,o;return e=new Et({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Yt(t){let e,o,r,i,a,s,c,l,d,p,g,u,w,m,b,v,k,A,F,_,E,z,j,O,U,P,D,R,G,N,M,B,I,L,T,q,W;const V=[Xt,Kt,Qt,Jt],H=[];function J(t,e){return"send"==t[0]?0:"receive"==t[0]?1:"settings"==t[0]?2:"about"==t[0]?3:-1}return~(I=J(t))&&(L=H[I]=V[I](t)),{c(){e=y("main"),o=y("div"),r=y("ul"),i=y("li"),a=y("button"),s=y("div"),c=$(),l=y("span"),l.textContent="Send",p=$(),g=y("li"),u=y("button"),w=y("div"),m=$(),b=y("span"),b.textContent="Receive",k=$(),A=y("li"),F=y("button"),_=y("div"),E=$(),z=y("span"),z.textContent="Settings",O=$(),U=y("li"),P=y("button"),D=y("div"),R=$(),G=y("span"),G.textContent="About",M=$(),B=y("div"),L&&L.c(),C(s,"class","icon send-tab-icon mr-1"),C(a,"class",d="send"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),C(i,"class",""),C(w,"class","icon receive-tab-icon mr-1"),C(u,"class",v="receive"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),C(g,"class",""),C(_,"class","icon settings-tab-icon mr-1"),C(F,"class",j="settings"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),C(A,"class",""),C(D,"class","icon about-tab-icon mr-1"),C(P,"class",N="about"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),C(U,"class",""),C(r,"class","flex justify-center space-x-1 flex-row"),C(o,"class","container mx-auto py-1"),C(B,"class","tab-container"),C(e,"data-wails-no-drag","")},m(n,d){f(n,e,d),h(e,o),h(o,r),h(r,i),h(i,a),h(a,s),h(a,c),h(a,l),h(r,p),h(r,g),h(g,u),h(u,w),h(u,m),h(u,b),h(r,k),h(r,A),h(A,F),h(F,_),h(F,E),h(F,z),h(r,O),h(r,U),h(U,P),h(P,D),h(P,R),h(P,G),h(e,M),h(e,B),~I&&H[I].m(B,null),T=!0,q||(W=[S(a,"click",t[1]),S(u,"click",t[2]),S(F,"click",t[3]),S(P,"click",t[4])],q=!0)},p(t,[e]){(!T||1&e&&d!==(d="send"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&C(a,"class",d),(!T||1&e&&v!==(v="receive"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&C(u,"class",v),(!T||1&e&&j!==(j="settings"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&C(F,"class",j),(!T||1&e&&N!==(N="about"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&C(P,"class",N);let o=I;I=J(t),I!==o&&(L&&(X(),tt(H[o],1,1,(()=>{H[o]=null})),Y()),~I?(L=H[I],L||(L=H[I]=V[I](t),L.c()),Z(L,1),L.m(B,null)):L=null)},i(t){T||(Z(L),T=!0)},o(t){tt(L),T=!1},d(t){t&&x(e),~I&&H[I].d(),q=!1,n(W)}}}function Zt(t,e,o){let r="send";return[r,()=>o(0,r="send"),()=>o(0,r="receive"),()=>o(0,r="settings"),()=>o(0,r="about")]}!function(t,e){void 0===e&&(e={});var o=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}("/*! tailwindcss v3.0.9 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:\"\"}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#94a3b8;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#94a3b8;opacity:1}input::placeholder,textarea::placeholder{color:#94a3b8;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#64748b;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#0891b2;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#0891b2;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#64748b;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#64748b;opacity:1}input::placeholder,textarea::placeholder{color:#64748b;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select{-webkit-print-color-adjust:exact;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;color-adjust:exact;padding-right:2.5rem}[multiple]{-webkit-print-color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{-webkit-print-color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#64748b;border-width:1px;color:#0891b2;color-adjust:exact;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#0891b2;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E\")}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-opacity:1;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(6,182,212,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border-color:rgb(226 232 240/var(--tw-border-opacity))}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.open-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem;transition-duration:.15s}.open-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.open-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.send-input{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color);--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(51 65 85/var(--tw-bg-opacity));border-color:transparent;border-radius:.375rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity))}.send-input:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));border-color:transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}.send-input-label{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity));display:block;font-size:.875rem;line-height:1.25rem}.send-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.send-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.send-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.send-button:disabled{opacity:.5}.receive-input{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color);--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(30 41 59/var(--tw-bg-opacity));border-bottom-left-radius:.375rem;border-color:transparent;border-top-left-radius:.375rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity))}.receive-input:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));border-color:transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}.receive-input-label{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity));display:block;font-size:.875rem;line-height:1.25rem}.receive-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-bottom-right-radius:.375rem;border-top-right-radius:.375rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.receive-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.receive-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.receive-button:disabled{opacity:.5}.send-icon-container{background-image:url(assets/images/upload-solid.svg)}.receive-icon-container,.send-icon-container{--tw-bg-opacity:0.75;background-color:rgb(19 78 74/var(--tw-bg-opacity));background-position:50%;background-repeat:no-repeat;background-size:60%}.receive-icon-container{background-image:url(assets/images/download-solid.svg)}.file-list{list-style-position:inside;list-style-type:disc}.cursor-fix{cursor:default}.tab-item{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:block;display:flex;flex-direction:row;font-size:.75rem;font-weight:700;justify-content:center;line-height:1rem;line-height:1.5;padding:.75rem;text-transform:uppercase;width:7rem}.tab-item-inactive{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity));color:rgb(17 94 89/var(--tw-text-opacity))}.tab-item-active{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity));color:rgb(241 245 249/var(--tw-text-opacity))}.tab-container{width:100%}@media (min-width:640px){.tab-container{max-width:640px}}@media (min-width:768px){.tab-container{max-width:768px}}@media (min-width:1024px){.tab-container{max-width:1024px}}@media (min-width:1280px){.tab-container{max-width:1280px}}@media (min-width:1536px){.tab-container{max-width:1536px}}.tab-container{--tw-bg-opacity:0.5;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:rgb(51 65 85/var(--tw-bg-opacity));border-radius:.5rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:82%;margin-left:auto;margin-right:auto;width:91.666667%;z-index:10}.progress-outer,.tab-container{padding:1rem}.progress-outer{--tw-bg-opacity:0.9;background-color:rgb(30 41 59/var(--tw-bg-opacity));bottom:0;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%;z-index:0}.progress-inner{position:relative;top:33.333333%}.send-progress-old{margin-left:auto;margin-right:auto;padding:.5rem;width:75%}.icon{height:16px;width:16px}.icon,.icon-lg{background-repeat:no-repeat}.icon-lg{height:64px;width:64px}.receive-tab-icon{-webkit-mask-image:url(assets/images/download-solid.svg);mask-image:url(assets/images/download-solid.svg)}.receive-tab-icon,.send-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.send-tab-icon{-webkit-mask-image:url(assets/images/paper-plane-solid.svg);mask-image:url(assets/images/paper-plane-solid.svg)}.settings-tab-icon{-webkit-mask-image:url(assets/images/cog-solid.svg);mask-image:url(assets/images/cog-solid.svg)}.about-tab-icon,.settings-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.about-tab-icon{-webkit-mask-image:url(assets/images/info-circle-solid.svg);mask-image:url(assets/images/info-circle-solid.svg)}.send-file-icon{-webkit-mask-image:url(assets/images/file-upload-solid.svg);mask-image:url(assets/images/file-upload-solid.svg)}.receive-file-icon,.send-file-icon{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.receive-file-icon{-webkit-mask-image:url(assets/images/file-download-solid.svg);mask-image:url(assets/images/file-download-solid.svg)}.folder-select-icon{--tw-bg-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(203 213 225/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);content:\"\";display:block;height:6rem;-webkit-mask-image:url(assets/images/folder-regular.svg);mask-image:url(assets/images/folder-regular.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition-duration:.3s;width:6rem}.folder-select-icon:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.file-select-icon{--tw-bg-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(203 213 225/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);content:\"\";display:block;height:6rem;-webkit-mask-image:url(assets/images/file-regular.svg);mask-image:url(assets/images/file-regular.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition-duration:.3s;width:6rem}.file-select-icon:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.cancel-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.cancel-button:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.cancel-button:active{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.cancel-button:disabled{opacity:.5}.tooltip{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:rgb(226 232 240/var(--tw-bg-opacity));border-color:rgb(15 118 110/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(30 41 59/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;margin-top:-2rem;padding:.25rem;position:absolute;visibility:hidden}.has-tooltip:hover .tooltip{visibility:visible;z-index:50}.checkbox{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity));border-color:rgb(203 213 225/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;height:1rem;width:1rem}.checkbox:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.settings-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding:.25rem;transition-duration:.15s}.settings-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.settings-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.settings-button:disabled{opacity:.5}.visible{visibility:visible}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.z-0{z-index:0}.m-2{margin:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.-mt-8{margin-top:-2rem}.mr-1{margin-right:.25rem}.mb-1{margin-bottom:.25rem}.mt-2{margin-top:.5rem}.mt-1{margin-top:.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.h-24{height:6rem}.h-4{height:1rem}.h-56{height:14rem}.h-full{height:100%}.h-36{height:9rem}.w-28{width:7rem}.w-11\\/12{width:91.666667%}.w-full{width:100%}.w-24{width:6rem}.w-4{width:1rem}.w-72{width:18rem}.w-60{width:15rem}.max-w-md{max-width:28rem}.max-w-lg{max-width:32rem}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.place-items-center{place-items:center}.content-center{align-content:center}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-items-center{justify-items:center}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-transparent{border-color:transparent}.border-green-700{--tw-border-opacity:1;border-color:rgb(15 118 110/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.border-green-300{--tw-border-opacity:1;border-color:rgb(94 234 212/var(--tw-border-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.bg-green-900{--tw-bg-opacity:1;background-color:rgb(19 78 74/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(139 92 246/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-opacity-90{--tw-bg-opacity:0.9}.bg-opacity-60{--tw-bg-opacity:0.6}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.p-2{padding:.5rem}.p-1{padding:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pt-2{padding-top:.5rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.leading-normal{line-height:1.5}.text-gray-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(17 94 89/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(8 145 178/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(6 182 212/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity))}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color)}.shadow-inner,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.duration-150{transition-duration:.15s}.duration-300{transition-duration:.3s}main{height:100%;width:100%}div{overscroll:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hover\\:bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-green-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity))}.active\\:bg-green-800:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}");return new class extends lt{constructor(t){super(),ct(this,t,Zt,Yt,a,{})}}({target:document.body})}(); +var app=function(){"use strict";function t(){}const e=t=>t;function o(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(o)}function i(t){return"function"==typeof t}function a(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e,o,r){return t[1]&&r?function(t,e){for(const o in e)t[o]=e[o];return t}(o.ctx.slice(),t[1](r(e))):o.ctx}function c(t,e,o,r,n,i,a){const c=function(t,e,o,r){if(t[2]&&r){const n=t[2](r(o));if(void 0===e.dirty)return n;if("object"==typeof n){const t=[],o=Math.max(e.dirty.length,n.length);for(let r=0;rwindow.performance.now():()=>Date.now(),p=l?t=>requestAnimationFrame(t):t;const g=new Set;function u(t){g.forEach((e=>{e.c(t)||(g.delete(e),e.f())})),0!==g.size&&p(u)}function w(t){let e;return 0===g.size&&p(u),{promise:new Promise((o=>{g.add(e={c:t,f:o})})),abort(){g.delete(e)}}}let b=!1;function m(t,e,o,r){for(;t>1);o(n)<=r?t=n+1:e=n}return t}function h(t,e){b?(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;const e=t.childNodes,o=new Int32Array(e.length+1),r=new Int32Array(e.length);o[0]=-1;let n=0;for(let t=0;te[o[t]].claim_order),e[t].claim_order)-1;r[t]=o[i]+1;const a=i+1;o[a]=t,n=Math.max(a,n)}const i=[],a=[];let s=e.length-1;for(let t=o[n]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,o=0;e=i[o].claim_order;)o++;const r=ot.removeEventListener(e,o,r)}function C(t,e,o){null==o?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o)}function A(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function F(t,e){t.value=null==e?"":e}const _=new Set;let E,z=0;function j(t,e,o,r,n,i,a,s=0){const c=16.666/r;let l="{\n";for(let t=0;t<=1;t+=c){const r=e+(o-e)*i(t);l+=100*t+`%{${a(r,1-r)}}\n`}const d=l+`100% {${a(o,1-o)}}\n}`,p=`__svelte_${function(t){let e=5381,o=t.length;for(;o--;)e=(e<<5)-e^t.charCodeAt(o);return e>>>0}(d)}_${s}`,g=t.ownerDocument;_.add(g);const u=g.__svelte_stylesheet||(g.__svelte_stylesheet=g.head.appendChild(y("style")).sheet),w=g.__svelte_rules||(g.__svelte_rules={});w[p]||(w[p]=!0,u.insertRule(`@keyframes ${p} ${d}`,u.cssRules.length));const b=t.style.animation||"";return t.style.animation=`${b?`${b}, `:""}${p} ${r}ms linear ${n}ms 1 both`,z+=1,p}function O(t,e){const o=(t.style.animation||"").split(", "),r=o.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),n=o.length-r.length;n&&(t.style.animation=r.join(", "),z-=n,z||p((()=>{z||(_.forEach((t=>{const e=t.__svelte_stylesheet;let o=e.cssRules.length;for(;o--;)e.deleteRule(o);t.__svelte_rules={}})),_.clear())})))}function U(t){E=t}function P(t){(function(){if(!E)throw new Error("Function called outside component initialization");return E})().$$.on_mount.push(t)}const D=[],R=[],G=[],N=[],M=Promise.resolve();let B=!1;function I(t){G.push(t)}let L=!1;const T=new Set;function q(){if(!L){L=!0;do{for(let t=0;t{V=null}))),V}function J(t,e,o){t.dispatchEvent(function(t,e){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,!1,!1,e),o}(`${e?"intro":"outro"}${o}`))}const Q=new Set;let K;function X(){K={r:0,c:[],p:K}}function Y(){K.r||n(K.c),K=K.p}function Z(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function tt(t,e,o,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),K.c.push((()=>{Q.delete(t),r&&(o&&t.d(1),r())})),t.o(e)}}const et={duration:0};function ot(o,r,n){let a,s,c=r(o,n),l=!1,p=0;function g(){a&&O(o,a)}function u(){const{delay:r=0,duration:n=300,easing:i=e,tick:u=t,css:b}=c||et;b&&(a=j(o,0,1,n,r,i,b,p++)),u(0,1);const m=d()+r,h=m+n;s&&s.abort(),l=!0,I((()=>J(o,!0,"start"))),s=w((t=>{if(l){if(t>=h)return u(1,0),J(o,!0,"end"),g(),l=!1;if(t>=m){const e=i((t-m)/n);u(e,1-e)}}return l}))}let b=!1;return{start(){b||(O(o),i(c)?(c=c(),H().then(u)):u())},invalidate(){b=!1},end(){l&&(g(),l=!1)}}}function rt(o,r,a,s){let c=r(o,a),l=s?0:1,p=null,g=null,u=null;function b(){u&&O(o,u)}function m(t,e){const o=t.b-l;return e*=Math.abs(o),{a:l,b:t.b,d:o,duration:e,start:t.start,end:t.start+e,group:t.group}}function h(r){const{delay:i=0,duration:a=300,easing:s=e,tick:h=t,css:f}=c||et,x={start:d()+i,b:r};r||(x.group=K,K.r+=1),p||g?g=x:(f&&(b(),u=j(o,l,r,a,i,s,f)),r&&h(0,1),p=m(x,a),I((()=>J(o,r,"start"))),w((t=>{if(g&&t>g.start&&(p=m(g,a),g=null,J(o,p.b,"start"),f&&(b(),u=j(o,l,p.b,p.duration,0,s,c.css))),p)if(t>=p.end)h(l=p.b,1-l),J(o,p.b,"end"),g||(p.b?b():--p.group.r||n(p.group.c)),p=null;else if(t>=p.start){const e=t-p.start;l=p.a+p.d*s(e/p.duration),h(l,1-l)}return!(!p&&!g)})))}return{run(t){i(c)?H().then((()=>{c=c(),h(t)})):h(t)},end(){b(),p=g=null}}}function nt(t){t&&t.c()}function it(t,e,r,a){const{fragment:s,on_mount:c,on_destroy:l,after_update:d}=t.$$;s&&s.m(e,r),a||I((()=>{const e=c.map(o).filter(i);l?l.push(...e):n(e),t.$$.on_mount=[]})),d.forEach(I)}function at(t,e){const o=t.$$;null!==o.fragment&&(n(o.on_destroy),o.fragment&&o.fragment.d(e),o.on_destroy=o.fragment=null,o.ctx=[])}function st(t,e){-1===t.$$.dirty[0]&&(D.push(t),B||(B=!0,M.then(q)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const n=r.length?r[0]:o;return p.ctx&&s(p.ctx[t],p.ctx[t]=n)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](n),g&&st(e,t)),o})):[],p.update(),g=!0,n(p.before_update),p.fragment=!!a&&a(p.ctx),o.target){if(o.hydrate){b=!0;const t=function(t){return Array.from(t.childNodes)}(o.target);p.fragment&&p.fragment.l(t),t.forEach(x)}else p.fragment&&p.fragment.c();o.intro&&Z(e.$$.fragment),it(e,o.target,o.anchor,o.customElement),b=!1,q()}U(d)}class lt{$destroy(){at(this,1),this.$destroy=t}$on(t,e){const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(e),()=>{const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function dt(t){const e=t-1;return e*e*e+1}function pt(t,{delay:e=0,duration:o=400,easing:r=dt}={}){const n=getComputedStyle(t),i=+n.opacity,a=parseFloat(n.height),s=parseFloat(n.paddingTop),c=parseFloat(n.paddingBottom),l=parseFloat(n.marginTop),d=parseFloat(n.marginBottom),p=parseFloat(n.borderTopWidth),g=parseFloat(n.borderBottomWidth);return{delay:e,duration:o,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*i};height: ${t*a}px;padding-top: ${t*s}px;padding-bottom: ${t*c}px;margin-top: ${t*l}px;margin-bottom: ${t*d}px;border-top-width: ${t*p}px;border-bottom-width: ${t*g}px;`}}window.wailsbindings={main:{App:{AppInstalledFromPackageManager:{name:"main.App.AppInstalledFromPackageManager",outputs:[{type:"bool"}]},CancelWormholeRequest:{name:"main.App.CancelWormholeRequest"},ClearSelectedFiles:{name:"main.App.ClearSelectedFiles"},GetCurrentVersion:{name:"main.App.GetCurrentVersion",outputs:[{type:"string"}]},GetLogPath:{name:"main.App.GetLogPath",outputs:[{type:"string"}]},GetReceivedFile:{name:"main.App.GetReceivedFile",outputs:[{type:"string"}]},GetSelectedFiles:{name:"main.App.GetSelectedFiles",outputs:[{type:"[]string"}]},GetUserPrefs:{name:"main.App.GetUserPrefs",outputs:[{type:"settings.UserSettings"}]},OpenDirectoryDialog:{name:"main.App.OpenDirectoryDialog",outputs:[{type:"[]string"},{type:"error"}]},OpenFile:{name:"main.App.OpenFile",inputs:[{type:"string"}]},OpenFilesDialog:{name:"main.App.OpenFilesDialog",outputs:[{type:"[]string"},{type:"error"}]},PersistUserSettings:{name:"main.App.PersistUserSettings"},ReceiveFile:{name:"main.App.ReceiveFile",inputs:[{type:"string"}]},SelectedFilesSend:{name:"main.App.SelectedFilesSend"},SendDirectory:{name:"main.App.SendDirectory",inputs:[{type:"string"}]},SendFile:{name:"main.App.SendFile",inputs:[{type:"string"}]},SetDownloadsFolder:{name:"main.App.SetDownloadsFolder",outputs:[{type:"string"}]},SetNotificationsParam:{name:"main.App.SetNotificationsParam",inputs:[{type:"bool"}],outputs:[{type:"bool"}]},SetOverwriteParam:{name:"main.App.SetOverwriteParam",inputs:[{type:"bool"}],outputs:[{type:"bool"}]},SetSelfUpdateParam:{name:"main.App.SetSelfUpdateParam",inputs:[{type:"bool"}],outputs:[{type:"bool"}]},ShowErrorDialog:{name:"main.App.ShowErrorDialog",inputs:[{type:"string"}]},UpdateCheckUI:{name:"main.App.UpdateCheckUI"},UpdateSendProgress:{name:"main.App.UpdateSendProgress",inputs:[{type:"int64"},{type:"int64"}]}}}};const gt={App:{AppInstalledFromPackageManager:()=>window.go.main.App.AppInstalledFromPackageManager(),CancelWormholeRequest:()=>window.go.main.App.CancelWormholeRequest(),ClearSelectedFiles:()=>window.go.main.App.ClearSelectedFiles(),GetCurrentVersion:()=>window.go.main.App.GetCurrentVersion(),GetLogPath:()=>window.go.main.App.GetLogPath(),GetReceivedFile:()=>window.go.main.App.GetReceivedFile(),GetSelectedFiles:()=>window.go.main.App.GetSelectedFiles(),GetUserPrefs:()=>window.go.main.App.GetUserPrefs(),OpenDirectoryDialog:()=>window.go.main.App.OpenDirectoryDialog(),OpenFile:t=>window.go.main.App.OpenFile(t),OpenFilesDialog:()=>window.go.main.App.OpenFilesDialog(),PersistUserSettings:()=>window.go.main.App.PersistUserSettings(),ReceiveFile:t=>window.go.main.App.ReceiveFile(t),SelectedFilesSend:()=>window.go.main.App.SelectedFilesSend(),SendDirectory:t=>window.go.main.App.SendDirectory(t),SendFile:t=>window.go.main.App.SendFile(t),SetDownloadsFolder:()=>window.go.main.App.SetDownloadsFolder(),SetNotificationsParam:t=>window.go.main.App.SetNotificationsParam(t),SetOverwriteParam:t=>window.go.main.App.SetOverwriteParam(t),SetSelfUpdateParam:t=>window.go.main.App.SetSelfUpdateParam(t),ShowErrorDialog:t=>window.go.main.App.ShowErrorDialog(t),UpdateCheckUI:()=>window.go.main.App.UpdateCheckUI(),UpdateSendProgress:(t,e)=>window.go.main.App.UpdateSendProgress(t,e)}};function ut(t){let e,o,r,n,i,a,l,d,p,g,u,w,b,m,v,S;const F=t[3].default,_=function(t,e,o,r){if(t){const n=s(t,e,o,r);return t[0](n)}}(F,t,t[2],null);return{c(){e=y("div"),o=y("div"),r=y("div"),n=y("span"),i=k(t[0]),a=$(),l=y("span"),d=k(t[1]),p=k("%"),g=$(),u=y("div"),w=y("div"),m=$(),_&&_.c(),C(n,"class","text-base text-gray-100 font-medium"),C(l,"class","text-sm font-medium text-gray-100"),C(r,"class","mb-1 flex justify-between"),C(w,"class","bg-green-500 h-4 rounded-full animate-pulse"),C(w,"style",b="width: "+t[1].toString()+"%"),C(u,"class","w-full bg-green-900 rounded-full h-4 shadow-inner"),C(o,"class","progress-inner"),C(e,"class","progress-outer")},m(t,s){f(t,e,s),h(e,o),h(o,r),h(r,n),h(n,i),h(r,a),h(r,l),h(l,d),h(l,p),h(o,g),h(o,u),h(u,w),h(o,m),_&&_.m(o,null),S=!0},p(t,[e]){(!S||1&e)&&A(i,t[0]),(!S||2&e)&&A(d,t[1]),(!S||2&e&&b!==(b="width: "+t[1].toString()+"%"))&&C(w,"style",b),_&&_.p&&(!S||4&e)&&c(_,F,t,t[2],S?e:-1,null,null)},i(t){S||(Z(_,t),I((()=>{v||(v=rt(e,pt,{},!0)),v.run(1)})),S=!0)},o(t){tt(_,t),v||(v=rt(e,pt,{},!1)),v.run(0),S=!1},d(t){t&&x(e),_&&_.d(t),t&&v&&v.end()}}}function wt(t,e,o){let{$$slots:r={},$$scope:n}=e,{status:i=waiting}=e,{percent:a=0}=e;return t.$$set=t=>{"status"in t&&o(0,i=t.status),"percent"in t&&o(1,a=t.percent),"$$scope"in t&&o(2,n=t.$$scope)},[i,a,n,r]}class bt extends lt{constructor(t){super(),ct(this,t,wt,ut,a,{status:0,percent:1})}}function mt(t,e,o){const r=t.slice();return r[11]=e[o],r[13]=o,r}function ht(t){let e,o,r,i,a,s,c,l,d,p,g,u;return{c(){e=y("div"),o=y("div"),r=y("span"),r.textContent="Send Files",i=$(),a=y("button"),s=$(),c=y("div"),l=y("span"),l.textContent="Send Directory",d=$(),p=y("button"),C(r,"class","tooltip"),C(a,"class","file-select-icon"),a.disabled=t[4],C(o,"class","has-tooltip"),C(l,"class","tooltip"),C(p,"class","folder-select-icon"),p.disabled=t[4],C(c,"class","has-tooltip"),C(e,"class","flex flex-row items-center content-center justify-around place-items-center h-full")},m(n,w){f(n,e,w),h(e,o),h(o,r),h(o,i),h(o,a),h(e,s),h(e,c),h(c,l),h(c,d),h(c,p),g||(u=[S(a,"click",t[7]),S(p,"click",t[6])],g=!0)},p(t,e){16&e&&(a.disabled=t[4]),16&e&&(p.disabled=t[4])},d(t){t&&x(e),g=!1,n(u)}}}function ft(t){let e,o=t[5],r=[];for(let e=0;e{i=ot(o,pt,{duration:200}),i.start()})),l||I((()=>{l=ot(s,pt,{duration:200}),l.start()}))},o:t,d(t){t&&x(o),t&&x(a),t&&x(s),d=!1,n(p)}}}function $t(t){let e,o;return e=new bt({props:{percent:t[3],status:t[2],$$slots:{default:[Ct]},$$scope:{ctx:t}}}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},p(t,o){const r={};8&o&&(r.percent=t[3]),4&o&&(r.status=t[2]),16386&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function St(t){let e,o,r,n,i,a,s,c,l,d,p;return{c(){e=y("div"),o=y("label"),o.textContent="Send Code",r=$(),n=y("div"),i=y("input"),a=$(),s=y("button"),s.innerHTML='
',C(o,"for","sendCode"),C(o,"class","send-input-label"),C(i,"id","sendCode"),i.readOnly=!0,C(i,"type","text"),C(i,"placeholder","Send code will appear"),i.value=t[1],C(i,"class","send-input mt-1"),C(s,"class","copy-button mt-1"),C(n,"class","flex flex-row"),C(e,"class","mx-auto mt-2")},m(t,c){f(t,e,c),h(e,o),h(e,r),h(e,n),h(n,i),h(n,a),h(n,s),l=!0,d||(p=S(s,"click",Ft),d=!0)},p(t,e){(!l||2&e&&i.value!==t[1])&&(i.value=t[1])},i(t){l||(I((()=>{c||(c=rt(e,pt,{},!0)),c.run(1)})),l=!0)},o(t){c||(c=rt(e,pt,{},!1)),c.run(0),l=!1},d(t){t&&x(e),t&&c&&c.end(),d=!1,p()}}}function Ct(t){let e,o,r,n,i,a,s=t[1]&&St(t);return{c(){e=y("div"),o=y("button"),o.textContent="Cancel",r=$(),s&&s.c(),C(o,"class","my-2 mx-auto cancel-button"),C(e,"class","container grid")},m(c,l){f(c,e,l),h(e,o),h(e,r),s&&s.m(e,null),n=!0,i||(a=S(o,"click",t[9]),i=!0)},p(t,o){t[1]?s?(s.p(t,o),2&o&&Z(s,1)):(s=St(t),s.c(),Z(s,1),s.m(e,null)):s&&(X(),tt(s,1,1,(()=>{s=null})),Y())},i(t){n||(Z(s),n=!0)},o(t){tt(s),n=!1},d(t){t&&x(e),s&&s.d(),i=!1,a()}}}function At(t){let e,o,r,n,i,a;function s(t,e){return t[0].length>0?ft:ht}let c=s(t),l=c(t),d=t[0].length>0&&kt(t),p=t[4]&&$t(t);return{c(){e=y("div"),o=y("div"),l.c(),r=$(),n=y("div"),d&&d.c(),i=$(),p&&p.c(),C(o,"class","border-2 border-green-300 rounded-md shadow-md w-72 h-56 p-2 mx-auto cursor-fix send-icon-container"),C(n,"class","p-2 mx-auto"),C(e,"class","flex flex-col justify-items-center content-center m-2")},m(t,s){f(t,e,s),h(e,o),l.m(o,null),h(e,r),h(e,n),d&&d.m(n,null),h(e,i),p&&p.m(e,null),a=!0},p(t,[r]){c===(c=s(t))&&l?l.p(t,r):(l.d(1),l=c(t),l&&(l.c(),l.m(o,null))),t[0].length>0?d?(d.p(t,r),1&r&&Z(d,1)):(d=kt(t),d.c(),Z(d,1),d.m(n,null)):d&&(d.d(1),d=null),t[4]?p?(p.p(t,r),16&r&&Z(p,1)):(p=$t(t),p.c(),Z(p,1),p.m(e,null)):p&&(X(),tt(p,1,1,(()=>{p=null})),Y())},i(t){a||(Z(d),Z(p),a=!0)},o(t){tt(p),a=!1},d(t){t&&x(e),l.d(),d&&d.d(),p&&p.d()}}}function Ft(){var t=document.getElementById("sendCode");t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value)}function _t(t,e,o){let r;String.prototype.trimEllip=function(t){return this.length>t?this.substring(0,t)+"...":this};let n="",i="waiting",a=0,s=[],c=!1;return window.runtime.EventsOn("send:started",(function(t){o(1,n=t)})),window.runtime.EventsOn("send:updated",(function(t){o(3,a=t),"transferring"!=i&&o(2,i="transferring")})),window.runtime.EventsOn("send:status",(function(t){o(2,i=t),"completed"!=t&&"failed"!=t||setTimeout((()=>{o(4,c=!1),o(1,n="")}),500)})),P((()=>{gt.App.GetSelectedFiles().then((t=>{t&&t.length>0&&o(0,s=t)}))})),t.$$.update=()=>{1&t.$$.dirty&&o(5,r=s.map((t=>t.split("\\").pop().split("/").pop().trimEllip(30))))},[s,n,i,a,c,r,function(){gt.App.OpenDirectoryDialog().then((t=>{o(0,s=null!=t?t:[])})).catch((t=>{console.log(t)}))},function(){gt.App.OpenFilesDialog().then((t=>{o(0,s=null!=t?t:[])})).catch((t=>{console.log(t)}))},function(){o(1,n=""),o(2,i="waiting"),o(3,a=0),o(0,s=[]),o(4,c=!1),gt.App.ClearSelectedFiles()},function(){gt.App.CancelWormholeRequest().then((()=>{o(4,c=!1),o(1,n=""),o(2,i="waiting"),o(3,a=0)})).catch((t=>{console.log(t)}))},function(){gt.App.SelectedFilesSend(),o(4,c=!0)}]}class Et extends lt{constructor(t){super(),ct(this,t,_t,At,a,{})}}function zt(t){let e,o,r,n,i,a,s=!t[4]&&jt(t);return{c(){e=y("div"),o=y("div"),r=$(),n=y("span"),i=k(t[6]),a=$(),s&&s.c(),C(o,"class","icon-lg receive-file-icon"),C(n,"class","text-gray-200"),C(e,"class","flex flex-col justify-center items-center space-y-2 bg-gray-800 rounded-md bg-opacity-60 h-full")},m(t,c){f(t,e,c),h(e,o),h(e,r),h(e,n),h(n,i),h(e,a),s&&s.m(e,null)},p(t,o){64&o&&A(i,t[6]),t[4]?s&&(s.d(1),s=null):s?s.p(t,o):(s=jt(t),s.c(),s.m(e,null))},d(t){t&&x(e),s&&s.d()}}}function jt(e){let o,r,n;return{c(){o=y("button"),o.textContent="Open",C(o,"class","open-button text-sm")},m(t,i){f(t,o,i),r||(n=S(o,"click",e[8]),r=!0)},p:t,d(t){t&&x(o),r=!1,n()}}}function Ot(t){let e,o;return e=new bt({props:{percent:t[3],status:t[2],$$slots:{default:[Ut]},$$scope:{ctx:t}}}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},p(t,o){const r={};8&o&&(r.percent=t[3]),4&o&&(r.status=t[2]),2048&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Ut(e){let o,r,n,i;return{c(){o=y("div"),r=y("button"),r.textContent="Cancel",C(r,"class","my-2 mx-auto cancel-button"),C(o,"class","container grid")},m(t,a){f(t,o,a),h(o,r),n||(i=S(r,"click",e[9]),n=!0)},p:t,d(t){t&&x(o),n=!1,i()}}}function Pt(t){let e,o,r,i,a,s,c,l,d,p,g,u,w,b,m,v,A=t[1]&&zt(t),_=t[4]&&Ot(t);return{c(){e=y("div"),o=y("div"),A&&A.c(),r=$(),i=y("div"),a=y("form"),s=y("label"),s.textContent="Receive Code",c=$(),l=y("input"),d=$(),p=y("button"),g=k("Download"),w=$(),_&&_.c(),C(o,"class","border-2 border-green-300 rounded-md shadow-md w-72 h-56 p-2 mx-auto receive-icon-container"),C(s,"for","receiveCode"),C(s,"class","receive-input-label"),C(l,"id","receiveCode"),C(l,"type","text"),C(l,"placeholder","eg. 5-component-button"),C(l,"class","receive-input"),C(p,"class","receive-button"),C(p,"type","submit"),p.disabled=u=!t[5],C(a,"autocomplete","off"),C(i,"class","p-2 mx-auto"),C(e,"class","flex flex-col justify-items-center content-center m-2")},m(n,u){var x;f(n,e,u),h(e,o),A&&A.m(o,null),h(e,r),h(e,i),h(i,a),h(a,s),h(a,c),h(a,l),F(l,t[0]),h(a,d),h(a,p),h(p,g),h(e,w),_&&_.m(e,null),b=!0,m||(v=[S(l,"input",t[10]),S(a,"submit",(x=t[7],function(t){return t.preventDefault(),x.call(this,t)}))],m=!0)},p(t,[r]){t[1]?A?A.p(t,r):(A=zt(t),A.c(),A.m(o,null)):A&&(A.d(1),A=null),1&r&&l.value!==t[0]&&F(l,t[0]),(!b||32&r&&u!==(u=!t[5]))&&(p.disabled=u),t[4]?_?(_.p(t,r),16&r&&Z(_,1)):(_=Ot(t),_.c(),Z(_,1),_.m(e,null)):_&&(X(),tt(_,1,1,(()=>{_=null})),Y())},i(t){b||(Z(_),b=!0)},o(t){tt(_),b=!1},d(t){t&&x(e),A&&A.d(),_&&_.d(),m=!1,n(v)}}}const Dt=/\d+\-\w+\-\w+/;function Rt(t,e,o){let r,n,i="",a="waiting",s=0,c=!1,l="";return String.prototype.trimEllip=function(t){return this.length>t?this.substring(0,t)+"...":this},window.runtime.EventsOn("receive:updated",(function(t){o(3,s=t)})),window.runtime.EventsOn("receive:started",(function(){o(4,c=!0)})),window.runtime.EventsOn("receive:path",(function(t){o(1,l=t)})),window.runtime.EventsOn("receive:status",(function(t){o(2,a=t),"completed"==t&&setTimeout((()=>{o(4,c=!1)}),500)})),P((()=>{gt.App.GetReceivedFile().then((t=>{t&&o(1,l=t)}))})),t.$$.update=()=>{1&t.$$.dirty&&o(5,r=Dt.test(i)),2&t.$$.dirty&&o(6,n=l.split("\\").pop().split("/").pop().trimEllip(24))},[i,l,a,s,c,r,n,function(){gt.App.ReceiveFile(i)},function(){gt.App.OpenFile(l)},function(){gt.App.CancelWormholeRequest().then((()=>{o(4,c=!1),o(0,i=""),o(2,a="waiting"),o(3,s=0),o(1,l="")})).catch((t=>{console.log(t)}))},function(){i=this.value,o(0,i)}]}class Gt extends lt{constructor(t){super(),ct(this,t,Rt,Pt,a,{})}}function Nt(t){let e,o,r,n,i;return{c(){e=y("label"),e.textContent="Auto Update Enabled",o=$(),r=y("input"),C(e,"class","text-sm"),C(e,"for","selfUpdate"),C(r,"class","checkbox"),C(r,"type","checkbox"),C(r,"id","selfUpdate"),C(r,"name","selfUpdate"),r.checked=t[4]},m(a,s){f(a,e,s),f(a,o,s),f(a,r,s),n||(i=S(r,"input",t[10]),n=!0)},p(t,e){16&e&&(r.checked=t[4])},d(t){t&&x(e),t&&x(o),t&&x(r),n=!1,i()}}}function Mt(e){let o;return{c(){o=y("span"),o.textContent="Update from Package Manager",C(o,"class","text-sm")},m(t,e){f(t,o,e)},p:t,d(t){t&&x(o)}}}function Bt(e){let o,r,i,a,s,c,l,d,p,g,u,w,b,m,v,F,_,E,z,j,O,U,P,D,R,G,N,M,B,I,L,T,q,W,V,H,J,Q,K,X,Y,Z;function tt(t,e){return t[5]?Mt:Nt}let et=tt(e),ot=et(e);return{c(){o=y("div"),r=y("div"),i=y("div"),i.textContent="Downloads Folder",a=$(),s=y("div"),c=y("div"),l=k(e[0]),d=$(),p=y("div"),g=y("button"),g.textContent="Edit",u=$(),w=y("button"),w.textContent="Open",b=$(),m=y("div"),m.textContent="Notifications",v=$(),F=y("div"),_=y("label"),_.textContent="Show Desktop Notifications",E=$(),z=y("input"),j=$(),O=y("div"),O.textContent="Overwrite",U=$(),P=y("div"),D=y("label"),D.textContent="Overwrite Existing Files",R=$(),G=y("input"),N=$(),M=y("div"),M.textContent="Auto Update",B=$(),I=y("div"),ot.c(),L=$(),T=y("div"),q=y("div"),q.textContent="Logs",W=$(),V=y("div"),H=y("div"),J=k(e[1]),Q=$(),K=y("div"),X=y("button"),X.textContent="Open",C(i,"class","text-gray-300 font-bold"),C(c,"class","text-gray-200 text-xs truncate max-w-md"),C(g,"class","settings-button mr-1"),C(w,"class","settings-button"),C(p,"class","w-22"),C(s,"class","flex flex-row items-center justify-between"),C(r,"class","mb-1"),C(m,"class","text-gray-300 font-bold"),C(_,"class","text-sm"),C(_,"for","notifications"),C(z,"class","checkbox"),C(z,"type","checkbox"),C(z,"id","notifications"),C(z,"name","notifications"),z.checked=e[2],C(F,"class","flex flex-row items-center justify-between mb-1"),C(O,"class","text-gray-300 font-bold"),C(D,"class","text-sm"),C(D,"for","overwrite"),C(G,"class","checkbox"),C(G,"type","checkbox"),C(G,"id","overwrite"),C(G,"name","overwrite"),G.checked=e[3],C(P,"class","flex flex-row items-center justify-between mb-1"),C(M,"class","text-gray-300 font-bold"),C(I,"class","flex flex-row items-center justify-between mb-1"),C(q,"class","text-gray-300 font-bold"),C(H,"class","text-gray-200 text-xs truncate max-w-lg"),C(X,"class","settings-button"),C(V,"class","flex flex-row items-center justify-between"),C(T,"class","mb-1"),C(o,"class","text-gray-200")},m(t,n){f(t,o,n),h(o,r),h(r,i),h(r,a),h(r,s),h(s,c),h(c,l),h(s,d),h(s,p),h(p,g),h(p,u),h(p,w),h(o,b),h(o,m),h(o,v),h(o,F),h(F,_),h(F,E),h(F,z),h(o,j),h(o,O),h(o,U),h(o,P),h(P,D),h(P,R),h(P,G),h(o,N),h(o,M),h(o,B),h(o,I),ot.m(I,null),h(o,L),h(o,T),h(T,q),h(T,W),h(T,V),h(V,H),h(H,J),h(V,Q),h(V,K),h(K,X),Y||(Z=[S(g,"click",e[6]),S(w,"click",e[7]),S(z,"input",e[9]),S(G,"input",e[8]),S(X,"click",e[11])],Y=!0)},p(t,[e]){1&e&&A(l,t[0]),4&e&&(z.checked=t[2]),8&e&&(G.checked=t[3]),et===(et=tt(t))&&ot?ot.p(t,e):(ot.d(1),ot=et(t),ot&&(ot.c(),ot.m(I,null))),2&e&&A(J,t[1])},i:t,o:t,d(t){t&&x(o),ot.d(),Y=!1,n(Z)}}}function It(t,e,o){let r="",n="",i=!1,a=!1,s=!1,c=!1;P((()=>{gt.App.GetUserPrefs().then((t=>{o(0,r=t.downloadsDirectory),o(2,i=t.notifications),o(3,a=t.overwrite),o(4,s=t.selfUpdate)})),gt.App.GetLogPath().then((t=>{o(1,n=t)})),gt.App.AppInstalledFromPackageManager().then((t=>{o(5,c=t)}))}));return[r,n,i,a,s,c,function(){gt.App.SetDownloadsFolder().then((t=>{o(0,r=t)}))},function(){gt.App.OpenFile(r)},function(){gt.App.SetOverwriteParam(!a).then((t=>{o(3,a=t)}))},function(){gt.App.SetNotificationsParam(!i).then((t=>{o(2,i=t)}))},function(){gt.App.SetSelfUpdateParam(!s).then((t=>{o(4,s=t)}))},t=>window.runtime.BrowserOpenURL(n)]}class Lt extends lt{constructor(t){super(),ct(this,t,It,Bt,a,{})}}function Tt(t,e,o){const r=t.slice();return r[5]=e[o][0],r[6]=e[o][1],r}function qt(t){let e,o,r,n,i,a=t[5]+"";function s(...e){return t[4](t[6],...e)}return{c(){e=y("li"),o=y("button"),r=k(a),C(o,"class","text-blue-500")},m(t,a){f(t,e,a),h(e,o),h(o,r),n||(i=S(o,"click",s),n=!0)},p(e,o){t=e},d(t){t&&x(e),n=!1,i()}}}function Wt(e){let o,r,i,a,s,c,l,d,p,g,u,w,b,m,F,_,E,z,j,O,U,P=Object.entries(e[1]),D=[];for(let t=0;t{gt.App.GetCurrentVersion().then((t=>{o(0,r=t)}))}));return[r,{"wailsapp/wails":"https://wails.io","Jackalz/wails-wormhole-gui":"https://github.com/Jacalz/wormhole-gui","psanford/wormhole-william":"https://github.com/psanford/wormhole-william","magic-wormhole":"https://magic-wormhole.readthedocs.io/",svelte:"https://github.com/sveltejs/svelte",tailwindcss:"https://github.com/tailwindlabs/tailwindcss","font awesome":"https://fontawesome.com","klauspost/compress":"https://github.com/klauspost/compress","go-github-selfupdate":"https://github.com/rhysd/go-github-selfupdate"},t=>window.runtime.BrowserOpenURL("https://riftshare.app"),t=>window.runtime.BrowserOpenURL("https://riftshare.app/faq.html"),(t,e)=>window.runtime.BrowserOpenURL(t)]}class Ht extends lt{constructor(t){super(),ct(this,t,Vt,Wt,a,{})}}function Jt(t){let e,o;return e=new Ht({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Qt(t){let e,o;return e=new Lt({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Kt(t){let e,o;return e=new Gt({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Xt(t){let e,o;return e=new Et({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Yt(t){let e,o,r,i,a,s,c,l,d,p,g,u,w,b,m,v,k,A,F,_,E,z,j,O,U,P,D,R,G,N,M,B,I,L,T,q,W;const V=[Xt,Kt,Qt,Jt],H=[];function J(t,e){return"send"==t[0]?0:"receive"==t[0]?1:"settings"==t[0]?2:"about"==t[0]?3:-1}return~(I=J(t))&&(L=H[I]=V[I](t)),{c(){e=y("main"),o=y("div"),r=y("ul"),i=y("li"),a=y("button"),s=y("div"),c=$(),l=y("span"),l.textContent="Send",p=$(),g=y("li"),u=y("button"),w=y("div"),b=$(),m=y("span"),m.textContent="Receive",k=$(),A=y("li"),F=y("button"),_=y("div"),E=$(),z=y("span"),z.textContent="Settings",O=$(),U=y("li"),P=y("button"),D=y("div"),R=$(),G=y("span"),G.textContent="About",M=$(),B=y("div"),L&&L.c(),C(s,"class","icon send-tab-icon mr-1"),C(a,"class",d="send"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),C(i,"class",""),C(w,"class","icon receive-tab-icon mr-1"),C(u,"class",v="receive"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),C(g,"class",""),C(_,"class","icon settings-tab-icon mr-1"),C(F,"class",j="settings"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),C(A,"class",""),C(D,"class","icon about-tab-icon mr-1"),C(P,"class",N="about"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),C(U,"class",""),C(r,"class","flex justify-center space-x-1 flex-row"),C(o,"class","container mx-auto py-1"),C(B,"class","tab-container"),C(e,"data-wails-no-drag","")},m(n,d){f(n,e,d),h(e,o),h(o,r),h(r,i),h(i,a),h(a,s),h(a,c),h(a,l),h(r,p),h(r,g),h(g,u),h(u,w),h(u,b),h(u,m),h(r,k),h(r,A),h(A,F),h(F,_),h(F,E),h(F,z),h(r,O),h(r,U),h(U,P),h(P,D),h(P,R),h(P,G),h(e,M),h(e,B),~I&&H[I].m(B,null),T=!0,q||(W=[S(a,"click",t[1]),S(u,"click",t[2]),S(F,"click",t[3]),S(P,"click",t[4])],q=!0)},p(t,[e]){(!T||1&e&&d!==(d="send"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&C(a,"class",d),(!T||1&e&&v!==(v="receive"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&C(u,"class",v),(!T||1&e&&j!==(j="settings"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&C(F,"class",j),(!T||1&e&&N!==(N="about"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&C(P,"class",N);let o=I;I=J(t),I!==o&&(L&&(X(),tt(H[o],1,1,(()=>{H[o]=null})),Y()),~I?(L=H[I],L||(L=H[I]=V[I](t),L.c()),Z(L,1),L.m(B,null)):L=null)},i(t){T||(Z(L),T=!0)},o(t){tt(L),T=!1},d(t){t&&x(e),~I&&H[I].d(),q=!1,n(W)}}}function Zt(t,e,o){let r="send";return[r,()=>o(0,r="send"),()=>o(0,r="receive"),()=>o(0,r="settings"),()=>o(0,r="about")]}!function(t,e){void 0===e&&(e={});var o=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}("/*! tailwindcss v3.0.9 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:\"\"}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#94a3b8;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#94a3b8;opacity:1}input::placeholder,textarea::placeholder{color:#94a3b8;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#64748b;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#0891b2;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#0891b2;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#64748b;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#64748b;opacity:1}input::placeholder,textarea::placeholder{color:#64748b;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select{-webkit-print-color-adjust:exact;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;color-adjust:exact;padding-right:2.5rem}[multiple]{-webkit-print-color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{-webkit-print-color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#64748b;border-width:1px;color:#0891b2;color-adjust:exact;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#0891b2;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E\")}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-opacity:1;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(6,182,212,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border-color:rgb(226 232 240/var(--tw-border-opacity))}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.open-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem;transition-duration:.15s}.open-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.open-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.send-input{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color);--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(51 65 85/var(--tw-bg-opacity));border-bottom-left-radius:.375rem;border-color:transparent;border-top-left-radius:.375rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity))}.send-input:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));border-color:transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}.send-input-label{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity));display:block;font-size:.875rem;line-height:1.25rem}.send-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.send-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.send-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.send-button:disabled{opacity:.5}.copy-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-bottom-right-radius:.375rem;border-top-right-radius:.375rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem;transition-duration:.15s;width:2.5rem}.copy-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.copy-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.copy-button:disabled{opacity:.5}.receive-input{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color);--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(30 41 59/var(--tw-bg-opacity));border-bottom-left-radius:.375rem;border-color:transparent;border-top-left-radius:.375rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity))}.receive-input:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));border-color:transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}.receive-input-label{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity));display:block;font-size:.875rem;line-height:1.25rem}.receive-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-bottom-right-radius:.375rem;border-top-right-radius:.375rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.receive-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.receive-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.receive-button:disabled{opacity:.5}.send-icon-container{background-image:url(assets/images/upload-solid.svg)}.receive-icon-container,.send-icon-container{--tw-bg-opacity:0.75;background-color:rgb(19 78 74/var(--tw-bg-opacity));background-position:50%;background-repeat:no-repeat;background-size:60%}.receive-icon-container{background-image:url(assets/images/download-solid.svg)}.file-list{list-style-position:inside;list-style-type:disc}.cursor-fix{cursor:default}.tab-item{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:block;display:flex;flex-direction:row;font-size:.75rem;font-weight:700;justify-content:center;line-height:1rem;line-height:1.5;padding:.75rem;text-transform:uppercase;width:7rem}.tab-item-inactive{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity));color:rgb(17 94 89/var(--tw-text-opacity))}.tab-item-active{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity));color:rgb(241 245 249/var(--tw-text-opacity))}.tab-container{width:100%}@media (min-width:640px){.tab-container{max-width:640px}}@media (min-width:768px){.tab-container{max-width:768px}}@media (min-width:1024px){.tab-container{max-width:1024px}}@media (min-width:1280px){.tab-container{max-width:1280px}}@media (min-width:1536px){.tab-container{max-width:1536px}}.tab-container{--tw-bg-opacity:0.5;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:rgb(51 65 85/var(--tw-bg-opacity));border-radius:.5rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:82%;margin-left:auto;margin-right:auto;width:91.666667%;z-index:10}.progress-outer,.tab-container{padding:1rem}.progress-outer{--tw-bg-opacity:0.9;background-color:rgb(30 41 59/var(--tw-bg-opacity));bottom:0;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%;z-index:0}.progress-inner{position:relative;top:33.333333%}.send-progress-old{margin-left:auto;margin-right:auto;padding:.5rem;width:75%}.icon{height:16px;width:16px}.icon,.icon-lg{background-repeat:no-repeat}.icon-lg{height:64px;width:64px}.copy-icon{background-repeat:no-repeat;height:1.5rem;-webkit-mask-image:url(assets/images/copy-regular.svg);mask-image:url(assets/images/copy-regular.svg);width:1.5rem}.copy-icon,.receive-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.receive-tab-icon{-webkit-mask-image:url(assets/images/download-solid.svg);mask-image:url(assets/images/download-solid.svg)}.send-tab-icon{-webkit-mask-image:url(assets/images/paper-plane-solid.svg);mask-image:url(assets/images/paper-plane-solid.svg)}.send-tab-icon,.settings-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.settings-tab-icon{-webkit-mask-image:url(assets/images/cog-solid.svg);mask-image:url(assets/images/cog-solid.svg)}.about-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-image:url(assets/images/info-circle-solid.svg);mask-image:url(assets/images/info-circle-solid.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.send-file-icon{-webkit-mask-image:url(assets/images/file-upload-solid.svg);mask-image:url(assets/images/file-upload-solid.svg)}.receive-file-icon,.send-file-icon{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.receive-file-icon{-webkit-mask-image:url(assets/images/file-download-solid.svg);mask-image:url(assets/images/file-download-solid.svg)}.folder-select-icon{--tw-bg-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(203 213 225/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);content:\"\";display:block;height:6rem;-webkit-mask-image:url(assets/images/folder-regular.svg);mask-image:url(assets/images/folder-regular.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition-duration:.3s;width:6rem}.folder-select-icon:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.file-select-icon{--tw-bg-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(203 213 225/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);content:\"\";display:block;height:6rem;-webkit-mask-image:url(assets/images/file-regular.svg);mask-image:url(assets/images/file-regular.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition-duration:.3s;width:6rem}.file-select-icon:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.cancel-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.cancel-button:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.cancel-button:active{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.cancel-button:disabled{opacity:.5}.tooltip{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:rgb(226 232 240/var(--tw-bg-opacity));border-color:rgb(15 118 110/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(30 41 59/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;margin-top:-2rem;padding:.25rem;position:absolute;visibility:hidden}.has-tooltip:hover .tooltip{visibility:visible;z-index:50}.checkbox{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity));border-color:rgb(203 213 225/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;height:1rem;width:1rem}.checkbox:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.settings-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding:.25rem;transition-duration:.15s}.settings-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.settings-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.settings-button:disabled{opacity:.5}.visible{visibility:visible}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.z-0{z-index:0}.m-2{margin:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.-mt-8{margin-top:-2rem}.mr-1{margin-right:.25rem}.mb-1{margin-bottom:.25rem}.mt-2{margin-top:.5rem}.mt-1{margin-top:.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.h-24{height:6rem}.h-4{height:1rem}.h-56{height:14rem}.h-full{height:100%}.h-36{height:9rem}.w-28{width:7rem}.w-11\\/12{width:91.666667%}.w-full{width:100%}.w-24{width:6rem}.w-4{width:1rem}.w-72{width:18rem}.w-60{width:15rem}.max-w-md{max-width:28rem}.max-w-lg{max-width:32rem}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.place-items-center{place-items:center}.content-center{align-content:center}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-items-center{justify-items:center}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-lg{border-radius:.5rem}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-transparent{border-color:transparent}.border-green-700{--tw-border-opacity:1;border-color:rgb(15 118 110/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.border-green-300{--tw-border-opacity:1;border-color:rgb(94 234 212/var(--tw-border-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.bg-green-900{--tw-bg-opacity:1;background-color:rgb(19 78 74/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(139 92 246/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-opacity-90{--tw-bg-opacity:0.9}.bg-opacity-60{--tw-bg-opacity:0.6}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.p-2{padding:.5rem}.p-1{padding:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pt-2{padding-top:.5rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.leading-normal{line-height:1.5}.text-gray-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(17 94 89/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(8 145 178/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(6 182 212/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity))}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color)}.shadow-inner,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.duration-150{transition-duration:.15s}.duration-300{transition-duration:.3s}main{height:100%;width:100%}div{overscroll:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hover\\:bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-green-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity))}.active\\:bg-green-800:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}");return new class extends lt{constructor(t){super(),ct(this,t,Zt,Yt,a,{})}}({target:document.body})}(); //# sourceMappingURL=bundle.js.map diff --git a/frontend/dist/bundle.js.map b/frontend/dist/bundle.js.map index bdb2da9..f2439a1 100644 --- a/frontend/dist/bundle.js.map +++ b/frontend/dist/bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"bundle.js","sources":["../node_modules/svelte/internal/index.mjs","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../wailsjs/go/bindings.js","../src/progress.svelte","../src/sender.svelte","../src/receiver.svelte","../src/settings.svelte","../src/about.svelte","../src/App.svelte","../node_modules/style-inject/dist/style-inject.es.js","../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\nfunction start_hydrating() {\n is_hydrating = true;\n}\nfunction end_hydrating() {\n is_hydrating = false;\n}\nfunction upper_bound(low, high, key, value) {\n // Return first index of value larger than input value in the range [low, high)\n while (low < high) {\n const mid = low + ((high - low) >> 1);\n if (key(mid) <= value) {\n low = mid + 1;\n }\n else {\n high = mid;\n }\n }\n return low;\n}\nfunction init_hydrate(target) {\n if (target.hydrate_init)\n return;\n target.hydrate_init = true;\n // We know that all children have claim_order values since the unclaimed have been detached\n const children = target.childNodes;\n /*\n * Reorder claimed children optimally.\n * We can reorder claimed children optimally by finding the longest subsequence of\n * nodes that are already claimed in order and only moving the rest. The longest\n * subsequence subsequence of nodes that are claimed in order can be found by\n * computing the longest increasing subsequence of .claim_order values.\n *\n * This algorithm is optimal in generating the least amount of reorder operations\n * possible.\n *\n * Proof:\n * We know that, given a set of reordering operations, the nodes that do not move\n * always form an increasing subsequence, since they do not move among each other\n * meaning that they must be already ordered among each other. Thus, the maximal\n * set of nodes that do not move form a longest increasing subsequence.\n */\n // Compute longest increasing subsequence\n // m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n const m = new Int32Array(children.length + 1);\n // Predecessor indices + 1\n const p = new Int32Array(children.length);\n m[0] = -1;\n let longest = 0;\n for (let i = 0; i < children.length; i++) {\n const current = children[i].claim_order;\n // Find the largest subsequence length such that it ends in a value less than our current value\n // upper_bound returns first greater value, so we subtract one\n const seqLen = upper_bound(1, longest + 1, idx => children[m[idx]].claim_order, current) - 1;\n p[i] = m[seqLen] + 1;\n const newLen = seqLen + 1;\n // We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n m[newLen] = i;\n longest = Math.max(newLen, longest);\n }\n // The longest increasing subsequence of nodes (initially reversed)\n const lis = [];\n // The rest of the nodes, nodes that will be moved\n const toMove = [];\n let last = children.length - 1;\n for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n lis.push(children[cur - 1]);\n for (; last >= cur; last--) {\n toMove.push(children[last]);\n }\n last--;\n }\n for (; last >= 0; last--) {\n toMove.push(children[last]);\n }\n lis.reverse();\n // We sort the nodes being moved to guarantee that their insertion order matches the claim order\n toMove.sort((a, b) => a.claim_order - b.claim_order);\n // Finally, we move the nodes\n for (let i = 0, j = 0; i < toMove.length; i++) {\n while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {\n j++;\n }\n const anchor = j < lis.length ? lis[j] : null;\n target.insertBefore(toMove[i], anchor);\n }\n}\nfunction append(target, node) {\n if (is_hydrating) {\n init_hydrate(target);\n if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentElement !== target))) {\n target.actual_end_child = target.firstChild;\n }\n if (node !== target.actual_end_child) {\n target.insertBefore(node, target.actual_end_child);\n }\n else {\n target.actual_end_child = node.nextSibling;\n }\n }\n else if (node.parentNode !== target) {\n target.appendChild(node);\n }\n}\nfunction insert(target, node, anchor) {\n if (is_hydrating && !anchor) {\n append(target, node);\n }\n else if (node.parentNode !== target || (anchor && node.nextSibling !== anchor)) {\n target.insertBefore(node, anchor || null);\n }\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {\n // Try to find nodes in an order such that we lengthen the longest increasing subsequence\n if (nodes.claim_info === undefined) {\n nodes.claim_info = { last_index: 0, total_claimed: 0 };\n }\n const resultNode = (() => {\n // We first try to find an element after the previous one\n for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n const node = nodes[i];\n if (predicate(node)) {\n processNode(node);\n nodes.splice(i, 1);\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n return node;\n }\n }\n // Otherwise, we try to find one before\n // We iterate in reverse so that we don't go too far back\n for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n const node = nodes[i];\n if (predicate(node)) {\n processNode(node);\n nodes.splice(i, 1);\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n else {\n // Since we spliced before the last_index, we decrease it\n nodes.claim_info.last_index--;\n }\n return node;\n }\n }\n // If we can't find any matching node, we create a new one\n return createNode();\n })();\n resultNode.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n return resultNode;\n}\nfunction claim_element(nodes, name, attributes, svg) {\n return claim_node(nodes, (node) => node.nodeName === name, (node) => {\n const remove = [];\n for (let j = 0; j < node.attributes.length; j++) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n remove.forEach(v => node.removeAttribute(v));\n }, () => svg ? svg_element(name) : element(name));\n}\nfunction claim_text(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 3, (node) => {\n node.data = '' + data;\n }, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n );\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction find_comment(nodes, text, start) {\n for (let i = start; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n return i;\n }\n }\n return nodes.length;\n}\nfunction claim_html_tag(nodes) {\n // find html opening tag\n const start_index = find_comment(nodes, 'HTML_TAG_START', 0);\n const end_index = find_comment(nodes, 'HTML_TAG_END', start_index);\n if (start_index === end_index) {\n return new HtmlTag();\n }\n const html_tag_nodes = nodes.splice(start_index, end_index + 1);\n detach(html_tag_nodes[0]);\n detach(html_tag_nodes[html_tag_nodes.length - 1]);\n return new HtmlTag(html_tag_nodes.slice(1, html_tag_nodes.length - 1));\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(claimed_nodes) {\n this.e = this.n = null;\n this.l = claimed_nodes;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n if (this.l) {\n this.n = this.l;\n }\n else {\n this.h(html);\n }\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n // @ts-ignore\n callbacks.slice().forEach(fn => fn.call(this, event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${value}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction escape_attribute_value(value) {\n return typeof value === 'string' ? escape(value) : value;\n}\nfunction escape_object(obj) {\n const result = {};\n for (const key in obj) {\n result[key] = escape_attribute_value(obj[key]);\n }\n return result;\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : context || []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n start_hydrating();\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n end_hydrating();\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.3' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * \n * \n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_html_tag, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, end_hydrating, escape, escape_attribute_value, escape_object, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, start_hydrating, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","export { identity as linear } from '../internal/index.mjs';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicInOut, linear, cubicOut } from '../easing/index.mjs';\nimport { is_function, assign } from '../internal/index.mjs';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction blur(node, { delay = 0, duration = 400, easing = cubicInOut, amount = 5, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const f = style.filter === 'none' ? '' : style.filter;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `opacity: ${target_opacity - (od * u)}; filter: ${f} blur(${u * amount}px);`\n };\n}\nfunction fade(node, { delay = 0, duration = 400, easing = linear } = {}) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n easing,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut } = {}) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => 'overflow: hidden;' +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut } = {}) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { blur, crossfade, draw, fade, fly, scale, slide };\n","// @ts-check\n// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL\n// This file is automatically generated. DO NOT EDIT\nwindow.wailsbindings = {\"main\":{\"App\":{\"AppInstalledFromPackageManager\":{\"name\":\"main.App.AppInstalledFromPackageManager\",\"outputs\":[{\"type\":\"bool\"}]},\"CancelWormholeRequest\":{\"name\":\"main.App.CancelWormholeRequest\"},\"ClearSelectedFiles\":{\"name\":\"main.App.ClearSelectedFiles\"},\"GetCurrentVersion\":{\"name\":\"main.App.GetCurrentVersion\",\"outputs\":[{\"type\":\"string\"}]},\"GetLogPath\":{\"name\":\"main.App.GetLogPath\",\"outputs\":[{\"type\":\"string\"}]},\"GetReceivedFile\":{\"name\":\"main.App.GetReceivedFile\",\"outputs\":[{\"type\":\"string\"}]},\"GetSelectedFiles\":{\"name\":\"main.App.GetSelectedFiles\",\"outputs\":[{\"type\":\"[]string\"}]},\"GetUserPrefs\":{\"name\":\"main.App.GetUserPrefs\",\"outputs\":[{\"type\":\"settings.UserSettings\"}]},\"OpenDirectoryDialog\":{\"name\":\"main.App.OpenDirectoryDialog\",\"outputs\":[{\"type\":\"[]string\"},{\"type\":\"error\"}]},\"OpenFile\":{\"name\":\"main.App.OpenFile\",\"inputs\":[{\"type\":\"string\"}]},\"OpenFilesDialog\":{\"name\":\"main.App.OpenFilesDialog\",\"outputs\":[{\"type\":\"[]string\"},{\"type\":\"error\"}]},\"PersistUserSettings\":{\"name\":\"main.App.PersistUserSettings\"},\"ReceiveFile\":{\"name\":\"main.App.ReceiveFile\",\"inputs\":[{\"type\":\"string\"}]},\"SelectedFilesSend\":{\"name\":\"main.App.SelectedFilesSend\"},\"SendDirectory\":{\"name\":\"main.App.SendDirectory\",\"inputs\":[{\"type\":\"string\"}]},\"SendFile\":{\"name\":\"main.App.SendFile\",\"inputs\":[{\"type\":\"string\"}]},\"SetDownloadsFolder\":{\"name\":\"main.App.SetDownloadsFolder\",\"outputs\":[{\"type\":\"string\"}]},\"SetNotificationsParam\":{\"name\":\"main.App.SetNotificationsParam\",\"inputs\":[{\"type\":\"bool\"}],\"outputs\":[{\"type\":\"bool\"}]},\"SetOverwriteParam\":{\"name\":\"main.App.SetOverwriteParam\",\"inputs\":[{\"type\":\"bool\"}],\"outputs\":[{\"type\":\"bool\"}]},\"SetSelfUpdateParam\":{\"name\":\"main.App.SetSelfUpdateParam\",\"inputs\":[{\"type\":\"bool\"}],\"outputs\":[{\"type\":\"bool\"}]},\"ShowErrorDialog\":{\"name\":\"main.App.ShowErrorDialog\",\"inputs\":[{\"type\":\"string\"}]},\"UpdateCheckUI\":{\"name\":\"main.App.UpdateCheckUI\"},\"UpdateSendProgress\":{\"name\":\"main.App.UpdateSendProgress\",\"inputs\":[{\"type\":\"int64\"},{\"type\":\"int64\"}]}}}};\nconst go = {\n \"main\": {\n \"App\": {\n /**\n * AppInstalledFromPackageManager\n * @returns {Promise} - Go Type: bool\n */\n \"AppInstalledFromPackageManager\": () => {\n return window.go.main.App.AppInstalledFromPackageManager();\n },\n /**\n * CancelWormholeRequest\n * @returns {Promise} \n */\n \"CancelWormholeRequest\": () => {\n return window.go.main.App.CancelWormholeRequest();\n },\n /**\n * ClearSelectedFiles\n * @returns {Promise} \n */\n \"ClearSelectedFiles\": () => {\n return window.go.main.App.ClearSelectedFiles();\n },\n /**\n * GetCurrentVersion\n * @returns {Promise} - Go Type: string\n */\n \"GetCurrentVersion\": () => {\n return window.go.main.App.GetCurrentVersion();\n },\n /**\n * GetLogPath\n * @returns {Promise} - Go Type: string\n */\n \"GetLogPath\": () => {\n return window.go.main.App.GetLogPath();\n },\n /**\n * GetReceivedFile\n * @returns {Promise} - Go Type: string\n */\n \"GetReceivedFile\": () => {\n return window.go.main.App.GetReceivedFile();\n },\n /**\n * GetSelectedFiles\n * @returns {Promise>} - Go Type: []string\n */\n \"GetSelectedFiles\": () => {\n return window.go.main.App.GetSelectedFiles();\n },\n /**\n * GetUserPrefs\n * @returns {Promise} - Go Type: settings.UserSettings\n */\n \"GetUserPrefs\": () => {\n return window.go.main.App.GetUserPrefs();\n },\n /**\n * OpenDirectoryDialog\n * @returns {Promise|Error>} - Go Type: []string\n */\n \"OpenDirectoryDialog\": () => {\n return window.go.main.App.OpenDirectoryDialog();\n },\n /**\n * OpenFile\n * @param {string} arg1 - Go Type: string\n * @returns {Promise} \n */\n \"OpenFile\": (arg1) => {\n return window.go.main.App.OpenFile(arg1);\n },\n /**\n * OpenFilesDialog\n * @returns {Promise|Error>} - Go Type: []string\n */\n \"OpenFilesDialog\": () => {\n return window.go.main.App.OpenFilesDialog();\n },\n /**\n * PersistUserSettings\n * @returns {Promise} \n */\n \"PersistUserSettings\": () => {\n return window.go.main.App.PersistUserSettings();\n },\n /**\n * ReceiveFile\n * @param {string} arg1 - Go Type: string\n * @returns {Promise} \n */\n \"ReceiveFile\": (arg1) => {\n return window.go.main.App.ReceiveFile(arg1);\n },\n /**\n * SelectedFilesSend\n * @returns {Promise} \n */\n \"SelectedFilesSend\": () => {\n return window.go.main.App.SelectedFilesSend();\n },\n /**\n * SendDirectory\n * @param {string} arg1 - Go Type: string\n * @returns {Promise} \n */\n \"SendDirectory\": (arg1) => {\n return window.go.main.App.SendDirectory(arg1);\n },\n /**\n * SendFile\n * @param {string} arg1 - Go Type: string\n * @returns {Promise} \n */\n \"SendFile\": (arg1) => {\n return window.go.main.App.SendFile(arg1);\n },\n /**\n * SetDownloadsFolder\n * @returns {Promise} - Go Type: string\n */\n \"SetDownloadsFolder\": () => {\n return window.go.main.App.SetDownloadsFolder();\n },\n /**\n * SetNotificationsParam\n * @param {boolean} arg1 - Go Type: bool\n * @returns {Promise} - Go Type: bool\n */\n \"SetNotificationsParam\": (arg1) => {\n return window.go.main.App.SetNotificationsParam(arg1);\n },\n /**\n * SetOverwriteParam\n * @param {boolean} arg1 - Go Type: bool\n * @returns {Promise} - Go Type: bool\n */\n \"SetOverwriteParam\": (arg1) => {\n return window.go.main.App.SetOverwriteParam(arg1);\n },\n /**\n * SetSelfUpdateParam\n * @param {boolean} arg1 - Go Type: bool\n * @returns {Promise} - Go Type: bool\n */\n \"SetSelfUpdateParam\": (arg1) => {\n return window.go.main.App.SetSelfUpdateParam(arg1);\n },\n /**\n * ShowErrorDialog\n * @param {string} arg1 - Go Type: string\n * @returns {Promise} \n */\n \"ShowErrorDialog\": (arg1) => {\n return window.go.main.App.ShowErrorDialog(arg1);\n },\n /**\n * UpdateCheckUI\n * @returns {Promise} \n */\n \"UpdateCheckUI\": () => {\n return window.go.main.App.UpdateCheckUI();\n },\n /**\n * UpdateSendProgress\n * @param {number} arg1 - Go Type: int64\n * @param {number} arg2 - Go Type: int64\n * @returns {Promise} \n */\n \"UpdateSendProgress\": (arg1, arg2) => {\n return window.go.main.App.UpdateSendProgress(arg1, arg2);\n },\n },\n },\n\n};\nexport default go;\n","\n\n
\n
\n
\n {status}\n {percent}%\n
\n
\n \n
\n \n
\n
\n","\n\n
\n \n \n {#if selectedFiles.length > 0}\n
\n {#each selectedFileNames as fileName, idx}\n {#if idx < 9}\n
\n
\n {fileName}\n
\n {:else if idx == 9}\n
\n ...Total Selected: {selectedFiles.length}\n
\n {/if}\n {/each}\n
\n {:else}\n \n
\n Send Files\n \n
\n
\n Send Directory\n \n
\n
\n {/if}\n
\n
\n {#if selectedFiles.length > 0}\n Clear\n Send\n {/if}\n
\n {#if isSending}\n \n
\n \n
\n {/if}\n \n
\n {/if}\n\n","\n\n
\n \n {#if receivePath}\n \n \n
\n {receiveFileName}\n {#if !isReceiving}\n \n {/if}\n
\n {/if}\n
\n
\n
\n \n \n \n \n
\n {#if isReceiving}\n \n
\n
\n
\n {/if}\n\n","\n\n
\n
\n
Downloads Folder
\n
\n
{downloadsFolder}
\n
\n
\n
\n
\n
Notifications
\n
\n
\n
Overwrite
\n
\n \n \n
\n
Auto Update
\n
\n {#if packageManaged}\n Update from Package Manager\n {:else}\n \n \n {/if}\n
\n
\n
Logs
\n
\n
{logPath}
\n
\n
\n
\n
\n
\n","\n\n
\n
\n Riftshare v{version}\n
\n\n

\n The goal of this project is to enable everyone to securely share files\n freely and easily.\n

\n

Licensed under the GNU GPL Version 3

\n\n
\n

\n This project leverages the work of other Open Source Software\n

\n
    \n {#each Object.entries(attributions) as [name, url]}\n
  • \n {/each}\n
\n
\n
\n","\n\n
\n \n
\n
    \n
  • \n (appMode = \"send\")}\n >\n
    \n Send\n \n
  • \n
  • \n (appMode = \"receive\")}\n >\n
    \n Receive\n \n
  • \n
  • \n (appMode = \"settings\")}\n >\n
    \n Settings\n \n
  • \n
  • \n (appMode = \"about\")}\n >\n
    \n About\n \n
  • \n
\n
\n \n
\n {#if appMode == \"send\"}\n \n {:else if appMode == \"receive\"}\n \n {:else if appMode == \"settings\"}\n \n {:else if appMode == \"about\"}\n \n {/if}\n
\n
\n\n\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import App from './App.svelte';\n\nconst app = new App({\n\ttarget: document.body,\n});\n\nexport default app;"],"names":["noop","identity","x","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","get_slot_context","definition","ctx","$$scope","tar","src","k","assign","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","run_tasks","task","c","delete","f","size","loop","callback","promise","Promise","fulfill","add","abort","is_hydrating","upper_bound","low","high","key","value","mid","append","target","node","hydrate_init","children","childNodes","m","Int32Array","longest","seqLen","idx","claim_order","newLen","lis","toMove","last","cur","push","reverse","sort","j","anchor","insertBefore","init_hydrate","actual_end_child","parentElement","firstChild","nextSibling","parentNode","appendChild","insert","detach","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","getAttribute","setAttribute","set_data","wholeText","set_input_value","input","active_docs","current_component","active","create_rule","duration","delay","ease","uid","step","keyframes","t","rule","str","hash","charCodeAt","doc","ownerDocument","stylesheet","__svelte_stylesheet","head","sheet","current_rules","__svelte_rules","insertRule","cssRules","animation","style","delete_rule","previous","split","next","filter","anim","indexOf","deleted","join","deleteRule","clear","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","flush","update","pop","has","fragment","before_update","after_update","wait","then","dispatch","direction","kind","dispatchEvent","type","detail","e","createEvent","initCustomEvent","custom_event","outroing","outros","group_outros","r","check_outros","transition_in","block","local","transition_out","o","null_transition","create_in_transition","params","animation_name","config","running","cleanup","go","easing","tick","css","start_time","end_time","started","start","invalidate","end","create_bidirectional_transition","intro","running_program","pending_program","clear_animation","init","program","abs","group","create_component","mount_component","customElement","on_destroy","new_on_destroy","map","destroy_component","make_dirty","fill","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","context","Map","callbacks","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","l","SvelteComponent","$destroy","this","$on","index","splice","$set","$$props","obj","$$set","keys","cubicOut","slide","getComputedStyle","opacity","height","parseFloat","padding_top","paddingTop","padding_bottom","paddingBottom","margin_top","marginTop","margin_bottom","marginBottom","border_top_width","borderTopWidth","border_bottom_width","borderBottomWidth","min","wailsbindings","main","App","AppInstalledFromPackageManager","outputs","CancelWormholeRequest","ClearSelectedFiles","GetCurrentVersion","GetLogPath","GetReceivedFile","GetSelectedFiles","GetUserPrefs","OpenDirectoryDialog","OpenFile","inputs","OpenFilesDialog","PersistUserSettings","ReceiveFile","SelectedFilesSend","SendDirectory","SendFile","SetDownloadsFolder","SetNotificationsParam","SetOverwriteParam","SetSelfUpdateParam","ShowErrorDialog","UpdateCheckUI","UpdateSendProgress","arg1","arg2","slot_ctx","toString","status","waiting","percent","copyCode","copyText","getElementById","select","setSelectionRange","navigator","clipboard","writeText","String","prototype","trimEllip","substring","sendCode","sendPercent","selectedFiles","isSending","runtime","EventsOn","newCode","sendStatus","setTimeout","filePaths","selectedFileNames","fileName","selection","catch","err","console","log","preventDefault","call","receivePattern","receiveCode","receivePercent","isReceiving","receivePath","path","receiveStatus","receiveCodeValid","test","receiveFileName","downloadsFolder","logPath","notifications","overwrite","selfUpdate","packageManaged","prefs","downloadsDirectory","managed","folder","newValue","BrowserOpenURL","entries","version","ver","svelte","tailwindcss","url","appMode","ref","insertAt","getElementsByTagName","styleSheet","cssText","body"],"mappings":"gCAAA,SAASA,KACT,MAAMC,EAAWC,GAAKA,EAetB,SAASC,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EAkChF,SAASE,EAAiBC,EAAYC,EAAKC,EAASf,GAChD,OAAOa,EAAW,IAAMb,EA9D5B,SAAgBgB,EAAKC,GAEjB,IAAK,MAAMC,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EA2DDG,CAAOJ,EAAQD,IAAIM,QAASP,EAAW,GAAGb,EAAGc,KAC7CC,EAAQD,IAoBlB,SAASO,EAAYC,EAAMC,EAAiBT,EAAKC,EAASS,EAAOC,EAAqBC,GAClF,MAAMC,EAnBV,SAA0Bd,EAAYE,EAASS,EAAOxB,GAClD,GAAIa,EAAW,IAAMb,EAAI,CACrB,MAAM4B,EAAOf,EAAW,GAAGb,EAAGwB,IAC9B,QAAsBK,IAAlBd,EAAQS,MACR,OAAOI,EAEX,GAAoB,iBAATA,EAAmB,CAC1B,MAAME,EAAS,GACTC,EAAMC,KAAKC,IAAIlB,EAAQS,MAAMU,OAAQN,EAAKM,QAChD,IAAK,IAAIC,EAAI,EAAGA,EAAIJ,EAAKI,GAAK,EAC1BL,EAAOK,GAAKpB,EAAQS,MAAMW,GAAKP,EAAKO,GAExC,OAAOL,EAEX,OAAOf,EAAQS,MAAQI,EAE3B,OAAOb,EAAQS,MAGMY,CAAiBb,EAAiBR,EAASS,EAAOC,GACvE,GAAIE,EAAc,CACd,MAAMU,EAAezB,EAAiBW,EAAiBT,EAAKC,EAASW,G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,QAAQ,GAC9D/O,EAAQ/C,SAASC,cAAc,SACnC8C,EAAM0C,KAAO,WAEI,QAAboM,GACErP,EAAKrD,WACPqD,EAAKzD,aAAagE,EAAOP,EAAKrD,YAKhCqD,EAAKlD,YAAYyD,GAGfA,EAAMgP,WACRhP,EAAMgP,WAAWC,QAAU7K,EAE3BpE,EAAMzD,YAAYU,SAASI,eAAe+G,+rzBCrBlC,oEAAQ,CACnBzJ,OAAQsC,SAASiS"} \ No newline at end of file +{"version":3,"file":"bundle.js","sources":["../node_modules/svelte/internal/index.mjs","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../wailsjs/go/bindings.js","../src/progress.svelte","../src/sender.svelte","../src/receiver.svelte","../src/settings.svelte","../src/about.svelte","../src/App.svelte","../node_modules/style-inject/dist/style-inject.es.js","../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\nfunction start_hydrating() {\n is_hydrating = true;\n}\nfunction end_hydrating() {\n is_hydrating = false;\n}\nfunction upper_bound(low, high, key, value) {\n // Return first index of value larger than input value in the range [low, high)\n while (low < high) {\n const mid = low + ((high - low) >> 1);\n if (key(mid) <= value) {\n low = mid + 1;\n }\n else {\n high = mid;\n }\n }\n return low;\n}\nfunction init_hydrate(target) {\n if (target.hydrate_init)\n return;\n target.hydrate_init = true;\n // We know that all children have claim_order values since the unclaimed have been detached\n const children = target.childNodes;\n /*\n * Reorder claimed children optimally.\n * We can reorder claimed children optimally by finding the longest subsequence of\n * nodes that are already claimed in order and only moving the rest. The longest\n * subsequence subsequence of nodes that are claimed in order can be found by\n * computing the longest increasing subsequence of .claim_order values.\n *\n * This algorithm is optimal in generating the least amount of reorder operations\n * possible.\n *\n * Proof:\n * We know that, given a set of reordering operations, the nodes that do not move\n * always form an increasing subsequence, since they do not move among each other\n * meaning that they must be already ordered among each other. Thus, the maximal\n * set of nodes that do not move form a longest increasing subsequence.\n */\n // Compute longest increasing subsequence\n // m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n const m = new Int32Array(children.length + 1);\n // Predecessor indices + 1\n const p = new Int32Array(children.length);\n m[0] = -1;\n let longest = 0;\n for (let i = 0; i < children.length; i++) {\n const current = children[i].claim_order;\n // Find the largest subsequence length such that it ends in a value less than our current value\n // upper_bound returns first greater value, so we subtract one\n const seqLen = upper_bound(1, longest + 1, idx => children[m[idx]].claim_order, current) - 1;\n p[i] = m[seqLen] + 1;\n const newLen = seqLen + 1;\n // We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n m[newLen] = i;\n longest = Math.max(newLen, longest);\n }\n // The longest increasing subsequence of nodes (initially reversed)\n const lis = [];\n // The rest of the nodes, nodes that will be moved\n const toMove = [];\n let last = children.length - 1;\n for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n lis.push(children[cur - 1]);\n for (; last >= cur; last--) {\n toMove.push(children[last]);\n }\n last--;\n }\n for (; last >= 0; last--) {\n toMove.push(children[last]);\n }\n lis.reverse();\n // We sort the nodes being moved to guarantee that their insertion order matches the claim order\n toMove.sort((a, b) => a.claim_order - b.claim_order);\n // Finally, we move the nodes\n for (let i = 0, j = 0; i < toMove.length; i++) {\n while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {\n j++;\n }\n const anchor = j < lis.length ? lis[j] : null;\n target.insertBefore(toMove[i], anchor);\n }\n}\nfunction append(target, node) {\n if (is_hydrating) {\n init_hydrate(target);\n if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentElement !== target))) {\n target.actual_end_child = target.firstChild;\n }\n if (node !== target.actual_end_child) {\n target.insertBefore(node, target.actual_end_child);\n }\n else {\n target.actual_end_child = node.nextSibling;\n }\n }\n else if (node.parentNode !== target) {\n target.appendChild(node);\n }\n}\nfunction insert(target, node, anchor) {\n if (is_hydrating && !anchor) {\n append(target, node);\n }\n else if (node.parentNode !== target || (anchor && node.nextSibling !== anchor)) {\n target.insertBefore(node, anchor || null);\n }\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {\n // Try to find nodes in an order such that we lengthen the longest increasing subsequence\n if (nodes.claim_info === undefined) {\n nodes.claim_info = { last_index: 0, total_claimed: 0 };\n }\n const resultNode = (() => {\n // We first try to find an element after the previous one\n for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n const node = nodes[i];\n if (predicate(node)) {\n processNode(node);\n nodes.splice(i, 1);\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n return node;\n }\n }\n // Otherwise, we try to find one before\n // We iterate in reverse so that we don't go too far back\n for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n const node = nodes[i];\n if (predicate(node)) {\n processNode(node);\n nodes.splice(i, 1);\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n else {\n // Since we spliced before the last_index, we decrease it\n nodes.claim_info.last_index--;\n }\n return node;\n }\n }\n // If we can't find any matching node, we create a new one\n return createNode();\n })();\n resultNode.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n return resultNode;\n}\nfunction claim_element(nodes, name, attributes, svg) {\n return claim_node(nodes, (node) => node.nodeName === name, (node) => {\n const remove = [];\n for (let j = 0; j < node.attributes.length; j++) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n remove.forEach(v => node.removeAttribute(v));\n }, () => svg ? svg_element(name) : element(name));\n}\nfunction claim_text(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 3, (node) => {\n node.data = '' + data;\n }, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n );\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction find_comment(nodes, text, start) {\n for (let i = start; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n return i;\n }\n }\n return nodes.length;\n}\nfunction claim_html_tag(nodes) {\n // find html opening tag\n const start_index = find_comment(nodes, 'HTML_TAG_START', 0);\n const end_index = find_comment(nodes, 'HTML_TAG_END', start_index);\n if (start_index === end_index) {\n return new HtmlTag();\n }\n const html_tag_nodes = nodes.splice(start_index, end_index + 1);\n detach(html_tag_nodes[0]);\n detach(html_tag_nodes[html_tag_nodes.length - 1]);\n return new HtmlTag(html_tag_nodes.slice(1, html_tag_nodes.length - 1));\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(claimed_nodes) {\n this.e = this.n = null;\n this.l = claimed_nodes;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n if (this.l) {\n this.n = this.l;\n }\n else {\n this.h(html);\n }\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n // @ts-ignore\n callbacks.slice().forEach(fn => fn.call(this, event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${value}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction escape_attribute_value(value) {\n return typeof value === 'string' ? escape(value) : value;\n}\nfunction escape_object(obj) {\n const result = {};\n for (const key in obj) {\n result[key] = escape_attribute_value(obj[key]);\n }\n return result;\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : context || []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n start_hydrating();\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n end_hydrating();\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.3' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * \n * \n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_html_tag, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, end_hydrating, escape, escape_attribute_value, escape_object, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, start_hydrating, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","export { identity as linear } from '../internal/index.mjs';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicInOut, linear, cubicOut } from '../easing/index.mjs';\nimport { is_function, assign } from '../internal/index.mjs';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction blur(node, { delay = 0, duration = 400, easing = cubicInOut, amount = 5, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const f = style.filter === 'none' ? '' : style.filter;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `opacity: ${target_opacity - (od * u)}; filter: ${f} blur(${u * amount}px);`\n };\n}\nfunction fade(node, { delay = 0, duration = 400, easing = linear } = {}) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n easing,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut } = {}) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => 'overflow: hidden;' +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut } = {}) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { blur, crossfade, draw, fade, fly, scale, slide };\n","// @ts-check\n// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL\n// This file is automatically generated. DO NOT EDIT\nwindow.wailsbindings = {\"main\":{\"App\":{\"AppInstalledFromPackageManager\":{\"name\":\"main.App.AppInstalledFromPackageManager\",\"outputs\":[{\"type\":\"bool\"}]},\"CancelWormholeRequest\":{\"name\":\"main.App.CancelWormholeRequest\"},\"ClearSelectedFiles\":{\"name\":\"main.App.ClearSelectedFiles\"},\"GetCurrentVersion\":{\"name\":\"main.App.GetCurrentVersion\",\"outputs\":[{\"type\":\"string\"}]},\"GetLogPath\":{\"name\":\"main.App.GetLogPath\",\"outputs\":[{\"type\":\"string\"}]},\"GetReceivedFile\":{\"name\":\"main.App.GetReceivedFile\",\"outputs\":[{\"type\":\"string\"}]},\"GetSelectedFiles\":{\"name\":\"main.App.GetSelectedFiles\",\"outputs\":[{\"type\":\"[]string\"}]},\"GetUserPrefs\":{\"name\":\"main.App.GetUserPrefs\",\"outputs\":[{\"type\":\"settings.UserSettings\"}]},\"OpenDirectoryDialog\":{\"name\":\"main.App.OpenDirectoryDialog\",\"outputs\":[{\"type\":\"[]string\"},{\"type\":\"error\"}]},\"OpenFile\":{\"name\":\"main.App.OpenFile\",\"inputs\":[{\"type\":\"string\"}]},\"OpenFilesDialog\":{\"name\":\"main.App.OpenFilesDialog\",\"outputs\":[{\"type\":\"[]string\"},{\"type\":\"error\"}]},\"PersistUserSettings\":{\"name\":\"main.App.PersistUserSettings\"},\"ReceiveFile\":{\"name\":\"main.App.ReceiveFile\",\"inputs\":[{\"type\":\"string\"}]},\"SelectedFilesSend\":{\"name\":\"main.App.SelectedFilesSend\"},\"SendDirectory\":{\"name\":\"main.App.SendDirectory\",\"inputs\":[{\"type\":\"string\"}]},\"SendFile\":{\"name\":\"main.App.SendFile\",\"inputs\":[{\"type\":\"string\"}]},\"SetDownloadsFolder\":{\"name\":\"main.App.SetDownloadsFolder\",\"outputs\":[{\"type\":\"string\"}]},\"SetNotificationsParam\":{\"name\":\"main.App.SetNotificationsParam\",\"inputs\":[{\"type\":\"bool\"}],\"outputs\":[{\"type\":\"bool\"}]},\"SetOverwriteParam\":{\"name\":\"main.App.SetOverwriteParam\",\"inputs\":[{\"type\":\"bool\"}],\"outputs\":[{\"type\":\"bool\"}]},\"SetSelfUpdateParam\":{\"name\":\"main.App.SetSelfUpdateParam\",\"inputs\":[{\"type\":\"bool\"}],\"outputs\":[{\"type\":\"bool\"}]},\"ShowErrorDialog\":{\"name\":\"main.App.ShowErrorDialog\",\"inputs\":[{\"type\":\"string\"}]},\"UpdateCheckUI\":{\"name\":\"main.App.UpdateCheckUI\"},\"UpdateSendProgress\":{\"name\":\"main.App.UpdateSendProgress\",\"inputs\":[{\"type\":\"int64\"},{\"type\":\"int64\"}]}}}};\nconst go = {\n \"main\": {\n \"App\": {\n /**\n * AppInstalledFromPackageManager\n * @returns {Promise} - Go Type: bool\n */\n \"AppInstalledFromPackageManager\": () => {\n return window.go.main.App.AppInstalledFromPackageManager();\n },\n /**\n * CancelWormholeRequest\n * @returns {Promise} \n */\n \"CancelWormholeRequest\": () => {\n return window.go.main.App.CancelWormholeRequest();\n },\n /**\n * ClearSelectedFiles\n * @returns {Promise} \n */\n \"ClearSelectedFiles\": () => {\n return window.go.main.App.ClearSelectedFiles();\n },\n /**\n * GetCurrentVersion\n * @returns {Promise} - Go Type: string\n */\n \"GetCurrentVersion\": () => {\n return window.go.main.App.GetCurrentVersion();\n },\n /**\n * GetLogPath\n * @returns {Promise} - Go Type: string\n */\n \"GetLogPath\": () => {\n return window.go.main.App.GetLogPath();\n },\n /**\n * GetReceivedFile\n * @returns {Promise} - Go Type: string\n */\n \"GetReceivedFile\": () => {\n return window.go.main.App.GetReceivedFile();\n },\n /**\n * GetSelectedFiles\n * @returns {Promise>} - Go Type: []string\n */\n \"GetSelectedFiles\": () => {\n return window.go.main.App.GetSelectedFiles();\n },\n /**\n * GetUserPrefs\n * @returns {Promise} - Go Type: settings.UserSettings\n */\n \"GetUserPrefs\": () => {\n return window.go.main.App.GetUserPrefs();\n },\n /**\n * OpenDirectoryDialog\n * @returns {Promise|Error>} - Go Type: []string\n */\n \"OpenDirectoryDialog\": () => {\n return window.go.main.App.OpenDirectoryDialog();\n },\n /**\n * OpenFile\n * @param {string} arg1 - Go Type: string\n * @returns {Promise} \n */\n \"OpenFile\": (arg1) => {\n return window.go.main.App.OpenFile(arg1);\n },\n /**\n * OpenFilesDialog\n * @returns {Promise|Error>} - Go Type: []string\n */\n \"OpenFilesDialog\": () => {\n return window.go.main.App.OpenFilesDialog();\n },\n /**\n * PersistUserSettings\n * @returns {Promise} \n */\n \"PersistUserSettings\": () => {\n return window.go.main.App.PersistUserSettings();\n },\n /**\n * ReceiveFile\n * @param {string} arg1 - Go Type: string\n * @returns {Promise} \n */\n \"ReceiveFile\": (arg1) => {\n return window.go.main.App.ReceiveFile(arg1);\n },\n /**\n * SelectedFilesSend\n * @returns {Promise} \n */\n \"SelectedFilesSend\": () => {\n return window.go.main.App.SelectedFilesSend();\n },\n /**\n * SendDirectory\n * @param {string} arg1 - Go Type: string\n * @returns {Promise} \n */\n \"SendDirectory\": (arg1) => {\n return window.go.main.App.SendDirectory(arg1);\n },\n /**\n * SendFile\n * @param {string} arg1 - Go Type: string\n * @returns {Promise} \n */\n \"SendFile\": (arg1) => {\n return window.go.main.App.SendFile(arg1);\n },\n /**\n * SetDownloadsFolder\n * @returns {Promise} - Go Type: string\n */\n \"SetDownloadsFolder\": () => {\n return window.go.main.App.SetDownloadsFolder();\n },\n /**\n * SetNotificationsParam\n * @param {boolean} arg1 - Go Type: bool\n * @returns {Promise} - Go Type: bool\n */\n \"SetNotificationsParam\": (arg1) => {\n return window.go.main.App.SetNotificationsParam(arg1);\n },\n /**\n * SetOverwriteParam\n * @param {boolean} arg1 - Go Type: bool\n * @returns {Promise} - Go Type: bool\n */\n \"SetOverwriteParam\": (arg1) => {\n return window.go.main.App.SetOverwriteParam(arg1);\n },\n /**\n * SetSelfUpdateParam\n * @param {boolean} arg1 - Go Type: bool\n * @returns {Promise} - Go Type: bool\n */\n \"SetSelfUpdateParam\": (arg1) => {\n return window.go.main.App.SetSelfUpdateParam(arg1);\n },\n /**\n * ShowErrorDialog\n * @param {string} arg1 - Go Type: string\n * @returns {Promise} \n */\n \"ShowErrorDialog\": (arg1) => {\n return window.go.main.App.ShowErrorDialog(arg1);\n },\n /**\n * UpdateCheckUI\n * @returns {Promise} \n */\n \"UpdateCheckUI\": () => {\n return window.go.main.App.UpdateCheckUI();\n },\n /**\n * UpdateSendProgress\n * @param {number} arg1 - Go Type: int64\n * @param {number} arg2 - Go Type: int64\n * @returns {Promise} \n */\n \"UpdateSendProgress\": (arg1, arg2) => {\n return window.go.main.App.UpdateSendProgress(arg1, arg2);\n },\n },\n },\n\n};\nexport default go;\n","\n\n
\n
\n
\n {status}\n {percent}%\n
\n
\n \n
\n \n
\n
\n","\n\n
\n \n \n {#if selectedFiles.length > 0}\n
\n {#each selectedFileNames as fileName, idx}\n {#if idx < 9}\n
\n
\n {fileName}\n
\n {:else if idx == 9}\n
\n ...Total Selected: {selectedFiles.length}\n
\n {/if}\n {/each}\n
\n {:else}\n \n
\n Send Files\n \n
\n
\n Send Directory\n \n
\n
\n {/if}\n
\n
\n {#if selectedFiles.length > 0}\n Clear\n Send\n {/if}\n
\n {#if isSending}\n \n
\n \n
\n \n {/if}\n \n
\n {/if}\n\n","\n\n
\n \n {#if receivePath}\n \n \n
\n {receiveFileName}\n {#if !isReceiving}\n \n {/if}\n
\n {/if}\n
\n
\n
\n \n \n \n \n
\n {#if isReceiving}\n \n
\n
\n
\n {/if}\n\n","\n\n
\n
\n
Downloads Folder
\n
\n
{downloadsFolder}
\n
\n
\n
\n
\n
Notifications
\n
\n
\n
Overwrite
\n
\n \n \n
\n
Auto Update
\n
\n {#if packageManaged}\n Update from Package Manager\n {:else}\n \n \n {/if}\n
\n
\n
Logs
\n
\n
{logPath}
\n
\n
\n
\n
\n
\n","\n\n
\n
\n Riftshare v{version}\n
\n\n

\n The goal of this project is to enable everyone to securely share files\n freely and easily.\n

\n

Licensed under the GNU GPL Version 3

\n\n
\n

\n This project leverages the work of other Open Source Software\n

\n
    \n {#each Object.entries(attributions) as [name, url]}\n
  • \n {/each}\n
\n
\n
\n","\n\n
\n \n
\n
    \n
  • \n (appMode = \"send\")}\n >\n
    \n Send\n \n
  • \n
  • \n (appMode = \"receive\")}\n >\n
    \n Receive\n \n
  • \n
  • \n (appMode = \"settings\")}\n >\n
    \n Settings\n \n
  • \n
  • \n (appMode = \"about\")}\n >\n
    \n About\n \n
  • \n
\n
\n \n
\n {#if appMode == \"send\"}\n \n {:else if appMode == \"receive\"}\n \n {:else if appMode == \"settings\"}\n \n {:else if appMode == \"about\"}\n \n {/if}\n
\n
\n\n\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import App from './App.svelte';\n\nconst app = new App({\n\ttarget: document.body,\n});\n\nexport default app;"],"names":["noop","identity","x","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","get_slot_context","definition","ctx","$$scope","tar","src","k","assign","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","run_tasks","task","c","delete","f","size","loop","callback","promise","Promise","fulfill","add","abort","is_hydrating","upper_bound","low","high","key","value","mid","append","target","node","hydrate_init","children","childNodes","m","Int32Array","longest","seqLen","idx","claim_order","newLen","lis","toMove","last","cur","push","reverse","sort","j","anchor","insertBefore","init_hydrate","actual_end_child","parentElement","firstChild","nextSibling","parentNode","appendChild","insert","detach","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","getAttribute","setAttribute","set_data","wholeText","set_input_value","input","active_docs","current_component","active","create_rule","duration","delay","ease","uid","step","keyframes","t","rule","str","hash","charCodeAt","doc","ownerDocument","stylesheet","__svelte_stylesheet","head","sheet","current_rules","__svelte_rules","insertRule","cssRules","animation","style","delete_rule","previous","split","next","filter","anim","indexOf","deleted","join","deleteRule","clear","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","flush","update","pop","has","fragment","before_update","after_update","wait","then","dispatch","direction","kind","dispatchEvent","type","detail","e","createEvent","initCustomEvent","custom_event","outroing","outros","group_outros","r","check_outros","transition_in","block","local","transition_out","o","null_transition","create_in_transition","params","animation_name","config","running","cleanup","go","easing","tick","css","start_time","end_time","started","start","invalidate","end","create_bidirectional_transition","intro","running_program","pending_program","clear_animation","init","program","abs","group","create_component","mount_component","customElement","on_destroy","new_on_destroy","map","destroy_component","make_dirty","fill","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","context","Map","callbacks","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","l","SvelteComponent","$destroy","this","$on","index","splice","$set","$$props","obj","$$set","keys","cubicOut","slide","getComputedStyle","opacity","height","parseFloat","padding_top","paddingTop","padding_bottom","paddingBottom","margin_top","marginTop","margin_bottom","marginBottom","border_top_width","borderTopWidth","border_bottom_width","borderBottomWidth","min","wailsbindings","main","App","AppInstalledFromPackageManager","outputs","CancelWormholeRequest","ClearSelectedFiles","GetCurrentVersion","GetLogPath","GetReceivedFile","GetSelectedFiles","GetUserPrefs","OpenDirectoryDialog","OpenFile","inputs","OpenFilesDialog","PersistUserSettings","ReceiveFile","SelectedFilesSend","SendDirectory","SendFile","SetDownloadsFolder","SetNotificationsParam","SetOverwriteParam","SetSelfUpdateParam","ShowErrorDialog","UpdateCheckUI","UpdateSendProgress","arg1","arg2","slot_ctx","toString","status","waiting","percent","copyCode","copyText","getElementById","select","setSelectionRange","navigator","clipboard","writeText","String","prototype","trimEllip","substring","sendCode","sendPercent","selectedFiles","isSending","runtime","EventsOn","newCode","sendStatus","setTimeout","filePaths","selectedFileNames","fileName","selection","catch","err","console","log","preventDefault","call","receivePattern","receiveCode","receivePercent","isReceiving","receivePath","path","receiveStatus","receiveCodeValid","test","receiveFileName","downloadsFolder","logPath","notifications","overwrite","selfUpdate","packageManaged","prefs","downloadsDirectory","managed","folder","newValue","BrowserOpenURL","entries","version","ver","svelte","tailwindcss","url","appMode","ref","insertAt","getElementsByTagName","styleSheet","cssText","body"],"mappings":"gCAAA,SAASA,KACT,MAAMC,EAAWC,GAAKA,EAetB,SAASC,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EAkChF,SAASE,EAAiBC,EAAYC,EAAKC,EAASf,GAChD,OAAOa,EAAW,IAAMb,EA9D5B,SAAgBgB,EAAKC,GAEjB,IAAK,MAAMC,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EA2DDG,CAAOJ,EAAQD,IAAIM,QAASP,EAAW,GAAGb,EAAGc,KAC7CC,EAAQD,IAoBlB,SAASO,EAAYC,EAAMC,EAAiBT,EAAKC,EAASS,EAAOC,EAAqBC,GAClF,MAAMC,EAnBV,SAA0Bd,EAAYE,EAASS,EAAOxB,GAClD,GAAIa,EAAW,IAAMb,EAAI,CACrB,MAAM4B,EAAOf,EAAW,GAAGb,EAAGwB,IAC9B,QAAsBK,IAAlBd,EAAQS,MACR,OAAOI,EAEX,GAAoB,iBAATA,EAAmB,CAC1B,MAAME,EAAS,GACTC,EAAMC,KAAKC,IAAIlB,EAAQS,MAAMU,OAAQN,EAAKM,QAChD,IAAK,IAAIC,EAAI,EAAGA,EAAIJ,EAAKI,GAAK,EAC1BL,EAAOK,GAAKpB,EAAQS,MAAMW,GAAKP,EAAKO,GAExC,OAAOL,EAEX,OAAOf,EAAQS,MAAQI,EAE3B,OAAOb,EAAQS,MAGMY,CAAiBb,EAAiBR,EAASS,EAAOC,GACvE,GAAIE,EAAc,CACd,MAAMU,EAAezB,EAAiBW,EAAiBT,EAAKC,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qBAAqB,QAAQ,GAC9D/O,EAAQ/C,SAASC,cAAc,SACnC8C,EAAM0C,KAAO,WAEI,QAAboM,GACErP,EAAKrD,WACPqD,EAAKzD,aAAagE,EAAOP,EAAKrD,YAKhCqD,EAAKlD,YAAYyD,GAGfA,EAAMgP,WACRhP,EAAMgP,WAAWC,QAAU7K,EAE3BpE,EAAMzD,YAAYU,SAASI,eAAe+G,0k1BCrBlC,oEAAQ,CACnBzJ,OAAQsC,SAASiS"} \ No newline at end of file diff --git a/frontend/src/assets/images/copy-regular.svg b/frontend/src/assets/images/copy-regular.svg new file mode 100644 index 0000000..9f9d337 --- /dev/null +++ b/frontend/src/assets/images/copy-regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/src/sender.svelte b/frontend/src/sender.svelte index dee9921..e053546 100644 --- a/frontend/src/sender.svelte +++ b/frontend/src/sender.svelte @@ -183,6 +183,7 @@ {#if sendCode}
+
- + +
{/if} diff --git a/frontend/src/styles.pcss b/frontend/src/styles.pcss index 359ee11..0fe0423 100644 --- a/frontend/src/styles.pcss +++ b/frontend/src/styles.pcss @@ -17,14 +17,19 @@ div { @apply rounded-lg p-2 bg-green-500 duration-150 text-gray-200 hover:bg-green-700 active:bg-green-800; } .send-input { - @apply border border-transparent focus:outline-none focus:ring-2 focus:ring-green-300 focus:border-transparent bg-gray-700 text-gray-200 rounded-md shadow-inner shadow-md; + @apply border border-transparent focus:outline-none focus:ring-2 focus:ring-green-300 focus:border-transparent bg-gray-700 text-gray-200 rounded-l-md shadow-inner shadow-md; } .send-input-label { - @apply block text-sm text-gray-200; + @apply block text-sm text-gray-300; } .send-button { @apply rounded-lg px-4 py-2 bg-green-600 duration-150 text-gray-200 hover:bg-green-700 disabled:opacity-50 active:bg-green-800; } + + .copy-button { + @apply rounded-r-md px-2 py-2 bg-green-600 duration-150 text-gray-200 hover:bg-green-700 disabled:opacity-50 active:bg-green-800 w-10; + } + .receive-input { @apply border border-transparent focus:outline-none focus:ring-2 focus:ring-green-300 focus:border-transparent bg-gray-800 text-gray-200 rounded-l-md shadow-inner shadow-md; } @@ -96,6 +101,16 @@ div { background-repeat: no-repeat; } + .copy-icon { + height: 1.5rem; + width: 1.5rem; + background-repeat: no-repeat; + mask-image: url("./assets/images/copy-regular.svg"); + mask-repeat: no-repeat; + mask-position: center; + @apply bg-gray-900; + } + .receive-tab-icon { mask-image: url("./assets/images/download-solid.svg"); mask-repeat: no-repeat;