Spaces:
Running
Running
import{P as hl,s as ge,r as re,i as v,g as _,T as be,v as De,R as ie,U as Ve,N as Ke,e as R,b as j,d as Q,a9 as Ee,aa as je,z as ae,c as pe,u as Ce,m as ve,n as Se,a8 as $t,Q as el,q as st,l as Fe,X as qt,h as L,t as dt,M as X,j as Y,ap as Kr,L as ht,a as K,f as J,w as ce,x as de,aq as Pt,ar as pr,o as Ml,ab as Xl,ae as pl,y as Le,ah as Yi,al as Il,ag as Ql,p as ut,ac as xt,ak as gl,af as Jr,Y as Bt,a7 as Zr,G as Fl,H as Nl,F as xr,as as $r,at as es,aj as ts}from"../chunks/scheduler.C39PMv9a.js";import{S as ye,i as ke,g as me,a as C,c as he,t as k,h as Cr,j as Cl,f as ot,k as vl,b as $,d as ee,m as te,e as le}from"../chunks/index.Te5Nl1-a.js";import{c as ls,w as is,a3 as ns,m as ul,Z as Ki,l as vi,_ as rs,$ as Si,j as Ji,k as Pl,H as ss,d as os,G as fs,r as Bl,E as ql,q as as,g as Ne,e as Ye,u as vr,o as Sr,aW as us,aX as Sl,aY as cs,aZ as Jl,a_ as wr,a$ as Yl,b0 as ds,b1 as ms,b2 as hs,b3 as _s,b4 as gs,b5 as bs,v as Ct,I as Zl,b6 as Zi,b7 as cl,b8 as ys,b9 as ks,a4 as ps,ba as xi,bb as Ii,bc as Fi,bd as Cs,be as vs,bf as Ss,bg as Ai,Q as mt,bh as ws,bi as Ts,bj as $i,z as en}from"../chunks/VennDiagram.svelte_svelte_type_style_lang.-64_fZ65.js";import{w as bl,d as Tt,r as Es}from"../chunks/entry.galzRTFy.js";import{d as Os,u as As,g as tn,b as Ls,r as Ds,h as ln,c as Ms,e as Is,B as Fs,f as Vl,p as Ns}from"../chunks/button.Dx6ySXYj.js";import{I as Tr,f as et,t as It,m as wi,s as Ps,g as kt,e as zl,h as Bs}from"../chunks/CopyIcon.DryQyYGB.js";import{p as Ni}from"../chunks/stores.2b80P7Dd.js";import{t as nn,o as qs,g as Vs,c as Er,r as Or,b as Ar,d as zs,e as Pe,h as Rs}from"../chunks/utils.Ds_Ike6L.js";import{M as js,a as Lr,b as Gs}from"../chunks/index.BUqOVkrY.js";import{d as Li,Q as Dr,f as pt,D as Pi,g as Ul,b as ml,u as ft,C as Hs,e as Ws,n as Us,h as Di,c as rn,s as Xs,p as Mr,i as Ir,a as Fr,E as Nr,j as Qs}from"../chunks/colours.2ZU4LZol.js";import{s as _t,d as Pr,f as Ys}from"../chunks/index.Cx6KSiTC.js";import{C as Br,P as qr}from"../chunks/Prismjs.DNQj8cib.js";const Ks=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global,Mi=(n,e={serializeStrings:!0})=>n==null?"null":typeof n=="string"?e.serializeStrings!==!1?`'${n.replaceAll("'","''")}'`:n:typeof n=="number"||typeof n=="bigint"||typeof n=="boolean"?String(n):n instanceof Date?`'${n.toISOString()}'::TIMESTAMP_MS`:Array.isArray(n)?`[${n.map(t=>Mi(t,e)).join(", ")}]`:JSON.stringify(n),Js={positioning:{placement:"bottom"},arrowSize:8,defaultOpen:!1,disableFocusTrap:!1,closeOnEscape:!0,preventScroll:!1,onOpenChange:void 0,closeOnOutsideClick:!0,portal:void 0,forceVisible:!1,openFocus:void 0,closeFocus:void 0,onOutsideClick:void 0},{name:dl}=os("popover"),Zs=["trigger","content"];function xs(n){const e={...Js,...n},t=nn(ls(e,"open","ids")),{positioning:l,arrowSize:i,disableFocusTrap:r,preventScroll:s,closeOnEscape:f,closeOnOutsideClick:o,portal:a,forceVisible:u,openFocus:c,closeFocus:d,onOutsideClick:g}=t,m=e.open??bl(e.defaultOpen),h=qs(m,e==null?void 0:e.onOpenChange),b=is.writable(null),p=nn({...Vs(Zs),...e.ids});ns(()=>{b.set(document.getElementById(p.trigger.get()))});function y(){h.set(!1);const B=document.getElementById(p.trigger.get());ln({prop:d.get(),defaultEl:B})}const S=Os({open:h,activeTrigger:b,forceVisible:u}),E=ul(dl("content"),{stores:[S,a,p.content],returned:([B,O,M])=>({hidden:B&&Ki?void 0:!0,tabindex:-1,style:vi({display:B?void 0:"none"}),id:M,"data-state":B?"open":"closed","data-portal":rs(O)}),action:B=>{let O=ql;const M=Si([S,b,l,r,f,o,a],([q,se,Z,ne,z,I,G])=>{O(),!(!q||!se)&&hl().then(()=>{O(),O=As(B,{anchorElement:se,open:h,options:{floating:Z,focusTrap:ne?null:{returnFocusOnDeactivate:!1,clickOutsideDeactivates:I,allowOutsideClick:!0,escapeDeactivates:z},modal:{shouldCloseOnInteractOutside:U,onClose:y,open:q,closeOnInteractOutside:I},escapeKeydown:z?{handler:()=>{y()}}:null,portal:tn(B,G)}}).destroy})});return{destroy(){M(),O()}}}});function D(B){h.update(O=>!O),B&&B!==b.get()&&b.set(B)}function U(B){var q;if((q=g.get())==null||q(B),B.defaultPrevented)return!1;const O=B.target,M=document.getElementById(p.trigger.get());return!(M&&fs(O)&&(O===M||M.contains(O)))}const P=ul(dl("trigger"),{stores:[S,p.content,p.trigger],returned:([B,O,M])=>({role:"button","aria-haspopup":"dialog","aria-expanded":B?"true":"false","data-state":sn(B),"aria-controls":O,id:M}),action:B=>({destroy:Ji(Pl(B,"click",()=>{D(B)}),Pl(B,"keydown",M=>{M.key!==Bl.ENTER&&M.key!==Bl.SPACE||(M.preventDefault(),D(B))}))})}),w=ul(dl("overlay"),{stores:[S],returned:([B])=>({hidden:B?void 0:!0,tabindex:-1,style:vi({display:B?void 0:"none"}),"aria-hidden":"true","data-state":sn(B)}),action:B=>{let O=ql,M=ql,q=ql;if(f.get()){const se=ss(B,{handler:()=>{y()}});se&&se.destroy&&(O=se.destroy)}return M=Si([a],([se])=>{if(q(),se===null)return;const Z=tn(B,se);Z!==null&&(q=Ls(B,Z).destroy)}),{destroy(){O(),M(),q()}}}}),T=ul(dl("arrow"),{stores:i,returned:B=>({"data-arrow":!0,style:vi({position:"absolute",width:`var(--arrow-size, ${B}px)`,height:`var(--arrow-size, ${B}px)`})})}),N=ul(dl("close"),{returned:()=>({type:"button"}),action:B=>({destroy:Ji(Pl(B,"click",M=>{M.defaultPrevented||y()}),Pl(B,"keydown",M=>{M.defaultPrevented||M.key!==Bl.ENTER&&M.key!==Bl.SPACE||(M.preventDefault(),D())}))})});return Si([h,b,s],([B,O,M])=>{if(!Ki)return;const q=[];if(B){O||hl().then(()=>{const Z=document.getElementById(p.trigger.get());as(Z)&&b.set(Z)}),M&&q.push(Ds());const se=O??document.getElementById(p.trigger.get());ln({prop:c.get(),defaultEl:se})}return()=>{q.forEach(se=>se())}}),{ids:p,elements:{trigger:P,content:E,arrow:T,close:N,overlay:w},states:{open:h},options:t}}function sn(n){return n?"open":"closed"}function $s(){return{NAME:"separator",PARTS:["root"]}}function eo(n){const{NAME:e,PARTS:t}=$s(),l=Er(e,t),i={...Ms(Or(n)),getAttrs:l};return{...i,updateOption:Ar(i.options)}}const to=n=>({builder:n&4}),on=n=>({builder:n[2]});function lo(n){let e,t,l,i=[n[2],n[4]],r={};for(let s=0;s<i.length;s+=1)r=ie(r,i[s]);return{c(){e=R("div"),this.h()},l(s){e=j(s,"DIV",{}),Q(e).forEach(_),this.h()},h(){Ee(e,r)},m(s,f){v(s,e,f),n[10](e),t||(l=je(n[2].action(e)),t=!0)},p(s,f){Ee(e,r=Ne(i,[f&4&&s[2],f&16&&s[4]]))},i:ae,o:ae,d(s){s&&_(e),n[10](null),t=!1,l()}}}function io(n){let e;const t=n[9].default,l=pe(t,n,n[8],on);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&260)&&Ce(l,t,i,i[8],e?Se(t,i[8],r,to):ve(i[8]),on)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function no(n){let e,t,l,i;const r=[io,lo],s=[];function f(o,a){return o[1]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function ro(n,e,t){let l;const i=["orientation","decorative","asChild","el"];let r=be(e,i),s,{$$slots:f={},$$scope:o}=e,{orientation:a="horizontal"}=e,{decorative:u=!0}=e,{asChild:c=!1}=e,{el:d=void 0}=e;const{elements:{root:g},updateOption:m,getAttrs:h}=eo({orientation:a,decorative:u});De(n,g,y=>t(7,s=y));const b=h("root");function p(y){Ke[y?"unshift":"push"](()=>{d=y,t(0,d)})}return n.$$set=y=>{e=ie(ie({},e),Ve(y)),t(4,r=be(e,i)),"orientation"in y&&t(5,a=y.orientation),"decorative"in y&&t(6,u=y.decorative),"asChild"in y&&t(1,c=y.asChild),"el"in y&&t(0,d=y.el),"$$scope"in y&&t(8,o=y.$$scope)},n.$$.update=()=>{n.$$.dirty&32&&m("orientation",a),n.$$.dirty&64&&m("decorative",u),n.$$.dirty&128&&t(2,l=s),n.$$.dirty&4&&Object.assign(l,b)},[d,c,l,g,r,a,u,s,o,f,p]}let so=class extends ye{constructor(e){super(),ke(this,e,ro,no,ge,{orientation:5,decorative:6,asChild:1,el:0})}};function Vr(){return{NAME:"popover",PARTS:["arrow","close","content","trigger"]}}function oo(n){const{NAME:e,PARTS:t}=Vr(),l=Er(e,t),i={...xs({positioning:{placement:"bottom",gutter:0},...Or(n),forceVisible:!0}),getAttrs:l};return $t(e,i),{...i,updateOption:Ar(i.options)}}function Bi(){const{NAME:n}=Vr();return el(n)}function fo(n){const t={...{side:"bottom",align:"center"},...n},{options:{positioning:l}}=Bi();Is(l)(t)}const ao=n=>({ids:n&1}),fn=n=>({ids:n[0]});function uo(n){let e;const t=n[13].default,l=pe(t,n,n[12],fn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,[r]){l&&l.p&&(!e||r&4097)&&Ce(l,t,i,i[12],e?Se(t,i[12],r,ao):ve(i[12]),fn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function co(n,e,t){let l,{$$slots:i={},$$scope:r}=e,{disableFocusTrap:s=void 0}=e,{closeOnEscape:f=void 0}=e,{closeOnOutsideClick:o=void 0}=e,{preventScroll:a=void 0}=e,{portal:u=void 0}=e,{open:c=void 0}=e,{onOpenChange:d=void 0}=e,{openFocus:g=void 0}=e,{closeFocus:m=void 0}=e,{onOutsideClick:h=void 0}=e;const{updateOption:b,states:{open:p},ids:y}=oo({disableFocusTrap:s,closeOnEscape:f,closeOnOutsideClick:o,preventScroll:a,portal:u,defaultOpen:c,openFocus:g,closeFocus:m,onOutsideClick:h,onOpenChange:({next:E})=>(c!==E&&(d==null||d(E),t(2,c=E)),E),positioning:{gutter:0,offset:{mainAxis:1}}}),S=Tt([y.content,y.trigger],([E,D])=>({content:E,trigger:D}));return De(n,S,E=>t(0,l=E)),n.$$set=E=>{"disableFocusTrap"in E&&t(3,s=E.disableFocusTrap),"closeOnEscape"in E&&t(4,f=E.closeOnEscape),"closeOnOutsideClick"in E&&t(5,o=E.closeOnOutsideClick),"preventScroll"in E&&t(6,a=E.preventScroll),"portal"in E&&t(7,u=E.portal),"open"in E&&t(2,c=E.open),"onOpenChange"in E&&t(8,d=E.onOpenChange),"openFocus"in E&&t(9,g=E.openFocus),"closeFocus"in E&&t(10,m=E.closeFocus),"onOutsideClick"in E&&t(11,h=E.onOutsideClick),"$$scope"in E&&t(12,r=E.$$scope)},n.$$.update=()=>{n.$$.dirty&4&&c!==void 0&&p.set(c),n.$$.dirty&8&&b("disableFocusTrap",s),n.$$.dirty&16&&b("closeOnEscape",f),n.$$.dirty&32&&b("closeOnOutsideClick",o),n.$$.dirty&64&&b("preventScroll",a),n.$$.dirty&128&&b("portal",u),n.$$.dirty&512&&b("openFocus",g),n.$$.dirty&1024&&b("closeFocus",m),n.$$.dirty&2048&&b("onOutsideClick",h)},[l,S,c,s,f,o,a,u,d,g,m,h,r,i]}class mo extends ye{constructor(e){super(),ke(this,e,co,uo,ge,{disableFocusTrap:3,closeOnEscape:4,closeOnOutsideClick:5,preventScroll:6,portal:7,open:2,onOpenChange:8,openFocus:9,closeFocus:10,onOutsideClick:11})}}const ho=n=>({builder:n[0]&256}),an=n=>({builder:n[8]}),_o=n=>({builder:n[0]&256}),un=n=>({builder:n[8]}),go=n=>({builder:n[0]&256}),cn=n=>({builder:n[8]}),bo=n=>({builder:n[0]&256}),dn=n=>({builder:n[8]}),yo=n=>({builder:n[0]&256}),mn=n=>({builder:n[8]}),ko=n=>({builder:n[0]&256}),hn=n=>({builder:n[8]});function po(n){let e,t,l,i;const r=n[27].default,s=pe(r,n,n[26],an);let f=[n[8],n[12]],o={};for(let a=0;a<f.length;a+=1)o=ie(o,f[a]);return{c(){e=R("div"),s&&s.c(),this.h()},l(a){e=j(a,"DIV",{});var u=Q(e);s&&s.l(u),u.forEach(_),this.h()},h(){Ee(e,o)},m(a,u){v(a,e,u),s&&s.m(e,null),n[32](e),t=!0,l||(i=je(n[8].action(e)),l=!0)},p(a,u){s&&s.p&&(!t||u[0]&67109120)&&Ce(s,r,a,a[26],t?Se(r,a[26],u,ho):ve(a[26]),an),Ee(e,o=Ne(f,[u[0]&256&&a[8],u[0]&4096&&a[12]]))},i(a){t||(k(s,a),t=!0)},o(a){C(s,a),t=!1},d(a){a&&_(e),s&&s.d(a),n[32](null),l=!1,i()}}}function Co(n){let e,t,l,i,r;const s=n[27].default,f=pe(s,n,n[26],un);let o=[n[8],n[12]],a={};for(let u=0;u<o.length;u+=1)a=ie(a,o[u]);return{c(){e=R("div"),f&&f.c(),this.h()},l(u){e=j(u,"DIV",{});var c=Q(e);f&&f.l(c),c.forEach(_),this.h()},h(){Ee(e,a)},m(u,c){v(u,e,c),f&&f.m(e,null),n[31](e),l=!0,i||(r=je(n[8].action(e)),i=!0)},p(u,c){n=u,f&&f.p&&(!l||c[0]&67109120)&&Ce(f,s,n,n[26],l?Se(s,n[26],c,_o):ve(n[26]),un),Ee(e,a=Ne(o,[c[0]&256&&n[8],c[0]&4096&&n[12]]))},i(u){l||(k(f,u),t&&t.end(1),l=!0)},o(u){C(f,u),u&&(t=Cr(e,n[5],n[6])),l=!1},d(u){u&&_(e),f&&f.d(u),n[31](null),u&&t&&t.end(),i=!1,r()}}}function vo(n){let e,t,l,i,r;const s=n[27].default,f=pe(s,n,n[26],cn);let o=[n[8],n[12]],a={};for(let u=0;u<o.length;u+=1)a=ie(a,o[u]);return{c(){e=R("div"),f&&f.c(),this.h()},l(u){e=j(u,"DIV",{});var c=Q(e);f&&f.l(c),c.forEach(_),this.h()},h(){Ee(e,a)},m(u,c){v(u,e,c),f&&f.m(e,null),n[30](e),l=!0,i||(r=je(n[8].action(e)),i=!0)},p(u,c){n=u,f&&f.p&&(!l||c[0]&67109120)&&Ce(f,s,n,n[26],l?Se(s,n[26],c,go):ve(n[26]),cn),Ee(e,a=Ne(o,[c[0]&256&&n[8],c[0]&4096&&n[12]]))},i(u){l||(k(f,u),u&&(t||st(()=>{t=Cl(e,n[3],n[4]),t.start()})),l=!0)},o(u){C(f,u),l=!1},d(u){u&&_(e),f&&f.d(u),n[30](null),i=!1,r()}}}function So(n){let e,t,l,i,r,s;const f=n[27].default,o=pe(f,n,n[26],dn);let a=[n[8],n[12]],u={};for(let c=0;c<a.length;c+=1)u=ie(u,a[c]);return{c(){e=R("div"),o&&o.c(),this.h()},l(c){e=j(c,"DIV",{});var d=Q(e);o&&o.l(d),d.forEach(_),this.h()},h(){Ee(e,u)},m(c,d){v(c,e,d),o&&o.m(e,null),n[29](e),i=!0,r||(s=je(n[8].action(e)),r=!0)},p(c,d){n=c,o&&o.p&&(!i||d[0]&67109120)&&Ce(o,f,n,n[26],i?Se(f,n[26],d,bo):ve(n[26]),dn),Ee(e,u=Ne(a,[d[0]&256&&n[8],d[0]&4096&&n[12]]))},i(c){i||(k(o,c),c&&st(()=>{i&&(l&&l.end(1),t=Cl(e,n[3],n[4]),t.start())}),i=!0)},o(c){C(o,c),t&&t.invalidate(),c&&(l=Cr(e,n[5],n[6])),i=!1},d(c){c&&_(e),o&&o.d(c),n[29](null),c&&l&&l.end(),r=!1,s()}}}function wo(n){let e,t,l,i,r;const s=n[27].default,f=pe(s,n,n[26],mn);let o=[n[8],n[12]],a={};for(let u=0;u<o.length;u+=1)a=ie(a,o[u]);return{c(){e=R("div"),f&&f.c(),this.h()},l(u){e=j(u,"DIV",{});var c=Q(e);f&&f.l(c),c.forEach(_),this.h()},h(){Ee(e,a)},m(u,c){v(u,e,c),f&&f.m(e,null),n[28](e),l=!0,i||(r=je(n[8].action(e)),i=!0)},p(u,c){n=u,f&&f.p&&(!l||c[0]&67109120)&&Ce(f,s,n,n[26],l?Se(s,n[26],c,yo):ve(n[26]),mn),Ee(e,a=Ne(o,[c[0]&256&&n[8],c[0]&4096&&n[12]]))},i(u){l||(k(f,u),u&&st(()=>{l&&(t||(t=ot(e,n[1],n[2],!0)),t.run(1))}),l=!0)},o(u){C(f,u),u&&(t||(t=ot(e,n[1],n[2],!1)),t.run(0)),l=!1},d(u){u&&_(e),f&&f.d(u),n[28](null),u&&t&&t.end(),i=!1,r()}}}function To(n){let e;const t=n[27].default,l=pe(t,n,n[26],hn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r[0]&67109120)&&Ce(l,t,i,i[26],e?Se(t,i[26],r,ko):ve(i[26]),hn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Eo(n){let e,t,l,i;const r=[To,wo,So,vo,Co,po],s=[];function f(o,a){return o[7]&&o[9]?0:o[1]&&o[9]?1:o[3]&&o[5]&&o[9]?2:o[3]&&o[9]?3:o[5]&&o[9]?4:o[9]?5:-1}return~(e=f(n))&&(t=s[e]=r[e](n)),{c(){t&&t.c(),l=re()},l(o){t&&t.l(o),l=re()},m(o,a){~e&&s[e].m(o,a),v(o,l,a),i=!0},p(o,a){let u=e;e=f(o),e===u?~e&&s[e].p(o,a):(t&&(me(),C(s[u],1,1,()=>{s[u]=null}),he()),~e?(t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l)):t=null)},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),~e&&s[e].d(o)}}}function Oo(n,e,t){let l;const i=["transition","transitionConfig","inTransition","inTransitionConfig","outTransition","outTransitionConfig","asChild","id","side","align","sideOffset","alignOffset","collisionPadding","avoidCollisions","collisionBoundary","sameWidth","fitViewport","strategy","overlap","el"];let r=be(e,i),s,f,{$$slots:o={},$$scope:a}=e,{transition:u=void 0}=e,{transitionConfig:c=void 0}=e,{inTransition:d=void 0}=e,{inTransitionConfig:g=void 0}=e,{outTransition:m=void 0}=e,{outTransitionConfig:h=void 0}=e,{asChild:b=!1}=e,{id:p=void 0}=e,{side:y="bottom"}=e,{align:S="center"}=e,{sideOffset:E=0}=e,{alignOffset:D=0}=e,{collisionPadding:U=8}=e,{avoidCollisions:P=!0}=e,{collisionBoundary:w=void 0}=e,{sameWidth:T=!1}=e,{fitViewport:N=!1}=e,{strategy:B="absolute"}=e,{overlap:O=!1}=e,{el:M=void 0}=e;const{elements:{content:q},states:{open:se},ids:Z,getAttrs:ne}=Bi();De(n,q,H=>t(25,f=H)),De(n,se,H=>t(9,s=H));const z=ne("content");function I(H){Ke[H?"unshift":"push"](()=>{M=H,t(0,M)})}function G(H){Ke[H?"unshift":"push"](()=>{M=H,t(0,M)})}function x(H){Ke[H?"unshift":"push"](()=>{M=H,t(0,M)})}function fe(H){Ke[H?"unshift":"push"](()=>{M=H,t(0,M)})}function Oe(H){Ke[H?"unshift":"push"](()=>{M=H,t(0,M)})}return n.$$set=H=>{e=ie(ie({},e),Ve(H)),t(12,r=be(e,i)),"transition"in H&&t(1,u=H.transition),"transitionConfig"in H&&t(2,c=H.transitionConfig),"inTransition"in H&&t(3,d=H.inTransition),"inTransitionConfig"in H&&t(4,g=H.inTransitionConfig),"outTransition"in H&&t(5,m=H.outTransition),"outTransitionConfig"in H&&t(6,h=H.outTransitionConfig),"asChild"in H&&t(7,b=H.asChild),"id"in H&&t(13,p=H.id),"side"in H&&t(14,y=H.side),"align"in H&&t(15,S=H.align),"sideOffset"in H&&t(16,E=H.sideOffset),"alignOffset"in H&&t(17,D=H.alignOffset),"collisionPadding"in H&&t(18,U=H.collisionPadding),"avoidCollisions"in H&&t(19,P=H.avoidCollisions),"collisionBoundary"in H&&t(20,w=H.collisionBoundary),"sameWidth"in H&&t(21,T=H.sameWidth),"fitViewport"in H&&t(22,N=H.fitViewport),"strategy"in H&&t(23,B=H.strategy),"overlap"in H&&t(24,O=H.overlap),"el"in H&&t(0,M=H.el),"$$scope"in H&&t(26,a=H.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&8192&&p&&Z.content.set(p),n.$$.dirty[0]&33554432&&t(8,l=f),n.$$.dirty[0]&256&&Object.assign(l,z),n.$$.dirty[0]&33538560&&s&&fo({side:y,align:S,sideOffset:E,alignOffset:D,collisionPadding:U,avoidCollisions:P,collisionBoundary:w,sameWidth:T,fitViewport:N,strategy:B,overlap:O})},[M,u,c,d,g,m,h,b,l,s,q,se,r,p,y,S,E,D,U,P,w,T,N,B,O,f,a,o,I,G,x,fe,Oe]}let Ao=class extends ye{constructor(e){super(),ke(this,e,Oo,Eo,ge,{transition:1,transitionConfig:2,inTransition:3,inTransitionConfig:4,outTransition:5,outTransitionConfig:6,asChild:7,id:13,side:14,align:15,sideOffset:16,alignOffset:17,collisionPadding:18,avoidCollisions:19,collisionBoundary:20,sameWidth:21,fitViewport:22,strategy:23,overlap:24,el:0},null,[-1,-1])}};const Lo=n=>({builder:n&4}),_n=n=>({builder:n[2]}),Do=n=>({builder:n&4}),gn=n=>({builder:n[2]});function Mo(n){let e,t,l,i;const r=n[12].default,s=pe(r,n,n[11],_n);let f=[n[2],{type:"button"},n[6]],o={};for(let a=0;a<f.length;a+=1)o=ie(o,f[a]);return{c(){e=R("button"),s&&s.c(),this.h()},l(a){e=j(a,"BUTTON",{type:!0});var u=Q(e);s&&s.l(u),u.forEach(_),this.h()},h(){Ee(e,o)},m(a,u){v(a,e,u),s&&s.m(e,null),e.autofocus&&e.focus(),n[13](e),t=!0,l||(i=[je(n[2].action(e)),Fe(e,"m-click",n[5]),Fe(e,"m-keydown",n[5])],l=!0)},p(a,u){s&&s.p&&(!t||u&2052)&&Ce(s,r,a,a[11],t?Se(r,a[11],u,Lo):ve(a[11]),_n),Ee(e,o=Ne(f,[u&4&&a[2],{type:"button"},u&64&&a[6]]))},i(a){t||(k(s,a),t=!0)},o(a){C(s,a),t=!1},d(a){a&&_(e),s&&s.d(a),n[13](null),l=!1,qt(i)}}}function Io(n){let e;const t=n[12].default,l=pe(t,n,n[11],gn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&2052)&&Ce(l,t,i,i[11],e?Se(t,i[11],r,Do):ve(i[11]),gn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Fo(n){let e,t,l,i;const r=[Io,Mo],s=[];function f(o,a){return o[1]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function No(n,e,t){let l,i;const r=["asChild","id","el"];let s=be(e,r),f,o,{$$slots:a={},$$scope:u}=e,{asChild:c=!1}=e,{id:d=void 0}=e,{el:g=void 0}=e;const{elements:{trigger:m},states:{open:h},ids:b,getAttrs:p}=Bi();De(n,m,D=>t(9,f=D)),De(n,h,D=>t(10,o=D));const y=zs(),S=p("trigger");function E(D){Ke[D?"unshift":"push"](()=>{g=D,t(0,g)})}return n.$$set=D=>{e=ie(ie({},e),Ve(D)),t(6,s=be(e,r)),"asChild"in D&&t(1,c=D.asChild),"id"in D&&t(7,d=D.id),"el"in D&&t(0,g=D.el),"$$scope"in D&&t(11,u=D.$$scope)},n.$$.update=()=>{n.$$.dirty&128&&d&&b.trigger.set(d),n.$$.dirty&1024&&t(8,l={...S,"aria-controls":o?b.content:void 0}),n.$$.dirty&512&&t(2,i=f),n.$$.dirty&260&&Object.assign(i,l)},[g,c,i,m,h,y,s,d,l,f,o,u,a,E]}class Po extends ye{constructor(e){super(),ke(this,e,No,Fo,ge,{asChild:1,id:7,el:0})}}function Bo(n){let e,t;const l=n[2].default,i=pe(l,n,n[1],null);return{c(){e=R("div"),i&&i.c(),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=Q(e);i&&i.l(s),s.forEach(_),this.h()},h(){L(e,"class","contents"),dt(e,"print:hidden",n[0])},m(r,s){v(r,e,s),i&&i.m(e,null),t=!0},p(r,[s]){i&&i.p&&(!t||s&2)&&Ce(i,l,r,r[1],t?Se(l,r[1],s,null):ve(r[1]),null),(!t||s&1)&&dt(e,"print:hidden",r[0])},i(r){t||(k(i,r),t=!0)},o(r){C(i,r),t=!1},d(r){r&&_(e),i&&i.d(r)}}}function qo(n,e,t){let{$$slots:l={},$$scope:i}=e,{enabled:r=!0}=e;return n.$$set=s=>{"enabled"in s&&t(0,r=s.enabled),"$$scope"in s&&t(1,i=s.$$scope)},[r,i,l]}class Vo extends ye{constructor(e){super(),ke(this,e,qo,Bo,ge,{enabled:0})}}function bn(n,e,t){const l=n.slice();return l[22]=e[t],l}const zo=n=>({item:n&16}),yn=n=>({item:n[22].data});function Ro(n){let e;return{c(){e=ce("Missing template")},l(t){e=de(t,"Missing template")},m(t,l){v(t,e,l)},d(t){t&&_(e)}}}function kn(n,e){let t,l,i;const r=e[14].default,s=pe(r,e,e[13],yn),f=s||Ro();return{key:n,first:null,c(){t=R("div"),f&&f.c(),l=K(),this.h()},l(o){t=j(o,"DIV",{class:!0});var a=Q(t);f&&f.l(a),l=J(a),a.forEach(_),this.h()},h(){L(t,"class","row svelte-851usv"),this.first=t},m(o,a){v(o,t,a),f&&f.m(t,null),Y(t,l),i=!0},p(o,a){e=o,s&&s.p&&(!i||a&8208)&&Ce(s,r,e,e[13],i?Se(r,e[13],a,zo):ve(e[13]),yn)},i(o){i||(k(f,o),i=!0)},o(o){C(f,o),i=!1},d(o){o&&_(t),f&&f.d(o)}}}function jo(n){let e,t,l=[],i=new Map,r,s,f,o,a=Ye(n[4]);const u=c=>c[22].index;for(let c=0;c<a.length;c+=1){let d=bn(n,a,c),g=u(d);i.set(g,l[c]=kn(g,d))}return{c(){e=R("div"),t=R("div");for(let c=0;c<l.length;c+=1)l[c].c();this.h()},l(c){e=j(c,"DIV",{style:!0,class:!0});var d=Q(e);t=j(d,"DIV",{class:!0,style:!0});var g=Q(t);for(let m=0;m<l.length;m+=1)l[m].l(g);g.forEach(_),d.forEach(_),this.h()},h(){L(t,"class","contents svelte-851usv"),X(t,"padding-top",n[5]+"px"),X(t,"padding-bottom",n[6]+"px"),X(e,"height",n[0]),L(e,"class","viewport svelte-851usv"),st(()=>n[17].call(e))},m(c,d){v(c,e,d),Y(e,t);for(let g=0;g<l.length;g+=1)l[g]&&l[g].m(t,null);n[15](t),n[16](e),r=Kr(e,n[17].bind(e)),s=!0,f||(o=Fe(e,"scroll",n[7]),f=!0)},p(c,[d]){d&8208&&(a=Ye(c[4]),me(),l=vr(l,d,u,1,c,a,i,t,Sr,kn,null,bn),he()),(!s||d&32)&&X(t,"padding-top",c[5]+"px"),(!s||d&64)&&X(t,"padding-bottom",c[6]+"px"),(!s||d&1)&&X(e,"height",c[0])},i(c){if(!s){for(let d=0;d<a.length;d+=1)k(l[d]);s=!0}},o(c){for(let d=0;d<l.length;d+=1)C(l[d]);s=!1},d(c){c&&_(e);for(let d=0;d<l.length;d+=1)l[d].d();n[15](null),n[16](null),r(),f=!1,o()}}}function Go(n,e,t){let{$$slots:l={},$$scope:i}=e,{items:r}=e,{height:s="100%"}=e,{itemHeight:f=void 0}=e,{start:o=0}=e,{end:a=0}=e,u=[],c,d,g,m=0,h,b,p=0,y=0,S;async function E(T,N,B){const{scrollTop:O}=d;if(await hl(),!b)return;let M=p-O,q=o;for(;M<N&&q<T.length;){let Z=c[q-o];if(!Z){if(t(9,a=q+1),await hl(),!b)return;Z=c[q-o]}const ne=u[q]=B||(Z==null?void 0:Z.offsetHeight)||Number.MAX_SAFE_INTEGER;M+=ne,q+=1}t(9,a=q);const se=T.length-a;S=(p+M)/a,t(6,y=se*S),u.length=T.length}async function D(){var q,se;const{scrollTop:T}=d,N=o;for(let Z=0;Z<c.length;Z+=1)u[o+Z]=f||((q=c[Z])==null?void 0:q.offsetHeight)||Number.MAX_SAFE_INTEGER;let B=0,O=0;for(;B<r.length;){const Z=u[B]||S;if(O+Z>T){t(8,o=B),t(5,p=O);break}O+=Z,B+=1}for(;B<r.length&&(O+=u[B]||S,B+=1,!(O>T+m)););t(9,a=B);const M=r.length-a;for(S=O/a;B<r.length;)u[B++]=S;if(t(6,y=M*S),o<N){await hl();let Z=0,ne=0;for(let I=o;I<N;I+=1)c[I-o]&&(Z+=u[I],ne+=f||((se=c[I-o])==null?void 0:se.offsetHeight)||Number.MAX_SAFE_INTEGER);const z=ne-Z;d.scrollTo(0,T+z)}}ht(()=>(c=g.getElementsByClassName("row"),t(12,b=!0),()=>t(12,b=!1)));function U(T){Ke[T?"unshift":"push"](()=>{g=T,t(3,g)})}function P(T){Ke[T?"unshift":"push"](()=>{d=T,t(2,d)})}function w(){m=this.offsetHeight,t(1,m)}return n.$$set=T=>{"items"in T&&t(10,r=T.items),"height"in T&&t(0,s=T.height),"itemHeight"in T&&t(11,f=T.itemHeight),"start"in T&&t(8,o=T.start),"end"in T&&t(9,a=T.end),"$$scope"in T&&t(13,i=T.$$scope)},n.$$.update=()=>{n.$$.dirty&1792&&t(4,h=r.slice(o,a).map((T,N)=>({index:N+o,data:T}))),n.$$.dirty&7170&&b&&E(r,m,f)},[s,m,d,g,h,p,y,D,o,a,r,f,b,i,l,U,P,w]}class Ho extends ye{constructor(e){super(),ke(this,e,Go,jo,ge,{items:10,height:0,itemHeight:11,start:8,end:9})}}const zr=Symbol("EVIDENCE_DROPDOWN_CTX");function Wo(n,e,t){let{value:l}=e,{valueLabel:i=l}=e,{idx:r=-1}=e,{__auto:s=!1}=e;const f=el(zr);return ht(()=>f.registerOption({value:l,label:i,idx:r,__auto:s})),n.$$set=o=>{"value"in o&&t(0,l=o.value),"valueLabel"in o&&t(1,i=o.valueLabel),"idx"in o&&t(2,r=o.idx),"__auto"in o&&t(3,s=o.__auto)},[l,i,r,s]}class Zt extends ye{constructor(e){super(),ke(this,e,Wo,null,ge,{value:0,valueLabel:1,idx:2,__auto:3})}}function Uo(n){return Object.keys(n).reduce((e,t)=>n[t]===void 0?e:e+`${t}:${n[t]};`,"")}const Xo={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Kl(n,e,t,l){const i=Array.isArray(e)?e:[e];return i.forEach(r=>n.addEventListener(r,t,l)),()=>{i.forEach(r=>n.removeEventListener(r,t,l))}}function Rr(...n){return(...e)=>{for(const t of n)typeof t=="function"&&t(...e)}}const Qo=n=>n&4,Yo=n=>({}),pn=n=>({...n[2]}),Ko=n=>n&4,Jo=n=>({}),Cn=n=>({...n[2]});function Zo(n){let e,t,l=(n[0]??"")+"",i,r,s,f,o,a=[n[6]],u={};for(let h=0;h<a.length;h+=1)u=ie(u,a[h]);const c=n[18].default,d=pe(c,n,n[17],pn);let g=[n[5],n[7]],m={};for(let h=0;h<g.length;h+=1)m=ie(m,g[h]);return{c(){e=R("div"),t=R("label"),i=ce(l),r=K(),d&&d.c(),this.h()},l(h){e=j(h,"DIV",{});var b=Q(e);t=j(b,"LABEL",{});var p=Q(t);i=de(p,l),p.forEach(_),r=J(b),d&&d.l(b),b.forEach(_),this.h()},h(){Ee(t,u),Ee(e,m)},m(h,b){v(h,e,b),Y(e,t),Y(t,i),Y(e,r),d&&d.m(e,null),s=!0,f||(o=je(n[4].call(null,e)),f=!0)},p(h,b){(!s||b&1)&&l!==(l=(h[0]??"")+"")&&pr(i,l,u.contenteditable),d&&d.p&&(!s||b&131076)&&Ce(d,c,h,h[17],Qo(b)||!s?ve(h[17]):Se(c,h[17],b,Yo),pn),Ee(e,m=Ne(g,[h[5],b&128&&h[7]]))},i(h){s||(k(d,h),s=!0)},o(h){C(d,h),s=!1},d(h){h&&_(e),d&&d.d(h),f=!1,o()}}}function xo(n){let e;const t=n[18].default,l=pe(t,n,n[17],Cn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&131076)&&Ce(l,t,i,i[17],Ko(r)||!e?ve(i[17]):Se(t,i[17],r,Jo),Cn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function $o(n){let e,t,l,i;const r=[xo,Zo],s=[];function f(o,a){return o[1]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function ef(n,e,t){let l;const i=["label","shouldFilter","filter","value","onValueChange","loop","onKeydown","state","ids","asChild"];let r=be(e,i),s,{$$slots:f={},$$scope:o}=e,{label:a=void 0}=e,{shouldFilter:u=!0}=e,{filter:c=void 0}=e,{value:d=void 0}=e,{onValueChange:g=void 0}=e,{loop:m=void 0}=e,{onKeydown:h=void 0}=e,{state:b=void 0}=e,{ids:p=void 0}=e,{asChild:y=!1}=e;const{commandEl:S,handleRootKeydown:E,ids:D,state:U}=us({label:a,shouldFilter:u,filter:c,value:d,onValueChange:M=>{M!==d&&(t(8,d=M),g==null||g(M))},loop:m,state:b,ids:p});De(n,U,M=>t(16,s=M));function P(M){M&&M!==s.value&&Pt(U,s.value=M,s)}function w(M){return S.set(M),{destroy:Rr(Kl(M,"keydown",B))}}const T={role:"application",id:D.root,"data-cmdk-root":""},N={"data-cmdk-label":"",for:D.input,id:D.label,style:Uo(Xo)};function B(M){h==null||h(M),!M.defaultPrevented&&E(M)}const O={action:w,attrs:T};return n.$$set=M=>{e=ie(ie({},e),Ve(M)),t(7,r=be(e,i)),"label"in M&&t(0,a=M.label),"shouldFilter"in M&&t(9,u=M.shouldFilter),"filter"in M&&t(10,c=M.filter),"value"in M&&t(8,d=M.value),"onValueChange"in M&&t(11,g=M.onValueChange),"loop"in M&&t(12,m=M.loop),"onKeydown"in M&&t(13,h=M.onKeydown),"state"in M&&t(14,b=M.state),"ids"in M&&t(15,p=M.ids),"asChild"in M&&t(1,y=M.asChild),"$$scope"in M&&t(17,o=M.$$scope)},n.$$.update=()=>{n.$$.dirty&256&&P(d),n.$$.dirty&65536&&t(2,l={root:O,label:{attrs:N},stateStore:U,state:s})},[a,y,l,U,w,T,N,r,d,u,c,g,m,h,b,p,s,o,f]}let tf=class extends ye{constructor(e){super(),ke(this,e,ef,$o,ge,{label:0,shouldFilter:9,filter:10,value:8,onValueChange:11,loop:12,onKeydown:13,state:14,ids:15,asChild:1})}};const lf=n=>({}),vn=n=>({attrs:n[4]});function Sn(n){let e,t,l,i;const r=[rf,nf],s=[];function f(o,a){return o[0]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,a){let u=e;e=f(o),e===u?s[e].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function nf(n){let e,t;const l=n[8].default,i=pe(l,n,n[7],null);let r=[n[4],n[5]],s={};for(let f=0;f<r.length;f+=1)s=ie(s,r[f]);return{c(){e=R("div"),i&&i.c(),this.h()},l(f){e=j(f,"DIV",{});var o=Q(e);i&&i.l(o),o.forEach(_),this.h()},h(){Ee(e,s)},m(f,o){v(f,e,o),i&&i.m(e,null),t=!0},p(f,o){i&&i.p&&(!t||o&128)&&Ce(i,l,f,f[7],t?Se(l,f[7],o,null):ve(f[7]),null),Ee(e,s=Ne(r,[f[4],o&32&&f[5]]))},i(f){t||(k(i,f),t=!0)},o(f){C(i,f),t=!1},d(f){f&&_(e),i&&i.d(f)}}}function rf(n){let e;const t=n[8].default,l=pe(t,n,n[7],vn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&128)&&Ce(l,t,i,i[7],e?Se(t,i[7],r,lf):ve(i[7]),vn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function sf(n){let e,t,l=!n[1]&&n[2]&&Sn(n);return{c(){l&&l.c(),e=re()},l(i){l&&l.l(i),e=re()},m(i,r){l&&l.m(i,r),v(i,e,r),t=!0},p(i,[r]){!i[1]&&i[2]?l?(l.p(i,r),r&6&&k(l,1)):(l=Sn(i),l.c(),k(l,1),l.m(e.parentNode,e)):l&&(me(),C(l,1,1,()=>{l=null}),he())},i(i){t||(k(l),t=!0)},o(i){C(l),t=!1},d(i){i&&_(e),l&&l.d(i)}}}function of(n,e,t){let l;const i=["asChild"];let r=be(e,i),s,{$$slots:f={},$$scope:o}=e,{asChild:a=!1}=e,u=!0;ht(()=>{t(1,u=!1)});const c=Sl();De(n,c,g=>t(6,s=g));const d={"data-cmdk-empty":"",role:"presentation"};return n.$$set=g=>{e=ie(ie({},e),Ve(g)),t(5,r=be(e,i)),"asChild"in g&&t(0,a=g.asChild),"$$scope"in g&&t(7,o=g.$$scope)},n.$$.update=()=>{n.$$.dirty&64&&t(2,l=s.filtered.count===0)},[a,u,l,c,d,r,s,o,f]}class ff extends ye{constructor(e){super(),ke(this,e,of,sf,ge,{asChild:0})}}const af=n=>({container:n&32,group:n&16}),wn=n=>({container:n[5],group:n[4],heading:{attrs:n[8]}}),uf=n=>({container:n&32,group:n&16}),Tn=n=>({container:n[5],group:n[4],heading:{attrs:n[8]}});function cf(n){let e,t,l,i,r,s,f=n[0]&&En(n);const o=n[14].default,a=pe(o,n,n[13],wn);let u=[n[2]],c={};for(let m=0;m<u.length;m+=1)c=ie(c,u[m]);let d=[n[3],n[9]],g={};for(let m=0;m<d.length;m+=1)g=ie(g,d[m]);return{c(){e=R("div"),f&&f.c(),t=K(),l=R("div"),a&&a.c(),this.h()},l(m){e=j(m,"DIV",{});var h=Q(e);f&&f.l(h),t=J(h),l=j(h,"DIV",{});var b=Q(l);a&&a.l(b),b.forEach(_),h.forEach(_),this.h()},h(){Ee(l,c),Ee(e,g)},m(m,h){v(m,e,h),f&&f.m(e,null),Y(e,t),Y(e,l),a&&a.m(l,null),i=!0,r||(s=je(n[7].call(null,e)),r=!0)},p(m,h){m[0]?f?f.p(m,h):(f=En(m),f.c(),f.m(e,t)):f&&(f.d(1),f=null),a&&a.p&&(!i||h&8240)&&Ce(a,o,m,m[13],i?Se(o,m[13],h,af):ve(m[13]),wn),Ee(l,c=Ne(u,[h&4&&m[2]])),Ee(e,g=Ne(d,[h&8&&m[3],h&512&&m[9]]))},i(m){i||(k(a,m),i=!0)},o(m){C(a,m),i=!1},d(m){m&&_(e),f&&f.d(),a&&a.d(m),r=!1,s()}}}function df(n){let e;const t=n[14].default,l=pe(t,n,n[13],Tn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8240)&&Ce(l,t,i,i[13],e?Se(t,i[13],r,uf):ve(i[13]),Tn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function En(n){let e,t,l=[n[8]],i={};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return{c(){e=R("div"),t=ce(n[0]),this.h()},l(r){e=j(r,"DIV",{});var s=Q(e);t=de(s,n[0]),s.forEach(_),this.h()},h(){Ee(e,i)},m(r,s){v(r,e,s),Y(e,t)},p(r,s){s&1&&pr(t,r[0],i.contenteditable)},d(r){r&&_(e)}}}function mf(n){let e,t,l,i;const r=[df,cf],s=[];function f(o,a){return o[1]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function hf(n,e,t){let l,i,r,s;const f=["heading","value","alwaysRender","asChild"];let o=be(e,f),a,{$$slots:u={},$$scope:c}=e,{heading:d=void 0}=e,{value:g=""}=e,{alwaysRender:m=!1}=e,{asChild:h=!1}=e;const{id:b}=cs(m),p=Jl(),y=Sl(),S=wr(),E=Tt(y,P=>m||p.filter()===!1||!P.search?!0:P.filtered.groups.has(b));De(n,E,P=>t(12,a=P)),ht(()=>p.group(b));function D(P){if(g){p.value(b,g),P.setAttribute(Yl,g);return}d?t(10,g=d.trim().toLowerCase()):P.textContent&&t(10,g=P.textContent.trim().toLowerCase()),p.value(b,g),P.setAttribute(Yl,g)}const U={"data-cmdk-group-heading":"","aria-hidden":!0,id:S};return n.$$set=P=>{e=ie(ie({},e),Ve(P)),t(9,o=be(e,f)),"heading"in P&&t(0,d=P.heading),"value"in P&&t(10,g=P.value),"alwaysRender"in P&&t(11,m=P.alwaysRender),"asChild"in P&&t(1,h=P.asChild),"$$scope"in P&&t(13,c=P.$$scope)},n.$$.update=()=>{n.$$.dirty&5120&&t(3,l={"data-cmdk-group":"",role:"presentation",hidden:a?void 0:!0,"data-value":g}),n.$$.dirty&1&&t(2,i={"data-cmdk-group-items":"",role:"group","aria-labelledby":d?S:void 0}),n.$$.dirty&8&&t(5,r={action:D,attrs:l}),n.$$.dirty&4&&t(4,s={attrs:i})},[d,h,i,l,s,r,E,D,U,o,g,m,a,c,u]}class _f extends ye{constructor(e){super(),ke(this,e,hf,mf,ge,{heading:0,value:10,alwaysRender:11,asChild:1})}}function gf(n){return new Promise(e=>setTimeout(e,n))}const bf=n=>({attrs:n&8}),On=n=>({action:n[6],attrs:n[3]});function yf(n){let e,t,l,i=[n[3],n[7]],r={};for(let s=0;s<i.length;s+=1)r=ie(r,i[s]);return{c(){e=R("input"),this.h()},l(s){e=j(s,"INPUT",{}),this.h()},h(){Ee(e,r)},m(s,f){v(s,e,f),e.autofocus&&e.focus(),n[16](e),Xl(e,n[0]),t||(l=[Fe(e,"input",n[17]),je(n[6].call(null,e)),Fe(e,"input",n[12]),Fe(e,"focus",n[13]),Fe(e,"blur",n[14]),Fe(e,"change",n[15])],t=!0)},p(s,f){Ee(e,r=Ne(i,[f&8&&s[3],f&128&&s[7]])),f&1&&e.value!==s[0]&&Xl(e,s[0])},i:ae,o:ae,d(s){s&&_(e),n[16](null),t=!1,qt(l)}}}function kf(n){let e;const t=n[11].default,l=pe(t,n,n[10],On);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&1032)&&Ce(l,t,i,i[10],e?Se(t,i[10],r,bf):ve(i[10]),On)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function pf(n){let e,t,l,i;const r=[kf,yf],s=[];function f(o,a){return o[2]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function Cf(n,e,t){const l=["autofocus","value","asChild","el"];let i=be(e,l),r,s,{$$slots:f={},$$scope:o}=e;const{ids:a,commandEl:u}=Jl(),c=Sl(),d=Tt(c,O=>O.search);De(n,d,O=>t(18,s=O));const g=Tt(c,O=>O.value);let{autofocus:m=void 0}=e,{value:h=s}=e,{asChild:b=!1}=e,{el:p=void 0}=e;const y=Tt([g,u],([O,M])=>{if(!ds)return;const q=M==null?void 0:M.querySelector(`${ms}[${Yl}="${O}"]`);return q==null?void 0:q.getAttribute("id")});De(n,y,O=>t(9,r=O));function S(O){c.updateState("search",O)}function E(O){return m&&gf(10).then(()=>O.focus()),{destroy:Kl(O,"change",q=>{hs(q.target)&&c.updateState("search",q.target.value)})}}let D;function U(O){Ml.call(this,n,O)}function P(O){Ml.call(this,n,O)}function w(O){Ml.call(this,n,O)}function T(O){Ml.call(this,n,O)}function N(O){Ke[O?"unshift":"push"](()=>{p=O,t(1,p)})}function B(){h=this.value,t(0,h)}return n.$$set=O=>{e=ie(ie({},e),Ve(O)),t(7,i=be(e,l)),"autofocus"in O&&t(8,m=O.autofocus),"value"in O&&t(0,h=O.value),"asChild"in O&&t(2,b=O.asChild),"el"in O&&t(1,p=O.el),"$$scope"in O&&t(10,o=O.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&S(h),n.$$.dirty&512&&t(3,D={type:"text","data-cmdk-input":"",autocomplete:"off",autocorrect:"off",spellcheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":a.list,"aria-labelledby":a.label,"aria-activedescendant":r??void 0,id:a.input})},[h,p,b,D,d,y,E,i,m,r,o,f,U,P,w,T,N,B]}class vf extends ye{constructor(e){super(),ke(this,e,Cf,pf,ge,{autofocus:8,value:0,asChild:2,el:1})}}const Sf=n=>({attrs:n&4}),An=n=>({action:n[6],attrs:n[2]}),wf=n=>({attrs:n&4}),Ln=n=>({action:n[6],attrs:n[2]});function Dn(n){let e,t,l,i;const r=[Ef,Tf],s=[];function f(o,a){return o[0]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,a){let u=e;e=f(o),e===u?s[e].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function Tf(n){let e,t,l,i;const r=n[15].default,s=pe(r,n,n[14],An);let f=[n[2],n[7]],o={};for(let a=0;a<f.length;a+=1)o=ie(o,f[a]);return{c(){e=R("div"),s&&s.c(),this.h()},l(a){e=j(a,"DIV",{});var u=Q(e);s&&s.l(u),u.forEach(_),this.h()},h(){Ee(e,o)},m(a,u){v(a,e,u),s&&s.m(e,null),t=!0,l||(i=je(n[6].call(null,e)),l=!0)},p(a,u){s&&s.p&&(!t||u&16388)&&Ce(s,r,a,a[14],t?Se(r,a[14],u,Sf):ve(a[14]),An),Ee(e,o=Ne(f,[u&4&&a[2],u&128&&a[7]]))},i(a){t||(k(s,a),t=!0)},o(a){C(s,a),t=!1},d(a){a&&_(e),s&&s.d(a),l=!1,i()}}}function Ef(n){let e;const t=n[15].default,l=pe(t,n,n[14],Ln);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&16388)&&Ce(l,t,i,i[14],e?Se(t,i[14],r,wf):ve(i[14]),Ln)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Of(n){let e,t,l=(n[3]||n[1])&&Dn(n);return{c(){l&&l.c(),e=re()},l(i){l&&l.l(i),e=re()},m(i,r){l&&l.m(i,r),v(i,e,r),t=!0},p(i,[r]){i[3]||i[1]?l?(l.p(i,r),r&10&&k(l,1)):(l=Dn(i),l.c(),k(l,1),l.m(e.parentNode,e)):l&&(me(),C(l,1,1,()=>{l=null}),he())},i(i){t||(k(l),t=!0)},o(i){C(l),t=!1},d(i){i&&_(e),l&&l.d(i)}}}function Af(n,e,t){let l;const i=["disabled","value","onSelect","alwaysRender","asChild","id"];let r=be(e,i),s,f,{$$slots:o={},$$scope:a}=e,{disabled:u=!1}=e,{value:c=""}=e,{onSelect:d=void 0}=e,{alwaysRender:g=!1}=e,{asChild:m=!1}=e,{id:h=wr()}=e;const b=_s(),p=Jl(),y=Sl(),S=g??(b==null?void 0:b.alwaysRender),E=Tt(y,N=>{if(S||p.filter()===!1||!N.search)return!0;const B=N.filtered.items.get(h);return gs(B)?!1:B>0});De(n,E,N=>t(3,f=N));let D=!0;ht(()=>(t(1,D=!1),p.item(h,b==null?void 0:b.id)));const U=Tt(y,N=>N.value===c);De(n,U,N=>t(13,s=N));function P(N){!c&&N.textContent&&t(8,c=N.textContent.trim().toLowerCase()),p.value(h,c),N.setAttribute(Yl,c);const B=Rr(Kl(N,"pointermove",()=>{u||T()}),Kl(N,"click",()=>{u||w()}));return{destroy(){B()}}}function w(){T(),d==null||d(c)}function T(){y.updateState("value",c,!0)}return n.$$set=N=>{e=ie(ie({},e),Ve(N)),t(7,r=be(e,i)),"disabled"in N&&t(9,u=N.disabled),"value"in N&&t(8,c=N.value),"onSelect"in N&&t(10,d=N.onSelect),"alwaysRender"in N&&t(11,g=N.alwaysRender),"asChild"in N&&t(0,m=N.asChild),"id"in N&&t(12,h=N.id),"$$scope"in N&&t(14,a=N.$$scope)},n.$$.update=()=>{n.$$.dirty&13056&&t(2,l={"aria-disabled":u?!0:void 0,"aria-selected":s?!0:void 0,"data-disabled":u?!0:void 0,"data-selected":s?!0:void 0,"data-cmdk-item":"","data-value":c,role:"option",id:h})},[m,D,l,f,E,U,P,r,c,u,d,g,h,s,a,o]}class Lf extends ye{constructor(e){super(),ke(this,e,Af,Of,ge,{disabled:9,value:8,onSelect:10,alwaysRender:11,asChild:0,id:12})}}const Df=n=>({}),Mn=n=>({list:n[7],sizer:n[8]});function Mf(n){let e,t,l=n[2].search==="",i,r,s,f=In(n),o=[n[6]],a={};for(let d=0;d<o.length;d+=1)a=ie(a,o[d]);let u=[n[5],n[9]],c={};for(let d=0;d<u.length;d+=1)c=ie(c,u[d]);return{c(){e=R("div"),t=R("div"),f.c(),this.h()},l(d){e=j(d,"DIV",{});var g=Q(e);t=j(g,"DIV",{});var m=Q(t);f.l(m),m.forEach(_),g.forEach(_),this.h()},h(){Ee(t,a),Ee(e,c)},m(d,g){v(d,e,g),Y(e,t),f.m(t,null),n[12](e),i=!0,r||(s=je(n[4].call(null,t)),r=!0)},p(d,g){g&4&&ge(l,l=d[2].search==="")?(me(),C(f,1,1,ae),he(),f=In(d),f.c(),k(f,1),f.m(t,null)):f.p(d,g),Ee(e,c=Ne(u,[d[5],g&512&&d[9]]))},i(d){i||(k(f),i=!0)},o(d){C(f),i=!1},d(d){d&&_(e),f.d(d),n[12](null),r=!1,s()}}}function If(n){let e=n[2].search==="",t,l,i=Fn(n);return{c(){i.c(),t=re()},l(r){i.l(r),t=re()},m(r,s){i.m(r,s),v(r,t,s),l=!0},p(r,s){s&4&&ge(e,e=r[2].search==="")?(me(),C(i,1,1,ae),he(),i=Fn(r),i.c(),k(i,1),i.m(t.parentNode,t)):i.p(r,s)},i(r){l||(k(i),l=!0)},o(r){C(i),l=!1},d(r){r&&_(t),i.d(r)}}}function In(n){let e;const t=n[11].default,l=pe(t,n,n[10],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&1024)&&Ce(l,t,i,i[10],e?Se(t,i[10],r,null):ve(i[10]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Fn(n){let e;const t=n[11].default,l=pe(t,n,n[10],Mn);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&1024)&&Ce(l,t,i,i[10],e?Se(t,i[10],r,Df):ve(i[10]),Mn)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Ff(n){let e,t,l,i;const r=[If,Mf],s=[];function f(o,a){return o[1]?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function Nf(n,e,t){const l=["el","asChild"];let i=be(e,l),r,{$$slots:s={},$$scope:f}=e;const{ids:o}=Jl(),a=Sl();De(n,a,y=>t(2,r=y));let{el:u=void 0}=e,{asChild:c=!1}=e;function d(y){let S;const E=y.closest("[data-cmdk-list]");if(!bs(E))return;const D=new ResizeObserver(()=>{S=requestAnimationFrame(()=>{const U=y.offsetHeight;E.style.setProperty("--cmdk-list-height",U.toFixed(1)+"px")})});return D.observe(y),{destroy(){cancelAnimationFrame(S),D.unobserve(y)}}}const g={"data-cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:o.list,"aria-labelledby":o.input},m={"data-cmdk-list-sizer":""},h={attrs:g},b={attrs:m,action:d};function p(y){Ke[y?"unshift":"push"](()=>{u=y,t(0,u)})}return n.$$set=y=>{e=ie(ie({},e),Ve(y)),t(9,i=be(e,l)),"el"in y&&t(0,u=y.el),"asChild"in y&&t(1,c=y.asChild),"$$scope"in y&&t(10,f=y.$$scope)},[u,c,r,a,d,g,m,h,b,i,f,s,p]}class Pf extends ye{constructor(e){super(),ke(this,e,Nf,Ff,ge,{el:0,asChild:1})}}function Bf(n){let e;const t=n[3].default,l=pe(t,n,n[5],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&32)&&Ce(l,t,i,i[5],e?Se(t,i[5],r,null):ve(i[5]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function qf(n){let e,t,l;const i=[{class:Pe("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-gray-900",n[1])},n[2]];function r(f){n[4](f)}let s={$$slots:{default:[Bf]},$$scope:{ctx:n}};for(let f=0;f<i.length;f+=1)s=ie(s,i[f]);return n[0]!==void 0&&(s.value=n[0]),e=new tf({props:s}),Ke.push(()=>vl(e,"value",r)),{c(){$(e.$$.fragment)},l(f){ee(e.$$.fragment,f)},m(f,o){te(e,f,o),l=!0},p(f,[o]){const a=o&6?Ne(i,[o&2&&{class:Pe("flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-gray-900",f[1])},o&4&&Ct(f[2])]):{};o&32&&(a.$$scope={dirty:o,ctx:f}),!t&&o&1&&(t=!0,a.value=f[0],pl(()=>t=!1)),e.$set(a)},i(f){l||(k(e.$$.fragment,f),l=!0)},o(f){C(e.$$.fragment,f),l=!1},d(f){le(e,f)}}}function Vf(n,e,t){const l=["value","class"];let i=be(e,l),{$$slots:r={},$$scope:s}=e,{value:f=void 0}=e,{class:o=void 0}=e;function a(u){f=u,t(0,f)}return n.$$set=u=>{e=ie(ie({},e),Ve(u)),t(2,i=be(e,l)),"value"in u&&t(0,f=u.value),"class"in u&&t(1,o=u.class),"$$scope"in u&&t(5,s=u.$$scope)},[f,o,i,r,a,s]}class zf extends ye{constructor(e){super(),ke(this,e,Vf,qf,ge,{value:0,class:1})}}function Rf(n){let e;const t=n[2].default,l=pe(t,n,n[3],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&Ce(l,t,i,i[3],e?Se(t,i[3],r,null):ve(i[3]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function jf(n){let e,t;const l=[{class:Pe("py-6 text-center text-sm",n[0])},n[1]];let i={$$slots:{default:[Rf]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new ff({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&3?Ne(l,[s&1&&{class:Pe("py-6 text-center text-sm",r[0])},s&2&&Ct(r[1])]):{};s&8&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function Gf(n,e,t){const l=["class"];let i=be(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e;return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(1,i=be(e,l)),"class"in o&&t(0,f=o.class),"$$scope"in o&&t(3,s=o.$$scope)},[f,i,r,s]}class Hf extends ye{constructor(e){super(),ke(this,e,Gf,jf,ge,{class:0})}}function Wf(n){let e;const t=n[2].default,l=pe(t,n,n[3],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&Ce(l,t,i,i[3],e?Se(t,i[3],r,null):ve(i[3]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Uf(n){let e,t;const l=[{class:Pe("text-foreground overflow-hidden p-1 [&_[data-cmdk-group-heading]]:px-2 [&_[data-cmdk-group-heading]]:py-1.5 [&_[data-cmdk-group-heading]]:text-xs [&_[data-cmdk-group-heading]]:font-medium [&_[data-cmdk-group-heading]]:text-gray-500",n[0])},n[1]];let i={$$slots:{default:[Wf]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new _f({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&3?Ne(l,[s&1&&{class:Pe("text-foreground overflow-hidden p-1 [&_[data-cmdk-group-heading]]:px-2 [&_[data-cmdk-group-heading]]:py-1.5 [&_[data-cmdk-group-heading]]:text-xs [&_[data-cmdk-group-heading]]:font-medium [&_[data-cmdk-group-heading]]:text-gray-500",r[0])},s&2&&Ct(r[1])]):{};s&8&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function Xf(n,e,t){const l=["class"];let i=be(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e;return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(1,i=be(e,l)),"class"in o&&t(0,f=o.class),"$$scope"in o&&t(3,s=o.$$scope)},[f,i,r,s]}class Qf extends ye{constructor(e){super(),ke(this,e,Xf,Uf,ge,{class:0})}}function Yf(n){let e;const t=n[2].default,l=pe(t,n,n[3],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&Ce(l,t,i,i[3],e?Se(t,i[3],r,null):ve(i[3]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function Kf(n){let e,t;const l=[{class:Pe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-gray-100 aria-selected:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n[0])},n[1]];let i={$$slots:{default:[Yf]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new Lf({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&3?Ne(l,[s&1&&{class:Pe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-gray-100 aria-selected:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r[0])},s&2&&Ct(r[1])]):{};s&8&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function Jf(n,e,t){const l=["class"];let i=be(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e;return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(1,i=be(e,l)),"class"in o&&t(0,f=o.class),"$$scope"in o&&t(3,s=o.$$scope)},[f,i,r,s]}class qi extends ye{constructor(e){super(),ke(this,e,Jf,Kf,ge,{class:0})}}function Zf(n){let e,t,l,i,r,s;t=new Zl({props:{src:js,class:"mr-2 h-4 w-4 shrink-0 opacity-50"}});const f=[{class:Pe("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-gray-500 disabled:cursor-not-allowed disabled:opacity-50",n[1])},n[2]];function o(u){n[3](u)}let a={};for(let u=0;u<f.length;u+=1)a=ie(a,f[u]);return n[0]!==void 0&&(a.value=n[0]),i=new vf({props:a}),Ke.push(()=>vl(i,"value",o)),{c(){e=R("div"),$(t.$$.fragment),l=K(),$(i.$$.fragment),this.h()},l(u){e=j(u,"DIV",{class:!0,"data-cmdk-input-wrapper":!0});var c=Q(e);ee(t.$$.fragment,c),l=J(c),ee(i.$$.fragment,c),c.forEach(_),this.h()},h(){L(e,"class","flex items-center border-b px-3"),L(e,"data-cmdk-input-wrapper","")},m(u,c){v(u,e,c),te(t,e,null),Y(e,l),te(i,e,null),s=!0},p(u,[c]){const d=c&6?Ne(f,[c&2&&{class:Pe("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-gray-500 disabled:cursor-not-allowed disabled:opacity-50",u[1])},c&4&&Ct(u[2])]):{};!r&&c&1&&(r=!0,d.value=u[0],pl(()=>r=!1)),i.$set(d)},i(u){s||(k(t.$$.fragment,u),k(i.$$.fragment,u),s=!0)},o(u){C(t.$$.fragment,u),C(i.$$.fragment,u),s=!1},d(u){u&&_(e),le(t),le(i)}}}function xf(n,e,t){const l=["class","value"];let i=be(e,l),{class:r=void 0}=e,{value:s=""}=e;function f(o){s=o,t(0,s)}return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(2,i=be(e,l)),"class"in o&&t(1,r=o.class),"value"in o&&t(0,s=o.value)},[s,r,i,f]}class $f extends ye{constructor(e){super(),ke(this,e,xf,Zf,ge,{class:1,value:0})}}function ea(n){let e;const t=n[2].default,l=pe(t,n,n[3],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&8)&&Ce(l,t,i,i[3],e?Se(t,i[3],r,null):ve(i[3]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function ta(n){let e,t;const l=[{class:Pe("max-h-[300px] overflow-y-auto overflow-x-hidden",n[0])},n[1]];let i={$$slots:{default:[ea]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new Pf({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&3?Ne(l,[s&1&&{class:Pe("max-h-[300px] overflow-y-auto overflow-x-hidden",r[0])},s&2&&Ct(r[1])]):{};s&8&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function la(n,e,t){const l=["class"];let i=be(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e;return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(1,i=be(e,l)),"class"in o&&t(0,f=o.class),"$$scope"in o&&t(3,s=o.$$scope)},[f,i,r,s]}class ia extends ye{constructor(e){super(),ke(this,e,la,ta,ge,{class:0})}}function na(n){let e,t,l;return t=new Zl({props:{src:Lr,class:Pe("h-4 w-4",n[2]?"":"text-transparent")}}),{c(){e=R("div"),$(t.$$.fragment),this.h()},l(i){e=j(i,"DIV",{class:!0});var r=Q(e);ee(t.$$.fragment,r),r.forEach(_),this.h()},h(){L(e,"class","mr-2 flex h-4 w-4 items-center justify-center")},m(i,r){v(i,e,r),te(t,e,null),l=!0},p(i,r){const s={};r&4&&(s.class=Pe("h-4 w-4",i[2]?"":"text-transparent")),t.$set(s)},i(i){l||(k(t.$$.fragment,i),l=!0)},o(i){C(t.$$.fragment,i),l=!1},d(i){i&&_(e),le(t)}}}function ra(n){let e,t,l,i;return t=new Zl({props:{src:Lr,class:Pe("h-4 w-4")}}),{c(){e=R("div"),$(t.$$.fragment),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=Q(e);ee(t.$$.fragment,s),s.forEach(_),this.h()},h(){L(e,"class",l=Pe("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-gray-900",n[2]?"bg-gray-900 text-gray-50":"opacity-50 [&_svg]:invisible"))},m(r,s){v(r,e,s),te(t,e,null),i=!0},p(r,s){(!i||s&4&&l!==(l=Pe("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-gray-900",r[2]?"bg-gray-900 text-gray-50":"opacity-50 [&_svg]:invisible")))&&L(e,"class",l)},i(r){i||(k(t.$$.fragment,r),i=!0)},o(r){C(t.$$.fragment,r),i=!1},d(r){r&&_(e),le(t)}}}function sa(n){let e,t,l,i,r,s;const f=[ra,na],o=[];function a(u,c){return u[4]?0:1}return e=a(n),t=o[e]=f[e](n),{c(){t.c(),l=K(),i=R("span"),r=ce(n[1]),this.h()},l(u){t.l(u),l=J(u),i=j(u,"SPAN",{class:!0});var c=Q(i);r=de(c,n[1]),c.forEach(_),this.h()},h(){L(i,"class","line-clamp-4")},m(u,c){o[e].m(u,c),v(u,l,c),v(u,i,c),Y(i,r),s=!0},p(u,c){let d=e;e=a(u),e===d?o[e].p(u,c):(me(),C(o[d],1,1,()=>{o[d]=null}),he(),t=o[e],t?t.p(u,c):(t=o[e]=f[e](u),t.c()),k(t,1),t.m(l.parentNode,l)),(!s||c&2)&&Le(r,u[1])},i(u){s||(k(t),s=!0)},o(u){C(t),s=!1},d(u){u&&(_(l),_(i)),o[e].d(u)}}}function oa(n){let e,t;return e=new qi({props:{value:String(n[1]),onSelect:n[5],$$slots:{default:[sa]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,[i]){const r={};i&2&&(r.value=String(l[1])),i&11&&(r.onSelect=l[5]),i&86&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function fa(n,e,t){let{value:l}=e,{valueLabel:i=l}=e,{active:r=!1}=e,{handleSelect:s}=e,{multiple:f}=e;const o=()=>s({value:l,label:i});return n.$$set=a=>{"value"in a&&t(0,l=a.value),"valueLabel"in a&&t(1,i=a.valueLabel),"active"in a&&t(2,r=a.active),"handleSelect"in a&&t(3,s=a.handleSelect),"multiple"in a&&t(4,f=a.multiple)},[l,i,r,s,f,o]}class jr extends ye{constructor(e){super(),ke(this,e,fa,oa,ge,{value:0,valueLabel:1,active:2,handleSelect:3,multiple:4})}}function aa(n){let e;const t=n[6].default,l=pe(t,n,n[7],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&128)&&Ce(l,t,i,i[7],e?Se(t,i[7],r,null):ve(i[7]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function ua(n){let e,t;const l=[{transition:n[1]},{transitionConfig:n[2]},{align:n[3]},{sideOffset:n[4]},n[5],{class:Pe("z-50 w-72 rounded-md border bg-white p-4 text-gray-900 shadow-md outline-none",n[0])}];let i={$$slots:{default:[aa]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new Ao({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&63?Ne(l,[s&2&&{transition:r[1]},s&4&&{transitionConfig:r[2]},s&8&&{align:r[3]},s&16&&{sideOffset:r[4]},s&32&&Ct(r[5]),s&1&&{class:Pe("z-50 w-72 rounded-md border bg-white p-4 text-gray-900 shadow-md outline-none",r[0])}]):{};s&128&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function ca(n,e,t){const l=["class","transition","transitionConfig","align","sideOffset"];let i=be(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e,{transition:o=Rs}=e,{transitionConfig:a=void 0}=e,{align:u="center"}=e,{sideOffset:c=4}=e;return n.$$set=d=>{e=ie(ie({},e),Ve(d)),t(5,i=be(e,l)),"class"in d&&t(0,f=d.class),"transition"in d&&t(1,o=d.transition),"transitionConfig"in d&&t(2,a=d.transitionConfig),"align"in d&&t(3,u=d.align),"sideOffset"in d&&t(4,c=d.sideOffset),"$$scope"in d&&t(7,s=d.$$scope)},[f,o,a,u,c,i,r,s]}class da extends ye{constructor(e){super(),ke(this,e,ca,ua,ge,{class:0,transition:1,transitionConfig:2,align:3,sideOffset:4})}}const ma=mo,ha=Po;function _a(n){let e,t;const l=[{class:Pe("shrink-0 bg-gray-200",n[1]==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n[0])},{orientation:n[1]},{decorative:n[2]},n[3]];let i={};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new so({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,[s]){const f=s&15?Ne(l,[s&3&&{class:Pe("shrink-0 bg-gray-200",r[1]==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",r[0])},s&2&&{orientation:r[1]},s&4&&{decorative:r[2]},s&8&&Ct(r[3])]):{};e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function ga(n,e,t){const l=["class","orientation","decorative"];let i=be(e,l),{class:r=void 0}=e,{orientation:s="horizontal"}=e,{decorative:f=void 0}=e;return n.$$set=o=>{e=ie(ie({},e),Ve(o)),t(3,i=be(e,l)),"class"in o&&t(0,r=o.class),"orientation"in o&&t(1,s=o.orientation),"decorative"in o&&t(2,f=o.decorative)},[r,s,f,i]}class Gr extends ye{constructor(e){super(),ke(this,e,ga,_a,ge,{class:0,orientation:1,decorative:2})}}function Ti(n){let e,t,l;const i=n[5].default,r=pe(i,n,n[4],null);let s=[{href:n[1]},{class:t=Pe(Zi({variant:n[2],className:n[0]}))},n[3]],f={};for(let o=0;o<s.length;o+=1)f=ie(f,s[o]);return{c(){e=R(n[1]?"a":"span"),r&&r.c(),this.h()},l(o){e=j(o,((n[1]?"a":"span")||"null").toUpperCase(),{href:!0,class:!0});var a=Q(e);r&&r.l(a),a.forEach(_),this.h()},h(){Yi(n[1]?"a":"span")(e,f)},m(o,a){v(o,e,a),r&&r.m(e,null),l=!0},p(o,a){r&&r.p&&(!l||a&16)&&Ce(r,i,o,o[4],l?Se(i,o[4],a,null):ve(o[4]),null),Yi(o[1]?"a":"span")(e,f=Ne(s,[(!l||a&2)&&{href:o[1]},(!l||a&5&&t!==(t=Pe(Zi({variant:o[2],className:o[0]}))))&&{class:t},a&8&&o[3]]))},i(o){l||(k(r,o),l=!0)},o(o){C(r,o),l=!1},d(o){o&&_(e),r&&r.d(o)}}}function ba(n){let e=n[1]?"a":"span",t,l,i=(n[1]?"a":"span")&&Ti(n);return{c(){i&&i.c(),t=re()},l(r){i&&i.l(r),t=re()},m(r,s){i&&i.m(r,s),v(r,t,s),l=!0},p(r,[s]){r[1],e?ge(e,r[1]?"a":"span")?(i.d(1),i=Ti(r),e=r[1]?"a":"span",i.c(),i.m(t.parentNode,t)):i.p(r,s):(i=Ti(r),e=r[1]?"a":"span",i.c(),i.m(t.parentNode,t))},i(r){l||(k(i,r),l=!0)},o(r){C(i,r),l=!1},d(r){r&&_(t),i&&i.d(r)}}}function ya(n,e,t){const l=["class","href","variant"];let i=be(e,l),{$$slots:r={},$$scope:s}=e,{class:f=void 0}=e,{href:o=void 0}=e,{variant:a="default"}=e;return n.$$set=u=>{e=ie(ie({},e),Ve(u)),t(3,i=be(e,l)),"class"in u&&t(0,f=u.class),"href"in u&&t(1,o=u.href),"variant"in u&&t(2,a=u.variant),"$$scope"in u&&t(4,s=u.$$scope)},[f,o,a,i,s,r]}class Vi extends ye{constructor(e){super(),ke(this,e,ya,ba,ge,{class:0,href:1,variant:2})}}function Nn(n){return t=>t.map(l=>{var i;const r={},s=Object.keys(l);for(const f of s){const o=(i=n[f])!=null?i:f;r[o]=l[f]}return r})}function ka(n,e){if(n.length===0||e.length===0)return{};const t=Object.keys(n[0]),l=Object.keys(e[0]),i={};for(const r of t)l.includes(r)&&(i[r]=r);return i}function pa(n,e,t){for(const l in t){const i=t[l];if(n[i]!==e[l])return!1}return!0}function Ca(n,e){return l=>{if(!n.length)return l;const i=ka(l,n),r=Object.keys(n[0]);return l.flatMap(f=>{const o=n.filter(u=>pa(f,u,i));if(o.length)return o.map(u=>({...f,...u}));const a=Object.fromEntries(r.filter(u=>f[u]==null).map(u=>[u,void 0]));return{...f,...a}})}}function Pn(n){return t=>{const l=t.map(i=>({...i}));for(const i in n){const r=n[i],s=typeof r=="function"?r(l):r,f=s!=null&&s[Symbol.iterator]&&typeof s!="string"?s:t.map(()=>s);let o=-1;for(const a of l)a[i]=f[++o]}return l}}function va(n){return t=>{const l=wa(n),i=[];for(const r in l){const s=l[r];let f;typeof s=="function"?f=s(t):Array.isArray(s)?f=s:f=Array.from(new Set(t.map(o=>o[r]))),i.push(f.map(o=>({[r]:o})))}return Sa(i)}}function Sa(n){function e(l,i,r){if(!r.length&&i!=null){l.push(i);return}const s=r[0],f=r.slice(1);for(const o of s)e(l,{...i,...o},f)}const t=[];return e(t,null,n),t}function wa(n){if(Array.isArray(n)){const e={};for(const t of n)e[t]=t;return e}else if(typeof n=="object")return n;return{[n]:n}}function Ta(n){return t=>{const l=[];for(const i of t){const r={...i};for(const s in n)r[s]==null&&(r[s]=n[s]);l.push(r)}return l}}function Bn(n,e){return l=>{const i=va(n)(l),r=Ca(l)(i);return e?Ta(e)(r):r}}function qn(n,e,t){return n==null||e==null?void 0:e===0&&n===0?0:!t&&e===0?void 0:n/e}function Vn(n,e,t){const l=typeof n=="function"?n:f=>f[n],i=f=>f[e],{predicate:r,allowDivideByZero:s}={};return r==null?(f,o,a)=>{const u=i(f),c=l(f,o,a);return qn(c,u,s)}:(f,o,a)=>{if(!r(f,o,a))return;const u=i(f),c=l(f,o,a);return qn(c,u,s)}}const Hr=(n,e=200)=>{const t=[],l=Li(()=>{n([...t]),t.length=0},e);return(...i)=>(t.push(...i),l())},Ft=Object.freeze({REMOVE_ON_DESELECT:Symbol("removeOnDeselect"),IGNORE_SELECTED:Symbol("ignoreSelected"),FORCE_SELECT:Symbol("forceSelect"),FORCE_DESELECT:Symbol("forceDeselect")}),Ei=Hr,Ea=Hr,Rl=(n,e)=>n.value===e.value&&n.label===e.label,zn=n=>String(n.value)+String(n.label),Oa=(n=!1,e=100)=>{const t=bl([]),l=m=>{const h=new Set;return m=m.reduce((b,p)=>(h.has(zn(p))||(h.add(zn(p)),b.push(p)),b),[]),m=m.sort((b,p)=>b.__auto&&!p.__auto?1:p.__auto&&!b.__auto||b.removeOnDeselect&&b.selected?-1:p.removeOnDeselect&&p.selected?1:b.idx!==p.idx?b.idx-p.idx:typeof b.label<"u"&&b.label!==null&&typeof p.label<"u"&&p.label!==null&&b.label!==p.label?b.label.toString().localeCompare(p.label.toString()):typeof b.value=="number"&&typeof p.value=="number"?b.value-p.value:b.value!==null&&typeof b.value<"u"&&p.value!==null&&typeof p.value<"u"?b.value.toString().localeCompare(p.value.toString()):0),m},i=Tt(t,m=>m.filter(h=>h.selected)),r=[];let s=cl();s.resolve();let f=cl();f.resolve();let o=cl();o.resolve();const a=Ei(async m=>{await o.promise;try{if(m=m.map(h=>({...h,idx:h.idx??-1,removeOnDeselect:h.removeOnDeselect??!1})),!m.length)return;t.update(h=>(h.push(...m),l(h)))}finally{s.resolve()}},e),u=Ei(async m=>{await o.promise;try{if(!m.length)return;t.update(h=>(h=h.filter(b=>!!(!m.some(y=>Rl(b,y))||b.selected&&!b.ignoreSelected)),l(h)))}finally{f.resolve()}},e),c=Ea(m=>{try{if(!m.length)return;t.update(h=>(h=h.map(b=>{const p=m.filter(([y])=>Rl(b,y));for(const y of p)switch(y[1]){case Ft.REMOVE_ON_DESELECT:b.removeOnDeselect=!b.removeOnDeselect;break;case Ft.IGNORE_SELECTED:b.ignoreSelected=!b.ignoreSelected;break;case Ft.FORCE_SELECT:b.selected=!0;break;case Ft.FORCE_DESELECT:b.selected=!0;break}return b}),l(h)))}finally{o.resolve()}},e),d=m=>{m&&t.update(h=>{const b=h.find(p=>p.value===m.value&&p.label===m.label);return n?b&&(b.selected=!b.selected):h=h.map(p=>(Rl(p,m)?p.selected=!0:p.selected=!1,p)),l(h)})},g=(m,h)=>{for(const b of h)b.selected&&b.removeOnDeselect&&m.filter(y=>Rl(y,b)).length%2===1&&u(b)};return{options:Es(t),destroy(){r.forEach(m=>m())},selectedOptions:i,addOption:m=>{s.state!=="loading"&&(s=cl(),s.start()),a(m)},removeOption:m=>{f.state!=="loading"&&(f=cl(),f.start()),u(m)},flagOption:m=>{o.state!=="loading"&&o.start(),c(m)},select:Ei(async m=>{await Promise.all([s.promise,f.promise,o.promise]),g(m,Il(t)),m.map(h=>d(h))},e),deselectAll:(m=!1)=>{g(Il(i),Il(t));for(const h of Il(i))m&&!h.__auto||d(h)},get flushed(){return Promise.all([s.promise,f.promise,o.promise])}}},{Boolean:Wr}=Ks;function Rn(n,e,t){const l=n.slice();return l[52]=e[t],l[54]=t,l}function jn(n,e,t){const l=n.slice();return l[52]=e[t],l}function Gn(n,e,t){const l=n.slice();return l[59]=e[t],l}function Hn(n,e){let t,l,i;return l=new Zt({props:{value:e[59].value,valueLabel:e[59].label,idx:Jn(e[59]),__auto:!0}}),{key:n,first:null,c(){t=re(),$(l.$$.fragment),this.h()},l(r){t=re(),ee(l.$$.fragment,r),this.h()},h(){this.first=t},m(r,s){v(r,t,s),te(l,r,s),i=!0},p(r,s){e=r;const f={};s[1]&134217728&&(f.value=e[59].value),s[1]&134217728&&(f.valueLabel=e[59].label),s[1]&134217728&&(f.idx=Jn(e[59])),l.$set(f)},i(r){i||(k(l.$$.fragment,r),i=!0)},o(r){C(l.$$.fragment,r),i=!1},d(r){r&&_(t),le(l,r)}}}function Aa(n){let e=[],t=new Map,l,i,r=Ye(n[58]??[]);const s=f=>{var o,a,u;return((o=f[59].value)==null?void 0:o.toString())+((a=f[59].label)==null?void 0:a.toString())+((u=f[59].similarity)==null?void 0:u.toString())};for(let f=0;f<r.length;f+=1){let o=Gn(n,r,f),a=s(o);t.set(a,e[f]=Hn(a,o))}return{c(){for(let f=0;f<e.length;f+=1)e[f].c();l=re()},l(f){for(let o=0;o<e.length;o+=1)e[o].l(f);l=re()},m(f,o){for(let a=0;a<e.length;a+=1)e[a]&&e[a].m(f,o);v(f,l,o),i=!0},p(f,o){o[1]&134217728&&(r=Ye(f[58]??[]),me(),e=vr(e,o,s,1,f,r,t,l.parentNode,Sr,Hn,l,Gn),he())},i(f){if(!i){for(let o=0;o<r.length;o+=1)k(e[o]);i=!0}},o(f){for(let o=0;o<e.length;o+=1)C(e[o]);i=!1},d(f){f&&_(l);for(let o=0;o<e.length;o+=1)e[o].d(f)}}}function La(n){let e;return{c(){e=R("div"),this.h()},l(t){e=j(t,"DIV",{slot:!0}),Q(e).forEach(_),this.h()},h(){L(e,"slot","skeleton")},m(t,l){v(t,e,l)},p:ae,d(t){t&&_(e)}}}function Da(n){let e,t,l;function i(s){n[41](s)}let r={$$slots:{default:[xa]},$$scope:{ctx:n}};return n[9]!==void 0&&(r.open=n[9]),e=new ma({props:r}),Ke.push(()=>vl(e,"open",i)),{c(){$(e.$$.fragment)},l(s){ee(e.$$.fragment,s)},m(s,f){te(e,s,f),l=!0},p(s,f){const o={};f[0]&6711|f[1]&2048&&(o.$$scope={dirty:f,ctx:s}),!t&&f[0]&512&&(t=!0,o.open=s[9],pl(()=>t=!1)),e.$set(o)},i(s){l||(k(e.$$.fragment,s),l=!0)},o(s){C(e.$$.fragment,s),l=!1},d(s){le(e,s)}}}function Ma(n){let e,t,l="error",i,r,s=n[8].error+"",f;return{c(){e=R("span"),t=R("span"),t.textContent=l,i=K(),r=R("span"),f=ce(s),this.h()},l(o){e=j(o,"SPAN",{class:!0});var a=Q(e);t=j(a,"SPAN",{class:!0,"data-svelte-h":!0}),ut(t)!=="svelte-1927df"&&(t.textContent=l),i=J(a),r=j(a,"SPAN",{class:!0});var u=Q(r);f=de(u,s),u.forEach(_),a.forEach(_),this.h()},h(){L(t,"class","inline font-sans font-medium text-xs text-red-600"),L(r,"class","hidden text-white font-sans group-hover:inline absolute -top-1 left-[105%] text-sm z-10 px-2 py-1 bg-gray-800/80 leading-relaxed min-w-[150px] w-max max-w-[400px] rounded-md"),L(e,"class","group inline-flex items-center relative cursor-help cursor-helpfont-sans px-1 border border-red-200 py-[1px] bg-red-50 rounded")},m(o,a){v(o,e,a),Y(e,t),Y(e,i),Y(e,r),Y(r,f)},p(o,a){a[0]&256&&s!==(s=o[8].error+"")&&Le(f,s)},i:ae,o:ae,d(o){o&&_(e)}}}function Ia(n){let e=(n[0]??pt(n[1]))+"",t;return{c(){t=ce(e)},l(l){t=de(l,e)},m(l,i){v(l,t,i)},p(l,i){i[0]&3&&e!==(e=(l[0]??pt(l[1]))+"")&&Le(t,e)},i:ae,o:ae,d(l){l&&_(t)}}}function Fa(n){let e=n[12][0].label+"",t;return{c(){t=ce(e)},l(l){t=de(l,e)},m(l,i){v(l,t,i)},p(l,i){i[0]&4096&&e!==(e=l[12][0].label+"")&&Le(t,e)},i:ae,o:ae,d(l){l&&_(t)}}}function Na(n){let e,t,l,i,r=n[12].length>0&&Wn(n);return{c(){e=ce(n[0]),t=K(),r&&r.c(),l=re()},l(s){e=de(s,n[0]),t=J(s),r&&r.l(s),l=re()},m(s,f){v(s,e,f),v(s,t,f),r&&r.m(s,f),v(s,l,f),i=!0},p(s,f){(!i||f[0]&1)&&Le(e,s[0]),s[12].length>0?r?(r.p(s,f),f[0]&4096&&k(r,1)):(r=Wn(s),r.c(),k(r,1),r.m(l.parentNode,l)):r&&(me(),C(r,1,1,()=>{r=null}),he())},i(s){i||(k(r),i=!0)},o(s){C(r),i=!1},d(s){s&&(_(e),_(t),_(l)),r&&r.d(s)}}}function Wn(n){let e,t,l=n[12][0].label+"",i,r;return e=new Gr({props:{orientation:"vertical",class:"mx-2 h-4"}}),{c(){$(e.$$.fragment),t=K(),i=ce(l)},l(s){ee(e.$$.fragment,s),t=J(s),i=de(s,l)},m(s,f){te(e,s,f),v(s,t,f),v(s,i,f),r=!0},p(s,f){(!r||f[0]&4096)&&l!==(l=s[12][0].label+"")&&Le(i,l)},i(s){r||(k(e.$$.fragment,s),r=!0)},o(s){C(e.$$.fragment,s),r=!1},d(s){s&&(_(t),_(i)),le(e,s)}}}function Un(n){let e,t,l,i,r,s,f,o;e=new Gr({props:{orientation:"vertical",class:"mx-2 h-4"}}),l=new Vi({props:{variant:"secondary",class:"rounded-sm px-1 font-normal sm:hidden",$$slots:{default:[Pa]},$$scope:{ctx:n}}});const a=[qa,Ba],u=[];function c(d,g){return d[12].length>3?0:1}return s=c(n),f=u[s]=a[s](n),{c(){$(e.$$.fragment),t=K(),$(l.$$.fragment),i=K(),r=R("div"),f.c(),this.h()},l(d){ee(e.$$.fragment,d),t=J(d),ee(l.$$.fragment,d),i=J(d),r=j(d,"DIV",{class:!0});var g=Q(r);f.l(g),g.forEach(_),this.h()},h(){L(r,"class","hidden space-x-1 sm:flex")},m(d,g){te(e,d,g),v(d,t,g),te(l,d,g),v(d,i,g),v(d,r,g),u[s].m(r,null),o=!0},p(d,g){const m={};g[0]&4096|g[1]&2048&&(m.$$scope={dirty:g,ctx:d}),l.$set(m);let h=s;s=c(d),s===h?u[s].p(d,g):(me(),C(u[h],1,1,()=>{u[h]=null}),he(),f=u[s],f?f.p(d,g):(f=u[s]=a[s](d),f.c()),k(f,1),f.m(r,null))},i(d){o||(k(e.$$.fragment,d),k(l.$$.fragment,d),k(f),o=!0)},o(d){C(e.$$.fragment,d),C(l.$$.fragment,d),C(f),o=!1},d(d){d&&(_(t),_(i),_(r)),le(e,d),le(l,d),u[s].d()}}}function Pa(n){let e=n[12].length+"",t;return{c(){t=ce(e)},l(l){t=de(l,e)},m(l,i){v(l,t,i)},p(l,i){i[0]&4096&&e!==(e=l[12].length+"")&&Le(t,e)},d(l){l&&_(t)}}}function Ba(n){let e,t,l=Ye(n[12]),i=[];for(let s=0;s<l.length;s+=1)i[s]=Xn(jn(n,l,s));const r=s=>C(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=re()},l(s){for(let f=0;f<i.length;f+=1)i[f].l(s);e=re()},m(s,f){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(s,f);v(s,e,f),t=!0},p(s,f){if(f[0]&4096){l=Ye(s[12]);let o;for(o=0;o<l.length;o+=1){const a=jn(s,l,o);i[o]?(i[o].p(a,f),k(i[o],1)):(i[o]=Xn(a),i[o].c(),k(i[o],1),i[o].m(e.parentNode,e))}for(me(),o=l.length;o<i.length;o+=1)r(o);he()}},i(s){if(!t){for(let f=0;f<l.length;f+=1)k(i[f]);t=!0}},o(s){i=i.filter(Wr);for(let f=0;f<i.length;f+=1)C(i[f]);t=!1},d(s){s&&_(e),xt(i,s)}}}function qa(n){let e,t;return e=new Vi({props:{variant:"secondary",class:"rounded-sm px-1 font-normal",$$slots:{default:[za]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&4096|i[1]&2048&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Va(n){let e=n[52].label+"",t,l;return{c(){t=ce(e),l=K()},l(i){t=de(i,e),l=J(i)},m(i,r){v(i,t,r),v(i,l,r)},p(i,r){r[0]&4096&&e!==(e=i[52].label+"")&&Le(t,e)},d(i){i&&(_(t),_(l))}}}function Xn(n){let e,t;return e=new Vi({props:{variant:"secondary",class:"rounded-sm px-1 font-normal",$$slots:{default:[Va]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&4096|i[1]&2048&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function za(n){let e=n[12].length+"",t,l;return{c(){t=ce(e),l=ce(" Selected")},l(i){t=de(i,e),l=de(i," Selected")},m(i,r){v(i,t,r),v(i,l,r)},p(i,r){r[0]&4096&&e!==(e=i[12].length+"")&&Le(t,e)},d(i){i&&(_(t),_(l))}}}function Ra(n){let e,t,l,i,r,s,f;const o=[Na,Fa,Ia],a=[];function u(d,g){return d[0]&&!d[2]?0:d[12].length>0&&!d[2]?1:2}e=u(n),t=a[e]=o[e](n),i=new Zl({props:{src:Gs,class:"ml-2 h-4 w-4"}});let c=n[12].length>0&&n[2]&&Un(n);return{c(){t.c(),l=K(),$(i.$$.fragment),r=K(),c&&c.c(),s=re()},l(d){t.l(d),l=J(d),ee(i.$$.fragment,d),r=J(d),c&&c.l(d),s=re()},m(d,g){a[e].m(d,g),v(d,l,g),te(i,d,g),v(d,r,g),c&&c.m(d,g),v(d,s,g),f=!0},p(d,g){let m=e;e=u(d),e===m?a[e].p(d,g):(me(),C(a[m],1,1,()=>{a[m]=null}),he(),t=a[e],t?t.p(d,g):(t=a[e]=o[e](d),t.c()),k(t,1),t.m(l.parentNode,l)),d[12].length>0&&d[2]?c?(c.p(d,g),g[0]&4100&&k(c,1)):(c=Un(d),c.c(),k(c,1),c.m(s.parentNode,s)):c&&(me(),C(c,1,1,()=>{c=null}),he())},i(d){f||(k(t),k(i.$$.fragment,d),k(c),f=!0)},o(d){C(t),C(i.$$.fragment,d),C(c),f=!1},d(d){d&&(_(l),_(r),_(s)),a[e].d(d),le(i,d),c&&c.d(d)}}}function ja(n){let e,t;return e=new Fs({props:{builders:[n[55]],variant:"outline",role:"combo-box",size:"sm",class:"min-w-5 h-8 border",$$slots:{default:[Ra]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[1]&16777216&&(r.builders=[l[55]]),i[0]&4103|i[1]&2048&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Ga(n){let e;return{c(){e=ce("No results found.")},l(t){e=de(t,"No results found.")},m(t,l){v(t,e,l)},d(t){t&&_(e)}}}function Ha(n){let e,t;return e=new Ho({props:{height:`${Ur*32}px`,items:n[11],$$slots:{default:[Ua,({item:l})=>({52:l}),({item:l})=>[0,l?2097152:0]]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&2048&&(r.items=l[11]),i[0]&4612|i[1]&2099200&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Wa(n){let e,t,l=Ye(n[11]),i=[];for(let s=0;s<l.length;s+=1)i[s]=Qn(Rn(n,l,s));const r=s=>C(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=re()},l(s){for(let f=0;f<i.length;f+=1)i[f].l(s);e=re()},m(s,f){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(s,f);v(s,e,f),t=!0},p(s,f){if(f[0]&137732){l=Ye(s[11]);let o;for(o=0;o<l.length;o+=1){const a=Rn(s,l,o);i[o]?(i[o].p(a,f),k(i[o],1)):(i[o]=Qn(a),i[o].c(),k(i[o],1),i[o].m(e.parentNode,e))}for(me(),o=l.length;o<i.length;o+=1)r(o);he()}},i(s){if(!t){for(let f=0;f<l.length;f+=1)k(i[f]);t=!0}},o(s){i=i.filter(Wr);for(let f=0;f<i.length;f+=1)C(i[f]);t=!1},d(s){s&&_(e),xt(i,s)}}}function Ua(n){var i,r;let e,t;function l(...s){return n[39](n[52],...s)}return e=new jr({props:{value:(i=n[52])==null?void 0:i.value,valueLabel:(r=n[52])==null?void 0:r.label,handleSelect:n[38],multiple:n[2],active:n[12].some(l)}}),{c(){$(e.$$.fragment)},l(s){ee(e.$$.fragment,s)},m(s,f){te(e,s,f),t=!0},p(s,f){var a,u;n=s;const o={};f[1]&2097152&&(o.value=(a=n[52])==null?void 0:a.value),f[1]&2097152&&(o.valueLabel=(u=n[52])==null?void 0:u.label),f[0]&516&&(o.handleSelect=n[38]),f[0]&4&&(o.multiple=n[2]),f[0]&4096|f[1]&2097152&&(o.active=n[12].some(l)),e.$set(o)},i(s){t||(k(e.$$.fragment,s),t=!0)},o(s){C(e.$$.fragment,s),t=!1},d(s){le(e,s)}}}function Qn(n){let e,t;function l(...i){return n[37](n[52],...i)}return e=new jr({props:{id:n[54],value:n[52].value,valueLabel:n[52].label,handleSelect:n[36],multiple:n[2],active:n[12].some(l)}}),{c(){$(e.$$.fragment)},l(i){ee(e.$$.fragment,i)},m(i,r){te(e,i,r),t=!0},p(i,r){n=i;const s={};r[0]&2048&&(s.value=n[52].value),r[0]&2048&&(s.valueLabel=n[52].label),r[0]&516&&(s.handleSelect=n[36]),r[0]&4&&(s.multiple=n[2]),r[0]&6144&&(s.active=n[12].some(l)),e.$set(s)},i(i){t||(k(e.$$.fragment,i),t=!0)},o(i){C(e.$$.fragment,i),t=!1},d(i){le(e,i)}}}function Xa(n){let e,t,l,i;const r=[Wa,Ha],s=[];function f(o,a){return o[11].length<=Ur?0:1}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,a){let u=e;e=f(o),e===u?s[e].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function Yn(n){let e,t,l,i,r,s=!n[4]&&Kn(n);return i=new qi({props:{disabled:n[12].length===0,class:"justify-center text-center",onSelect:n[40],$$slots:{default:[Ya]},$$scope:{ctx:n}}}),{c(){s&&s.c(),e=K(),t=R("div"),l=K(),$(i.$$.fragment),this.h()},l(f){s&&s.l(f),e=J(f),t=j(f,"DIV",{class:!0}),Q(t).forEach(_),l=J(f),ee(i.$$.fragment,f),this.h()},h(){L(t,"class","-mx-1 h-px bg-gray-200")},m(f,o){s&&s.m(f,o),v(f,e,o),v(f,t,o),v(f,l,o),te(i,f,o),r=!0},p(f,o){f[4]?s&&(me(),C(s,1,1,()=>{s=null}),he()):s?(s.p(f,o),o[0]&16&&k(s,1)):(s=Kn(f),s.c(),k(s,1),s.m(e.parentNode,e));const a={};o[0]&4096&&(a.disabled=f[12].length===0),o[1]&2048&&(a.$$scope={dirty:o,ctx:f}),i.$set(a)},i(f){r||(k(s),k(i.$$.fragment,f),r=!0)},o(f){C(s),C(i.$$.fragment,f),r=!1},d(f){f&&(_(e),_(t),_(l)),s&&s.d(f),le(i,f)}}}function Kn(n){let e,t,l,i;return l=new qi({props:{class:"justify-center text-center",onSelect:n[20],$$slots:{default:[Qa]},$$scope:{ctx:n}}}),{c(){e=R("div"),t=K(),$(l.$$.fragment),this.h()},l(r){e=j(r,"DIV",{class:!0}),Q(e).forEach(_),t=J(r),ee(l.$$.fragment,r),this.h()},h(){L(e,"class","-mx-1 h-px bg-gray-200")},m(r,s){v(r,e,s),v(r,t,s),te(l,r,s),i=!0},p(r,s){const f={};s[1]&2048&&(f.$$scope={dirty:s,ctx:r}),l.$set(f)},i(r){i||(k(l.$$.fragment,r),i=!0)},o(r){C(l.$$.fragment,r),i=!1},d(r){r&&(_(e),_(t)),le(l,r)}}}function Qa(n){let e;return{c(){e=ce("Select all")},l(t){e=de(t,"Select all")},m(t,l){v(t,e,l)},d(t){t&&_(e)}}}function Ya(n){let e;return{c(){e=ce("Clear selection")},l(t){e=de(t,"Clear selection")},m(t,l){v(t,e,l)},d(t){t&&_(e)}}}function Ka(n){let e,t,l,i,r,s;e=new Hf({props:{$$slots:{default:[Ga]},$$scope:{ctx:n}}}),l=new Qf({props:{$$slots:{default:[Xa]},$$scope:{ctx:n}}});let f=n[2]&&Yn(n);return{c(){$(e.$$.fragment),t=K(),$(l.$$.fragment),i=K(),f&&f.c(),r=re()},l(o){ee(e.$$.fragment,o),t=J(o),ee(l.$$.fragment,o),i=J(o),f&&f.l(o),r=re()},m(o,a){te(e,o,a),v(o,t,a),te(l,o,a),v(o,i,a),f&&f.m(o,a),v(o,r,a),s=!0},p(o,a){const u={};a[1]&2048&&(u.$$scope={dirty:a,ctx:o}),e.$set(u);const c={};a[0]&6660|a[1]&2048&&(c.$$scope={dirty:a,ctx:o}),l.$set(c),o[2]?f?(f.p(o,a),a[0]&4&&k(f,1)):(f=Yn(o),f.c(),k(f,1),f.m(r.parentNode,r)):f&&(me(),C(f,1,1,()=>{f=null}),he())},i(o){s||(k(e.$$.fragment,o),k(l.$$.fragment,o),k(f),s=!0)},o(o){C(e.$$.fragment,o),C(l.$$.fragment,o),C(f),s=!1},d(o){o&&(_(t),_(i),_(r)),le(e,o),le(l,o),f&&f.d(o)}}}function Ja(n){let e,t,l,i,r;function s(o){n[35](o)}let f={placeholder:n[0]};return n[5]!==void 0&&(f.value=n[5]),e=new $f({props:f}),Ke.push(()=>vl(e,"value",s)),i=new ia({props:{$$slots:{default:[Ka]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment),l=K(),$(i.$$.fragment)},l(o){ee(e.$$.fragment,o),l=J(o),ee(i.$$.fragment,o)},m(o,a){te(e,o,a),v(o,l,a),te(i,o,a),r=!0},p(o,a){const u={};a[0]&1&&(u.placeholder=o[0]),!t&&a[0]&32&&(t=!0,u.value=o[5],pl(()=>t=!1)),e.$set(u);const c={};a[0]&6676|a[1]&2048&&(c.$$scope={dirty:a,ctx:o}),i.$set(c)},i(o){r||(k(e.$$.fragment,o),k(i.$$.fragment,o),r=!0)},o(o){C(e.$$.fragment,o),C(i.$$.fragment,o),r=!1},d(o){o&&_(l),le(e,o),le(i,o)}}}function Za(n){let e,t;return e=new zf({props:{shouldFilter:!1,$$slots:{default:[Ja]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&6709|i[1]&2048&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function xa(n){let e,t,l,i;return e=new ha({props:{asChild:!0,$$slots:{default:[ja,({builder:r})=>({55:r}),({builder:r})=>[0,r?16777216:0]]},$$scope:{ctx:n}}}),l=new da({props:{class:"w-[200px] p-0",align:"start",side:"bottom",$$slots:{default:[Za]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment),t=K(),$(l.$$.fragment)},l(r){ee(e.$$.fragment,r),t=J(r),ee(l.$$.fragment,r)},m(r,s){te(e,r,s),v(r,t,s),te(l,r,s),i=!0},p(r,s){const f={};s[0]&4103|s[1]&16779264&&(f.$$scope={dirty:s,ctx:r}),e.$set(f);const o={};s[0]&6709|s[1]&2048&&(o.$$scope={dirty:s,ctx:r}),l.$set(o)},i(r){i||(k(e.$$.fragment,r),k(l.$$.fragment,r),i=!0)},o(r){C(e.$$.fragment,r),C(l.$$.fragment,r),i=!1},d(r){r&&_(t),le(e,r),le(l,r)}}}function $a(n){let e,t,l,i;const r=[Ma,Da],s=[];function f(o,a){return o[7]&&o[8].error?0:1}return t=f(n),l=s[t]=r[t](n),{c(){e=R("div"),l.c(),this.h()},l(o){e=j(o,"DIV",{class:!0});var a=Q(e);l.l(a),a.forEach(_),this.h()},h(){L(e,"class","mt-2 mb-4 ml-0 mr-2 inline-block")},m(o,a){v(o,e,a),s[t].m(e,null),i=!0},p(o,a){let u=t;t=f(o),t===u?s[t].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),l=s[t],l?l.p(o,a):(l=s[t]=r[t](o),l.c()),k(l,1),l.m(e,null))},i(o){i||(k(l),i=!0)},o(o){C(l),i=!1},d(o){o&&_(e),s[t].d()}}}function eu(n){let e,t,l,i,r;const s=n[34].default,f=pe(s,n,n[42],null);return t=new Dr({props:{data:n[13],$$slots:{skeleton:[La],default:[Aa,({loaded:o})=>({58:o}),({loaded:o})=>[0,o?134217728:0]]},$$scope:{ctx:n}}}),i=new Vo({props:{enabled:n[3],$$slots:{default:[$a]},$$scope:{ctx:n}}}),{c(){f&&f.c(),e=K(),$(t.$$.fragment),l=K(),$(i.$$.fragment)},l(o){f&&f.l(o),e=J(o),ee(t.$$.fragment,o),l=J(o),ee(i.$$.fragment,o)},m(o,a){f&&f.m(o,a),v(o,e,a),te(t,o,a),v(o,l,a),te(i,o,a),r=!0},p(o,a){f&&f.p&&(!r||a[1]&2048)&&Ce(f,s,o,o[42],r?Se(s,o[42],a,null):ve(o[42]),null);const u={};a[0]&8192&&(u.data=o[13]),a[1]&134219776&&(u.$$scope={dirty:a,ctx:o}),t.$set(u);const c={};a[0]&8&&(c.enabled=o[3]),a[0]&7095|a[1]&2048&&(c.$$scope={dirty:a,ctx:o}),i.$set(c)},i(o){r||(k(f,o),k(t.$$.fragment,o),k(i.$$.fragment,o),r=!0)},o(o){C(f,o),C(t.$$.fragment,o),C(i.$$.fragment,o),r=!1},d(o){o&&(_(e),_(l)),f&&f.d(o),le(t,o),le(i,o)}}}const Ur=5;function Jn(n){return"similarity"in n?n.similarity*-1:n.ordinal??0}function tu(n,e,t){var it;let l,i,r,s,f,o,a=ae,u=()=>(a(),a=Ql(r,V=>t(8,o=V)),r),c,d,g,m,h=ae,b=()=>(h(),h=Ql(He,V=>t(13,m=V)),He);De(n,Ni,V=>t(43,d=V)),n.$$.on_destroy.push(()=>a()),n.$$.on_destroy.push(()=>h());let{$$slots:p={},$$scope:y}=e;const S=el(Tr);De(n,S,V=>t(44,g=V));let{title:E=void 0}=e,{name:D}=e,{multiple:U=!1}=e,{hideDuringPrint:P=!0}=e,{disableSelectAll:w=!1}=e,{defaultValue:T=[]}=e,{noDefault:N=!1}=e,{selectAllByDefault:B=!1}=e;const O=Oa(U),{selectedOptions:M,options:q,addOption:se,removeOption:Z,flagOption:ne,select:z,deselectAll:I}=O;De(n,M,V=>t(12,f=V)),De(n,q,V=>t(11,s=V)),$t(zr,{registerOption:V=>(se(V),()=>{Z(V)})});let G=!1;ht(()=>M.subscribe(V=>{V.length&&t(29,G=!0),G&&(U?Pt(S,g[D]={label:V.map(ue=>ue.label).join(", "),value:V.length?`(${V.map(ue=>Mi(ue.value))})`:"(select null where 0)",rawValues:V},g):V.length?V.length&&Pt(S,g[D]={label:V[0].label,value:Mi(V[0].value,{serializeStrings:!1}),rawValues:V},g):Pt(S,g[D]={label:"",value:null,rawValues:[]},g))})),ht(()=>S.subscribe(Li(V=>{var Qe,vt,St;const ue=Array.isArray((Qe=V[D])==null?void 0:Qe.rawValues)?(vt=V[D])==null?void 0:vt.rawValues:[(St=V[D])==null?void 0:St.rawValues],Be=f;ue.every(Boolean)&&ue.length!==Be.length&&JSON.stringify(ue)!==JSON.stringify(Be)&&ue.forEach(z)},10)));let x=!1,fe="",{value:Oe,data:H,label:Ae,order:Me=void 0,where:_e=void 0}=e;const{results:Xe,update:Ge}=ys({value:Oe,data:H,label:Ae,order:Me,where:_e},`Dropdown-${D}`,(it=d==null?void 0:d.data)==null?void 0:it.data[`Dropdown-${D}`]);De(n,Xe,V=>t(33,c=V));let Je,He;const ze=Li(async()=>{if(fe&&i){const V=r.search(fe,"label");await V.fetch(),b(t(10,He=V)),f.length&&f.forEach(ue=>{!ue.removeOnDeselect&&ue.__auto&&ne([ue,Ft.REMOVE_ON_DESELECT])})}else s.forEach(V=>{V.removeOnDeselect&&ne([V,Ft.REMOVE_ON_DESELECT])}),b(t(10,He=r)),t(29,G=!1),t(31,We=void 0)},250);let We;const qe=async()=>{try{if(r&&await r.fetch(),await O.flushed,f.length){const V=f.filter(ue=>s.some(Be=>Be.value===ue.value&&Be.label===ue.label));if(V.length!==f.length&&JSON.stringify(V)!==JSON.stringify(f)){I(),V.forEach(ue=>z(ue));return}if(V.length)return}if(B&&U){Re();return}if(N){I();return}else if(typeof T<"u"&&T!==null&&T.length){const V=Array.isArray(T)?T:[T];if(V.length){s.filter(ue=>V.some(Be=>ue.value===Be)).forEach(ue=>z(ue));return}}else!U&&s.length&&z(s[0]);return}catch(V){console.error(`Error while updating Dropdown Query: ${V.message}`)}};function Re(){s.forEach(V=>{ne([V,Ft.FORCE_SELECT])})}function Ue(V){fe=V,t(5,fe)}const Ze=({value:V,label:ue})=>{z({value:V,label:ue}),U||t(9,x=!1)},tt=(V,ue)=>ue.value===V.value&&ue.label===V.label,lt=({value:V,label:ue})=>{z({value:V,label:ue}),U||t(9,x=!1)},W=(V,ue)=>ue.value===V.value&&ue.label===V.label,Ie=()=>{I()};function xe(V){x=V,t(9,x)}return n.$$set=V=>{"title"in V&&t(0,E=V.title),"name"in V&&t(1,D=V.name),"multiple"in V&&t(2,U=V.multiple),"hideDuringPrint"in V&&t(3,P=V.hideDuringPrint),"disableSelectAll"in V&&t(4,w=V.disableSelectAll),"defaultValue"in V&&t(21,T=V.defaultValue),"noDefault"in V&&t(22,N=V.noDefault),"selectAllByDefault"in V&&t(23,B=V.selectAllByDefault),"value"in V&&t(24,Oe=V.value),"data"in V&&t(25,H=V.data),"label"in V&&t(26,Ae=V.label),"order"in V&&t(27,Me=V.order),"where"in V&&t(28,_e=V.where),"$$scope"in V&&t(42,y=V.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&520093696&&Ge({value:Oe,data:H,label:Ae,order:Me,where:_e}),n.$$.dirty[0]&33554432&&t(32,l=typeof H=="string"?H:H==null?void 0:H.hash),n.$$.dirty[0]&1107296256|n.$$.dirty[1]&2&&l!==Je&&(I(!0),t(30,Je=l)),n.$$.dirty[1]&4&&t(7,{hasQuery:i,query:r}=c,i,u(t(6,r))),n.$$.dirty[0]&96&&ze(),n.$$.dirty[0]&536871296|n.$$.dirty[1]&1&&!We&&(i&&o||!i)){let V=!0;t(31,We=q.subscribe(ue=>{if(V){V=!1;return}!G&&ue.length&&(setTimeout(qe,0),We())}))}},[E,D,U,P,w,fe,r,i,o,x,He,s,f,m,S,M,q,z,I,Xe,Re,T,N,B,Oe,H,Ae,Me,_e,G,Je,We,l,c,p,Ue,Ze,tt,lt,W,Ie,xe,y]}class Zn extends ye{constructor(e){super(),ke(this,e,tu,eu,ge,{title:0,name:1,multiple:2,hideDuringPrint:3,disableSelectAll:4,defaultValue:21,noDefault:22,selectAllByDefault:23,value:24,data:25,label:26,order:27,where:28},null,[-1,-1])}}function xn(n){let e,t,l;const i=n[3].default,r=pe(i,n,n[2],null);return{c(){e=R("div"),r&&r.c(),this.h()},l(s){e=j(s,"DIV",{class:!0});var f=Q(e);r&&r.l(f),f.forEach(_),this.h()},h(){L(e,"class","pl-[calc(0.5rem+10px)] pt-3 mb-6")},m(s,f){v(s,e,f),r&&r.m(e,null),l=!0},p(s,f){r&&r.p&&(!l||f&4)&&Ce(r,i,s,s[2],l?Se(i,s[2],f,null):ve(s[2]),null)},i(s){l||(k(r,s),s&&st(()=>{l&&(t||(t=ot(e,_t,{},!0)),t.run(1))}),l=!0)},o(s){C(r,s),s&&(t||(t=ot(e,_t,{},!1)),t.run(0)),l=!1},d(s){s&&_(e),r&&r.d(s),s&&t&&t.end()}}}function lu(n){let e,t,l,i,r,s,f,o,a,u,c,d=n[0]&&xn(n);return{c(){e=R("div"),t=R("button"),l=R("span"),r=K(),s=R("span"),f=ce(n[1]),o=K(),d&&d.c(),this.h()},l(g){e=j(g,"DIV",{class:!0});var m=Q(e);t=j(m,"BUTTON",{class:!0});var h=Q(t);l=j(h,"SPAN",{class:!0}),Q(l).forEach(_),r=J(h),s=j(h,"SPAN",{});var b=Q(s);f=de(b,n[1]),b.forEach(_),h.forEach(_),o=J(m),d&&d.l(m),m.forEach(_),this.h()},h(){L(l,"class",i=gl(n[0]?"marker rotate-marker":"marker")+" svelte-98nx5w"),L(t,"class","text-sm cursor-pointer inline-flex gap-2 svelte-98nx5w"),L(e,"class","mb-4 mt-3")},m(g,m){v(g,e,m),Y(e,t),Y(t,l),Y(t,r),Y(t,s),Y(s,f),Y(e,o),d&&d.m(e,null),a=!0,u||(c=Fe(t,"click",n[4]),u=!0)},p(g,[m]){(!a||m&1&&i!==(i=gl(g[0]?"marker rotate-marker":"marker")+" svelte-98nx5w"))&&L(l,"class",i),(!a||m&2)&&Le(f,g[1]),g[0]?d?(d.p(g,m),m&1&&k(d,1)):(d=xn(g),d.c(),k(d,1),d.m(e,null)):d&&(me(),C(d,1,1,()=>{d=null}),he())},i(g){a||(k(d),a=!0)},o(g){C(d),a=!1},d(g){g&&_(e),d&&d.d(),u=!1,c()}}}function iu(n,e,t){let{$$slots:l={},$$scope:i}=e,{title:r="Details"}=e,{open:s=!1}=e;const f=()=>t(0,s=!s);return n.$$set=o=>{"title"in o&&t(1,r=o.title),"open"in o&&t(0,s=o.open),"$$scope"in o&&t(2,i=o.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(0,s=s==="true"||s===!0)},[s,r,i,l,f]}class nu extends ye{constructor(e){super(),ke(this,e,iu,lu,ge,{title:1,open:0})}}function $n(n,e,t){const l=n.slice();return l[12]=e[t],l[14]=t,l}function er(n,e,t){const l=n.slice();return l[15]=e[t],l[17]=t,l}function tr(n,e,t){const l=n.slice();return l[15]=e[t],l}function lr(n,e,t){const l=n.slice();return l[15]=e[t],l}function ir(n){let e,t=n[15].id+"",l,i,r,s;return{c(){e=R("th"),l=ce(t),this.h()},l(f){e=j(f,"TH",{class:!0,style:!0,evidencetype:!0,evidencetypefidelity:!0});var o=Q(e);l=de(o,t),o.forEach(_),this.h()},h(){var f,o;L(e,"class",i=gl(n[15].type)+" svelte-iw7vqx"),X(e,"width",n[6]+"%"),L(e,"evidencetype",r=((f=n[15].evidenceColumnType)==null?void 0:f.evidenceType)||"unavailable"),L(e,"evidencetypefidelity",s=((o=n[15].evidenceColumnType)==null?void 0:o.typeFidelity)||"unavailable")},m(f,o){v(f,e,o),Y(e,l)},p(f,o){var a,u;o&8&&t!==(t=f[15].id+"")&&Le(l,t),o&8&&i!==(i=gl(f[15].type)+" svelte-iw7vqx")&&L(e,"class",i),o&64&&X(e,"width",f[6]+"%"),o&8&&r!==(r=((a=f[15].evidenceColumnType)==null?void 0:a.evidenceType)||"unavailable")&&L(e,"evidencetype",r),o&8&&s!==(s=((u=f[15].evidenceColumnType)==null?void 0:u.typeFidelity)||"unavailable")&&L(e,"evidencetypefidelity",s)},d(f){f&&_(e)}}}function nr(n){let e,t=n[15].type+"",l,i,r,s;return{c(){e=R("th"),l=ce(t),this.h()},l(f){e=j(f,"TH",{class:!0,style:!0,evidencetype:!0,evidencetypefidelity:!0});var o=Q(e);l=de(o,t),o.forEach(_),this.h()},h(){var f,o;L(e,"class",i=n[15].type+" type-indicator svelte-iw7vqx"),X(e,"width",n[6]+"%"),L(e,"evidencetype",r=((f=n[15].evidenceColumnType)==null?void 0:f.evidenceType)||"unavailable"),L(e,"evidencetypefidelity",s=((o=n[15].evidenceColumnType)==null?void 0:o.typeFidelity)||"unavailable")},m(f,o){v(f,e,o),Y(e,l)},p(f,o){var a,u;o&8&&t!==(t=f[15].type+"")&&Le(l,t),o&8&&i!==(i=f[15].type+" type-indicator svelte-iw7vqx")&&L(e,"class",i),o&64&&X(e,"width",f[6]+"%"),o&8&&r!==(r=((a=f[15].evidenceColumnType)==null?void 0:a.evidenceType)||"unavailable")&&L(e,"evidencetype",r),o&8&&s!==(s=((u=f[15].evidenceColumnType)==null?void 0:u.typeFidelity)||"unavailable")&&L(e,"evidencetypefidelity",s)},d(f){f&&_(e)}}}function ru(n){let e=(n[2]+n[14]+1).toLocaleString()+"",t;return{c(){t=ce(e)},l(l){t=de(l,e)},m(l,i){v(l,t,i)},p(l,i){i&4&&e!==(e=(l[2]+l[14]+1).toLocaleString()+"")&&Le(t,e)},d(l){l&&_(t)}}}function su(n){let e=(n[2]+n[14]+1).toLocaleString()+"",t;return{c(){t=ce(e)},l(l){t=de(l,e)},m(l,i){v(l,t,i)},p(l,i){i&4&&e!==(e=(l[2]+l[14]+1).toLocaleString()+"")&&Le(t,e)},d(l){l&&_(t)}}}function ou(n){let e,t=(n[12][n[15].id]||"Ø")+"",l;return{c(){e=R("td"),l=ce(t),this.h()},l(i){e=j(i,"TD",{class:!0,style:!0});var r=Q(e);l=de(r,t),r.forEach(_),this.h()},h(){L(e,"class","other svelte-iw7vqx"),X(e,"width",n[6]+"%")},m(i,r){v(i,e,r),Y(e,l)},p(i,r){r&40&&t!==(t=(i[12][i[15].id]||"Ø")+"")&&Le(l,t),r&64&&X(e,"width",i[6]+"%")},d(i){i&&_(e)}}}function fu(n){let e,t,l=(n[12][n[15].id]??"Ø")+"",i,r;return{c(){e=R("td"),t=R("div"),i=ce(l),this.h()},l(s){e=j(s,"TD",{class:!0,style:!0,title:!0});var f=Q(e);t=j(f,"DIV",{class:!0});var o=Q(t);i=de(o,l),o.forEach(_),f.forEach(_),this.h()},h(){L(t,"class","svelte-iw7vqx"),L(e,"class","boolean svelte-iw7vqx"),X(e,"width",n[6]+"%"),L(e,"title",r=n[12][n[15].id])},m(s,f){v(s,e,f),Y(e,t),Y(t,i)},p(s,f){f&40&&l!==(l=(s[12][s[15].id]??"Ø")+"")&&Le(i,l),f&64&&X(e,"width",s[6]+"%"),f&40&&r!==(r=s[12][s[15].id])&&L(e,"title",r)},d(s){s&&_(e)}}}function au(n){let e,t,l=(n[12][n[15].id]||"Ø")+"",i,r;return{c(){e=R("td"),t=R("div"),i=ce(l),this.h()},l(s){e=j(s,"TD",{class:!0,style:!0,title:!0});var f=Q(e);t=j(f,"DIV",{class:!0});var o=Q(t);i=de(o,l),o.forEach(_),f.forEach(_),this.h()},h(){L(t,"class","svelte-iw7vqx"),L(e,"class","string svelte-iw7vqx"),X(e,"width",n[6]+"%"),L(e,"title",r=n[12][n[15].id])},m(s,f){v(s,e,f),Y(e,t),Y(t,i)},p(s,f){f&40&&l!==(l=(s[12][s[15].id]||"Ø")+"")&&Le(i,l),f&64&&X(e,"width",s[6]+"%"),f&40&&r!==(r=s[12][s[15].id])&&L(e,"title",r)},d(s){s&&_(e)}}}function uu(n){let e,t,l=et(n[12][n[15].id],n[3][n[17]].format,n[3][n[17]].columnUnitSummary)+"",i,r;return{c(){e=R("td"),t=R("div"),i=ce(l),this.h()},l(s){e=j(s,"TD",{class:!0,style:!0,title:!0});var f=Q(e);t=j(f,"DIV",{class:!0});var o=Q(t);i=de(o,l),o.forEach(_),f.forEach(_),this.h()},h(){L(t,"class","svelte-iw7vqx"),L(e,"class","string svelte-iw7vqx"),X(e,"width",n[6]+"%"),L(e,"title",r=et(n[12][n[15].id],n[3][n[17]].format,n[3][n[17]].columnUnitSummary))},m(s,f){v(s,e,f),Y(e,t),Y(t,i)},p(s,f){f&40&&l!==(l=et(s[12][s[15].id],s[3][s[17]].format,s[3][s[17]].columnUnitSummary)+"")&&Le(i,l),f&64&&X(e,"width",s[6]+"%"),f&40&&r!==(r=et(s[12][s[15].id],s[3][s[17]].format,s[3][s[17]].columnUnitSummary))&&L(e,"title",r)},d(s){s&&_(e)}}}function cu(n){let e,t=et(n[12][n[15].id],n[3][n[17]].format,n[3][n[17]].columnUnitSummary)+"",l;return{c(){e=R("td"),l=ce(t),this.h()},l(i){e=j(i,"TD",{class:!0,style:!0});var r=Q(e);l=de(r,t),r.forEach(_),this.h()},h(){L(e,"class","number svelte-iw7vqx"),X(e,"width",n[6]+"%")},m(i,r){v(i,e,r),Y(e,l)},p(i,r){r&40&&t!==(t=et(i[12][i[15].id],i[3][i[17]].format,i[3][i[17]].columnUnitSummary)+"")&&Le(l,t),r&64&&X(e,"width",i[6]+"%")},d(i){i&&_(e)}}}function du(n){let e,t="Ø",l,i;return{c(){e=R("td"),l=ce(t),this.h()},l(r){e=j(r,"TD",{class:!0,style:!0});var s=Q(e);l=de(s,t),s.forEach(_),this.h()},h(){L(e,"class",i="null "+n[3][n[17]].type+" svelte-iw7vqx"),X(e,"width",n[6]+"%")},m(r,s){v(r,e,s),Y(e,l)},p(r,s){s&8&&i!==(i="null "+r[3][r[17]].type+" svelte-iw7vqx")&&L(e,"class",i),s&64&&X(e,"width",r[6]+"%")},d(r){r&&_(e)}}}function rr(n){let e;function t(r,s){return r[12][r[15].id]==null?du:r[3][r[17]].type==="number"?cu:r[3][r[17]].type==="date"?uu:r[3][r[17]].type==="string"?au:r[3][r[17]].type==="boolean"?fu:ou}let l=t(n),i=l(n);return{c(){i.c(),e=re()},l(r){i.l(r),e=re()},m(r,s){i.m(r,s),v(r,e,s)},p(r,s){l===(l=t(r))&&i?i.p(r,s):(i.d(1),i=l(r),i&&(i.c(),i.m(e.parentNode,e)))},d(r){r&&_(e),i.d(r)}}}function sr(n){let e,t,l,i;function r(u,c){return u[14]===0?su:ru}let f=r(n)(n),o=Ye(n[3]),a=[];for(let u=0;u<o.length;u+=1)a[u]=rr(er(n,o,u));return{c(){e=R("tr"),t=R("td"),f.c(),l=K();for(let u=0;u<a.length;u+=1)a[u].c();i=K(),this.h()},l(u){e=j(u,"TR",{});var c=Q(e);t=j(c,"TD",{class:!0,style:!0});var d=Q(t);f.l(d),d.forEach(_),l=J(c);for(let g=0;g<a.length;g+=1)a[g].l(c);i=J(c),c.forEach(_),this.h()},h(){L(t,"class","index svelte-iw7vqx"),X(t,"width","10%")},m(u,c){v(u,e,c),Y(e,t),f.m(t,null),Y(e,l);for(let d=0;d<a.length;d+=1)a[d]&&a[d].m(e,null);Y(e,i)},p(u,c){if(f.p(u,c),c&104){o=Ye(u[3]);let d;for(d=0;d<o.length;d+=1){const g=er(u,o,d);a[d]?a[d].p(g,c):(a[d]=rr(g),a[d].c(),a[d].m(e,i))}for(;d<a.length;d+=1)a[d].d(1);a.length=o.length}},d(u){u&&_(e),f.d(),xt(a,u)}}}function or(n){let e,t,l,i,r=(n[2]+Nt).toLocaleString()+"",s,f,o=(n[4]+Nt).toLocaleString()+"",a,u,c;return{c(){e=R("div"),t=R("input"),l=K(),i=R("span"),s=ce(r),f=ce(" of "),a=ce(o),this.h()},l(d){e=j(d,"DIV",{class:!0});var g=Q(e);t=j(g,"INPUT",{type:!0,max:!0,step:!0,class:!0}),l=J(g),i=j(g,"SPAN",{class:!0});var m=Q(i);s=de(m,r),f=de(m," of "),a=de(m,o),m.forEach(_),g.forEach(_),this.h()},h(){L(t,"type","range"),L(t,"max",n[4]),L(t,"step","1"),L(t,"class","slider svelte-iw7vqx"),L(i,"class","svelte-iw7vqx"),L(e,"class","pagination svelte-iw7vqx")},m(d,g){v(d,e,g),Y(e,t),Xl(t,n[2]),Y(e,l),Y(e,i),Y(i,s),Y(i,f),Y(i,a),u||(c=[Fe(t,"change",n[9]),Fe(t,"input",n[9]),Fe(t,"input",n[7])],u=!0)},p(d,g){g&16&&L(t,"max",d[4]),g&4&&Xl(t,d[2]),g&4&&r!==(r=(d[2]+Nt).toLocaleString()+"")&&Le(s,r),g&16&&o!==(o=(d[4]+Nt).toLocaleString()+"")&&Le(a,o)},d(d){d&&_(e),u=!1,qt(c)}}}function mu(n){let e,t,l,i,r,s,f,o,a,u,c,d,g,m,h,b,p,y,S,E,D,U,P,w,T,N,B=Ye(n[3]),O=[];for(let z=0;z<B.length;z+=1)O[z]=ir(lr(n,B,z));let M=Ye(n[3]),q=[];for(let z=0;z<M.length;z+=1)q[z]=nr(tr(n,M,z));let se=Ye(n[5]),Z=[];for(let z=0;z<se.length;z+=1)Z[z]=sr($n(n,se,z));let ne=n[4]>0&&or(n);return U=new Pi({props:{class:"download-button",data:n[1],queryID:n[0],display:!0}}),{c(){e=R("div"),t=R("div"),l=R("table"),i=R("thead"),r=R("tr"),s=R("th"),f=K();for(let z=0;z<O.length;z+=1)O[z].c();o=K(),a=R("tr"),u=K(),c=R("tr"),d=R("th"),g=K();for(let z=0;z<q.length;z+=1)q[z].c();m=K(),h=R("tr"),b=K(),p=R("tbody");for(let z=0;z<Z.length;z+=1)Z[z].c();S=K(),ne&&ne.c(),E=K(),D=R("div"),$(U.$$.fragment),this.h()},l(z){e=j(z,"DIV",{class:!0});var I=Q(e);t=j(I,"DIV",{class:!0});var G=Q(t);l=j(G,"TABLE",{class:!0});var x=Q(l);i=j(x,"THEAD",{});var fe=Q(i);r=j(fe,"TR",{});var Oe=Q(r);s=j(Oe,"TH",{class:!0,style:!0}),Q(s).forEach(_),f=J(Oe);for(let _e=0;_e<O.length;_e+=1)O[_e].l(Oe);o=J(Oe),Oe.forEach(_),a=j(fe,"TR",{}),Q(a).forEach(_),u=J(fe),c=j(fe,"TR",{class:!0});var H=Q(c);d=j(H,"TH",{class:!0,style:!0}),Q(d).forEach(_),g=J(H);for(let _e=0;_e<q.length;_e+=1)q[_e].l(H);m=J(H),H.forEach(_),h=j(fe,"TR",{}),Q(h).forEach(_),fe.forEach(_),b=J(x),p=j(x,"TBODY",{});var Ae=Q(p);for(let _e=0;_e<Z.length;_e+=1)Z[_e].l(Ae);Ae.forEach(_),x.forEach(_),G.forEach(_),S=J(I),ne&&ne.l(I),E=J(I),D=j(I,"DIV",{class:!0});var Me=Q(D);ee(U.$$.fragment,Me),Me.forEach(_),I.forEach(_),this.h()},h(){L(s,"class","index svelte-iw7vqx"),X(s,"width","10%"),L(d,"class","index type-indicator svelte-iw7vqx"),X(d,"width","10%"),L(c,"class","type-indicator svelte-iw7vqx"),L(l,"class","svelte-iw7vqx"),L(t,"class","scrollbox svelte-iw7vqx"),L(D,"class","footer svelte-iw7vqx"),L(e,"class","results-pane py-1 svelte-iw7vqx")},m(z,I){v(z,e,I),Y(e,t),Y(t,l),Y(l,i),Y(i,r),Y(r,s),Y(r,f);for(let G=0;G<O.length;G+=1)O[G]&&O[G].m(r,null);Y(r,o),Y(i,a),Y(i,u),Y(i,c),Y(c,d),Y(c,g);for(let G=0;G<q.length;G+=1)q[G]&&q[G].m(c,null);Y(c,m),Y(i,h),Y(l,b),Y(l,p);for(let G=0;G<Z.length;G+=1)Z[G]&&Z[G].m(p,null);Y(e,S),ne&&ne.m(e,null),Y(e,E),Y(e,D),te(U,D,null),w=!0,T||(N=Fe(p,"wheel",n[8]),T=!0)},p(z,[I]){if(I&72){B=Ye(z[3]);let x;for(x=0;x<B.length;x+=1){const fe=lr(z,B,x);O[x]?O[x].p(fe,I):(O[x]=ir(fe),O[x].c(),O[x].m(r,o))}for(;x<O.length;x+=1)O[x].d(1);O.length=B.length}if(I&72){M=Ye(z[3]);let x;for(x=0;x<M.length;x+=1){const fe=tr(z,M,x);q[x]?q[x].p(fe,I):(q[x]=nr(fe),q[x].c(),q[x].m(c,m))}for(;x<q.length;x+=1)q[x].d(1);q.length=M.length}if(I&108){se=Ye(z[5]);let x;for(x=0;x<se.length;x+=1){const fe=$n(z,se,x);Z[x]?Z[x].p(fe,I):(Z[x]=sr(fe),Z[x].c(),Z[x].m(p,null))}for(;x<Z.length;x+=1)Z[x].d(1);Z.length=se.length}z[4]>0?ne?ne.p(z,I):(ne=or(z),ne.c(),ne.m(e,E)):ne&&(ne.d(1),ne=null);const G={};I&2&&(G.data=z[1]),I&1&&(G.queryID=z[0]),U.$set(G)},i(z){w||(z&&(y||st(()=>{y=Cl(l,Pr,{}),y.start()})),k(U.$$.fragment,z),z&&st(()=>{w&&(P||(P=ot(e,_t,{},!0)),P.run(1))}),w=!0)},o(z){C(U.$$.fragment,z),z&&(P||(P=ot(e,_t,{},!1)),P.run(0)),w=!1},d(z){z&&_(e),xt(O,z),xt(q,z),xt(Z,z),ne&&ne.d(),le(U),z&&P&&P.end(),T=!1,N()}}}let Nt=5;function hu(n,e,t){let l,i,r,s,{queryID:f}=e,{data:o}=e,a=0,u;function c(){u=o.slice(a,a+Nt),t(5,s=u)}const d=ks(h=>{t(2,a=Math.min(Math.max(0,a+Math.floor(h.deltaY/Math.abs(h.deltaY))),r)),c()},60);function g(h){if(Math.abs(h.deltaX)>=Math.abs(h.deltaY))return;const b=h.deltaY<0&&a===0,p=h.deltaY>0&&a===r;b||p||(h.preventDefault(),d(h))}function m(){a=Jr(this.value),t(2,a)}return n.$$set=h=>{"queryID"in h&&t(0,f=h.queryID),"data"in h&&t(1,o=h.data)},n.$$.update=()=>{n.$$.dirty&2&&t(3,l=Ul(o,"array")),n.$$.dirty&8&&t(6,i=90/(l.length+1)),n.$$.dirty&2&&t(4,r=Math.max(o.length-Nt,0)),n.$$.dirty&6&&t(5,s=o.slice(a,a+Nt))},[f,o,a,l,r,s,i,c,g,m]}class _u extends ye{constructor(e){super(),ke(this,e,hu,mu,ge,{queryID:0,data:1})}}function gu(n){let e,t="Compiled",l,i,r="Written",s,f;return{c(){e=R("button"),e.textContent=t,l=K(),i=R("button"),i.textContent=r,this.h()},l(o){e=j(o,"BUTTON",{class:!0,"data-svelte-h":!0}),ut(e)!=="svelte-1vzm9jy"&&(e.textContent=t),l=J(o),i=j(o,"BUTTON",{class:!0,"data-svelte-h":!0}),ut(i)!=="svelte-5roa31"&&(i.textContent=r),this.h()},h(){L(e,"class","off svelte-1b8idd8"),L(i,"class","on svelte-1b8idd8")},m(o,a){v(o,e,a),v(o,l,a),v(o,i,a),s||(f=Fe(e,"click",n[1]),s=!0)},p:ae,d(o){o&&(_(e),_(l),_(i)),s=!1,f()}}}function bu(n){let e,t="Compiled",l,i,r="Written",s,f;return{c(){e=R("button"),e.textContent=t,l=K(),i=R("button"),i.textContent=r,this.h()},l(o){e=j(o,"BUTTON",{class:!0,"data-svelte-h":!0}),ut(e)!=="svelte-1ofx42v"&&(e.textContent=t),l=J(o),i=j(o,"BUTTON",{class:!0,"data-svelte-h":!0}),ut(i)!=="svelte-v36xno"&&(i.textContent=r),this.h()},h(){L(e,"class","on svelte-1b8idd8"),L(i,"class","off svelte-1b8idd8")},m(o,a){v(o,e,a),v(o,l,a),v(o,i,a),s||(f=Fe(i,"click",n[1]),s=!0)},p:ae,d(o){o&&(_(e),_(l),_(i)),s=!1,f()}}}function yu(n){let e,t,l;function i(f,o){return f[0]?bu:gu}let r=i(n),s=r(n);return{c(){e=R("div"),s.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var o=Q(e);s.l(o),o.forEach(_),this.h()},h(){L(e,"class","toggle svelte-1b8idd8")},m(f,o){v(f,e,o),s.m(e,null),l=!0},p(f,[o]){r===(r=i(f))&&s?s.p(f,o):(s.d(1),s=r(f),s&&(s.c(),s.m(e,null)))},i(f){l||(f&&st(()=>{l&&(t||(t=ot(e,_t,{},!0)),t.run(1))}),l=!0)},o(f){f&&(t||(t=ot(e,_t,{},!1)),t.run(0)),l=!1},d(f){f&&_(e),s.d(),f&&t&&t.end()}}}function ku(n,e,t){let{showCompiled:l}=e;const i=function(){t(0,l=!l)};return n.$$set=r=>{"showCompiled"in r&&t(0,l=r.showCompiled)},[l,i]}class pu extends ye{constructor(e){super(),ke(this,e,ku,yu,ge,{showCompiled:0})}}function fr(n){let e,t,l,i,r,s,f,o,a,u,c,d,g,m,h,b,p;i=new Br({props:{toggled:n[10]}});let y=n[10]&&n[4]&&ar(n),S=n[10]&&ur(n);const E=[Eu,Tu,wu,Su],D=[];function U(w,T){return w[6]?0:w[8]?1:w[2].loading?2:3}c=U(n),d=D[c]=E[c](n);let P=n[8]>0&&!n[6]&&n[9]&&cr(n);return{c(){e=R("div"),t=R("div"),l=R("button"),$(i.$$.fragment),r=K(),s=ce(n[0]),f=K(),y&&y.c(),o=K(),S&&S.c(),a=K(),u=R("button"),d.c(),g=K(),P&&P.c(),this.h()},l(w){e=j(w,"DIV",{class:!0});var T=Q(e);t=j(T,"DIV",{class:!0});var N=Q(t);l=j(N,"BUTTON",{type:!0,"aria-label":!0,class:!0});var B=Q(l);ee(i.$$.fragment,B),r=J(B),s=de(B,n[0]),B.forEach(_),f=J(N),y&&y.l(N),o=J(N),S&&S.l(N),N.forEach(_),a=J(T),u=j(T,"BUTTON",{type:!0,"aria-label":!0,class:!0});var O=Q(u);d.l(O),O.forEach(_),g=J(T),P&&P.l(T),T.forEach(_),this.h()},h(){L(l,"type","button"),L(l,"aria-label","show-sql"),L(l,"class","title svelte-1plm20d"),L(t,"class","container-a svelte-1plm20d"),L(u,"type","button"),L(u,"aria-label","view-query"),L(u,"class",gl("status-bar")+" svelte-1plm20d"),dt(u,"error",n[6]),dt(u,"success",!n[6]),dt(u,"open",n[9]),dt(u,"closed",!n[9]),L(e,"class","scrollbox svelte-1plm20d")},m(w,T){v(w,e,T),Y(e,t),Y(t,l),te(i,l,null),Y(l,r),Y(l,s),Y(t,f),y&&y.m(t,null),Y(t,o),S&&S.m(t,null),Y(e,a),Y(e,u),D[c].m(u,null),Y(e,g),P&&P.m(e,null),h=!0,b||(p=[Fe(l,"click",n[14]),Fe(u,"click",n[15])],b=!0)},p(w,T){const N={};T&1024&&(N.toggled=w[10]),i.$set(N),(!h||T&1)&&Le(s,w[0]),w[10]&&w[4]?y?(y.p(w,T),T&1040&&k(y,1)):(y=ar(w),y.c(),k(y,1),y.m(t,o)):y&&(me(),C(y,1,1,()=>{y=null}),he()),w[10]?S?(S.p(w,T),T&1024&&k(S,1)):(S=ur(w),S.c(),k(S,1),S.m(t,null)):S&&(me(),C(S,1,1,()=>{S=null}),he());let B=c;c=U(w),c===B?D[c].p(w,T):(me(),C(D[B],1,1,()=>{D[B]=null}),he(),d=D[c],d?d.p(w,T):(d=D[c]=E[c](w),d.c()),k(d,1),d.m(u,null)),(!h||T&64)&&dt(u,"error",w[6]),(!h||T&64)&&dt(u,"success",!w[6]),(!h||T&512)&&dt(u,"open",w[9]),(!h||T&512)&&dt(u,"closed",!w[9]),w[8]>0&&!w[6]&&w[9]?P?(P.p(w,T),T&832&&k(P,1)):(P=cr(w),P.c(),k(P,1),P.m(e,null)):P&&(me(),C(P,1,1,()=>{P=null}),he())},i(w){h||(k(i.$$.fragment,w),k(y),k(S),k(d),k(P),w&&st(()=>{h&&(m||(m=ot(e,_t,{},!0)),m.run(1))}),h=!0)},o(w){C(i.$$.fragment,w),C(y),C(S),C(d),C(P),w&&(m||(m=ot(e,_t,{},!1)),m.run(0)),h=!1},d(w){w&&_(e),le(i),y&&y.d(),S&&S.d(),D[c].d(),P&&P.d(),w&&m&&m.end(),b=!1,qt(p)}}}function ar(n){let e,t,l;function i(s){n[18](s)}let r={};return n[5]!==void 0&&(r.showCompiled=n[5]),e=new pu({props:r}),Ke.push(()=>vl(e,"showCompiled",i)),{c(){$(e.$$.fragment)},l(s){ee(e.$$.fragment,s)},m(s,f){te(e,s,f),l=!0},p(s,f){const o={};!t&&f&32&&(t=!0,o.showCompiled=s[5],pl(()=>t=!1)),e.$set(o)},i(s){l||(k(e.$$.fragment,s),l=!0)},o(s){C(e.$$.fragment,s),l=!1},d(s){le(e,s)}}}function ur(n){let e,t,l,i,r;const s=[vu,Cu],f=[];function o(a,u){return a[5]?0:1}return t=o(n),l=f[t]=s[t](n),{c(){e=R("div"),l.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var u=Q(e);l.l(u),u.forEach(_),this.h()},h(){L(e,"class","code-container svelte-1plm20d")},m(a,u){v(a,e,u),f[t].m(e,null),r=!0},p(a,u){let c=t;t=o(a),t===c?f[t].p(a,u):(me(),C(f[c],1,1,()=>{f[c]=null}),he(),l=f[t],l?l.p(a,u):(l=f[t]=s[t](a),l.c()),k(l,1),l.m(e,null))},i(a){r||(k(l),a&&st(()=>{r&&(i||(i=ot(e,_t,{},!0)),i.run(1))}),r=!0)},o(a){C(l),a&&(i||(i=ot(e,_t,{},!1)),i.run(0)),r=!1},d(a){a&&_(e),f[t].d(),a&&i&&i.end()}}}function Cu(n){let e,t;return e=new qr({props:{code:n[3]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&8&&(r.code=l[3]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function vu(n){let e,t;return e=new qr({props:{code:n[1].originalText}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&2&&(r.code=l[1].originalText),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Su(n){let e;return{c(){e=ce("ran successfully but no data was returned")},l(t){e=de(t,"ran successfully but no data was returned")},m(t,l){v(t,e,l)},p:ae,i:ae,o:ae,d(t){t&&_(e)}}}function wu(n){let e;return{c(){e=ce("loading...")},l(t){e=de(t,"loading...")},m(t,l){v(t,e,l)},p:ae,i:ae,o:ae,d(t){t&&_(e)}}}function Tu(n){let e,t,l=n[8].toLocaleString()+"",i,r,s=n[8]>1?"records":"record",f,o,a=n[7].toLocaleString()+"",u,c,d=n[7]>1?"properties":"property",g,m;return e=new Br({props:{toggled:n[9],color:"#3488e9"}}),{c(){$(e.$$.fragment),t=K(),i=ce(l),r=K(),f=ce(s),o=ce(" with "),u=ce(a),c=K(),g=ce(d)},l(h){ee(e.$$.fragment,h),t=J(h),i=de(h,l),r=J(h),f=de(h,s),o=de(h," with "),u=de(h,a),c=J(h),g=de(h,d)},m(h,b){te(e,h,b),v(h,t,b),v(h,i,b),v(h,r,b),v(h,f,b),v(h,o,b),v(h,u,b),v(h,c,b),v(h,g,b),m=!0},p(h,b){const p={};b&512&&(p.toggled=h[9]),e.$set(p),(!m||b&256)&&l!==(l=h[8].toLocaleString()+"")&&Le(i,l),(!m||b&256)&&s!==(s=h[8]>1?"records":"record")&&Le(f,s),(!m||b&128)&&a!==(a=h[7].toLocaleString()+"")&&Le(u,a),(!m||b&128)&&d!==(d=h[7]>1?"properties":"property")&&Le(g,d)},i(h){m||(k(e.$$.fragment,h),m=!0)},o(h){C(e.$$.fragment,h),m=!1},d(h){h&&(_(t),_(i),_(r),_(f),_(o),_(u),_(c),_(g)),le(e,h)}}}function Eu(n){let e=n[6].message+"",t;return{c(){t=ce(e)},l(l){t=de(l,e)},m(l,i){v(l,t,i)},p(l,i){i&64&&e!==(e=l[6].message+"")&&Le(t,e)},i:ae,o:ae,d(l){l&&_(t)}}}function cr(n){let e,t;return e=new _u({props:{data:n[1],queryID:n[0]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&2&&(r.data=l[1]),i&1&&(r.queryID=l[0]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Ou(n){let e,t,l,i=n[11]&&fr(n);return{c(){e=R("div"),i&&i.c(),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=Q(e);i&&i.l(s),s.forEach(_),this.h()},h(){L(e,"class","over-container svelte-1plm20d")},m(r,s){v(r,e,s),i&&i.m(e,null),l=!0},p(r,[s]){r[11]?i?(i.p(r,s),s&2048&&k(i,1)):(i=fr(r),i.c(),k(i,1),i.m(e,null)):i&&(me(),C(i,1,1,()=>{i=null}),he())},i(r){l||(k(i),r&&(t||st(()=>{t=Cl(e,Pr,{}),t.start()})),l=!0)},o(r){C(i),l=!1},d(r){r&&_(e),i&&i.d()}}}function Au(n,e,t){let l,i,r,s,f=ae,o=()=>(f(),f=Ql(m,w=>t(2,s=w)),m),a,u,c,d;De(n,Ni,w=>t(17,c=w)),De(n,ps,w=>t(11,d=w)),n.$$.on_destroy.push(()=>f());let{queryID:g}=e,{queryResult:m}=e;o();let h=xi("showSQL_".concat(g),!1);De(n,h,w=>t(10,u=w));let b=xi(`showResults_${g}`);De(n,b,w=>t(9,a=w));const p=function(){Pt(h,u=!u,u)},y=function(){!U&&s.length>0&&Pt(b,a=!a,a)};let S,E,D=!0,U;function P(w){D=w,t(5,D)}return n.$$set=w=>{"queryID"in w&&t(0,g=w.queryID),"queryResult"in w&&o(t(1,m=w.queryResult))},n.$$.update=()=>{if(n.$$.dirty&131072&&t(16,l=c.data.evidencemeta.queries),n.$$.dirty&4&&(s?t(6,U=s.error):t(6,U=new Error("queryResult is undefined"))),n.$$.dirty&4&&t(8,i=(s==null?void 0:s.length)??0),n.$$.dirty&4&&t(7,r=s.columns.length??(s==null?void 0:s._evidenceColumnTypes.length)??0),n.$$.dirty&65537){let w=l==null?void 0:l.find(T=>T.id===g);w&&(t(3,S=w.inputQueryString),t(4,E=w.compiled&&w.compileError===void 0))}},[g,m,s,S,E,D,U,r,i,a,u,d,h,b,p,y,l,c,P]}class Xr extends ye{constructor(e){super(),ke(this,e,Au,Ou,ge,{queryID:0,queryResult:1})}}const jl=ft.grey500,Gl=ft.grey500,Hl=ft.grey500,Wl=ft.grey200,dr="white",Lu=ft.grey500,Du=ft.grey600,Mu=ft.grey500,Iu=ft.grey400,Fu="white",Nu=ft.grey900,Pu=ft.grey800,Bu=ft.grey700,zi={darkMode:!1,textStyle:{fontFamily:"sans-serif"},grid:{left:"0%",right:"4%",bottom:"0%",top:"15%",containLabel:!0},color:ml,backgroundColor:"rgba(255, 255, 255, 0)",title:{padding:0,itemGap:7,textStyle:{fontSize:14,color:Pu},subtextStyle:{fontSize:13,color:Bu,overflow:"break"},top:"0%"},line:{itemStyle:{borderWidth:0},lineStyle:{width:2,join:"round"},symbolSize:0,symbol:"circle",smooth:!1},radar:{itemStyle:{borderWidth:0},lineStyle:{width:2},symbolSize:0,symbol:"circle",smooth:!1},pie:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},scatter:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},boxplot:{itemStyle:{borderWidth:1.5}},parallel:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},sankey:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},funnel:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},gauge:{itemStyle:{borderWidth:0,borderColor:"#cccccc"}},candlestick:{itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1}},graph:{itemStyle:{borderWidth:0,borderColor:"#cccccc"},lineStyle:{width:1,color:"#aaaaaa"},symbolSize:0,symbol:"circle",smooth:!1,color:["#923d59","#488f96","#518eca","#b3a9a0","#ffc857","#495867","#bfdbf7","#bc4749","#eeebd0"],label:{color:"#f2f2f2"}},map:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},geo:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:jl}},axisTick:{show:!1,lineStyle:{color:Gl},length:3,alignWithLabel:!0},axisLabel:{show:!0,color:Hl},splitLine:{show:!1,lineStyle:{color:[Wl]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:jl}},axisTick:{show:!1,lineStyle:{color:Gl},length:2},axisLabel:{show:!0,color:Hl},splitLine:{show:!0,lineStyle:{color:[Wl],width:1}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}},nameTextStyle:{backgroundColor:dr}},logAxis:{axisLine:{show:!1,lineStyle:{color:jl}},axisTick:{show:!1,lineStyle:{color:Gl},length:2},axisLabel:{show:!0,color:Hl},splitLine:{show:!0,lineStyle:{color:[Wl]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}},nameTextStyle:{backgroundColor:dr}},timeAxis:{axisLine:{show:!0,lineStyle:{color:jl}},axisTick:{show:!0,lineStyle:{color:Gl},length:3},axisLabel:{show:!0,color:Hl},splitLine:{show:!1,lineStyle:{color:[Wl]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},toolbox:{iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#459cde"}}},legend:{textStyle:{padding:[0,0,0,-7],color:Lu},icon:"circle",pageIcons:{horizontal:["M 17 3 h 2 c 0.386 0 0.738 0.223 0.904 0.572 s 0.115 0.762 -0.13 1.062 L 11.292 15 l 8.482 10.367 c 0.245 0.299 0.295 0.712 0.13 1.062 S 19.386 27 19 27 h -2 c -0.3 0 -0.584 -0.135 -0.774 -0.367 l -9 -11 c -0.301 -0.369 -0.301 -0.898 0 -1.267 l 9 -11 C 16.416 3.135 16.7 3 17 3 Z","M 12 27 h -2 c -0.386 0 -0.738 -0.223 -0.904 -0.572 s -0.115 -0.762 0.13 -1.062 L 17.708 15 L 9.226 4.633 c -0.245 -0.299 -0.295 -0.712 -0.13 -1.062 S 9.614 3 10 3 h 2 c 0.3 0 0.584 0.135 0.774 0.367 l 9 11 c 0.301 0.369 0.301 0.898 0 1.267 l -9 11 C 12.584 26.865 12.3 27 12 27 Z"]},pageIconColor:Du,pageIconSize:12,pageTextStyle:{color:Mu},pageButtonItemGap:-2,animationDurationUpdate:300},tooltip:{axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}},borderRadius:4,borderWidth:1,borderColor:Iu,backgroundColor:Fu,textStyle:{color:Nu,fontSize:12,fontWeight:400},padding:6},timeline:{lineStyle:{color:"#e3e3e3",width:2},itemStyle:{color:"#d6d6d6",borderWidth:1},controlStyle:{color:"#bfbfbf",borderColor:"#bfbfbf",borderWidth:1},checkpointStyle:{color:"#8f8f8f",borderColor:"#ffffff"},label:{color:"#c9c9c9"},emphasis:{itemStyle:{color:"#9c9c9c"},controlStyle:{color:"#bfbfbf",borderColor:"#bfbfbf",borderWidth:1},label:{color:"#c9c9c9"}}},visualMap:{color:["#c41621","#e39588","#f5ed98"]},dataZoom:{handleSize:"undefined%",textStyle:{}},markPoint:{label:{color:"#f2f2f2"},emphasis:{label:{color:"#f2f2f2"}}}},Jt=500,qu=(n,e)=>{const t=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)&&n.clientWidth*3*n.clientHeight*3>16777215;Ii("evidence-light",zi);const l=Fi(n,"evidence-light",{renderer:t?"svg":e.renderer??"canvas"});e.connectGroup&&(l.group=e.connectGroup,Cs(e.connectGroup));const i=()=>{if(e.seriesColors){const m=l.getOption();if(!m)return;const h={...m};for(const b of Object.keys(e.seriesColors)){const p=m.series.findIndex(y=>y.name===b);p!==-1&&(h.series[p]={...h.series[p],itemStyle:{...h.series[p].itemStyle,color:e.seriesColors[b]}})}l.setOption(h)}},r=()=>{e.echartsOptions&&l.setOption({...e.echartsOptions})},s=()=>{let m=[];if(e.seriesOptions){const h=e.config.series.reduce((b,{evidenceSeriesType:p},y)=>((p==="reference_line"||p==="reference_area"||p==="reference_point")&&b.push(y),b),[]);for(let b=0;b<e.config.series.length;b++)h.includes(b)?m.push({}):m.push({...e.seriesOptions});l.setOption({series:m})}};l.setOption({...e.config,animationDuration:Jt,animationDurationUpdate:Jt}),i(),r(),s();const f=e.dispatch;l.on("click",function(m){f("click",m)});const o=document.getElementById("evidence-main-article"),a=n.parentElement,u=vs(()=>{l.resize({animation:{duration:Jt}}),d()},100);let c;window.ResizeObserver&&o?(c=new ResizeObserver(u),c.observe(o),c.observe(a)):window.addEventListener("resize",u);const d=()=>{if(e.showAllXAxisLabels){const m=l.getOption();if(!m)return;const h=new Set(m.series.flatMap(y=>{var S;return(S=y.data)==null?void 0:S.map(E=>E[0])})),b=4/5,p=(n==null?void 0:n.clientWidth)??0;if(!e.swapXY){const y={xAxis:{axisLabel:{interval:0,overflow:"truncate",width:p*b/h.size}}};l.setOption(y)}}},g=m=>{e=m,l.setOption({...e.config,animationDuration:Jt,animationDurationUpdate:Jt},!0),i(),r(),s(),l.resize({animation:{duration:Jt}}),d()};return u(),{update(m){g(m)},destroy(){c?(c.unobserve(o),c.unobserve(a)):window.removeEventListener("resize",u),l.dispose()}}},Vu=(n,e)=>{Ii("evidence-light",zi);const t=Fi(n,"evidence-light",{renderer:"canvas"});e.config.animation=!1,t.setOption(e.config);const l=()=>{if(e.seriesColors){const a=t.getOption();if(!a)return;const u={...a};for(const c of Object.keys(e.seriesColors)){const d=a.series.findIndex(g=>g.name===c);d!==-1&&(u.series[d]={...u.series[d],itemStyle:{...u.series[d].itemStyle,color:e.seriesColors[c]}})}t.setOption(u)}},i=()=>{e.echartsOptions&&t.setOption({...e.echartsOptions})},r=()=>{let a=[];if(e.seriesOptions){const u=e.config.series.reduce((c,{evidenceSeriesType:d},g)=>((d==="reference_line"||d==="reference_area"||d==="reference_point")&&c.push(g),c),[]);for(let c=0;c<e.config.series.length;c++)u.includes(c)?a.push({}):a.push({...e.seriesOptions});t.setOption({series:a})}};i(),l(),r();let s=t.getConnectedDataURL({type:"png",pixelRatio:3,backgroundColor:"white",excludeComponents:["toolbox"]});const f=new Date,o=new Date(f.getTime()-f.getTimezoneOffset()*6e4).toISOString().slice(0,19).replaceAll(":","-");return Ss(s,(e.evidenceChartTitle??e.queryID??"evidence-chart")+`_${o}.png`),t.dispose(),{destroy(){t.dispose()}}},yl=(n,e)=>{Ii("evidence-light",zi);const{config:t,ratio:l,echartsOptions:i,seriesOptions:r,seriesColors:s,isMap:f,extraHeight:o,width:a}=e;let u={renderer:"canvas"};f&&(u.height=a*.5+o,n&&n.parentNode&&(n.style.height=u.height+"px",n.parentNode.style.height=u.height+"px"));const c=Fi(n,"evidence-light",u);t.animation=!1,c.setOption(t),i&&c.setOption(i);const d=()=>{if(s){const b=c.getOption();if(!b)return;const p={...b};for(const y of Object.keys(s)){const S=b.series.findIndex(E=>E.name===y);S!==-1&&(p.series[S]={...p.series[S],itemStyle:{...p.series[S].itemStyle,color:s[y]}})}c.setOption(p)}},g=()=>{i&&c.setOption({...i})},m=()=>{let b=[];if(r){const p=t.series.reduce((y,{evidenceSeriesType:S},E)=>((S==="reference_line"||S==="reference_area"||S==="reference_point")&&y.push(E),y),[]);for(let y=0;y<t.series.length;y++)p.includes(y)?b.push({}):b.push({...r});c.setOption({series:b})}};g(),d(),m();let h=c.getConnectedDataURL({type:"jpeg",pixelRatio:l,backgroundColor:"#fff",excludeComponents:["toolbox"]});n.innerHTML=`<img src=${h} width="100%" style=" | |
position: absolute; | |
top: 0; | |
user-select: all; | |
-webkit-user-select: all; | |
-moz-user-select: all; | |
-ms-user-select: all; | |
" />`,e.config.animation=!0};function zu(n){let e;function t(r,s){return r[10]?Gu:ju}let l=t(n),i=l(n);return{c(){i.c(),e=re()},l(r){i.l(r),e=re()},m(r,s){i.m(r,s),v(r,e,s)},p(r,s){l===(l=t(r))&&i?i.p(r,s):(i.d(1),i=l(r),i&&(i.c(),i.m(e.parentNode,e)))},d(r){r&&_(e),i.d(r)}}}function Ru(n){let e,t,l,i;return{c(){e=R("div"),this.h()},l(r){e=j(r,"DIV",{class:!0,style:!0}),Q(e).forEach(_),this.h()},h(){L(e,"class","chart"),X(e,"height",n[1]),X(e,"width",n[2]),X(e,"margin-left","0"),X(e,"margin-top","15px"),X(e,"margin-bottom","10px"),X(e,"overflow","visible"),X(e,"break-inside","avoid")},m(r,s){v(r,e,s),l||(i=je(t=yl.call(null,e,{config:n[0],ratio:2,echartsOptions:n[5],seriesOptions:n[6],seriesColors:n[7]})),l=!0)},p(r,s){s&2&&X(e,"height",r[1]),s&4&&X(e,"width",r[2]),t&&Bt(t.update)&&s&225&&t.update.call(null,{config:r[0],ratio:2,echartsOptions:r[5],seriesOptions:r[6],seriesColors:r[7]})},d(r){r&&_(e),l=!1,i()}}}function ju(n){let e,t,l,i,r,s,f;return{c(){e=R("div"),l=K(),i=R("div"),this.h()},l(o){e=j(o,"DIV",{class:!0,style:!0}),Q(e).forEach(_),l=J(o),i=j(o,"DIV",{class:!0,style:!0}),Q(i).forEach(_),this.h()},h(){L(e,"class","chart md:hidden"),X(e,"height",n[1]),X(e,"width","650px"),X(e,"margin-left","0"),X(e,"margin-top","15px"),X(e,"margin-bottom","10px"),X(e,"overflow","visible"),X(e,"break-inside","avoid"),L(i,"class","chart hidden md:block"),X(i,"height",n[1]),X(i,"width","841px"),X(i,"margin-left","0"),X(i,"margin-top","15px"),X(i,"margin-bottom","10px"),X(i,"overflow","visible"),X(i,"break-inside","avoid")},m(o,a){v(o,e,a),v(o,l,a),v(o,i,a),s||(f=[je(t=yl.call(null,e,{config:n[0],ratio:4,echartsOptions:n[5],seriesOptions:n[6],seriesColors:n[7],isMap:n[8],extraHeight:n[9],width:650})),je(r=yl.call(null,i,{config:n[0],ratio:4,echartsOptions:n[5],seriesOptions:n[6],seriesColors:n[7],isMap:n[8],extraHeight:n[9],width:841}))],s=!0)},p(o,a){a&2&&X(e,"height",o[1]),t&&Bt(t.update)&&a&993&&t.update.call(null,{config:o[0],ratio:4,echartsOptions:o[5],seriesOptions:o[6],seriesColors:o[7],isMap:o[8],extraHeight:o[9],width:650}),a&2&&X(i,"height",o[1]),r&&Bt(r.update)&&a&993&&r.update.call(null,{config:o[0],ratio:4,echartsOptions:o[5],seriesOptions:o[6],seriesColors:o[7],isMap:o[8],extraHeight:o[9],width:841})},d(o){o&&(_(e),_(l),_(i)),s=!1,qt(f)}}}function Gu(n){let e,t,l,i,r,s,f;return{c(){e=R("div"),l=K(),i=R("div"),this.h()},l(o){e=j(o,"DIV",{class:!0,style:!0}),Q(e).forEach(_),l=J(o),i=j(o,"DIV",{class:!0,style:!0}),Q(i).forEach(_),this.h()},h(){L(e,"class","chart md:hidden"),X(e,"height",n[1]),X(e,"width",n[12]+"px"),X(e,"margin-left","0"),X(e,"margin-top","15px"),X(e,"margin-bottom","10px"),X(e,"overflow","visible"),X(e,"break-inside","avoid"),L(i,"class","chart hidden md:block"),X(i,"height",n[1]),X(i,"width",n[11]+"px"),X(i,"margin-left","0"),X(i,"margin-top","15px"),X(i,"margin-bottom","10px"),X(i,"overflow","visible"),X(i,"break-inside","avoid")},m(o,a){v(o,e,a),v(o,l,a),v(o,i,a),s||(f=[je(t=yl.call(null,e,{config:n[0],ratio:4,echartsOptions:n[5],seriesOptions:n[6],seriesColors:n[7],isMap:n[8],extraHeight:n[9],width:n[12]})),je(r=yl.call(null,i,{config:n[0],ratio:4,echartsOptions:n[5],seriesOptions:n[6],seriesColors:n[7],isMap:n[8],extraHeight:n[9],width:n[11]}))],s=!0)},p(o,a){a&2&&X(e,"height",o[1]),a&4096&&X(e,"width",o[12]+"px"),t&&Bt(t.update)&&a&5089&&t.update.call(null,{config:o[0],ratio:4,echartsOptions:o[5],seriesOptions:o[6],seriesColors:o[7],isMap:o[8],extraHeight:o[9],width:o[12]}),a&2&&X(i,"height",o[1]),a&2048&&X(i,"width",o[11]+"px"),r&&Bt(r.update)&&a&3041&&r.update.call(null,{config:o[0],ratio:4,echartsOptions:o[5],seriesOptions:o[6],seriesColors:o[7],isMap:o[8],extraHeight:o[9],width:o[11]})},d(o){o&&(_(e),_(l),_(i)),s=!1,qt(f)}}}function Hu(n){let e;function t(r,s){if(r[3])return Ru;if(r[4])return zu}let l=t(n),i=l&&l(n);return{c(){i&&i.c(),e=re()},l(r){i&&i.l(r),e=re()},m(r,s){i&&i.m(r,s),v(r,e,s)},p(r,[s]){l===(l=t(r))&&i?i.p(r,s):(i&&i.d(1),i=l&&l(r),i&&(i.c(),i.m(e.parentNode,e)))},i:ae,o:ae,d(r){r&&_(e),i&&i.d(r)}}}function Wu(n,e,t){let l,i,r,s,{config:f=void 0}=e,{height:o="291px"}=e,{width:a="100%"}=e,{copying:u=!1}=e,{printing:c=!1}=e,{echartsOptions:d=void 0}=e,{seriesOptions:g=void 0}=e,{seriesColors:m=void 0}=e,{isMap:h=!1}=e,{extraHeight:b=void 0}=e,p=!1,y,S;const E=el("gridConfig");return E&&(p=!0,{cols:y,gapWidth:S}=E),n.$$set=D=>{"config"in D&&t(0,f=D.config),"height"in D&&t(1,o=D.height),"width"in D&&t(2,a=D.width),"copying"in D&&t(3,u=D.copying),"printing"in D&&t(4,c=D.printing),"echartsOptions"in D&&t(5,d=D.echartsOptions),"seriesOptions"in D&&t(6,g=D.seriesOptions),"seriesColors"in D&&t(7,m=D.seriesColors),"isMap"in D&&t(8,h=D.isMap),"extraHeight"in D&&t(9,b=D.extraHeight)},n.$$.update=()=>{n.$$.dirty&8192&&t(16,l=Math.min(Number(y),2)),n.$$.dirty&81920&&t(12,i=(650-Number(S)*(l-1))/l),n.$$.dirty&8192&&t(15,r=Math.min(Number(y),3)),n.$$.dirty&49152&&t(11,s=(841-Number(S)*(r-1))/r)},[f,o,a,u,c,d,g,m,h,b,p,s,i,y,S,r,l]}class Uu extends ye{constructor(e){super(),ke(this,e,Wu,Hu,ge,{config:0,height:1,width:2,copying:3,printing:4,echartsOptions:5,seriesOptions:6,seriesColors:7,isMap:8,extraHeight:9})}}function Xu(n){let e,t,l="Loading...",i,r,s;return{c(){e=R("div"),t=R("span"),t.textContent=l,i=K(),r=R("div"),this.h()},l(f){e=j(f,"DIV",{role:!0,class:!0});var o=Q(e);t=j(o,"SPAN",{class:!0,"data-svelte-h":!0}),ut(t)!=="svelte-1wtojot"&&(t.textContent=l),i=J(o),r=j(o,"DIV",{class:!0,style:!0}),Q(r).forEach(_),o.forEach(_),this.h()},h(){L(t,"class","sr-only"),L(r,"class","bg-gray-200 rounded-md dark:bg-gray-400 max-w-[100%]"),X(r,"height",n[0]),X(r,"margin-top","15px"),X(r,"margin-bottom","31px"),L(e,"role","status"),L(e,"class","animate-pulse")},m(f,o){v(f,e,o),Y(e,t),Y(e,i),Y(e,r)},p(f,[o]){o&1&&X(r,"height",f[0])},i(f){f&&(s||st(()=>{s=Cl(e,Ys,{}),s.start()}))},o:ae,d(f){f&&_(e)}}}function Qu(n,e,t){let{height:l="231px"}=e;return n.$$set=i=>{"height"in i&&t(0,l=i.height)},[l]}class Yu extends ye{constructor(e){super(),ke(this,e,Qu,Xu,ge,{height:0})}}function mr(n){let e,t,l,i;const r=[Ju,Ku],s=[];function f(o,a){return 1}return e=f(),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,a){t.p(o,a)},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function Ku(n){let e,t,l,i;return{c(){e=R("div"),this.h()},l(r){e=j(r,"DIV",{class:!0,style:!0}),Q(e).forEach(_),this.h()},h(){L(e,"class","chart svelte-19r8f8"),X(e,"height",n[3]),X(e,"width",n[4]),X(e,"margin-left","0"),X(e,"margin-top","15px"),X(e,"margin-bottom","10px"),X(e,"overflow","visible"),X(e,"display",n[13]?"none":"inherit")},m(r,s){v(r,e,s),l||(i=je(t=qu.call(null,e,{config:n[0],...n[17],echartsOptions:n[7],seriesOptions:n[8],dispatch:n[16],renderer:n[6],connectGroup:n[11],seriesColors:n[10]})),l=!0)},p(r,s){s&8&&X(e,"height",r[3]),s&16&&X(e,"width",r[4]),s&8192&&X(e,"display",r[13]?"none":"inherit"),t&&Bt(t.update)&&s&134593&&t.update.call(null,{config:r[0],...r[17],echartsOptions:r[7],seriesOptions:r[8],dispatch:r[16],renderer:r[6],connectGroup:r[11],seriesColors:r[10]})},i:ae,o:ae,d(r){r&&_(e),l=!1,i()}}}function Ju(n){let e,t;return e=new Yu({props:{height:n[3]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&8&&(r.height=l[3]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Zu(n){let e,t,l,i;return{c(){e=Fl("svg"),t=Fl("rect"),l=Fl("circle"),i=Fl("path"),this.h()},l(r){e=Nl(r,"svg",{xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var s=Q(e);t=Nl(s,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0}),Q(t).forEach(_),l=Nl(s,"circle",{cx:!0,cy:!0,r:!0}),Q(l).forEach(_),i=Nl(s,"path",{d:!0}),Q(i).forEach(_),s.forEach(_),this.h()},h(){L(t,"x","3"),L(t,"y","3"),L(t,"width","18"),L(t,"height","18"),L(t,"rx","2"),L(l,"cx","8.5"),L(l,"cy","8.5"),L(l,"r","1.5"),L(i,"d","M20.4 14.5L16 10 4 20"),L(e,"xmlns","http://www.w3.org/2000/svg"),L(e,"width","12"),L(e,"height","12"),L(e,"viewBox","0 0 24 24"),L(e,"fill","none"),L(e,"stroke","#000"),L(e,"stroke-width","2"),L(e,"stroke-linecap","round"),L(e,"stroke-linejoin","round")},m(r,s){v(r,e,s),Y(e,t),Y(e,l),Y(e,i)},p:ae,d(r){r&&_(e)}}}function hr(n){let e,t;return e=new Pi({props:{text:"Download data",data:n[5],queryID:n[1],class:"download-button",display:n[15]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&32&&(r.data=l[5]),i&2&&(r.queryID=l[1]),i&32768&&(r.display=l[15]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function _r(n){let e,t;return e=new Hs({props:{source:JSON.stringify(n[0],void 0,3),copyToClipboard:!0,$$slots:{default:[xu]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&1&&(r.source=JSON.stringify(l[0],void 0,3)),i&67108865&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function xu(n){let e=JSON.stringify(n[0],void 0,3)+"",t;return{c(){t=ce(e)},l(l){t=de(l,e)},m(l,i){v(l,t,i)},p(l,i){i&1&&e!==(e=JSON.stringify(l[0],void 0,3)+"")&&Le(t,e)},d(l){l&&_(t)}}}function gr(n){let e,t,l,i;return{c(){e=R("div"),this.h()},l(r){e=j(r,"DIV",{class:!0,style:!0}),Q(e).forEach(_),this.h()},h(){L(e,"class","chart svelte-19r8f8"),X(e,"display","none"),X(e,"visibility","visible"),X(e,"height",n[3]),X(e,"width","666px"),X(e,"margin-left","0"),X(e,"margin-top","15px"),X(e,"margin-bottom","15px"),X(e,"overflow","visible")},m(r,s){v(r,e,s),l||(i=je(t=Vu.call(null,e,{config:n[0],...n[17],echartsOptions:n[7],seriesOptions:n[8],seriesColors:n[10],queryID:n[1],evidenceChartTitle:n[2]})),l=!0)},p(r,s){s&8&&X(e,"height",r[3]),t&&Bt(t.update)&&s&132487&&t.update.call(null,{config:r[0],...r[17],echartsOptions:r[7],seriesOptions:r[8],seriesColors:r[10],queryID:r[1],evidenceChartTitle:r[2]})},d(r){r&&_(e),l=!1,i()}}}function $u(n){let e,t,l,i,r,s,f,o,a,u,c,d,g,m=!n[14]&&mr(n);l=new Uu({props:{config:n[0],height:n[3],width:n[4],copying:n[13],printing:n[14],echartsOptions:n[7],seriesOptions:n[8],seriesColors:n[10]}}),s=new Pi({props:{text:"Save image",class:"download-button",downloadData:n[23],display:n[15],queryID:n[1],$$slots:{default:[Zu]},$$scope:{ctx:n}}});let h=n[5]&&hr(n),b=n[9]&&!n[14]&&_r(n),p=n[12]&&gr(n);return{c(){e=R("div"),m&&m.c(),t=K(),$(l.$$.fragment),i=K(),r=R("div"),$(s.$$.fragment),f=K(),h&&h.c(),o=K(),b&&b.c(),a=K(),p&&p.c(),u=re(),this.h()},l(y){e=j(y,"DIV",{role:!0,class:!0});var S=Q(e);m&&m.l(S),t=J(S),ee(l.$$.fragment,S),i=J(S),r=j(S,"DIV",{class:!0});var E=Q(r);ee(s.$$.fragment,E),f=J(E),h&&h.l(E),E.forEach(_),o=J(S),b&&b.l(S),S.forEach(_),a=J(y),p&&p.l(y),u=re(),this.h()},h(){L(r,"class","chart-footer svelte-19r8f8"),L(e,"role","none"),L(e,"class","chart-container svelte-19r8f8")},m(y,S){v(y,e,S),m&&m.m(e,null),Y(e,t),te(l,e,null),Y(e,i),Y(e,r),te(s,r,null),Y(r,f),h&&h.m(r,null),Y(e,o),b&&b.m(e,null),v(y,a,S),p&&p.m(y,S),v(y,u,S),c=!0,d||(g=[Fe(window,"copy",n[18]),Fe(window,"beforeprint",n[19]),Fe(window,"afterprint",n[20]),Fe(window,"export-beforeprint",n[21]),Fe(window,"export-afterprint",n[22]),Fe(e,"mouseenter",n[24]),Fe(e,"mouseleave",n[25])],d=!0)},p(y,[S]){y[14]?m&&(me(),C(m,1,1,()=>{m=null}),he()):m?(m.p(y,S),S&16384&&k(m,1)):(m=mr(y),m.c(),k(m,1),m.m(e,t));const E={};S&1&&(E.config=y[0]),S&8&&(E.height=y[3]),S&16&&(E.width=y[4]),S&8192&&(E.copying=y[13]),S&16384&&(E.printing=y[14]),S&128&&(E.echartsOptions=y[7]),S&256&&(E.seriesOptions=y[8]),S&1024&&(E.seriesColors=y[10]),l.$set(E);const D={};S&4096&&(D.downloadData=y[23]),S&32768&&(D.display=y[15]),S&2&&(D.queryID=y[1]),S&67108864&&(D.$$scope={dirty:S,ctx:y}),s.$set(D),y[5]?h?(h.p(y,S),S&32&&k(h,1)):(h=hr(y),h.c(),k(h,1),h.m(r,null)):h&&(me(),C(h,1,1,()=>{h=null}),he()),y[9]&&!y[14]?b?(b.p(y,S),S&16896&&k(b,1)):(b=_r(y),b.c(),k(b,1),b.m(e,null)):b&&(me(),C(b,1,1,()=>{b=null}),he()),y[12]?p?p.p(y,S):(p=gr(y),p.c(),p.m(u.parentNode,u)):p&&(p.d(1),p=null)},i(y){c||(k(m),k(l.$$.fragment,y),k(s.$$.fragment,y),k(h),k(b),c=!0)},o(y){C(m),C(l.$$.fragment,y),C(s.$$.fragment,y),C(h),C(b),c=!1},d(y){y&&(_(e),_(a),_(u)),m&&m.d(),le(l),le(s),h&&h.d(),b&&b.d(),p&&p.d(y),d=!1,qt(g)}}}function ec(n,e,t){const l=["config","queryID","evidenceChartTitle","height","width","data","renderer","echartsOptions","seriesOptions","printEchartsConfig","seriesColors","connectGroup"];let i=be(e,l),{config:r=void 0}=e,{queryID:s=void 0}=e,{evidenceChartTitle:f=void 0}=e,{height:o="291px"}=e,{width:a="100%"}=e,{data:u}=e,{renderer:c=void 0}=e,{echartsOptions:d=void 0}=e,{seriesOptions:g=void 0}=e,{printEchartsConfig:m}=e,{seriesColors:h=void 0}=e,{connectGroup:b=void 0}=e;const p=Zr();let y=!1,S=!1,E=!1,D=!1;const U=()=>{t(13,S=!0),xr(),setTimeout(()=>{t(13,S=!1)},0)},P=()=>t(14,E=!0),w=()=>t(14,E=!1),T=()=>t(14,E=!0),N=()=>t(14,E=!1),B=()=>{t(12,y=!0),setTimeout(()=>{t(12,y=!1)},0)},O=()=>t(15,D=!0),M=()=>t(15,D=!1);return n.$$set=q=>{e=ie(ie({},e),Ve(q)),t(17,i=be(e,l)),"config"in q&&t(0,r=q.config),"queryID"in q&&t(1,s=q.queryID),"evidenceChartTitle"in q&&t(2,f=q.evidenceChartTitle),"height"in q&&t(3,o=q.height),"width"in q&&t(4,a=q.width),"data"in q&&t(5,u=q.data),"renderer"in q&&t(6,c=q.renderer),"echartsOptions"in q&&t(7,d=q.echartsOptions),"seriesOptions"in q&&t(8,g=q.seriesOptions),"printEchartsConfig"in q&&t(9,m=q.printEchartsConfig),"seriesColors"in q&&t(10,h=q.seriesColors),"connectGroup"in q&&t(11,b=q.connectGroup)},[r,s,f,o,a,u,c,d,g,m,h,b,y,S,E,D,p,i,U,P,w,T,N,B,O,M]}class tc extends ye{constructor(e){super(),ke(this,e,ec,$u,ge,{config:0,queryID:1,evidenceChartTitle:2,height:3,width:4,data:5,renderer:6,echartsOptions:7,seriesOptions:8,printEchartsConfig:9,seriesColors:10,connectGroup:11})}}function kl(n,e){const t=new Set(n.map(l=>l[e]));return Array.from(t)}function lc(n,e){return It(n,Ws({count:Us(e)}))[0].count}function ic(n,e,t){let l;if(typeof t!="object")l=It(n,Ai(e,Pn({xTotal:Di(t)})),wi({percentOfX:Vn(t,"xTotal")}),Nn({[t]:t+"_raw",percentOfX:t+"_pct"}));else{l=It(n,wi({valueSum:0}));for(let i=0;i<l.length;i++){l[i].valueSum=0;for(let r=0;r<t.length;r++)l[i].valueSum=l[i].valueSum+l[i][t[r]]}l=It(l,Ai(e,Pn({xTotal:Di("valueSum")})));for(let i=0;i<t.length;i++)l=It(l,wi({percentOfX:Vn(t[i],"xTotal")}),Nn({[t[i]]:t[i]+"_raw",percentOfX:t[i]+"_pct"}))}return l}function _l(n,e,t){return[...n].sort((l,i)=>(l[e]<i[e]?-1:1)*(t?1:-1))}function Qr(n,e,t){const l=e+t;return n%l<e?0:1}function nc(n){let e,t;return e=new Fr({props:{error:n[13],chartType:n[6]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&8192&&(r.error=l[13]),i[0]&64&&(r.chartType=l[6]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function rc(n){let e,t,l,i,r;const s=n[119].default,f=pe(s,n,n[118],null),o=[oc,sc],a=[];function u(c,d){return c[15].series.length?1:0}return t=u(n),l=a[t]=o[t](n),{c(){f&&f.c(),e=K(),l.c(),i=re()},l(c){f&&f.l(c),e=J(c),l.l(c),i=re()},m(c,d){f&&f.m(c,d),v(c,e,d),a[t].m(c,d),v(c,i,d),r=!0},p(c,d){f&&f.p&&(!r||d[3]&33554432)&&Ce(f,s,c,c[118],r?Se(s,c[118],d,null):ve(c[118]),null);let g=t;t=u(c),t===g?a[t].p(c,d):(me(),C(a[g],1,1,()=>{a[g]=null}),he(),l=a[t],l?l.p(c,d):(l=a[t]=o[t](c),l.c()),k(l,1),l.m(i.parentNode,i))},i(c){r||(k(f,c),k(l),r=!0)},o(c){C(f,c),C(l),r=!1},d(c){c&&(_(e),_(i)),f&&f.d(c),a[t].d(c)}}}function sc(n){let e,t;return e=new tc({props:{config:n[15],height:n[14],width:n[12],data:n[0],queryID:n[3],evidenceChartTitle:n[5],showAllXAxisLabels:n[4],swapXY:n[2],echartsOptions:n[7],seriesOptions:n[8],printEchartsConfig:n[1],renderer:n[10],connectGroup:n[11],seriesColors:n[9]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&32768&&(r.config=l[15]),i[0]&16384&&(r.height=l[14]),i[0]&4096&&(r.width=l[12]),i[0]&1&&(r.data=l[0]),i[0]&8&&(r.queryID=l[3]),i[0]&32&&(r.evidenceChartTitle=l[5]),i[0]&16&&(r.showAllXAxisLabels=l[4]),i[0]&4&&(r.swapXY=l[2]),i[0]&128&&(r.echartsOptions=l[7]),i[0]&256&&(r.seriesOptions=l[8]),i[0]&2&&(r.printEchartsConfig=l[1]),i[0]&1024&&(r.renderer=l[10]),i[0]&2048&&(r.connectGroup=l[11]),i[0]&512&&(r.seriesColors=l[9]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function oc(n){let e,t;return e=new Nr({props:{emptySet:"pass"}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p:ae,i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function fc(n){let e,t,l,i;const r=[rc,nc],s=[];function f(o,a){return o[13]?1:0}return e=f(n),t=s[e]=r[e](n),{c(){t.c(),l=re()},l(o){t.l(o),l=re()},m(o,a){s[e].m(o,a),v(o,l,a),i=!0},p(o,a){let u=e;e=f(o),e===u?s[e].p(o,a):(me(),C(s[u],1,1,()=>{s[u]=null}),he(),t=s[e],t?t.p(o,a):(t=s[e]=r[e](o),t.c()),k(t,1),t.m(l.parentNode,l))},i(o){i||(k(t),i=!0)},o(o){C(t),i=!1},d(o){o&&_(l),s[e].d(o)}}}function ac(n,e,t){let l,{$$slots:i={},$$scope:r}=e,s=bl({}),f=bl({});De(n,f,F=>t(15,l=F));let{data:o=void 0}=e,{queryID:a=void 0}=e,{x:u=void 0}=e,{y:c=void 0}=e,{y2:d=void 0}=e,{series:g=void 0}=e,{size:m=void 0}=e,{tooltipTitle:h=void 0}=e,{showAllXAxisLabels:b=!1}=e,{printEchartsConfig:p=!1}=e;const y=!!c,S=!!u;let{swapXY:E=!1}=e,{title:D=void 0}=e,{subtitle:U=void 0}=e,{chartType:P="Chart"}=e,{bubble:w=!1}=e,{hist:T=!1}=e,{boxplot:N=!1}=e,B,{xType:O=void 0}=e,{xAxisTitle:M="false"}=e,{xBaseline:q=!0}=e,{xTickMarks:se=!1}=e,{xGridlines:Z=!1}=e,{xAxisLabels:ne=!0}=e,{sort:z=!0}=e,{xFmt:I=void 0}=e,{xMin:G=void 0}=e,{xMax:x=void 0}=e,{yLog:fe=!1}=e,{yType:Oe=fe===!0?"log":"value"}=e,{yLogBase:H=10}=e,{yAxisTitle:Ae="false"}=e,{yBaseline:Me=!1}=e,{yTickMarks:_e=!1}=e,{yGridlines:Xe=!0}=e,{yAxisLabels:Ge=!0}=e,{yMin:Je=void 0}=e,{yMax:He=void 0}=e,{yScale:ze=!1}=e,{yFmt:We=void 0}=e,{yAxisColor:qe="true"}=e,{y2AxisTitle:Re="false"}=e,{y2Baseline:Ue=!1}=e,{y2TickMarks:Ze=!1}=e,{y2Gridlines:tt=!0}=e,{y2AxisLabels:lt=!0}=e,{y2Min:W=void 0}=e,{y2Max:Ie=void 0}=e,{y2Scale:xe=!1}=e,{y2Fmt:it=void 0}=e,{y2AxisColor:V="true"}=e,{sizeFmt:ue=void 0}=e,{colorPalette:Be=void 0}=e,{legend:Qe=void 0}=e,{echartsOptions:vt=void 0}=e,{seriesOptions:St=void 0}=e,{seriesColors:tl=void 0}=e,{stackType:Vt=void 0}=e,{stacked100:wt=!1}=e,{chartAreaHeight:nt}=e,{renderer:ll=void 0}=e,{connectGroup:il=void 0}=e,we,Et,A=[],gt=[],zt,Ot,rt,xl,ct,$e,bt,wl,$l,nl,Tl,ei,El,Rt,ti,li,rl,jt,ii,ni,ri,si,oi,fi,ai,ui,ci,di,mi,Gt,sl,ol,Ol,Al,hi,_i,Ht,gi,bi,Ll,Ri,yi,At=[],Wt=!0,yt=[],fl=[],at,al,ki,Lt;return n.$$set=F=>{"data"in F&&t(0,o=F.data),"queryID"in F&&t(3,a=F.queryID),"x"in F&&t(17,u=F.x),"y"in F&&t(18,c=F.y),"y2"in F&&t(41,d=F.y2),"series"in F&&t(42,g=F.series),"size"in F&&t(43,m=F.size),"tooltipTitle"in F&&t(44,h=F.tooltipTitle),"showAllXAxisLabels"in F&&t(4,b=F.showAllXAxisLabels),"printEchartsConfig"in F&&t(1,p=F.printEchartsConfig),"swapXY"in F&&t(2,E=F.swapXY),"title"in F&&t(5,D=F.title),"subtitle"in F&&t(45,U=F.subtitle),"chartType"in F&&t(6,P=F.chartType),"bubble"in F&&t(46,w=F.bubble),"hist"in F&&t(47,T=F.hist),"boxplot"in F&&t(48,N=F.boxplot),"xType"in F&&t(19,O=F.xType),"xAxisTitle"in F&&t(20,M=F.xAxisTitle),"xBaseline"in F&&t(21,q=F.xBaseline),"xTickMarks"in F&&t(22,se=F.xTickMarks),"xGridlines"in F&&t(23,Z=F.xGridlines),"xAxisLabels"in F&&t(24,ne=F.xAxisLabels),"sort"in F&&t(25,z=F.sort),"xFmt"in F&&t(49,I=F.xFmt),"xMin"in F&&t(50,G=F.xMin),"xMax"in F&&t(51,x=F.xMax),"yLog"in F&&t(26,fe=F.yLog),"yType"in F&&t(52,Oe=F.yType),"yLogBase"in F&&t(53,H=F.yLogBase),"yAxisTitle"in F&&t(27,Ae=F.yAxisTitle),"yBaseline"in F&&t(28,Me=F.yBaseline),"yTickMarks"in F&&t(29,_e=F.yTickMarks),"yGridlines"in F&&t(30,Xe=F.yGridlines),"yAxisLabels"in F&&t(31,Ge=F.yAxisLabels),"yMin"in F&&t(54,Je=F.yMin),"yMax"in F&&t(55,He=F.yMax),"yScale"in F&&t(32,ze=F.yScale),"yFmt"in F&&t(56,We=F.yFmt),"yAxisColor"in F&&t(57,qe=F.yAxisColor),"y2AxisTitle"in F&&t(33,Re=F.y2AxisTitle),"y2Baseline"in F&&t(34,Ue=F.y2Baseline),"y2TickMarks"in F&&t(35,Ze=F.y2TickMarks),"y2Gridlines"in F&&t(36,tt=F.y2Gridlines),"y2AxisLabels"in F&&t(37,lt=F.y2AxisLabels),"y2Min"in F&&t(58,W=F.y2Min),"y2Max"in F&&t(59,Ie=F.y2Max),"y2Scale"in F&&t(38,xe=F.y2Scale),"y2Fmt"in F&&t(60,it=F.y2Fmt),"y2AxisColor"in F&&t(61,V=F.y2AxisColor),"sizeFmt"in F&&t(62,ue=F.sizeFmt),"colorPalette"in F&&t(63,Be=F.colorPalette),"legend"in F&&t(39,Qe=F.legend),"echartsOptions"in F&&t(7,vt=F.echartsOptions),"seriesOptions"in F&&t(8,St=F.seriesOptions),"seriesColors"in F&&t(9,tl=F.seriesColors),"stackType"in F&&t(64,Vt=F.stackType),"stacked100"in F&&t(65,wt=F.stacked100),"chartAreaHeight"in F&&t(40,nt=F.chartAreaHeight),"renderer"in F&&t(10,ll=F.renderer),"connectGroup"in F&&t(11,il=F.connectGroup),"$$scope"in F&&t(118,r=F.$$scope)},n.$$.update=()=>{var F,ji,Gi,Hi,Wi,Ui;if(n.$$.dirty[0]&2&&t(1,p=p==="true"||p===!0),n.$$.dirty[0]&4&&(E==="true"||E===!0?t(2,E=!0):t(2,E=!1)),n.$$.dirty[0]&2097152&&t(21,q=q==="true"||q===!0),n.$$.dirty[0]&4194304&&t(22,se=se==="true"||se===!0),n.$$.dirty[0]&8388608&&t(23,Z=Z==="true"||Z===!0),n.$$.dirty[0]&16777216&&t(24,ne=ne==="true"||ne===!0),n.$$.dirty[0]&33554432&&t(25,z=z==="true"||z===!0),n.$$.dirty[0]&67108864&&t(26,fe=fe==="true"||fe===!0),n.$$.dirty[0]&268435456&&t(28,Me=Me==="true"||Me===!0),n.$$.dirty[0]&536870912&&t(29,_e=_e==="true"||_e===!0),n.$$.dirty[0]&1073741824&&t(30,Xe=Xe==="true"||Xe===!0),n.$$.dirty[1]&1&&t(31,Ge=Ge==="true"||Ge===!0),n.$$.dirty[1]&2&&t(32,ze=ze==="true"||ze===!0),n.$$.dirty[1]&8&&t(34,Ue=Ue==="true"||Ue===!0),n.$$.dirty[1]&16&&t(35,Ze=Ze==="true"||Ze===!0),n.$$.dirty[1]&32&&t(36,tt=tt==="true"||tt===!0),n.$$.dirty[1]&64&&t(37,lt=lt==="true"||lt===!0),n.$$.dirty[1]&128&&t(38,xe=xe==="true"||xe===!0),n.$$.dirty[0]&2147364965|n.$$.dirty[1]&2147483647|n.$$.dirty[2]&2147483647|n.$$.dirty[3]&33554431)try{if(t(13,al=void 0),t(111,At=[]),t(70,gt=[]),t(113,yt=[]),t(114,fl=[]),t(72,Ot=[]),rn(o),t(67,we=Ul(o)),t(68,Et=Object.keys(we)),S||t(17,u=Et[0]),!y){t(69,A=Et.filter(function(oe){return![u,g,m].includes(oe)}));for(let oe=0;oe<A.length;oe++)t(72,Ot=A[oe]),t(71,zt=we[Ot].type),zt==="number"&>.push(Ot);t(18,c=gt.length>1?gt:gt[0])}w?t(66,B={x:u,y:c,size:m}):T?t(66,B={x:u}):N?t(66,B={}):t(66,B={x:u,y:c});for(let oe in B)B[oe]==null&&At.push(oe);if(At.length===1)throw Error(new Intl.ListFormat().format(At)+" is required");if(At.length>1)throw Error(new Intl.ListFormat().format(At)+" are required");if(wt===!0&&c.includes("_pct")&&Wt===!1)if(typeof c=="object"){for(let oe=0;oe<c.length;oe++)t(18,c[oe]=c[oe].replace("_pct",""),c);t(112,Wt=!1)}else t(18,c=c.replace("_pct","")),t(112,Wt=!1);if(u&&yt.push(u),c)if(typeof c=="object")for(t(115,at=0);at<c.length;t(115,at++,at))yt.push(c[at]);else yt.push(c);if(d)if(typeof d=="object")for(t(115,at=0);at<d.length;t(115,at++,at))yt.push(d[at]);else yt.push(d);if(m&&yt.push(m),g&&fl.push(g),h&&fl.push(h),rn(o,yt,fl),wt===!0){if(t(0,o=ic(o,u,c)),typeof c=="object"){for(let oe=0;oe<c.length;oe++)t(18,c[oe]=c[oe]+"_pct",c);t(112,Wt=!1)}else t(18,c=c+"_pct"),t(112,Wt=!1);t(67,we=Ul(o))}switch(t(73,rt=we[u].type),rt){case"number":t(73,rt="value");break;case"string":t(73,rt="category");break;case"date":t(73,rt="time");break;default:break}if(t(19,O=O==="category"?"category":rt),E&&O!=="category")throw Error("Horizontal charts do not support a value or time-based x-axis. You can either change your SQL query to output string values or set swapXY=false.");if(E&&d)throw Error("Horizontal charts do not support a secondary y-axis. You can either set swapXY=false or remove the y2 prop from your chart.");if(E&&t(19,O="category"),t(74,xl=rt==="value"&&O==="category"),t(0,o=z?rt==="category"?_l(o,c,!1):_l(o,u,!0):o),rt==="time"&&t(0,o=_l(o,u,!0)),t(116,ki=Ul(o,"array")),t(117,Lt=ki.filter(oe=>oe.type==="date")),t(117,Lt=Lt.map(oe=>oe.id)),Lt.length>0)for(let oe=0;oe<Lt.length;oe++)t(0,o=Ps(o,Lt[oe]));I?t(75,ct=kt(I,(F=we[u].format)==null?void 0:F.valueType)):t(75,ct=we[u].format),c?We?typeof c=="object"?t(76,$e=kt(We,(ji=we[c[0]].format)==null?void 0:ji.valueType)):t(76,$e=kt(We,(Gi=we[c].format)==null?void 0:Gi.valueType)):typeof c=="object"?t(76,$e=we[c[0]].format):t(76,$e=we[c].format):t(76,$e="str"),d&&(it?typeof d=="object"?t(77,bt=kt(it,(Hi=we[d[0]].format)==null?void 0:Hi.valueType)):t(77,bt=kt(it,(Wi=we[d].format)==null?void 0:Wi.valueType)):typeof d=="object"?t(77,bt=we[d[0]].format):t(77,bt=we[d].format)),m&&(ue?t(78,wl=kt(ue,(Ui=we[m].format)==null?void 0:Ui.valueType)):t(78,wl=we[m].format)),t(79,$l=we[u].columnUnitSummary),c&&(typeof c=="object"?t(80,nl=we[c[0]].columnUnitSummary):t(80,nl=we[c].columnUnitSummary)),d&&(typeof d=="object"?t(81,Tl=we[d[0]].columnUnitSummary):t(81,Tl=we[d].columnUnitSummary)),t(20,M=M==="true"?pt(u,ct):M==="false"?"":M),t(27,Ae=Ae==="true"?typeof c=="object"?"":pt(c,$e):Ae==="false"?"":Ae),t(33,Re=Re==="true"?typeof d=="object"?"":pt(d,bt):Re==="false"?"":Re);let Ut=typeof c=="object"?c.length:1,Xi=g?lc(o,g):1,Dt=Ut*Xi,pi=typeof d=="object"?d.length:d?1:0,Ci=Dt+pi;if(Qe!==void 0&&t(39,Qe=Qe==="true"||Qe===!0),t(39,Qe=Qe??Ci>1),wt===!0&&fe===!0)throw Error("Log axis cannot be used in a 100% stacked chart");if(Vt==="stacked"&&Ci>1&&fe===!0)throw Error("Log axis cannot be used in a stacked chart");let Xt;if(typeof c=="object"){Xt=we[c[0]].columnUnitSummary.min;for(let oe=0;oe<c.length;oe++)we[c[oe]].columnUnitSummary.min<Xt&&(Xt=we[c[oe]].columnUnitSummary.min)}else c&&(Xt=we[c].columnUnitSummary.min);if(fe===!0&&Xt<=0&&Xt!==null)throw Error("Log axis cannot display values less than or equal to zero");s.update(oe=>({...oe,data:o,x:u,y:c,y2:d,series:g,swapXY:E,sort:z,xType:O,xFormat:ct,yFormat:$e,y2Format:bt,sizeFormat:wl,xMismatch:xl,size:m,yMin:Je,y2Min:W,columnSummary:we,xAxisTitle:M,yAxisTitle:Ae,y2AxisTitle:Re,tooltipTitle:h,chartAreaHeight:nt,chartType:P,yCount:Ut,y2Count:pi})),t(82,ei=kl(o,u));let Qi;if(E?t(83,El={type:Oe,logBase:H,position:"top",axisLabel:{show:Ge,hideOverlap:!0,showMaxLabel:!0,formatter(oe){return zl(oe,$e,nl)},margin:4},min:Je,max:He,scale:ze,splitLine:{show:Xe},axisLine:{show:Me,onZero:!1},axisTick:{show:_e},boundaryGap:!1,z:2}):t(83,El={type:O,min:G,max:x,splitLine:{show:Z},axisLine:{show:q},axisTick:{show:se},axisLabel:{show:ne,hideOverlap:!0,showMaxLabel:O==="category"||O==="value",formatter:O==="time"||O==="category"?!1:function(oe){return zl(oe,ct,$l)},margin:6},scale:!0,z:2}),E?t(84,Rt={type:O,inverse:"true",splitLine:{show:Z},axisLine:{show:q},axisTick:{show:se},axisLabel:{show:ne,hideOverlap:!0},scale:!0,min:G,max:x,z:2}):(t(84,Rt={type:Oe,logBase:H,splitLine:{show:Xe},axisLine:{show:Me,onZero:!1},axisTick:{show:_e},axisLabel:{show:Ge,hideOverlap:!0,margin:4,formatter(oe){return zl(oe,$e,nl)},color:d?qe==="true"?Be?Be[0]:ml[0]:qe!=="false"?qe:void 0:void 0},name:Ae,nameLocation:"end",nameTextStyle:{align:"left",verticalAlign:"top",padding:[0,5,0,0],color:d?qe==="true"?Be?Be[0]:ml[0]:qe!=="false"?qe:void 0:void 0},nameGap:6,min:Je,max:He,scale:ze,boundaryGap:["0%","1%"],z:2}),Qi={type:"value",show:!1,alignTicks:!0,splitLine:{show:tt},axisLine:{show:Ue,onZero:!1},axisTick:{show:Ze},axisLabel:{show:lt,hideOverlap:!0,margin:4,formatter(oe){return zl(oe,bt,Tl)},color:V==="true"?Be?Be[Dt]:ml[Dt]:V!=="false"?V:void 0},name:Re,nameLocation:"end",nameTextStyle:{align:"right",verticalAlign:"top",padding:[0,0,0,5],color:V==="true"?Be?Be[Dt]:ml[Dt]:V!=="false"?V:void 0},nameGap:6,min:W,max:Ie,scale:xe,boundaryGap:["0%","1%"],z:2},t(84,Rt=[Rt,Qi])),nt){if(t(40,nt=Number(nt)),isNaN(nt))throw Error("chartAreaHeight must be a number");if(nt<=0)throw Error("chartAreaHeight must be a positive number")}else t(40,nt=180);t(87,rl=!!D),t(88,jt=!!U),t(89,ii=Qe*(g!==null||typeof c=="object"&&c.length>1)),t(90,ni=Ae!==""&&E),t(91,ri=M!==""&&!E),t(92,si=15),t(93,oi=13),t(94,fi=6*jt),t(95,ai=rl*si+jt*oi+fi*Math.max(rl,jt)),t(96,ui=10),t(97,ci=8),t(98,di=14),t(99,mi=14),t(100,Gt=15),t(100,Gt=Gt*ii),t(101,sl=7),t(101,sl=sl*Math.max(rl,jt)),t(102,ol=ai+sl),t(103,Ol=ol+Gt+mi*ni+ui),t(104,Al=ri*di+ci),t(108,gi=8),t(110,Ll=1),E&&(t(109,bi=ei.length),t(110,Ll=Math.max(1,bi/gi))),t(105,hi=nt*Ll+Ol+Al),t(106,_i=ol+Gt+7),t(14,Ri=hi+"px"),t(12,yi="100%"),t(107,Ht=E?Ae:M),Ht!==""&&t(107,Ht=Ht+" →"),t(85,ti={id:"horiz-axis-title",type:"text",style:{text:Ht,textAlign:"right",fill:ft.grey500},cursor:"auto",right:E?"2%":"3%",top:E?_i:null,bottom:E?null:"2%"}),t(86,li={title:{text:D,subtext:U,subtextStyle:{width:yi}},tooltip:{trigger:"axis",formatter(oe){let Qt,Yt,Kt,Dl;if(Ci>1){Yt=oe[0].value[E?1:0],Qt=`<span id="tooltip" style='font-weight: 600;'>${et(Yt,ct)}</span>`;for(let Mt=oe.length-1;Mt>=0;Mt--)oe[Mt].seriesName!=="stackTotal"&&(Kt=oe[Mt].value[E?0:1],Qt=Qt+`<br> ${oe[Mt].marker} ${oe[Mt].seriesName} <span style='float:right; margin-left: 10px;'>${et(Kt,Qr(oe[Mt].componentIndex,Ut,pi)===0?$e:bt)}</span>`)}else O==="value"?(Yt=oe[0].value[E?1:0],Kt=oe[0].value[E?0:1],Dl=oe[0].seriesName,Qt=`<span id="tooltip" style='font-weight: 600;'>${pt(u,ct)}: </span><span style='float:right; margin-left: 10px;'>${et(Yt,ct)}</span><br/><span style='font-weight: 600;'>${pt(Dl,$e)}: </span><span style='float:right; margin-left: 10px;'>${et(Kt,$e)}</span>`):(Yt=oe[0].value[E?1:0],Kt=oe[0].value[E?0:1],Dl=oe[0].seriesName,Qt=`<span id="tooltip" style='font-weight: 600;'>${et(Yt,ct)}</span><br/><span>${pt(Dl,$e)}: </span><span style='float:right; margin-left: 10px;'>${et(Kt,$e)}</span>`);return Qt},confine:!0,axisPointer:{type:"shadow"},extraCssText:"box-shadow: 0 3px 6px rgba(0,0,0,.15); box-shadow: 0 2px 4px rgba(0,0,0,.12); z-index: 1;",order:"valueDesc"},legend:{show:Qe,type:"scroll",top:ol,padding:[0,0,0,0],data:[]},grid:{left:"0.5%",right:E?"4%":"3%",bottom:Al,top:Ol,containLabel:!0},xAxis:El,yAxis:Rt,series:[],animation:!0,graphic:ti,color:Be}),f.update(()=>li)}catch(Ut){if(t(13,al=Ut.message),console.error("\x1B[31m%s\x1B[0m",`Error in ${P}: ${Ut.message}`),Xs)throw al;s.update(Dt=>({...Dt,error:al}))}n.$$.dirty[0]&1},$t(Mr,s),$t(Ir,f),[o,p,E,a,b,D,P,vt,St,tl,ll,il,yi,al,Ri,l,f,u,c,O,M,q,se,Z,ne,z,fe,Ae,Me,_e,Xe,Ge,ze,Re,Ue,Ze,tt,lt,xe,Qe,nt,d,g,m,h,U,w,T,N,I,G,x,Oe,H,Je,He,We,qe,W,Ie,it,V,ue,Be,Vt,wt,B,we,Et,A,gt,zt,Ot,rt,xl,ct,$e,bt,wl,$l,nl,Tl,ei,El,Rt,ti,li,rl,jt,ii,ni,ri,si,oi,fi,ai,ui,ci,di,mi,Gt,sl,ol,Ol,Al,hi,_i,Ht,gi,bi,Ll,At,Wt,yt,fl,at,ki,Lt,r,i]}class uc extends ye{constructor(e){super(),ke(this,e,ac,fc,ge,{data:0,queryID:3,x:17,y:18,y2:41,series:42,size:43,tooltipTitle:44,showAllXAxisLabels:4,printEchartsConfig:1,swapXY:2,title:5,subtitle:45,chartType:6,bubble:46,hist:47,boxplot:48,xType:19,xAxisTitle:20,xBaseline:21,xTickMarks:22,xGridlines:23,xAxisLabels:24,sort:25,xFmt:49,xMin:50,xMax:51,yLog:26,yType:52,yLogBase:53,yAxisTitle:27,yBaseline:28,yTickMarks:29,yGridlines:30,yAxisLabels:31,yMin:54,yMax:55,yScale:32,yFmt:56,yAxisColor:57,y2AxisTitle:33,y2Baseline:34,y2TickMarks:35,y2Gridlines:36,y2AxisLabels:37,y2Min:58,y2Max:59,y2Scale:38,y2Fmt:60,y2AxisColor:61,sizeFmt:62,colorPalette:63,legend:39,echartsOptions:7,seriesOptions:8,seriesColors:9,stackType:64,stacked100:65,chartAreaHeight:40,renderer:10,connectGroup:11},null,[-1,-1,-1,-1])}}function cc(n){let e;const t=n[6].default,l=pe(t,n,n[7],null);return{c(){l&&l.c()},l(i){l&&l.l(i)},m(i,r){l&&l.m(i,r),e=!0},p(i,r){l&&l.p&&(!e||r&128)&&Ce(l,t,i,i[7],e?Se(t,i[7],r,null):ve(i[7]),null)},i(i){e||(k(l,i),e=!0)},o(i){C(l,i),e=!1},d(i){l&&l.d(i)}}}function dc(n){let e,t;const l=[n[4],{data:mt.isQuery(n[10])?Array.from(n[10]):n[10]},{queryID:n[5]}];let i={$$slots:{default:[cc]},$$scope:{ctx:n}};for(let r=0;r<l.length;r+=1)i=ie(i,l[r]);return e=new uc({props:i}),{c(){$(e.$$.fragment)},l(r){ee(e.$$.fragment,r)},m(r,s){te(e,r,s),t=!0},p(r,s){const f=s&1072?Ne(l,[s&16&&Ct(r[4]),s&1024&&{data:mt.isQuery(r[10])?Array.from(r[10]):r[10]},s&32&&{queryID:r[5]}]):{};s&128&&(f.$$scope={dirty:s,ctx:r}),e.$set(f)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){C(e.$$.fragment,r),t=!1},d(r){le(e,r)}}}function mc(n){let e,t;return e=new Nr({props:{slot:"empty",emptyMessage:n[2],emptySet:n[1],chartType:n[4].chartType,isInitial:n[3]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&4&&(r.emptyMessage=l[2]),i&2&&(r.emptySet=l[1]),i&16&&(r.chartType=l[4].chartType),i&8&&(r.isInitial=l[3]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function hc(n){let e,t;return e=new Fr({props:{slot:"error",chartType:n[4].chartType,error:n[10].error.message}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&16&&(r.chartType=l[4].chartType),i&1024&&(r.error=l[10].error.message),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function _c(n){let e,t;return e=new Dr({props:{data:n[0],$$slots:{error:[hc,({loaded:l})=>({10:l}),({loaded:l})=>l?1024:0],empty:[mc],default:[dc,({loaded:l})=>({10:l}),({loaded:l})=>l?1024:0]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,[i]){const r={};i&1&&(r.data=l[0]),i&1182&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function gc(n,e,t){let l,{$$slots:i={},$$scope:r}=e,{data:s}=e;const f=mt.isQuery(s)?s.hash:void 0;let o=(s==null?void 0:s.hash)===f,{emptySet:a=void 0}=e,{emptyMessage:u=void 0}=e,c=s==null?void 0:s.id;return n.$$set=d=>{t(9,e=ie(ie({},e),Ve(d))),"data"in d&&t(0,s=d.data),"emptySet"in d&&t(1,a=d.emptySet),"emptyMessage"in d&&t(2,u=d.emptyMessage),"$$scope"in d&&t(7,r=d.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&t(3,o=(s==null?void 0:s.hash)===f),t(4,l={...Object.fromEntries(Object.entries(e).filter(([,d])=>d!==void 0))})},e=Ve(e),[s,a,u,o,l,c,i,r]}class bc extends ye{constructor(e){super(),ke(this,e,gc,_c,ge,{data:0,emptySet:1,emptyMessage:2})}}function yc(n,e,t,l,i,r,s,f,o,a=void 0,u=void 0,c=void 0){function d(w,T,N,B){let O={name:T,data:w,yAxisIndex:N};return O={...B,...O},O}let g,m,h,b=[],p,y,S,E,D;function U(w,T){const N=[];function B(M){return typeof M>"u"}function O(M,q){B(M)||(Array.isArray(M)?M.forEach(se=>N.push([se,q])):N.push([M,q]))}return O(w,0),O(T,1),N}let P=U(t,c);if(l!=null&&P.length===1)for(E=kl(n,l),g=0;g<E.length;g++){if(y=n.filter(w=>w[l]===E[g]),i?p=y.map(w=>[w[P[0][0]],f?w[e].toString():w[e]]):p=y.map(w=>[f?w[e].toString():w[e],w[P[0][0]]]),a){let w=y.map(T=>T[a]);p.forEach((T,N)=>T.push(w[N]))}if(u){let w=y.map(T=>T[u]);p.forEach((T,N)=>T.push(w[N]))}S=E[g]??"null",D=P[0][1],h=d(p,S,D,r),b.push(h)}if(l!=null&&P.length>1)for(E=kl(n,l),g=0;g<E.length;g++)for(y=n.filter(w=>w[l]===E[g]),m=0;m<P.length;m++){if(i?p=y.map(w=>[w[P[m][0]],f?w[e].toString():w[e]]):p=y.map(w=>[f?w[e].toString():w[e],w[P[m][0]]]),a){let w=y.map(T=>T[a]);p.forEach((T,N)=>T.push(w[N]))}if(u){let w=y.map(T=>T[u]);p.forEach((T,N)=>T.push(w[N]))}S=(E[g]??"null")+" - "+o[P[m][0]].title,D=P[m][1],h=d(p,S,D,r),b.push(h)}if(l==null&&P.length>1)for(g=0;g<P.length;g++){if(i?p=n.map(w=>[w[P[g][0]],f?w[e].toString():w[e]]):p=n.map(w=>[f?w[e].toString():w[e],w[P[g][0]]]),a){let w=n.map(T=>T[a]);p.forEach((T,N)=>T.push(w[N]))}if(u){let w=n.map(T=>T[u]);p.forEach((T,N)=>T.push(w[N]))}S=o[P[g][0]].title,D=P[g][1],h=d(p,S,D,r),b.push(h)}if(l==null&&P.length===1){if(i?p=n.map(w=>[w[P[0][0]],f?w[e].toString():w[e]]):p=n.map(w=>[f?w[e].toString():w[e],w[P[0][0]]]),a){let w=n.map(T=>T[a]);p.forEach((T,N)=>T.push(w[N]))}if(u){let w=n.map(T=>T[u]);p.forEach((T,N)=>T.push(w[N]))}S=o[P[0][0]].title,D=P[0][1],h=d(p,S,D,r),b.push(h)}return b}function kc(n){let e=[];for(let t=1;t<n.length;t++)e.push(n[t]-n[t-1]);return e}function Yr(n,e){return(typeof n!="number"||isNaN(n))&&(n=0),(typeof e!="number"||isNaN(e))&&(e=0),n=Math.abs(n),e=Math.abs(e),e<=.01?n:Yr(e,n%e)}function pc(n,e){if(!Array.isArray(n))throw new TypeError("Cannot calculate extent of non-array value.");let t,l;for(const i of n)typeof i=="number"&&(t===void 0?i>=i&&(t=l=i):(t>i&&(t=i),l<i&&(l=i)));return[t,l]}function Cc(n,e){let[t,l]=pc(n);const i=[];let r=t;for(;r<=l;)i.push(Math.round((r+Number.EPSILON)*1e8)/1e8),r+=e;return i}function vc(n){if(n.length<=1)return;n.sort(function(t,l){return t-l}),n=n.map(function(t){return t*1e8}),n=kc(n);let e=n.reduce((t,l)=>Yr(t,l))/1e8;return e=Math.round((e+Number.EPSILON)*1e8)/1e8,e}function Oi(n,e,t,l,i=!1,r=!1){var g;let s=!1;const f=n.map(m=>Object.assign({},m,{[e]:m[e]instanceof Date?(s=!0,m[e].toISOString()):m[e]})).filter(m=>m[e]!==void 0&&m[e]!==null),o=Array.from(f).reduce((m,h)=>(h[e]instanceof Date&&(h[e]=h[e].toISOString(),s=!0),l?(m[h[l]??"null"]||(m[h[l]??"null"]=[]),m[h[l]??"null"].push(h)):(m.default||(m.default=[]),m.default.push(h)),m),{}),a={};let u;const c=((g=f.find(m=>m&&m[e]!==null&&m[e]!==void 0))==null?void 0:g[e])??null;switch(typeof c){case"object":throw c===null?new Error(`Column '${e}' is entirely null. Column must contain at least one non-null value.`):new Error("Unexpected object property, expected string, date, or number");case"number":if(u=kl(f,e),r){const m=vc(u);a[e]=Cc(u,m)}break;case"string":u=kl(f,e),a[e]=u;break}const d=[];for(const m of Object.values(o)){const h=l?{[l]:null}:{};if(i)if(t instanceof Array)for(let p=0;p<t.length;p++)h[t[p]]=0;else h[t]=0;else if(t instanceof Array)for(let p=0;p<t.length;p++)h[t[p]]=null;else h[t]=null;l&&(a[l]=l);const b=[];Object.keys(a).length===0?b.push(Bn([e],h)):b.push(Bn(a,h)),d.push(It(m,...b))}return s?d.flat().map(m=>({...m,[e]:new Date(m[e])})):d.flat()}function br(n,e,t){let l=It(n,Ai(e,[Qs(t,Di)]));if(typeof t=="object")for(let i=0;i<l.length;i++){l[i].stackTotal=0;for(let r=0;r<t.length;r++)l[i].stackTotal=l[i].stackTotal+l[i][t[r]]}return l}let Sc=60;function wc(n,e,t){let l,i,r,s,f,o,a,u,c,d,g,m,h,b,p,y,S,E=ae,D=()=>(E(),E=Ql(l,W=>t(44,S=W)),l);n.$$.on_destroy.push(()=>E());let{y:U=void 0}=e;const P=!!U;let{y2:w=void 0}=e;const T=!!w;let{series:N=void 0}=e;const B=!!N;let{options:O=void 0}=e,{name:M=void 0}=e,{type:q="stacked"}=e,{stackName:se=void 0}=e,{fillColor:Z=void 0}=e,{fillOpacity:ne=void 0}=e,{outlineColor:z=void 0}=e,{outlineWidth:I=void 0}=e,{labels:G=!1}=e,{seriesLabels:x=!0}=e,{labelSize:fe=11}=e,{labelPosition:Oe=void 0}=e,{labelColor:H=void 0}=e,{labelFmt:Ae=void 0}=e,Me;Ae&&(Me=kt(Ae));let{yLabelFmt:_e=void 0}=e,Xe;_e&&(Xe=kt(_e));let{y2LabelFmt:Ge=void 0}=e,Je;Ge&&(Je=kt(Ge));let{y2SeriesType:He="bar"}=e,{stackTotalLabel:ze=!0}=e,{showAllLabels:We=!1}=e,qe,Re,Ue,Ze;const tt={outside:"top",inside:"inside"},lt={outside:"right",inside:"inside"};return $r(()=>{O&&i.update(W=>({...W,...O})),y&&i.update(W=>{if(q.includes("stacked")?W.tooltip={...W.tooltip,order:"seriesDesc"}:W.tooltip={...W.tooltip,order:"seriesAsc"},q==="stacked100"&&(c?W.xAxis={...W.xAxis,max:1}:W.yAxis[0]={...W.yAxis[0],max:1}),c)W.yAxis={...W.yAxis,...y.xAxis},W.xAxis={...W.xAxis,...y.yAxis};else if(W.yAxis[0]={...W.yAxis[0],...y.yAxis},W.xAxis={...W.xAxis,...y.xAxis},w&&(W.yAxis[1]={...W.yAxis[1],show:!0},["line","bar","scatter"].includes(He)))for(let Ie=0;Ie<u;Ie++)W.series[a+Ie].type=He,W.series[a+Ie].stack=void 0;return W})}),n.$$set=W=>{"y"in W&&t(1,U=W.y),"y2"in W&&t(2,w=W.y2),"series"in W&&t(3,N=W.series),"options"in W&&t(10,O=W.options),"name"in W&&t(4,M=W.name),"type"in W&&t(11,q=W.type),"stackName"in W&&t(5,se=W.stackName),"fillColor"in W&&t(12,Z=W.fillColor),"fillOpacity"in W&&t(13,ne=W.fillOpacity),"outlineColor"in W&&t(14,z=W.outlineColor),"outlineWidth"in W&&t(15,I=W.outlineWidth),"labels"in W&&t(6,G=W.labels),"seriesLabels"in W&&t(7,x=W.seriesLabels),"labelSize"in W&&t(16,fe=W.labelSize),"labelPosition"in W&&t(8,Oe=W.labelPosition),"labelColor"in W&&t(17,H=W.labelColor),"labelFmt"in W&&t(18,Ae=W.labelFmt),"yLabelFmt"in W&&t(19,_e=W.yLabelFmt),"y2LabelFmt"in W&&t(20,Ge=W.y2LabelFmt),"y2SeriesType"in W&&t(21,He=W.y2SeriesType),"stackTotalLabel"in W&&t(9,ze=W.stackTotalLabel),"showAllLabels"in W&&t(22,We=W.showAllLabels)},n.$$.update=()=>{n.$$.dirty[0]&64&&t(6,G=G==="true"||G===!0),n.$$.dirty[0]&128&&t(7,x=x==="true"||x===!0),n.$$.dirty[0]&512&&t(9,ze=ze==="true"||ze===!0),n.$$.dirty[1]&8192&&t(41,r=S.data),n.$$.dirty[1]&8192&&t(37,s=S.x),n.$$.dirty[0]&2|n.$$.dirty[1]&8192&&t(1,U=P?U:S.y),n.$$.dirty[0]&4|n.$$.dirty[1]&8192&&t(2,w=T?w:S.y2),n.$$.dirty[1]&8192&&t(35,f=S.yFormat),n.$$.dirty[1]&8192&&t(42,o=S.y2Format),n.$$.dirty[1]&8192&&t(30,a=S.yCount),n.$$.dirty[1]&8192&&t(31,u=S.y2Count),n.$$.dirty[1]&8192&&t(32,c=S.swapXY),n.$$.dirty[1]&8192&&t(34,d=S.xType),n.$$.dirty[1]&8192&&t(38,g=S.xMismatch),n.$$.dirty[1]&8192&&t(39,m=S.columnSummary),n.$$.dirty[1]&8192&&t(43,h=S.sort),n.$$.dirty[0]&8|n.$$.dirty[1]&8192&&t(3,N=B?N:S.series),n.$$.dirty[0]&201328698|n.$$.dirty[1]&5450&&(!N&&typeof U!="object"?(t(4,M=M??pt(U,m[U].title)),c&&d!=="category"&&(t(41,r=Oi(r,s,U,N,!0,d!=="time")),t(34,d="category")),t(5,se="stack1"),t(28,Ue=c?"right":"top")):(h===!0&&d==="category"&&(t(26,qe=br(r,s,U)),typeof U=="object"?t(26,qe=_l(qe,"stackTotal",!1)):t(26,qe=_l(qe,U,!1)),t(27,Re=qe.map(W=>W[s])),t(41,r=[...r].sort(function(W,Ie){return Re.indexOf(W[s])-Re.indexOf(Ie[s])}))),c||(d==="value"||d==="category")&&q.includes("stacked")?(t(41,r=Oi(r,s,U,N,!0,d==="value")),t(34,d="category")):d==="time"&&q.includes("stacked")&&t(41,r=Oi(r,s,U,N,!0,!0)),q.includes("stacked")?(t(5,se=se??"stack1"),t(28,Ue="inside")):(t(5,se=void 0),t(28,Ue=c?"right":"top")))),n.$$.dirty[0]&2050|n.$$.dirty[1]&1088&&q==="stacked"&&t(29,Ze=br(r,s,U)),n.$$.dirty[0]&268435712|n.$$.dirty[1]&2&&t(8,Oe=(c?lt[Oe]:tt[Oe])??Ue),n.$$.dirty[0]&1136914912|n.$$.dirty[1]&2067&&t(40,b={type:"bar",stack:se,label:{show:G&&x,formatter(W){return W.value[c?0:1]===0?"":et(W.value[c?0:1],[Xe??Me??f,Je??Me??o][Qr(W.componentIndex,a,u)])},position:Oe,fontSize:fe,color:H},labelLayout:{hideOverlap:!We},emphasis:{focus:"series"},barMaxWidth:Sc,itemStyle:{color:Z,opacity:ne,borderColor:z,borderWidth:I}}),n.$$.dirty[0]&30|n.$$.dirty[1]&1986&&t(36,p=yc(r,s,U,N,c,b,M,g,m,void 0,void 0,w)),n.$$.dirty[0]&545327722|n.$$.dirty[1]&246&&i.update(W=>(W.series.push(...p),W.legend.data.push(...p.map(Ie=>Ie.name.toString())),G===!0&&q==="stacked"&&typeof U=="object"|N!==void 0&&ze===!0&&N!==s&&(W.series.push({type:"bar",stack:se,name:"stackTotal",color:"none",data:Ze.map(Ie=>[c?0:g?Ie[s].toString():Ie[s],c?g?Ie[s].toString():Ie[s]:0]),label:{show:!0,position:c?"right":"top",formatter(Ie){let xe=0;return p.forEach(it=>{xe+=it.data[Ie.dataIndex][c?0:1]}),xe===0?"":et(xe,Me??f)},fontWeight:"bold",fontSize:fe,padding:c?[0,0,0,5]:void 0}}),W.legend.selectedMode=!1),W)),n.$$.dirty[1]&8&&(y={xAxis:{boundaryGap:["1%","2%"],type:d}})},D(t(0,l=el(Mr))),t(33,i=el(Ir)),[l,U,w,N,M,se,G,x,Oe,ze,O,q,Z,ne,z,I,fe,H,Ae,_e,Ge,He,We,Me,Xe,Je,qe,Re,Ue,Ze,a,u,c,i,d,f,p,s,g,m,b,r,o,h,S]}class Tc extends ye{constructor(e){super(),ke(this,e,wc,null,ge,{y:1,y2:2,series:3,options:10,name:4,type:11,stackName:5,fillColor:12,fillOpacity:13,outlineColor:14,outlineWidth:15,labels:6,seriesLabels:7,labelSize:16,labelPosition:8,labelColor:17,labelFmt:18,yLabelFmt:19,y2LabelFmt:20,y2SeriesType:21,stackTotalLabel:9,showAllLabels:22},null,[-1,-1])}}function Ec(n){let e,t,l;e=new Tc({props:{type:n[38],fillColor:n[39],fillOpacity:n[40],outlineColor:n[41],outlineWidth:n[42],labels:n[46],labelSize:n[47],labelPosition:n[48],labelColor:n[49],labelFmt:n[50],yLabelFmt:n[51],y2LabelFmt:n[52],stackTotalLabel:n[53],seriesLabels:n[54],showAllLabels:n[55],y2SeriesType:n[10]}});const i=n[68].default,r=pe(i,n,n[69],null);return{c(){$(e.$$.fragment),t=K(),r&&r.c()},l(s){ee(e.$$.fragment,s),t=J(s),r&&r.l(s)},m(s,f){te(e,s,f),v(s,t,f),r&&r.m(s,f),l=!0},p(s,f){const o={};f[1]&128&&(o.type=s[38]),f[1]&256&&(o.fillColor=s[39]),f[1]&512&&(o.fillOpacity=s[40]),f[1]&1024&&(o.outlineColor=s[41]),f[1]&2048&&(o.outlineWidth=s[42]),f[1]&32768&&(o.labels=s[46]),f[1]&65536&&(o.labelSize=s[47]),f[1]&131072&&(o.labelPosition=s[48]),f[1]&262144&&(o.labelColor=s[49]),f[1]&524288&&(o.labelFmt=s[50]),f[1]&1048576&&(o.yLabelFmt=s[51]),f[1]&2097152&&(o.y2LabelFmt=s[52]),f[1]&4194304&&(o.stackTotalLabel=s[53]),f[1]&8388608&&(o.seriesLabels=s[54]),f[1]&16777216&&(o.showAllLabels=s[55]),f[0]&1024&&(o.y2SeriesType=s[10]),e.$set(o),r&&r.p&&(!l||f[2]&128)&&Ce(r,i,s,s[69],l?Se(i,s[69],f,null):ve(s[69]),null)},i(s){l||(k(e.$$.fragment,s),k(r,s),l=!0)},o(s){C(e.$$.fragment,s),C(r,s),l=!1},d(s){s&&_(t),le(e,s),r&&r.d(s)}}}function Oc(n){let e,t;return e=new bc({props:{data:n[2],x:n[3],y:n[4],y2:n[5],xFmt:n[13],yFmt:n[11],y2Fmt:n[12],series:n[6],xType:n[7],yLog:n[8],yLogBase:n[9],legend:n[16],xAxisTitle:n[17],yAxisTitle:n[18],y2AxisTitle:n[19],xGridlines:n[20],yGridlines:n[21],y2Gridlines:n[22],xAxisLabels:n[23],yAxisLabels:n[24],y2AxisLabels:n[25],xBaseline:n[26],yBaseline:n[27],y2Baseline:n[28],xTickMarks:n[29],yTickMarks:n[30],y2TickMarks:n[31],yAxisColor:n[56],y2AxisColor:n[57],yMin:n[32],yMax:n[33],yScale:n[34],y2Min:n[35],y2Max:n[36],y2Scale:n[37],swapXY:n[0],title:n[14],subtitle:n[15],chartType:"Bar Chart",stackType:n[38],sort:n[44],stacked100:n[66],chartAreaHeight:n[43],showAllXAxisLabels:n[1],colorPalette:n[45],echartsOptions:n[58],seriesOptions:n[59],printEchartsConfig:n[60],emptySet:n[61],emptyMessage:n[62],renderer:n[63],connectGroup:n[65],seriesColors:n[64],$$slots:{default:[Ec]},$$scope:{ctx:n}}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i[0]&4&&(r.data=l[2]),i[0]&8&&(r.x=l[3]),i[0]&16&&(r.y=l[4]),i[0]&32&&(r.y2=l[5]),i[0]&8192&&(r.xFmt=l[13]),i[0]&2048&&(r.yFmt=l[11]),i[0]&4096&&(r.y2Fmt=l[12]),i[0]&64&&(r.series=l[6]),i[0]&128&&(r.xType=l[7]),i[0]&256&&(r.yLog=l[8]),i[0]&512&&(r.yLogBase=l[9]),i[0]&65536&&(r.legend=l[16]),i[0]&131072&&(r.xAxisTitle=l[17]),i[0]&262144&&(r.yAxisTitle=l[18]),i[0]&524288&&(r.y2AxisTitle=l[19]),i[0]&1048576&&(r.xGridlines=l[20]),i[0]&2097152&&(r.yGridlines=l[21]),i[0]&4194304&&(r.y2Gridlines=l[22]),i[0]&8388608&&(r.xAxisLabels=l[23]),i[0]&16777216&&(r.yAxisLabels=l[24]),i[0]&33554432&&(r.y2AxisLabels=l[25]),i[0]&67108864&&(r.xBaseline=l[26]),i[0]&134217728&&(r.yBaseline=l[27]),i[0]&268435456&&(r.y2Baseline=l[28]),i[0]&536870912&&(r.xTickMarks=l[29]),i[0]&1073741824&&(r.yTickMarks=l[30]),i[1]&1&&(r.y2TickMarks=l[31]),i[1]&33554432&&(r.yAxisColor=l[56]),i[1]&67108864&&(r.y2AxisColor=l[57]),i[1]&2&&(r.yMin=l[32]),i[1]&4&&(r.yMax=l[33]),i[1]&8&&(r.yScale=l[34]),i[1]&16&&(r.y2Min=l[35]),i[1]&32&&(r.y2Max=l[36]),i[1]&64&&(r.y2Scale=l[37]),i[0]&1&&(r.swapXY=l[0]),i[0]&16384&&(r.title=l[14]),i[0]&32768&&(r.subtitle=l[15]),i[1]&128&&(r.stackType=l[38]),i[1]&8192&&(r.sort=l[44]),i[1]&4096&&(r.chartAreaHeight=l[43]),i[0]&2&&(r.showAllXAxisLabels=l[1]),i[1]&16384&&(r.colorPalette=l[45]),i[1]&134217728&&(r.echartsOptions=l[58]),i[1]&268435456&&(r.seriesOptions=l[59]),i[1]&536870912&&(r.printEchartsConfig=l[60]),i[1]&1073741824&&(r.emptySet=l[61]),i[2]&1&&(r.emptyMessage=l[62]),i[2]&2&&(r.renderer=l[63]),i[2]&8&&(r.connectGroup=l[65]),i[2]&4&&(r.seriesColors=l[64]),i[0]&1024|i[1]&33525632|i[2]&128&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Ac(n,e,t){let{$$slots:l={},$$scope:i}=e,{data:r=void 0}=e,{x:s=void 0}=e,{y:f=void 0}=e,{y2:o=void 0}=e,{series:a=void 0}=e,{xType:u=void 0}=e,{yLog:c=void 0}=e,{yLogBase:d=void 0}=e,{y2SeriesType:g=void 0}=e,{yFmt:m=void 0}=e,{y2Fmt:h=void 0}=e,{xFmt:b=void 0}=e,{title:p=void 0}=e,{subtitle:y=void 0}=e,{legend:S=void 0}=e,{xAxisTitle:E=void 0}=e,{yAxisTitle:D=o?"true":void 0}=e,{y2AxisTitle:U=o?"true":void 0}=e,{xGridlines:P=void 0}=e,{yGridlines:w=void 0}=e,{y2Gridlines:T=void 0}=e,{xAxisLabels:N=void 0}=e,{yAxisLabels:B=void 0}=e,{y2AxisLabels:O=void 0}=e,{xBaseline:M=void 0}=e,{yBaseline:q=void 0}=e,{y2Baseline:se=void 0}=e,{xTickMarks:Z=void 0}=e,{yTickMarks:ne=void 0}=e,{y2TickMarks:z=void 0}=e,{yMin:I=void 0}=e,{yMax:G=void 0}=e,{yScale:x=void 0}=e,{y2Min:fe=void 0}=e,{y2Max:Oe=void 0}=e,{y2Scale:H=void 0}=e,{swapXY:Ae=!1}=e,Me;ht(()=>{var A,gt,zt;t(67,Me=(zt=(gt=(A=r==null?void 0:r[0])==null?void 0:A._evidenceColumnTypes)==null?void 0:gt.find(Ot=>{var rt;return((rt=Ot.name)==null?void 0:rt.toLowerCase())===(s==null?void 0:s.toLowerCase())}))==null?void 0:zt.evidenceType)});let{showAllXAxisLabels:_e}=e;const Xe=typeof _e<"u";let{type:Ge="stacked"}=e,Je=Ge==="stacked100",{fillColor:He=void 0}=e,{fillOpacity:ze=void 0}=e,{outlineColor:We=void 0}=e,{outlineWidth:qe=void 0}=e,{chartAreaHeight:Re=void 0}=e,{sort:Ue=void 0}=e,{colorPalette:Ze=void 0}=e,{labels:tt=void 0}=e,{labelSize:lt=void 0}=e,{labelPosition:W=void 0}=e,{labelColor:Ie=void 0}=e,{labelFmt:xe=void 0}=e,{yLabelFmt:it=void 0}=e,{y2LabelFmt:V=void 0}=e,{stackTotalLabel:ue=void 0}=e,{seriesLabels:Be=void 0}=e,{showAllLabels:Qe=void 0}=e,{yAxisColor:vt=void 0}=e,{y2AxisColor:St=void 0}=e,{echartsOptions:tl=void 0}=e,{seriesOptions:Vt=void 0}=e,{printEchartsConfig:wt=!1}=e,{emptySet:nt=void 0}=e,{emptyMessage:ll=void 0}=e,{renderer:il=void 0}=e,{seriesColors:we=void 0}=e,{connectGroup:Et=void 0}=e;return n.$$set=A=>{"data"in A&&t(2,r=A.data),"x"in A&&t(3,s=A.x),"y"in A&&t(4,f=A.y),"y2"in A&&t(5,o=A.y2),"series"in A&&t(6,a=A.series),"xType"in A&&t(7,u=A.xType),"yLog"in A&&t(8,c=A.yLog),"yLogBase"in A&&t(9,d=A.yLogBase),"y2SeriesType"in A&&t(10,g=A.y2SeriesType),"yFmt"in A&&t(11,m=A.yFmt),"y2Fmt"in A&&t(12,h=A.y2Fmt),"xFmt"in A&&t(13,b=A.xFmt),"title"in A&&t(14,p=A.title),"subtitle"in A&&t(15,y=A.subtitle),"legend"in A&&t(16,S=A.legend),"xAxisTitle"in A&&t(17,E=A.xAxisTitle),"yAxisTitle"in A&&t(18,D=A.yAxisTitle),"y2AxisTitle"in A&&t(19,U=A.y2AxisTitle),"xGridlines"in A&&t(20,P=A.xGridlines),"yGridlines"in A&&t(21,w=A.yGridlines),"y2Gridlines"in A&&t(22,T=A.y2Gridlines),"xAxisLabels"in A&&t(23,N=A.xAxisLabels),"yAxisLabels"in A&&t(24,B=A.yAxisLabels),"y2AxisLabels"in A&&t(25,O=A.y2AxisLabels),"xBaseline"in A&&t(26,M=A.xBaseline),"yBaseline"in A&&t(27,q=A.yBaseline),"y2Baseline"in A&&t(28,se=A.y2Baseline),"xTickMarks"in A&&t(29,Z=A.xTickMarks),"yTickMarks"in A&&t(30,ne=A.yTickMarks),"y2TickMarks"in A&&t(31,z=A.y2TickMarks),"yMin"in A&&t(32,I=A.yMin),"yMax"in A&&t(33,G=A.yMax),"yScale"in A&&t(34,x=A.yScale),"y2Min"in A&&t(35,fe=A.y2Min),"y2Max"in A&&t(36,Oe=A.y2Max),"y2Scale"in A&&t(37,H=A.y2Scale),"swapXY"in A&&t(0,Ae=A.swapXY),"showAllXAxisLabels"in A&&t(1,_e=A.showAllXAxisLabels),"type"in A&&t(38,Ge=A.type),"fillColor"in A&&t(39,He=A.fillColor),"fillOpacity"in A&&t(40,ze=A.fillOpacity),"outlineColor"in A&&t(41,We=A.outlineColor),"outlineWidth"in A&&t(42,qe=A.outlineWidth),"chartAreaHeight"in A&&t(43,Re=A.chartAreaHeight),"sort"in A&&t(44,Ue=A.sort),"colorPalette"in A&&t(45,Ze=A.colorPalette),"labels"in A&&t(46,tt=A.labels),"labelSize"in A&&t(47,lt=A.labelSize),"labelPosition"in A&&t(48,W=A.labelPosition),"labelColor"in A&&t(49,Ie=A.labelColor),"labelFmt"in A&&t(50,xe=A.labelFmt),"yLabelFmt"in A&&t(51,it=A.yLabelFmt),"y2LabelFmt"in A&&t(52,V=A.y2LabelFmt),"stackTotalLabel"in A&&t(53,ue=A.stackTotalLabel),"seriesLabels"in A&&t(54,Be=A.seriesLabels),"showAllLabels"in A&&t(55,Qe=A.showAllLabels),"yAxisColor"in A&&t(56,vt=A.yAxisColor),"y2AxisColor"in A&&t(57,St=A.y2AxisColor),"echartsOptions"in A&&t(58,tl=A.echartsOptions),"seriesOptions"in A&&t(59,Vt=A.seriesOptions),"printEchartsConfig"in A&&t(60,wt=A.printEchartsConfig),"emptySet"in A&&t(61,nt=A.emptySet),"emptyMessage"in A&&t(62,ll=A.emptyMessage),"renderer"in A&&t(63,il=A.renderer),"seriesColors"in A&&t(64,we=A.seriesColors),"connectGroup"in A&&t(65,Et=A.connectGroup),"$$scope"in A&&t(69,i=A.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&128|n.$$.dirty[2]&32&&(Xe||t(1,_e=u==="category"||Me==="string")),n.$$.dirty[0]&2&&typeof _e=="string"&&t(1,_e=(_e==null?void 0:_e.toLowerCase())==="true"),n.$$.dirty[0]&1&&(Ae==="true"||Ae===!0?t(0,Ae=!0):t(0,Ae=!1))},[Ae,_e,r,s,f,o,a,u,c,d,g,m,h,b,p,y,S,E,D,U,P,w,T,N,B,O,M,q,se,Z,ne,z,I,G,x,fe,Oe,H,Ge,He,ze,We,qe,Re,Ue,Ze,tt,lt,W,Ie,xe,it,V,ue,Be,Qe,vt,St,tl,Vt,wt,nt,ll,il,we,Et,Je,Me,l,i]}class Lc extends ye{constructor(e){super(),ke(this,e,Ac,Oc,ge,{data:2,x:3,y:4,y2:5,series:6,xType:7,yLog:8,yLogBase:9,y2SeriesType:10,yFmt:11,y2Fmt:12,xFmt:13,title:14,subtitle:15,legend:16,xAxisTitle:17,yAxisTitle:18,y2AxisTitle:19,xGridlines:20,yGridlines:21,y2Gridlines:22,xAxisLabels:23,yAxisLabels:24,y2AxisLabels:25,xBaseline:26,yBaseline:27,y2Baseline:28,xTickMarks:29,yTickMarks:30,y2TickMarks:31,yMin:32,yMax:33,yScale:34,y2Min:35,y2Max:36,y2Scale:37,swapXY:0,showAllXAxisLabels:1,type:38,fillColor:39,fillOpacity:40,outlineColor:41,outlineWidth:42,chartAreaHeight:43,sort:44,colorPalette:45,labels:46,labelSize:47,labelPosition:48,labelColor:49,labelFmt:50,yLabelFmt:51,y2LabelFmt:52,stackTotalLabel:53,seriesLabels:54,showAllLabels:55,yAxisColor:56,y2AxisColor:57,echartsOptions:58,seriesOptions:59,printEchartsConfig:60,emptySet:61,emptyMessage:62,renderer:63,seriesColors:64,connectGroup:65},null,[-1,-1,-1])}}function Dc(n){let e,t=Te.title+"",l;return{c(){e=R("h1"),l=ce(t),this.h()},l(i){e=j(i,"H1",{class:!0});var r=Q(e);l=de(r,t),r.forEach(_),this.h()},h(){L(e,"class","title")},m(i,r){v(i,e,r),Y(e,l)},p:ae,d(i){i&&_(e)}}}function Mc(n){return{c(){this.h()},l(e){this.h()},h(){document.title="Evidence"},m:ae,p:ae,d:ae}}function Ic(n){let e,t,l,i,r;return document.title=e=Te.title,{c(){t=K(),l=R("meta"),i=K(),r=R("meta"),this.h()},l(s){t=J(s),l=j(s,"META",{property:!0,content:!0}),i=J(s),r=j(s,"META",{name:!0,content:!0}),this.h()},h(){var s,f;L(l,"property","og:title"),L(l,"content",((s=Te.og)==null?void 0:s.title)??Te.title),L(r,"name","twitter:title"),L(r,"content",((f=Te.og)==null?void 0:f.title)??Te.title)},m(s,f){v(s,t,f),v(s,l,f),v(s,i,f),v(s,r,f)},p(s,f){f&0&&e!==(e=Te.title)&&(document.title=e)},d(s){s&&(_(t),_(l),_(i),_(r))}}}function Fc(n){var r,s;let e,t,l=(Te.description||((r=Te.og)==null?void 0:r.description))&&Nc(),i=((s=Te.og)==null?void 0:s.image)&&Pc();return{c(){l&&l.c(),e=K(),i&&i.c(),t=re()},l(f){l&&l.l(f),e=J(f),i&&i.l(f),t=re()},m(f,o){l&&l.m(f,o),v(f,e,o),i&&i.m(f,o),v(f,t,o)},p(f,o){var a,u;(Te.description||(a=Te.og)!=null&&a.description)&&l.p(f,o),(u=Te.og)!=null&&u.image&&i.p(f,o)},d(f){f&&(_(e),_(t)),l&&l.d(f),i&&i.d(f)}}}function Nc(n){let e,t,l,i,r;return{c(){e=R("meta"),t=K(),l=R("meta"),i=K(),r=R("meta"),this.h()},l(s){e=j(s,"META",{name:!0,content:!0}),t=J(s),l=j(s,"META",{property:!0,content:!0}),i=J(s),r=j(s,"META",{name:!0,content:!0}),this.h()},h(){var s,f,o;L(e,"name","description"),L(e,"content",Te.description??((s=Te.og)==null?void 0:s.description)),L(l,"property","og:description"),L(l,"content",((f=Te.og)==null?void 0:f.description)??Te.description),L(r,"name","twitter:description"),L(r,"content",((o=Te.og)==null?void 0:o.description)??Te.description)},m(s,f){v(s,e,f),v(s,t,f),v(s,l,f),v(s,i,f),v(s,r,f)},p:ae,d(s){s&&(_(e),_(t),_(l),_(i),_(r))}}}function Pc(n){let e,t,l;return{c(){e=R("meta"),t=K(),l=R("meta"),this.h()},l(i){e=j(i,"META",{property:!0,content:!0}),t=J(i),l=j(i,"META",{name:!0,content:!0}),this.h()},h(){var i,r;L(e,"property","og:image"),L(e,"content",(i=Te.og)==null?void 0:i.image),L(l,"name","twitter:image"),L(l,"content",(r=Te.og)==null?void 0:r.image)},m(i,r){v(i,e,r),v(i,t,r),v(i,l,r)},p:ae,d(i){i&&(_(e),_(t),_(l))}}}function Bc(n){let e,t='This page can be found in your project at <code class="markdown">/pages/index.md</code>. Make a change to the markdown file and save it to see the change take effect in your browser.';return{c(){e=R("p"),e.innerHTML=t,this.h()},l(l){e=j(l,"P",{class:!0,"data-svelte-h":!0}),ut(e)!=="svelte-pu0hug"&&(e.innerHTML=t),this.h()},h(){L(e,"class","markdown")},m(l,i){v(l,e,i)},p:ae,d(l){l&&_(e)}}}function yr(n){let e,t;return e=new Xr({props:{queryID:"categories",queryResult:n[1]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&2&&(r.queryResult=l[1]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function qc(n){let e,t;return e=new Zt({props:{value:"%",valueLabel:"All Categories"}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p:ae,i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function Vc(n){let e,t,l,i,r,s,f,o;return e=new Zt({props:{value:"%",valueLabel:"All Years"}}),l=new Zt({props:{value:"2019"}}),r=new Zt({props:{value:"2020"}}),f=new Zt({props:{value:"2021"}}),{c(){$(e.$$.fragment),t=K(),$(l.$$.fragment),i=K(),$(r.$$.fragment),s=K(),$(f.$$.fragment)},l(a){ee(e.$$.fragment,a),t=J(a),ee(l.$$.fragment,a),i=J(a),ee(r.$$.fragment,a),s=J(a),ee(f.$$.fragment,a)},m(a,u){te(e,a,u),v(a,t,u),te(l,a,u),v(a,i,u),te(r,a,u),v(a,s,u),te(f,a,u),o=!0},p:ae,i(a){o||(k(e.$$.fragment,a),k(l.$$.fragment,a),k(r.$$.fragment,a),k(f.$$.fragment,a),o=!0)},o(a){C(e.$$.fragment,a),C(l.$$.fragment,a),C(r.$$.fragment,a),C(f.$$.fragment,a),o=!1},d(a){a&&(_(t),_(i),_(s)),le(e,a),le(l,a),le(r,a),le(f,a)}}}function kr(n){let e,t;return e=new Xr({props:{queryID:"orders_by_category",queryResult:n[2]}}),{c(){$(e.$$.fragment)},l(l){ee(e.$$.fragment,l)},m(l,i){te(e,l,i),t=!0},p(l,i){const r={};i&4&&(r.queryResult=l[2]),e.$set(r)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){le(e,l)}}}function zc(n){let e,t,l,i,r,s,f,o,a,u,c,d,g,m,h,b,p='<a href="#whats-next">What's Next?</a>',y,S,E='<li class="markdown"><a href="settings" class="markdown">Connect your data sources</a></li> <li class="markdown">Edit/add markdown files in the <code class="markdown">pages</code> folder</li> <li class="markdown">Deploy your project with <a href="https://evidence.dev/cloud" rel="nofollow" class="markdown">Evidence Cloud</a></li>',D,U,P='<a href="#get-support">Get Support</a>',w,T,N='<li class="markdown">Message us on <a href="https://slack.evidence.dev/" rel="nofollow" class="markdown">Slack</a></li> <li class="markdown">Read the <a href="https://docs.evidence.dev/" rel="nofollow" class="markdown">Docs</a></li> <li class="markdown">Open an issue on <a href="https://github.com/evidence-dev/evidence" rel="nofollow" class="markdown">Github</a></li>',B,O=typeof Te<"u"&&Te.title&&Te.hide_title!==!0&&Dc();function M(I,G){return typeof Te<"u"&&Te.title?Ic:Mc}let se=M()(n),Z=typeof Te=="object"&&Fc();s=new nu({props:{title:"How to edit this page",$$slots:{default:[Bc]},$$scope:{ctx:n}}});let ne=n[1]&&yr(n);a=new Zn({props:{data:n[1],name:"category",value:"category",$$slots:{default:[qc]},$$scope:{ctx:n}}}),c=new Zn({props:{name:"year",$$slots:{default:[Vc]},$$scope:{ctx:n}}});let z=n[2]&&kr(n);return m=new Lc({props:{data:n[2],title:"Sales by Month, "+n[0].category.label,x:"month",y:"sales_usd",series:"category"}}),{c(){O&&O.c(),e=K(),se.c(),t=R("meta"),l=R("meta"),Z&&Z.c(),i=re(),r=K(),$(s.$$.fragment),f=K(),ne&&ne.c(),o=K(),$(a.$$.fragment),u=K(),$(c.$$.fragment),d=K(),z&&z.c(),g=K(),$(m.$$.fragment),h=K(),b=R("h2"),b.innerHTML=p,y=K(),S=R("ul"),S.innerHTML=E,D=K(),U=R("h2"),U.innerHTML=P,w=K(),T=R("ul"),T.innerHTML=N,this.h()},l(I){O&&O.l(I),e=J(I);const G=es("svelte-1j2izld",document.head);se.l(G),t=j(G,"META",{name:!0,content:!0}),l=j(G,"META",{name:!0,content:!0}),Z&&Z.l(G),i=re(),G.forEach(_),r=J(I),ee(s.$$.fragment,I),f=J(I),ne&&ne.l(I),o=J(I),ee(a.$$.fragment,I),u=J(I),ee(c.$$.fragment,I),d=J(I),z&&z.l(I),g=J(I),ee(m.$$.fragment,I),h=J(I),b=j(I,"H2",{class:!0,id:!0,"data-svelte-h":!0}),ut(b)!=="svelte-fy128a"&&(b.innerHTML=p),y=J(I),S=j(I,"UL",{class:!0,"data-svelte-h":!0}),ut(S)!=="svelte-14v8ajg"&&(S.innerHTML=E),D=J(I),U=j(I,"H2",{class:!0,id:!0,"data-svelte-h":!0}),ut(U)!=="svelte-1o2veuf"&&(U.innerHTML=P),w=J(I),T=j(I,"UL",{class:!0,"data-svelte-h":!0}),ut(T)!=="svelte-1xbsjxs"&&(T.innerHTML=N),this.h()},h(){L(t,"name","twitter:card"),L(t,"content","summary"),L(l,"name","twitter:site"),L(l,"content","@evidence_dev"),L(b,"class","markdown"),L(b,"id","whats-next"),L(S,"class","markdown"),L(U,"class","markdown"),L(U,"id","get-support"),L(T,"class","markdown")},m(I,G){O&&O.m(I,G),v(I,e,G),se.m(document.head,null),Y(document.head,t),Y(document.head,l),Z&&Z.m(document.head,null),Y(document.head,i),v(I,r,G),te(s,I,G),v(I,f,G),ne&&ne.m(I,G),v(I,o,G),te(a,I,G),v(I,u,G),te(c,I,G),v(I,d,G),z&&z.m(I,G),v(I,g,G),te(m,I,G),v(I,h,G),v(I,b,G),v(I,y,G),v(I,S,G),v(I,D,G),v(I,U,G),v(I,w,G),v(I,T,G),B=!0},p(I,[G]){typeof Te<"u"&&Te.title&&Te.hide_title!==!0&&O.p(I,G),se.p(I,G),typeof Te=="object"&&Z.p(I,G);const x={};G&33554432&&(x.$$scope={dirty:G,ctx:I}),s.$set(x),I[1]?ne?(ne.p(I,G),G&2&&k(ne,1)):(ne=yr(I),ne.c(),k(ne,1),ne.m(o.parentNode,o)):ne&&(me(),C(ne,1,1,()=>{ne=null}),he());const fe={};G&2&&(fe.data=I[1]),G&33554432&&(fe.$$scope={dirty:G,ctx:I}),a.$set(fe);const Oe={};G&33554432&&(Oe.$$scope={dirty:G,ctx:I}),c.$set(Oe),I[2]?z?(z.p(I,G),G&4&&k(z,1)):(z=kr(I),z.c(),k(z,1),z.m(g.parentNode,g)):z&&(me(),C(z,1,1,()=>{z=null}),he());const H={};G&4&&(H.data=I[2]),G&1&&(H.title="Sales by Month, "+I[0].category.label),m.$set(H)},i(I){B||(k(s.$$.fragment,I),k(ne),k(a.$$.fragment,I),k(c.$$.fragment,I),k(z),k(m.$$.fragment,I),B=!0)},o(I){C(s.$$.fragment,I),C(ne),C(a.$$.fragment,I),C(c.$$.fragment,I),C(z),C(m.$$.fragment,I),B=!1},d(I){I&&(_(e),_(r),_(f),_(o),_(u),_(d),_(g),_(h),_(b),_(y),_(S),_(D),_(U),_(w),_(T)),O&&O.d(I),se.d(I),_(t),_(l),Z&&Z.d(I),_(i),le(s,I),ne&&ne.d(I),le(a,I),le(c,I),z&&z.d(I),le(m,I)}}}const Te={title:"Welcome to Evidence"};function Rc(n,e,t){let l,i;De(n,Ni,T=>t(9,l=T)),De(n,$i,T=>t(17,i=T));let{data:r}=e,{data:s={},customFormattingSettings:f,__db:o,inputs:a}=r;Pt($i,i="6666cd76f96956469e7be39d750cc7d9",i);let u=bl(a);$t(Tr,u),ts(u.subscribe(T=>t(0,a=T))),$t(Bs,{getCustomFormats:()=>f.customFormats||[]});const c=(T,N)=>Ns(o.query,T,{query_name:N});ws(c);let d;const g=()=>{d||(d=setTimeout(()=>{en.add({id:"LoadingToast",title:"",message:"Loading...",status:"info"},0)},3e3))},m=()=>{d?(clearTimeout(d),d=null):en.dismiss("LoadingToast")};ht(()=>(mt.addEventListener("inFlightQueryStart",g),mt.addEventListener("inFlightQueryEnd",m),mt.QueriesLoading&&g(),()=>{mt.removeEventListener("inFlightQueryStart",g),mt.removeEventListener("inFlightQueryEnd",m)})),l.params,ht(()=>!0);let h={initialData:void 0,initialError:void 0},b=Vl`select | |
category | |
from needful_things.orders | |
group by category`,p=`select | |
category | |
from needful_things.orders | |
group by category`;s.categories&&(s.categories instanceof Error?h.initialError=s.categories:h.initialData=s.categories,s.categories__DESCRIBE&&(h.knownColumns=s.categories__DESCRIBE));let y;const S=mt.createReactive({callback:T=>{t(1,y=T)},execFn:c},{id:"categories",...h});S(p,{noResolve:b}),globalThis[Symbol.for("categories")]={get value(){return y}};let E={initialData:void 0,initialError:void 0},D=Vl`select | |
date_trunc('month', order_datetime) as month, | |
sum(sales) as sales_usd, | |
category | |
from needful_things.orders | |
where category like '${a.category.value}' | |
and date_part('year', order_datetime) like '${a.year.value}' | |
group by all | |
order by sales_usd desc`,U=`select | |
date_trunc('month', order_datetime) as month, | |
sum(sales) as sales_usd, | |
category | |
from needful_things.orders | |
where category like '${a.category.value}' | |
and date_part('year', order_datetime) like '${a.year.value}' | |
group by all | |
order by sales_usd desc`;s.orders_by_category&&(s.orders_by_category instanceof Error?E.initialError=s.orders_by_category:E.initialData=s.orders_by_category,s.orders_by_category__DESCRIBE&&(E.knownColumns=s.orders_by_category__DESCRIBE));let P;const w=mt.createReactive({callback:T=>{t(2,P=T)},execFn:c},{id:"orders_by_category",...E});return w(U,{noResolve:D}),globalThis[Symbol.for("orders_by_category")]={get value(){return P}},n.$$set=T=>{"data"in T&&t(3,r=T.data)},n.$$.update=()=>{n.$$.dirty&8&&t(4,{data:s={},customFormattingSettings:f,__db:o}=r,s),n.$$.dirty&16&&Ts.set(Object.keys(s).length>0),n.$$.dirty&512&&l.params,n.$$.dirty&96&&S(p,{noResolve:b}),n.$$.dirty&1&&t(7,D=Vl`select | |
date_trunc('month', order_datetime) as month, | |
sum(sales) as sales_usd, | |
category | |
from needful_things.orders | |
where category like '${a.category.value}' | |
and date_part('year', order_datetime) like '${a.year.value}' | |
group by all | |
order by sales_usd desc`),n.$$.dirty&1&&t(8,U=`select | |
date_trunc('month', order_datetime) as month, | |
sum(sales) as sales_usd, | |
category | |
from needful_things.orders | |
where category like '${a.category.value}' | |
and date_part('year', order_datetime) like '${a.year.value}' | |
group by all | |
order by sales_usd desc`),n.$$.dirty&384&&w(U,{noResolve:D})},t(5,b=Vl`select | |
category | |
from needful_things.orders | |
group by category`),t(6,p=`select | |
category | |
from needful_things.orders | |
group by category`),[a,y,P,r,s,b,p,D,U,l]}class ld extends ye{constructor(e){super(),ke(this,e,Rc,zc,ge,{data:3})}}export{ld as component}; | |