1import{S as C,i as A,s as E,e as b,t as z,b as _,f as v,g as p,h as T,w as k,n as g,A as q,aa as we,H as ye,L as J,l as P,x as K,z as ve,a as N,B as V,d as D,Y as Q,v as U,j as H,k as S,E as je,C as F,o as Y,D as O,c as G,m as Z}from"./index.c601c0b4.js";import{E as He}from"./Image.b0655434.js";import{c as Me}from"./csv.27f5436c.js";import{d as Ce}from"./dsv.7fe76a93.js";import{E as Ae}from"./Model3D.cbbf975f.js";var Ee=Ce(" "),ze=Ee.parseRows;function Le(r){let e,l;return{c(){e=b("div"),l=z(r[0]),_(e,"class","gr-sample-number")},m(t,n){v(t,e,n),p(e,l)},p(t,[n]){n&1&&T(l,t[0])},i:k,o:k,d(t){t&&g(e)}}}function Se(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Te extends C{constructor(e){super(),A(this,e,Se,Le,E,{value:0})}}function De(r){let e,l;return{c(){e=b("div"),l=z(r[0]),_(e,"class","gr-sample-dropdown")},m(t,n){v(t,e,n),p(e,l)},p(t,[n]){n&1&&T(l,t[0])},i:k,o:k,d(t){t&&g(e)}}}function Ne(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Be extends C{constructor(e){super(),A(this,e,Ne,De,E,{value:0})}}function Re(r){let e,l=r[0].toLocaleString()+"",t;return{c(){e=b("div"),t=z(l),_(e,"class","gr-sample-checkbox")},m(n,s){v(n,e,s),p(e,t)},p(n,[s]){s&1&&l!==(l=n[0].toLocaleString()+"")&&T(t,l)},i:k,o:k,d(n){n&&g(e)}}}function Ie(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Pe extends C{constructor(e){super(),A(this,e,Ie,Re,E,{value:0})}}function Ve(r){let e,l=r[0].join(", ")+"",t;return{c(){e=b("div"),t=z(l),_(e,"class","gr-sample-checkboxgroup")},m(n,s){v(n,e,s),p(e,t)},p(n,[s]){s&1&&l!==(l=n[0].join(", ")+"")&&T(t,l)},i:k,o:k,d(n){n&&g(e)}}}function qe(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Fe extends C{constructor(e){super(),A(this,e,qe,Ve,E,{value:0})}}function Oe(r){let e,l;return{c(){e=b("div"),l=z(r[0]),_(e,"class","gr-sample-slider")},m(t,n){v(t,e,n),p(e,l)},p(t,[n]){n&1&&T(l,t[0])},i:k,o:k,d(t){t&&g(e)}}}function We(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Ye extends C{constructor(e){super(),A(this,e,We,Oe,E,{value:0})}}function Ge(r){let e,l;return{c(){e=b("div"),l=z(r[0]),_(e,"class","gr-sample-radio")},m(t,n){v(t,e,n),p(e,l)},p(t,[n]){n&1&&T(l,t[0])},i:k,o:k,d(t){t&&g(e)}}}function Ze(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Je extends C{constructor(e){super(),A(this,e,Ze,Ge,E,{value:0})}}function Ke(r){let e,l;return{c(){e=b("div"),l=z(r[0]),_(e,"class","gr-sample-textbox")},m(t,n){v(t,e,n),p(e,l)},p(t,[n]){n&1&&T(l,t[0])},i:k,o:k,d(t){t&&g(e)}}}function Qe(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Ue extends C{constructor(e){super(),A(this,e,Qe,Ke,E,{value:0})}}function Xe(r){let e,l;return{c(){e=b("div"),l=z(r[0]),_(e,"class","gr-sample-audio")},m(t,n){v(t,e,n),p(e,l)},p(t,[n]){n&1&&T(l,t[0])},i:k,o:k,d(t){t&&g(e)}}}function xe(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class $e extends C{constructor(e){super(),A(this,e,xe,Xe,E,{value:0})}}function et(r){let e,l,t,n;return{c(){e=b("video"),e.muted=!0,e.playsInline=!0,_(e,"class","gr-sample-video"),J(e.src,l=r[1]+r[0])||_(e,"src",l)},m(s,i){v(s,e,i),r[3](e),t||(n=[P(e,"mouseover",function(){K(r[2].play)&&r[2].play.apply(this,arguments)}),P(e,"mouseout",function(){K(r[2].pause)&&r[2].pause.apply(this,arguments)})],t=!0)},p(s,i){r=s,i&3&&!J(e.src,l=r[1]+r[0])&&_(e,"src",l)},d(s){s&&g(e),r[3](null),t=!1,ve(n)}}}function tt(r){let e;function l(s,i){return et}let n=l()(r);return{c(){n.c(),e=q()},m(s,i){n.m(s,i),v(s,e,i)},p(s,[i]){n.p(s,i)},i:k,o:k,d(s){n.d(s),s&&g(e)}}}function lt(r,e,l){let{value:t}=e,{samples_dir:n}=e,s;we(()=>{l(2,s.muted=!0,s),l(2,s.playsInline=!0,s),l(2,s.controls=!1,s),s.setAttribute("muted",""),s.play(),s.pause()});function i(o){ye[o?"unshift":"push"](()=>{s=o,l(2,s)})}return r.$$set=o=>{"value"in o&&l(0,t=o.value),"samples_dir"in o&&l(1,n=o.samples_dir)},[t,n,s,i]}class nt extends C{constructor(e){super(),A(this,e,lt,tt,E,{value:0,samples_dir:1})}}function rt(r){let e,l;return{c(){e=b("div"),l=z(r[0]),_(e,"class","truncate")},m(t,n){v(t,e,n),p(e,l)},p(t,n){n&1&&T(l,t[0])},d(t){t&&g(e)}}}function it(r){let e,l=r[0].join(", ")+"",t;return{c(){e=b("div"),t=z(l),_(e,"class","truncate")},m(n,s){v(n,e,s),p(e,t)},p(n,s){s&1&&l!==(l=n[0].join(", ")+"")&&T(t,l)},d(n){n&&g(e)}}}function st(r){let e,l;function t(i,o){return o&1&&(e=null),e==null&&(e=!!Array.isArray(i[0])),e?it:rt}let n=t(r,-1),s=n(r);return{c(){s.c(),l=q()},m(i,o){s.m(i,o),v(i,l,o)},p(i,[o]){n===(n=t(i,o))&&s?s.p(i,o):(s.d(1),s=n(i),s&&(s.c(),s.m(l.parentNode,l)))},i:k,o:k,d(i){s.d(i),i&&g(l)}}}function ot(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class ct extends C{constructor(e){super(),A(this,e,ot,st,E,{value:0})}}function X(r,e,l){const t=r.slice();return t[6]=e[l],t[8]=l,t}function x(r,e,l){const t=r.slice();return t[9]=e[l],t[11]=l,t}function $(r){let e,l,t,n,s,i=r[0].slice(0,3),o=[];for(let a=0;a<i.length;a+=1)o[a]=le(X(r,i,a));let c=r[0].length>3&&ne(r);return{c(){e=b("div"),l=b("table");for(let a=0;a<o.length;a+=1)o[a].c();t=N(),c&&c.c(),_(l,"class","gr-sample-dataframe relative"),_(e,"class","gr-sample-dataframe")},m(a,f){v(a,e,f),p(e,l);for(let u=0;u<o.length;u+=1)o[u].m(l,null);p(l,t),c&&c.m(l,null),n||(s=[P(e,"mouseenter",r[4]),P(e,"mouseleave",r[5])],n=!0)},p(a,f){if(f&1){i=a[0].slice(0,3);let u;for(u=0;
1u<i.length;u+=1){const h=X(a,i,u);o[u]?o[u].p(h,f):(o[u]=le(h),o[u].c(),o[u].m(l,t))}for(;u<o.length;u+=1)o[u].d(1);o.length=i.length}a[0].length>3?c?c.p(a,f):(c=ne(a),c.c(),c.m(l,null)):c&&(c.d(1),c=null)},d(a){a&&g(e),V(o,a),c&&c.d(),n=!1,ve(s)}}}function ee(r){let e,l=r[9]+"",t,n;return{c(){e=b("td"),t=z(l),_(e,"class",n="p-2 "+(r[8]<3?"border-b border-b-slate-300 dark:border-b-slate-700":"")+" "+(r[11]<3?"border-r border-r-slate-300 dark:border-r-slate-700 ":""))},m(s,i){v(s,e,i),p(e,t)},p(s,i){i&1&&l!==(l=s[9]+"")&&T(t,l)},d(s){s&&g(e)}}}function te(r){let e;return{c(){e=b("td"),e.textContent="\u2026",_(e,"class","p-2 border-r border-b border-r-slate-300 dark:border-r-slate-700 border-b-slate-300 dark:border-b-slate-700")},m(l,t){v(l,e,t)},d(l){l&&g(e)}}}function le(r){let e,l,t=r[6].slice(0,3),n=[];for(let i=0;i<t.length;i+=1)n[i]=ee(x(r,t,i));let s=r[6].length>3&&te();return{c(){e=b("tr");for(let i=0;i<n.length;i+=1)n[i].c();l=N(),s&&s.c()},m(i,o){v(i,e,o);for(let c=0;c<n.length;c+=1)n[c].m(e,null);p(e,l),s&&s.m(e,null)},p(i,o){if(o&1){t=i[6].slice(0,3);let c;for(c=0;c<t.length;c+=1){const a=x(i,t,c);n[c]?n[c].p(a,o):(n[c]=ee(a),n[c].c(),n[c].m(e,l))}for(;c<n.length;c+=1)n[c].d(1);n.length=t.length}i[6].length>3?s||(s=te(),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(i){i&&g(e),V(n,i),s&&s.d()}}}function ne(r){let e;return{c(){e=b("div"),_(e,"class","absolute w-full h-[50%] bottom-0 bg-gradient-to-b from-[rgba(255,255,255,0)] dark:from-[rgba(0,0,0,0)] to-white"),D(e,"dark:to-gray-950",!r[2]),D(e,"dark:to-gray-800",r[2]),D(e,"to-gray-50",r[2])},m(l,t){v(l,e,t)},p(l,t){t&4&&D(e,"dark:to-gray-950",!l[2]),t&4&&D(e,"dark:to-gray-800",l[2]),t&4&&D(e,"to-gray-50",l[2])},d(l){l&&g(e)}}}function at(r){let e,l=r[1]&&$(r);return{c(){l&&l.c(),e=q()},m(t,n){l&&l.m(t,n),v(t,e,n)},p(t,[n]){t[1]?l?l.p(t,n):(l=$(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:k,o:k,d(t){l&&l.d(t),t&&g(e)}}}function ut(r,e,l){let{value:t}=e,{samples_dir:n}=e,s=!1,i=Array.isArray(t);const o=()=>l(2,s=!0),c=()=>l(2,s=!1);return r.$$set=a=>{"value"in a&&l(0,t=a.value),"samples_dir"in a&&l(3,n=a.samples_dir)},r.$$.update=()=>{r.$$.dirty&11&&!i&&typeof t=="string"&&/\.[a-zA-Z]+$/.test(t)&&fetch(n+t).then(a=>a.text()).then(a=>{try{if(t.endsWith("csv")){const f=a.split(` 2`).slice(0,4).map(u=>u.split(",").slice(0,4).join(",")).join(` 3`);l(0,t=Me(f))}else if(t.endsWith("tsv")){const f=a.split(` 4`).slice(0,4).map(u=>u.split(" ").slice(0,4).join(" ")).join(` 5`);l(0,t=ze(f))}else throw new Error("Incorrect format, only CSV and TSV files are supported");l(1,i=!0)}catch(f){console.error(f)}})},[t,i,s,n,o,c]}class ft extends C{constructor(e){super(),A(this,e,ut,at,E,{value:0,samples_dir:3})}}function dt(r){let e;return{c(){e=b("div"),_(e,"class","w-10 h-10 border dark:border-slate-300"),Q(e,"background-color",r[0])},m(l,t){v(l,e,t)},p(l,[t]){t&1&&Q(e,"background-color",l[0])},i:k,o:k,d(l){l&&g(e)}}}function _t(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class mt extends C{constructor(e){super(),A(this,e,_t,dt,E,{value:0})}}function ht(r){let e,l;return{c(){e=b("div"),l=z(r[0]),_(e,"class","truncate")},m(t,n){v(t,e,n),p(e,l)},p(t,[n]){n&1&&T(l,t[0])},i:k,o:k,d(t){t&&g(e)}}}function vt(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class gt extends C{constructor(e){super(),A(this,e,vt,ht,E,{value:0})}}function bt(r){let e;return{c(){e=b("div"),_(e,"class","gr-sample-markdown")},m(l,t){v(l,e,t),e.innerHTML=r[0]},p(l,[t]){t&1&&(e.innerHTML=l[0])},i:k,o:k,d(l){l&&g(e)}}}function pt(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class kt extends C{constructor(e){super(),A(this,e,pt,bt,E,{value:0})}}function wt(r){let e;return{c(){e=b("div"),_(e,"class","gr-sample-html")},m(l,t){v(l,e,t),e.innerHTML=r[0]},p(l,[t]){t&1&&(e.innerHTML=l[0])},i:k,o:k,d(l){l&&g(e)}}}function yt(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class jt extends C{constructor(e){super(),A(this,e,yt,wt,E,{value:0})}}const I={dropdown:Be,checkbox:Pe,checkboxgroup:Fe,number:Te,slider:Ye,radio:Je,image:He,textbox:Ue,audio:$e,video:nt,file:ct,dataframe:ft,model3d:Ae,colorpicker:mt,timeseries:gt,markdown:kt,html:jt};function re(r,e,l){const t=r.slice();return t[21]=e[l],t}function ie(r,e,l){const t=r.slice();return t[24]=e[l],t[26]=l,t}function se(r,e,l){const t=r.slice();return t[0]=e[l].value,t[28]=e[l].component,t[30]=l,t}function oe(r,e,l){const t=r.slice();return t[31]=e[l],t}function ce(r,e,l){const t=r.slice();return t[24]=e[l],t[26]=l,t}function Ht(r){let e,l,t,n,s,i,o,c=r[3],a=[];for(let m=0;m<c.length;m+=1)a[m]=ae(oe(r,c,m));let f=r[10],u=[];for(let m=0;m<f.length;m+=1)u[m]=de(ie(r,f,m));const h=m=>S(u[m],1,1,()=>{u[m]=null});return{c(){e=b("div"),l=b("table"),t=b("thead"),n=b("tr");for(let m=0;m<a.length;m+=1)a[m].c();s=N(),i=b("tbody");for(let m=0;m<u.length;m+=1)u[m].c();_(n,"class","border-b dark:border-gray-800 divide-x dark:divide-gray-800 shadow-sm"),_(l,"class","gr-samples-table"),_(e,"class","overflow-x-auto border table-auto rounded-lg w-full text-sm")},m(m,j){v(m,e,j),p(e,l),p(l,t),p(t,n);for(let d=0;d<a.length;d+=1)a[d].m(n,null);p(l,s),p(l,i);for(let d=0;d<u.length;d+=1)u[d].m(i,null);o=!0},p(m,j){if(j[0]&8){c=m[3];let d;for(d=0;d<c.length;d+=1){const L=oe(m,c,d);a[d]?a[d].p(L,j):(a[d]=ae(L),a[d].c(),a[d].m(n,null))}for(;d<a.length;d+=1)a[d].d(1);a.length=c.length}if(j[0]&7363){f=m[10];let d;for(d=0;d<f.length;d+=1){const L=ie(m,f,d);u[d]?(u[d].p(L,j),H(u[d],1)):(u[d]=de(L),u[d].c(),H(u[d],1),u[d].m(i,null))}for(F(),d=f.length;d<u.length;d+=1)h(d);O()}},i(m){if(!o){for(let j=0;j<f.length;j+=1)H(u[j]);o=!0}},o(m){u=u.filter(Boolean);for(let j=0;j<u.length;j+=1)S(u[j]);o=!1},d(m){m&&g(e),V(a,m),V(u,m)}}}function Mt(r){let e,l,t=r[8],n=[];for(let i=0;i<t.length;i+=1)n[i]=me(ce(r,t,i));const s=i=>S(n[i],1,1,()=>{n[i]=null});return{c(){e=b("div");for(let i=0;i<n.length;i+=1)n[i].c();_(e,"class","gr-samples-gallery")},m(i,o){v(i,e,o);for(let c=0;c<n.length;c+=1)n[c].m(e,null);l=!0},p(i,o){if(o[0]&7619){t=i[8];let c;for(c=0;c<t.length;c+=1){const a=ce(i,t,c);
5n[c]?(n[c].p(a,o),H(n[c],1)):(n[c]=me(a),n[c].c(),H(n[c],1),n[c].m(e,null))}for(F(),c=t.length;c<n.length;c+=1)s(c);O()}},i(i){if(!l){for(let o=0;o<t.length;o+=1)H(n[o]);l=!0}},o(i){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)S(n[o]);l=!1},d(i){i&&g(e),V(n,i)}}}function ae(r){let e,l=r[31]+"",t,n;return{c(){e=b("th"),t=z(l),n=N(),_(e,"class","p-2 whitespace-nowrap min-w-lg text-left")},m(s,i){v(s,e,i),p(e,t),p(e,n)},p(s,i){i[0]&8&&l!==(l=s[31]+"")&&T(t,l)},d(s){s&&g(e)}}}function ue(r){let e,l,t;var n=r[28];function s(i){return{props:{value:i[0],samples_dir:i[12]}}}return n&&(l=new n(s(r))),{c(){e=b("td"),l&&G(l.$$.fragment),_(e,"class","p-2")},m(i,o){v(i,e,o),l&&Z(l,e,null),t=!0},p(i,o){const c={};if(o[0]&1024&&(c.value=i[0]),n!==(n=i[28])){if(l){F();const a=l;S(a.$$.fragment,1,0,()=>{Y(a,1)}),O()}n?(l=new n(s(i)),G(l.$$.fragment),H(l.$$.fragment,1),Z(l,e,null)):l=null}else n&&l.$set(c)},i(i){t||(l&&H(l.$$.fragment,i),t=!0)},o(i){l&&S(l.$$.fragment,i),t=!1},d(i){i&&g(e),l&&Y(l)}}}function fe(r){let e,l,t=r[1][r[30]]!==void 0&&I[r[1][r[30]]]!==void 0&&ue(r);return{c(){t&&t.c(),e=q()},m(n,s){t&&t.m(n,s),v(n,e,s),l=!0},p(n,s){n[1][n[30]]!==void 0&&I[n[1][n[30]]]!==void 0?t?(t.p(n,s),s[0]&2&&H(t,1)):(t=ue(n),t.c(),H(t,1),t.m(e.parentNode,e)):t&&(F(),S(t,1,1,()=>{t=null}),O())},i(n){l||(H(t),l=!0)},o(n){S(t),l=!1},d(n){t&&t.d(n),n&&g(e)}}}function de(r){let e,l,t,n,s,i=r[24],o=[];for(let f=0;f<i.length;f+=1)o[f]=fe(se(r,i,f));const c=f=>S(o[f],1,1,()=>{o[f]=null});function a(){return r[19](r[26])}return{c(){e=b("tr");for(let f=0;f<o.length;f+=1)o[f].c();l=N(),_(e,"class","group cursor-pointer odd:bg-gray-50 border-b dark:border-gray-800 divide-x dark:divide-gray-800 last:border-none hover:bg-orange-50 hover:divide-orange-100 dark:hover:bg-gray-700")},m(f,u){v(f,e,u);for(let h=0;h<o.length;h+=1)o[h].m(e,null);p(e,l),t=!0,n||(s=P(e,"click",a),n=!0)},p(f,u){if(r=f,u[0]&5122){i=r[24];let h;for(h=0;h<i.length;h+=1){const m=se(r,i,h);o[h]?(o[h].p(m,u),H(o[h],1)):(o[h]=fe(m),o[h].c(),H(o[h],1),o[h].m(e,l))}for(F(),h=i.length;h<o.length;h+=1)c(h);O()}},i(f){if(!t){for(let u=0;u<i.length;u+=1)H(o[u]);t=!0}},o(f){o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)S(o[u]);t=!1},d(f){f&&g(e),V(o,f),n=!1,s()}}}function _e(r){let e,l,t;var n=r[10][0][0].component;function s(i){return{props:{value:i[24][0],samples_dir:i[12]}}}
5return n&&(e=new n(s(r))),{c(){e&&G(e.$$.fragment),l=q()},m(i,o){e&&Z(e,i,o),v(i,l,o),t=!0},p(i,o){const c={};if(o[0]&256&&(c.value=i[24][0]),n!==(n=i[10][0][0].component)){if(e){F();const a=e;S(a.$$.fragment,1,0,()=>{Y(a,1)}),O()}n?(e=new n(s(i)),G(e.$$.fragment),H(e.$$.fragment,1),Z(e,l.parentNode,l)):e=null}else n&&e.$set(c)},i(i){t||(e&&H(e.$$.fragment,i),t=!0)},o(i){e&&S(e.$$.fragment,i),t=!1},d(i){i&&g(l),e&&Y(e,i)}}}function me(r){let e,l=Object.keys(I).includes(r[1][0])&&I[r[1][0]],t,n,s,i,o=l&&_e(r);function c(){return r[18](r[26])}return{c(){e=b("button"),o&&o.c(),t=N(),_(e,"class","group rounded-lg")},m(a,f){v(a,e,f),o&&o.m(e,null),p(e,t),n=!0,s||(i=P(e,"click",c),s=!0)},p(a,f){r=a,f[0]&2&&(l=Object.keys(I).includes(r[1][0])&&I[r[1][0]]),l?o?(o.p(r,f),f[0]&2&&H(o,1)):(o=_e(r),o.c(),H(o,1),o.m(e,t)):o&&(F(),S(o,1,1,()=>{o=null}),O())},i(a){n||(H(o),n=!0)},o(a){S(o),n=!1},d(a){a&&g(e),o&&o.d(),s=!1,i()}}}function Ct(r){let e,l,t=r[9],n=[];for(let s=0;s<t.length;s+=1)n[s]=he(re(r,t,s));return{c(){e=b("div"),l=z(`Pages: 6 `);for(let s=0;s<n.length;s+=1)n[s].c();_(e,"class","flex gap-2 items-center justify-center text-sm")},m(s,i){v(s,e,i),p(e,l);for(let o=0;o<n.length;o+=1)n[o].m(e,null)},p(s,i){if(i[0]&640){t=s[9];let o;for(o=0;o<t.length;o+=1){const c=re(s,t,o);n[o]?n[o].p(c,i):(n[o]=he(c),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(s){s&&g(e),V(n,s)}}}function At(r){let e,l=r[21]+1+"",t,n,s,i;function o(){return r[20](r[21])}return{c(){e=b("button"),t=z(l),n=N(),D(e,"font-bold",r[7]===r[21])},m(c,a){v(c,e,a),p(e,t),p(e,n),s||(i=P(e,"click",o),s=!0)},p(c,a){r=c,a[0]&512&&l!==(l=r[21]+1+"")&&T(t,l),a[0]&640&&D(e,"font-bold",r[7]===r[21])},d(c){c&&g(e),s=!1,i()}}}function Et(r){let e;return{c(){e=b("div"),e.textContent="..."},m(l,t){v(l,e,t)},p:k,d(l){l&&g(e)}}}function he(r){let e;function l(s,i){return s[21]===-1?Et:At}let t=l(r),n=t(r);return{c(){n.c(),e=q()},m(s,i){n.m(s,i),v(s,e,i)},p(s,i){t===(t=l(s))&&n?n.p(s,i):(n.d(1),n=t(s),n&&(n.c(),n.m(e.parentNode,e)))},d(s){n.d(s),s&&g(e)}}}function zt(r){let e,l,t,n,s,i,o,c,a,f,u,h;const m=[Mt,Ht],j=[];function d(y,M){return y[13]?0:1}c=d(r),a=j[c]=m[c](r);let L=r[14]&&Ct(r);return{c(){e=b("div"),l=b("div"),t=U("svg"),n=U("path"),s=N(),i=z(r[2]),o=N(),a.c(),f=N(),L&&L.c(),u=q(),_(n,"fill","currentColor"),_(n,"d","M10 6h18v2H10zm0 18h18v2H10zm0-9h18v2H10zm-6 0h2v2H4zm0-9h2v2H4zm0 18h2v2H4z"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),_(t,"aria-hidden","true"),_(t,"role","img"),_(t,"class","mr-1"),_(t,"width","1em"),_(t,"height","1em"),_(t,"preserveAspectRatio","xMidYMid meet"),_(t,"viewBox","0 0 32 32"),_(l,"class","text-xs mb-2 flex items-center text-gray-500"),_(e,"id",r[4]),_(e,"class","mt-4 inline-block max-w-full text-gray-700 w-full"),D(e,"!hidden",!r[5])},m(y,M){v(y,e,M),p(e,l),p(l,t),p(t,n),p(l,s),p(l,i),p(e,o),j[c].m(e,null),v(y,f,M),L&&L.m(y,M),v(y,u,M),h=!0},p(y,M){(!h||M[0]&4)&&T(i,y[2]),a.p(y,M),(!h||M[0]&16)&&_(e,"id",y[4]),M[0]&32&&D(e,"!hidden",!y[5]),y[14]&&L.p(y,M)},i(y){h||(H(a),h=!0)},o(y){S(a),h=!1},d(y){y&&g(e),j[c].d(),y&&g(f),L&&L.d(y),y&&g(u)}}}function Lt(r,e,l){let t,{components:n}=e,{label:s="Examples"}=e,{headers:i}=e,{samples:o}=e,{elem_id:c=""}=e,{visible:a=!0}=e,{value:f=null}=e,{root:u}=e,{samples_per_page:h=10}=e;const m=je();let j=u+"file=",d=0,L=i.length===1,y=o.length>h,M,W,R=[];const ge=w=>{l(0,f=w+d*h),m("click",f)},be=w=>{l(0,f=w+d*h),m("click",f)},pe=w=>l(7,d=w);return r.$$set=w=>{"components"in w&&l(1,n=w.components),"label"in w&&l(2,s=w.label),"headers"in w&&l(3,i=w.headers),"samples"in w&&l(15,o=w.samples),"elem_id"in w&&l(4,c=w.elem_id),"visible"in w&&l(5,a=w.visible),"value"in w&&l(0,f=w.value),"root"in w&&l(16,u=w.root),"samples_per_page"in w&&l(6,h=w.samples_per_page)},r.$$.update=()=>{r.$$.dirty[0]&164544&&(y?(l(9,R=[]),l(8,M=o.slice(d*h,(d+1)*h)),l(17,W=Math.ceil(o.length/h)),[0,d,W-1].forEach(w=>{for(let B=w-2;B<=w+2;B++)B>=0&&B<W&&!R.includes(B)&&(R.length>0&&B-R[R.length-1]>1&&R.push(-1),R.push(B))})):l(8,M=o.slice())),r.$$.dirty[0]&258&&l(10,t=M.map(w=>w.map((B,ke)=>({value:B,component:I[n[ke]]}))))},[f,n,s,i,c,a,h,d,M,R,t,m,j,L,y,o,u,W,ge,be,pe]}class St extends C{constructor(e){super(),A(this,e,Lt,zt,E,{components:1,label:2,headers:3,samples:15,elem_id:4,visible:5,value:0,root:16,samples_per_page:6},null,[-1,-1])}}var It=St;const Pt=["dynamic"];export{It as Component,Pt as modes}; 7//# sourceMappingURL=index.5efcf6a3.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.