signetai 0.65.9 → 0.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dashboard/_app/immutable/chunks/{BHnT0zVt.js → Bz5ZsSuJ.js} +1 -1
- package/dashboard/_app/immutable/entry/{app.C-A2iNwW.js → app.Da34WY5H.js} +2 -2
- package/dashboard/_app/immutable/entry/start.CmnGWcfC.js +1 -0
- package/dashboard/_app/immutable/nodes/{1.CRb2H524.js → 1.DZFwtQ5c.js} +1 -1
- package/dashboard/_app/version.json +1 -1
- package/dashboard/index.html +6 -6
- package/dist/cli.js +141 -22
- package/dist/daemon.js +933 -542
- package/package.json +1 -1
- package/dashboard/_app/immutable/entry/start.QK3mRL5q.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bg as Ee,z as De,y as A,i as U,B as T,R as te,bh as _t}from"./BJi5clDn.js";class Se{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class xe extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function vt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function wt(e){return e.split("%25").map(decodeURI).join("%25")}function yt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function pe({href:e}){return e.split("#")[0]}function bt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),s[o](c,...d));t();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function Et(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const St=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Le(e)),St(e,t));const H=new Map;function Rt(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&H.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=Et(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function xt(e,t,n){if(H.size>0){const r=Le(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${kt(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function At(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Tt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return ge(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return ge(String.fromCharCode(...l.slice(2).split("-").map(_=>parseInt(_,16))));const d=Lt.exec(l),[,p,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!p,rest:!!u,chained:u?c===1&&s[0]==="":!1}),u?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ge(l)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Tt(e){return e.slice(1).split("/").filter(Ut)}function Pt(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-s];if(l.chained&&l.rest&&s&&(c=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function ge(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function It({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:u}=At(o),f={id:o,exec:h=>{const _=p.exec(h);if(_)return Pt(_,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(s),leaf:i(l)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function i(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function ze(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function qe(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_1e6islu?.base??"",Ot=globalThis.__sveltekit_1e6islu?.assets??x??"",Ct="1773920830467",Je="sveltekit:snapshot",Ye="sveltekit:scroll",Xe="sveltekit:states",$t="sveltekit:pageurl",V="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Ae=location.origin;function Qe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function D(){return{x:pageXOffset,y:pageYOffset}}function q(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ve={...j,"":j.hover};function Ze(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ze(e)}}function ve(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===Ae&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function ne(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=q(o,"preload-code")),a===null&&(a=q(o,"preload-data")),t===null&&(t=q(o,"keepfocus")),n===null&&(n=q(o,"noscroll")),i===null&&(i=q(o,"reload")),s===null&&(s=q(o,"replacestate")),o=Ze(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ve[r??"off"],preload_data:Ve[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(s)}}function Be(e){const t=Ee(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:a,subscribe:i}}const tt={v:()=>{}};function jt(){const{set:e,subscribe:t}=Ee(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ot}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==Ct;return s&&(e(!0),tt.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==Ae||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function un(e){}const nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const Nt=new Set([...nt]);[...Nt];function Dt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Se||e instanceof xe?e.status:500}function qt(e){return e instanceof xe?e.text:"Internal Error"}let k,J,me;const Vt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString()),Ke="a:";Vt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Ke)},J={current:null},me={current:!1}):(k=new class{#e=A({});get data(){return U(this.#e)}set data(t){T(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){T(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){T(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){T(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){T(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){T(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){T(this.#s,t)}#i=A(new URL(Ke));get url(){return U(this.#i)}set url(t){T(this.#i,t)}},J=new class{#e=A(null);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},me=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},tt.v=()=>me.current=!0);function Bt(e){Object.assign(k,e)}const Fe={spanContext(){return Kt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Kt={traceId:"",spanId:"",traceFlags:0},Ft=new Set(["icon","shortcut icon","apple-touch-icon"]);let G=null;const $=ze(Ye)??{},Y=ze(Je)??{},C={url:Be({}),page:Be({}),navigating:Ee(null),updated:jt()};function Te(e){$[e]=D()}function Gt(e,t){let n=e+1;for(;$[n];)delete $[n],n+=1;for(n=t+1;Y[n];)delete Y[n],n+=1}function X(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Ge(){}let Pe,we,re,P,ye,w;const ae=[],oe=[];let L=null;function be(){L?.fork?.then(e=>e?.discard()),L=null}const ee=new Map,at=new Set,Mt=new Set,W=new Set;let v={branch:[],error:null,url:null},ot=!1,se=!1,Me=!0,Q=!1,M=!1,st=!1,Ie=!1,it,y,R,N;const ie=new Set,He=new Map;async function pn(e,t,n){globalThis.__sveltekit_1e6islu?.data&&globalThis.__sveltekit_1e6islu.data,document.URL!==location.href&&(location.href=location.href),w=e,await e.hooks.init?.(),Pe=It(e),P=document.documentElement,ye=t,we=e.nodes[0],re=e.nodes[1],we(),re(),y=history.state?.[V],R=history.state?.[z],y||(y=R=Date.now(),history.replaceState({...history.state,[V]:y,[z]:R},""));const r=$[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await an(ye,n)):(await B({type:"enter",url:Qe(w.hash?ln(new URL(location.href)):location.href),replace_state:!0}),a()),rn()}function Ht(){ae.length=0,Ie=!1}function lt(e){oe.some(t=>t?.snapshot)&&(Y[e]=oe.map(t=>t?.snapshot?.capture()))}function ct(e){Y[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function We(){Te(y),qe(Ye,$),lt(R),qe(Je,Y)}async function Wt(e,t,n,r){let a;t.invalidateAll&&be(),await B({type:"goto",url:Qe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ie=!0,a=[...He.keys()]),t.invalidate&&t.invalidate.forEach(nn)}}),t.invalidateAll&&te().then(te).then(()=>{He.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function zt(e){if(e.id!==L?.id){be();const t={};ie.add(t),L={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(ie.delete(t),n.type==="loaded"&&n.state.error&&be(),n)),fork:null}}return L.promise}async function _e(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function ut(e,t,n){const r={params:v.params,route:{id:v.route?.id??null},url:new URL(location.href)};v={...e.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),it=new w.root({target:t,props:{...e.props,stores:C,components:oe},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),ct(R),n){const i={from:null,to:{...r,scroll:$[y]??D()},willUnload:!1,type:"enter",complete:Promise.resolve()};W.forEach(s=>s(i))}se=!0}async function le({url:e,params:t,branch:n,errors:r,status:a,error:i,route:s,form:o}){let l="never";if(x&&(e.pathname===x||e.pathname===x+"/"))l="always";else for(const h of n)h?.slash!==void 0&&(l=h.slash);e.pathname=vt(e.pathname,l),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:s},props:{constructors:Dt(n).map(h=>h.node.component),page:Ne(k)}};o!==void 0&&(c.props.form=o);let d={},p=!k,u=0;for(let h=0;h<Math.max(n.length,v.branch.length);h+=1){const _=n[h],m=v.branch[h];_?.data!==m?.data&&(p=!0),_&&(d={...d,..._.data},p&&(c.props[`data_${u}`]=d),u+=1)}return(!v.url||e.href!==v.url.href||v.error!==i||o!==void 0&&o!==k.form||p)&&(c.props.page={error:i,params:t,route:{id:s?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:p?d:k.data}),c}async function Oe({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...u){for(const f of u){const{href:h}=new URL(f,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Fe,current:Fe},route:new Proxy(a,{get:(u,f)=>(o&&(l.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&l.params.add(f),u[f])}),data:i?.data??null,url:bt(n,()=>{o&&(l.url=!0)},u=>{o&&l.search_params.add(u)},w.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:h,promise:_}=ft(u,f,n);return o&&d(h.href),_},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};s=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:s,uses:l}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function ft(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=se?xt(r,a.href,t):Rt(r,t);return{resolved:a,promise:i}}function Jt(e,t,n,r,a,i){if(Ie)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==v.params[s])return!0;for(const s of a.dependencies)if(ae.some(o=>o(new URL(s))))return!0;return!1}function Ce(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function Xt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ne(k),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ie.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:l}=a,c=[...o,l];s.forEach(m=>m?.().catch(()=>{})),c.forEach(m=>m?.[1]().catch(()=>{}));const d=v.url?e!==ce(v.url):!1,p=v.route?a.id!==v.route.id:!1,u=Yt(v.url,n);let f=!1;const h=c.map(async(m,g)=>{if(!m)return;const E=v.branch[g];return m[1]===E?.loader&&!Jt(f,p,d,u,E.universal?.uses,r)?E:(f=!0,Oe({loader:m[1],url:n,params:r,route:a,parent:async()=>{const I={};for(let O=0;O<g;O+=1)Object.assign(I,(await h[O])?.data);return I},server_data_node:Ce(m[0]?{type:"skip"}:null,m[0]?E?.server:void 0)}))});for(const m of h)m.catch(()=>{});const _=[];for(let m=0;m<c.length;m+=1)if(c[m])try{_.push(await h[m])}catch(g){if(g instanceof Re)return{type:"redirect",location:g.location};if(ie.has(i))return Xt({error:await Z(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=Ue(g),S;if(g instanceof Se)S=g.body;else{if(await C.updated.check())return await rt(),await X(n);S=await Z(g,{params:r,url:n,route:{id:a.id}})}const I=await Qt(m,_,s);return I?le({url:n,params:r,branch:_.slice(0,I.idx).concat(I.node),errors:s,status:E,error:S,route:a}):await pt(n,{id:a.id},S,E)}else _.push(void 0);return le({url:n,params:r,branch:_,errors:s,status:200,error:null,route:a,form:t?void 0:null})}async function Qt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function $e({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await Oe({loader:we,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Ce(i)}),o={node:await re(),loader:re,universal:null,server:null,data:null};return le({url:n,params:a,branch:[s,o],status:e,error:t,errors:[],route:null})}catch(s){if(s instanceof Re)return Wt(new URL(s.location,location.href),{},0);throw s}}async function Zt(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>{let a=await w.hooks.reroute({url:new URL(e),fetch:async(i,s)=>ft(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);w.hash?i.hash=a:i.pathname=a,a=i}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,x,w.hash)){const n=await Zt(e);if(!n)return;const r=en(n);for(const a of Pe){const i=a.exec(r);if(i)return{id:ce(e),invalidating:t,route:a,params:yt(i),url:e}}}}function en(e){return wt(w.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function ce(e){return(w.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=je(v,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return Q||at.forEach(c=>c(l)),s?null:o}async function B({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=Ge,block:d=Ge,event:p}){const u=N;N=l;const f=await fe(t,!1),h=e==="enter"?je(v,f,t,e):ht({url:t,type:e,delta:n?.delta,intent:f,scroll:n?.scroll,event:p});if(!h){d(),N===l&&(N=u);return}const _=y,m=R;c(),Q=!0,se&&h.navigation.type!=="enter"&&C.navigating.set(J.current=h.navigation);let g=f&&await dt(f);if(!g){if(ue(t,x,w.hash))return await X(t,i);g=await pt(t,{id:null},await Z(new xe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=f?.url||t,N!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await B({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await $e({status:500,error:await Z(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await C.updated.check()&&(await rt(),await X(t,i));if(Ht(),Te(_),lt(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const b=i?0:1,K={[V]:y+=b,[z]:R+=b,[Xe]:s};(i?history.replaceState:history.pushState).call(history,K,"",t),i||Gt(y,R)}const E=f&&L?.id===f.id?L.fork:null;L=null,g.props.page.state=s;let S;if(se){const b=(await Promise.all(Array.from(Mt,F=>F(h.navigation)))).filter(F=>typeof F=="function");if(b.length>0){let F=function(){b.forEach(he=>{W.delete(he)})};b.push(F),b.forEach(he=>{W.add(he)})}const K=h.navigation.to;v={...g.state,nav:{params:K.params,route:K.route,url:K.url}},g.props.page&&(g.props.page.url=t);const de=E&&await E;de?S=de.commit():(G=null,it.$set(g.props),G&&Object.assign(g.props.page,G),Bt(g.props.page),S=_t?.()),st=!0}else await ut(g,ye,!1);const{activeElement:I}=document;await S,await te(),await te();let O=null;if(Me){const b=n?n.scroll:a?D():null;b?scrollTo(b.x,b.y):(O=t.hash&&document.getElementById(gt(t)))?O.scrollIntoView():scrollTo(0,0)}const mt=document.activeElement!==I&&document.activeElement!==document.body;!r&&!mt&&sn(t,!O),Me=!0,g.props.page&&(G&&Object.assign(g.props.page,G),Object.assign(k,g.props.page)),Q=!1,e==="popstate"&&ct(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=D()),W.forEach(b=>b(h.navigation)),C.navigating.set(J.current=null)}async function pt(e,t,n,r,a){return e.origin===Ae&&e.pathname===location.pathname&&!ot?await $e({status:r,error:n,url:e,route:t}):await X(e,a)}function tn(){let e,t={element:void 0,href:void 0},n;P.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{i(l,j.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],j.tap)}P.addEventListener("mousedown",r),P.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(_e(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(o,l){const c=et(o,P),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:u,download:f}=ve(c,x,w.hash);if(u||f)return;const h=ne(c),_=p&&ce(v.url)===ce(p);if(!(h.reload||_))if(l<=h.preload_data){t={element:c,href:c.href},n=j.tap;const m=await fe(p,!1);if(!m)return;zt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,_e(p))}function s(){a.disconnect();for(const o of P.querySelectorAll("a")){const{url:l,external:c,download:d}=ve(o,x,w.hash);if(c||d)continue;const p=ne(o);p.reload||(p.preload_code===j.viewport&&a.observe(o),p.preload_code===j.eager&&_e(l))}}W.add(s),s()}function Z(e,t){if(e instanceof Se)return e.body;const n=Ue(e),r=qt(e);return w.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function nn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function rn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(We(),!Q){const r=je(v,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};at.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&We()}),navigator.connection?.saveData||tn(),P.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],P);if(!n)return;const{url:r,external:a,target:i,download:s}=ve(n,x,w.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=ne(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[c,d]=(w.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===pe(location);if(a||o.reload&&(!p||!d)){ht({url:r,type:"link",event:t})?Q=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=v.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(M=!0,Te(y),e(r),!o.replace_state)return;M=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await B({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),P.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(s,x,!1))return;const o=t.target,l=ne(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);s.search=new URLSearchParams(c).toString(),B({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ke){if(t.state?.[V]){const n=t.state[V];if(N={},n===y)return;const r=$[n],a=t.state[Xe]??{},i=new URL(t.state[$t]??location.href),s=t.state[z],o=v.url?pe(location)===pe(v.url):!1;if(s===R&&(st||o)){a!==k.state&&(k.state=a),e(i),$[y]=D(),r&&scrollTo(r.x,r.y),y=n;return}const c=n-y;await B({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{y=n,R=s},block:()=>{history.go(-c)},nav_token:N,event:t})}else if(!M){const n=new URL(location.href);e(n),w.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[V]:++y,[z]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Ft.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(J.current=null)});function e(t){v.url=k.url=t,C.page.set(Ne(k)),C.page.notify()}}async function an(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:l}){ot=!0;const c=new URL(location.href);let d;({params:a={},route:i={id:null}}=await fe(c,!1)||{}),d=Pe.find(({id:f})=>f===i.id);let p,u=!0;try{const f=r.map(async(_,m)=>{const g=o[m];return g?.uses&&(g.uses=on(g.uses)),Oe({loader:w.nodes[_],url:c,params:a,route:i,parent:async()=>{const E={};for(let S=0;S<m;S+=1)Object.assign(E,(await f[S]).data);return E},server_data_node:Ce(g)})}),h=await Promise.all(f);if(d){const _=d.layouts;for(let m=0;m<_.length;m++)_[m]||h.splice(m,0,void 0)}p=await le({url:c,params:a,branch:h,status:t,error:n,errors:d?.errors,form:l,route:d??null})}catch(f){if(f instanceof Re){await X(new URL(f.location,location.href));return}p=await $e({status:Ue(f),error:await Z(f,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",u=!1}p.props.page&&(p.props.page.state={}),await ut(p,e,u)}function on(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let ke=!1;function sn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=gt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=D();setTimeout(()=>{const o=history.state;ke=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),ke=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],l=a.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function je(e,t,n,r,a=null){let i,s;const o=new Promise((c,d)=>{i=c,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function Ne(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function ln(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(w.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{pn as a,un as l,k as p,C as s};
|
|
1
|
+
import{bg as Ee,z as De,y as A,i as U,B as T,R as te,bh as _t}from"./BJi5clDn.js";class Se{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class xe extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function vt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function wt(e){return e.split("%25").map(decodeURI).join("%25")}function yt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function pe({href:e}){return e.split("#")[0]}function bt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),s[o](c,...d));t();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function Et(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const St=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Le(e)),St(e,t));const H=new Map;function Rt(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&H.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=Et(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function xt(e,t,n){if(H.size>0){const r=Le(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${kt(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function At(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Tt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return ge(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return ge(String.fromCharCode(...l.slice(2).split("-").map(_=>parseInt(_,16))));const d=Lt.exec(l),[,p,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!p,rest:!!u,chained:u?c===1&&s[0]==="":!1}),u?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ge(l)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Tt(e){return e.slice(1).split("/").filter(Ut)}function Pt(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-s];if(l.chained&&l.rest&&s&&(c=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function ge(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function It({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:u}=At(o),f={id:o,exec:h=>{const _=p.exec(h);if(_)return Pt(_,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(s),leaf:i(l)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function i(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function ze(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function qe(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_14x660o?.base??"",Ot=globalThis.__sveltekit_14x660o?.assets??x??"",Ct="1773958912076",Je="sveltekit:snapshot",Ye="sveltekit:scroll",Xe="sveltekit:states",$t="sveltekit:pageurl",V="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Ae=location.origin;function Qe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function D(){return{x:pageXOffset,y:pageYOffset}}function q(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ve={...j,"":j.hover};function Ze(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ze(e)}}function ve(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===Ae&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function ne(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=q(o,"preload-code")),a===null&&(a=q(o,"preload-data")),t===null&&(t=q(o,"keepfocus")),n===null&&(n=q(o,"noscroll")),i===null&&(i=q(o,"reload")),s===null&&(s=q(o,"replacestate")),o=Ze(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ve[r??"off"],preload_data:Ve[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(s)}}function Be(e){const t=Ee(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:a,subscribe:i}}const tt={v:()=>{}};function jt(){const{set:e,subscribe:t}=Ee(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ot}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==Ct;return s&&(e(!0),tt.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==Ae||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function un(e){}const nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const Nt=new Set([...nt]);[...Nt];function Dt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Se||e instanceof xe?e.status:500}function qt(e){return e instanceof xe?e.text:"Internal Error"}let k,J,me;const Vt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString()),Ke="a:";Vt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Ke)},J={current:null},me={current:!1}):(k=new class{#e=A({});get data(){return U(this.#e)}set data(t){T(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){T(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){T(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){T(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){T(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){T(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){T(this.#s,t)}#i=A(new URL(Ke));get url(){return U(this.#i)}set url(t){T(this.#i,t)}},J=new class{#e=A(null);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},me=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},tt.v=()=>me.current=!0);function Bt(e){Object.assign(k,e)}const Fe={spanContext(){return Kt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Kt={traceId:"",spanId:"",traceFlags:0},Ft=new Set(["icon","shortcut icon","apple-touch-icon"]);let G=null;const $=ze(Ye)??{},Y=ze(Je)??{},C={url:Be({}),page:Be({}),navigating:Ee(null),updated:jt()};function Te(e){$[e]=D()}function Gt(e,t){let n=e+1;for(;$[n];)delete $[n],n+=1;for(n=t+1;Y[n];)delete Y[n],n+=1}function X(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Ge(){}let Pe,we,re,P,ye,w;const ae=[],oe=[];let L=null;function be(){L?.fork?.then(e=>e?.discard()),L=null}const ee=new Map,at=new Set,Mt=new Set,W=new Set;let v={branch:[],error:null,url:null},ot=!1,se=!1,Me=!0,Q=!1,M=!1,st=!1,Ie=!1,it,y,R,N;const ie=new Set,He=new Map;async function pn(e,t,n){globalThis.__sveltekit_14x660o?.data&&globalThis.__sveltekit_14x660o.data,document.URL!==location.href&&(location.href=location.href),w=e,await e.hooks.init?.(),Pe=It(e),P=document.documentElement,ye=t,we=e.nodes[0],re=e.nodes[1],we(),re(),y=history.state?.[V],R=history.state?.[z],y||(y=R=Date.now(),history.replaceState({...history.state,[V]:y,[z]:R},""));const r=$[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await an(ye,n)):(await B({type:"enter",url:Qe(w.hash?ln(new URL(location.href)):location.href),replace_state:!0}),a()),rn()}function Ht(){ae.length=0,Ie=!1}function lt(e){oe.some(t=>t?.snapshot)&&(Y[e]=oe.map(t=>t?.snapshot?.capture()))}function ct(e){Y[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function We(){Te(y),qe(Ye,$),lt(R),qe(Je,Y)}async function Wt(e,t,n,r){let a;t.invalidateAll&&be(),await B({type:"goto",url:Qe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ie=!0,a=[...He.keys()]),t.invalidate&&t.invalidate.forEach(nn)}}),t.invalidateAll&&te().then(te).then(()=>{He.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function zt(e){if(e.id!==L?.id){be();const t={};ie.add(t),L={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(ie.delete(t),n.type==="loaded"&&n.state.error&&be(),n)),fork:null}}return L.promise}async function _e(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function ut(e,t,n){const r={params:v.params,route:{id:v.route?.id??null},url:new URL(location.href)};v={...e.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),it=new w.root({target:t,props:{...e.props,stores:C,components:oe},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),ct(R),n){const i={from:null,to:{...r,scroll:$[y]??D()},willUnload:!1,type:"enter",complete:Promise.resolve()};W.forEach(s=>s(i))}se=!0}async function le({url:e,params:t,branch:n,errors:r,status:a,error:i,route:s,form:o}){let l="never";if(x&&(e.pathname===x||e.pathname===x+"/"))l="always";else for(const h of n)h?.slash!==void 0&&(l=h.slash);e.pathname=vt(e.pathname,l),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:s},props:{constructors:Dt(n).map(h=>h.node.component),page:Ne(k)}};o!==void 0&&(c.props.form=o);let d={},p=!k,u=0;for(let h=0;h<Math.max(n.length,v.branch.length);h+=1){const _=n[h],m=v.branch[h];_?.data!==m?.data&&(p=!0),_&&(d={...d,..._.data},p&&(c.props[`data_${u}`]=d),u+=1)}return(!v.url||e.href!==v.url.href||v.error!==i||o!==void 0&&o!==k.form||p)&&(c.props.page={error:i,params:t,route:{id:s?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:p?d:k.data}),c}async function Oe({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...u){for(const f of u){const{href:h}=new URL(f,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Fe,current:Fe},route:new Proxy(a,{get:(u,f)=>(o&&(l.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&l.params.add(f),u[f])}),data:i?.data??null,url:bt(n,()=>{o&&(l.url=!0)},u=>{o&&l.search_params.add(u)},w.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:h,promise:_}=ft(u,f,n);return o&&d(h.href),_},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};s=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:s,uses:l}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function ft(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=se?xt(r,a.href,t):Rt(r,t);return{resolved:a,promise:i}}function Jt(e,t,n,r,a,i){if(Ie)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==v.params[s])return!0;for(const s of a.dependencies)if(ae.some(o=>o(new URL(s))))return!0;return!1}function Ce(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function Xt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ne(k),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ie.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:l}=a,c=[...o,l];s.forEach(m=>m?.().catch(()=>{})),c.forEach(m=>m?.[1]().catch(()=>{}));const d=v.url?e!==ce(v.url):!1,p=v.route?a.id!==v.route.id:!1,u=Yt(v.url,n);let f=!1;const h=c.map(async(m,g)=>{if(!m)return;const E=v.branch[g];return m[1]===E?.loader&&!Jt(f,p,d,u,E.universal?.uses,r)?E:(f=!0,Oe({loader:m[1],url:n,params:r,route:a,parent:async()=>{const I={};for(let O=0;O<g;O+=1)Object.assign(I,(await h[O])?.data);return I},server_data_node:Ce(m[0]?{type:"skip"}:null,m[0]?E?.server:void 0)}))});for(const m of h)m.catch(()=>{});const _=[];for(let m=0;m<c.length;m+=1)if(c[m])try{_.push(await h[m])}catch(g){if(g instanceof Re)return{type:"redirect",location:g.location};if(ie.has(i))return Xt({error:await Z(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=Ue(g),S;if(g instanceof Se)S=g.body;else{if(await C.updated.check())return await rt(),await X(n);S=await Z(g,{params:r,url:n,route:{id:a.id}})}const I=await Qt(m,_,s);return I?le({url:n,params:r,branch:_.slice(0,I.idx).concat(I.node),errors:s,status:E,error:S,route:a}):await pt(n,{id:a.id},S,E)}else _.push(void 0);return le({url:n,params:r,branch:_,errors:s,status:200,error:null,route:a,form:t?void 0:null})}async function Qt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function $e({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await Oe({loader:we,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Ce(i)}),o={node:await re(),loader:re,universal:null,server:null,data:null};return le({url:n,params:a,branch:[s,o],status:e,error:t,errors:[],route:null})}catch(s){if(s instanceof Re)return Wt(new URL(s.location,location.href),{},0);throw s}}async function Zt(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>{let a=await w.hooks.reroute({url:new URL(e),fetch:async(i,s)=>ft(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);w.hash?i.hash=a:i.pathname=a,a=i}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,x,w.hash)){const n=await Zt(e);if(!n)return;const r=en(n);for(const a of Pe){const i=a.exec(r);if(i)return{id:ce(e),invalidating:t,route:a,params:yt(i),url:e}}}}function en(e){return wt(w.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function ce(e){return(w.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=je(v,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return Q||at.forEach(c=>c(l)),s?null:o}async function B({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=Ge,block:d=Ge,event:p}){const u=N;N=l;const f=await fe(t,!1),h=e==="enter"?je(v,f,t,e):ht({url:t,type:e,delta:n?.delta,intent:f,scroll:n?.scroll,event:p});if(!h){d(),N===l&&(N=u);return}const _=y,m=R;c(),Q=!0,se&&h.navigation.type!=="enter"&&C.navigating.set(J.current=h.navigation);let g=f&&await dt(f);if(!g){if(ue(t,x,w.hash))return await X(t,i);g=await pt(t,{id:null},await Z(new xe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=f?.url||t,N!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await B({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await $e({status:500,error:await Z(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await C.updated.check()&&(await rt(),await X(t,i));if(Ht(),Te(_),lt(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const b=i?0:1,K={[V]:y+=b,[z]:R+=b,[Xe]:s};(i?history.replaceState:history.pushState).call(history,K,"",t),i||Gt(y,R)}const E=f&&L?.id===f.id?L.fork:null;L=null,g.props.page.state=s;let S;if(se){const b=(await Promise.all(Array.from(Mt,F=>F(h.navigation)))).filter(F=>typeof F=="function");if(b.length>0){let F=function(){b.forEach(he=>{W.delete(he)})};b.push(F),b.forEach(he=>{W.add(he)})}const K=h.navigation.to;v={...g.state,nav:{params:K.params,route:K.route,url:K.url}},g.props.page&&(g.props.page.url=t);const de=E&&await E;de?S=de.commit():(G=null,it.$set(g.props),G&&Object.assign(g.props.page,G),Bt(g.props.page),S=_t?.()),st=!0}else await ut(g,ye,!1);const{activeElement:I}=document;await S,await te(),await te();let O=null;if(Me){const b=n?n.scroll:a?D():null;b?scrollTo(b.x,b.y):(O=t.hash&&document.getElementById(gt(t)))?O.scrollIntoView():scrollTo(0,0)}const mt=document.activeElement!==I&&document.activeElement!==document.body;!r&&!mt&&sn(t,!O),Me=!0,g.props.page&&(G&&Object.assign(g.props.page,G),Object.assign(k,g.props.page)),Q=!1,e==="popstate"&&ct(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=D()),W.forEach(b=>b(h.navigation)),C.navigating.set(J.current=null)}async function pt(e,t,n,r,a){return e.origin===Ae&&e.pathname===location.pathname&&!ot?await $e({status:r,error:n,url:e,route:t}):await X(e,a)}function tn(){let e,t={element:void 0,href:void 0},n;P.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{i(l,j.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],j.tap)}P.addEventListener("mousedown",r),P.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(_e(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(o,l){const c=et(o,P),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:u,download:f}=ve(c,x,w.hash);if(u||f)return;const h=ne(c),_=p&&ce(v.url)===ce(p);if(!(h.reload||_))if(l<=h.preload_data){t={element:c,href:c.href},n=j.tap;const m=await fe(p,!1);if(!m)return;zt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,_e(p))}function s(){a.disconnect();for(const o of P.querySelectorAll("a")){const{url:l,external:c,download:d}=ve(o,x,w.hash);if(c||d)continue;const p=ne(o);p.reload||(p.preload_code===j.viewport&&a.observe(o),p.preload_code===j.eager&&_e(l))}}W.add(s),s()}function Z(e,t){if(e instanceof Se)return e.body;const n=Ue(e),r=qt(e);return w.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function nn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function rn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(We(),!Q){const r=je(v,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};at.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&We()}),navigator.connection?.saveData||tn(),P.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],P);if(!n)return;const{url:r,external:a,target:i,download:s}=ve(n,x,w.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=ne(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[c,d]=(w.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===pe(location);if(a||o.reload&&(!p||!d)){ht({url:r,type:"link",event:t})?Q=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=v.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(M=!0,Te(y),e(r),!o.replace_state)return;M=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await B({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),P.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(s,x,!1))return;const o=t.target,l=ne(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);s.search=new URLSearchParams(c).toString(),B({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ke){if(t.state?.[V]){const n=t.state[V];if(N={},n===y)return;const r=$[n],a=t.state[Xe]??{},i=new URL(t.state[$t]??location.href),s=t.state[z],o=v.url?pe(location)===pe(v.url):!1;if(s===R&&(st||o)){a!==k.state&&(k.state=a),e(i),$[y]=D(),r&&scrollTo(r.x,r.y),y=n;return}const c=n-y;await B({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{y=n,R=s},block:()=>{history.go(-c)},nav_token:N,event:t})}else if(!M){const n=new URL(location.href);e(n),w.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[V]:++y,[z]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Ft.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(J.current=null)});function e(t){v.url=k.url=t,C.page.set(Ne(k)),C.page.notify()}}async function an(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:l}){ot=!0;const c=new URL(location.href);let d;({params:a={},route:i={id:null}}=await fe(c,!1)||{}),d=Pe.find(({id:f})=>f===i.id);let p,u=!0;try{const f=r.map(async(_,m)=>{const g=o[m];return g?.uses&&(g.uses=on(g.uses)),Oe({loader:w.nodes[_],url:c,params:a,route:i,parent:async()=>{const E={};for(let S=0;S<m;S+=1)Object.assign(E,(await f[S]).data);return E},server_data_node:Ce(g)})}),h=await Promise.all(f);if(d){const _=d.layouts;for(let m=0;m<_.length;m++)_[m]||h.splice(m,0,void 0)}p=await le({url:c,params:a,branch:h,status:t,error:n,errors:d?.errors,form:l,route:d??null})}catch(f){if(f instanceof Re){await X(new URL(f.location,location.href));return}p=await $e({status:Ue(f),error:await Z(f,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",u=!1}p.props.page&&(p.props.page.state={}),await ut(p,e,u)}function on(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let ke=!1;function sn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=gt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=D();setTimeout(()=>{const o=history.state;ke=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),ke=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],l=a.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function je(e,t,n,r,a=null){let i,s;const o=new Promise((c,d)=>{i=c,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function Ne(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function ln(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(w.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{pn as a,un as l,k as p,C as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.Bg5BC1hd.js","../chunks/BJi5clDn.js","../assets/vendor-ui.BHIBfuhK.css","../assets/0.D0YIyVSv.css","../nodes/1.
|
|
2
|
-
import{_ as v}from"../chunks/PPVm8Dsz.js";import{p as Q,g,a5 as q,Q as H,z as J,i,B as h,R as K,f as _,k as b,A as N,b as d,d as S,y as p,c as E,h as P,v as y,j as U,l as W,m as D,u as O,E as X,F as Y,G as Z,a6 as $}from"../chunks/BJi5clDn.js";const it={};var tt=D('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),et=D("<!> <!>",1);function at(a,t){Q(t,!0);let r=g(t,"components",23,()=>[]),l=g(t,"data_0",3,null),x=g(t,"data_1",3,null);q(()=>t.stores.page.set(t.page)),H(()=>{t.stores,t.page,t.constructors,r(),t.form,l(),x(),t.stores.page.notify()});let f=p(!1),j=p(!1),R=p(null);J(()=>{const e=t.stores.page.subscribe(()=>{i(f)&&(h(j,!0),K().then(()=>{h(R,document.title||"untitled page",!0)}))});return h(f,!0),e});const L=O(()=>t.constructors[1]);var k=et(),w=_(k);{var T=e=>{const s=O(()=>t.constructors[0]);var o=E(),m=_(o);P(m,()=>i(s),(n,c)=>{y(c(n,{get data(){return l()},get form(){return t.form},get params(){return t.page.params},children:(u,st)=>{var A=E(),B=_(A);P(B,()=>i(L),(F,G)=>{y(G(F,{get data(){return x()},get form(){return t.form},get params(){return t.page.params}}),M=>r()[1]=M,()=>r()?.[1])}),d(u,A)},$$slots:{default:!0}}),u=>r()[0]=u,()=>r()?.[0])}),d(e,o)},V=e=>{const s=O(()=>t.constructors[0]);var o=E(),m=_(o);P(m,()=>i(s),(n,c)=>{y(c(n,{get data(){return l()},get form(){return t.form},get params(){return t.page.params}}),u=>r()[0]=u,()=>r()?.[0])}),d(e,o)};b(w,e=>{t.constructors[1]?e(T):e(V,-1)})}var C=N(w,2);{var z=e=>{var s=tt(),o=U(s);{var m=n=>{var c=X();Y(()=>Z(c,i(R))),d(n,c)};b(o,n=>{i(j)&&n(m)})}W(s),d(e,s)};b(C,e=>{i(f)&&e(z)})}d(a,k),S()}const ct=$(at),dt=[()=>v(()=>import("../nodes/0.Bg5BC1hd.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>v(()=>import("../nodes/1.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.Bg5BC1hd.js","../chunks/BJi5clDn.js","../assets/vendor-ui.BHIBfuhK.css","../assets/0.D0YIyVSv.css","../nodes/1.DZFwtQ5c.js","../chunks/Bz5ZsSuJ.js","../nodes/2.DztqPwPi.js","../chunks/B0zfhVwg.js","../chunks/Cik1Y8bQ.js","../chunks/PPVm8Dsz.js","../assets/2.BqUJ-YIW.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as v}from"../chunks/PPVm8Dsz.js";import{p as Q,g,a5 as q,Q as H,z as J,i,B as h,R as K,f as _,k as b,A as N,b as d,d as S,y as p,c as E,h as P,v as y,j as U,l as W,m as D,u as O,E as X,F as Y,G as Z,a6 as $}from"../chunks/BJi5clDn.js";const it={};var tt=D('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),et=D("<!> <!>",1);function at(a,t){Q(t,!0);let r=g(t,"components",23,()=>[]),l=g(t,"data_0",3,null),x=g(t,"data_1",3,null);q(()=>t.stores.page.set(t.page)),H(()=>{t.stores,t.page,t.constructors,r(),t.form,l(),x(),t.stores.page.notify()});let f=p(!1),j=p(!1),R=p(null);J(()=>{const e=t.stores.page.subscribe(()=>{i(f)&&(h(j,!0),K().then(()=>{h(R,document.title||"untitled page",!0)}))});return h(f,!0),e});const L=O(()=>t.constructors[1]);var k=et(),w=_(k);{var T=e=>{const s=O(()=>t.constructors[0]);var o=E(),m=_(o);P(m,()=>i(s),(n,c)=>{y(c(n,{get data(){return l()},get form(){return t.form},get params(){return t.page.params},children:(u,st)=>{var A=E(),B=_(A);P(B,()=>i(L),(F,G)=>{y(G(F,{get data(){return x()},get form(){return t.form},get params(){return t.page.params}}),M=>r()[1]=M,()=>r()?.[1])}),d(u,A)},$$slots:{default:!0}}),u=>r()[0]=u,()=>r()?.[0])}),d(e,o)},V=e=>{const s=O(()=>t.constructors[0]);var o=E(),m=_(o);P(m,()=>i(s),(n,c)=>{y(c(n,{get data(){return l()},get form(){return t.form},get params(){return t.page.params}}),u=>r()[0]=u,()=>r()?.[0])}),d(e,o)};b(w,e=>{t.constructors[1]?e(T):e(V,-1)})}var C=N(w,2);{var z=e=>{var s=tt(),o=U(s);{var m=n=>{var c=X();Y(()=>Z(c,i(R))),d(n,c)};b(o,n=>{i(j)&&n(m)})}W(s),d(e,s)};b(C,e=>{i(f)&&e(z)})}d(a,k),S()}const ct=$(at),dt=[()=>v(()=>import("../nodes/0.Bg5BC1hd.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>v(()=>import("../nodes/1.DZFwtQ5c.js"),__vite__mapDeps([4,1,2,5]),import.meta.url),()=>v(()=>import("../nodes/2.DztqPwPi.js"),__vite__mapDeps([6,7,8,9,1,2,10]),import.meta.url)],mt=[],ut={"/":[2]},I={handleError:(({error:a})=>{console.error(a)}),reroute:(()=>{}),transport:{}},rt=Object.fromEntries(Object.entries(I.transport).map(([a,t])=>[a,t.decode])),_t=Object.fromEntries(Object.entries(I.transport).map(([a,t])=>[a,t.encode])),lt=!1,ft=(a,t)=>rt[a](t);export{ft as decode,rt as decoders,ut as dictionary,_t as encoders,lt as hash,I as hooks,it as matchers,dt as nodes,ct as root,mt as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/Bz5ZsSuJ.js";export{o as load_css,r as start};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as u,Y as h,f as g,F as l,b as d,d as v,m as _,j as s,l as a,A as x,G as o}from"../chunks/BJi5clDn.js";import{s as $,p}from"../chunks/
|
|
1
|
+
import{p as u,Y as h,f as g,F as l,b as d,d as v,m as _,j as s,l as a,A as x,G as o}from"../chunks/BJi5clDn.js";import{s as $,p}from"../chunks/Bz5ZsSuJ.js";const b={get error(){return p.error},get status(){return p.status}};$.updated.check;const n=b;var k=_("<h1> </h1> <p> </p>",1);function E(c,m){u(m,!1),h();var r=k(),t=g(r),f=s(t,!0);a(t);var e=x(t,2),i=s(e,!0);a(e),l(()=>{o(f,n.status),o(i,n.error?.message)}),d(c,r),v()}export{E as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1773958912076"}
|
package/dashboard/index.html
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
document.documentElement.dataset.theme = t;
|
|
19
19
|
})();
|
|
20
20
|
</script>
|
|
21
|
-
<link href="/_app/immutable/entry/start.
|
|
22
|
-
<link href="/_app/immutable/chunks/
|
|
21
|
+
<link href="/_app/immutable/entry/start.CmnGWcfC.js" rel="modulepreload">
|
|
22
|
+
<link href="/_app/immutable/chunks/Bz5ZsSuJ.js" rel="modulepreload">
|
|
23
23
|
<link href="/_app/immutable/chunks/BJi5clDn.js" rel="modulepreload">
|
|
24
|
-
<link href="/_app/immutable/entry/app.
|
|
24
|
+
<link href="/_app/immutable/entry/app.Da34WY5H.js" rel="modulepreload">
|
|
25
25
|
<link href="/_app/immutable/chunks/PPVm8Dsz.js" rel="modulepreload">
|
|
26
26
|
|
|
27
27
|
<link href="/_app/immutable/assets/vendor-ui.BHIBfuhK.css" rel="stylesheet">
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
<div style="display: contents">
|
|
31
31
|
<script>
|
|
32
32
|
{
|
|
33
|
-
|
|
33
|
+
__sveltekit_14x660o = {
|
|
34
34
|
base: ""
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
const element = document.currentScript.parentElement;
|
|
38
38
|
|
|
39
39
|
Promise.all([
|
|
40
|
-
import("/_app/immutable/entry/start.
|
|
41
|
-
import("/_app/immutable/entry/app.
|
|
40
|
+
import("/_app/immutable/entry/start.CmnGWcfC.js"),
|
|
41
|
+
import("/_app/immutable/entry/app.Da34WY5H.js")
|
|
42
42
|
]).then(([kit, app]) => {
|
|
43
43
|
kit.start(app, element);
|
|
44
44
|
});
|
package/dist/cli.js
CHANGED
|
@@ -48079,6 +48079,44 @@ function stripJsonComments(source) {
|
|
|
48079
48079
|
}
|
|
48080
48080
|
return result;
|
|
48081
48081
|
}
|
|
48082
|
+
function mergePluginAllow(pluginsObj, pluginName) {
|
|
48083
|
+
const rawAllow = pluginsObj.allow;
|
|
48084
|
+
if (rawAllow === undefined) {
|
|
48085
|
+
pluginsObj.allow = [pluginName];
|
|
48086
|
+
return { changed: true };
|
|
48087
|
+
}
|
|
48088
|
+
if (!Array.isArray(rawAllow)) {
|
|
48089
|
+
return {
|
|
48090
|
+
changed: false,
|
|
48091
|
+
warning: `plugins.allow has unexpected type (${typeof rawAllow}); cannot safely merge`
|
|
48092
|
+
};
|
|
48093
|
+
}
|
|
48094
|
+
const current = rawAllow.filter((entry) => typeof entry === "string" && entry.trim().length > 0);
|
|
48095
|
+
const next = current.includes(pluginName) ? current : [...current, pluginName];
|
|
48096
|
+
const unchanged = next.length === rawAllow.length && next.every((entry, i) => entry === rawAllow[i]);
|
|
48097
|
+
if (!unchanged) {
|
|
48098
|
+
pluginsObj.allow = next;
|
|
48099
|
+
}
|
|
48100
|
+
return { changed: !unchanged };
|
|
48101
|
+
}
|
|
48102
|
+
function removePluginAllow(pluginsObj, pluginName) {
|
|
48103
|
+
const rawAllow = pluginsObj.allow;
|
|
48104
|
+
if (rawAllow === undefined) {
|
|
48105
|
+
return { changed: false };
|
|
48106
|
+
}
|
|
48107
|
+
if (!Array.isArray(rawAllow)) {
|
|
48108
|
+
return {
|
|
48109
|
+
changed: false,
|
|
48110
|
+
warning: `plugins.allow has unexpected type (${typeof rawAllow}); cannot safely merge`
|
|
48111
|
+
};
|
|
48112
|
+
}
|
|
48113
|
+
const next = rawAllow.filter((entry) => typeof entry === "string" && entry.trim().length > 0 && entry !== pluginName);
|
|
48114
|
+
const unchanged = next.length === rawAllow.length && next.every((entry, i) => entry === rawAllow[i]);
|
|
48115
|
+
if (!unchanged) {
|
|
48116
|
+
pluginsObj.allow = next;
|
|
48117
|
+
}
|
|
48118
|
+
return { changed: !unchanged };
|
|
48119
|
+
}
|
|
48082
48120
|
function stripTrailingCommas(source) {
|
|
48083
48121
|
let result = "";
|
|
48084
48122
|
let inString = false;
|
|
@@ -48301,7 +48339,10 @@ class OpenClawConnector extends BaseConnector3 {
|
|
|
48301
48339
|
}
|
|
48302
48340
|
}
|
|
48303
48341
|
});
|
|
48304
|
-
const
|
|
48342
|
+
const allowResult = this.removePluginFromAllow("signet-memory-openclaw");
|
|
48343
|
+
const configsPatched = [
|
|
48344
|
+
...new Set([...hookResult.patched, ...pluginResult.patched, ...allowResult.patched])
|
|
48345
|
+
];
|
|
48305
48346
|
const basePath = join43(this.getHomeDir(), ".agents");
|
|
48306
48347
|
const hookDir = join43(basePath, "hooks", "agent-memory");
|
|
48307
48348
|
for (const file of ["HOOK.md", "handler.js", "package.json"]) {
|
|
@@ -48313,6 +48354,42 @@ class OpenClawConnector extends BaseConnector3 {
|
|
|
48313
48354
|
}
|
|
48314
48355
|
return { filesRemoved, configsPatched };
|
|
48315
48356
|
}
|
|
48357
|
+
removePluginFromAllow(pluginName) {
|
|
48358
|
+
const patched = [];
|
|
48359
|
+
const warnings = [];
|
|
48360
|
+
for (const configPath of this.getDiscoveredConfigPaths()) {
|
|
48361
|
+
try {
|
|
48362
|
+
const raw = readFileSync23(configPath, "utf-8");
|
|
48363
|
+
const config = parseJsonOrJson5(raw);
|
|
48364
|
+
const indent = this.detectIndent(raw);
|
|
48365
|
+
if (Array.isArray(config.plugins)) {
|
|
48366
|
+
const warning = `[signet/openclaw] Skipped plugins.allow patch for ${configPath}: plugins is in legacy array format; run install() first`;
|
|
48367
|
+
warnings.push(warning);
|
|
48368
|
+
console.warn(warning);
|
|
48369
|
+
continue;
|
|
48370
|
+
}
|
|
48371
|
+
const pluginsObj = isJsonObject(config.plugins) ? config.plugins : {};
|
|
48372
|
+
const allowResult = removePluginAllow(pluginsObj, pluginName);
|
|
48373
|
+
if (allowResult.warning) {
|
|
48374
|
+
const warning = `[signet/openclaw] Skipped plugins.allow patch for ${configPath}: ${allowResult.warning}`;
|
|
48375
|
+
warnings.push(warning);
|
|
48376
|
+
console.warn(warning);
|
|
48377
|
+
}
|
|
48378
|
+
if (!allowResult.changed) {
|
|
48379
|
+
continue;
|
|
48380
|
+
}
|
|
48381
|
+
config.plugins = pluginsObj;
|
|
48382
|
+
writeFileSync3(configPath, JSON.stringify(config, null, indent));
|
|
48383
|
+
patched.push(configPath);
|
|
48384
|
+
} catch (e) {
|
|
48385
|
+
const message = e instanceof Error ? e.message : String(e);
|
|
48386
|
+
const warning = `[signet/openclaw] Skipped plugins.allow patch for ${configPath}: ${message}`;
|
|
48387
|
+
warnings.push(warning);
|
|
48388
|
+
console.warn(warning);
|
|
48389
|
+
}
|
|
48390
|
+
}
|
|
48391
|
+
return { patched, warnings };
|
|
48392
|
+
}
|
|
48316
48393
|
isInstalled() {
|
|
48317
48394
|
for (const configPath of this.getDiscoveredConfigPaths()) {
|
|
48318
48395
|
try {
|
|
@@ -48436,6 +48513,9 @@ class OpenClawConnector extends BaseConnector3 {
|
|
|
48436
48513
|
return candidates;
|
|
48437
48514
|
}
|
|
48438
48515
|
patchAllConfigsWithPlugin(patch) {
|
|
48516
|
+
if (isJsonObject(patch.plugins) && patch.plugins.allow !== undefined) {
|
|
48517
|
+
throw new Error("patchAllConfigsWithPlugin patch must not set plugins.allow; allowlist is merged separately");
|
|
48518
|
+
}
|
|
48439
48519
|
const patched = [];
|
|
48440
48520
|
const warnings = [];
|
|
48441
48521
|
const pluginName = "signet-memory-openclaw";
|
|
@@ -48453,36 +48533,44 @@ class OpenClawConnector extends BaseConnector3 {
|
|
|
48453
48533
|
config.plugins = { entries };
|
|
48454
48534
|
}
|
|
48455
48535
|
{
|
|
48456
|
-
const
|
|
48457
|
-
const entriesObj =
|
|
48536
|
+
const pluginsObj2 = isJsonObject(config.plugins) ? config.plugins : {};
|
|
48537
|
+
const entriesObj = isJsonObject(pluginsObj2.entries) ? pluginsObj2.entries : {};
|
|
48458
48538
|
const OLD_NAME = "signet-memory";
|
|
48459
48539
|
if (OLD_NAME in entriesObj && !(pluginName in entriesObj)) {
|
|
48460
48540
|
entriesObj[pluginName] = entriesObj[OLD_NAME];
|
|
48461
48541
|
delete entriesObj[OLD_NAME];
|
|
48462
|
-
|
|
48463
|
-
config.plugins =
|
|
48542
|
+
pluginsObj2.entries = entriesObj;
|
|
48543
|
+
config.plugins = pluginsObj2;
|
|
48464
48544
|
} else if (OLD_NAME in entriesObj && pluginName in entriesObj) {
|
|
48465
48545
|
delete entriesObj[OLD_NAME];
|
|
48466
|
-
|
|
48467
|
-
config.plugins =
|
|
48546
|
+
pluginsObj2.entries = entriesObj;
|
|
48547
|
+
config.plugins = pluginsObj2;
|
|
48468
48548
|
}
|
|
48469
48549
|
}
|
|
48470
48550
|
if (config.signet && typeof config.signet === "object") {
|
|
48471
48551
|
const legacySignet = config.signet;
|
|
48472
|
-
const
|
|
48473
|
-
const entriesObj =
|
|
48552
|
+
const pluginsObj2 = isJsonObject(config.plugins) ? config.plugins : { entries: {} };
|
|
48553
|
+
const entriesObj = isJsonObject(pluginsObj2.entries) ? pluginsObj2.entries : {};
|
|
48474
48554
|
const pluginEntry = entriesObj[pluginName] ?? { enabled: true };
|
|
48475
|
-
const pluginConfig = pluginEntry.config
|
|
48555
|
+
const pluginConfig = isJsonObject(pluginEntry.config) ? pluginEntry.config : {};
|
|
48476
48556
|
if (legacySignet.daemonUrl) {
|
|
48477
48557
|
pluginConfig.daemonUrl = legacySignet.daemonUrl;
|
|
48478
48558
|
}
|
|
48479
48559
|
pluginEntry.config = pluginConfig;
|
|
48480
48560
|
pluginEntry.enabled = true;
|
|
48481
48561
|
entriesObj[pluginName] = pluginEntry;
|
|
48482
|
-
|
|
48483
|
-
config.plugins =
|
|
48562
|
+
pluginsObj2.entries = entriesObj;
|
|
48563
|
+
config.plugins = pluginsObj2;
|
|
48484
48564
|
config.signet = undefined;
|
|
48485
48565
|
}
|
|
48566
|
+
const pluginsObj = isJsonObject(config.plugins) ? config.plugins : {};
|
|
48567
|
+
const allowResult = mergePluginAllow(pluginsObj, pluginName);
|
|
48568
|
+
if (allowResult.warning) {
|
|
48569
|
+
const warning = `[signet/openclaw] Skipped plugins.allow patch for ${configPath}: ${allowResult.warning}`;
|
|
48570
|
+
warnings.push(warning);
|
|
48571
|
+
console.warn(warning);
|
|
48572
|
+
}
|
|
48573
|
+
config.plugins = pluginsObj;
|
|
48486
48574
|
deepMerge2(config, patch);
|
|
48487
48575
|
writeFileSync3(configPath, JSON.stringify(config, null, indent));
|
|
48488
48576
|
patched.push(configPath);
|
|
@@ -48526,6 +48614,7 @@ class OpenClawConnector extends BaseConnector3 {
|
|
|
48526
48614
|
patchLoadPaths(searchPath) {
|
|
48527
48615
|
const patched = [];
|
|
48528
48616
|
const warnings = [];
|
|
48617
|
+
const pluginName = "signet-memory-openclaw";
|
|
48529
48618
|
for (const configPath of this.getDiscoveredConfigPaths()) {
|
|
48530
48619
|
try {
|
|
48531
48620
|
const raw = readFileSync23(configPath, "utf-8");
|
|
@@ -48554,9 +48643,22 @@ class OpenClawConnector extends BaseConnector3 {
|
|
|
48554
48643
|
const loadObj = isJsonObject(rawLoad) ? rawLoad : {};
|
|
48555
48644
|
const rawPaths = loadObj.paths;
|
|
48556
48645
|
const existingPaths = Array.isArray(rawPaths) ? rawPaths.filter((entry) => typeof entry === "string") : [];
|
|
48646
|
+
let dirty = false;
|
|
48557
48647
|
if (!existingPaths.includes(searchPath)) {
|
|
48558
48648
|
loadObj.paths = [...existingPaths, searchPath];
|
|
48559
48649
|
pluginsObj.load = loadObj;
|
|
48650
|
+
dirty = true;
|
|
48651
|
+
}
|
|
48652
|
+
const allowResult = mergePluginAllow(pluginsObj, pluginName);
|
|
48653
|
+
if (allowResult.warning) {
|
|
48654
|
+
const warning = `[signet/openclaw] Skipped plugins.allow patch for ${configPath}: ${allowResult.warning}`;
|
|
48655
|
+
warnings.push(warning);
|
|
48656
|
+
console.warn(warning);
|
|
48657
|
+
}
|
|
48658
|
+
if (allowResult.changed) {
|
|
48659
|
+
dirty = true;
|
|
48660
|
+
}
|
|
48661
|
+
if (dirty) {
|
|
48560
48662
|
config.plugins = pluginsObj;
|
|
48561
48663
|
writeFileSync3(configPath, JSON.stringify(config, null, indent));
|
|
48562
48664
|
patched.push(configPath);
|
|
@@ -68931,7 +69033,7 @@ async function configureHarnessHooks(harness, basePath, options) {
|
|
|
68931
69033
|
if (globalPkgPath) {
|
|
68932
69034
|
const { patched: lPathPatched, warnings: lPathWarnings } = connector.patchLoadPaths(dirname6(globalPkgPath));
|
|
68933
69035
|
if (lPathPatched.length > 0) {
|
|
68934
|
-
console.log(source_default.green(` ✓ OpenClaw config updated with plugins.load.paths (${lPathPatched.length} file(s))`));
|
|
69036
|
+
console.log(source_default.green(` ✓ OpenClaw config updated with plugins.load.paths/plugins.allow (${lPathPatched.length} file(s))`));
|
|
68935
69037
|
} else if (lPathWarnings.length === 0) {
|
|
68936
69038
|
console.log(source_default.dim(" (no OpenClaw configs found to patch with load.paths; run 'signet setup' again after first OpenClaw launch)"));
|
|
68937
69039
|
}
|
|
@@ -69005,6 +69107,9 @@ function writeOpenClawPluginSyncVersion(basePath, version) {
|
|
|
69005
69107
|
writeFileSync6(syncPath, `${version}
|
|
69006
69108
|
`);
|
|
69007
69109
|
}
|
|
69110
|
+
function hasOpenClawPluginRuntime(path2) {
|
|
69111
|
+
return existsSync10(join15(path2, "dist", "index.js"));
|
|
69112
|
+
}
|
|
69008
69113
|
function predictorSyncPath(basePath) {
|
|
69009
69114
|
return join15(basePath, ".daemon", PREDICTOR_SYNC_FILENAME);
|
|
69010
69115
|
}
|
|
@@ -69398,10 +69503,16 @@ async function ensureOpenClawPluginPackage(basePath, options = {}) {
|
|
|
69398
69503
|
if (!options.force && readOpenClawPluginSyncVersion(basePath) === VERSION) {
|
|
69399
69504
|
const cachedPath = resolveGlobalPackagePath(packageManager.family, OPENCLAW_PLUGIN_PACKAGE);
|
|
69400
69505
|
if (cachedPath) {
|
|
69401
|
-
|
|
69402
|
-
|
|
69506
|
+
if (!hasOpenClawPluginRuntime(cachedPath)) {
|
|
69507
|
+
if (!options.silent) {
|
|
69508
|
+
console.log(source_default.yellow(` Warning: cached ${OPENCLAW_PLUGIN_PACKAGE}@${VERSION} is missing dist/index.js; retrying install.`));
|
|
69509
|
+
}
|
|
69510
|
+
} else {
|
|
69511
|
+
ensureOpenClawExtensionSymlink(cachedPath, options.silent);
|
|
69512
|
+
return cachedPath;
|
|
69513
|
+
}
|
|
69403
69514
|
}
|
|
69404
|
-
if (!options.silent) {
|
|
69515
|
+
if (!cachedPath && !options.silent) {
|
|
69405
69516
|
console.log(source_default.yellow(` Warning: cached ${OPENCLAW_PLUGIN_PACKAGE} not found on disk; retrying install.`));
|
|
69406
69517
|
}
|
|
69407
69518
|
}
|
|
@@ -69419,16 +69530,24 @@ async function ensureOpenClawPluginPackage(basePath, options = {}) {
|
|
|
69419
69530
|
}
|
|
69420
69531
|
return;
|
|
69421
69532
|
}
|
|
69533
|
+
const globalPath = resolveGlobalPackagePath(packageManager.family, OPENCLAW_PLUGIN_PACKAGE);
|
|
69534
|
+
if (!globalPath) {
|
|
69535
|
+
if (!options.silent) {
|
|
69536
|
+
console.log(source_default.yellow(` Warning: could not resolve global path for ${OPENCLAW_PLUGIN_PACKAGE} after install; plugin discovery may be incomplete. Run 'signet setup' again if needed.`));
|
|
69537
|
+
}
|
|
69538
|
+
return;
|
|
69539
|
+
}
|
|
69540
|
+
if (!hasOpenClawPluginRuntime(globalPath)) {
|
|
69541
|
+
if (!options.silent) {
|
|
69542
|
+
console.log(source_default.yellow(` Warning: installed ${OPENCLAW_PLUGIN_PACKAGE}@${VERSION} is missing dist/index.js; this usually means the published package was not built before publish.`));
|
|
69543
|
+
}
|
|
69544
|
+
return;
|
|
69545
|
+
}
|
|
69422
69546
|
writeOpenClawPluginSyncVersion(basePath, VERSION);
|
|
69423
69547
|
if (!options.silent) {
|
|
69424
69548
|
console.log(source_default.green(` ✓ OpenClaw plugin refreshed (${OPENCLAW_PLUGIN_PACKAGE}@${VERSION})`));
|
|
69425
69549
|
}
|
|
69426
|
-
|
|
69427
|
-
if (globalPath) {
|
|
69428
|
-
ensureOpenClawExtensionSymlink(globalPath, options.silent);
|
|
69429
|
-
} else if (!options.silent) {
|
|
69430
|
-
console.log(source_default.yellow(` Warning: could not resolve global path for ${OPENCLAW_PLUGIN_PACKAGE} after install; plugin discovery may be incomplete. Run 'signet setup' again if needed.`));
|
|
69431
|
-
}
|
|
69550
|
+
ensureOpenClawExtensionSymlink(globalPath, options.silent);
|
|
69432
69551
|
return globalPath;
|
|
69433
69552
|
}
|
|
69434
69553
|
function ensureOpenClawExtensionSymlink(globalPath, silent) {
|