muryshev commited on
Commit
a39bc28
1 Parent(s): 05a241e

build update

Browse files
build/client/_app/immutable/chunks/entry.bIlUiDNF.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{B as tt}from"./scheduler.OwA2AG0M.js";import{w as de}from"./index.UTqYide5.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n.buffer}function dt(e,t){const n=he(e,t),a=document.querySelector(n);if(a?.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&$.set(n,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=ut(r)),Promise.resolve(new Response(r,o))}return window.fetch(e,t)}function ht(e,t,n){if($.size>0){const a=he(e,n),r=$.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);$.delete(a)}}return window.fetch(t,n)}function he(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${ft(...r)}"]`}return a}const pt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function gt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${mt(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.exec(c),[,g,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!g,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":g?"([^/]*)?":"([^/]+?)"}return ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;s<t.length;s+=1){const c=t[s];let l=r[s-i];if(c.chained&&c.rest&&i&&(l=r.slice(s-i,s+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function wt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_1597s67?.base??"",vt=globalThis.__sveltekit_1597s67?.assets??S,bt="1726831171324",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",K={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},q=location.origin;function De(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 pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...K,"":K.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===q&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function Y(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==q||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;f<s.length;f+=1)d.add(r(s[f]));break;case"Map":const g=new Map;a[o]=g;for(let f=1;f<s.length;f+=2)g.set(r(s[f]),r(s[f+1]));break;case"RegExp":a[o]=new RegExp(s[1],s[2]);break;case"Object":a[o]=Object(s[1]);break;case"BigInt":a[o]=BigInt(s[1]);break;case"null":const u=Object.create(null);a[o]=u;for(let f=1;f<s.length;f+=2)u[s[f]]=r(s[f+1]);break;default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(s.length);a[o]=c;for(let l=0;l<s.length;l+=1){const d=s[l];d!==St&&(c[l]=r(d))}}else{const c={};a[o]=c;for(const l in s){const d=s[l];c[l]=r(d)}}return a[o]}return r(0)}const Ve=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Ve];const Ut=new Set([...Ve]);[...Ut];function xt(e){return e.filter(t=>t!=null)}class te{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 Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function J(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,W,I,ue,j;const Ge=[],z=[];let N=null;const Me=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,G=!1,D=!1,qe=!1,we=!1,ve,w,k,A,Z;async function Wt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=wt(e),I=document.documentElement,ue=t,fe=e.nodes[0],W=e.nodes[1],fe(),W(),w=history.state?.[x],k=history.state?.[V],w||(w=k=Date.now(),_e.call(history,{...history.state,[x]:w,[V]:k},""));const a=T[w];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Ht(ue,n):qt(location.href,{replaceState:!0}),Bt()}function Be(e){z.some(t=>t?.snapshot)&&(F[e]=z.map(t=>t?.snapshot?.capture()))}function He(e){F[e]?.forEach((t,n)=>{z[n]?.snapshot?.restore(t)})}function Pe(){me(w),Ae(Oe,T),Be(k),Ae(Ne,F)}async function Ke(e,t,n,a){return H({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(we=!0)}})}async function Vt(e){return N={id:e.id,promise:Je(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(We(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ye(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,ve=new j.root({target:t,props:{...e.props,stores:L,components:z},hydrate:!0}),He(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f<Math.max(n.length,y.branch.length);f+=1){const h=n[f],p=y.branch[f];h?.data!==p?.data&&(d=!0),h&&(l={...l,...h.data},d&&(c.props[`data_${g}`]=l),g+=1)}return(!y.url||e.href!==y.url.href||y.error!==r||i!==void 0&&i!==A.form||d)&&(c.props.page={error:r,params:t,route:{id:o?.id??null},state:{},status:a,url:new URL(e),form:i??null,data:d?l:A.data}),c}async function be({loader:e,parent:t,url:n,params:a,route:r,server_data_node:o}){let i=null,s=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let d=function(...u){for(const f of u){const{href:h}=new URL(f,n);c.dependencies.add(h)}};const g={route:new Proxy(r,{get:(u,f)=>(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&c.search_params.add(u)}),async fetch(u,f){let h;u instanceof Request?(h=u.url,f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:u.headers,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}):h=u;const p=new URL(h,n);return s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(we)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Ge.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Je({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||Te(f,g,d,u,v.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:J(_),error:await M(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}if(l.type==="redirect")return l}const p=l?.nodes;let R=!1;const E=c.map(async(_,m)=>{if(!_)return;const v=y.branch[m],b=p?.[m];if((!b||b.type==="skip")&&_[1]===v?.loader&&!Te(R,g,d,u,v.universal?.uses,a))return v;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe<m;oe+=1)Object.assign(re,(await E[oe])?.data);return re},server_data_node:Ee(b===void 0&&_[0]?{type:"skip"}:b??null,_[0]?v?.server:void 0)})});for(const _ of E)_.catch(()=>{});const P=[];for(let _=0;_<c.length;_+=1)if(c[_])try{P.push(await E[_])}catch(m){if(m instanceof Fe)return{type:"redirect",location:m.location};let v=J(m),b;if(p?.includes(m))v=m.status??v,b=m.error;else if(m instanceof te)b=m.body;else{if(await L.updated.check())return await O(n);b=await M(m,{params:a,url:n,route:{id:r.id}})}const B=await Gt(_,P,o);return B?await Q({url:n,params:a,branch:P.slice(0,B.idx).concat(B.node),status:v,error:b,route:r}):await Xe(n,{id:r.id},b,v)}else P.push(void 0);return await Q({url:n,params:a,branch:P,status:200,error:null,route:r,form:t?void 0:null})}async function Gt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function ae({status:e,error:t,url:n,route:a}){const r={};let o=null;if(j.server_loads[0]===0)try{const l=await Ze(n,[!0]);if(l.type!=="data"||l.nodes[0]&&l.nodes[0].type!=="data")throw 0;o=l.nodes[0]??null}catch{(n.origin!==q||n.pathname!==location.pathname||ye)&&await O(n)}const s=await be({loader:fe,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Ee(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=We(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function We(e){return at(e.slice(S.length)||"/")}function ze({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return G||Me.forEach(s=>s(i)),r?null:o}async function H({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(t,!1),u=ze({url:t,type:e,delta:n?.delta,intent:g});if(!u){d();return}const f=w,h=k;l(),G=!0,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Je(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await M(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Ke(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(Ge.length=0,we=!1,me(f),Be(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:w+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(w,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ve.$set(p.props),qe=!0}else Ye(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){const _=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));E?scrollTo(E.x,E.y):_?_.scrollIntoView():scrollTo(0,0)}const P=document.activeElement!==R&&document.activeElement!==document.body;!a&&!P&&Kt(),Le=!0,p.props.page&&(A=p.props.page),G=!1,e==="popstate"&&He(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===q&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Mt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=Y(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===K.viewport&&n.observe(o),l.preload_code===K.eager&&ce(i.pathname))}}C.push(r),r()}function M(e,t){if(e instanceof te)return e.body;const n=J(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function qt(e,t={}){return e=De(e),e.origin!==q?Promise.reject(new Error("goto: invalid URL")):Ke(e,t,0)}function Bt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!G){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Me.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Mt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=Y(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){ze({url:a,type:"link"})?G=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(location)){const[,g]=y.url.href.split("#");if(g===d){t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):n.ownerDocument.getElementById(d)?.scrollIntoView();return}if(D=!0,me(w),e(a),!s.replace_state)return;D=!1}t.preventDefault(),H({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=Y(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),H({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===w)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(qe||s)){e(o),T[w]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},ve.$set({page:A})),w=n;return}const l=n-w;await H({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++w,[V]:k},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&L.navigating.set(null)});function e(t){y.url=t,L.page.set({...A,url:t}),L.page.notify()}}async function Ht(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;E<h;E+=1)Object.assign(R,(await d[E]).data);return R},server_data_node:Ee(p)})}),g=await Promise.all(d),u=ne.find(({id:f})=>f===o.id);if(u){const f=u.layouts;for(let h=0;h<f.length;h++)f[h]||g.splice(h,0,void 0)}l=await Q({url:c,params:r,branch:g,status:t,error:n,form:s,route:u??null})}catch(d){if(d instanceof Fe){await O(new URL(d.location,location.href));return}l=await ae({status:J(d),error:await M(d,{url:c,params:r,route:o}),url:c,route:o})}l.props.page&&(l.props.page.state={}),Ye(l,e)}async function Ze(e,t){const n=new URL(e);n.pathname=lt(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Ot,"1"),n.searchParams.append(Nt,t.map(r=>r?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.set(g,{fulfil:u,reject:f})})})}let l="";for(;;){const{done:d,value:g}=await i.read();if(d&&!l)break;for(l+=!g&&l?`
2
+ `:s.decode(g,{stream:!0});;){const u=l.indexOf(`
3
+ `);if(u===-1)break;const f=JSON.parse(l.slice(0,u));if(l=l.slice(u+1),f.type==="redirect")return r(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=Qe(h.uses),h.data=c(h.data))}),r(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=o.get(h);o.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function Qe(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??[])}}function Kt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o<a.rangeCount;o+=1)r.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===r.length){for(let o=0;o<a.rangeCount;o+=1){const i=r[o],s=a.getRangeAt(o);if(i.commonAncestorContainer!==s.commonAncestorContainer||i.startContainer!==s.startContainer||i.endContainer!==s.endContainer||i.startOffset!==s.startOffset||i.endOffset!==s.endOffset)return}a.removeAllRanges()}})}}}function et(e,t,n,a){let r,o;const i=new Promise((c,l)=>{r=c,o=l});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:i},fulfil:r,reject:o}}export{Wt as a,L as s};
build/client/_app/immutable/entry/app.tbjImKCQ.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import{s as C,a as U,w as h,g as q,i as b,f as p,x as j,v as z,e as M,c as W,b as F,m as A,y as d,t as G,d as H,j as J,z as D,A as k,B as K}from"../chunks/scheduler.OwA2AG0M.js";import{S as Q,i as X,a as g,c as P,t as w,g as L,b as v,d as I,m as E,e as y}from"../chunks/index.JlSaLmPP.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},N={},R=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link");s=Promise.all(n.map(t=>{if(t=Z(t,i),t in N)return;N[t]=!0;const r=t.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(!!i)for(let u=c.length-1;u>=0;u--){const m=c[u];if(m.href===t&&(!r||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":Y,r||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),r)return new Promise((u,m)=>{o.addEventListener("load",u),o.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}return s.then(()=>e()).catch(c=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=c,window.dispatchEvent(t),!t.defaultPrevented)throw c})},re={};function $(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,c(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&I(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[12](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[12](null),e&&y(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,c(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&I(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[11](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[11](null),e&&y(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function c(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,c(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&I(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),b(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{y(l,1)}),P()}s?(e=k(s,c(t)),t[10](e),v(e.$$.fragment),w(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&p(n),a[10](null),e&&y(e,t)}}}function O(a){let e,n=a[6]&&S(a);return{c(){e=M("div"),n&&n.c(),this.h()},l(i){e=W(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=F(e);n&&n.l(s),s.forEach(p),this.h()},h(){A(e,"id","svelte-announcer"),A(e,"aria-live","assertive"),A(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(i,s){b(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=S(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&p(e),n&&n.d()}}}function S(a){let e;return{c(){e=G(a[7])},l(n){e=H(n,a[7])},m(n,i){b(n,e,i)},p(n,i){i&128&&J(e,n[7])},d(n){n&&p(e)}}}function te(a){let e,n,i,s,c;const t=[x,$],r=[];function l(o,u){return o[1][1]?0:1}e=l(a),n=r[e]=t[e](a);let _=a[5]&&O(a);return{c(){n.c(),i=U(),_&&_.c(),s=h()},l(o){n.l(o),i=q(o),_&&_.l(o),s=h()},m(o,u){r[e].m(o,u),b(o,i,u),_&&_.m(o,u),b(o,s,u),c=!0},p(o,[u]){let m=e;e=l(o),e===m?r[e].p(o,u):(L(),g(r[m],1,1,()=>{r[m]=null}),P(),n=r[e],n?n.p(o,u):(n=r[e]=t[e](o),n.c()),w(n,1),n.m(i.parentNode,i)),o[5]?_?_.p(o,u):(_=O(o),_.c(),_.m(s.parentNode,s)):_&&(_.d(1),_=null)},i(o){c||(w(n),c=!0)},o(o){g(n),c=!1},d(o){o&&(p(i),p(s)),r[e].d(o),_&&_.d(o)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:c}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:_=null}=e;j(i.page.notify);let o=!1,u=!1,m=null;z(()=>{const f=i.page.subscribe(()=>{o&&(n(6,u=!0),K().then(()=>{n(7,m=document.title||"untitled page")}))});return n(5,o=!0),f});function T(f){D[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function V(f){D[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function B(f){D[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,s=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,r=f.form),"data_0"in f&&n(3,l=f.data_0),"data_1"in f&&n(4,_=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,c,r,l,_,o,u,m,i,s,T,V,B]}class oe extends Q{constructor(e){super(),X(this,e,ne,te,C,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>R(()=>import("../nodes/0.UBYIs98P.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>R(()=>import("../nodes/1.NBgdD046.js"),__vite__mapDeps([7,1,2,8,4]),import.meta.url),()=>R(()=>import("../nodes/2.9FgvPYu_.js"),__vite__mapDeps([9,1,2,8,4,10,3,5,11,12]),import.meta.url),()=>R(()=>import("../nodes/3.5iLzfAc3.js"),__vite__mapDeps([13,1,10,2,14]),import.meta.url),()=>R(()=>import("../nodes/4.WM9VxzNR.js"),__vite__mapDeps([15,1,2,11,3,4,5,16]),import.meta.url)],le=[],fe={"/":[-3],"/chat":[3],"/logs":[4]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads};
2
+ function __vite__mapDeps(indexes) {
3
+ if (!__vite__mapDeps.viteFileDeps) {
4
+ __vite__mapDeps.viteFileDeps = ["../nodes/0.UBYIs98P.js","../chunks/scheduler.OwA2AG0M.js","../chunks/index.JlSaLmPP.js","../chunks/ProgressBar.svelte_svelte_type_style_lang.9muE4jOP.js","../chunks/index.UTqYide5.js","../assets/ProgressBar.oq5aOWfL.css","../assets/0.Cn2YjZcW.css","../nodes/1.NBgdD046.js","../chunks/entry.bIlUiDNF.js","../nodes/2.9FgvPYu_.js","../chunks/each.N0yHvFdK.js","../chunks/LogService.hUlSDADx.js","../assets/2.VP-gOi1X.css","../nodes/3.5iLzfAc3.js","../assets/3.zBATg92h.css","../nodes/4.WM9VxzNR.js","../assets/4.wLw7i_OC.css"]
5
+ }
6
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7
+ }
build/client/_app/immutable/entry/start.XXXp1gC7.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{a as t}from"../chunks/entry.bIlUiDNF.js";export{t as start};
build/client/_app/immutable/nodes/1.NBgdD046.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{s as E,e as b,t as _,a as S,c as f,b as d,d as g,f as p,g as x,i as l,h,j as v,n as $,k as j}from"../chunks/scheduler.OwA2AG0M.js";import{S as k,i as q}from"../chunks/index.JlSaLmPP.js";import{s as y}from"../chunks/entry.bIlUiDNF.js";const C=()=>{const s=y;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},H={subscribe(s){return C().page.subscribe(s)}};function P(s){let t,r=s[0].status+"",o,n,i,c=s[0].error?.message+"",u;return{c(){t=b("h1"),o=_(r),n=S(),i=b("p"),u=_(c)},l(e){t=f(e,"H1",{});var a=d(t);o=g(a,r),a.forEach(p),n=x(e),i=f(e,"P",{});var m=d(i);u=g(m,c),m.forEach(p)},m(e,a){l(e,t,a),h(t,o),l(e,n,a),l(e,i,a),h(i,u)},p(e,[a]){a&1&&r!==(r=e[0].status+"")&&v(o,r),a&1&&c!==(c=e[0].error?.message+"")&&v(u,c)},i:$,o:$,d(e){e&&(p(t),p(n),p(i))}}}function w(s,t,r){let o;return j(s,H,n=>r(0,o=n)),[o]}let D=class extends k{constructor(t){super(),q(this,t,w,P,E,{})}};export{D as component};
build/client/_app/immutable/nodes/2.9FgvPYu_.js ADDED
The diff for this file is too large to render. See raw diff
 
build/client/_app/immutable/nodes/3.5iLzfAc3.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{s as Y,e as g,a as P,c as v,b as B,f as b,g as I,l as q,m as p,i as U,h as o,o as K,p as L,n as O,q as Z,r as $,t as z,d as J,j as M}from"../chunks/scheduler.OwA2AG0M.js";import{e as X}from"../chunks/each.N0yHvFdK.js";import{S as ee,i as te}from"../chunks/index.JlSaLmPP.js";function G(r,e,t){const i=r.slice();return i[13]=e[t],i}function H(r){let e,t,i,n="Вы:",u,f,d,y=r[13][0]+"",_,x,w,F="Бот:",T,A,D,m=r[13][1]+"",k,C;return{c(){e=g("div"),t=g("div"),i=g("p"),i.textContent=n,u=P(),f=g("div"),d=g("p"),_=z(y),x=P(),w=g("p"),w.textContent=F,T=P(),A=g("div"),D=g("pre"),k=z(m),C=P(),this.h()},l(l){e=v(l,"DIV",{class:!0});var a=B(e);t=v(a,"DIV",{class:!0});var c=B(t);i=v(c,"P",{class:!0,"data-svelte-h":!0}),q(i)!=="svelte-rp9yxd"&&(i.textContent=n),u=I(c),f=v(c,"DIV",{class:!0});var s=B(f);d=v(s,"P",{class:!0});var E=B(d);_=J(E,y),E.forEach(b),s.forEach(b),x=I(c),w=v(c,"P",{class:!0,"data-svelte-h":!0}),q(w)!=="svelte-1l7fbwv"&&(w.textContent=F),T=I(c),A=v(c,"DIV",{class:!0});var h=B(A);D=v(h,"PRE",{class:!0});var V=B(D);k=J(V,m),V.forEach(b),h.forEach(b),c.forEach(b),C=I(a),a.forEach(b),this.h()},h(){p(i,"class","font-bold text-sm"),p(d,"class","text-sm"),p(f,"class","self-start bg-blue-500 text-white p-2 rounded-lg"),p(w,"class","font-bold text-sm"),p(D,"class","text-sm svelte-1m09ey3"),p(A,"class","self-start bg-slate-100 text-black p-2 rounded-lg"),p(t,"class","mb-2 flex flex-col"),p(e,"class","mb-2 flex flex-col")},m(l,a){U(l,e,a),o(e,t),o(t,i),o(t,u),o(t,f),o(f,d),o(d,_),o(t,x),o(t,w),o(t,T),o(t,A),o(A,D),o(D,k),o(e,C)},p(l,a){a&3&&y!==(y=l[13][0]+"")&&M(_,y),a&3&&m!==(m=l[13][1]+"")&&M(k,m)},d(l){l&&b(e)}}}function Q(r){let e,t="Остановить",i,n;return{c(){e=g("button"),e.textContent=t,this.h()},l(u){e=v(u,"BUTTON",{class:!0,"data-svelte-h":!0}),q(e)!=="svelte-9vttci"&&(e.textContent=t),this.h()},h(){p(e,"class","ml-2 px-4 py-2 mb-8 bg-cyan-800 text-white rounded-md")},m(u,f){U(u,e,f),i||(n=L(e,"click",r[6]),i=!0)},p:O,d(u){u&&b(e),i=!1,n()}}}function W(r){let e,t="Отправить",i,n;return{c(){e=g("button"),e.textContent=t,this.h()},l(u){e=v(u,"BUTTON",{class:!0,"data-svelte-h":!0}),q(e)!=="svelte-n2s9cz"&&(e.textContent=t),this.h()},h(){p(e,"class","ml-2 px-4 py-2 mb-8 bg-blue-500 text-white rounded-md")},m(u,f){U(u,e,f),i||(n=L(e,"click",r[4]),i=!0)},p:O,d(u){u&&b(e),i=!1,n()}}}function ue(r){let e,t,i,n,u,f,d,y,_,x,w,F,T="Использовать системный промпт",A,D,m,k,C=X(r[0]?r[1].slice(1):r[1]),l=[];for(let s=0;s<C.length;s+=1)l[s]=H(G(r,C,s));let a=r[3]&&Q(r),c=!r[3]&&W(r);return{c(){e=g("div"),t=g("div");for(let s=0;s<l.length;s+=1)l[s].c();i=P(),n=g("div"),u=g("div"),f=g("div"),d=g("textarea"),y=P(),_=g("label"),x=g("input"),w=P(),F=g("p"),F.textContent=T,A=P(),a&&a.c(),D=P(),c&&c.c(),this.h()},l(s){e=v(s,"DIV",{class:!0});var E=B(e);t=v(E,"DIV",{class:!0});var h=B(t);for(let j=0;j<l.length;j+=1)l[j].l(h);h.forEach(b),i=I(E),n=v(E,"DIV",{class:!0});var V=B(n);u=v(V,"DIV",{class:!0});var R=B(u);f=v(R,"DIV",{class:!0});var S=B(f);d=v(S,"TEXTAREA",{class:!0,placeholder:!0}),B(d).forEach(b),y=I(S),_=v(S,"LABEL",{class:!0});var N=B(_);x=v(N,"INPUT",{class:!0,type:!0}),w=I(N),F=v(N,"P",{"data-svelte-h":!0}),q(F)!=="svelte-15ltrgi"&&(F.textContent=T),N.forEach(b),S.forEach(b),A=I(R),a&&a.l(R),D=I(R),c&&c.l(R),R.forEach(b),V.forEach(b),E.forEach(b),this.h()},h(){p(t,"class","flex-1 overflow-y-auto p-4 bg-gray-200"),p(d,"class","flex-1 py-2 px-3 rounded-md border-gray-300 w-full"),p(d,"placeholder","Введите ваше сообщение..."),p(x,"class","checkbox accent-white"),p(x,"type","checkbox"),p(_,"class","flex items-center space-x-2"),p(f,"class","w-full"),p(u,"class","flex"),p(n,"class","p-4 bg-gray-300"),p(e,"class","h-screen flex flex-col py-8")},m(s,E){U(s,e,E),o(e,t);for(let h=0;h<l.length;h+=1)l[h]&&l[h].m(t,null);o(e,i),o(e,n),o(n,u),o(u,f),o(f,d),K(d,r[2]),o(f,y),o(f,_),o(_,x),x.checked=r[0],o(_,w),o(_,F),o(u,A),a&&a.m(u,null),o(u,D),c&&c.m(u,null),m||(k=[L(d,"input",r[7]),L(d,"keydown",r[5]),L(x,"change",r[8])],m=!0)},p(s,[E]){if(E&3){C=X(s[0]?s[1].slice(1):s[1]);let h;for(h=0;h<C.length;h+=1){const V=G(s,C,h);l[h]?l[h].p(V,E):(l[h]=H(V),l[h].c(),l[h].m(t,null))}for(;h<l.length;h+=1)l[h].d(1);l.length=C.length}E&4&&K(d,s[2]),E&1&&(x.checked=s[0]),s[3]?a?a.p(s,E):(a=Q(s),a.c(),a.m(u,D)):a&&(a.d(1),a=null),s[3]?c&&(c.d(1),c=null):c?c.p(s,E):(c=W(s),c.c(),c.m(u,null))},i:O,o:O,d(s){s&&b(e),Z(l,s),a&&a.d(),c&&c.d(),m=!1,$(k)}}}function le(r,e,t){const i=["Ты - бот, ассистент. Ты помогаешь пользователю с его запросами. Отвечай на русском языке, если пользователь не указал иное. Обращайся на Вы. Следуй инструкциям и указаниям пользователя.","Я отвечаю на русском языке!"];let n=[],u="",f=!1,d=new AbortController,y=!1;async function _(){u.trim()!==""&&(t(1,n=[...n,[u,""]]),t(2,u=""),await w())}function x(m){m.key==="Enter"&&!m.shiftKey&&(m.stopPropagation(),m.preventDefault(),_())}const w=async()=>{t(3,f=!0);const m=await fetch("/llm/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({history:n}),signal:d.signal});try{if(d.signal.aborted){console.log("Request was cancelled.");return}if(!m.body){console.log("Response has no body");return}const k=m.body.pipeThrough(new TextDecoderStream).getReader();let C=!0;for(;C;)try{if(d.signal.aborted){console.log("Request was cancelled during reading.");break}const{value:l,done:a}=await k.read();if(a){C=!1;break}l&&t(1,n[n.length-1][1]+=l,n)}catch(l){if(l.name==="AbortError"){C=!1,console.log("Fetch was aborted during reading.");break}else{C=!1,console.error("Error during reading:",l);break}}t(3,f=!1)}catch(k){k.name==="AbortError"?console.log("Fetch was aborted."):console.error("Error during fetch:",k)}},F=()=>{d.abort("user canceled"),d=new AbortController};function T(m){m?n.unshift(i):t(1,n=n.filter(k=>k!==i))}function A(){u=this.value,t(2,u)}function D(){y=this.checked,t(0,y)}return r.$$.update=()=>{r.$$.dirty&1&&T(y)},[y,n,u,f,_,x,F,A,D]}class ne extends ee{constructor(e){super(),te(this,e,le,ue,Y,{})}}export{ne as component};
build/client/_app/version.json CHANGED
@@ -1 +1 @@
1
- {"version":"1726650043044"}
 
1
+ {"version":"1726831171324"}
build/server/chunks/1-u9cDhUrb.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ const index = 1;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./error.svelte-qFoQaYDm.js')).default;
4
+ const imports = ["_app/immutable/nodes/1.NBgdD046.js","_app/immutable/chunks/scheduler.OwA2AG0M.js","_app/immutable/chunks/index.JlSaLmPP.js","_app/immutable/chunks/entry.bIlUiDNF.js","_app/immutable/chunks/index.UTqYide5.js"];
5
+ const stylesheets = [];
6
+ const fonts = [];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=1-u9cDhUrb.js.map
build/server/chunks/1-u9cDhUrb.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"1-u9cDhUrb.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.NBgdD046.js\",\"_app/immutable/chunks/scheduler.OwA2AG0M.js\",\"_app/immutable/chunks/index.JlSaLmPP.js\",\"_app/immutable/chunks/entry.bIlUiDNF.js\",\"_app/immutable/chunks/index.UTqYide5.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AAC5G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,yCAAyC,EAAE;AAC9N,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}
build/server/chunks/2-_Fr3Cq56.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { d as private_env } from './shared-server-49TKSBDM.js';
2
+
3
+ const prerender = false;
4
+
5
+ var _page_ts = /*#__PURE__*/Object.freeze({
6
+ __proto__: null,
7
+ prerender: prerender
8
+ });
9
+
10
+ async function load() {
11
+ return {
12
+ ENV_ENABLE_DOCUMENT_DB: private_env.ENABLE_DOCUMENT_DB,
13
+ ENV_DOCUMENT_DB_URL: private_env.DOCUMENT_DB_URL,
14
+ ENV_ENABLE_DB_SUPPORT: private_env.ENABLE_DB_SUPPORT
15
+ };
16
+ }
17
+
18
+ var _page_server = /*#__PURE__*/Object.freeze({
19
+ __proto__: null,
20
+ load: load
21
+ });
22
+
23
+ const index = 2;
24
+ let component_cache;
25
+ const component = async () => component_cache ??= (await import('./_page.svelte-QKoLg7mN.js')).default;
26
+ const universal_id = "src/routes/+page.ts";
27
+ const server_id = "src/routes/+page.server.js";
28
+ const imports = ["_app/immutable/nodes/2.9FgvPYu_.js","_app/immutable/chunks/scheduler.OwA2AG0M.js","_app/immutable/chunks/index.JlSaLmPP.js","_app/immutable/chunks/entry.bIlUiDNF.js","_app/immutable/chunks/index.UTqYide5.js","_app/immutable/chunks/each.N0yHvFdK.js","_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.9muE4jOP.js","_app/immutable/chunks/LogService.hUlSDADx.js"];
29
+ const stylesheets = ["_app/immutable/assets/2.VP-gOi1X.css","_app/immutable/assets/ProgressBar.oq5aOWfL.css"];
30
+ const fonts = [];
31
+
32
+ export { component, fonts, imports, index, _page_server as server, server_id, stylesheets, _page_ts as universal, universal_id };
33
+ //# sourceMappingURL=2-_Fr3Cq56.js.map
build/server/chunks/2-_Fr3Cq56.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"2-_Fr3Cq56.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_page.ts.js","../../../.svelte-kit/adapter-node/entries/pages/_page.server.js","../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["const prerender = false;\nexport {\n prerender\n};\n","import { d as private_env } from \"../../chunks/shared-server.js\";\nasync function load() {\n return {\n ENV_ENABLE_DOCUMENT_DB: private_env.ENABLE_DOCUMENT_DB,\n ENV_DOCUMENT_DB_URL: private_env.DOCUMENT_DB_URL,\n ENV_ENABLE_DB_SUPPORT: private_env.ENABLE_DB_SUPPORT\n };\n}\nexport {\n load\n};\n","import * as universal from '../entries/pages/_page.ts.js';\nimport * as server from '../entries/pages/_page.server.js';\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/+page.ts\";\nexport { server };\nexport const server_id = \"src/routes/+page.server.js\";\nexport const imports = [\"_app/immutable/nodes/2.9FgvPYu_.js\",\"_app/immutable/chunks/scheduler.OwA2AG0M.js\",\"_app/immutable/chunks/index.JlSaLmPP.js\",\"_app/immutable/chunks/entry.bIlUiDNF.js\",\"_app/immutable/chunks/index.UTqYide5.js\",\"_app/immutable/chunks/each.N0yHvFdK.js\",\"_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.9muE4jOP.js\",\"_app/immutable/chunks/LogService.hUlSDADx.js\"];\nexport const stylesheets = [\"_app/immutable/assets/2.VP-gOi1X.css\",\"_app/immutable/assets/ProgressBar.oq5aOWfL.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG,KAAK;;;;;;;ACCvB,eAAe,IAAI,GAAG;AACtB,EAAE,OAAO;AACT,IAAI,sBAAsB,EAAE,WAAW,CAAC,kBAAkB;AAC1D,IAAI,mBAAmB,EAAE,WAAW,CAAC,eAAe;AACpD,IAAI,qBAAqB,EAAE,WAAW,CAAC,iBAAiB;AACxD,GAAG,CAAC;AACJ;;;;;;;ACJY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE,QAAQ;AAExG,MAAC,YAAY,GAAG,sBAAsB;AAEtC,MAAC,SAAS,GAAG,6BAA6B;AAC1C,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,wCAAwC,CAAC,6EAA6E,CAAC,8CAA8C,EAAE;AACpY,MAAC,WAAW,GAAG,CAAC,sCAAsC,CAAC,gDAAgD,EAAE;AACzG,MAAC,KAAK,GAAG;;;;"}
build/server/chunks/3-xWMOnkEY.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ const index = 3;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./_page.svelte--eF8pNuF.js')).default;
4
+ const imports = ["_app/immutable/nodes/3.5iLzfAc3.js","_app/immutable/chunks/scheduler.OwA2AG0M.js","_app/immutable/chunks/each.N0yHvFdK.js","_app/immutable/chunks/index.JlSaLmPP.js"];
5
+ const stylesheets = ["_app/immutable/assets/3.zBATg92h.css"];
6
+ const fonts = [];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=3-xWMOnkEY.js.map
build/server/chunks/3-xWMOnkEY.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"3-xWMOnkEY.js","sources":["../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/chat/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/3.5iLzfAc3.js\",\"_app/immutable/chunks/scheduler.OwA2AG0M.js\",\"_app/immutable/chunks/each.N0yHvFdK.js\",\"_app/immutable/chunks/index.JlSaLmPP.js\"];\nexport const stylesheets = [\"_app/immutable/assets/3.zBATg92h.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAuC,CAAC,EAAE,QAAQ;AAC7G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,wCAAwC,CAAC,yCAAyC,EAAE;AACnL,MAAC,WAAW,GAAG,CAAC,sCAAsC,EAAE;AACxD,MAAC,KAAK,GAAG;;;;"}
build/server/chunks/_page.svelte--eF8pNuF.js ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { c as create_ssr_component, k as each, e as escape, b as add_attribute } from './ssr-IdY0EU5r.js';
2
+
3
+ const css = {
4
+ code: "pre.svelte-1m09ey3{font-size:0.875rem;line-height:1.25rem;overflow:auto;border:none;box-shadow:none;background:none;padding:0;font-family:system-ui;color:black;white-space:pre-wrap}",
5
+ map: null
6
+ };
7
+ const Page = create_ssr_component(($$result, $$props, $$bindings, slots) => {
8
+ const prompt = [
9
+ "Ты - бот, ассистент. Ты помогаешь пользователю с его запросами. Отвечай на русском языке, если пользователь не указал иное. Обращайся на Вы. Следуй инструкциям и указаниям пользователя.",
10
+ "Я отвечаю на русском языке!"
11
+ ];
12
+ let messages = [];
13
+ new AbortController();
14
+ let usePrompt = false;
15
+ function handlePromptChange(usePrompt2) {
16
+ if (usePrompt2) {
17
+ messages.unshift(prompt);
18
+ } else {
19
+ messages = messages.filter((e) => e !== prompt);
20
+ }
21
+ }
22
+ $$result.css.add(css);
23
+ {
24
+ handlePromptChange(usePrompt);
25
+ }
26
+ return ` <div class="h-screen flex flex-col py-8"><div class="flex-1 overflow-y-auto p-4 bg-gray-200">${each(messages, (message) => {
27
+ return `<div class="mb-2 flex flex-col"><div class="mb-2 flex flex-col"><p class="font-bold text-sm" data-svelte-h="svelte-rp9yxd">Вы:</p> <div class="self-start bg-blue-500 text-white p-2 rounded-lg"><p class="text-sm">${escape(message[0])}</p></div> <p class="font-bold text-sm" data-svelte-h="svelte-1l7fbwv">Бот:</p> <div class="self-start bg-slate-100 text-black p-2 rounded-lg"><pre class="text-sm svelte-1m09ey3">${escape(message[1])}</pre> </div></div> </div>`;
28
+ })}</div> <div class="p-4 bg-gray-300"><div class="flex"><div class="w-full"><textarea class="flex-1 py-2 px-3 rounded-md border-gray-300 w-full" placeholder="Введите ваше сообщение...">${escape("")}</textarea> <label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox"${add_attribute("checked", usePrompt, 1)}> <p data-svelte-h="svelte-15ltrgi">Использовать системный промпт</p></label></div> ${``} ${`<button class="ml-2 px-4 py-2 mb-8 bg-blue-500 text-white rounded-md" data-svelte-h="svelte-n2s9cz">Отправить</button>`}</div></div> </div>`;
29
+ });
30
+
31
+ export { Page as default };
32
+ //# sourceMappingURL=_page.svelte--eF8pNuF.js.map
build/server/chunks/_page.svelte--eF8pNuF.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"_page.svelte--eF8pNuF.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/chat/_page.svelte.js"],"sourcesContent":["import { c as create_ssr_component, p as each, e as escape, i as add_attribute } from \"../../../chunks/ssr.js\";\nconst css = {\n code: \"pre.svelte-1m09ey3{font-size:0.875rem;line-height:1.25rem;overflow:auto;border:none;box-shadow:none;background:none;padding:0;font-family:system-ui;color:black;white-space:pre-wrap}\",\n map: null\n};\nconst Page = create_ssr_component(($$result, $$props, $$bindings, slots) => {\n const prompt = [\n \"Ты - бот, ассистент. Ты помогаешь пользователю с его запросами. Отвечай на русском языке, если пользователь не указал иное. Обращайся на Вы. Следуй инструкциям и указаниям пользователя.\",\n \"Я отвечаю на русском языке!\"\n ];\n let messages = [];\n new AbortController();\n let usePrompt = false;\n function handlePromptChange(usePrompt2) {\n if (usePrompt2) {\n messages.unshift(prompt);\n } else {\n messages = messages.filter((e) => e !== prompt);\n }\n }\n $$result.css.add(css);\n {\n handlePromptChange(usePrompt);\n }\n return ` <div class=\"h-screen flex flex-col py-8\"><div class=\"flex-1 overflow-y-auto p-4 bg-gray-200\">${each(messages, (message) => {\n return `<div class=\"mb-2 flex flex-col\"><div class=\"mb-2 flex flex-col\"><p class=\"font-bold text-sm\" data-svelte-h=\"svelte-rp9yxd\">Вы:</p> <div class=\"self-start bg-blue-500 text-white p-2 rounded-lg\"><p class=\"text-sm\">${escape(message[0])}</p></div> <p class=\"font-bold text-sm\" data-svelte-h=\"svelte-1l7fbwv\">Бот:</p> <div class=\"self-start bg-slate-100 text-black p-2 rounded-lg\"><pre class=\"text-sm svelte-1m09ey3\">${escape(message[1])}</pre> </div></div> </div>`;\n })}</div> <div class=\"p-4 bg-gray-300\"><div class=\"flex\"><div class=\"w-full\"><textarea class=\"flex-1 py-2 px-3 rounded-md border-gray-300 w-full\" placeholder=\"Введите ваше сообщение...\">${escape(\"\")}</textarea> <label class=\"flex items-center space-x-2\"><input class=\"checkbox accent-white\" type=\"checkbox\"${add_attribute(\"checked\", usePrompt, 1)}> <p data-svelte-h=\"svelte-15ltrgi\">Использовать системный промпт</p></label></div> ${``} ${`<button class=\"ml-2 px-4 py-2 mb-8 bg-blue-500 text-white rounded-md\" data-svelte-h=\"svelte-n2s9cz\">Отправить</button>`}</div></div> </div>`;\n});\nexport {\n Page as default\n};\n"],"names":[],"mappings":";;AACA,MAAM,GAAG,GAAG;AACZ,EAAE,IAAI,EAAE,uLAAuL;AAC/L,EAAE,GAAG,EAAE,IAAI;AACX,CAAC,CAAC;AACG,MAAC,IAAI,GAAG,oBAAoB,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,KAAK;AAC5E,EAAE,MAAM,MAAM,GAAG;AACjB,IAAI,2LAA2L;AAC/L,IAAI,6B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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { c as create_ssr_component, o as onDestroy, v as validate_component, e as escape, b as add_attribute, g as getContext, s as setContext, d as compute_rest_props, f as createEventDispatcher, h as spread, i as escape_attribute_value, j as escape_object, a as subscribe, k as each, l as set_store_value, n as hasContext, p as compute_slots, q as split_css_unit } from './ssr-IdY0EU5r.js';
2
+ import './client-_MkdHwD5.js';
3
+ import { w as writable } from './index2-KUnGpG6g.js';
4
+ import { p as prefersReducedMotionStore } from './ProgressBar.svelte_svelte_type_style_lang-5Gb3pa2y.js';
5
+ import 'docx';
6
+ import 'file-saver';
7
+ import { H as HelpDocumentId } from './constants-jjpZ8eI6.js';
8
+ import './exports-mq_1S73-.js';
9
+
10
+ const DRAWER_STORE_KEY = "drawerStore";
11
+ function initializeDrawerStore() {
12
+ const drawerStore = drawerService();
13
+ return setContext(DRAWER_STORE_KEY, drawerStore);
14
+ }
15
+ function drawerService() {
16
+ const { subscribe: subscribe2, set, update: update2 } = writable({});
17
+ return {
18
+ subscribe: subscribe2,
19
+ set,
20
+ update: update2,
21
+ /** Open the drawer. */
22
+ open: (newSettings) => update2(() => {
23
+ return { open: true, ...newSettings };
24
+ }),
25
+ /** Close the drawer. */
26
+ close: () => update2((d) => {
27
+ d.open = false;
28
+ return d;
29
+ })
30
+ };
31
+ }
32
+ const MODAL_STORE_KEY = "modalStore";
33
+ function initializeModalStore() {
34
+ const modalStore = modalService();
35
+ return setContext(MODAL_STORE_KEY, modalStore);
36
+ }
37
+ function modalService() {
38
+ const { subscribe: subscribe2, set, update: update2 } = writable([]);
39
+ return {
40
+ subscribe: subscribe2,
41
+ set,
42
+ update: update2,
43
+ /** Append to end of queue. */
44
+ trigger: (modal) => update2((mStore) => {
45
+ mStore.push(modal);
46
+ return mStore;
47
+ }),
48
+ /** Remove first item in queue. */
49
+ close: () => update2((mStore) => {
50
+ if (mStore.length > 0)
51
+ mStore.shift();
52
+ return mStore;
53
+ }),
54
+ /** Remove all items from queue. */
55
+ clear: () => set([])
56
+ };
57
+ }
58
+ const toastDefaults = { message: "Missing Toast Message", autohide: true, timeout: 5e3 };
59
+ const TOAST_STORE_KEY = "toastStore";
60
+ function getToastStore() {
61
+ const toastStore = getContext(TOAST_STORE_KEY);
62
+ if (!toastStore)
63
+ throw new Error("toastStore is not initialized. Please ensure that `initializeStores()` is invoked in the root layout file of this app!");
64
+ return toastStore;
65
+ }
66
+ function initializeToastStore() {
67
+ const toastStore = toastService();
68
+ return setContext(TOAST_STORE_KEY, toastStore);
69
+ }
70
+ function randomUUID() {
71
+ const random = Math.random();
72
+ return Number(random).toString(32);
73
+ }
74
+ function toastService() {
75
+ const { subscribe: subscribe2, set, update: update2 } = writable([]);
76
+ const close = (id) => update2((tStore) => {
77
+ if (tStore.length > 0) {
78
+ const index = tStore.findIndex((t) => t.id === id);
79
+ const selectedToast = tStore[index];
80
+ if (selectedToast) {
81
+ if (selectedToast.callback)
82
+ selectedToast.callback({ id, status: "closed" });
83
+ if (selectedToast.timeoutId)
84
+ clearTimeout(selectedToast.timeoutId);
85
+ tStore.splice(index, 1);
86
+ }
87
+ }
88
+ return tStore;
89
+ });
90
+ function handleAutoHide(toast) {
91
+ if (toast.autohide === true) {
92
+ return setTimeout(() => {
93
+ close(toast.id);
94
+ }, toast.timeout);
95
+ }
96
+ }
97
+ return {
98
+ subscribe: subscribe2,
99
+ close,
100
+ /** Add a new toast to the queue. */
101
+ trigger: (toast) => {
102
+ const id = randomUUID();
103
+ update2((tStore) => {
104
+ if (toast && toast.callback)
105
+ toast.callback({ id, status: "queued" });
106
+ if (toast.hideDismiss)
107
+ toast.autohide = true;
108
+ const tMerged = { ...toastDefaults, ...toast, id };
109
+ tMerged.timeoutId = handleAutoHide(tMerged);
110
+ tStore.push(tMerged);
111
+ return tStore;
112
+ });
113
+ return id;
114
+ },
115
+ /** Remain visible on hover */
116
+ freeze: (index) => update2((tStore) => {
117
+ if (tStore.length > 0)
118
+ clearTimeout(tStore[index].timeoutId);
119
+ return tStore;
120
+ }),
121
+ /** Cancel remain visible on leave */
122
+ unfreeze: (index) => update2((tStore) => {
123
+ if (tStore.length > 0)
124
+ tStore[index].timeoutId = handleAutoHide(tStore[index]);
125
+ return tStore;
126
+ }),
127
+ /** Remove all toasts from queue */
128
+ clear: () => set([])
129
+ };
130
+ }
131
+ function initializeStores() {
132
+ initializeModalStore();
133
+ initializeToastStore();
134
+ initializeDrawerStore();
135
+ }
136
+ function cubicOut(t) {
137
+ const f = t - 1;
138
+ return f * f * f + 1;
139
+ }
140
+ function fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 } = {}) {
141
+ const style = getComputedStyle(node);
142
+ const target_opacity = +style.opacity;
143
+ const transform = style.transform === "none" ? "" : style.transform;
144
+ const od = target_opacity * (1 - opacity);
145
+ const [xValue, xUnit] = split_css_unit(x);
146
+ const [yValue, yUnit] = split_css_unit(y);
147
+ return {
148
+ delay,
149
+ duration,
150
+ easing,
151
+ css: (t, u) => `
152
+ transform: ${transform} translate(${(1 - t) * xValue}${xUnit}, ${(1 - t) * yValue}${yUnit});
153
+ opacity: ${target_opacity - od * u}`
154
+ };
155
+ }
156
+ function slide(node, { delay = 0, duration = 400, easing = cubicOut, axis = "y" } = {}) {
157
+ const style = getComputedStyle(node);
158
+ const opacity = +style.opacity;
159
+ const primary_property = axis === "y" ? "height" : "width";
160
+ const primary_property_value = parseFloat(style[primary_property]);
161
+ const secondary_properties = axis === "y" ? ["top", "bottom"] : ["left", "right"];
162
+ const capitalized_secondary_properties = secondary_properties.map(
163
+ (e) => `${e[0].toUpperCase()}${e.slice(1)}`
164
+ );
165
+ const padding_start_value = parseFloat(style[`padding${capitalized_secondary_properties[0]}`]);
166
+ const padding_end_value = parseFloat(style[`padding${capitalized_secondary_properties[1]}`]);
167
+ const margin_start_value = parseFloat(style[`margin${capitalized_secondary_properties[0]}`]);
168
+ const margin_end_value = parseFloat(style[`margin${capitalized_secondary_properties[1]}`]);
169
+ const border_width_start_value = parseFloat(
170
+ style[`border${capitalized_secondary_properties[0]}Width`]
171
+ );
172
+ const border_width_end_value = parseFloat(
173
+ style[`border${capitalized_secondary_properties[1]}Width`]
174
+ );
175
+ return {
176
+ delay,
177
+ duration,
178
+ easing,
179
+ css: (t) => `overflow: hidden;opacity: ${Math.min(t * 20, 1) * opacity};${primary_property}: ${t * primary_property_value}px;padding-${secondary_properties[0]}: ${t * padding_start_value}px;padding-${secondary_properties[1]}: ${t * padding_end_value}px;margin-${secondary_properties[0]}: ${t * margin_start_value}px;margin-${secondary_properties[1]}: ${t * margin_end_value}px;border-${secondary_properties[0]}-width: ${t * border_width_start_value}px;border-${secondary_properties[1]}-width: ${t * border_width_end_value}px;`
180
+ };
181
+ }
182
+ const Accordion = create_ssr_component(($$result, $$props, $$bindings, slots) => {
183
+ let classesBase;
184
+ let $prefersReducedMotionStore, $$unsubscribe_prefersReducedMotionStore;
185
+ $$unsubscribe_prefersReducedMotionStore = subscribe(prefersReducedMotionStore, (value) => $prefersReducedMotionStore = value);
186
+ let { autocollapse = false } = $$props;
187
+ let { width = "w-full" } = $$props;
188
+ let { spacing = "space-y-1" } = $$props;
189
+ let { disabled = false } = $$props;
190
+ let { padding = "py-2 px-4" } = $$props;
191
+ let { hover = "hover:bg-primary-hover-token" } = $$props;
192
+ let { rounded = "rounded-container-token" } = $$props;
193
+ let { caretOpen = "rotate-180" } = $$props;
194
+ let { caretClosed = "" } = $$props;
195
+ let { regionControl = "" } = $$props;
196
+ let { regionPanel = "space-y-4" } = $$props;
197
+ let { regionCaret = "" } = $$props;
198
+ let { transitions = !$prefersReducedMotionStore } = $$props;
199
+ let { transitionIn = slide } = $$props;
200
+ let { transitionInParams = { duration: 200 } } = $$props;
201
+ let { transitionOut = slide } = $$props;
202
+ let { transitionOutParams = { duration: 200 } } = $$props;
203
+ const active = writable(null);
204
+ setContext("active", active);
205
+ setContext("autocollapse", autocollapse);
206
+ setContext("disabled", disabled);
207
+ setContext("padding", padding);
208
+ setContext("hover", hover);
209
+ setContext("rounded", rounded);
210
+ setContext("caretOpen", caretOpen);
211
+ setContext("caretClosed", caretClosed);
212
+ setContext("regionControl", regionControl);
213
+ setContext("regionPanel", regionPanel);
214
+ setContext("regionCaret", regionCaret);
215
+ setContext("transitions", transitions);
216
+ setContext("transitionIn", transitionIn);
217
+ setContext("transitionInParams", transitionInParams);
218
+ setContext("transitionOut", transitionOut);
219
+ setContext("transitionOutParams", transitionOutParams);
220
+ if ($$props.autocollapse === void 0 && $$bindings.autocollapse && autocollapse !== void 0)
221
+ $$bindings.autocollapse(autocollapse);
222
+ if ($$props.width === void 0 && $$bindings.width && width !== void 0)
223
+ $$bindings.width(width);
224
+ if ($$props.spacing === void 0 && $$bindings.spacing && spacing !== void 0)
225
+ $$bindings.spacing(spacing);
226
+ if ($$props.disabled === void 0 && $$bindings.disabled && disabled !== void 0)
227
+ $$bindings.disabled(disabled);
228
+ if ($$props.padding === void 0 && $$bindings.padding && padding !== void 0)
229
+ $$bindings.padding(padding);
230
+ if ($$props.hover === void 0 && $$bindings.hover && hover !== void 0)
231
+ $$bindings.hover(hover);
232
+ if ($$props.rounded === void 0 && $$bindings.rounded && rounded !== void 0)
233
+ $$bindings.rounded(rounded);
234
+ if ($$props.caretOpen === void 0 && $$bindings.caretOpen && caretOpen !== void 0)
235
+ $$bindings.caretOpen(caretOpen);
236
+ if ($$props.caretClosed === void 0 && $$bindings.caretClosed && caretClosed !== void 0)
237
+ $$bindings.caretClosed(caretClosed);
238
+ if ($$props.regionControl === void 0 && $$bindings.regionControl && regionControl !== void 0)
239
+ $$bindings.regionControl(regionControl);
240
+ if ($$props.regionPanel === void 0 && $$bindings.regionPanel && regionPanel !== void 0)
241
+ $$bindings.regionPanel(regionPanel);
242
+ if ($$props.regionCaret === void 0 && $$bindings.regionCaret && regionCaret !== void 0)
243
+ $$bindings.regionCaret(regionCaret);
244
+ if ($$props.transitions === void 0 && $$bindings.transitions && transitions !== void 0)
245
+ $$bindings.transitions(transitions);
246
+ if ($$props.transitionIn === void 0 && $$bindings.transitionIn && transitionIn !== void 0)
247
+ $$bindings.transitionIn(transitionIn);
248
+ if ($$props.transitionInParams === void 0 && $$bindings.transitionInParams && transitionInParams !== void 0)
249
+ $$bindings.transitionInParams(transitionInParams);
250
+ if ($$props.transitionOut === void 0 && $$bindings.transitionOut && transitionOut !== void 0)
251
+ $$bindings.transitionOut(transitionOut);
252
+ if ($$props.transitionOutParams === void 0 && $$bindings.transitionOutParams && transitionOutParams !== void 0)
253
+ $$bindings.transitionOutParams(transitionOutParams);
254
+ classesBase = `${width} ${spacing} ${$$props.class ?? ""}`;
255
+ $$unsubscribe_prefersReducedMotionStore();
256
+ return ` <div class="${"accordion " + escape(classesBase, true)}" data-testid="accordion">${slots.default ? slots.default({}) : ``}</div>`;
257
+ });
258
+ const cBase$3 = "";
259
+ const cControl = "text-start w-full flex items-center space-x-4";
260
+ const cControlIcons = "fill-current w-3 transition-transform duration-[200ms]";
261
+ const cPanel = "";
262
+ const AccordionItem = create_ssr_component(($$result, $$props, $$bindings, slots) => {
263
+ let openState;
264
+ let classesBase;
265
+ let classesControl;
266
+ let classesCaretState;
267
+ let classesControlCaret;
268
+ let classesControlIcons;
269
+ let classesPanel;
270
+ let $$slots = compute_slots(slots);
271
+ let $active, $$unsubscribe_active;
272
+ const dispatch = createEventDispatcher();
273
+ let { open = false } = $$props;
274
+ let { id = String(Math.random()) } = $$props;
275
+ let { autocollapse = getContext("autocollapse") } = $$props;
276
+ let { active = getContext("active") } = $$props;
277
+ $$unsubscribe_active = subscribe(active, (value) => $active = value);
278
+ let { disabled = getContext("disabled") } = $$props;
279
+ let { padding = getContext("padding") } = $$props;
280
+ let { hover = getContext("hover") } = $$props;
281
+ let { rounded = getContext("rounded") } = $$props;
282
+ let { caretOpen = getContext("caretOpen") } = $$props;
283
+ let { caretClosed = getContext("caretClosed") } = $$props;
284
+ let { regionControl = getContext("regionControl") } = $$props;
285
+ let { regionPanel = getContext("regionPanel") } = $$props;
286
+ let { regionCaret = getContext("regionCaret") } = $$props;
287
+ let { transitions = getContext("transitions") } = $$props;
288
+ let { transitionIn = getContext("transitionIn") } = $$props;
289
+ let { transitionInParams = getContext("transitionInParams") } = $$props;
290
+ let { transitionOut = getContext("transitionOut") } = $$props;
291
+ let { transitionOutParams = getContext("transitionOutParams") } = $$props;
292
+ const svgCaretIcon = `
293
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class={classesControlCaret}>
294
+ <path d="M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" />
295
+ </svg>`;
296
+ function setActive(event) {
297
+ if (autocollapse === true) {
298
+ active.set(id);
299
+ } else {
300
+ open = !open;
301
+ }
302
+ onToggle(event);
303
+ }
304
+ function onToggle(event) {
305
+ const currentOpenState = autocollapse ? $active === id : open;
306
+ dispatch("toggle", {
307
+ event,
308
+ id,
309
+ panelId: `accordion-panel-${id}`,
310
+ open: currentOpenState,
311
+ autocollapse
312
+ });
313
+ }
314
+ if (autocollapse && open)
315
+ setActive();
316
+ if ($$props.open === void 0 && $$bindings.open && open !== void 0)
317
+ $$bindings.open(open);
318
+ if ($$props.id === void 0 && $$bindings.id && id !== void 0)
319
+ $$bindings.id(id);
320
+ if ($$props.autocollapse === void 0 && $$bindings.autocollapse && autocollapse !== void 0)
321
+ $$bindings.autocollapse(autocollapse);
322
+ if ($$props.active === void 0 && $$bindings.active && active !== void 0)
323
+ $$bindings.active(active);
324
+ if ($$props.disabled === void 0 && $$bindings.disabled && disabled !== void 0)
325
+ $$bindings.disabled(disabled);
326
+ if ($$props.padding === void 0 && $$bindings.padding && padding !== void 0)
327
+ $$bindings.padding(padding);
328
+ if ($$props.hover === void 0 && $$bindings.hover && hover !== void 0)
329
+ $$bindings.hover(hover);
330
+ if ($$props.rounded === void 0 && $$bindings.rounded && rounded !== void 0)
331
+ $$bindings.rounded(rounded);
332
+ if ($$props.caretOpen === void 0 && $$bindings.caretOpen && caretOpen !== void 0)
333
+ $$bindings.caretOpen(caretOpen);
334
+ if ($$props.caretClosed === void 0 && $$bindings.caretClosed && caretClosed !== void 0)
335
+ $$bindings.caretClosed(caretClosed);
336
+ if ($$props.regionControl === void 0 && $$bindings.regionControl && regionControl !== void 0)
337
+ $$bindings.regionControl(regionControl);
338
+ if ($$props.regionPanel === void 0 && $$bindings.regionPanel && regionPanel !== void 0)
339
+ $$bindings.regionPanel(regionPanel);
340
+ if ($$props.regionCaret === void 0 && $$bindings.regionCaret && regionCaret !== void 0)
341
+ $$bindings.regionCaret(regionCaret);
342
+ if ($$props.transitions === void 0 && $$bindings.transitions && transitions !== void 0)
343
+ $$bindings.transitions(transitions);
344
+ if ($$props.transitionIn === void 0 && $$bindings.transitionIn && transitionIn !== void 0)
345
+ $$bindings.transitionIn(transitionIn);
346
+ if ($$props.transitionInParams === void 0 && $$bindings.transitionInParams && transitionInParams !== void 0)
347
+ $$bindings.transitionInParams(transitionInParams);
348
+ if ($$props.transitionOut === void 0 && $$bindings.transitionOut && transitionOut !== void 0)
349
+ $$bindings.transitionOut(transitionOut);
350
+ if ($$props.transitionOutParams === void 0 && $$bindings.transitionOutParams && transitionOutParams !== void 0)
351
+ $$bindings.transitionOutParams(transitionOutParams);
352
+ {
353
+ if (open && autocollapse)
354
+ setActive();
355
+ }
356
+ openState = autocollapse ? $active === id : open;
357
+ classesBase = `${cBase$3} ${$$props.class ?? ""}`;
358
+ classesControl = `${cControl} ${padding} ${hover} ${rounded} ${regionControl}`;
359
+ classesCaretState = openState ? caretOpen : caretClosed;
360
+ classesControlCaret = `${cControlIcons} ${regionCaret} ${classesCaretState}`;
361
+ classesControlIcons = `${cControlIcons} ${regionCaret}`;
362
+ classesPanel = `${cPanel} ${padding} ${rounded} ${regionPanel}`;
363
+ $$unsubscribe_active();
364
+ return ` <div class="${"accordion-item " + escape(classesBase, true)}" data-testid="accordion-item"> <button type="button" class="${"accordion-control " + escape(classesControl, true)}"${add_attribute("id", id, 0)}${add_attribute("aria-expanded", openState, 0)} aria-controls="${"accordion-panel-" + escape(id, true)}" ${disabled ? "disabled" : ""}> ${$$slots.lead ? `<div class="accordion-lead">${slots.lead ? slots.lead({}) : ``}</div>` : ``} <div class="accordion-summary flex-1">${slots.summary ? slots.summary({}) : `(summary)`}</div> ${$$slots.iconClosed || $$slots.iconOpen ? ` <div class="${"accordion-summary-icons " + escape(classesControlIcons, true)}">${openState ? `${slots.iconClosed ? slots.iconClosed({}) : `<!-- HTML_TAG_START -->${svgCaretIcon}<!-- HTML_TAG_END -->`}` : `${slots.iconOpen ? slots.iconOpen({}) : `<!-- HTML_TAG_START -->${svgCaretIcon}<!-- HTML_TAG_END -->`}`}</div>` : ` <div class="${"accordion-summary-caret " + escape(classesControlCaret, true)}"><!-- HTML_TAG_START -->${svgCaretIcon}<!-- HTML_TAG_END --></div>`}</button> ${openState ? `<div class="${"accordion-panel " + escape(classesPanel, true)}" id="${"accordion-panel-" + escape(id, true)}" role="region"${add_attribute("aria-hidden", !openState, 0)}${add_attribute("aria-labelledby", id, 0)}>${slots.content ? slots.content({}) : `(content)`}</div>` : ``}</div>`;
365
+ });
366
+ const cBase$2 = "p-1";
367
+ const RadioGroup = create_ssr_component(($$result, $$props, $$bindings, slots) => {
368
+ let classesBase;
369
+ let { display = "inline-flex" } = $$props;
370
+ let { flexDirection = "flex-row" } = $$props;
371
+ let { gap = "gap-1" } = $$props;
372
+ let { background = "bg-surface-200-700-token" } = $$props;
373
+ let { border = "border-token border-surface-400-500-token" } = $$props;
374
+ let { rounded = "rounded-token" } = $$props;
375
+ let { padding = "px-4 py-1" } = $$props;
376
+ let { active = "variant-filled" } = $$props;
377
+ let { hover = "hover:variant-soft" } = $$props;
378
+ let { color = "" } = $$props;
379
+ let { fill = "" } = $$props;
380
+ let { regionLabel = "" } = $$props;
381
+ let { labelledby = "" } = $$props;
382
+ setContext("rounded", rounded);
383
+ setContext("padding", padding);
384
+ setContext("active", active);
385
+ setContext("hover", hover);
386
+ setContext("color", color);
387
+ setContext("fill", fill);
388
+ setContext("regionLabel", regionLabel);
389
+ if ($$props.display === void 0 && $$bindings.display && display !== void 0)
390
+ $$bindings.display(display);
391
+ if ($$props.flexDirection === void 0 && $$bindings.flexDirection && flexDirection !== void 0)
392
+ $$bindings.flexDirection(flexDirection);
393
+ if ($$props.gap === void 0 && $$bindings.gap && gap !== void 0)
394
+ $$bindings.gap(gap);
395
+ if ($$props.background === void 0 && $$bindings.background && background !== void 0)
396
+ $$bindings.background(background);
397
+ if ($$props.border === void 0 && $$bindings.border && border !== void 0)
398
+ $$bindings.border(border);
399
+ if ($$props.rounded === void 0 && $$bindings.rounded && rounded !== void 0)
400
+ $$bindings.rounded(rounded);
401
+ if ($$props.padding === void 0 && $$bindings.padding && padding !== void 0)
402
+ $$bindings.padding(padding);
403
+ if ($$props.active === void 0 && $$bindings.active && active !== void 0)
404
+ $$bindings.active(active);
405
+ if ($$props.hover === void 0 && $$bindings.hover && hover !== void 0)
406
+ $$bindings.hover(hover);
407
+ if ($$props.color === void 0 && $$bindings.color && color !== void 0)
408
+ $$bindings.color(color);
409
+ if ($$props.fill === void 0 && $$bindings.fill && fill !== void 0)
410
+ $$bindings.fill(fill);
411
+ if ($$props.regionLabel === void 0 && $$bindings.regionLabel && regionLabel !== void 0)
412
+ $$bindings.regionLabel(regionLabel);
413
+ if ($$props.labelledby === void 0 && $$bindings.labelledby && labelledby !== void 0)
414
+ $$bindings.labelledby(labelledby);
415
+ classesBase = `${cBase$2} ${display} ${flexDirection} ${gap} ${background} ${border} ${rounded} ${$$props.class ?? ""}`;
416
+ return `<div class="${"radio-group " + escape(classesBase, true)}" data-testid="radio-group" role="radiogroup"${add_attribute("aria-labelledby", labelledby, 0)}>${slots.default ? slots.default({}) : ``}</div>`;
417
+ });
418
+ const cBase$1 = "flex-auto";
419
+ const cWrapper$1 = "text-base text-center cursor-pointer";
420
+ const cDisabled = "opacity-50 cursor-not-allowed";
421
+ const RadioItem = create_ssr_component(($$result, $$props, $$bindings, slots) => {
422
+ let checked;
423
+ let classesActive;
424
+ let classesDisabled;
425
+ let classsBase;
426
+ let classesWrapper;
427
+ let $$restProps = compute_rest_props($$props, [
428
+ "group",
429
+ "name",
430
+ "value",
431
+ "title",
432
+ "label",
433
+ "rounded",
434
+ "padding",
435
+ "active",
436
+ "hover",
437
+ "color",
438
+ "fill",
439
+ "regionLabel"
440
+ ]);
441
+ let { group } = $$props;
442
+ let { name } = $$props;
443
+ let { value } = $$props;
444
+ let { title = "" } = $$props;
445
+ let { label = "" } = $$props;
446
+ let { rounded = getContext("rounded") } = $$props;
447
+ let { padding = getContext("padding") } = $$props;
448
+ let { active = getContext("active") } = $$props;
449
+ let { hover = getContext("hover") } = $$props;
450
+ let { color = getContext("color") } = $$props;
451
+ let { fill = getContext("fill") } = $$props;
452
+ let { regionLabel = getContext("regionLabel") } = $$props;
453
+ let elemInput;
454
+ function prunedRestProps() {
455
+ delete $$restProps.class;
456
+ return $$restProps;
457
+ }
458
+ if ($$props.group === void 0 && $$bindings.group && group !== void 0)
459
+ $$bindings.group(group);
460
+ if ($$props.name === void 0 && $$bindings.name && name !== void 0)
461
+ $$bindings.name(name);
462
+ if ($$props.value === void 0 && $$bindings.value && value !== void 0)
463
+ $$bindings.value(value);
464
+ if ($$props.title === void 0 && $$bindings.title && title !== void 0)
465
+ $$bindings.title(title);
466
+ if ($$props.label === void 0 && $$bindings.label && label !== void 0)
467
+ $$bindings.label(label);
468
+ if ($$props.rounded === void 0 && $$bindings.rounded && rounded !== void 0)
469
+ $$bindings.rounded(rounded);
470
+ if ($$props.padding === void 0 && $$bindings.padding && padding !== void 0)
471
+ $$bindings.padding(padding);
472
+ if ($$props.active === void 0 && $$bindings.active && active !== void 0)
473
+ $$bindings.active(active);
474
+ if ($$props.hover === void 0 && $$bindings.hover && hover !== void 0)
475
+ $$bindings.hover(hover);
476
+ if ($$props.color === void 0 && $$bindings.color && color !== void 0)
477
+ $$bindings.color(color);
478
+ if ($$props.fill === void 0 && $$bindings.fill && fill !== void 0)
479
+ $$bindings.fill(fill);
480
+ if ($$props.regionLabel === void 0 && $$bindings.regionLabel && regionLabel !== void 0)
481
+ $$bindings.regionLabel(regionLabel);
482
+ checked = value === group;
483
+ classesActive = checked ? `${active} ${color} ${fill}` : hover;
484
+ classesDisabled = $$props.disabled ? cDisabled : "";
485
+ classsBase = `${cBase$1}`;
486
+ classesWrapper = `${cWrapper$1} ${padding} ${rounded} ${classesActive} ${classesDisabled} ${$$props.class ?? ""}`;
487
+ return `<label class="${"radio-label " + escape(classsBase, true) + " " + escape(regionLabel, true)}"> <div class="${"radio-item " + escape(classesWrapper, true)}" data-testid="radio-item" role="radio"${add_attribute("aria-checked", checked, 0)}${add_attribute("aria-label", label, 0)} tabindex="0"${add_attribute("title", title, 0)}> <div class="h-0 w-0 overflow-hidden"><input${spread(
488
+ [
489
+ { type: "radio" },
490
+ { name: escape_attribute_value(name) },
491
+ { value: escape_attribute_value(value) },
492
+ escape_object(prunedRestProps()),
493
+ { tabindex: "-1" }
494
+ ],
495
+ {}
496
+ )}${add_attribute("this", elemInput, 0)}${value === group ? add_attribute("checked", true, 1) : ""}></div> ${slots.default ? slots.default({}) : ``}</div></label>`;
497
+ });
498
+ const cBase = "inline-block";
499
+ const cLabel = "unstyled flex items-center";
500
+ const cTrack = "flex transition-all duration-[200ms] cursor-pointer";
501
+ const cThumb = "w-[50%] h-full scale-[0.8] transition-all duration-[200ms] shadow";
502
+ const SlideToggle = create_ssr_component(($$result, $$props, $$bindings, slots) => {
503
+ let cTrackActive;
504
+ let cThumbBackground;
505
+ let cThumbPos;
506
+ let classesDisabled;
507
+ let classesBase;
508
+ let classesLabel;
509
+ let classesTrack;
510
+ let classesThumb;
511
+ let $$restProps = compute_rest_props($$props, ["name", "checked", "size", "background", "active", "border", "rounded", "label"]);
512
+ let $$slots = compute_slots(slots);
513
+ createEventDispatcher();
514
+ let { name } = $$props;
515
+ let { checked = false } = $$props;
516
+ let { size = "md" } = $$props;
517
+ let { background = "bg-surface-400 dark:bg-surface-700" } = $$props;
518
+ let { active = "bg-surface-900 dark:bg-surface-300" } = $$props;
519
+ let { border = "" } = $$props;
520
+ let { rounded = "rounded-full" } = $$props;
521
+ let { label = "" } = $$props;
522
+ let trackSize;
523
+ switch (size) {
524
+ case "sm":
525
+ trackSize = "w-12 h-6";
526
+ break;
527
+ case "lg":
528
+ trackSize = "w-20 h-10";
529
+ break;
530
+ default:
531
+ trackSize = "w-16 h-8";
532
+ }
533
+ function prunedRestProps() {
534
+ delete $$restProps.class;
535
+ return $$restProps;
536
+ }
537
+ if ($$props.name === void 0 && $$bindings.name && name !== void 0)
538
+ $$bindings.name(name);
539
+ if ($$props.checked === void 0 && $$bindings.checked && checked !== void 0)
540
+ $$bindings.checked(checked);
541
+ if ($$props.size === void 0 && $$bindings.size && size !== void 0)
542
+ $$bindings.size(size);
543
+ if ($$props.background === void 0 && $$bindings.background && background !== void 0)
544
+ $$bindings.background(background);
545
+ if ($$props.active === void 0 && $$bindings.active && active !== void 0)
546
+ $$bindings.active(active);
547
+ if ($$props.border === void 0 && $$bindings.border && border !== void 0)
548
+ $$bindings.border(border);
549
+ if ($$props.rounded === void 0 && $$bindings.rounded && rounded !== void 0)
550
+ $$bindings.rounded(rounded);
551
+ if ($$props.label === void 0 && $$bindings.label && label !== void 0)
552
+ $$bindings.label(label);
553
+ cTrackActive = checked ? active : `${background} cursor-pointer`;
554
+ cThumbBackground = checked ? "bg-white/75" : "bg-white";
555
+ cThumbPos = checked ? "translate-x-full" : "";
556
+ classesDisabled = $$props.disabled === true ? "opacity-50" : "hover:brightness-[105%] dark:hover:brightness-110 cursor-pointer";
557
+ classesBase = `${cBase} ${rounded} ${classesDisabled} ${$$props.class ?? ""}`;
558
+ classesLabel = `${cLabel}`;
559
+ classesTrack = `${cTrack} ${border} ${rounded} ${trackSize} ${cTrackActive}`;
560
+ classesThumb = `${cThumb} ${rounded} ${cThumbBackground} ${cThumbPos}`;
561
+ return `<div${add_attribute("id", label, 0)} class="${"slide-toggle " + escape(classesBase, true)}" data-testid="slide-toggle" role="switch"${add_attribute("aria-label", label, 0)}${add_attribute("aria-checked", checked, 0)} tabindex="0"><label class="${"slide-toggle-label " + escape(classesLabel, true)}"> <input${spread(
562
+ [
563
+ { type: "checkbox" },
564
+ { class: "slide-toggle-input hidden" },
565
+ { name: escape_attribute_value(name) },
566
+ escape_object(prunedRestProps()),
567
+ { disabled: $$props.disabled || null }
568
+ ],
569
+ {}
570
+ )}${add_attribute("checked", checked, 1)}> <div class="${[
571
+ "slide-toggle-track " + escape(classesTrack, true),
572
+ $$props.disabled ? "cursor-not-allowed" : ""
573
+ ].join(" ").trim()}"><div class="${[
574
+ "slide-toggle-thumb " + escape(classesThumb, true),
575
+ $$props.disabled ? "cursor-not-allowed" : ""
576
+ ].join(" ").trim()}"></div></div> ${$$slots.default ? `<div class="slide-toggle-text ml-3">${slots.default ? slots.default({}) : ``}</div>` : ``}</label></div>`;
577
+ });
578
+ const cWrapper = "flex fixed top-0 left-0 right-0 bottom-0 pointer-events-none";
579
+ const cSnackbar = "flex flex-col gap-y-2";
580
+ const cToast = "flex justify-between items-center pointer-events-auto";
581
+ const cToastActions = "flex items-center space-x-2";
582
+ const Toast = create_ssr_component(($$result, $$props, $$bindings, slots) => {
583
+ let classesWrapper;
584
+ let classesSnackbar;
585
+ let classesToast;
586
+ let filteredToasts;
587
+ let $toastStore, $$unsubscribe_toastStore;
588
+ let $prefersReducedMotionStore, $$unsubscribe_prefersReducedMotionStore;
589
+ $$unsubscribe_prefersReducedMotionStore = subscribe(prefersReducedMotionStore, (value) => $prefersReducedMotionStore = value);
590
+ const toastStore = getToastStore();
591
+ $$unsubscribe_toastStore = subscribe(toastStore, (value) => $toastStore = value);
592
+ let { position = "b" } = $$props;
593
+ let { max = 3 } = $$props;
594
+ let { background = "variant-filled-secondary" } = $$props;
595
+ let { width = "max-w-[640px]" } = $$props;
596
+ let { color = "" } = $$props;
597
+ let { padding = "p-4" } = $$props;
598
+ let { spacing = "space-x-4" } = $$props;
599
+ let { rounded = "rounded-container-token" } = $$props;
600
+ let { shadow = "shadow-lg" } = $$props;
601
+ let { zIndex = "z-[888]" } = $$props;
602
+ let { buttonAction = "btn variant-filled" } = $$props;
603
+ let { buttonDismiss = "btn-icon btn-icon-sm variant-filled" } = $$props;
604
+ let { buttonDismissLabel = "✕" } = $$props;
605
+ let { transitions = !$prefersReducedMotionStore } = $$props;
606
+ let { transitionIn = fly } = $$props;
607
+ let { transitionInParams = { duration: 250 } } = $$props;
608
+ let { transitionOut = fly } = $$props;
609
+ let { transitionOutParams = { duration: 250 } } = $$props;
610
+ let cPosition;
611
+ let cAlign;
612
+ switch (position) {
613
+ case "t":
614
+ cPosition = "justify-center items-start";
615
+ cAlign = "items-center";
616
+ break;
617
+ case "b":
618
+ cPosition = "justify-center items-end";
619
+ cAlign = "items-center";
620
+ break;
621
+ case "l":
622
+ cPosition = "justify-start items-center";
623
+ cAlign = "items-start";
624
+ break;
625
+ case "r":
626
+ cPosition = "justify-end items-center";
627
+ cAlign = "items-end";
628
+ break;
629
+ case "tl":
630
+ cPosition = "justify-start items-start";
631
+ cAlign = "items-start";
632
+ break;
633
+ case "tr":
634
+ cPosition = "justify-end items-start";
635
+ cAlign = "items-end";
636
+ break;
637
+ case "bl":
638
+ cPosition = "justify-start items-end";
639
+ cAlign = "items-start";
640
+ break;
641
+ case "br":
642
+ cPosition = "justify-end items-end";
643
+ cAlign = "items-end";
644
+ break;
645
+ }
646
+ if ($$props.position === void 0 && $$bindings.position && position !== void 0)
647
+ $$bindings.position(position);
648
+ if ($$props.max === void 0 && $$bindings.max && max !== void 0)
649
+ $$bindings.max(max);
650
+ if ($$props.background === void 0 && $$bindings.background && background !== void 0)
651
+ $$bindings.background(background);
652
+ if ($$props.width === void 0 && $$bindings.width && width !== void 0)
653
+ $$bindings.width(width);
654
+ if ($$props.color === void 0 && $$bindings.color && color !== void 0)
655
+ $$bindings.color(color);
656
+ if ($$props.padding === void 0 && $$bindings.padding && padding !== void 0)
657
+ $$bindings.padding(padding);
658
+ if ($$props.spacing === void 0 && $$bindings.spacing && spacing !== void 0)
659
+ $$bindings.spacing(spacing);
660
+ if ($$props.rounded === void 0 && $$bindings.rounded && rounded !== void 0)
661
+ $$bindings.rounded(rounded);
662
+ if ($$props.shadow === void 0 && $$bindings.shadow && shadow !== void 0)
663
+ $$bindings.shadow(shadow);
664
+ if ($$props.zIndex === void 0 && $$bindings.zIndex && zIndex !== void 0)
665
+ $$bindings.zIndex(zIndex);
666
+ if ($$props.buttonAction === void 0 && $$bindings.buttonAction && buttonAction !== void 0)
667
+ $$bindings.buttonAction(buttonAction);
668
+ if ($$props.buttonDismiss === void 0 && $$bindings.buttonDismiss && buttonDismiss !== void 0)
669
+ $$bindings.buttonDismiss(buttonDismiss);
670
+ if ($$props.buttonDismissLabel === void 0 && $$bindings.buttonDismissLabel && buttonDismissLabel !== void 0)
671
+ $$bindings.buttonDismissLabel(buttonDismissLabel);
672
+ if ($$props.transitions === void 0 && $$bindings.transitions && transitions !== void 0)
673
+ $$bindings.transitions(transitions);
674
+ if ($$props.transitionIn === void 0 && $$bindings.transitionIn && transitionIn !== void 0)
675
+ $$bindings.transitionIn(transitionIn);
676
+ if ($$props.transitionInParams === void 0 && $$bindings.transitionInParams && transitionInParams !== void 0)
677
+ $$bindings.transitionInParams(transitionInParams);
678
+ if ($$props.transitionOut === void 0 && $$bindings.transitionOut && transitionOut !== void 0)
679
+ $$bindings.transitionOut(transitionOut);
680
+ if ($$props.transitionOutParams === void 0 && $$bindings.transitionOutParams && transitionOutParams !== void 0)
681
+ $$bindings.transitionOutParams(transitionOutParams);
682
+ classesWrapper = `${cWrapper} ${cPosition} ${zIndex} ${$$props.class || ""}`;
683
+ classesSnackbar = `${cSnackbar} ${cAlign} ${padding}`;
684
+ classesToast = `${cToast} ${width} ${color} ${padding} ${spacing} ${rounded} ${shadow}`;
685
+ filteredToasts = Array.from($toastStore).slice(0, max);
686
+ $$unsubscribe_toastStore();
687
+ $$unsubscribe_prefersReducedMotionStore();
688
+ return `${$toastStore.length ? ` <div class="${"snackbar-wrapper " + escape(classesWrapper, true)}" data-testid="snackbar-wrapper"> <div class="${"snackbar " + escape(classesSnackbar, true)}">${each(filteredToasts, (t, i) => {
689
+ return `<div${add_attribute("role", t.hideDismiss ? "alert" : "alertdialog", 0)} aria-live="polite"> <div class="${"toast " + escape(classesToast, true) + " " + escape(t.background ?? background, true) + " " + escape(t.classes ?? "", true)}" data-testid="toast"><div class="text-base"><!-- HTML_TAG_START -->${t.message}<!-- HTML_TAG_END --></div> ${t.action || !t.hideDismiss ? `<div class="${"toast-actions " + escape(cToastActions, true)}">${t.action ? `<button${add_attribute("class", buttonAction, 0)}><!-- HTML_TAG_START -->${t.action.label}<!-- HTML_TAG_END --></button>` : ``} ${!t.hideDismiss ? `<button${add_attribute("class", buttonDismiss, 0)} aria-label="Dismiss toast">${escape(buttonDismissLabel)}</button>` : ``} </div>` : ``}</div> </div>`;
690
+ })}</div></div>` : ``}`;
691
+ });
692
+ const gatheringKey = {};
693
+ const GatheringRound = create_ssr_component(($$result, $$props, $$bindings, slots) => {
694
+ setContext(gatheringKey, true);
695
+ return `${slots.default ? slots.default({}) : ``}`;
696
+ });
697
+ const getDimensionName = (horizontal) => horizontal ? "height" : "width";
698
+ const css$8 = {
699
+ code: 'div.splitpanes--horizontal.splitpanes--dragging{cursor:row-resize}div.splitpanes--vertical.splitpanes--dragging{cursor:col-resize}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;-moz-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width 0.2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height 0.2s ease-out}.splitpanes--vertical>.splitpanes__pane{transition:width 0.2s ease-out}.splitpanes--horizontal>.splitpanes__pane{transition:height 0.2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none;pointer-events:none}.splitpanes--freeze .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:rgba(0, 0, 0, 0.15);transition:background-color 0.3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:rgba(0, 0, 0, 0.25)}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;cursor:col-resize}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;cursor:row-resize}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translateX(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}',
700
+ map: null
701
+ };
702
+ const KEY = {};
703
+ const Splitpanes = create_ssr_component(($$result, $$props, $$bindings, slots) => {
704
+ let $veryFirstPaneKey, $$unsubscribe_veryFirstPaneKey;
705
+ let $showFirstSplitter, $$unsubscribe_showFirstSplitter;
706
+ let $isHorizontal, $$unsubscribe_isHorizontal;
707
+ let { id = void 0 } = $$props;
708
+ let { horizontal = false } = $$props;
709
+ let { pushOtherPanes = true } = $$props;
710
+ let { dblClickSplitter = true } = $$props;
711
+ let { rtl = "auto" } = $$props;
712
+ let { firstSplitter = false } = $$props;
713
+ let { style = null } = $$props;
714
+ let { theme = "default-theme" } = $$props;
715
+ let { class: clazz = "" } = $$props;
716
+ createEventDispatcher();
717
+ let container;
718
+ new Array();
719
+ let isHorizontal = writable(horizontal);
720
+ $$unsubscribe_isHorizontal = subscribe(isHorizontal, (value) => $isHorizontal = value);
721
+ const showFirstSplitter = writable(firstSplitter);
722
+ $$unsubscribe_showFirstSplitter = subscribe(showFirstSplitter, (value) => $showFirstSplitter = value);
723
+ const veryFirstPaneKey = writable(void 0);
724
+ $$unsubscribe_veryFirstPaneKey = subscribe(veryFirstPaneKey, (value) => $veryFirstPaneKey = value);
725
+ let ssrPaneDefinedSizeSum = 0;
726
+ let ssrPaneUndefinedSizeCount = 0;
727
+ function ssrRegisterPaneSize(size) {
728
+ if (size == null) {
729
+ ++ssrPaneUndefinedSizeCount;
730
+ } else {
731
+ ssrPaneDefinedSizeSum += size;
732
+ }
733
+ }
734
+ const onPaneInit = (key) => {
735
+ if ($veryFirstPaneKey === void 0) {
736
+ set_store_value(veryFirstPaneKey, $veryFirstPaneKey = key, $veryFirstPaneKey);
737
+ }
738
+ return {
739
+ undefinedPaneInitSize: (100 - ssrPaneDefinedSizeSum) / ssrPaneUndefinedSizeCount
740
+ };
741
+ };
742
+ setContext(KEY, {
743
+ showFirstSplitter,
744
+ veryFirstPaneKey,
745
+ isHorizontal,
746
+ ssrRegisterPaneSize: ssrRegisterPaneSize,
747
+ onPaneInit,
748
+ clientOnly: void 0
749
+ });
750
+ if ($$props.id === void 0 && $$bindings.id && id !== void 0)
751
+ $$bindings.id(id);
752
+ if ($$props.horizontal === void 0 && $$bindings.horizontal && horizontal !== void 0)
753
+ $$bindings.horizontal(horizontal);
754
+ if ($$props.pushOtherPanes === void 0 && $$bindings.pushOtherPanes && pushOtherPanes !== void 0)
755
+ $$bindings.pushOtherPanes(pushOtherPanes);
756
+ if ($$props.dblClickSplitter === void 0 && $$bindings.dblClickSplitter && dblClickSplitter !== void 0)
757
+ $$bindings.dblClickSplitter(dblClickSplitter);
758
+ if ($$props.rtl === void 0 && $$bindings.rtl && rtl !== void 0)
759
+ $$bindings.rtl(rtl);
760
+ if ($$props.firstSplitter === void 0 && $$bindings.firstSplitter && firstSplitter !== void 0)
761
+ $$bindings.firstSplitter(firstSplitter);
762
+ if ($$props.style === void 0 && $$bindings.style && style !== void 0)
763
+ $$bindings.style(style);
764
+ if ($$props.theme === void 0 && $$bindings.theme && theme !== void 0)
765
+ $$bindings.theme(theme);
766
+ if ($$props.class === void 0 && $$bindings.class && clazz !== void 0)
767
+ $$bindings.class(clazz);
768
+ $$result.css.add(css$8);
769
+ set_store_value(isHorizontal, $isHorizontal = horizontal, $isHorizontal);
770
+ set_store_value(showFirstSplitter, $showFirstSplitter = firstSplitter, $showFirstSplitter);
771
+ $$unsubscribe_veryFirstPaneKey();
772
+ $$unsubscribe_showFirstSplitter();
773
+ $$unsubscribe_isHorizontal();
774
+ return `<div${add_attribute("id", id, 0)} class="${[
775
+ escape(`splitpanes ${theme || ""} ${clazz || ""}`, true),
776
+ (horizontal ? "splitpanes--horizontal" : "") + " " + (!horizontal ? "splitpanes--vertical" : "") + " " + ("") + " splitpanes--freeze"
777
+ ].join(" ").trim()}"${add_attribute("style", style, 0)}${add_attribute("this", container, 0)}>${`${validate_component(GatheringRound, "GatheringRound").$$render($$result, {}, {}, {
778
+ default: () => {
779
+ return `${slots.default ? slots.default({}) : ``}`;
780
+ }
781
+ })}` } ${slots.default ? slots.default({}) : ``} </div>`;
782
+ });
783
+ const Pane = create_ssr_component(($$result, $$props, $$bindings, slots) => {
784
+ let dimension;
785
+ let style;
786
+ let $isHorizontal, $$unsubscribe_isHorizontal;
787
+ let $veryFirstPaneKey, $$unsubscribe_veryFirstPaneKey;
788
+ let $showFirstSplitter, $$unsubscribe_showFirstSplitter;
789
+ const { ssrRegisterPaneSize, onPaneInit, clientOnly: clientOnlyContext, isHorizontal, showFirstSplitter, veryFirstPaneKey } = getContext(KEY);
790
+ $$unsubscribe_isHorizontal = subscribe(isHorizontal, (value) => $isHorizontal = value);
791
+ $$unsubscribe_showFirstSplitter = subscribe(showFirstSplitter, (value) => $showFirstSplitter = value);
792
+ $$unsubscribe_veryFirstPaneKey = subscribe(veryFirstPaneKey, (value) => $veryFirstPaneKey = value);
793
+ let { size = null } = $$props;
794
+ let { minSize = 0 } = $$props;
795
+ let { maxSize = 100 } = $$props;
796
+ let { snapSize = 0 } = $$props;
797
+ let { class: clazz = "" } = $$props;
798
+ const key = {};
799
+ const gathering = hasContext(gatheringKey);
800
+ const { undefinedPaneInitSize } = !gathering ? onPaneInit(key) : {};
801
+ let element;
802
+ let sz = size ?? undefinedPaneInitSize;
803
+ if (gathering) {
804
+ ssrRegisterPaneSize(size);
805
+ }
806
+ if ($$props.size === void 0 && $$bindings.size && size !== void 0)
807
+ $$bindings.size(size);
808
+ if ($$props.minSize === void 0 && $$bindings.minSize && minSize !== void 0)
809
+ $$bindings.minSize(minSize);
810
+ if ($$props.maxSize === void 0 && $$bindings.maxSize && maxSize !== void 0)
811
+ $$bindings.maxSize(maxSize);
812
+ if ($$props.snapSize === void 0 && $$bindings.snapSize && snapSize !== void 0)
813
+ $$bindings.snapSize(snapSize);
814
+ if ($$props.class === void 0 && $$bindings.class && clazz !== void 0)
815
+ $$bindings.class(clazz);
816
+ dimension = getDimensionName($isHorizontal);
817
+ style = `${dimension}: ${sz}%;`;
818
+ $$unsubscribe_isHorizontal();
819
+ $$unsubscribe_veryFirstPaneKey();
820
+ $$unsubscribe_showFirstSplitter();
821
+ return `${!gathering ? ` ${$veryFirstPaneKey !== key || $showFirstSplitter ? ` <div class="${"splitpanes__splitter " + escape("", true)}"></div>` : ``} <div${add_attribute("class", `splitpanes__pane ${clazz || ""}`, 0)}${add_attribute("style", style, 0)}${add_attribute("this", element, 0)}>${slots.default ? slots.default({}) : ``}</div>` : ``}`;
822
+ });
823
+ const LoadingSpinner = create_ssr_component(($$result, $$props, $$bindings, slots) => {
824
+ let { size = 20 } = $$props;
825
+ if ($$props.size === void 0 && $$bindings.size && size !== void 0)
826
+ $$bindings.size(size);
827
+ return `<svg version="1.1" id="L4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0" xml:space="preserve"><circle fill="#1976d2" stroke="none" cx="6" cy="50" r="6"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1"></animate></circle><circle fill="#1976d2" stroke="none" cx="26" cy="50" r="6"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.2"></animate></circle><circle fill="#1976d2" stroke="none" cx="46" cy="50" r="6"><animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3"></animate></circle></svg>`;
828
+ });
829
+ const css$7 = {
830
+ code: ".llm-health-status.svelte-a20mi8{color:slategray;font-size:12px;display:inline-flex;align-items:center;min-width:200px\r\n }.dot.svelte-a20mi8{width:20px;height:20px}",
831
+ map: null
832
+ };
833
+ const LlmHealthStatus = create_ssr_component(($$result, $$props, $$bindings, slots) => {
834
+ let { status = "unknown" } = $$props;
835
+ let color = "";
836
+ let shadowColor = "";
837
+ let text = "";
838
+ switch (status) {
839
+ case "ok":
840
+ color = "#4CAF50";
841
+ shadowColor = "rgba(0, 128, 0, 0.7)";
842
+ text = "Сервис LLM работает";
843
+ break;
844
+ case "error":
845
+ text = "Сервис LLM не работает";
846
+ break;
847
+ case "loading model":
848
+ color = "yellow";
849
+ shadowColor = "rgba(255, 255, 0, 0.7)";
850
+ text = "Сервис LLM запускается...";
851
+ break;
852
+ case "unavailable":
853
+ color = "#af4f4c";
854
+ shadowColor = "#af4f4c";
855
+ text = "Серв��с LLM не запущен";
856
+ break;
857
+ case "unknown":
858
+ color = "#af4f4c";
859
+ shadowColor = "#af4f4c";
860
+ text = "Сервис LLM недоступен";
861
+ break;
862
+ }
863
+ if ($$props.status === void 0 && $$bindings.status && status !== void 0)
864
+ $$bindings.status(status);
865
+ $$result.css.add(css$7);
866
+ return `<div class="llm-health-status svelte-a20mi8"><svg class="dot svelte-a20mi8" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="5"${add_attribute("fill", color, 0)} style="${"filter: drop-shadow(0 0 1px " + escape(shadowColor, true) + ")"}"></circle></svg> ${escape(text)} </div>`;
867
+ });
868
+ const css$6 = {
869
+ code: ".llm-health-status.svelte-1wcf73j{color:slategray;font-size:12px;display:inline-flex;align-items:center}.dot.svelte-1wcf73j{width:20px;height:20px}",
870
+ map: null
871
+ };
872
+ const SearchApiHealthStatus = create_ssr_component(($$result, $$props, $$bindings, slots) => {
873
+ let { status = "unavailable" } = $$props;
874
+ let color = "";
875
+ let shadowColor = "";
876
+ let text = "";
877
+ switch (status) {
878
+ case "ok":
879
+ color = "#4CAF50";
880
+ shadowColor = "rgba(0, 128, 0, 0.7)";
881
+ text = "Поиск работает";
882
+ break;
883
+ case "unavailable":
884
+ color = "#af4f4c";
885
+ shadowColor = "#af4f4c";
886
+ text = "Поиск не запущен";
887
+ break;
888
+ case "unknown":
889
+ color = "#af4f4c";
890
+ shadowColor = "#af4f4c";
891
+ text = "Поиск недоступен";
892
+ break;
893
+ }
894
+ if ($$props.status === void 0 && $$bindings.status && status !== void 0)
895
+ $$bindings.status(status);
896
+ $$result.css.add(css$6);
897
+ return `<div class="llm-health-status svelte-1wcf73j"><svg class="dot svelte-1wcf73j" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="5"${add_attribute("fill", color, 0)} style="${"filter: drop-shadow(0 0 1px " + escape(shadowColor, true) + ")"}"></circle></svg> ${escape(text)} </div>`;
898
+ });
899
+ class SearchResultsSorter {
900
+ static findDateInText(text) {
901
+ const dateStringRegex = /\b\d{1,2}\.\d{1,2}\.\d{4}\b/g;
902
+ const matches = text.match(dateStringRegex);
903
+ if (matches && matches.length > 0) {
904
+ const dateString = matches[0];
905
+ const [day, month, year] = dateString.split(".").map(Number);
906
+ return new Date(year, month - 1, day);
907
+ }
908
+ return null;
909
+ }
910
+ static sortByRelevanceAndDate(data) {
911
+ return data.sort((a, b) => {
912
+ const relevanceComparison = b.relevance - a.relevance;
913
+ if (relevanceComparison !== 0) {
914
+ return relevanceComparison;
915
+ }
916
+ const dateA = SearchResultsSorter.findDateInText(a.title);
917
+ const dateB = SearchResultsSorter.findDateInText(b.title);
918
+ if (dateA && dateB) {
919
+ return dateB.getTime() - dateA.getTime();
920
+ } else if (dateA) {
921
+ return -1;
922
+ } else if (dateB) {
923
+ return 1;
924
+ } else {
925
+ return 0;
926
+ }
927
+ });
928
+ }
929
+ static sortByDate(dataArray) {
930
+ const entriesWithDates = dataArray.filter((item) => SearchResultsSorter.findDateInText(item.title));
931
+ const entriesWithoutDates = dataArray.filter((item) => !SearchResultsSorter.findDateInText(item.title));
932
+ const sortedEntriesWithDates = entriesWithDates.sort((a, b) => {
933
+ const dateA = SearchResultsSorter.findDateInText(a.title);
934
+ const dateB = SearchResultsSorter.findDateInText(b.title);
935
+ if (dateA && dateB) {
936
+ return dateB.getTime() - dateA.getTime();
937
+ } else if (dateA) {
938
+ return -1;
939
+ } else if (dateB) {
940
+ return 1;
941
+ } else {
942
+ return 0;
943
+ }
944
+ });
945
+ const resultArray = [];
946
+ let indexWithoutDates = 0;
947
+ for (const entry of dataArray) {
948
+ if (SearchResultsSorter.findDateInText(entry.title)) {
949
+ let val = sortedEntriesWithDates.shift();
950
+ if (val)
951
+ resultArray.push(val);
952
+ } else {
953
+ resultArray.push(entriesWithoutDates[indexWithoutDates]);
954
+ indexWithoutDates++;
955
+ }
956
+ }
957
+ return resultArray;
958
+ }
959
+ static sortByRelevance(data) {
960
+ return data.sort((a, b) => {
961
+ if (a.relevance && b.relevance) {
962
+ return b.relevance - a.relevance;
963
+ } else if (a.relevance) {
964
+ return -1;
965
+ } else if (b.relevance) {
966
+ return 1;
967
+ } else {
968
+ return 0;
969
+ }
970
+ });
971
+ }
972
+ static identifyDocumentType(data) {
973
+ const regexps = [
974
+ { regexp: /(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)|(\(Судебный документ\))/, docType: "Решение суда" },
975
+ { regexp: /[Пп]исьмо [Мм]инфина/, docType: "Письмо Минфина" },
976
+ { regexp: /[Пп]исьмо (ФНС|фнс)/, docType: "Письмо ФНС" },
977
+ { regexp: /(НКРФ)|(НК РФ)/, docType: "Налоговый кодекс" },
978
+ { regexp: /(ГКРФ)|(ГК РФ)/, docType: "Гражданский кодекс" },
979
+ { regexp: /(ТКРФ)|(ТК РФ)/, docType: "Трудовой кодекс" },
980
+ { regexp: /Приказ ФНС РФ/, docType: "Приказ ФНС РФ" },
981
+ { regexp: /Постановление Правительства РФ/, docType: "Постановление Правительства РФ" },
982
+ { regexp: /Решение Коллегии Евразийской экономической комиссии/, docType: "Решение Коллегии ЕЭК" },
983
+ { regexp: /Федеральный закон/, docType: "Федеральные законы" },
984
+ { regexp: /\(Внутренний документ\)/, docType: "Внутренние документы" }
985
+ ];
986
+ return data.map((result) => {
987
+ for (const { regexp, docType } of regexps) {
988
+ if (regexp.test(result.title)) {
989
+ result.docType = docType;
990
+ return result;
991
+ }
992
+ }
993
+ result.docType = "Другие документы";
994
+ return result;
995
+ });
996
+ }
997
+ static mergeResultsByTitle(data) {
998
+ const regex = /(ст\.\d+)\s(НКРФ|НК РФ|ГКРФ|ГК РФ|ТКРФ|ТК РФ)$/;
999
+ const grouped = {};
1000
+ const mergedResults = [];
1001
+ const extractArticleAndCode = (title) => {
1002
+ const match = title.match(regex);
1003
+ return match ? match[0] : null;
1004
+ };
1005
+ data.forEach((item) => {
1006
+ const key = extractArticleAndCode(item.title);
1007
+ if (key) {
1008
+ if (grouped[key]) {
1009
+ grouped[key].relevance = Math.max(
1010
+ grouped[key].relevance,
1011
+ item.relevance
1012
+ );
1013
+ const existingTitle = grouped[key].title.match(/п[\w\.]+/g) || [];
1014
+ const newTitle = item.title.match(/п[\w\.]+/g) || [];
1015
+ const combinedTitle = [.../* @__PURE__ */ new Set([...existingTitle, ...newTitle])].join(", ");
1016
+ grouped[key].title = `${combinedTitle} ст.${key.split(" ")[0].split(".")[1]} ${key.split(" ")[1]}`;
1017
+ grouped[key].text += `
1018
+ ${item.title}
1019
+ ${item.text}`;
1020
+ if (item.text_for_llm) {
1021
+ grouped[key].text_for_llm += `
1022
+ ${item.title}
1023
+ ${item.text_for_llm}`;
1024
+ }
1025
+ } else {
1026
+ grouped[key] = { ...item };
1027
+ }
1028
+ } else {
1029
+ mergedResults.push(item);
1030
+ }
1031
+ });
1032
+ Object.keys(grouped).forEach((key) => {
1033
+ mergedResults.push(grouped[key]);
1034
+ });
1035
+ return mergedResults;
1036
+ }
1037
+ }
1038
+ const css$5 = {
1039
+ code: ".search-result.svelte-1srbk6k{margin-bottom:20px}.title.svelte-1srbk6k{font-weight:bold}.annotation.svelte-1srbk6k{overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}a.svelte-1srbk6k{cursor:pointer}.full-text.svelte-1srbk6k{display:block;white-space:normal}.title.svelte-1srbk6k{color:#1a0dab}",
1040
+ map: null
1041
+ };
1042
+ const SearchResultsItem = create_ssr_component(($$result, $$props, $$bindings, slots) => {
1043
+ let { showFullText = Array(10).fill(false) } = $$props;
1044
+ let { useSearchResult } = $$props;
1045
+ let { index } = $$props;
1046
+ let { title } = $$props;
1047
+ let { teaser } = $$props;
1048
+ let { text } = $$props;
1049
+ let { enableDocumentDb = false } = $$props;
1050
+ let { documentDbUrl = "" } = $$props;
1051
+ let { enableSearchResultSelection = false } = $$props;
1052
+ if ($$props.showFullText === void 0 && $$bindings.showFullText && showFullText !== void 0)
1053
+ $$bindings.showFullText(showFullText);
1054
+ if ($$props.useSearchResult === void 0 && $$bindings.useSearchResult && useSearchResult !== void 0)
1055
+ $$bindings.useSearchResult(useSearchResult);
1056
+ if ($$props.index === void 0 && $$bindings.index && index !== void 0)
1057
+ $$bindings.index(index);
1058
+ if ($$props.title === void 0 && $$bindings.title && title !== void 0)
1059
+ $$bindings.title(title);
1060
+ if ($$props.teaser === void 0 && $$bindings.teaser && teaser !== void 0)
1061
+ $$bindings.teaser(teaser);
1062
+ if ($$props.text === void 0 && $$bindings.text && text !== void 0)
1063
+ $$bindings.text(text);
1064
+ if ($$props.enableDocumentDb === void 0 && $$bindings.enableDocumentDb && enableDocumentDb !== void 0)
1065
+ $$bindings.enableDocumentDb(enableDocumentDb);
1066
+ if ($$props.documentDbUrl === void 0 && $$bindings.documentDbUrl && documentDbUrl !== void 0)
1067
+ $$bindings.documentDbUrl(documentDbUrl);
1068
+ if ($$props.enableSearchResultSelection === void 0 && $$bindings.enableSearchResultSelection && enableSearchResultSelection !== void 0)
1069
+ $$bindings.enableSearchResultSelection(enableSearchResultSelection);
1070
+ $$result.css.add(css$5);
1071
+ return `<div class="search-result svelte-1srbk6k"><div class="title svelte-1srbk6k"><label style="cursor:pointer">${enableSearchResultSelection ? `<input type="checkbox"${add_attribute("checked", useSearchResult[title], 1)}>` : ``} ${escape(title)}</label></div> ${showFullText[index] ? `<div class="annotation full-text svelte-1srbk6k">${each(text.split("\n"), (line) => {
1072
+ return `<p>${escape(line)}</p>`;
1073
+ })}</div>` : `<div class="annotation svelte-1srbk6k">${escape(teaser)}</div>`} ${enableDocumentDb && documentDbUrl ? `<a href="${escape(documentDbUrl, true) + "s/" + escape(encodeURIComponent(title), true)}" target="_blank" style="font-weight: 500" class="svelte-1srbk6k">Открыть документ</a>` : ``} ${text.length > 100 ? `${showFullText[index] ? `<a class="svelte-1srbk6k" data-svelte-h="svelte-18vtpy5">свернуть</a>` : `<a class="svelte-1srbk6k" data-svelte-h="svelte-lqw9hz">развернуть</a>`}` : ``} </div>`;
1074
+ });
1075
+ const css$4 = {
1076
+ code: ".search-results.svelte-1ptibtq.svelte-1ptibtq{flex:1;overflow-y:auto;padding:1rem}.settings-bar.svelte-1ptibtq.svelte-1ptibtq{margin-bottom:10px}.settings-bar.svelte-1ptibtq label.svelte-1ptibtq{margin-right:10px}",
1077
+ map: null
1078
+ };
1079
+ const SearchResults = create_ssr_component(($$result, $$props, $$bindings, slots) => {
1080
+ let { enableDocumentDb = false } = $$props;
1081
+ let { documentDbUrl = "" } = $$props;
1082
+ let { showFullText = Array(10).fill(false) } = $$props;
1083
+ let { useSearchResult } = $$props;
1084
+ let groupByChecked = false;
1085
+ let sortSearchResultsBy = "rel";
1086
+ let { searchResults = [] } = $$props;
1087
+ let groupedSearchResults;
1088
+ let { enableSearchResultSelection = false } = $$props;
1089
+ const groupByType = (searchResults2) => {
1090
+ return searchResults2.reduce(
1091
+ (result, item) => {
1092
+ const docType = item.docType || "Другие документы";
1093
+ if (!result[docType]) {
1094
+ result[docType] = [];
1095
+ }
1096
+ result[docType].push(item);
1097
+ return result;
1098
+ },
1099
+ {}
1100
+ );
1101
+ };
1102
+ if ($$props.enableDocumentDb === void 0 && $$bindings.enableDocumentDb && enableDocumentDb !== void 0)
1103
+ $$bindings.enableDocumentDb(enableDocumentDb);
1104
+ if ($$props.documentDbUrl === void 0 && $$bindings.documentDbUrl && documentDbUrl !== void 0)
1105
+ $$bindings.documentDbUrl(documentDbUrl);
1106
+ if ($$props.showFullText === void 0 && $$bindings.showFullText && showFullText !== void 0)
1107
+ $$bindings.showFullText(showFullText);
1108
+ if ($$props.useSearchResult === void 0 && $$bindings.useSearchResult && useSearchResult !== void 0)
1109
+ $$bindings.useSearchResult(useSearchResult);
1110
+ if ($$props.searchResults === void 0 && $$bindings.searchResults && searchResults !== void 0)
1111
+ $$bindings.searchResults(searchResults);
1112
+ if ($$props.enableSearchResultSelection === void 0 && $$bindings.enableSearchResultSelection && enableSearchResultSelection !== void 0)
1113
+ $$bindings.enableSearchResultSelection(enableSearchResultSelection);
1114
+ $$result.css.add(css$4);
1115
+ let $$settled;
1116
+ let $$rendered;
1117
+ let previous_head = $$result.head;
1118
+ do {
1119
+ $$settled = true;
1120
+ $$result.head = previous_head;
1121
+ {
1122
+ {
1123
+ if (groupByChecked) {
1124
+ groupedSearchResults = groupByType(searchResults);
1125
+ }
1126
+ if (sortSearchResultsBy == "date") {
1127
+ searchResults = SearchResultsSorter.sortByDate(searchResults);
1128
+ } else if (sortSearchResultsBy == "rel") {
1129
+ searchResults = SearchResultsSorter.sortByRelevance(searchResults);
1130
+ }
1131
+ }
1132
+ }
1133
+ {
1134
+ if (useSearchResult === void 0) {
1135
+ useSearchResult = {};
1136
+ }
1137
+ }
1138
+ $$rendered = `<div class="search-results svelte-1ptibtq">${searchResults && searchResults.length > 0 ? `<div class="settings-bar svelte-1ptibtq"><div class="card w-full flex p-2 space-y-2" style="align-items: center; flex-wrap: wrap;"><label style="display: inline-block;flex-wrap: wrap;" class="svelte-1ptibtq" data-svelte-h="svelte-12wnwfn">Сортировать по:</label> ${validate_component(RadioGroup, "RadioGroup").$$render($$result, { background: "", border: "" }, {}, {
1139
+ default: () => {
1140
+ return `${validate_component(RadioItem, "RadioItem").$$render(
1141
+ $$result,
1142
+ {
1143
+ name: "sortBy",
1144
+ value: "rel",
1145
+ group: sortSearchResultsBy
1146
+ },
1147
+ {
1148
+ group: ($$value) => {
1149
+ sortSearchResultsBy = $$value;
1150
+ $$settled = false;
1151
+ }
1152
+ },
1153
+ {
1154
+ default: () => {
1155
+ return `релевантности`;
1156
+ }
1157
+ }
1158
+ )} ${validate_component(RadioItem, "RadioItem").$$render(
1159
+ $$result,
1160
+ {
1161
+ name: "sortBy",
1162
+ value: "date",
1163
+ group: sortSearchResultsBy
1164
+ },
1165
+ {
1166
+ group: ($$value) => {
1167
+ sortSearchResultsBy = $$value;
1168
+ $$settled = false;
1169
+ }
1170
+ },
1171
+ {
1172
+ default: () => {
1173
+ return `дате`;
1174
+ }
1175
+ }
1176
+ )}`;
1177
+ }
1178
+ })} ${validate_component(SlideToggle, "SlideToggle").$$render(
1179
+ $$result,
1180
+ {
1181
+ name: "groupByChecked",
1182
+ size: "sm",
1183
+ label: "Группировать по типу",
1184
+ checked: groupByChecked
1185
+ },
1186
+ {
1187
+ checked: ($$value) => {
1188
+ groupByChecked = $$value;
1189
+ $$settled = false;
1190
+ }
1191
+ },
1192
+ {
1193
+ default: () => {
1194
+ return `Группировать по типу`;
1195
+ }
1196
+ }
1197
+ )}</div></div>` : ``} ${groupByChecked && groupedSearchResults ? `${validate_component(Accordion, "Accordion").$$render($$result, {}, {}, {
1198
+ default: () => {
1199
+ return `${each(Object.entries(groupedSearchResults), ([docType, results]) => {
1200
+ return `${validate_component(AccordionItem, "AccordionItem").$$render($$result, {}, {}, {
1201
+ content: () => {
1202
+ return `${each(results, ({ title, text, teaser, text_for_llm }, index) => {
1203
+ return `${validate_component(SearchResultsItem, "SearchResultsItem").$$render(
1204
+ $$result,
1205
+ {
1206
+ title,
1207
+ text: text_for_llm || text,
1208
+ teaser,
1209
+ index,
1210
+ enableSearchResultSelection,
1211
+ useSearchResult,
1212
+ showFullText
1213
+ },
1214
+ {},
1215
+ {}
1216
+ )}`;
1217
+ })} `;
1218
+ },
1219
+ summary: () => {
1220
+ return `${escape(docType)}`;
1221
+ },
1222
+ lead: () => {
1223
+ return `${enableSearchResultSelection ? `<input type="checkbox"${add_attribute("data-doctype", docType, 0)}>` : ``} `;
1224
+ }
1225
+ })}`;
1226
+ })}`;
1227
+ }
1228
+ })}` : `${each(searchResults, ({ title, text, teaser, text_for_llm }, index) => {
1229
+ return `${validate_component(SearchResultsItem, "SearchResultsItem").$$render(
1230
+ $$result,
1231
+ {
1232
+ title,
1233
+ text: text_for_llm || text,
1234
+ teaser,
1235
+ index,
1236
+ enableSearchResultSelection,
1237
+ useSearchResult,
1238
+ showFullText,
1239
+ enableDocumentDb,
1240
+ documentDbUrl
1241
+ },
1242
+ {},
1243
+ {}
1244
+ )}`;
1245
+ })}`}</div> ${``}`;
1246
+ } while (!$$settled);
1247
+ return $$rendered;
1248
+ });
1249
+ const css$3 = {
1250
+ code: ".consultation-item.svelte-13z9n8v{margin-bottom:20px}.title.svelte-13z9n8v{font-weight:bold}.annotation.svelte-13z9n8v{overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}a.svelte-13z9n8v{cursor:pointer;color:#1a0dab}.full-text.svelte-13z9n8v{display:block;white-space:normal}p.svelte-13z9n8v{margin-top:10px;margin-bottom:10px}",
1251
+ map: null
1252
+ };
1253
+ const ConsultationItem = create_ssr_component(($$result, $$props, $$bindings, slots) => {
1254
+ let { showFullText = Array(10).fill(false) } = $$props;
1255
+ let { index } = $$props;
1256
+ let { title } = $$props;
1257
+ let { text } = $$props;
1258
+ if ($$props.showFullText === void 0 && $$bindings.showFullText && showFullText !== void 0)
1259
+ $$bindings.showFullText(showFullText);
1260
+ if ($$props.index === void 0 && $$bindings.index && index !== void 0)
1261
+ $$bindings.index(index);
1262
+ if ($$props.title === void 0 && $$bindings.title && title !== void 0)
1263
+ $$bindings.title(title);
1264
+ if ($$props.text === void 0 && $$bindings.text && text !== void 0)
1265
+ $$bindings.text(text);
1266
+ $$result.css.add(css$3);
1267
+ return `<div class="consultation-item svelte-13z9n8v"><div class="title svelte-13z9n8v"><a class="svelte-13z9n8v">${escape(title)}</a></div> ${showFullText[index] ? `<div class="annotation full-text svelte-13z9n8v">${each(text.split("\n"), (line) => {
1268
+ return `<p class="svelte-13z9n8v">${escape(line)}</p>`;
1269
+ })}</div>` : ``} </div>`;
1270
+ });
1271
+ const css$2 = {
1272
+ code: "h2.svelte-s2jiei{margin-bottom:10px;font-size:large}.relevant-consultations.svelte-s2jiei{flex:1;overflow-y:auto;padding:1rem}",
1273
+ map: null
1274
+ };
1275
+ const RelevantConsultations = create_ssr_component(($$result, $$props, $$bindings, slots) => {
1276
+ let { showFullText = Array(10).fill(false) } = $$props;
1277
+ let { consultations = [] } = $$props;
1278
+ if ($$props.showFullText === void 0 && $$bindings.showFullText && showFullText !== void 0)
1279
+ $$bindings.showFullText(showFullText);
1280
+ if ($$props.consultations === void 0 && $$bindings.consultations && consultations !== void 0)
1281
+ $$bindings.consultations(consultations);
1282
+ $$result.css.add(css$2);
1283
+ return `<div class="relevant-consultations svelte-s2jiei"><h2 class="w-full p-5 space-y-2 svelte-s2jiei" style="border-bottom:2px solid #ccc;border-top:2px solid #ccc" data-svelte-h="svelte-1ttwfrn">Релевантные консультации</h2> ${each(consultations, ({ title, text }, index) => {
1284
+ return `${validate_component(ConsultationItem, "ConsultationItem").$$render($$result, { title, text, index, showFullText }, {}, {})}`;
1285
+ })}</div> ${``}`;
1286
+ });
1287
+ const HISTORY_KEY_PREFIX = "clarificationHistory_";
1288
+ const HISTORY_INDEX_KEY = "clarificationHistoryIndex";
1289
+ const HISTORY_ITEMS_LIMIT = 2;
1290
+ class ClarificationHistoryService {
1291
+ // Загружает историю как массив, собирая данные из ключей с префиксом
1292
+ static loadHistory() {
1293
+ const history = [];
1294
+ const index = this.getHistoryIndex();
1295
+ for (let i = 0; i < index; i++) {
1296
+ const item = localStorage.getItem(`${HISTORY_KEY_PREFIX}${i}`);
1297
+ if (item) {
1298
+ history.push(JSON.parse(item));
1299
+ }
1300
+ }
1301
+ return history;
1302
+ }
1303
+ // Сохраняет элемент истории с новым индексом и управляет лимитом элементов
1304
+ static addHistoryItem(item) {
1305
+ const index = this.getHistoryIndex();
1306
+ localStorage.setItem(`${HISTORY_KEY_PREFIX}${index}`, JSON.stringify(item));
1307
+ this.setHistoryIndex(index + 1);
1308
+ this.manageHistoryLimit();
1309
+ }
1310
+ // Обновляет элемент истории с заданным индексом
1311
+ static updateHistoryItem(index, item) {
1312
+ localStorage.setItem(`${HISTORY_KEY_PREFIX}${index}`, JSON.stringify(item));
1313
+ }
1314
+ // Возвращает элемент истории по индексу
1315
+ static getHistoryItem(index) {
1316
+ const item = localStorage.getItem(`${HISTORY_KEY_PREFIX}${index}`);
1317
+ return item ? JSON.parse(item) : null;
1318
+ }
1319
+ // Возвращает количество элементов в истории
1320
+ static getHistoryLength() {
1321
+ return this.getHistoryIndex();
1322
+ }
1323
+ // Удаляет все элементы истории
1324
+ static clearHistory() {
1325
+ const index = this.getHistoryIndex();
1326
+ for (let i = 0; i < index; i++) {
1327
+ localStorage.removeItem(`${HISTORY_KEY_PREFIX}${i}`);
1328
+ }
1329
+ localStorage.removeItem(HISTORY_INDEX_KEY);
1330
+ }
1331
+ // Вспомогательная функция для управления лимитом истории
1332
+ static manageHistoryLimit() {
1333
+ const index = this.getHistoryIndex();
1334
+ if (index > HISTORY_ITEMS_LIMIT) {
1335
+ const excessCount = index - HISTORY_ITEMS_LIMIT;
1336
+ for (let i = 0; i < excessCount; i++) {
1337
+ localStorage.removeItem(`${HISTORY_KEY_PREFIX}${i}`);
1338
+ }
1339
+ this.shiftHistoryKeys(excessCount);
1340
+ this.setHistoryIndex(HISTORY_ITEMS_LIMIT);
1341
+ }
1342
+ }
1343
+ // Смещает ключи истории при удалении старых элементов
1344
+ static shiftHistoryKeys(shiftAmount) {
1345
+ const index = this.getHistoryIndex();
1346
+ for (let i = shiftAmount; i < index; i++) {
1347
+ const item = localStorage.getItem(`${HISTORY_KEY_PREFIX}${i}`);
1348
+ if (item) {
1349
+ localStorage.setItem(`${HISTORY_KEY_PREFIX}${i - shiftAmount}`, item);
1350
+ }
1351
+ localStorage.removeItem(`${HISTORY_KEY_PREFIX}${i}`);
1352
+ }
1353
+ }
1354
+ // Вспомогательная функция для получения текущего индекса истории
1355
+ static getHistoryIndex() {
1356
+ const index = localStorage.getItem(HISTORY_INDEX_KEY);
1357
+ return index ? parseInt(index, 10) : 0;
1358
+ }
1359
+ // Вспомогательная функция для установки индекса истории
1360
+ static setHistoryIndex(index) {
1361
+ localStorage.setItem(HISTORY_INDEX_KEY, index.toString());
1362
+ }
1363
+ }
1364
+ const css$1 = {
1365
+ code: "textarea.svelte-wjelcf{border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;padding:1rem}button.svelte-wjelcf{margin:5px}",
1366
+ map: null
1367
+ };
1368
+ const UserClarification = create_ssr_component(($$result, $$props, $$bindings, slots) => {
1369
+ let { userRequest = "" } = $$props;
1370
+ let { searchClarification = "" } = $$props;
1371
+ let { llmClarification = "" } = $$props;
1372
+ let { searchResults } = $$props;
1373
+ let { relevantConsultations } = $$props;
1374
+ let { llmResponse = "" } = $$props;
1375
+ let { historyIsNotEmpty = false } = $$props;
1376
+ let currentHistoryIndex = 0;
1377
+ let history = [];
1378
+ let historyLength = 0;
1379
+ function loadCurrentHistoryItem() {
1380
+ const item = ClarificationHistoryService.getHistoryItem(currentHistoryIndex);
1381
+ if (item) {
1382
+ searchClarification = item.searchClarification;
1383
+ llmClarification = item.llmClarification;
1384
+ searchResults = item.searchResults;
1385
+ relevantConsultations = item.relevantConsultations;
1386
+ llmResponse = item.llmResponse;
1387
+ userRequest = item.userRequest;
1388
+ }
1389
+ return item;
1390
+ }
1391
+ function getCurrentState() {
1392
+ return ClarificationHistoryService.getHistoryItem(currentHistoryIndex);
1393
+ }
1394
+ function addState(request) {
1395
+ console.log("addState called");
1396
+ const newItem = {
1397
+ userRequest: request,
1398
+ searchClarification,
1399
+ llmClarification,
1400
+ searchResults: [],
1401
+ llmResponse: "",
1402
+ relevantConsultations: [],
1403
+ transactionMaps: []
1404
+ };
1405
+ historyLength = ClarificationHistoryService.getHistoryLength();
1406
+ ClarificationHistoryService.addHistoryItem(newItem);
1407
+ currentHistoryIndex = historyLength - 1;
1408
+ }
1409
+ function updateCurrentState(request, searchResults2, llmResponse2, relevantConsultations2, transactionMaps) {
1410
+ console.log("updateCurrentState called");
1411
+ const item = ClarificationHistoryService.getHistoryItem(currentHistoryIndex);
1412
+ if (item) {
1413
+ item.userRequest = request ?? item.userRequest;
1414
+ item.searchClarification = searchClarification ?? item.searchClarification;
1415
+ item.llmClarification = llmClarification ?? item.llmClarification;
1416
+ item.searchResults = searchResults2 ?? item.searchResults;
1417
+ item.llmResponse = llmResponse2 ?? item.llmResponse;
1418
+ item.relevantConsultations = relevantConsultations2 ?? item.relevantConsultations;
1419
+ item.transactionMaps = transactionMaps ?? item.transactionMaps;
1420
+ console.log(item);
1421
+ ClarificationHistoryService.updateHistoryItem(currentHistoryIndex, item);
1422
+ }
1423
+ }
1424
+ function prevHistory() {
1425
+ if (currentHistoryIndex > 0) {
1426
+ currentHistoryIndex -= 1;
1427
+ loadCurrentHistoryItem();
1428
+ }
1429
+ }
1430
+ function nextHistory() {
1431
+ if (currentHistoryIndex < history.length - 1) {
1432
+ currentHistoryIndex += 1;
1433
+ loadCurrentHistoryItem();
1434
+ }
1435
+ }
1436
+ function clear() {
1437
+ llmClarification = "";
1438
+ searchClarification = "";
1439
+ }
1440
+ if ($$props.userRequest === void 0 && $$bindings.userRequest && userRequest !== void 0)
1441
+ $$bindings.userRequest(userRequest);
1442
+ if ($$props.searchClarification === void 0 && $$bindings.searchClarification && searchClarification !== void 0)
1443
+ $$bindings.searchClarification(searchClarification);
1444
+ if ($$props.llmClarification === void 0 && $$bindings.llmClarification && llmClarification !== void 0)
1445
+ $$bindings.llmClarification(llmClarification);
1446
+ if ($$props.searchResults === void 0 && $$bindings.searchResults && searchResults !== void 0)
1447
+ $$bindings.searchResults(searchResults);
1448
+ if ($$props.relevantConsultations === void 0 && $$bindings.relevantConsultations && relevantConsultations !== void 0)
1449
+ $$bindings.relevantConsultations(relevantConsultations);
1450
+ if ($$props.llmResponse === void 0 && $$bindings.llmResponse && llmResponse !== void 0)
1451
+ $$bindings.llmResponse(llmResponse);
1452
+ if ($$props.historyIsNotEmpty === void 0 && $$bindings.historyIsNotEmpty && historyIsNotEmpty !== void 0)
1453
+ $$bindings.historyIsNotEmpty(historyIsNotEmpty);
1454
+ if ($$props.loadCurrentHistoryItem === void 0 && $$bindings.loadCurrentHistoryItem && loadCurrentHistoryItem !== void 0)
1455
+ $$bindings.loadCurrentHistoryItem(loadCurrentHistoryItem);
1456
+ if ($$props.getCurrentState === void 0 && $$bindings.getCurrentState && getCurrentState !== void 0)
1457
+ $$bindings.getCurrentState(getCurrentState);
1458
+ if ($$props.addState === void 0 && $$bindings.addState && addState !== void 0)
1459
+ $$bindings.addState(addState);
1460
+ if ($$props.updateCurrentState === void 0 && $$bindings.updateCurrentState && updateCurrentState !== void 0)
1461
+ $$bindings.updateCurrentState(updateCurrentState);
1462
+ if ($$props.prevHistory === void 0 && $$bindings.prevHistory && prevHistory !== void 0)
1463
+ $$bindings.prevHistory(prevHistory);
1464
+ if ($$props.nextHistory === void 0 && $$bindings.nextHistory && nextHistory !== void 0)
1465
+ $$bindings.nextHistory(nextHistory);
1466
+ if ($$props.clear === void 0 && $$bindings.clear && clear !== void 0)
1467
+ $$bindings.clear(clear);
1468
+ $$result.css.add(css$1);
1469
+ return `<div class="w-full flex p-2 space-x-2"><textarea rows="3" placeholder="Уточнение для поиска" class="svelte-wjelcf">${escape(searchClarification || "")}</textarea> <textarea rows="3" placeholder="Уточнение для LLM" class="svelte-wjelcf">${escape(llmClarification || "")}</textarea></div> ${``}`;
1470
+ });
1471
+ const css = {
1472
+ code: '.loading-container.svelte-rgnwju.svelte-rgnwju{display:flex;justify-content:center;align-items:center;align-self:center;width:3rem;height:90%;margin-left:5px}.loading-status.svelte-rgnwju.svelte-rgnwju{display:flex;justify-content:center;align-items:center;align-self:center}.grow-wrap.svelte-rgnwju.svelte-rgnwju{display:grid}.grow-wrap.svelte-rgnwju.svelte-rgnwju::after{content:attr(data-replicated-value) " ";white-space:pre-wrap;visibility:hidden;max-width:100%;max-height:250px;display:block;overflow-x:hidden}.grow-wrap.svelte-rgnwju>textarea.svelte-rgnwju{resize:none}.grow-wrap.svelte-rgnwju>textarea.svelte-rgnwju,.grow-wrap.svelte-rgnwju.svelte-rgnwju::after{padding:1rem;border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;grid-area:1/1/2/2}.grow-wrap.svelte-rgnwju>textarea .svelte-rgnwju:focus,.grow-wrap.svelte-rgnwju::after .svelte-rgnwju:focus{outline:none;border-color:#1976d2}.grow-wrap.svelte-rgnwju>textarea .svelte-rgnwju:placeholder,.grow-wrap.svelte-rgnwju::after .svelte-rgnwju:placeholder{color:#aaa}.auto-expand-textarea.svelte-rgnwju.svelte-rgnwju{box-sizing:border-box;width:100%;font-size:16px;border:1px solid #ccc;resize:vertical;overflow-y:auto;min-height:1rem}.search-column.svelte-rgnwju.svelte-rgnwju{flex:1;display:flex;flex-direction:column;border-right:1px solid #ccc}.search-bar.svelte-rgnwju.svelte-rgnwju{padding:1rem}.search-bar.svelte-rgnwju textarea.svelte-rgnwju{width:100%;max-width:100%;padding:1rem;box-sizing:border-box}.textarea-column.svelte-rgnwju.svelte-rgnwju{flex:1;display:flex;flex-direction:column}.textarea.svelte-rgnwju.svelte-rgnwju{width:100%;height:100%;margin:10px;border:none;outline:none;resize:none;background:transparent}@media(max-width: 767px){.search-column.svelte-rgnwju.svelte-rgnwju,.textarea-column.svelte-rgnwju.svelte-rgnwju{border-right:none}}.search-second-bar.svelte-rgnwju.svelte-rgnwju{display:flex;justify-content:space-between;flex-wrap:wrap}.search-second-bar.svelte-rgnwju .status-components.svelte-rgnwju{flex:1;margin-right:10px;margin-top:10px}@media(max-width: 600px){.search-second-bar.svelte-rgnwju.svelte-rgnwju{flex-direction:column}.search-second-bar.svelte-rgnwju .status-components.svelte-rgnwju{width:100%;margin-right:0;margin-bottom:10px}}textarea.svelte-rgnwju.svelte-rgnwju{border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;padding:1rem}a.svelte-rgnwju.svelte-rgnwju{cursor:pointer}.reference-btn.svelte-rgnwju.svelte-rgnwju{text-decoration:none;color:black}.reference-btn.svelte-rgnwju svg.svelte-rgnwju{margin-right:10px}.reference-btn.svelte-rgnwju.svelte-rgnwju:hover{text-decoration:none;color:black}',
1473
+ map: null
1474
+ };
1475
+ const Page = create_ssr_component(($$result, $$props, $$bindings, slots) => {
1476
+ let { data } = $$props;
1477
+ const { ENV_DOCUMENT_DB_URL, ENV_ENABLE_DOCUMENT_DB, ENV_ENABLE_DB_SUPPORT } = data;
1478
+ let userClarificationComponent;
1479
+ initializeStores();
1480
+ getToastStore();
1481
+ let userSearchClarification = "";
1482
+ let userLlmClarification = "";
1483
+ let historyIsNotEmpty = true;
1484
+ let llmHealthStatus = "unknown";
1485
+ let searchHealthStatus = "unknown";
1486
+ let healthInterval;
1487
+ onDestroy(() => {
1488
+ clearInterval(healthInterval);
1489
+ cancelLlmRequest();
1490
+ });
1491
+ let searchResults = [];
1492
+ let relevantConsultations = [];
1493
+ let isLlmLoading = false;
1494
+ let currentLlmResponse = "";
1495
+ let baseLlmResponse = "";
1496
+ let currentUserRequest = "";
1497
+ let savedUserRequest = "";
1498
+ let loadingStatusText = "";
1499
+ let showFullText = Array(searchResults.length).fill(false);
1500
+ let showConsultationFullText = Array(relevantConsultations.length).fill(false);
1501
+ let useSearchResult;
1502
+ let enableSearchResultSelection = false;
1503
+ let enableLLMForTeasers = false;
1504
+ let doMultistepSearch = false;
1505
+ let useAccountingDocs = false;
1506
+ let useReranking = false;
1507
+ let useLLMForFiltering = false;
1508
+ let useKeywords = false;
1509
+ let disableThresholds = false;
1510
+ let searchInTransactionLedger = false;
1511
+ let searchInTransactionLedgerByQuestion = false;
1512
+ let searchInTransactionLedgerByOperation = false;
1513
+ let useShortestPrompt = false;
1514
+ let shortestPromptGenerationFinished = false;
1515
+ let enableRealtimeLlmReponse = false;
1516
+ let sendConsultationToLlm = false;
1517
+ let showClarifyLlmResponseButton = false;
1518
+ let abortController = new AbortController();
1519
+ const cancelLlmRequest = () => {
1520
+ abortController.abort("user canceled");
1521
+ abortController = new AbortController();
1522
+ isLlmLoading = false;
1523
+ loadingStatusText = "";
1524
+ };
1525
+ if ($$props.data === void 0 && $$bindings.data && data !== void 0)
1526
+ $$bindings.data(data);
1527
+ $$result.css.add(css);
1528
+ let $$settled;
1529
+ let $$rendered;
1530
+ let previous_head = $$result.head;
1531
+ do {
1532
+ $$settled = true;
1533
+ $$result.head = previous_head;
1534
+ {
1535
+ {
1536
+ {
1537
+ searchInTransactionLedger = false;
1538
+ }
1539
+ if (
1540
+ // clarificationEntry &&
1541
+ // isClarificationPaneVisible &&
1542
+ userLlmClarification && // clarificationEntry.userRequest == currentUserRequest &&
1543
+ searchResults.length > 0 && baseLlmResponse && savedUserRequest == currentUserRequest && !isLlmLoading
1544
+ ) {
1545
+ showClarifyLlmResponseButton = true;
1546
+ } else {
1547
+ showClarifyLlmResponseButton = false;
1548
+ }
1549
+ }
1550
+ }
1551
+ $$rendered = `${$$result.head += `<!-- HEAD_svelte-1wpbm1r_START -->${$$result.title = `<title>LLM demo app</title>`, ""}<meta name="description" content="LLM demo app"><!-- HEAD_svelte-1wpbm1r_END -->`, ""} ${validate_component(Toast, "Toast").$$render($$result, {}, {}, {})} <section><div class="search-bar flex flex-wrap svelte-rgnwju"><div class="grow-wrap w-full svelte-rgnwju"> <textarea class="auto-expand-textarea svelte-rgnwju" rows="1" placeholder="Введите ваш запрос...">${escape(currentUserRequest || "")}</textarea></div> <div class="search-second-bar w-full svelte-rgnwju"><div class="status-components svelte-rgnwju">${validate_component(LlmHealthStatus, "LlmHealthStatus").$$render($$result, { status: llmHealthStatus }, {}, {})} ${validate_component(SearchApiHealthStatus, "SearchApiHealthStatus").$$render($$result, { status: searchHealthStatus }, {}, {})}</div> <div class="flex space-x-2 items-center"> <a${add_attribute("href", `${ENV_DOCUMENT_DB_URL}file/view/id/${HelpDocumentId}`, 0)} target="_blank" rel="noopener noreferrer" class="btn variant-outline-tertiary reference-btn svelte-rgnwju"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-question-circle svelte-rgnwju" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"></path><path d="M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"></path></svg>
1552
+ Справка</a> <button class="btn variant-outline-tertiary">${escape("Уточнить")}</button> <button class="btn variant-outline-tertiary w-48 justify-between" data-svelte-h="svelte-7w234r">Инструменты
1553
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 20" fill="currentColor" class="w-6 h-6"><path fill-rule="evenodd" d="M12 14.5a.75.75 0 01-.53-.22l-4.25-4.25a.75.75 0 011.06-1.06L12 12.69l3.72-3.72a.75.75 0 011.06 1.06l-4.25 4.25a.75.75 0 01-.53.22z" clip-rule="evenodd"></path></svg></button> <div class="card p-4 w-150 shadow-xl z-10" data-popup="popupFeatured"><div><label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox" ${searchInTransactionLedger ? "disabled" : ""}${add_attribute("checked", doMultistepSearch, 1)}> <p data-svelte-h="svelte-o1whuo">Использовать многоступенчатый поиск</p></label> <label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox" ${searchInTransactionLedger ? "disabled" : ""}${add_attribute("checked", enableLLMForTeasers, 1)}> <p data-svelte-h="svelte-9zxjq1">Использовать LLM для тизеров</p></label> <label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox" ${searchInTransactionLedger ? "disabled" : ""}${add_attribute("checked", useLLMForFiltering, 1)}> <p data-svelte-h="svelte-1uul1f7">Использовать LLM для фильтрации источников</p></label> <label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox" ${searchInTransactionLedger ? "disabled" : ""}${add_attribute("checked", disableThresholds, 1)}> <p data-svelte-h="svelte-jhmp61">Выключить фильтрацию по порогам</p></label> <label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox" ${searchInTransactionLedger ? "disabled" : ""}${add_attribute("checked", useShortestPrompt, 1)}> <p data-svelte-h="svelte-1548adw">Получить более короткий ответ</p></label> <label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox" ${searchInTransactionLedger ? "disabled" : ""}${add_attribute("checked", enableRealtimeLlmReponse, 1)}> <p data-svelte-h="svelte-tnawxy">Выводить ответ в реальном времени</p></label> <label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox" ${searchInTransactionLedger ? "disabled" : ""}${add_attribute("checked", sendConsultationToLlm, 1)}> <p data-svelte-h="svelte-vv6jwf">Учитывать консультации в ответе</p></label> <label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox" ${searchInTransactionLedger ? "disabled" : ""}${add_attribute("checked", useReranking, 1)}> <p data-svelte-h="svelte-qkyc7c">Использовать переранжирование</p></label> <label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox"${add_attribute("checked", searchInTransactionLedgerByQuestion, 1)}> <p data-svelte-h="svelte-17zslqw">Карты проводок по вопросу</p></label> <label class="flex items-center space-x-2"><input class="checkbox accent-white" type="checkbox"${add_attribute("checked", searchInTransactionLedgerByOperation, 1)}> <p data-svelte-h="svelte-1esqmyo">Карты проводок по хоз. операциям</p></label></div></div> ${currentUserRequest ? `<button class="btn variant-filled" data-svelte-h="svelte-1rjqwcg">Очистить</button>` : ``} ${isLlmLoading ? `<button class="btn variant-filled" data-svelte-h="svelte-a5kyut">Остановить</button>` : ``} <button title="Ctrl+Enter" class="btn variant-filled" data-svelte-h="svelte-w5ppob">Отправить</button></div> <div class="flex space-x-2 items-center justify-center w-full">${isLlmLoading ? `<div class="loading-status svelte-rgnwju">${escape(loadingStatusText)}</div> <div class="loading-container svelte-rgnwju">${validate_component(LoadingSpinner, "LoadingSpinner").$$render($$result, {}, {}, {})}</div>` : ``}</div> <div class="${["w-full", "hidden"].join(" ").trim()}">${validate_component(UserClarification, "UserClarification").$$render(
1554
+ $$result,
1555
+ {
1556
+ this: userClarificationComponent,
1557
+ llmClarification: userLlmClarification,
1558
+ searchClarification: userSearchClarification,
1559
+ searchResults,
1560
+ relevantConsultations,
1561
+ llmResponse: currentLlmResponse,
1562
+ historyIsNotEmpty,
1563
+ userRequest: currentUserRequest
1564
+ },
1565
+ {
1566
+ this: ($$value) => {
1567
+ userClarificationComponent = $$value;
1568
+ $$settled = false;
1569
+ },
1570
+ llmClarification: ($$value) => {
1571
+ userLlmClarification = $$value;
1572
+ $$settled = false;
1573
+ },
1574
+ searchClarification: ($$value) => {
1575
+ userSearchClarification = $$value;
1576
+ $$settled = false;
1577
+ },
1578
+ searchResults: ($$value) => {
1579
+ searchResults = $$value;
1580
+ $$settled = false;
1581
+ },
1582
+ relevantConsultations: ($$value) => {
1583
+ relevantConsultations = $$value;
1584
+ $$settled = false;
1585
+ },
1586
+ llmResponse: ($$value) => {
1587
+ currentLlmResponse = $$value;
1588
+ $$settled = false;
1589
+ },
1590
+ historyIsNotEmpty: ($$value) => {
1591
+ historyIsNotEmpty = $$value;
1592
+ $$settled = false;
1593
+ },
1594
+ userRequest: ($$value) => {
1595
+ currentUserRequest = $$value;
1596
+ $$settled = false;
1597
+ }
1598
+ },
1599
+ {}
1600
+ )}</div> <div class="w-full my-2"></div> <div class="card w-[calc(50%-0.5rem)] p-2 mr-2"><div>${validate_component(SlideToggle, "SlideToggle").$$render(
1601
+ $$result,
1602
+ {
1603
+ name: "slider-label",
1604
+ size: "sm",
1605
+ checked: enableSearchResultSelection,
1606
+ disabled: searchInTransactionLedger
1607
+ },
1608
+ {
1609
+ checked: ($$value) => {
1610
+ enableSearchResultSelection = $$value;
1611
+ $$settled = false;
1612
+ },
1613
+ disabled: ($$value) => {
1614
+ searchInTransactionLedger = $$value;
1615
+ $$settled = false;
1616
+ }
1617
+ },
1618
+ {
1619
+ default: () => {
1620
+ return `Выбрать источники для LLM`;
1621
+ }
1622
+ }
1623
+ )}</div> <div>${validate_component(SlideToggle, "SlideToggle").$$render(
1624
+ $$result,
1625
+ {
1626
+ name: "slider-label",
1627
+ size: "sm",
1628
+ checked: useKeywords,
1629
+ disabled: searchInTransactionLedger
1630
+ },
1631
+ {
1632
+ checked: ($$value) => {
1633
+ useKeywords = $$value;
1634
+ $$settled = false;
1635
+ },
1636
+ disabled: ($$value) => {
1637
+ searchInTransactionLedger = $$value;
1638
+ $$settled = false;
1639
+ }
1640
+ },
1641
+ {
1642
+ default: () => {
1643
+ return `Использовать ключевые слова`;
1644
+ }
1645
+ }
1646
+ )}</div> <div>${validate_component(SlideToggle, "SlideToggle").$$render(
1647
+ $$result,
1648
+ {
1649
+ name: "slider-label",
1650
+ size: "sm",
1651
+ checked: useAccountingDocs,
1652
+ disabled: searchInTransactionLedger
1653
+ },
1654
+ {
1655
+ checked: ($$value) => {
1656
+ useAccountingDocs = $$value;
1657
+ $$settled = false;
1658
+ },
1659
+ disabled: ($$value) => {
1660
+ searchInTransactionLedger = $$value;
1661
+ $$settled = false;
1662
+ }
1663
+ },
1664
+ {
1665
+ default: () => {
1666
+ return `Выполнить поиск по БУ`;
1667
+ }
1668
+ }
1669
+ )}</div> <div></div> ${``}</div> <div class="w-full my-2">${``}</div> ${``} ${(historyIsNotEmpty && searchResults.length > 0 || relevantConsultations && relevantConsultations.length > 0) && !searchInTransactionLedger ? `${`${validate_component(Splitpanes, "Splitpanes").$$render($$result, { theme: "modern-theme" }, {}, {
1670
+ default: () => {
1671
+ return `${validate_component(Pane, "Pane").$$render(
1672
+ $$result,
1673
+ {
1674
+ minSize: 20,
1675
+ class: "search-column",
1676
+ size: 49
1677
+ },
1678
+ {},
1679
+ {
1680
+ default: () => {
1681
+ return `<div class="search-column svelte-rgnwju">${validate_component(SearchResults, "SearchResults").$$render(
1682
+ $$result,
1683
+ {
1684
+ enableDocumentDb: ENV_ENABLE_DOCUMENT_DB,
1685
+ documentDbUrl: ENV_DOCUMENT_DB_URL,
1686
+ searchResults,
1687
+ showFullText,
1688
+ useSearchResult,
1689
+ enableSearchResultSelection
1690
+ },
1691
+ {
1692
+ searchResults: ($$value) => {
1693
+ searchResults = $$value;
1694
+ $$settled = false;
1695
+ },
1696
+ showFullText: ($$value) => {
1697
+ showFullText = $$value;
1698
+ $$settled = false;
1699
+ },
1700
+ useSearchResult: ($$value) => {
1701
+ useSearchResult = $$value;
1702
+ $$settled = false;
1703
+ },
1704
+ enableSearchResultSelection: ($$value) => {
1705
+ enableSearchResultSelection = $$value;
1706
+ $$settled = false;
1707
+ }
1708
+ },
1709
+ {}
1710
+ )} ${relevantConsultations && relevantConsultations.length > 0 ? `${validate_component(RelevantConsultations, "RelevantConsultations").$$render(
1711
+ $$result,
1712
+ {
1713
+ consultations: relevantConsultations,
1714
+ showFullText: showConsultationFullText
1715
+ },
1716
+ {
1717
+ consultations: ($$value) => {
1718
+ relevantConsultations = $$value;
1719
+ $$settled = false;
1720
+ },
1721
+ showFullText: ($$value) => {
1722
+ showConsultationFullText = $$value;
1723
+ $$settled = false;
1724
+ }
1725
+ },
1726
+ {}
1727
+ )}` : ``}</div>`;
1728
+ }
1729
+ }
1730
+ )} ${validate_component(Pane, "Pane").$$render($$result, { size: 49 }, {}, {
1731
+ default: () => {
1732
+ return `<div class="textarea-column svelte-rgnwju"><div class="textarea svelte-rgnwju"><button class="${[
1733
+ "btn variant-filled",
1734
+ !(enableSearchResultSelection && searchResults.length > 0 && !showClarifyLlmResponseButton) ? "hidden" : ""
1735
+ ].join(" ").trim()}" data-svelte-h="svelte-qvwp3t">Получить ответ</button> <button class="${[
1736
+ "btn variant-filled",
1737
+ !showClarifyLlmResponseButton ? "hidden" : ""
1738
+ ].join(" ").trim()}" data-svelte-h="svelte-zcineo">Уточнить ответ</button> <button class="btn variant-filled" data-svelte-h="svelte-1ddim4b">Скачать ответ в Word</button> <div class="textarea svelte-rgnwju">${!isLlmLoading || enableRealtimeLlmReponse || currentLlmResponse && useShortestPrompt && shortestPromptGenerationFinished ? `<!-- HTML_TAG_START -->${currentLlmResponse}<!-- HTML_TAG_END -->` : ``}</div> ${``}</div></div>`;
1739
+ }
1740
+ })}`;
1741
+ }
1742
+ })}`}` : ``}</div></div> </section>`;
1743
+ } while (!$$settled);
1744
+ return $$rendered;
1745
+ });
1746
+
1747
+ export { Page as default };
1748
+ //# sourceMappingURL=_page.svelte-QKoLg7mN.js.map
build/server/chunks/_page.svelte-QKoLg7mN.js.map ADDED
The diff for this file is too large to render. See raw diff
 
