fix: use svelte 5 mount api
This commit is contained in:
1 parent
6c6f4022a0
commit
4bf1c1fe60
4 files changed
+4
-3
No files matched your search
@@ -0,0 +1 @@
|
||||
var Ei=Object.defineProperty;var $n=e=>{throw TypeError(e)};var ki=(e,t,n)=>t in e?Ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fe=(e,t,n)=>ki(e,typeof t!="symbol"?t+"":t,n),hn=(e,t,n)=>t.has(e)||$n("Cannot "+n);var l=(e,t,n)=>(hn(e,t,"read from private field"),n?n.call(e):t.get(e)),b=(e,t,n)=>t.has(e)?$n("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),E=(e,t,n,r)=>(hn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),N=(e,t,n)=>(hn(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const Si="5";var ur;typeof window<"u"&&((ur=window.__svelte??(window.__svelte={})).v??(ur.v=new Set)).add(Si);let Pt=!1,Ai=!1;function Ti(){Pt=!0}Ti();const Mi=1,Ci=2,dr=4,Ni=8,Oi=16,Ri=2,j=Symbol(),hr="http://www.w3.org/1999/xhtml",Di=!1;var vr=Array.isArray,Fi=Array.prototype.indexOf,_t=Array.prototype.includes,fn=Array.from,Ii=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,pr=Object.getOwnPropertyDescriptors,Li=Object.prototype,Pi=Array.prototype,On=Object.getPrototypeOf,Gn=Object.isExtensible;const ji=()=>{};function qi(e){return e()}function _n(e){for(var t=0;t<e.length;t++)e[t]()}function _r(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const P=2,gt=4,jt=8,gr=1<<24,De=16,ve=32,tt=64,gn=128,re=512,I=1024,z=2048,xe=4096,K=8192,ie=16384,lt=32768,Xn=1<<25,mt=65536,mn=1<<17,mr=1<<18,ot=1<<19,wr=1<<20,ye=1<<25,nt=65536,wn=1<<21,un=1<<22,Be=1<<23,Mt=Symbol("$state"),Me=new class extends Error{constructor(){super(...arguments);fe(this,"name","StaleReactionError");fe(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function zi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Hi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Bi(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Vi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ui(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Yi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ki(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Wi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $i(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Gi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Xi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Zi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function br(e){return e===this.v}function Ji(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function yr(e){return!Ji(e,this.v)}let R=null;function wt(e){R=e}function xr(e,t=!1,n){R={p:R,i:!1,c:null,e:null,s:e,x:null,r:k,l:Pt&&!t?{s:null,u:null,$:[]}:null}}function Er(e){var t=R,n=t.e;if(n!==null){t.e=null;for(var r of n)Kr(r)}return t.i=!0,R=t.p,{}}function qt(){return!Pt||R!==null&&R.l===null}let ut=[];function Qi(){var e=ut;ut=[],_n(e)}function Ve(e){if(ut.length===0){var t=ut;queueMicrotask(()=>{t===ut&&Qi()})}ut.push(e)}function kr(e){var t=k;if(t===null)return y.f|=Be,e;if((t.f<)===0&&(t.f>)===0)throw e;He(e,t)}function He(e,t){for(;t!==null;){if((t.f&gn)!==0){if((t.f<)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const es=-7169;function O(e,t){e.f=e.f&es|t}function Rn(e){(e.f&re)!==0||e.deps===null?O(e,I):O(e,xe)}function Sr(e){if(e!==null)for(const t of e)(t.f&P)===0||(t.f&nt)===0||(t.f^=nt,Sr(t.deps))}function Ar(e,t,n){(e.f&z)!==0?t.add(e):(e.f&xe)!==0&&n.add(e),Sr(e.deps),O(e,I)}const Ie=new Set;let x=null,q=null,bn=null,vn=!1,ct=null,Zt=null;var Zn=0;let ts=1;var dt,ht,Ce,_e,Ot,X,Rt,qe,Ne,ge,vt,Ge,F,Jt,Tr,Qt,yn,xn,Mr;const ln=class ln{constructor(){b(this,F);fe(this,"id",ts++);fe(this,"current",new Map);fe(this,"previous",new Map);b(this,dt,new Set);b(this,ht,new Set);b(this,Ce,new Map);b(this,_e,new Map);b(this,Ot,null);b(this,X,[]);b(this,Rt,[]);b(this,qe,new Set);b(this,Ne,new Set);b(this,ge,new Map);fe(this,"is_fork",!1);b(this,vt,!1);b(this,Ge,new Set)}skip_effect(t){l(this,ge).has(t)||l(this,ge).set(t,{d:[],m:[]})}unskip_effect(t){var n=l(this,ge).get(t);if(n){l(this,ge).delete(t);for(var
Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
var Br=Object.defineProperty;var bn=e=>{throw TypeError(e)};var Ur=(e,t,n)=>t in e?Br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var be=(e,t,n)=>Ur(e,typeof t!="symbol"?t+"":t,n),Bt=(e,t,n)=>t.has(e)||bn("Cannot "+n);var c=(e,t,n)=>(Bt(e,t,"read from private field"),n?n.call(e):t.get(e)),M=(e,t,n)=>t.has(e)?bn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),De=(e,t,n,r)=>(Bt(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),U=(e,t,n)=>(Bt(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const Vr="5";var In;typeof window<"u"&&((In=window.__svelte??(window.__svelte={})).v??(In.v=new Set)).add(Vr);let pt=!1,Yr=!1;function Kr(){pt=!0}Kr();const Gr=1,Wr=2,Ln=4,$r=8,Xr=16,Zr=2,F=Symbol(),Pn="http://www.w3.org/1999/xhtml",Jr=!1;var jn=Array.isArray,Qr=Array.prototype.indexOf,$e=Array.prototype.includes,rn=Array.from,es=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,qn=Object.getOwnPropertyDescriptors,ts=Object.prototype,ns=Array.prototype,sn=Object.getPrototypeOf;const rs=()=>{};function ss(e){return e()}function Gt(e){for(var t=0;t<e.length;t++)e[t]()}function zn(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const I=2,Xe=4,qt=8,Hn=1<<24,we=16,se=32,Ze=64,is=128,X=512,N=1024,P=2048,ue=4096,B=8192,Z=16384,ze=32768,yn=1<<25,it=65536,Wt=1<<17,Bn=1<<18,_t=1<<19,Un=1<<20,fe=1<<25,je=65536,$t=1<<21,zt=1<<22,Te=1<<23,st=Symbol("$state"),pe=new class extends Error{constructor(){super(...arguments);be(this,"name","StaleReactionError");be(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function ls(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function as(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function os(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function fs(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function us(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function cs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ds(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function vs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ps(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Vn(e){return e===this.v}function _s(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yn(e){return!_s(e,this.v)}let D=null;function Dt(e){D=e}function gs(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,r:E,l:pt&&!t?{s:null,u:null,$:[]}:null}}function ms(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)fr(r)}return t.i=!0,D=t.p,{}}function gt(){return!pt||D!==null&&D.l===null}let Ue=[];function ws(){var e=Ue;Ue=[],Gt(e)}function It(e){if(Ue.length===0){var t=Ue;queueMicrotask(()=>{t===Ue&&ws()})}Ue.push(e)}function xs(e){var t=E;if(t===null)return m.f|=Te,e;if((t.f&ze)===0&&(t.f&Xe)===0)throw e;Ft(e,t)}function Ft(e,t){for(;t!==null;){if((t.f&is)!==0){if((t.f&ze)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const bs=-7169;function C(e,t){e.f=e.f&bs|t}function ln(e){(e.f&X)!==0||e.deps===null?C(e,N):C(e,ue)}function Kn(e){if(e!==null)for(const t of e)(t.f&I)===0||(t.f&je)===0||(t.f^=je,Kn(t.deps))}function ys(e,t,n){(e.f&P)!==0?t.add(e):(e.f&ue)!==0&&n.add(e),Kn(e.deps),C(e,N)}const ye=new Set;let w=null,L=null,Xt=null,Vt=!1,Ve=null,Mt=null;var En=0;let Es=1;var Ke,Ge,_e,le,ct,K,dt,Se,ge,ae,We,Fe,O,Ct,Gn,Rt,Zt,Jt,Wn;const Pt=class Pt{constructor(){M(this,O);be(this,"id",Es++);be(this,"current",new Map);be(this,"previous",new Map);M(this,Ke,new Set);M(this,Ge,new Set);M(this,_e,new Map);M(this,le,new Map);M(this,ct,null);M(this,K,[]);M(this,dt,[]);M(this,Se,new Set);M(this,ge,new Set);M(this,ae,new Map);be(this,"is_fork",!1);M(this,We,!1);M(this,Fe,new Set)}skip_effect(t){c(this,ae).has(t)||c(this,ae).set(t,{d:[],m:[]})}unskip_effect(t){var n=c(this,ae).get(t);if(n){c(this,ae).delete(t);for(var r of n.d)C(r,P),this.schedule(r);for(r of n.m)C(r,ue),this.schedule(r)}}capture(t,n,r=!1){n!==F&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Te)===0&&(this.current.set(t,[t.v,r]),LLine truncated
|
||||
Vendored
+1
-1
@@ -8,7 +8,7 @@
|
||||
name="description"
|
||||
content="AMCS is a memory server that captures, links, and retrieves structured project thoughts for AI assistants using semantic search, summaries, and MCP tools."
|
||||
/>
|
||||
<script type="module" crossorigin src="/assets/index-CIozj4p7.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-CAayb6ka.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BDhMN0_9.css">
|
||||
</head>
|
||||
<body class="bg-slate-950">
|
||||
|
||||
+2
-1
@@ -1,7 +1,8 @@
|
||||
import './app.css';
|
||||
import App from './App.svelte';
|
||||
import { mount } from 'svelte';
|
||||
|
||||
const app = new App({
|
||||
const app = mount(App, {
|
||||
target: document.getElementById('app')!
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user