signetai 0.61.0 → 0.62.0

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.
@@ -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_14tc0m7?.base??"",Ot=globalThis.__sveltekit_14tc0m7?.assets??x??"",Ct="1773830527434",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_14tc0m7?.data&&globalThis.__sveltekit_14tc0m7.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"&&M.delete(Le(e)),St(e,t));const M=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&&M.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(M.size>0){const r=Le(e,n),a=M.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);M.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 We(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_1k9f3xz?.base??"",Ot=globalThis.__sveltekit_1k9f3xz?.assets??x??"",Ct="1773867530582",Je="sveltekit:snapshot",Ye="sveltekit:scroll",Xe="sveltekit:states",$t="sveltekit:pageurl",V="sveltekit:history",W="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 ze(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()),Be="a:";Vt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Be)},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(Be));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 zt(e){Object.assign(k,e)}const Ke={spanContext(){return Bt},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}},Bt={traceId:"",spanId:"",traceFlags:0},Kt=new Set(["icon","shortcut icon","apple-touch-icon"]);let F=null;const $=We(Ye)??{},Y=We(Je)??{},C={url:ze({}),page:ze({}),navigating:Ee(null),updated:jt()};function Te(e){$[e]=D()}function Ft(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 Fe(){}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,Gt=new Set,H=new Set;let v={branch:[],error:null,url:null},ot=!1,se=!1,Ge=!0,Q=!1,G=!1,st=!1,Ie=!1,it,y,R,N;const ie=new Set,Me=new Map;async function pn(e,t,n){globalThis.__sveltekit_1k9f3xz?.data&&globalThis.__sveltekit_1k9f3xz.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?.[W],y||(y=R=Date.now(),history.replaceState({...history.state,[V]:y,[W]:R},""));const r=$[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await an(ye,n)):(await z({type:"enter",url:Qe(w.hash?ln(new URL(location.href)):location.href),replace_state:!0}),a()),rn()}function Mt(){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 He(){Te(y),qe(Ye,$),lt(R),qe(Je,Y)}async function Ht(e,t,n,r){let a;t.invalidateAll&&be(),await z({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=[...Me.keys()]),t.invalidate&&t.invalidate.forEach(nn)}}),t.invalidateAll&&te().then(te).then(()=>{Me.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function Wt(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()};H.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:Ke,current:Ke},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 Ht(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 z({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=Fe,block:d=Fe,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 z({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(Mt(),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,B={[V]:y+=b,[W]:R+=b,[Xe]:s};(i?history.replaceState:history.pushState).call(history,B,"",t),i||Ft(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(Gt,K=>K(h.navigation)))).filter(K=>typeof K=="function");if(b.length>0){let K=function(){b.forEach(he=>{H.delete(he)})};b.push(K),b.forEach(he=>{H.add(he)})}const B=h.navigation.to;v={...g.state,nav:{params:B.params,route:B.route,url:B.url}},g.props.page&&(g.props.page.url=t);const de=E&&await E;de?S=de.commit():(F=null,it.$set(g.props),F&&Object.assign(g.props.page,F),zt(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(Ge){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),Ge=!0,g.props.page&&(F&&Object.assign(g.props.page,F),Object.assign(k,g.props.page)),Q=!1,e==="popstate"&&ct(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=D()),H.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;Wt(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))}}H.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(He(),!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"&&He()}),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(G=!0,Te(y),e(r),!o.replace_state)return;G=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await z({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(),z({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[W],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 z({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(!G){const n=new URL(location.href);e(n),w.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[V]:++y,[W]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Kt.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.Cy-EmvzV.js","../chunks/DOT5sLtM.js","../nodes/2.C6j2Q5vP.js","../chunks/CiyQaJH4.js","../chunks/Cik1Y8bQ.js","../chunks/PPVm8Dsz.js","../assets/2.BAKfDe40.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.Cy-EmvzV.js"),__vite__mapDeps([4,1,2,5]),import.meta.url),()=>v(()=>import("../nodes/2.C6j2Q5vP.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};
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.fIuzuo4K.js","../chunks/BgGtja4B.js","../nodes/2.C6j2Q5vP.js","../chunks/CiyQaJH4.js","../chunks/Cik1Y8bQ.js","../chunks/PPVm8Dsz.js","../assets/2.BAKfDe40.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.fIuzuo4K.js"),__vite__mapDeps([4,1,2,5]),import.meta.url),()=>v(()=>import("../nodes/2.C6j2Q5vP.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/BgGtja4B.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/DOT5sLtM.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
+ 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/BgGtja4B.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":"1773830527434"}
1
+ {"version":"1773867530582"}
@@ -17,10 +17,10 @@
17
17
  document.documentElement.dataset.theme = t;
18
18
  })();
19
19
  </script>
20
- <link href="/_app/immutable/entry/start.C70WkECL.js" rel="modulepreload">
21
- <link href="/_app/immutable/chunks/DOT5sLtM.js" rel="modulepreload">
20
+ <link href="/_app/immutable/entry/start.Drpy9UEh.js" rel="modulepreload">
21
+ <link href="/_app/immutable/chunks/BgGtja4B.js" rel="modulepreload">
22
22
  <link href="/_app/immutable/chunks/BJi5clDn.js" rel="modulepreload">
23
- <link href="/_app/immutable/entry/app.9yFF5le4.js" rel="modulepreload">
23
+ <link href="/_app/immutable/entry/app.Dpn65sae.js" rel="modulepreload">
24
24
  <link href="/_app/immutable/chunks/PPVm8Dsz.js" rel="modulepreload">
25
25
 
26
26
  <link href="/_app/immutable/assets/vendor-ui.BHIBfuhK.css" rel="stylesheet">
@@ -29,15 +29,15 @@
29
29
  <div style="display: contents">
30
30
  <script>
31
31
  {
32
- __sveltekit_14tc0m7 = {
32
+ __sveltekit_1k9f3xz = {
33
33
  base: ""
34
34
  };
35
35
 
36
36
  const element = document.currentScript.parentElement;
37
37
 
38
38
  Promise.all([
39
- import("/_app/immutable/entry/start.C70WkECL.js"),
40
- import("/_app/immutable/entry/app.9yFF5le4.js")
39
+ import("/_app/immutable/entry/start.Drpy9UEh.js"),
40
+ import("/_app/immutable/entry/app.Dpn65sae.js")
41
41
  ]).then(([kit, app]) => {
42
42
  kit.start(app, element);
43
43
  });
package/dist/cli.js CHANGED
@@ -19854,8 +19854,10 @@ var require_emoji_regex2 = __commonJS((exports, module) => {
19854
19854
 
19855
19855
  // ../cli/src/cli.ts
19856
19856
  import { spawn, spawnSync as spawnSync2 } from "child_process";
19857
+ import { createHash as createHash2 } from "crypto";
19857
19858
  import {
19858
19859
  appendFileSync,
19860
+ chmodSync,
19859
19861
  closeSync,
19860
19862
  copyFileSync,
19861
19863
  existsSync as existsSync10,
@@ -19868,6 +19870,7 @@ import {
19868
19870
  rmSync as rmSync4,
19869
19871
  statSync as statSync5,
19870
19872
  symlinkSync as symlinkSync6,
19873
+ unlinkSync as unlinkSync8,
19871
19874
  writeFileSync as writeFileSync6
19872
19875
  } from "fs";
19873
19876
  import { homedir as homedir8, platform as platform3 } from "os";
@@ -72915,10 +72918,80 @@ async function getDaemonStatus() {
72915
72918
  }
72916
72919
  return { running: false, pid: null, uptime: null, version: null };
72917
72920
  }
72921
+ async function downloadDaemonBinary() {
72922
+ let version;
72923
+ try {
72924
+ const raw = readFileSync14(join15(__dirname5, "..", "package.json"), "utf8");
72925
+ version = JSON.parse(raw).version;
72926
+ } catch {
72927
+ return;
72928
+ }
72929
+ if (!version)
72930
+ return;
72931
+ const plat = process.platform;
72932
+ const arch3 = process.arch;
72933
+ const supported = new Set(["linux:x64", "darwin:x64", "darwin:arm64", "win32:x64"]);
72934
+ if (!supported.has(`${plat}:${arch3}`))
72935
+ return;
72936
+ const ext = plat === "win32" ? ".exe" : "";
72937
+ const name = `signet-daemon-${plat}-${arch3}${ext}`;
72938
+ const binDir = join15(__dirname5, "..", "bin");
72939
+ const dest = join15(binDir, name);
72940
+ if (existsSync10(dest))
72941
+ return;
72942
+ const base = `https://github.com/Signet-AI/signetai/releases/download/v${version}`;
72943
+ process.stdout.write(` Downloading Rust daemon binary (${name})...`);
72944
+ try {
72945
+ const checksumRes = await fetch(`${base}/${name}.sha256`, {
72946
+ redirect: "follow",
72947
+ signal: AbortSignal.timeout(1e4)
72948
+ });
72949
+ if (!checksumRes.ok) {
72950
+ process.stdout.write(` skipped (checksum unavailable: ${checksumRes.status})
72951
+ `);
72952
+ return;
72953
+ }
72954
+ const expectedHash = (await checksumRes.text()).trim().split(/\s+/)[0];
72955
+ const res = await fetch(`${base}/${name}`, { redirect: "follow", signal: AbortSignal.timeout(30000) });
72956
+ if (!res.ok) {
72957
+ process.stdout.write(` skipped (${res.status})
72958
+ `);
72959
+ return;
72960
+ }
72961
+ mkdirSync8(binDir, { recursive: true });
72962
+ const bytes = await res.arrayBuffer();
72963
+ const buf = Buffer.from(bytes);
72964
+ const actual = createHash2("sha256").update(buf).digest("hex");
72965
+ if (actual !== expectedHash) {
72966
+ process.stdout.write(` skipped (checksum mismatch — possible tampering)
72967
+ `);
72968
+ return;
72969
+ }
72970
+ writeFileSync6(dest, buf);
72971
+ if (plat !== "win32")
72972
+ chmodSync(dest, 493);
72973
+ process.stdout.write(` done
72974
+ `);
72975
+ } catch {
72976
+ process.stdout.write(` skipped (download failed)
72977
+ `);
72978
+ try {
72979
+ unlinkSync8(dest);
72980
+ } catch {}
72981
+ }
72982
+ }
72918
72983
  async function startDaemon(agentsDir = AGENTS_DIR) {
72919
72984
  if (await isDaemonRunning()) {
72920
72985
  return true;
72921
72986
  }
72987
+ try {
72988
+ const raw = parseSimpleYaml(readFileSync14(join15(agentsDir, "agent.yaml"), "utf8"));
72989
+ const mem = raw?.memory;
72990
+ const p2 = mem?.pipelineV2;
72991
+ if (p2?.nativeShadowEnabled === true) {
72992
+ await downloadDaemonBinary();
72993
+ }
72994
+ } catch {}
72922
72995
  const daemonDir = join15(agentsDir, ".daemon");
72923
72996
  const logDir = join15(daemonDir, "logs");
72924
72997
  mkdirSync8(daemonDir, { recursive: true });
package/dist/daemon.js CHANGED
@@ -17088,6 +17088,7 @@ function loadPipelineConfig(yaml) {
17088
17088
  return {
17089
17089
  enabled: typeof raw2.enabled === "boolean" ? raw2.enabled : d.enabled,
17090
17090
  shadowMode: typeof raw2.shadowMode === "boolean" ? raw2.shadowMode : d.shadowMode,
17091
+ nativeShadowEnabled: typeof raw2.nativeShadowEnabled === "boolean" ? raw2.nativeShadowEnabled : d.nativeShadowEnabled,
17091
17092
  mutationsFrozen: typeof raw2.mutationsFrozen === "boolean" ? raw2.mutationsFrozen : d.mutationsFrozen,
17092
17093
  semanticContradictionEnabled: typeof raw2.semanticContradictionEnabled === "boolean" ? raw2.semanticContradictionEnabled : d.semanticContradictionEnabled,
17093
17094
  semanticContradictionTimeoutMs: clampPositive(raw2.semanticContradictionTimeoutMs, 5000, 300000, d.semanticContradictionTimeoutMs),
@@ -17335,6 +17336,7 @@ var init_memory_config = __esm(() => {
17335
17336
  DEFAULT_PIPELINE_V2 = {
17336
17337
  enabled: true,
17337
17338
  shadowMode: false,
17339
+ nativeShadowEnabled: false,
17338
17340
  mutationsFrozen: false,
17339
17341
  semanticContradictionEnabled: true,
17340
17342
  semanticContradictionTimeoutMs: 45000,
@@ -96582,8 +96584,10 @@ __export(exports_daemon, {
96582
96584
  app: () => app
96583
96585
  });
96584
96586
  import { execFileSync, spawn as spawn6 } from "child_process";
96587
+ import { copyFileSync as copyFileSync2 } from "fs";
96585
96588
  import { createHash as createHash3 } from "crypto";
96586
96589
  import {
96590
+ appendFileSync as appendFileSync2,
96587
96591
  existsSync as existsSync24,
96588
96592
  mkdirSync as mkdirSync12,
96589
96593
  readFileSync as readFileSync20,
@@ -96693,6 +96697,53 @@ function getCachedDiagnosticsReport() {
96693
96697
  };
96694
96698
  return report;
96695
96699
  }
96700
+ function resolveDaemonBinary() {
96701
+ const ext = process.platform === "win32" ? ".exe" : "";
96702
+ const arch2 = process.arch;
96703
+ const plat = process.platform;
96704
+ const monoRoot = join33(import.meta.dir, "..", "..", "..");
96705
+ const devPaths = [
96706
+ join33(monoRoot, "packages", "daemon-rs", "target", "release", `signet-daemon${ext}`),
96707
+ join33(monoRoot, "packages", "daemon-rs", "target", "debug", `signet-daemon${ext}`),
96708
+ join33(process.cwd(), "packages", "daemon-rs", "target", "release", `signet-daemon${ext}`)
96709
+ ];
96710
+ for (const p2 of devPaths) {
96711
+ if (existsSync24(p2))
96712
+ return p2;
96713
+ }
96714
+ const name = `signet-daemon-${plat}-${arch2}${ext}`;
96715
+ const npmPath = join33(import.meta.dir, "..", "bin", name);
96716
+ if (existsSync24(npmPath))
96717
+ return npmPath;
96718
+ return null;
96719
+ }
96720
+ function setupShadowDb(agentsDir2) {
96721
+ const shadowRoot = join33(agentsDir2, ".shadow");
96722
+ const shadowMemDir = join33(shadowRoot, "memory");
96723
+ mkdirSync12(shadowMemDir, { recursive: true });
96724
+ const mainDb = join33(agentsDir2, "memory", "memories.db");
96725
+ const shadowDb = join33(shadowMemDir, "memories.db");
96726
+ const stale = !existsSync24(shadowDb) || Date.now() - statSync6(shadowDb).mtimeMs > 24 * 60 * 60 * 1000;
96727
+ if (stale && existsSync24(mainDb)) {
96728
+ copyFileSync2(mainDb, shadowDb);
96729
+ for (const ext of ["-wal", "-shm"]) {
96730
+ const src = mainDb + ext;
96731
+ if (existsSync24(src))
96732
+ copyFileSync2(src, shadowDb + ext);
96733
+ }
96734
+ logger.info("shadow", "Shadow DB refreshed");
96735
+ }
96736
+ const mainCfg = join33(agentsDir2, "agent.yaml");
96737
+ const shadowCfg = join33(shadowRoot, "agent.yaml");
96738
+ if (existsSync24(mainCfg))
96739
+ copyFileSync2(mainCfg, shadowCfg);
96740
+ return shadowRoot;
96741
+ }
96742
+ function appendDivergence(agentsDir2, entry) {
96743
+ const logPath = join33(agentsDir2, ".daemon", "logs", "shadow-divergences.jsonl");
96744
+ appendFileSync2(logPath, JSON.stringify({ ts: new Date().toISOString(), ...entry }) + `
96745
+ `);
96746
+ }
96696
96747
  function buildPredictorHealthParams() {
96697
96748
  const cfg = loadMemoryConfig(AGENTS_DIR6);
96698
96749
  const predictorCfg = cfg.pipelineV2.predictor;
@@ -98735,6 +98786,12 @@ async function cleanup() {
98735
98786
  skillReconcilerHandle.stop();
98736
98787
  skillReconcilerHandle = null;
98737
98788
  }
98789
+ if (shadowProcess) {
98790
+ try {
98791
+ shadowProcess.kill();
98792
+ } catch {}
98793
+ shadowProcess = null;
98794
+ }
98738
98795
  if (predictorClientRef) {
98739
98796
  try {
98740
98797
  await predictorClientRef.stop();
@@ -99191,6 +99248,23 @@ async function main() {
99191
99248
  });
99192
99249
  }
99193
99250
  }
99251
+ if (memoryCfg.pipelineV2.nativeShadowEnabled) {
99252
+ const binary = resolveDaemonBinary();
99253
+ if (binary) {
99254
+ const shadowAgentsDir = setupShadowDb(AGENTS_DIR6);
99255
+ shadowProcess = spawn6(binary, [], {
99256
+ env: { ...process.env, SIGNET_PORT: "3851", SIGNET_PATH: shadowAgentsDir },
99257
+ stdio: "ignore"
99258
+ });
99259
+ shadowProcess.unref();
99260
+ logger.info("shadow", "Rust daemon shadow started", {
99261
+ pid: shadowProcess.pid,
99262
+ port: 3851
99263
+ });
99264
+ } else {
99265
+ logger.warn("shadow", "shadowEnabled but signet-daemon binary not found \u2014 skipping");
99266
+ }
99267
+ }
99194
99268
  if (memoryCfg.pipelineV2.procedural.enabled) {
99195
99269
  skillReconcilerHandle = startReconciler({
99196
99270
  accessor: getDbAccessor(),
@@ -99295,7 +99369,7 @@ async function main() {
99295
99369
  }
99296
99370
  });
99297
99371
  }
99298
- var AGENTS_DIR6, DAEMON_DIR, PID_FILE, LOG_DIR, MEMORY_DB2, SCRIPTS_DIR, PORT, HOST, BIND_HOST, INTERNAL_SELF_HOST, providerRuntimeResolution, providerTracker, analyticsCollector, repairLimiter, telemetryRef, embeddingTrackerHandle = null, predictorClientRef = null, skillReconcilerHandle = null, heartbeatTimer, checkpointPruneTimer, diagnosticsCache = null, DIAGNOSTICS_CACHE_TTL_MS = 2000, projectionInFlight, projectionErrors, PROJECTION_ERROR_TTL_MS = 30000, hasMemoriesSessionIdColumnCache = null, authConfig, authSecret = null, authForgetLimiter, authModifyLimiter, authBatchForgetLimiter, authAdminLimiter, authCrossAgentMessageLimiter, CURRENT_VERSION, cachedEmbeddingStatus = null, statusCacheTime = 0, STATUS_CACHE_TTL = 30000, TYPE_HINTS2, app, MAX_MUTATION_BATCH = 200, FORGET_CONFIRM_THRESHOLD = 25, SOFT_DELETE_RETENTION_DAYS = 30, SOFT_DELETE_RETENTION_MS, ACTOR_TYPES, harnessLastSeen, AGENT_MESSAGE_TYPES, MAX_CROSS_AGENT_MESSAGE_CHARS = 65536, greetingCache = null, lastRefreshRequestAt = 0, REFRESH_COOLDOWN_MS = 60000, dashboardPath, watcher = null, gitConfig, gitSyncTimer = null, lastGitSync = null, gitSyncInProgress = false, commitPending = false, commitTimer = null, COMMIT_DEBOUNCE_MS = 5000, pendingChanges, syncPending = false, syncTimer = null, SYNC_DEBOUNCE_MS = 2000, syncedClaudeMemories, ingestedMemoryFiles;
99372
+ var AGENTS_DIR6, DAEMON_DIR, PID_FILE, LOG_DIR, MEMORY_DB2, SCRIPTS_DIR, PORT, HOST, BIND_HOST, INTERNAL_SELF_HOST, providerRuntimeResolution, providerTracker, analyticsCollector, repairLimiter, telemetryRef, embeddingTrackerHandle = null, predictorClientRef = null, shadowProcess = null, skillReconcilerHandle = null, heartbeatTimer, checkpointPruneTimer, diagnosticsCache = null, DIAGNOSTICS_CACHE_TTL_MS = 2000, projectionInFlight, projectionErrors, PROJECTION_ERROR_TTL_MS = 30000, hasMemoriesSessionIdColumnCache = null, authConfig, authSecret = null, authForgetLimiter, authModifyLimiter, authBatchForgetLimiter, authAdminLimiter, authCrossAgentMessageLimiter, CURRENT_VERSION, cachedEmbeddingStatus = null, statusCacheTime = 0, STATUS_CACHE_TTL = 30000, TYPE_HINTS2, app, MAX_MUTATION_BATCH = 200, FORGET_CONFIRM_THRESHOLD = 25, SOFT_DELETE_RETENTION_DAYS = 30, SOFT_DELETE_RETENTION_MS, ACTOR_TYPES, harnessLastSeen, AGENT_MESSAGE_TYPES, MAX_CROSS_AGENT_MESSAGE_CHARS = 65536, greetingCache = null, lastRefreshRequestAt = 0, REFRESH_COOLDOWN_MS = 60000, dashboardPath, watcher = null, gitConfig, gitSyncTimer = null, lastGitSync = null, gitSyncInProgress = false, commitPending = false, commitTimer = null, COMMIT_DEBOUNCE_MS = 5000, pendingChanges, syncPending = false, syncTimer = null, SYNC_DEBOUNCE_MS = 2000, syncedClaudeMemories, ingestedMemoryFiles;
99299
99373
  var init_daemon = __esm(() => {
99300
99374
  init_dist();
99301
99375
  init_serve_static();
@@ -99422,6 +99496,34 @@ var init_daemon = __esm(() => {
99422
99496
  analyticsCollector.recordLatency("mutate", duration3);
99423
99497
  }
99424
99498
  });
99499
+ app.use("*", async (c2, next) => {
99500
+ const method = c2.req.method;
99501
+ const bodyP = ["POST", "PUT", "PATCH"].includes(method) ? c2.req.text().catch(() => {
99502
+ return;
99503
+ }) : Promise.resolve(undefined);
99504
+ await next();
99505
+ if (!shadowProcess)
99506
+ return;
99507
+ const reqPath = c2.req.path;
99508
+ const search = new URL(c2.req.url).search;
99509
+ const primaryStatus = c2.res.status;
99510
+ bodyP.then((rawBody) => fetch(`http://localhost:3851${reqPath}${search}`, {
99511
+ method,
99512
+ headers: Object.fromEntries(c2.req.raw.headers),
99513
+ body: rawBody,
99514
+ signal: AbortSignal.timeout(5000)
99515
+ })).then((shadow) => {
99516
+ if (primaryStatus !== shadow.status) {
99517
+ appendDivergence(AGENTS_DIR6, {
99518
+ path: reqPath,
99519
+ method,
99520
+ primaryStatus,
99521
+ shadowStatus: shadow.status
99522
+ });
99523
+ }
99524
+ return shadow.body?.cancel();
99525
+ }).catch(() => {});
99526
+ });
99425
99527
  app.get("/health", (c2) => {
99426
99528
  const us = getUpdateState();
99427
99529
  let dbOk = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signetai",
3
- "version": "0.61.0",
3
+ "version": "0.62.0",
4
4
  "description": "Portable AI agent identity - own your agent, bring it anywhere",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/DOT5sLtM.js";export{o as load_css,r as start};