build/server/index.js CHANGED
@@ -1281,7 +1281,7 @@ const options = {
1281
  <div class="error">
1282
  <span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
1283
  },
1284
- version_hash: "yynwj7"
1285
  };
1286
  async function get_hooks() {
1287
  return {
 
1281
  <div class="error">
1282
  <span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
1283
  },
1284
+ version_hash: "1597s67"
1285
  };
1286
  async function get_hooks() {
1287
  return {
build/server/index.js.map CHANGED
The diff for this file is too large to render. See raw diff
 
build/server/manifest.js CHANGED
@@ -10,12 +10,12 @@ return {
10
  assets: new Set(["favicon.png","robots.txt"]),
11
  mimeTypes: {".png":"image/png",".txt":"text/plain"},
12
  _: {
13
- client: {"start":"_app/immutable/entry/start.wAhvLgW-.js","app":"_app/immutable/entry/app.nf8b2onw.js","imports":["_app/immutable/entry/start.wAhvLgW-.js","_app/immutable/chunks/entry.vZ4dQZZ-.js","_app/immutable/chunks/scheduler.OwA2AG0M.js","_app/immutable/chunks/index.UTqYide5.js","_app/immutable/entry/app.nf8b2onw.js","_app/immutable/chunks/scheduler.OwA2AG0M.js","_app/immutable/chunks/index.JlSaLmPP.js"],"stylesheets":[],"fonts":[],"uses_env_dynamic_public":false},
14
  nodes: [
15
  __memo(() => import('./chunks/0-VxnFtOWB.js')),
16
- __memo(() => import('./chunks/1-zFqe38Kb.js')),
17
- __memo(() => import('./chunks/2-Hcaa79bn.js')),
18
- __memo(() => import('./chunks/3-CK6H8qlV.js')),
19
  __memo(() => import('./chunks/4-x-_yQ3I4.js'))
20
  ],
21
  routes: [
 
10
  assets: new Set(["favicon.png","robots.txt"]),
11
  mimeTypes: {".png":"image/png",".txt":"text/plain"},
12
  _: {
13
+ client: {"start":"_app/immutable/entry/start.XXXp1gC7.js","app":"_app/immutable/entry/app.tbjImKCQ.js","imports":["_app/immutable/entry/start.XXXp1gC7.js","_app/immutable/chunks/entry.bIlUiDNF.js","_app/immutable/chunks/scheduler.OwA2AG0M.js","_app/immutable/chunks/index.UTqYide5.js","_app/immutable/entry/app.tbjImKCQ.js","_app/immutable/chunks/scheduler.OwA2AG0M.js","_app/immutable/chunks/index.JlSaLmPP.js"],"stylesheets":[],"fonts":[],"uses_env_dynamic_public":false},
14
  nodes: [
15
  __memo(() => import('./chunks/0-VxnFtOWB.js')),
16
+ __memo(() => import('./chunks/1-u9cDhUrb.js')),
17
+ __memo(() => import('./chunks/2-_Fr3Cq56.js')),
18
+ __memo(() => import('./chunks/3-xWMOnkEY.js')),
19
  __memo(() => import('./chunks/4-x-_yQ3I4.js'))
20
  ],
21
  routes: [
build/server/manifest.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"favicon.png\",\"robots.txt\"]),\n\tmimeTypes: {\".png\":\"image/png\",\".txt\":\"text/plain\"},\n\t_: {\n\t\tclient: {\"start\":\"_app/immutable/entry/start.wAhvLgW-.js\",\"app\":\"_app/immutable/entry/app.nf8b2onw.js\",\"imports\":[\"_app/immutable/entry/start.wAhvLgW-.js\",\"_app/immutable/chunks/entry.vZ4dQZZ-.js\",\"_app/immutable/chunks/scheduler.OwA2AG0M.js\",\"_app/immutable/chunks/index.UTqYide5.js\",\"_app/immutable/entry/app.nf8b2onw.js\",\"_app/immutable/chunks/scheduler.OwA2AG0M.js\",\"_app/immutable/chunks/index.JlSaLmPP.js\"],\"stylesheets\":[],\"fonts\":[],\"uses_env_dynamic_public\":false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/2.js')),\n\t\t\t__memo(() => import('./nodes/3.js')),\n\t\t\t__memo(() => import('./nodes/4.js'))\n\t\t],\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/\",\n\t\t\t\tpattern: /^\\/$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api\",\n\t\t\t\tpattern: /^\\/api\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/env/search_version\",\n\t\t\t\tpattern: /^\\/api\\/env\\/search_version\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/env/search_version/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/log/export/excel\",\n\t\t\t\tpattern: /^\\/api\\/log\\/export\\/excel\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/log/export/excel/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/log/export/json\",\n\t\t\t\tpattern: /^\\/api\\/log\\/export\\/json\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/log/export/json/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/log/write\",\n\t\t\t\tpattern: /^\\/api\\/log\\/write\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/log/write/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/log/write/userScore\",\n\t\t\t\tpattern: /^\\/api\\/log\\/write\\/userScore\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/log/write/userScore/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/chat\",\n\t\t\t\tpattern: /^\\/chat\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/llm\",\n\t\t\t\tpattern: /^\\/llm\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/llm/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/llm/chat\",\n\t\t\t\tpattern: /^\\/llm\\/chat\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/llm/chat/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/llm/health\",\n\t\t\t\tpattern: /^\\/llm\\/health\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/llm/health/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/logs\",\n\t\t\t\tpattern: /^\\/logs\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 4 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/log/export\",\n\t\t\t\tpattern: /^\\/log\\/export\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/log/export/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/log/response\",\n\t\t\t\tpattern: /^\\/log\\/response\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/log/response/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/log/response/export/excel\",\n\t\t\t\tpattern: /^\\/log\\/response\\/export\\/excel\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/log/response/export/excel/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/search\",\n\t\t\t\tpattern: /^\\/search\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/search/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/search/health\",\n\t\t\t\tpattern: /^\\/search\\/health\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/search/health/_server.ts.js'))\n\t\t\t}\n\t\t],\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t}\n\t}\n}\n})();\n\nexport const prerendered = new Set([]);\n"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;AACpB,CAAC,IAAI,KAAK,CAAC;AACX,CAAC,OAAO,MAAM,KAAK,MAAM,KAAK,GAAG,EAAE,EAAE,CAAC,CAAC;AACvC,CAAC;AACD;AACA,OAAO;AACP,CAAC,MAAM,EAAE,MAAM;AACf,CAAC,OAAO,EAAE,MAAM;AAChB,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AAC9C,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,YAAY,CAAC;AACpD,CAAC,CAAC,EAAE;AACJ,EAA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AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAAgD,CAAC,CAAC;AACpF,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,4BAA4B;AACpC,IAAI,OAAO,EAAE,qCAAqC;AAClD,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAA6D,CAAC,CAAC;AACjG,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,SAAS;AACjB,IAAI,OAAO,EAAE,eAAe;AAC5B,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAA0C,CAAC,CAAC;AAC9E,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,gBAAgB;AACxB,IAAI,OAAO,EAAE,uBAAuB;AACpC,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,QAAQ,EAAE,MAAM,CAAC,MAAM,OAAO,iCAAiD,CAAC,CAAC;AACrF,IAAI;AACJ,GAAG;AACH,EAAE,QAAQ,EAAE,YAAY;AACxB;AACA,GAAG,OAAO,IAAI,CAAC;AACf,GAAG;AACH,EAAE;AACF,CAAC;AACD,CAAC,IAAI;AACL;AACY,MAAC,WAAW,GAAG,IAAI,GAAG,CAAC,EAAE;;;;"}
 
1
+ {"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"favicon.png\",\"robots.txt\"]),\n\tmimeTypes: {\".png\":\"image/png\",\".txt\":\"text/plain\"},\n\t_: {\n\t\tclient: {\"start\":\"_app/immutable/entry/start.XXXp1gC7.js\",\"app\":\"_app/immutable/entry/app.tbjImKCQ.js\",\"imports\":[\"_app/immutable/entry/start.XXXp1gC7.js\",\"_app/immutable/chunks/entry.bIlUiDNF.js\",\"_app/immutable/chunks/scheduler.OwA2AG0M.js\",\"_app/immutable/chunks/index.UTqYide5.js\",\"_app/immutable/entry/app.tbjImKCQ.js\",\"_app/immutable/chunks/scheduler.OwA2AG0M.js\",\"_app/immutable/chunks/index.JlSaLmPP.js\"],\"stylesheets\":[],\"fonts\":[],\"uses_env_dynamic_public\":false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/2.js')),\n\t\t\t__memo(() => import('./nodes/3.js')),\n\t\t\t__memo(() => import('./nodes/4.js'))\n\t\t],\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/\",\n\t\t\t\tpattern: /^\\/$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api\",\n\t\t\t\tpattern: /^\\/api\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/env/search_version\",\n\t\t\t\tpattern: /^\\/api\\/env\\/search_version\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/env/search_version/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/log/export/excel\",\n\t\t\t\tpattern: /^\\/api\\/log\\/export\\/excel\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/log/export/excel/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/log/export/json\",\n\t\t\t\tpattern: /^\\/api\\/log\\/export\\/json\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/log/export/json/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/log/write\",\n\t\t\t\tpattern: /^\\/api\\/log\\/write\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/log/write/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/log/write/userScore\",\n\t\t\t\tpattern: /^\\/api\\/log\\/write\\/userScore\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/log/write/userScore/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/chat\",\n\t\t\t\tpattern: /^\\/chat\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/llm\",\n\t\t\t\tpattern: /^\\/llm\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/llm/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/llm/chat\",\n\t\t\t\tpattern: /^\\/llm\\/chat\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/llm/chat/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/llm/health\",\n\t\t\t\tpattern: /^\\/llm\\/health\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/llm/health/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/logs\",\n\t\t\t\tpattern: /^\\/logs\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 4 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/log/export\",\n\t\t\t\tpattern: /^\\/log\\/export\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/log/export/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/log/response\",\n\t\t\t\tpattern: /^\\/log\\/response\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/log/response/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/log/response/export/excel\",\n\t\t\t\tpattern: /^\\/log\\/response\\/export\\/excel\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/log/response/export/excel/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/search\",\n\t\t\t\tpattern: /^\\/search\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/search/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/search/health\",\n\t\t\t\tpattern: /^\\/search\\/health\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/search/health/_server.ts.js'))\n\t\t\t}\n\t\t],\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t}\n\t}\n}\n})();\n\nexport const prerendered = new Set([]);\n"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;A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