Fixed so the frontend dont store origin address

This commit is contained in:
2026-02-22 20:52:26 +01:00
parent ea90f8bc7f
commit d203fab334
43 changed files with 70 additions and 81 deletions

6
.gitignore vendored
View File

@@ -1,8 +1,8 @@
cmake-build-debug
cmake-build-release
build/
pkg
src/
/build
/pkg
/src
# JetBrains IDEs
.idea/

View File

@@ -68,9 +68,6 @@ add_executable(${TARGET_NAME}
source/login/SessionHandler.cpp
)
# requiered packages
target_compile_definitions(${TARGET_NAME} PRIVATE ASIO_STANDALONE)
# warnings to ignore
target_compile_options(${TARGET_NAME} PRIVATE
$<$<COMPILE_LANGUAGE:CXX>:
@@ -93,6 +90,7 @@ target_link_options(${TARGET_NAME} PRIVATE
target_compile_definitions(${TARGET_NAME} PRIVATE
APPLICATION_NAME="${TARGET_NAME}"
SQLITE_THREADSAFE=1
ASIO_STANDALONE
)
target_link_libraries(${TARGET_NAME} pthread)

View File

@@ -1,7 +1,7 @@
# Maintainer: Lukas Forsberg lukas96.forsberg@gmail.com
pkgname=shadowrun-server
pkgver=0.1.1
pkgver=0.1.2
pkgrel=1
arch=('x86_64')
depends=()

View File

@@ -32,7 +32,7 @@ npm run build
1. tar the source files to make it cleaner
```
tar czf shadowrun-server-0.1.1.tar.gz source/ modules/ assets/ frontend/build/ shadowrun-server.service CMakeLists.txt shadowrun-server.install
tar czf shadowrun-server-0.1.2.tar.gz source/ modules/ assets/ frontend/build/ shadowrun-server.service CMakeLists.txt shadowrun-server.install
```
2. create the package
@@ -43,7 +43,13 @@ makepkg -f
3. place the package in archrepo on server
```
scp shadowrun-server-0.1.1-1-x86_64.pkg.tar.zst lukas@192.168.1.101:/home/lukas/Drive/archrepo/x86_64/
scp shadowrun-server-0.1.2-1-x86_64.pkg.tar.zst lukas@192.168.1.101:/home/lukas/Drive/archrepo/x86_64/
```
4.
Then install on host machine with
```
sudo pacman -U <pkg>.tar.zst
```
## Database

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{b as o,h as f,a as c,E as d,d as b,H as E,s as T,e as p,f as _}from"./DxMC-E2z.js";import{B as y}from"./DrX-8T7E.js";function v(t,i,h=!1){f&&c();var e=new y(t),u=h?d:0;function n(a,s){if(f){const l=b(t)===E;if(a===l){var r=T();p(r),e.anchor=r,_(!1),e.ensure(a,s),_(!0);return}}e.ensure(a,s)}o(()=>{var a=!1;i((s,r=!0)=>{a=!0,n(r,s)}),a||n(!1,null)},u)}export{v as i};

View File

@@ -1 +0,0 @@
import{u as c,v as p}from"./a9_IrBSG.js";const e=[];function h(n,b=c){let i=null;const o=new Set;function r(t){if(p(n,t)&&(n=t,i)){const u=!e.length;for(const s of o)s[1](),e.push(s,n);if(u){for(let s=0;s<e.length;s+=2)e[s][0](e[s+1]);e.length=0}}}function f(t){r(t(n))}function l(t,u=c){const s=[t,u];return o.add(s),o.size===1&&(i=b(r,f)||c),t(n),()=>{o.delete(s),o.size===0&&i&&(i(),i=null)}}return{set:r,update:f,subscribe:l}}export{h as w};

View File

@@ -1 +0,0 @@
import{$ as u,a0 as b,U as k,a1 as m,h as _,i as s,a2 as i}from"./a9_IrBSG.js";import{w as y}from"./BXL361Aj.js";function j(e,a,v=a){var c=new WeakSet;u(e,"input",async r=>{var l=r?e.defaultValue:e.value;if(l=d(e)?t(l):l,v(l),s!==null&&c.add(s),await b(),l!==(l=a())){var n=e.selectionStart,f=e.selectionEnd,h=e.value.length;if(e.value=l??"",f!==null){var o=e.value.length;n===f&&f===h&&o>h?(e.selectionStart=o,e.selectionEnd=o):(e.selectionStart=n,e.selectionEnd=Math.min(f,o))}}}),(_&&e.defaultValue!==e.value||k(a)==null&&e.value)&&(v(d(e)?t(e.value):e.value),s!==null&&c.add(s)),m(()=>{var r=a();if(e===document.activeElement){var l=i??s;if(c.has(l))return}d(e)&&r===t(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function B(e,a,v=a){u(e,"change",c=>{var r=c?e.defaultChecked:e.checked;v(r)}),(_&&e.defaultChecked!==e.checked||k(a)==null)&&v(e.checked),m(()=>{var c=a();e.checked=!!c})}function d(e){var a=e.type;return a==="number"||a==="range"}function t(e){return e===""?null:+e}const E=y("");fetch("/settings.json").then(e=>e.json()).then(e=>E.set(e.domain));export{E as A,B as a,j as b};

View File

@@ -1,2 +0,0 @@
import{ak as $,x as V,al as Y,a1 as z,U as G,am as M,q as C,n as d,h as _,R as w,b as J,a as K,ai as H,H as Q,m as c,an as T,p as A,l as W,ao as N,ap as y,aq as B,ar as X,as as L,a3 as j,o as Z,at as tt,k as D,c as S,au as et,s as st,av as I,aw as rt,E as it,ax as nt,ay as at,az as ht,aA as ot,aB as lt,aC as ft,aD as O,ab as ut,aE as ct,aj as dt,aF as x,d as R,aG as _t,aH as pt,aI as gt,aJ as vt,w as yt,aK as bt,aL as Et,y as wt}from"./a9_IrBSG.js";import{b as mt}from"./wrmqo5Xl.js";function Tt(e){let t=0,r=Y(0),i;return()=>{$()&&(V(r),z(()=>(t===0&&(i=G(()=>e(()=>M(r)))),t+=1,()=>{C(()=>{t-=1,t===0&&(i?.(),i=void 0,M(r))})})))}}var Rt=it|nt|at;function Nt(e,t,r){new St(e,t,r)}class St{parent;#s=!1;#e;#g=_?d:null;#i;#u;#n;#r=null;#t=null;#a=null;#h=null;#o=null;#c=0;#l=0;#d=!1;#f=null;#b=Tt(()=>(this.#f=Y(this.#c),()=>{this.#f=null}));constructor(t,r,i){this.#e=t,this.#i=r,this.#u=i,this.parent=w.b,this.#s=!!this.#i.pending,this.#n=J(()=>{if(w.b=this,_){const s=this.#g;K(),s.nodeType===H&&s.data===Q?this.#w():this.#E()}else{var n=this.#v();try{this.#r=c(()=>i(n))}catch(s){this.error(s)}this.#l>0?this.#p():this.#s=!1}return()=>{this.#o?.remove()}},Rt),_&&(this.#e=d)}#E(){try{this.#r=c(()=>this.#u(this.#e))}catch(t){this.error(t)}this.#s=!1}#w(){const t=this.#i.pending;t&&(this.#t=c(()=>t(this.#e)),T.enqueue(()=>{var r=this.#v();this.#r=this.#_(()=>(T.ensure(),c(()=>this.#u(r)))),this.#l>0?this.#p():(A(this.#t,()=>{this.#t=null}),this.#s=!1)}))}#v(){var t=this.#e;return this.#s&&(this.#o=W(),this.#e.before(this.#o),t=this.#o),t}is_pending(){return this.#s||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#_(t){var r=w,i=L,n=j;N(this.#n),y(this.#n),B(this.#n.ctx);try{return t()}catch(s){return X(s),null}finally{N(r),y(i),B(n)}}#p(){const t=this.#i.pending;this.#r!==null&&(this.#h=document.createDocumentFragment(),this.#h.append(this.#o),Z(this.#r,this.#h)),this.#t===null&&(this.#t=c(()=>t(this.#e)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#l+=t,this.#l===0&&(this.#s=!1,this.#t&&A(this.#t,()=>{this.#t=null}),this.#h&&(this.#e.before(this.#h),this.#h=null))}update_pending_count(t){this.#y(t),this.#c+=t,this.#f&&tt(this.#f,this.#c)}get_effect_pending(){return this.#b(),V(this.#f)}error(t){var r=this.#i.onerror;let i=this.#i.failed;if(this.#d||!r&&!i)throw t;this.#r&&(D(this.#r),this.#r=null),this.#t&&(D(this.#t),this.#t=null),this.#a&&(D(this.#a),this.#a=null),_&&(S(this.#g),et(),S(st()));var n=!1,s=!1;const a=()=>{if(n){ht();return}n=!0,s&&rt(),T.ensure(),this.#c=0,this.#a!==null&&A(this.#a,()=>{this.#a=null}),this.#s=this.has_pending_snippet(),this.#r=this.#_(()=>(this.#d=!1,c(()=>this.#u(this.#e)))),this.#l>0?this.#p():this.#s=!1};var f=L;try{y(null),s=!0,r?.(t,a),s=!1}catch(l){I(l,this.#n&&this.#n.parent)}finally{y(f)}i&&C(()=>{this.#a=this.#_(()=>{T.ensure(),this.#d=!0;try{return c(()=>{i(this.#e,()=>t,()=>a)})}catch(l){return I(l,this.#n.parent),null}finally{this.#d=!1}})})}}const kt=["touchstart","touchmove"];function At(e){return kt.includes(e)}const Dt=new Set,q=new Set;function Lt(e,t,r,i={}){function n(s){if(i.capture||E.call(t,s),!s.cancelBubble)return lt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?C(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function Ct(e,t,r,i,n){var s={capture:i,passive:n},a=Lt(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ot(()=>{t.removeEventListener(e,a,s)})}let P=null;function E(e){var t=this,r=t.ownerDocument,i=e.type,n=e.composedPath?.()||[],s=n[0]||e.target;P=e;var a=0,f=P===e&&e.__root;if(f){var l=n.indexOf(f);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var p=n.indexOf(t);if(p===-1)return;l<=p&&(a=l)}if(s=n[a]||e.target,s!==t){ft(e,"currentTarget",{configurable:!0,get(){return s||r}});var k=L,u=w;y(null),N(null);try{for(var h,o=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+i];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(m){h?o.push(m):h=m}if(e.cancelBubble||g===t||g===null)break;s=g}if(h){for(let m of o)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,y(k),N(u)}}}function Ht(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ot(e,t){return U(e,t)}function Mt(e,t){O(),t.intro=t.intro??!1;const r=t.target,i=_,n=d;try{for(var s=ut(r);s&&(s.nodeType!==H||s.data!==ct);)s=dt(s);if(!s)throw x;R(!0),S(s);const a=U(e,{...t,anchor:s});return R(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
`).some(f=>f.startsWith("https://svelte.dev/e/")))throw a;return a!==x&&console.warn("Failed to hydrate: ",a),t.recover===!1&&_t(),O(),pt(r),R(!1),Ot(e,t)}finally{R(i),S(n)}}const v=new Map;function U(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:a=!0}){O();var f=new Set,l=u=>{for(var h=0;h<u.length;h++){var o=u[h];if(!f.has(o)){f.add(o);var g=At(o);t.addEventListener(o,E,{passive:g});var b=v.get(o);b===void 0?(document.addEventListener(o,E,{passive:g}),v.set(o,1)):v.set(o,b+1)}}};l(gt(Dt)),q.add(l);var p=void 0,k=vt(()=>{var u=r??t.appendChild(W());return Nt(u,{pending:()=>{}},h=>{if(s){yt({});var o=j;o.c=s}if(n&&(i.$$events=n),_&&mt(h,null),p=e(h,i)||{},_&&(w.nodes_end=d,d===null||d.nodeType!==H||d.data!==bt))throw Et(),x;s&&wt()}),()=>{for(var h of f){t.removeEventListener(h,E);var o=v.get(h);--o===0?(document.removeEventListener(h,E),v.delete(h)):v.set(h,o)}q.delete(l),u!==r&&u.parentNode?.removeChild(u)}});return F.set(p,k),p}let F=new WeakMap;function Bt(e,t){const r=F.get(e);return r?(F.delete(e),r(t)):Promise.resolve()}export{Ct as e,Mt as h,Ot as m,Ht as s,Bt as u};

View File

@@ -0,0 +1 @@
import{a3 as o,a1 as t,X as c,u as l}from"./DxMC-E2z.js";function u(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function r(e){t===null&&u(),c&&t.l!==null?a(t).m.push(e):o(()=>{const n=l(e);if(typeof n=="function")return n})}function a(e){var n=e.l;return n.u??={a:[],b:[],m:[]}}export{r as o};

View File

@@ -0,0 +1 @@
import{l as t,t as m,u as k,r as _,h as b,c as f,p as i}from"./DxMC-E2z.js";function E(e,a,v=a){var c=new WeakSet;t(e,"input",async r=>{var l=r?e.defaultValue:e.value;if(l=o(e)?u(l):l,v(l),f!==null&&c.add(f),await m(),l!==(l=a())){var h=e.selectionStart,d=e.selectionEnd,n=e.value.length;if(e.value=l??"",d!==null){var s=e.value.length;h===d&&d===n&&s>n?(e.selectionStart=s,e.selectionEnd=s):(e.selectionStart=h,e.selectionEnd=Math.min(d,s))}}}),(b&&e.defaultValue!==e.value||k(a)==null&&e.value)&&(v(o(e)?u(e.value):e.value),f!==null&&c.add(f)),_(()=>{var r=a();if(e===document.activeElement){var l=i??f;if(c.has(l))return}o(e)&&r===u(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function S(e,a,v=a){t(e,"change",c=>{var r=c?e.defaultChecked:e.checked;v(r)}),(b&&e.defaultChecked!==e.checked||k(a)==null)&&v(e.checked),_(()=>{var c=a();e.checked=!!c})}function o(e){var a=e.type;return a==="number"||a==="range"}function u(e){return e===""?null:+e}export{S as a,E as b};

View File

@@ -0,0 +1 @@
import{M as b,O as L,P as D,A as g,Q as Y,R as m,S as B,J as M,T as U,U as N,V as $,W as h,u as x,X as y,Y as Z,Z as q,_ as w,$ as z,a0 as C}from"./DxMC-E2z.js";let S=!1;function G(r){var n=S;try{return S=!1,[r(),S]}finally{S=n}}function Q(r,n,t,d){var f=!y||(t&Z)!==0,v=(t&h)!==0,R=(t&w)!==0,a=d,c=!0,o=()=>(c&&(c=!1,a=R?x(d):d),a),u;if(v){var A=z in r||C in r;u=b(r,n)?.set??(A&&n in r?e=>r[n]=e:void 0)}var _,I=!1;v?[_,I]=G(()=>r[n]):_=r[n],_===void 0&&d!==void 0&&(_=o(),u&&(f&&L(),u(_)));var i;if(f?i=()=>{var e=r[n];return e===void 0?o():(c=!0,e)}:i=()=>{var e=r[n];return e!==void 0&&(a=void 0),e===void 0?a:e},f&&(t&D)===0)return i;if(u){var E=r.$$legacy;return(function(e,l){return arguments.length>0?((!f||!l||E||I)&&u(l?i():e),e):i()})}var P=!1,s=((t&q)!==0?Y:m)(()=>(P=!1,i()));v&&g(s);var T=N;return(function(e,l){if(arguments.length>0){const O=l?g(s):f&&v?B(e):e;return M(s,O),P=!0,a!==void 0&&(a=O),e}return U&&P||(T.f&$)!==0?s.v:g(s)})}export{Q as p};

View File

@@ -1 +1 @@
import{a3 as d,a4 as g,a5 as c,U as m,a6 as i,a7 as b,x as p,a8 as v,K as h,a9 as k}from"./a9_IrBSG.js";function y(t=!1){const a=d,e=a.l.u;if(!e)return;let f=()=>v(a.s);if(t){let n=0,s={};const _=h(()=>{let l=!1;const r=a.s;for(const o in r)r[o]!==s[o]&&(s[o]=r[o],l=!0);return l&&n++,n});f=()=>p(_)}e.b.length&&g(()=>{u(a,f),i(e.b)}),c(()=>{const n=m(()=>e.m.map(b));return()=>{for(const s of n)typeof s=="function"&&s()}}),e.a.length&&c(()=>{u(a,f),i(e.a)})}function u(t,a){if(t.l.s)for(const e of t.l.s)p(e);a()}k();export{y as i};
import{a1 as d,a2 as g,a3 as c,u as m,a4 as i,a5 as b,A as p,a6 as v,Q as h,a7 as k}from"./DxMC-E2z.js";function x(t=!1){const a=d,e=a.l.u;if(!e)return;let f=()=>v(a.s);if(t){let n=0,s={};const _=h(()=>{let l=!1;const r=a.s;for(const o in r)r[o]!==s[o]&&(s[o]=r[o],l=!0);return l&&n++,n});f=()=>p(_)}e.b.length&&g(()=>{u(a,f),i(e.b)}),c(()=>{const n=m(()=>e.m.map(b));return()=>{for(const s of n)typeof s=="function"&&s()}}),e.a.length&&c(()=>{u(a,f),i(e.a)})}function u(t,a){if(t.l.s)for(const e of t.l.s)p(e);a()}k();export{x as i};

View File

@@ -1 +0,0 @@
import{b as c,h as _,a as o,E as d,r as b,H as E,s as T,c as p,d as f}from"./a9_IrBSG.js";import{B as y}from"./DPjh4P1x.js";function v(t,i,h=!1){_&&o();var e=new y(t),u=h?d:0;function n(a,r){if(_){const l=b(t)===E;if(a===l){var s=T();p(s),e.anchor=s,f(!1),e.ensure(a,r),f(!0);return}}e.ensure(a,r)}c(()=>{var a=!1;i((r,s=!0)=>{a=!0,n(s,r)}),a||n(!1,null)},u)}export{v as i};

View File

@@ -1 +0,0 @@
import{a5 as o,a3 as t,V as c,U as l}from"./a9_IrBSG.js";function a(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function r(e){t===null&&a(),c&&t.l!==null?u(t).m.push(e):o(()=>{const n=l(e);if(typeof n=="function")return n})}function u(e){var n=e.l;return n.u??={a:[],b:[],m:[]}}export{r as o};

View File

@@ -1 +1 @@
import{i as n,j as p,k as o,p as u,l as d,m as l,h as m,n as _,o as v,t as b}from"./a9_IrBSG.js";class y{anchor;#t=new Map;#s=new Map;#e=new Map;#i=!0;constructor(e,s=!0){this.anchor=e,this.#i=s}#a=()=>{var e=n;if(this.#t.has(e)){var s=this.#t.get(e),t=this.#s.get(s);if(t)p(t);else{var i=this.#e.get(s);i&&(this.#s.set(s,i.effect),this.#e.delete(s),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),t=i.effect)}for(const[a,f]of this.#t){if(this.#t.delete(a),a===e)break;const r=this.#e.get(f);r&&(o(r.effect),this.#e.delete(f))}for(const[a,f]of this.#s){if(a===s)continue;const r=()=>{if(Array.from(this.#t.values()).includes(a)){var h=document.createDocumentFragment();v(f,h),h.append(d()),this.#e.set(a,{effect:f,fragment:h})}else o(f);this.#s.delete(a)};this.#i||!t?u(f,r,!1):r()}}};#f=e=>{this.#t.delete(e);const s=Array.from(this.#t.values());for(const[t,i]of this.#e)s.includes(t)||(o(i.effect),this.#e.delete(t))};ensure(e,s){var t=n,i=b();if(s&&!this.#s.has(e)&&!this.#e.has(e))if(i){var a=document.createDocumentFragment(),f=d();a.append(f),this.#e.set(e,{effect:l(()=>s(f)),fragment:a})}else this.#s.set(e,l(()=>s(this.anchor)));if(this.#t.set(t,e),i){for(const[r,c]of this.#s)r===e?t.skipped_effects.delete(c):t.skipped_effects.add(c);for(const[r,c]of this.#e)r===e?t.skipped_effects.delete(c.effect):t.skipped_effects.add(c.effect);t.oncommit(this.#a),t.ondiscard(this.#f)}else m&&(this.anchor=_),this.#a()}}export{y as B};
import{c as n,k as p,m as o,n as u,o as d,v as l,h as m,w as v,x as _,y as b}from"./DxMC-E2z.js";class y{anchor;#t=new Map;#s=new Map;#e=new Map;#i=!0;constructor(e,s=!0){this.anchor=e,this.#i=s}#a=()=>{var e=n;if(this.#t.has(e)){var s=this.#t.get(e),t=this.#s.get(s);if(t)p(t);else{var i=this.#e.get(s);i&&(this.#s.set(s,i.effect),this.#e.delete(s),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),t=i.effect)}for(const[a,f]of this.#t){if(this.#t.delete(a),a===e)break;const c=this.#e.get(f);c&&(o(c.effect),this.#e.delete(f))}for(const[a,f]of this.#s){if(a===s)continue;const c=()=>{if(Array.from(this.#t.values()).includes(a)){var h=document.createDocumentFragment();_(f,h),h.append(d()),this.#e.set(a,{effect:f,fragment:h})}else o(f);this.#s.delete(a)};this.#i||!t?u(f,c,!1):c()}}};#f=e=>{this.#t.delete(e);const s=Array.from(this.#t.values());for(const[t,i]of this.#e)s.includes(t)||(o(i.effect),this.#e.delete(t))};ensure(e,s){var t=n,i=b();if(s&&!this.#s.has(e)&&!this.#e.has(e))if(i){var a=document.createDocumentFragment(),f=d();a.append(f),this.#e.set(e,{effect:l(()=>s(f)),fragment:a})}else this.#s.set(e,l(()=>s(this.anchor)));if(this.#t.set(t,e),i){for(const[c,r]of this.#s)c===e?t.skipped_effects.delete(r):t.skipped_effects.add(r);for(const[c,r]of this.#e)c===e?t.skipped_effects.delete(r.effect):t.skipped_effects.add(r.effect);t.oncommit(this.#a),t.ondiscard(this.#f)}else m&&(this.anchor=v),this.#a()}}export{y as B};

View File

@@ -1 +1 @@
import{h as f,N as n,q as d,e as v,L as h,g as u,f as g}from"./a9_IrBSG.js";const l=Symbol("is custom element"),A=Symbol("is html");function y(r){if(f){var s=!1,e=()=>{if(!s){if(s=!0,r.hasAttribute("value")){var t=r.value;_(r,"value",null),r.value=t}if(r.hasAttribute("checked")){var o=r.checked;_(r,"checked",null),r.checked=o}}};r.__on_r=e,d(e),v()}}function _(r,s,e,t){var o=m(r);f&&(o[s]=r.getAttribute(s),s==="src"||s==="srcset"||s==="href"&&r.nodeName==="LINK")||o[s]!==(o[s]=e)&&(s==="loading"&&(r[h]=e),e==null?r.removeAttribute(s):typeof e!="string"&&p(r).includes(s)?r[s]=e:r.setAttribute(s,e))}function m(r){return r.__attributes??={[l]:r.nodeName.includes("-"),[A]:r.namespaceURI===n}}var c=new Map;function p(r){var s=r.getAttribute("is")||r.nodeName,e=c.get(s);if(e)return e;c.set(s,e=[]);for(var t,o=r,i=Element.prototype;i!==o;){t=g(o);for(var a in t)t[a].set&&e.push(a);o=u(o)}return e}export{y as r,_ as s};
import{h as i,N as n,q as d,g as v,L as h,i as u,j as g}from"./DxMC-E2z.js";const l=Symbol("is custom element"),A=Symbol("is html");function y(r){if(i){var s=!1,e=()=>{if(!s){if(s=!0,r.hasAttribute("value")){var t=r.value;_(r,"value",null),r.value=t}if(r.hasAttribute("checked")){var o=r.checked;_(r,"checked",null),r.checked=o}}};r.__on_r=e,d(e),v()}}function _(r,s,e,t){var o=m(r);i&&(o[s]=r.getAttribute(s),s==="src"||s==="srcset"||s==="href"&&r.nodeName==="LINK")||o[s]!==(o[s]=e)&&(s==="loading"&&(r[h]=e),e==null?r.removeAttribute(s):typeof e!="string"&&p(r).includes(s)?r[s]=e:r.setAttribute(s,e))}function m(r){return r.__attributes??={[l]:r.nodeName.includes("-"),[A]:r.namespaceURI===n}}var c=new Map;function p(r){var s=r.getAttribute("is")||r.nodeName,e=c.get(s);if(e)return e;c.set(s,e=[]);for(var t,o=r,f=Element.prototype;f!==o;){t=g(o);for(var a in t)t[a].set&&e.push(a);o=u(o)}return e}export{y as r,_ as s};

View File

@@ -1 +1 @@
import{l as i,ab as f,ac as v,R as _,ad as E,ae as p,h as d,n as o,af as h,a as T,ag as g,c as N}from"./a9_IrBSG.js";function y(r){var n=document.createElement("template");return n.innerHTML=r.replaceAll("<!>","<!---->"),n.content}function t(r,n){var e=_;e.nodes_start===null&&(e.nodes_start=r,e.nodes_end=n)}function A(r,n){var e=(n&E)!==0,u=(n&p)!==0,a,c=!r.startsWith("<!>");return()=>{if(d)return t(o,null),o;a===void 0&&(a=y(c?r:"<!>"+r),e||(a=f(a)));var s=u||v?document.importNode(a,!0):a.cloneNode(!0);if(e){var l=f(s),m=s.lastChild;t(l,m)}else t(s,s);return s}}function M(r=""){if(!d){var n=i(r+"");return t(n,n),n}var e=o;return e.nodeType!==g&&(e.before(e=i()),N(e)),t(e,e),e}function R(){if(d)return t(o,null),o;var r=document.createDocumentFragment(),n=document.createComment(""),e=i();return r.append(n,e),t(n,e),r}function b(r,n){if(d){var e=_;((e.f&h)===0||e.nodes_end===null)&&(e.nodes_end=o),T();return}r!==null&&r.before(n)}const w="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(w);export{b as a,t as b,R as c,A as f,M as t};
import{o as i,a9 as f,aa as v,U as _,ab as E,ac as p,h as d,w as o,ad as h,a as T,ae as N,e as g}from"./DxMC-E2z.js";function w(r){var n=document.createElement("template");return n.innerHTML=r.replaceAll("<!>","<!---->"),n.content}function t(r,n){var e=_;e.nodes_start===null&&(e.nodes_start=r,e.nodes_end=n)}function A(r,n){var e=(n&E)!==0,u=(n&p)!==0,a,c=!r.startsWith("<!>");return()=>{if(d)return t(o,null),o;a===void 0&&(a=w(c?r:"<!>"+r),e||(a=f(a)));var s=u||v?document.importNode(a,!0):a.cloneNode(!0);if(e){var l=f(s),m=s.lastChild;t(l,m)}else t(s,s);return s}}function M(r=""){if(!d){var n=i(r+"");return t(n,n),n}var e=o;return e.nodeType!==N&&(e.before(e=i()),g(e)),t(e,e),e}function b(){if(d)return t(o,null),o;var r=document.createDocumentFragment(),n=document.createComment(""),e=i();return r.append(n,e),t(n,e),r}function C(r,n){if(d){var e=_;((e.f&h)===0||e.nodes_end===null)&&(e.nodes_end=o),T();return}r!==null&&r.before(n)}const y="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(y);export{C as a,t as b,b as c,A as f,M as t};

View File

@@ -1 +0,0 @@
import{I as b,J as L,P as D,x as g,K as Y,M as m,O as B,F as M,Q as U,R as x,S as N,T as h,U as y,V as Z,W as $,X as q,Y as w,Z as z,_ as C}from"./a9_IrBSG.js";let S=!1;function F(r){var n=S;try{return S=!1,[r(),S]}finally{S=n}}function J(r,n,t,d){var f=!Z||(t&$)!==0,v=(t&h)!==0,R=(t&w)!==0,a=d,c=!0,I=()=>(c&&(c=!1,a=R?y(d):d),a),u;if(v){var E=z in r||C in r;u=b(r,n)?.set??(E&&n in r?e=>r[n]=e:void 0)}var _,o=!1;v?[_,o]=F(()=>r[n]):_=r[n],_===void 0&&d!==void 0&&(_=I(),u&&(f&&L(),u(_)));var i;if(f?i=()=>{var e=r[n];return e===void 0?I():(c=!0,e)}:i=()=>{var e=r[n];return e!==void 0&&(a=void 0),e===void 0?a:e},f&&(t&D)===0)return i;if(u){var A=r.$$legacy;return(function(e,l){return arguments.length>0?((!f||!l||A||o)&&u(l?i():e),e):i()})}var P=!1,s=((t&q)!==0?Y:m)(()=>(P=!1,i()));v&&g(s);var T=x;return(function(e,l){if(arguments.length>0){const O=l?g(s):f&&v?B(e):e;return M(s,O),P=!0,a!==void 0&&(a=O),e}return U&&P||(T.f&N)!==0?s.v:g(s)})}export{J as p};

View File

@@ -0,0 +1,2 @@
import{ai as U,A as V,aj as Y,r as $,u as G,ak as H,q as B,w as d,h as _,U as w,b as J,a as K,ag as C,H as Q,v as c,al as T,n as k,o as W,am as N,an as y,ao as M,ap as X,aq as O,a1 as j,x as Z,ar as tt,m as D,e as S,as as et,s as st,at as I,au as rt,E as it,av as nt,aw as at,ax as ht,ay as ot,az as lt,aA as ft,aB as x,a9 as ut,aC as ct,ah as dt,aD as F,f as R,aE as _t,aF as pt,aG as gt,aH as vt,z as yt,aI as Et,aJ as bt,B as wt}from"./DxMC-E2z.js";import{b as mt}from"./K5GTgIDA.js";function Tt(e){let t=0,r=Y(0),i;return()=>{U()&&(V(r),$(()=>(t===0&&(i=G(()=>e(()=>H(r)))),t+=1,()=>{B(()=>{t-=1,t===0&&(i?.(),i=void 0,H(r))})})))}}var Rt=it|nt|at;function Nt(e,t,r){new St(e,t,r)}class St{parent;#s=!1;#e;#g=_?d:null;#i;#u;#n;#r=null;#t=null;#a=null;#h=null;#o=null;#c=0;#l=0;#d=!1;#f=null;#E=Tt(()=>(this.#f=Y(this.#c),()=>{this.#f=null}));constructor(t,r,i){this.#e=t,this.#i=r,this.#u=i,this.parent=w.b,this.#s=!!this.#i.pending,this.#n=J(()=>{if(w.b=this,_){const s=this.#g;K(),s.nodeType===C&&s.data===Q?this.#w():this.#b()}else{var n=this.#v();try{this.#r=c(()=>i(n))}catch(s){this.error(s)}this.#l>0?this.#p():this.#s=!1}return()=>{this.#o?.remove()}},Rt),_&&(this.#e=d)}#b(){try{this.#r=c(()=>this.#u(this.#e))}catch(t){this.error(t)}this.#s=!1}#w(){const t=this.#i.pending;t&&(this.#t=c(()=>t(this.#e)),T.enqueue(()=>{var r=this.#v();this.#r=this.#_(()=>(T.ensure(),c(()=>this.#u(r)))),this.#l>0?this.#p():(k(this.#t,()=>{this.#t=null}),this.#s=!1)}))}#v(){var t=this.#e;return this.#s&&(this.#o=W(),this.#e.before(this.#o),t=this.#o),t}is_pending(){return this.#s||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#_(t){var r=w,i=O,n=j;N(this.#n),y(this.#n),M(this.#n.ctx);try{return t()}catch(s){return X(s),null}finally{N(r),y(i),M(n)}}#p(){const t=this.#i.pending;this.#r!==null&&(this.#h=document.createDocumentFragment(),this.#h.append(this.#o),Z(this.#r,this.#h)),this.#t===null&&(this.#t=c(()=>t(this.#e)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#l+=t,this.#l===0&&(this.#s=!1,this.#t&&k(this.#t,()=>{this.#t=null}),this.#h&&(this.#e.before(this.#h),this.#h=null))}update_pending_count(t){this.#y(t),this.#c+=t,this.#f&&tt(this.#f,this.#c)}get_effect_pending(){return this.#E(),V(this.#f)}error(t){var r=this.#i.onerror;let i=this.#i.failed;if(this.#d||!r&&!i)throw t;this.#r&&(D(this.#r),this.#r=null),this.#t&&(D(this.#t),this.#t=null),this.#a&&(D(this.#a),this.#a=null),_&&(S(this.#g),et(),S(st()));var n=!1,s=!1;const a=()=>{if(n){ht();return}n=!0,s&&rt(),T.ensure(),this.#c=0,this.#a!==null&&k(this.#a,()=>{this.#a=null}),this.#s=this.has_pending_snippet(),this.#r=this.#_(()=>(this.#d=!1,c(()=>this.#u(this.#e)))),this.#l>0?this.#p():this.#s=!1};var f=O;try{y(null),s=!0,r?.(t,a),s=!1}catch(l){I(l,this.#n&&this.#n.parent)}finally{y(f)}i&&B(()=>{this.#a=this.#_(()=>{T.ensure(),this.#d=!0;try{return c(()=>{i(this.#e,()=>t,()=>a)})}catch(l){return I(l,this.#n.parent),null}finally{this.#d=!1}})})}}const At=["touchstart","touchmove"];function kt(e){return At.includes(e)}const Dt=new Set,q=new Set;function Ot(e,t,r,i={}){function n(s){if(i.capture||b.call(t,s),!s.cancelBubble)return lt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?B(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function Bt(e,t,r,i,n){var s={capture:i,passive:n},a=Ot(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ot(()=>{t.removeEventListener(e,a,s)})}let P=null;function b(e){var t=this,r=t.ownerDocument,i=e.type,n=e.composedPath?.()||[],s=n[0]||e.target;P=e;var a=0,f=P===e&&e.__root;if(f){var l=n.indexOf(f);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var p=n.indexOf(t);if(p===-1)return;l<=p&&(a=l)}if(s=n[a]||e.target,s!==t){ft(e,"currentTarget",{configurable:!0,get(){return s||r}});var A=O,u=w;y(null),N(null);try{for(var h,o=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var E=s["__"+i];E!=null&&(!s.disabled||e.target===s)&&E.call(s,e)}catch(m){h?o.push(m):h=m}if(e.cancelBubble||g===t||g===null)break;s=g}if(h){for(let m of o)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,y(A),N(u)}}}function Ct(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xt(e,t){return z(e,t)}function Ht(e,t){x(),t.intro=t.intro??!1;const r=t.target,i=_,n=d;try{for(var s=ut(r);s&&(s.nodeType!==C||s.data!==ct);)s=dt(s);if(!s)throw F;R(!0),S(s);const a=z(e,{...t,anchor:s});return R(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
`).some(f=>f.startsWith("https://svelte.dev/e/")))throw a;return a!==F&&console.warn("Failed to hydrate: ",a),t.recover===!1&&_t(),x(),pt(r),R(!1),xt(e,t)}finally{R(i),S(n)}}const v=new Map;function z(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:a=!0}){x();var f=new Set,l=u=>{for(var h=0;h<u.length;h++){var o=u[h];if(!f.has(o)){f.add(o);var g=kt(o);t.addEventListener(o,b,{passive:g});var E=v.get(o);E===void 0?(document.addEventListener(o,b,{passive:g}),v.set(o,1)):v.set(o,E+1)}}};l(gt(Dt)),q.add(l);var p=void 0,A=vt(()=>{var u=r??t.appendChild(W());return Nt(u,{pending:()=>{}},h=>{if(s){yt({});var o=j;o.c=s}if(n&&(i.$$events=n),_&&mt(h,null),p=e(h,i)||{},_&&(w.nodes_end=d,d===null||d.nodeType!==C||d.data!==Et))throw bt(),F;s&&wt()}),()=>{for(var h of f){t.removeEventListener(h,b);var o=v.get(h);--o===0?(document.removeEventListener(h,b),v.delete(h)):v.set(h,o)}q.delete(l),u!==r&&u.parentNode?.removeChild(u)}});return L.set(p,A),p}let L=new WeakMap;function Mt(e,t){const r=L.get(e);return r?(L.delete(e),r(t)):Promise.resolve()}export{Bt as e,Ht as h,xt as m,Ct as s,Mt as u};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{l as o,a as r}from"../chunks/niSfElle.js";export{o as load_css,r as start};

View File

@@ -1 +0,0 @@
import{l as o,a as r}from"../chunks/B0dV4Hxy.js";export{o as load_css,r as start};

View File

@@ -0,0 +1 @@
import{c as m,a as i,f as u}from"../chunks/K5GTgIDA.js";import{b as d,E as g,o as v,af as _,h as n,a9 as y,ag as h,ah as o,f,e as c,w,a8 as E,K as b}from"../chunks/DxMC-E2z.js";import{B as T}from"../chunks/DrX-8T7E.js";import{s as x}from"../chunks/HgGInnYf.js";function M(l,s,...a){var r=new T(l);d(()=>{const t=s()??null;r.ensure(t,t&&(e=>t(e,...a)))},g)}function A(l,s){let a=null,r=n;var t;if(n){a=w;for(var e=y(document.head);e!==null&&(e.nodeType!==h||e.data!==l);)e=o(e);if(e===null)f(!1);else{var p=o(e);e.remove(),c(p)}}n||(t=document.head.appendChild(v()));try{d(()=>s(t),_)}finally{r&&(f(!0),c(a))}}const C=!1,F=!0,j=Object.freeze(Object.defineProperty({__proto__:null,prerender:F,ssr:C},Symbol.toStringTag,{value:"Module"})),N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='107'%20height='128'%20viewBox='0%200%20107%20128'%3e%3ctitle%3esvelte-logo%3c/title%3e%3cpath%20d='M94.157%2022.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282%2029.608A29.92%2029.92%200%200%200%208.764%2049.65a31.5%2031.5%200%200%200%203.108%2020.231%2030%2030%200%200%200-4.477%2011.183%2031.9%2031.9%200%200%200%205.448%2024.116c10.402%2014.887%2030.942%2019.297%2045.791%209.835l26.083-16.624A29.92%2029.92%200%200%200%2098.235%2078.35a31.53%2031.53%200%200%200-3.105-20.232%2030%2030%200%200%200%204.474-11.182%2031.88%2031.88%200%200%200-5.447-24.116'%20style='fill:%23ff3e00'/%3e%3cpath%20d='M45.817%20106.582a20.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.503%2018%2018%200%200%201%20.624-2.435l.49-1.498%201.337.981a33.6%2033.6%200%200%200%2010.203%205.098l.97.294-.09.968a5.85%205.85%200%200%200%201.052%203.878%206.24%206.24%200%200%200%206.695%202.485%205.8%205.8%200%200%200%201.603-.704L69.27%2076.28a5.43%205.43%200%200%200%202.45-3.631%205.8%205.8%200%200%200-.987-4.371%206.24%206.24%200%200%200-6.698-2.487%205.7%205.7%200%200%200-1.6.704l-9.953%206.345a19%2019%200%200%201-5.296%202.326%2020.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.502%2017.99%2017.99%200%200%201%208.13-12.052l26.081-16.623a19%2019%200%200%201%205.3-2.329%2020.72%2020.72%200%200%201%2022.237%208.243%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-.624%202.435l-.49%201.498-1.337-.98a33.6%2033.6%200%200%200-10.203-5.1l-.97-.294.09-.968a5.86%205.86%200%200%200-1.052-3.878%206.24%206.24%200%200%200-6.696-2.485%205.8%205.8%200%200%200-1.602.704L37.73%2051.72a5.42%205.42%200%200%200-2.449%203.63%205.79%205.79%200%200%200%20.986%204.372%206.24%206.24%200%200%200%206.698%202.486%205.8%205.8%200%200%200%201.602-.704l9.952-6.342a19%2019%200%200%201%205.295-2.328%2020.72%2020.72%200%200%201%2022.237%208.242%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-8.13%2012.053l-26.081%2016.622a19%2019%200%200%201-5.3%202.328'%20style='fill:%23fff'/%3e%3c/svg%3e";var O=u('<link rel="icon"/>');function D(l,s){var a=m();A("12qhfyh",t=>{var e=O();b(()=>x(e,"href",N)),i(t,e)});var r=E(a);M(r,()=>s.children),i(l,a)}export{D as component,j as universal};

View File

@@ -1 +0,0 @@
import{c as m,a as i,f as u}from"../chunks/wrmqo5Xl.js";import{b as d,E as v,l as _,ah as g,h as r,ab as y,ai as h,aj as o,d as f,c,n as b,aa as w,G as E}from"../chunks/a9_IrBSG.js";import{B as T}from"../chunks/DPjh4P1x.js";import{s as x}from"../chunks/LnFm25i4.js";function M(l,s,...a){var n=new T(l);d(()=>{const t=s()??null;n.ensure(t,t&&(e=>t(e,...a)))},v)}function A(l,s){let a=null,n=r;var t;if(r){a=b;for(var e=y(document.head);e!==null&&(e.nodeType!==h||e.data!==l);)e=o(e);if(e===null)f(!1);else{var p=o(e);e.remove(),c(p)}}r||(t=document.head.appendChild(_()));try{d(()=>s(t),g)}finally{n&&(f(!0),c(a))}}const C=!1,F=!0,S=Object.freeze(Object.defineProperty({__proto__:null,prerender:F,ssr:C},Symbol.toStringTag,{value:"Module"})),N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='107'%20height='128'%20viewBox='0%200%20107%20128'%3e%3ctitle%3esvelte-logo%3c/title%3e%3cpath%20d='M94.157%2022.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282%2029.608A29.92%2029.92%200%200%200%208.764%2049.65a31.5%2031.5%200%200%200%203.108%2020.231%2030%2030%200%200%200-4.477%2011.183%2031.9%2031.9%200%200%200%205.448%2024.116c10.402%2014.887%2030.942%2019.297%2045.791%209.835l26.083-16.624A29.92%2029.92%200%200%200%2098.235%2078.35a31.53%2031.53%200%200%200-3.105-20.232%2030%2030%200%200%200%204.474-11.182%2031.88%2031.88%200%200%200-5.447-24.116'%20style='fill:%23ff3e00'/%3e%3cpath%20d='M45.817%20106.582a20.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.503%2018%2018%200%200%201%20.624-2.435l.49-1.498%201.337.981a33.6%2033.6%200%200%200%2010.203%205.098l.97.294-.09.968a5.85%205.85%200%200%200%201.052%203.878%206.24%206.24%200%200%200%206.695%202.485%205.8%205.8%200%200%200%201.603-.704L69.27%2076.28a5.43%205.43%200%200%200%202.45-3.631%205.8%205.8%200%200%200-.987-4.371%206.24%206.24%200%200%200-6.698-2.487%205.7%205.7%200%200%200-1.6.704l-9.953%206.345a19%2019%200%200%201-5.296%202.326%2020.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.502%2017.99%2017.99%200%200%201%208.13-12.052l26.081-16.623a19%2019%200%200%201%205.3-2.329%2020.72%2020.72%200%200%201%2022.237%208.243%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-.624%202.435l-.49%201.498-1.337-.98a33.6%2033.6%200%200%200-10.203-5.1l-.97-.294.09-.968a5.86%205.86%200%200%200-1.052-3.878%206.24%206.24%200%200%200-6.696-2.485%205.8%205.8%200%200%200-1.602.704L37.73%2051.72a5.42%205.42%200%200%200-2.449%203.63%205.79%205.79%200%200%200%20.986%204.372%206.24%206.24%200%200%200%206.698%202.486%205.8%205.8%200%200%200%201.602-.704l9.952-6.342a19%2019%200%200%201%205.295-2.328%2020.72%2020.72%200%200%201%2022.237%208.242%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-8.13%2012.053l-26.081%2016.622a19%2019%200%200%201-5.3%202.328'%20style='fill:%23fff'/%3e%3c/svg%3e";var O=u('<link rel="icon"/>');function D(l,s){var a=m();A("12qhfyh",t=>{var e=O();E(()=>x(e,"href",N)),i(t,e)});var n=w(a);M(n,()=>s.children),i(l,a)}export{D as component,S as universal};

View File

@@ -0,0 +1 @@
import{f as u,a as h}from"../chunks/K5GTgIDA.js";import{i as g}from"../chunks/DgU0EQmz.js";import{z as l,a8 as v,K as d,B as _,D as s,F as e,C as x}from"../chunks/DxMC-E2z.js";import{s as o}from"../chunks/V6M2jInR.js";import{s as $,p}from"../chunks/niSfElle.js";const k={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=k;var b=u("<h1> </h1> <p> </p>",1);function F(i,f){l(f,!1),g();var t=b(),r=v(t),n=s(r,!0);e(r);var a=x(r,2),c=s(a,!0);e(a),d(()=>{o(n,m.status),o(c,m.error?.message)}),h(i,t),_()}export{F as component};

View File

@@ -1 +0,0 @@
import{f as u,a as h}from"../chunks/wrmqo5Xl.js";import{i as g}from"../chunks/FF6OmFSc.js";import{w as l,aa as v,G as d,y as _,A as s,B as e,z as x}from"../chunks/a9_IrBSG.js";import{s as o}from"../chunks/CMb69aT-.js";import{s as $,p}from"../chunks/B0dV4Hxy.js";const k={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=k;var b=u("<h1> </h1> <p> </p>",1);function E(i,f){l(f,!1),g();var t=b(),r=v(t),n=s(r,!0);e(r);var a=x(r,2),c=s(a,!0);e(a),d(()=>{o(n,m.status),o(c,m.error?.message)}),h(i,t),_()}export{E as component};

View File

@@ -1 +0,0 @@
import{f as w,a as d}from"../chunks/wrmqo5Xl.js";import{i as P}from"../chunks/FF6OmFSc.js";import{w as S,x as t,y as q,z as r,A as o,B as i,C as v,D as g,F as b,G as B}from"../chunks/a9_IrBSG.js";import{e as O,s as T}from"../chunks/CMb69aT-.js";import{i as j}from"../chunks/DhE1ouZL.js";import{r as h}from"../chunks/LnFm25i4.js";import{b as _,A as z}from"../chunks/BePdLpFV.js";import{g as D}from"../chunks/B0dV4Hxy.js";var E=w('<p class="error svelte-1uha8ag"> </p>'),F=w('<form class="login svelte-1uha8ag"><h2>Login</h2> <label class="svelte-1uha8ag">User <input type="text" required/></label> <label class="svelte-1uha8ag">Password <input type="password" required/></label> <button>Login</button> <!></form>');function M(y,x){S(x,!1);let s=v(""),e=v({username:"",password:""});async function A(){try{const a=await fetch(`${z}/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t(e))});if(!a.ok){b(s,await a.text());return}D("/shadowrun")}catch(a){b(s,a.message)}}P();var n=F(),l=r(o(n),2),u=r(o(l));h(u),i(l);var p=r(l,2),f=r(o(p));h(f),i(p);var c=r(p,2),k=r(c,2);{var C=a=>{var m=E(),L=o(m,!0);i(m),B(()=>T(L,t(s))),d(a,m)};j(k,a=>{t(s)&&a(C)})}i(n),_(u,()=>t(e).username,a=>g(e,t(e).username=a)),_(f,()=>t(e).password,a=>g(e,t(e).password=a)),O("click",c,A),d(y,n),q()}export{M as component};

View File

@@ -0,0 +1 @@
import{f as w,a as d}from"../chunks/K5GTgIDA.js";import{i as J}from"../chunks/DgU0EQmz.js";import{z as O,A as t,B as P,C as r,D as o,F as i,G as v,I as g,J as b,K as S}from"../chunks/DxMC-E2z.js";import{e as T,s as j}from"../chunks/V6M2jInR.js";import{i as z}from"../chunks/BJWcdj5l.js";import{r as h}from"../chunks/HgGInnYf.js";import{b as _}from"../chunks/Cp1RMksV.js";import{g as A}from"../chunks/niSfElle.js";var B=w('<p class="error svelte-1uha8ag"> </p>'),D=w('<form class="login svelte-1uha8ag"><h2>Login</h2> <label class="svelte-1uha8ag">User <input type="text" required/></label> <label class="svelte-1uha8ag">Password <input type="password" required/></label> <button>Login</button> <!></form>');function M(y,x){O(x,!1);let s=v(""),e=v({username:"",password:""});async function k(){try{const a=await fetch("/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t(e))});if(!a.ok){b(s,await a.text());return}A("/shadowrun")}catch(a){b(s,a.message)}}J();var n=D(),l=r(o(n),2),u=r(o(l));h(u),i(l);var p=r(l,2),f=r(o(p));h(f),i(p);var c=r(p,2),C=r(c,2);{var L=a=>{var m=B(),q=o(m,!0);i(m),S(()=>j(q,t(s))),d(a,m)};z(C,a=>{t(s)&&a(L)})}i(n),_(u,()=>t(e).username,a=>g(e,t(e).username=a)),_(f,()=>t(e).password,a=>g(e,t(e).password=a)),T("click",c,k),d(y,n),P()}export{M as component};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":"1771762039722"}
{"version":"1771789536194"}

View File

@@ -5,31 +5,30 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="modulepreload" href="./_app/immutable/entry/start.CtFP2mMl.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B0dV4Hxy.js">
<link rel="modulepreload" href="./_app/immutable/chunks/a9_IrBSG.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BXL361Aj.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DmxJgAc5.js">
<link rel="modulepreload" href="./_app/immutable/entry/app.CTU6oPXg.js">
<link rel="modulepreload" href="./_app/immutable/chunks/CMb69aT-.js">
<link rel="modulepreload" href="./_app/immutable/chunks/wrmqo5Xl.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DhE1ouZL.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DPjh4P1x.js">
<link rel="modulepreload" href="./_app/immutable/chunks/S10e0VHB.js">
<link rel="modulepreload" href="./_app/immutable/entry/start.BnAWgAKt.js">
<link rel="modulepreload" href="./_app/immutable/chunks/niSfElle.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DxMC-E2z.js">
<link rel="modulepreload" href="./_app/immutable/chunks/CgHyU30y.js">
<link rel="modulepreload" href="./_app/immutable/entry/app.CJZl1xEf.js">
<link rel="modulepreload" href="./_app/immutable/chunks/V6M2jInR.js">
<link rel="modulepreload" href="./_app/immutable/chunks/K5GTgIDA.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BJWcdj5l.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DrX-8T7E.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Cx2Kkjq-.js">
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">
<script>
{
__sveltekit_1ms7ri3 = {
__sveltekit_q0ydb3 = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
import("./_app/immutable/entry/start.CtFP2mMl.js"),
import("./_app/immutable/entry/app.CTU6oPXg.js")
import("./_app/immutable/entry/start.BnAWgAKt.js"),
import("./_app/immutable/entry/app.CJZl1xEf.js")
]).then(([kit, app]) => {
kit.start(app, element);
});

View File

@@ -5,31 +5,30 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="modulepreload" href="./_app/immutable/entry/start.CtFP2mMl.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B0dV4Hxy.js">
<link rel="modulepreload" href="./_app/immutable/chunks/a9_IrBSG.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BXL361Aj.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DmxJgAc5.js">
<link rel="modulepreload" href="./_app/immutable/entry/app.CTU6oPXg.js">
<link rel="modulepreload" href="./_app/immutable/chunks/CMb69aT-.js">
<link rel="modulepreload" href="./_app/immutable/chunks/wrmqo5Xl.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DhE1ouZL.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DPjh4P1x.js">
<link rel="modulepreload" href="./_app/immutable/chunks/S10e0VHB.js">
<link rel="modulepreload" href="./_app/immutable/entry/start.BnAWgAKt.js">
<link rel="modulepreload" href="./_app/immutable/chunks/niSfElle.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DxMC-E2z.js">
<link rel="modulepreload" href="./_app/immutable/chunks/CgHyU30y.js">
<link rel="modulepreload" href="./_app/immutable/entry/app.CJZl1xEf.js">
<link rel="modulepreload" href="./_app/immutable/chunks/V6M2jInR.js">
<link rel="modulepreload" href="./_app/immutable/chunks/K5GTgIDA.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BJWcdj5l.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DrX-8T7E.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Cx2Kkjq-.js">
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">
<script>
{
__sveltekit_1ms7ri3 = {
__sveltekit_q0ydb3 = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
import("./_app/immutable/entry/start.CtFP2mMl.js"),
import("./_app/immutable/entry/app.CTU6oPXg.js")
import("./_app/immutable/entry/start.BnAWgAKt.js"),
import("./_app/immutable/entry/app.CJZl1xEf.js")
]).then(([kit, app]) => {
kit.start(app, element);
});

View File

@@ -1,7 +0,0 @@
import { writable } from 'svelte/store';
export const API_BASE = writable<string>('');
fetch('/settings.json')
.then(r => r.json())
.then(settings => API_BASE.set(settings.domain));

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { onMount } from 'svelte';
import { API_BASE } from '$lib/config';
//import { API_BASE } from '$lib/config';
import { Defaults } from './defaults.svelte';
import type { Skill, Connection} from './types.svelte';
import { autoGrow } from '$lib/common/autogrow';
@@ -53,7 +53,7 @@
function viewPage(pageNumber: number) {
if (pageNumber > 0) {
// Open in new tab
window.open(`${API_BASE}/assets/shadowrun/Shadowrun-4E-Corebook-p${pageNumber}.pdf`, "_blank");
window.open(`/assets/shadowrun/Shadowrun-4E-Corebook-p${pageNumber}.pdf`, "_blank");
}
}
@@ -64,7 +64,7 @@
}
async function saveCharacterData() {
const res = await fetch(`${API_BASE}/api/shadowrun/characters_data/${currentCharacter.id}`, {
const res = await fetch(`/api/shadowrun/characters_data/${currentCharacter.id}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(characterData)

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { API_BASE } from '$lib/config';
// import { API_BASE } from '$lib/config';
import { goto } from '$app/navigation';
let error = "";
@@ -13,7 +13,7 @@
async function handleLogin() {
try {
const res = await fetch(`${API_BASE}/login`, {
const res = await fetch(`/login`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { onMount } from 'svelte';
import { API_BASE } from '$lib/config';
// import { API_BASE } from '$lib/config';
import CharacterSheet from '$lib/shadorwun/character.svelte';
type Character = {
@@ -17,13 +17,13 @@
// Load previous characters from your Crow backend
async function loadCharacters() {
const res = await fetch(`${API_BASE}/api/shadowrun/characters`);
const res = await fetch(`/api/shadowrun/characters`);
if (res.ok)
characters = await res.json();
}
async function loadCharacterData(characterId : number) {
const res = await fetch(`${API_BASE}/api/shadowrun/characters_data/${characterId}`);
const res = await fetch(`/api/shadowrun/characters_data/${characterId}`);
if (res.ok)
currentCharacterData = await res.json();
}
@@ -33,7 +33,7 @@
async function loadCharacter() {
if (selectedCharId == null)
return;
const res = await fetch(`${API_BASE}/api/shadowrun/characters/${selectedCharId}`);
const res = await fetch(`/api/shadowrun/characters/${selectedCharId}`);
if (res.ok) {
const data = await res.json();
await loadCharacterData(data.id)
@@ -45,7 +45,7 @@
async function createCharacter() {
if (!newCharName)
return;
const res = await fetch(`${API_BASE}/api/shadowrun/characters`, {
const res = await fetch(`/api/shadowrun/characters`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name: newCharName })

View File

@@ -1,5 +0,0 @@
{
"http_port" : 3011,
"db_path": "shadowrun.db",
"domain": "http://192.168.1.101:3011"
}