UNPKG

@kaifronsdal/transcript-viewer

Version:

A web-based viewer for AI conversation transcripts with rollback support

3 lines (2 loc) 7.26 kB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C-Q1pvve.js","../chunks/CWj6FrbW.js","../chunks/C-E9t2Sf.js","../chunks/DDSnUQRm.js","../chunks/Cw2wGIIF.js","../chunks/DQftmrar.js","../chunks/BfFtub1s.js","../chunks/qTkxire8.js","../chunks/DjMDWNJ7.js","../chunks/BhP1P8qK.js","../chunks/Bk5a3mpz.js","../assets/0.L_JIQDRp.css","../nodes/1.BVEe9iEK.js","../chunks/COV05J5X.js","../chunks/CbNCDuoM.js","../chunks/BE0jUqnW.js","../nodes/2.RR1YOyCb.js","../chunks/Cufvb6Zw.js","../chunks/ZS3-Rmiz.js","../chunks/CMjXfWsx.js","../chunks/BHXEmAAv.js","../chunks/BHzfkhi9.js","../chunks/CSdmp8B5.js","../chunks/B-nmsLlT.js","../nodes/3.BkDTDQeg.js","../nodes/4.eHdJLIz5.js","../nodes/5.CcZb26D-.js","../nodes/6.DE9pCGY5.js","../nodes/7.CKo-EeyV.js","../chunks/B2wIhe_H.js","../nodes/8.BwQCjOcq.js","../chunks/D55lYjHU.js","../assets/TranscriptViewer.llhQRHlA.css","../nodes/9.DCIZ0_N3.js"])))=>i.map(i=>d[i]); var G=r=>{throw TypeError(r)};var H=(r,t,s)=>t.has(r)||G("Cannot "+s);var u=(r,t,s)=>(H(r,t,"read from private field"),s?s.call(r):t.get(r)),T=(r,t,s)=>t.has(r)?G("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,s),V=(r,t,s,a)=>(H(r,t,"write to private field"),a?a.call(r,s):t.set(r,s),s);import{u as x,aR as F,m as E,Q as K,X as Z,q as M,e as N,z as $,A as tt,H as D,V as et,f as Q,v as k,s as rt,i as p,j as st,w as I,k as ot,r as nt,J as S,x as at,t as it}from"../chunks/DDSnUQRm.js";import{h as ct,m as lt,u as ut,s as mt}from"../chunks/Cw2wGIIF.js";import"../chunks/CWj6FrbW.js";import{o as dt}from"../chunks/C-E9t2Sf.js";import{i as j}from"../chunks/Cufvb6Zw.js";import{c as C}from"../chunks/BHzfkhi9.js";import{p as q,b as B}from"../chunks/BHXEmAAv.js";function ft(r){return class extends _t{constructor(t){super({component:r,...t})}}}var y,d;class _t{constructor(t){T(this,y);T(this,d);var v;var s=new Map,a=(o,e)=>{var i=M(e,!1,!1);return s.set(o,i),i};const m=new Proxy({...t.props||{},$$events:{}},{get(o,e){return E(s.get(e)??a(e,Reflect.get(o,e)))},has(o,e){return e===F?!0:(E(s.get(e)??a(e,Reflect.get(o,e))),Reflect.has(o,e))},set(o,e,i){return x(s.get(e)??a(e,i),i),Reflect.set(o,e,i)}});V(this,d,(t.hydrate?ct:lt)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((v=t==null?void 0:t.props)!=null&&v.$$host)||t.sync===!1)&&K(),V(this,y,m.$$events);for(const o of Object.keys(u(this,d)))o==="$set"||o==="$destroy"||o==="$on"||Z(this,o,{get(){return u(this,d)[o]},set(e){u(this,d)[o]=e},enumerable:!0});u(this,d).$set=o=>{Object.assign(m,o)},u(this,d).$destroy=()=>{ut(u(this,d))}}$set(t){u(this,d).$set(t)}$on(t,s){u(this,y)[t]=u(this,y)[t]||[];const a=(...m)=>s.call(this,...m);return u(this,y)[t].push(a),()=>{u(this,y)[t]=u(this,y)[t].filter(m=>m!==a)}}$destroy(){u(this,d).$destroy()}}y=new WeakMap,d=new WeakMap;const ht="modulepreload",vt=function(r,t){return new URL(r,t).href},J={},h=function(t,s,a){let m=Promise.resolve();if(s&&s.length>0){let o=function(c){return Promise.all(c.map(g=>Promise.resolve(g).then(P=>({status:"fulfilled",value:P}),P=>({status:"rejected",reason:P}))))};const e=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),w=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));m=o(s.map(c=>{if(c=vt(c,a),c in J)return;J[c]=!0;const g=c.endsWith(".css"),P=g?'[rel="stylesheet"]':"";if(!!a)for(let n=e.length-1;n>=0;n--){const l=e[n];if(l.href===c&&(!g||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${P}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":ht,g||(_.as="script"),_.crossOrigin="",_.href=c,w&&_.setAttribute("nonce",w),document.head.appendChild(_),g)return new Promise((n,l)=>{_.addEventListener("load",n),_.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${c}`)))})}))}function v(o){const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=o,window.dispatchEvent(e),!e.defaultPrevented)throw o}return m.then(o=>{for(const e of o||[])e.status==="rejected"&&v(e.reason);return t().catch(v)})},Vt={};var gt=Q('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Et=Q("<!> <!>",1);function yt(r,t){N(t,!0);let s=q(t,"components",23,()=>[]),a=q(t,"data_0",3,null),m=q(t,"data_1",3,null);$(()=>t.stores.page.set(t.page)),tt(()=>{t.stores,t.page,t.constructors,s(),t.form,a(),m(),t.stores.page.notify()});let v=D(!1),o=D(!1),e=D(null);dt(()=>{const n=t.stores.page.subscribe(()=>{E(v)&&(x(o,!0),et().then(()=>{x(e,document.title||"untitled page",!0)}))});return x(v,!0),n});const i=S(()=>t.constructors[1]);var w=Et(),c=k(w);{var g=n=>{var l=I();const O=S(()=>t.constructors[0]);var L=k(l);C(L,()=>E(O),(R,b)=>{B(b(R,{get data(){return a()},get form(){return t.form},children:(f,bt)=>{var z=I(),W=k(z);C(W,()=>E(i),(X,Y)=>{B(Y(X,{get data(){return m()},get form(){return t.form}}),A=>s()[1]=A,()=>{var A;return(A=s())==null?void 0:A[1]})}),p(f,z)},$$slots:{default:!0}}),f=>s()[0]=f,()=>{var f;return(f=s())==null?void 0:f[0]})}),p(n,l)},P=n=>{var l=I();const O=S(()=>t.constructors[0]);var L=k(l);C(L,()=>E(O),(R,b)=>{B(b(R,{get data(){return a()},get form(){return t.form}}),f=>s()[0]=f,()=>{var f;return(f=s())==null?void 0:f[0]})}),p(n,l)};j(c,n=>{t.constructors[1]?n(g):n(P,!1)})}var U=rt(c,2);{var _=n=>{var l=gt(),O=ot(l);{var L=R=>{var b=at();it(()=>mt(b,E(e))),p(R,b)};j(O,R=>{E(o)&&R(L)})}nt(l),p(n,l)};j(U,n=>{E(v)&&n(_)})}p(r,w),st()}const Dt=ft(yt),It=[()=>h(()=>import("../nodes/0.C-Q1pvve.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),()=>h(()=>import("../nodes/1.BVEe9iEK.js"),__vite__mapDeps([12,1,13,3,4,14,15,2,5,9]),import.meta.url),()=>h(()=>import("../nodes/2.RR1YOyCb.js"),__vite__mapDeps([16,1,2,3,4,5,17,18,6,7,8,9,19,15,20,21,22,23,13,14]),import.meta.url),()=>h(()=>import("../nodes/3.BkDTDQeg.js"),__vite__mapDeps([24,1,13,3,18,6,7,14]),import.meta.url),()=>h(()=>import("../nodes/4.eHdJLIz5.js"),__vite__mapDeps([25,1,13,3,4,17,18,6,7,23,14]),import.meta.url),()=>h(()=>import("../nodes/5.CcZb26D-.js"),__vite__mapDeps([26,1,13,3,4,17,18,7,14]),import.meta.url),()=>h(()=>import("../nodes/6.DE9pCGY5.js"),__vite__mapDeps([27,1,13,3,2,4,5,17,14]),import.meta.url),()=>h(()=>import("../nodes/7.CKo-EeyV.js"),__vite__mapDeps([28,1,3,4,17,29]),import.meta.url),()=>h(()=>import("../nodes/8.BwQCjOcq.js"),__vite__mapDeps([30,1,13,3,31,4,17,18,6,7,23,20,8,9,29,5,10,22,32]),import.meta.url),()=>h(()=>import("../nodes/9.DCIZ0_N3.js"),__vite__mapDeps([33,1,3,4,17,18,6,7,8,9,19,15,2,5,31,23,20,29,10,22,32]),import.meta.url)],St=[],jt={"/":[2],"/demo":[3],"/demo/message-rendering":[4],"/demo/message-shortlist":[5],"/perf-test":[6],"/test-new-api":[7],"/test-viewer":[8],"/transcript/[...path]":[9]},Pt={handleError:({error:r})=>{console.error(r)},reroute:()=>{},transport:{}},Rt=Object.fromEntries(Object.entries(Pt.transport).map(([r,t])=>[r,t.decode])),Ct=!1,qt=(r,t)=>Rt[r](t);export{qt as decode,Rt as decoders,jt as dictionary,Ct as hash,Pt as hooks,Vt as matchers,It as nodes,Dt as root,St as server_loads};