diff --git a/docs/_app/chunks/store-2c58625c.js b/docs/_app/chunks/store-2c58625c.js deleted file mode 100644 index 5f1932b0a..000000000 --- a/docs/_app/chunks/store-2c58625c.js +++ /dev/null @@ -1 +0,0 @@ -import{D as c,_ as l,Y as m,Z as d}from"./vendor-585ed223.js";const C=c(""),b=c(!1),g=c([]),j=c({}),f=c([]);function $(n){B("q",n);const o=n.toLowerCase().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)||[],t=[];for(let a of o){let h="_key";a.includes(":")&&([h,a]=a.split(":")),a=a.replace(/\"/g,""),h&&a&&t.push({field:h,value:a})}if(!t.length){b.set(!1),f.set(d(g));return}const r=d(g).filter(a=>{for(let h of t)if(!a._searchable[h.field]||a._searchable[h.field].indexOf(h.value)===-1)return!1;return!0});f.set(r),b.set(!0),console.log(".")}async function L(){let n=await fetch("https://iptv-org.github.io/api/countries.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>e.map(s=>(s.expanded=!1,s))).then(e=>l.keyBy(e,"code")).catch(console.error);j.set(n);let o=await fetch("https://iptv-org.github.io/api/regions.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.keyBy(e,"code")).catch(console.error),t=await fetch("https://iptv-org.github.io/api/subdivisions.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.keyBy(e,"code")).catch(console.error),r=await fetch("https://iptv-org.github.io/api/languages.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.keyBy(e,"code")).catch(console.error),a=await fetch("https://iptv-org.github.io/api/categories.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.keyBy(e,"id")).catch(console.error),h=await fetch("https://iptv-org.github.io/api/streams.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.groupBy(e,"channel")).catch(console.error),w=await fetch("https://iptv-org.github.io/api/guides.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.groupBy(e,"channel")).catch(console.error),p=await fetch("https://iptv-org.github.io/api/channels.json").then(e=>e.json()).then(e=>e.map(s=>{s._raw=JSON.parse(JSON.stringify(s)),s._streams=h[s.id]||[],s._guides=w[s.id]||[];for(let y in s)switch(y){case"languages":s.languages=s.languages.map(i=>r[i]).filter(i=>i);break;case"broadcast_area":s.broadcast_area=s.broadcast_area.map(i=>{const[_,u]=i.split("/");switch(_){case"c":return n[u];case"r":return o[u];case"s":return t[u]}}).filter(i=>i);break;case"categories":s.categories=s.categories.map(i=>a[i]).filter(i=>i);break;case"country":s.country=n[s.country];break;case"subdivision":s.subdivision=t[s.subdivision];break}return s._searchable=k(s),s})).catch(e=>(console.error(e),[]));g.set(p),f.set(p)}function v(n){const o=n.native_name?m(n.native_name):null;return[n.id,n.name,n.native_name,o].map(t=>t||"").filter(t=>t).join("|").toLowerCase()}function k(n){const o={};for(let t in n)t.startsWith("_")||n[t]===null||n[t]===void 0||(Array.isArray(n[t])?o[t]=n[t].map(r=>r.name?r.name.toLowerCase():null).filter(r=>r).join(","):typeof n[t]=="object"&&n[t].name?o[t]=n[t].name.toLowerCase():o[t]=n[t].toString().toLowerCase());return o._key=v(n),o}function B(n,o){if(window.history.pushState){let t=n&&o?`?${n}=${o}`:"";t=t.replace(/\+/g,"%2B");const r=`${window.location.protocol}//${window.location.host}${window.location.pathname}${t}`;window.history.pushState({path:r},"",r)}}export{L as a,j as c,f,b as h,C as q,$ as s}; diff --git a/docs/_app/chunks/store-2c58625c.js.br b/docs/_app/chunks/store-2c58625c.js.br deleted file mode 100644 index e99f02cf1..000000000 Binary files a/docs/_app/chunks/store-2c58625c.js.br and /dev/null differ diff --git a/docs/_app/chunks/store-2c58625c.js.gz b/docs/_app/chunks/store-2c58625c.js.gz deleted file mode 100644 index c18bade74..000000000 Binary files a/docs/_app/chunks/store-2c58625c.js.gz and /dev/null differ diff --git a/docs/_app/chunks/store-93a026ed.js b/docs/_app/chunks/store-93a026ed.js new file mode 100644 index 000000000..bc3e1da5b --- /dev/null +++ b/docs/_app/chunks/store-93a026ed.js @@ -0,0 +1 @@ +import{D as c,X as b,_ as l,Y as m}from"./vendor-e06f8fa1.js";const $=c(""),w=c(!1),f=c([]),j=c({}),p=c([]);function C(t){const o=t.toLowerCase().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)||[],n=[];for(let a of o){let h="_key";a.includes(":")&&([h,a]=a.split(":")),a=a.replace(/\"/g,""),h&&a&&n.push({field:h,value:a})}if(!n.length){w.set(!1),p.set(b(f));return}const i=b(f).filter(a=>{for(let h of n){if(!h.value)return!1;const u=new RegExp(h.value,"i");if(!a._searchable[h.field]||!u.test(a._searchable[h.field]))return!1}return!0});p.set(i),w.set(!0),console.log(".")}async function L(){let t=await fetch("https://iptv-org.github.io/api/countries.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>e.map(s=>(s.expanded=!1,s))).then(e=>l.keyBy(e,"code")).catch(console.error);j.set(t);let o=await fetch("https://iptv-org.github.io/api/regions.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.keyBy(e,"code")).catch(console.error),n=await fetch("https://iptv-org.github.io/api/subdivisions.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.keyBy(e,"code")).catch(console.error),i=await fetch("https://iptv-org.github.io/api/languages.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.keyBy(e,"code")).catch(console.error),a=await fetch("https://iptv-org.github.io/api/categories.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.keyBy(e,"id")).catch(console.error),h=await fetch("https://iptv-org.github.io/api/streams.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.groupBy(e,"channel")).catch(console.error),u=await fetch("https://iptv-org.github.io/api/guides.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>l.groupBy(e,"channel")).catch(console.error),d=await fetch("https://iptv-org.github.io/api/channels.json").then(e=>e.json()).then(e=>e.map(s=>{s._raw=JSON.parse(JSON.stringify(s)),s._streams=h[s.id]||[],s._guides=u[s.id]||[];for(let y in s)switch(y){case"languages":s.languages=s.languages.map(r=>i[r]).filter(r=>r);break;case"broadcast_area":s.broadcast_area=s.broadcast_area.map(r=>{const[_,g]=r.split("/");switch(_){case"c":return t[g];case"r":return o[g];case"s":return n[g]}}).filter(r=>r);break;case"categories":s.categories=s.categories.map(r=>a[r]).filter(r=>r);break;case"country":s.country=t[s.country];break;case"subdivision":s.subdivision=n[s.subdivision];break}return s._searchable=k(s),s})).catch(e=>(console.error(e),[]));f.set(d),p.set(d)}function v(t){const o=t.native_name?m(t.native_name):null;return[t.id,t.name,t.native_name,o].map(n=>n||"").filter(n=>n).join("|").toLowerCase()}function k(t){const o={};for(let n in t)n.startsWith("_")||t[n]===null||t[n]===void 0||(Array.isArray(t[n])?o[n]=t[n].map(i=>i.name?i.name.toLowerCase():null).filter(i=>i).join(","):typeof t[n]=="object"&&t[n].name?o[n]=t[n].name.toLowerCase():o[n]=t[n].toString().toLowerCase());return o._key=v(t),o}function x(t,o){if(window.history.pushState){let n=t&&o?`?${t}=${o}`:"";n=n.replace(/\+/g,"%2B");const i=`${window.location.protocol}//${window.location.host}${window.location.pathname}${n}`,a={};a[t]=o,window.history.pushState(a,"",i),B(o)}}function B(t){const o=t?`${t} \xB7 iptv-org`:"iptv-org";document.title=o}export{C as a,B as b,f as c,L as d,j as e,p as f,w as h,$ as q,x as s}; diff --git a/docs/_app/chunks/store-93a026ed.js.br b/docs/_app/chunks/store-93a026ed.js.br new file mode 100644 index 000000000..5887481b4 Binary files /dev/null and b/docs/_app/chunks/store-93a026ed.js.br differ diff --git a/docs/_app/chunks/store-93a026ed.js.gz b/docs/_app/chunks/store-93a026ed.js.gz new file mode 100644 index 000000000..305c39918 Binary files /dev/null and b/docs/_app/chunks/store-93a026ed.js.gz differ diff --git a/docs/_app/chunks/vendor-585ed223.js.br b/docs/_app/chunks/vendor-585ed223.js.br deleted file mode 100644 index 9955217bc..000000000 Binary files a/docs/_app/chunks/vendor-585ed223.js.br and /dev/null differ diff --git a/docs/_app/chunks/vendor-585ed223.js b/docs/_app/chunks/vendor-e06f8fa1.js similarity index 99% rename from docs/_app/chunks/vendor-585ed223.js rename to docs/_app/chunks/vendor-e06f8fa1.js index 77863b289..66966a417 100644 --- a/docs/_app/chunks/vendor-585ed223.js +++ b/docs/_app/chunks/vendor-e06f8fa1.js @@ -34,4 +34,4 @@ function print() { __p += __j.call(arguments, '') } }`;var dn=Gt(function(){return Zn(r,x+"return "+D).apply(a,w)});if(dn.source=D,Eo(dn))throw dn;return dn}function mc(n){return Cn(n).toLowerCase()}function Yc(n){return Cn(n).toUpperCase()}function Lc(n,e,i){if(n=Cn(n),n&&(i||e===a))return xg(n);if(!n||!(e=je(e)))return n;var o=Ge(n),s=Ge(e),r=Og(o,s),w=Ig(o,s)+1;return ci(o,r,w).join("")}function Zc(n,e,i){if(n=Cn(n),n&&(i||e===a))return n.slice(0,Ug(n)+1);if(!n||!(e=je(e)))return n;var o=Ge(n),s=Ig(o,Ge(e))+1;return ci(o,0,s).join("")}function Cc(n,e,i){if(n=Cn(n),n&&(i||e===a))return n.replace(Au,"");if(!n||!(e=je(e)))return n;var o=Ge(n),s=Og(o,Ge(e));return ci(o,s).join("")}function Sc(n,e){var i=ln,o=zn;if(Mn(e)){var s="separator"in e?e.separator:s;i="length"in e?rn(e.length):i,o="omission"in e?je(e.omission):o}n=Cn(n);var r=n.length;if(Gi(n)){var w=Ge(n);r=w.length}if(i>=r)return n;var c=i-Pi(o);if(c<1)return o;var j=w?ci(w,0,c).join(""):n.slice(0,c);if(s===a)return j+o;if(w&&(c+=j.length-c),Ro(s)){if(n.slice(c).search(s)){var S,J=j;for(s.global||(s=go(s.source,Cn(bg.exec(s))+"g")),s.lastIndex=0;S=s.exec(J);)var D=S.index;j=j.slice(0,D===a?c:D)}}else if(n.indexOf(je(s),c)!=c){var W=j.lastIndexOf(s);W>-1&&(j=j.slice(0,W))}return j+o}function Jc(n){return n=Cn(n),n&&Gh.test(n)?n.replace(rg,er):n}var kc=Ri(function(n,e,i){return n+(i?" ":"")+e.toUpperCase()}),Io=Ps("toUpperCase");function Ft(n,e,i){return n=Cn(n),e=i?a:e,e===a?Ul(n)?ur(n):vl(n):n.match(e)||[]}var Gt=bn(function(n,e){try{return fe(n,a,e)}catch(i){return Eo(i)?i:new tn(i)}}),Dc=Ve(function(n,e){return Se(e,function(i){i=Ee(i),Ue(n,i,Ko(n[i],n))}),n});function Xc(n){var e=n==null?0:n.length,i=en();return n=e?_n(n,function(o){if(typeof o[1]!="function")throw new Je(l);return[i(o[0]),o[1]]}):[],bn(function(o){for(var s=-1;++sq)return[];var i=pn,o=qn(n,pn);e=en(e),n-=pn;for(var s=ao(o,e);++i0||e<0)?new fn(i):(n<0?i=i.takeRight(-n):n&&(i=i.drop(n)),e!==a&&(e=rn(e),i=e<0?i.dropRight(-e):i.take(e-n)),i)},fn.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},fn.prototype.toArray=function(){return this.take(pn)},Ke(fn.prototype,function(n,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),s=h[o?"take"+(e=="last"?"Right":""):e],r=o||/^find/.test(e);!s||(h.prototype[e]=function(){var w=this.__wrapped__,c=o?[1]:arguments,j=w instanceof fn,S=c[0],J=j||hn(w),D=function(cn){var jn=s.apply(h,li([cn],c));return o&&W?jn[0]:jn};J&&i&&typeof S=="function"&&S.length!=1&&(j=J=!1);var W=this.__chain__,x=!!this.__actions__.length,an=r&&!W,dn=j&&!x;if(!r&&J){w=dn?w:new fn(this);var un=n.apply(w,c);return un.__actions__.push({func:fu,args:[D],thisArg:a}),new ke(un,W)}return an&&dn?n.apply(this,c):(un=this.thru(D),an?o?un.value()[0]:un.value():un)})}),Se(["pop","push","shift","sort","splice","unshift"],function(n){var e=Aa[n],i=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",o=/^(?:pop|shift)$/.test(n);h.prototype[n]=function(){var s=arguments;if(o&&!this.__chain__){var r=this.value();return e.apply(hn(r)?r:[],s)}return this[i](function(w){return e.apply(hn(w)?w:[],s)})}}),Ke(fn.prototype,function(n,e){var i=h[e];if(i){var o=i.name+"";kn.call(Ki,o)||(Ki[o]=[]),Ki[o].push({name:e,func:i})}}),Ki[lu(a,z).name]=[{name:"wrapper",func:a}],fn.prototype.clone=Jr,fn.prototype.reverse=kr,fn.prototype.value=Dr,h.prototype.at=ab,h.prototype.chain=ub,h.prototype.commit=ob,h.prototype.next=gb,h.prototype.plant=tb,h.prototype.reverse=hb,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=lb,h.prototype.first=h.prototype.head,wa&&(h.prototype[wa]=sb),h},Wi=or();Yi?((Yi.exports=Wi)._=Wi,zu._=Wi):xn._=Wi}).call(Ui)})(sg,sg.exports);var Ep=sg.exports;function Rf(g,{delay:u=0,duration:a=400,easing:t=wh}={}){const d=+getComputedStyle(g).opacity;return{delay:u,duration:a,easing:t,css:y=>`opacity: ${y*d}`}}const{window:xf}=vf;function It(g){let u,a,t,d,y,l,b,f,m,Y,C,k,T,Q,G,V,z,H=g[1].closeButton&&zt(g);var R=g[2];function Yn(U){return{}}return R&&(l=new R(Yn())),{c(){u=nn("div"),a=nn("div"),t=nn("div"),H&&H.c(),d=Sn(),y=nn("div"),l&&aa(l.$$.fragment),this.h()},l(U){u=gn(U,"DIV",{class:!0,style:!0});var E=on(u);a=gn(E,"DIV",{class:!0,style:!0});var v=on(a);t=gn(v,"DIV",{class:!0,role:!0,"aria-modal":!0,"aria-label":!0,"aria-labelledby":!0,style:!0});var $=on(t);H&&H.l($),d=Jn($),y=gn($,"DIV",{class:!0,style:!0});var I=on(y);l&&Pu(l.$$.fragment,I),I.forEach(_),$.forEach(_),v.forEach(_),E.forEach(_),this.h()},h(){N(y,"class",b=Re(g[1].classContent)+" svelte-g4wg3a"),N(y,"style",g[9]),le(y,"content",!g[0]),N(t,"class",f=Re(g[1].classWindow)+" svelte-g4wg3a"),N(t,"role","dialog"),N(t,"aria-modal","true"),N(t,"aria-label",m=g[1].ariaLabelledBy?null:g[1].ariaLabel||null),N(t,"aria-labelledby",Y=g[1].ariaLabelledBy||null),N(t,"style",g[8]),le(t,"window",!g[0]),N(a,"class",k=Re(g[1].classWindowWrap)+" svelte-g4wg3a"),N(a,"style",g[7]),le(a,"wrap",!g[0]),N(u,"class",T=Re(g[1].classBg)+" svelte-g4wg3a"),N(u,"style",g[6]),le(u,"bg",!g[0])},m(U,E){mn(U,u,E),A(u,a),A(a,t),H&&H.m(t,null),A(t,d),A(t,y),l&&_i(l,y,null),g[48](t),g[49](a),g[50](u),G=!0,V||(z=[_e(t,"introstart",function(){qi(g[13])&&g[13].apply(this,arguments)}),_e(t,"outrostart",function(){qi(g[14])&&g[14].apply(this,arguments)}),_e(t,"introend",function(){qi(g[15])&&g[15].apply(this,arguments)}),_e(t,"outroend",function(){qi(g[16])&&g[16].apply(this,arguments)}),_e(u,"mousedown",g[20]),_e(u,"mouseup",g[21])],V=!0)},p(U,E){if(g=U,g[1].closeButton?H?(H.p(g,E),E[0]&2&&yn(H,1)):(H=zt(g),H.c(),yn(H,1),H.m(t,d)):H&&(Be(),Ln(H,1,1,()=>{H=null}),Me()),R!==(R=g[2])){if(l){Be();const v=l;Ln(v.$$.fragment,1,0,()=>{Bi(v,1)}),Me()}R?(l=new R(Yn()),aa(l.$$.fragment),yn(l.$$.fragment,1),_i(l,y,null)):l=null}(!G||E[0]&2&&b!==(b=Re(g[1].classContent)+" svelte-g4wg3a"))&&N(y,"class",b),(!G||E[0]&512)&&N(y,"style",g[9]),E[0]&3&&le(y,"content",!g[0]),(!G||E[0]&2&&f!==(f=Re(g[1].classWindow)+" svelte-g4wg3a"))&&N(t,"class",f),(!G||E[0]&2&&m!==(m=g[1].ariaLabelledBy?null:g[1].ariaLabel||null))&&N(t,"aria-label",m),(!G||E[0]&2&&Y!==(Y=g[1].ariaLabelledBy||null))&&N(t,"aria-labelledby",Y),(!G||E[0]&256)&&N(t,"style",g[8]),E[0]&3&&le(t,"window",!g[0]),(!G||E[0]&2&&k!==(k=Re(g[1].classWindowWrap)+" svelte-g4wg3a"))&&N(a,"class",k),(!G||E[0]&128)&&N(a,"style",g[7]),E[0]&3&&le(a,"wrap",!g[0]),(!G||E[0]&2&&T!==(T=Re(g[1].classBg)+" svelte-g4wg3a"))&&N(u,"class",T),(!G||E[0]&64)&&N(u,"style",g[6]),E[0]&3&&le(u,"bg",!g[0])},i(U){G||(yn(H),l&&yn(l.$$.fragment,U),ia(()=>{C||(C=ku(t,g[12],g[1].transitionWindowProps,!0)),C.run(1)}),ia(()=>{Q||(Q=ku(u,g[11],g[1].transitionBgProps,!0)),Q.run(1)}),G=!0)},o(U){Ln(H),l&&Ln(l.$$.fragment,U),C||(C=ku(t,g[12],g[1].transitionWindowProps,!1)),C.run(0),Q||(Q=ku(u,g[11],g[1].transitionBgProps,!1)),Q.run(0),G=!1},d(U){U&&_(u),H&&H.d(),l&&Bi(l),g[48](null),U&&C&&C.end(),g[49](null),g[50](null),U&&Q&&Q.end(),V=!1,pi(z)}}}function zt(g){let u,a,t,d,y;const l=[If,Of],b=[];function f(m,Y){return Y[0]&2&&(u=null),u==null&&(u=!!m[17](m[1].closeButton)),u?0:1}return a=f(g,[-1,-1,-1]),t=b[a]=l[a](g),{c(){t.c(),d=xe()},l(m){t.l(m),d=xe()},m(m,Y){b[a].m(m,Y),mn(m,d,Y),y=!0},p(m,Y){let C=a;a=f(m,Y),a===C?b[a].p(m,Y):(Be(),Ln(b[C],1,1,()=>{b[C]=null}),Me(),t=b[a],t?t.p(m,Y):(t=b[a]=l[a](m),t.c()),yn(t,1),t.m(d.parentNode,d))},i(m){y||(yn(t),y=!0)},o(m){Ln(t),y=!1},d(m){b[a].d(m),m&&_(d)}}}function Of(g){let u,a,t,d;return{c(){u=nn("button"),this.h()},l(y){u=gn(y,"BUTTON",{class:!0,"aria-label":!0,style:!0}),on(u).forEach(_),this.h()},h(){N(u,"class",a=Re(g[1].classCloseButton)+" svelte-g4wg3a"),N(u,"aria-label","Close modal"),N(u,"style",g[10]),le(u,"close",!g[0])},m(y,l){mn(y,u,l),t||(d=_e(u,"click",g[18]),t=!0)},p(y,l){l[0]&2&&a!==(a=Re(y[1].classCloseButton)+" svelte-g4wg3a")&&N(u,"class",a),l[0]&1024&&N(u,"style",y[10]),l[0]&3&&le(u,"close",!y[0])},i:ue,o:ue,d(y){y&&_(u),t=!1,d()}}}function If(g){let u,a,t;var d=g[1].closeButton;function y(l){return{props:{onClose:l[18]}}}return d&&(u=new d(y(g))),{c(){u&&aa(u.$$.fragment),a=xe()},l(l){u&&Pu(u.$$.fragment,l),a=xe()},m(l,b){u&&_i(u,l,b),mn(l,a,b),t=!0},p(l,b){if(d!==(d=l[1].closeButton)){if(u){Be();const f=u;Ln(f.$$.fragment,1,0,()=>{Bi(f,1)}),Me()}d?(u=new d(y(l)),aa(u.$$.fragment),yn(u.$$.fragment,1),_i(u,a.parentNode,a)):u=null}},i(l){t||(u&&yn(u.$$.fragment,l),t=!0)},o(l){u&&Ln(u.$$.fragment,l),t=!1},d(l){l&&_(a),u&&Bi(u,l)}}}function zf(g){let u,a,t,d,y=g[2]&&It(g);const l=g[47].default,b=oa(l,g,g[46],null);return{c(){y&&y.c(),u=Sn(),b&&b.c()},l(f){y&&y.l(f),u=Jn(f),b&&b.l(f)},m(f,m){y&&y.m(f,m),mn(f,u,m),b&&b.m(f,m),a=!0,t||(d=_e(xf,"keydown",g[19]),t=!0)},p(f,m){f[2]?y?(y.p(f,m),m[0]&4&&yn(y,1)):(y=It(f),y.c(),yn(y,1),y.m(u.parentNode,u)):y&&(Be(),Ln(y,1,1,()=>{y=null}),Me()),b&&b.p&&(!a||m[1]&32768)&&sa(b,l,f,f[46],a?ga(l,f[46],m,null):ta(f[46]),null)},i(f){a||(yn(y),yn(b,f),a=!0)},o(f){Ln(y),Ln(b,f),a=!1},d(f){y&&y.d(f),f&&_(u),b&&b.d(f),t=!1,d()}}}function Uf(g,u={}){return function(t){return new g(Kt(Ti({},t),{props:Ti(Ti({},u),t.props)}))}}function qf(g,u,a){let{$$slots:t={},$$scope:d}=u;const y=hg(),l=Gf;let{show:b=null}=u,{key:f="simple-modal"}=u,{ariaLabel:m=null}=u,{ariaLabelledBy:Y=null}=u,{closeButton:C=!0}=u,{closeOnEsc:k=!0}=u,{closeOnOuterClick:T=!0}=u,{styleBg:Q={}}=u,{styleWindowWrap:G={}}=u,{styleWindow:V={}}=u,{styleContent:z={}}=u,{styleCloseButton:H={}}=u,{classBg:R=null}=u,{classWindowWrap:Yn=null}=u,{classWindow:U=null}=u,{classContent:E=null}=u,{classCloseButton:v=null}=u,{unstyled:$=!1}=u,{setContext:I=l}=u,{transitionBg:ln=Rf}=u,{transitionBgProps:zn={duration:250}}=u,{transitionWindow:$n=ln}=u,{transitionWindowProps:B=zn}=u,{disableFocusTrap:F=!1}=u;const P={ariaLabel:m,ariaLabelledBy:Y,closeButton:C,closeOnEsc:k,closeOnOuterClick:T,styleBg:Q,styleWindowWrap:G,styleWindow:V,styleContent:z,styleCloseButton:H,classBg:R,classWindowWrap:Yn,classWindow:U,classContent:E,classCloseButton:v,transitionBg:ln,transitionBgProps:zn,transitionWindow:$n,transitionWindowProps:B,disableFocusTrap:F,unstyled:$};let O=Ti({},P),M=null,q,sn,wn,pn,Dn,Fn,ye,Wn,de,ve,ne,Bn,be,Qe,Ze;const Fa=X=>X.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase(),Rn=X=>X?Object.keys(X).reduce((Oe,we)=>`${Oe}; ${Fa(we)}: ${X[we]}`,""):"",ui=X=>!!(X&&X.constructor&&X.call&&X.apply),Wu=()=>{a(6,Dn=Rn(Object.assign({},{width:window.innerWidth,height:window.innerHeight},O.styleBg))),a(7,Fn=Rn(O.styleWindowWrap)),a(8,ye=Rn(O.styleWindow)),a(9,Wn=Rn(O.styleContent)),a(10,de=Rn(O.styleCloseButton)),a(11,ve=O.transitionBg),a(12,ne=O.transitionWindow)},oe=()=>{};let la=oe,Mi=oe,oi=oe,Un=oe;const gi=(X,Oe={},we={},An={})=>{a(2,M=Uf(X,Oe)),a(1,O=Ti(Ti({},P),we)),Wu(),mi(),a(13,la=ce=>{An.onOpen&&An.onOpen(ce),y("open"),y("opening")}),a(14,Mi=ce=>{An.onClose&&An.onClose(ce),y("close"),y("closing")}),a(15,oi=ce=>{An.onOpened&&An.onOpened(ce),y("opened")}),a(16,Un=ce=>{An.onClosed&&An.onClosed(ce),y("closed")})},Fe=(X={})=>{!M||(a(14,Mi=X.onClose||Mi),a(16,Un=X.onClosed||Un),a(2,M=null),si())},Nu=X=>{if(O.closeOnEsc&&M&&X.key==="Escape"&&(X.preventDefault(),Fe()),M&&X.key==="Tab"&&!O.disableFocusTrap){const Oe=wn.querySelectorAll("*"),we=Array.from(Oe).filter(ce=>ce.tabIndex>=0);let An=we.indexOf(document.activeElement);An===-1&&X.shiftKey&&(An=0),An+=we.length+(X.shiftKey?-1:1),An%=we.length,we[An].focus(),X.preventDefault()}},ji=X=>{O.closeOnOuterClick&&(X.target===q||X.target===sn)&&(Ze=X.target)},vu=X=>{O.closeOnOuterClick&&X.target===Ze&&(X.preventDefault(),Fe())},mi=()=>{pn=window.scrollY,Bn=document.body.style.position,be=document.body.style.overflow,Qe=document.body.style.width,document.body.style.position="fixed",document.body.style.top=`-${pn}px`,document.body.style.overflow="hidden",document.body.style.width="100%"},si=()=>{document.body.style.position=Bn||"",document.body.style.top="",document.body.style.overflow=be||"",document.body.style.width=Qe||"",window.scrollTo(0,pn)};I(f,{open:gi,close:Fe});let ti=!1;Jh(()=>{ti&&Fe()}),Sh(()=>{a(45,ti=!0)});function ra(X){Hi[X?"unshift":"push"](()=>{wn=X,a(5,wn)})}function ya(X){Hi[X?"unshift":"push"](()=>{sn=X,a(4,sn)})}function da(X){Hi[X?"unshift":"push"](()=>{q=X,a(3,q)})}return g.$$set=X=>{"show"in X&&a(22,b=X.show),"key"in X&&a(23,f=X.key),"ariaLabel"in X&&a(24,m=X.ariaLabel),"ariaLabelledBy"in X&&a(25,Y=X.ariaLabelledBy),"closeButton"in X&&a(26,C=X.closeButton),"closeOnEsc"in X&&a(27,k=X.closeOnEsc),"closeOnOuterClick"in X&&a(28,T=X.closeOnOuterClick),"styleBg"in X&&a(29,Q=X.styleBg),"styleWindowWrap"in X&&a(30,G=X.styleWindowWrap),"styleWindow"in X&&a(31,V=X.styleWindow),"styleContent"in X&&a(32,z=X.styleContent),"styleCloseButton"in X&&a(33,H=X.styleCloseButton),"classBg"in X&&a(34,R=X.classBg),"classWindowWrap"in X&&a(35,Yn=X.classWindowWrap),"classWindow"in X&&a(36,U=X.classWindow),"classContent"in X&&a(37,E=X.classContent),"classCloseButton"in X&&a(38,v=X.classCloseButton),"unstyled"in X&&a(0,$=X.unstyled),"setContext"in X&&a(39,I=X.setContext),"transitionBg"in X&&a(40,ln=X.transitionBg),"transitionBgProps"in X&&a(41,zn=X.transitionBgProps),"transitionWindow"in X&&a(42,$n=X.transitionWindow),"transitionWindowProps"in X&&a(43,B=X.transitionWindowProps),"disableFocusTrap"in X&&a(44,F=X.disableFocusTrap),"$$scope"in X&&a(46,d=X.$$scope)},g.$$.update=()=>{g.$$.dirty[0]&4194304|g.$$.dirty[1]&16384&&ti&&(ui(b)?gi(b):Fe())},[$,O,M,q,sn,wn,Dn,Fn,ye,Wn,de,ve,ne,la,Mi,oi,Un,ui,Fe,Nu,ji,vu,b,f,m,Y,C,k,T,Q,G,V,z,H,R,Yn,U,E,v,I,ln,zn,$n,B,F,ti,d,t,ra,ya,da]}class Rp extends Qa{constructor(u){super();Ma(this,u,qf,zf,ua,{show:22,key:23,ariaLabel:24,ariaLabelledBy:25,closeButton:26,closeOnEsc:27,closeOnOuterClick:28,styleBg:29,styleWindowWrap:30,styleWindow:31,styleContent:32,styleCloseButton:33,classBg:34,classWindowWrap:35,classWindow:36,classContent:37,classCloseButton:38,unstyled:0,setContext:39,transitionBg:40,transitionBgProps:41,transitionWindow:42,transitionWindowProps:43,disableFocusTrap:44},null,[-1,-1,-1])}}function Vf(g){let u;return{c(){u=nn("i"),this.h()},l(a){u=gn(a,"I",{class:!0}),on(u).forEach(_),this.h()},h(){N(u,"class","loading-default svelte-10h86fq")},m(a,t){mn(a,u,t)},d(a){a&&_(u)}}}function $f(g){let u,a,t,d,y,l,b,f,m,Y;return{c(){u=nn("span"),a=nn("span"),t=Sn(),d=nn("span"),y=Sn(),l=nn("span"),b=Sn(),f=nn("span"),m=Sn(),Y=nn("span"),this.h()},l(C){u=gn(C,"SPAN",{class:!0});var k=on(u);a=gn(k,"SPAN",{class:!0}),on(a).forEach(_),t=Jn(k),d=gn(k,"SPAN",{class:!0}),on(d).forEach(_),y=Jn(k),l=gn(k,"SPAN",{class:!0}),on(l).forEach(_),b=Jn(k),f=gn(k,"SPAN",{class:!0}),on(f).forEach(_),m=Jn(k),Y=gn(k,"SPAN",{class:!0}),on(Y).forEach(_),k.forEach(_),this.h()},h(){N(a,"class","wave-item svelte-10h86fq"),N(d,"class","wave-item svelte-10h86fq"),N(l,"class","wave-item svelte-10h86fq"),N(f,"class","wave-item svelte-10h86fq"),N(Y,"class","wave-item svelte-10h86fq"),N(u,"class","loading-wave-dots svelte-10h86fq")},m(C,k){mn(C,u,k),A(u,a),A(u,t),A(u,d),A(u,y),A(u,l),A(u,b),A(u,f),A(u,m),A(u,Y)},d(C){C&&_(u)}}}function np(g){let u;return{c(){u=nn("i"),this.h()},l(a){u=gn(a,"I",{class:!0}),on(u).forEach(_),this.h()},h(){N(u,"class","loading-spiral svelte-10h86fq")},m(a,t){mn(a,u,t)},d(a){a&&_(u)}}}function ep(g){let u,a,t,d,y,l,b,f,m,Y,C,k,T,Q,G,V;return{c(){u=nn("span"),a=nn("span"),t=Sn(),d=nn("span"),y=Sn(),l=nn("span"),b=Sn(),f=nn("span"),m=Sn(),Y=nn("span"),C=Sn(),k=nn("span"),T=Sn(),Q=nn("span"),G=Sn(),V=nn("span"),this.h()},l(z){u=gn(z,"SPAN",{class:!0});var H=on(u);a=gn(H,"SPAN",{class:!0}),on(a).forEach(_),t=Jn(H),d=gn(H,"SPAN",{class:!0}),on(d).forEach(_),y=Jn(H),l=gn(H,"SPAN",{class:!0}),on(l).forEach(_),b=Jn(H),f=gn(H,"SPAN",{class:!0}),on(f).forEach(_),m=Jn(H),Y=gn(H,"SPAN",{class:!0}),on(Y).forEach(_),C=Jn(H),k=gn(H,"SPAN",{class:!0}),on(k).forEach(_),T=Jn(H),Q=gn(H,"SPAN",{class:!0}),on(Q).forEach(_),G=Jn(H),V=gn(H,"SPAN",{class:!0}),on(V).forEach(_),H.forEach(_),this.h()},h(){N(a,"class","circle-item svelte-10h86fq"),N(d,"class","circle-item svelte-10h86fq"),N(l,"class","circle-item svelte-10h86fq"),N(f,"class","circle-item svelte-10h86fq"),N(Y,"class","circle-item svelte-10h86fq"),N(k,"class","circle-item svelte-10h86fq"),N(Q,"class","circle-item svelte-10h86fq"),N(V,"class","circle-item svelte-10h86fq"),N(u,"class","loading-circles svelte-10h86fq")},m(z,H){mn(z,u,H),A(u,a),A(u,t),A(u,d),A(u,y),A(u,l),A(u,b),A(u,f),A(u,m),A(u,Y),A(u,C),A(u,k),A(u,T),A(u,Q),A(u,G),A(u,V)},d(z){z&&_(u)}}}function ip(g){let u,a,t,d,y,l,b,f,m,Y,C,k,T,Q,G,V;return{c(){u=nn("span"),a=nn("span"),t=Sn(),d=nn("span"),y=Sn(),l=nn("span"),b=Sn(),f=nn("span"),m=Sn(),Y=nn("span"),C=Sn(),k=nn("span"),T=Sn(),Q=nn("span"),G=Sn(),V=nn("span"),this.h()},l(z){u=gn(z,"SPAN",{class:!0});var H=on(u);a=gn(H,"SPAN",{class:!0}),on(a).forEach(_),t=Jn(H),d=gn(H,"SPAN",{class:!0}),on(d).forEach(_),y=Jn(H),l=gn(H,"SPAN",{class:!0}),on(l).forEach(_),b=Jn(H),f=gn(H,"SPAN",{class:!0}),on(f).forEach(_),m=Jn(H),Y=gn(H,"SPAN",{class:!0}),on(Y).forEach(_),C=Jn(H),k=gn(H,"SPAN",{class:!0}),on(k).forEach(_),T=Jn(H),Q=gn(H,"SPAN",{class:!0}),on(Q).forEach(_),G=Jn(H),V=gn(H,"SPAN",{class:!0}),on(V).forEach(_),H.forEach(_),this.h()},h(){N(a,"class","bubble-item svelte-10h86fq"),N(d,"class","bubble-item svelte-10h86fq"),N(l,"class","bubble-item svelte-10h86fq"),N(f,"class","bubble-item svelte-10h86fq"),N(Y,"class","bubble-item svelte-10h86fq"),N(k,"class","bubble-item svelte-10h86fq"),N(Q,"class","bubble-item svelte-10h86fq"),N(V,"class","bubble-item svelte-10h86fq"),N(u,"class","loading-bubbles svelte-10h86fq")},m(z,H){mn(z,u,H),A(u,a),A(u,t),A(u,d),A(u,y),A(u,l),A(u,b),A(u,f),A(u,m),A(u,Y),A(u,C),A(u,k),A(u,T),A(u,Q),A(u,G),A(u,V)},d(z){z&&_(u)}}}function ap(g){let u;function a(y,l){return y[0]==="bubbles"?ip:y[0]==="circles"?ep:y[0]==="spiral"?np:y[0]==="wavedots"?$f:Vf}let t=a(g),d=t(g);return{c(){d.c(),u=xe()},l(y){d.l(y),u=xe()},m(y,l){d.m(y,l),mn(y,u,l)},p(y,[l]){t!==(t=a(y))&&(d.d(1),d=t(y),d&&(d.c(),d.m(u.parentNode,u)))},i:ue,o:ue,d(y){d.d(y),y&&_(u)}}}function up(g,u,a){let{spinner:t=""}=u;return g.$$set=d=>{"spinner"in d&&a(0,t=d.spinner)},[t]}class op extends Qa{constructor(u){super();Ma(this,u,up,ap,ua,{spinner:0})}}const gp=g=>({}),Ut=g=>({attemptLoad:g[7]}),sp=g=>({}),qt=g=>({}),tp=g=>({}),Vt=g=>({}),hp=g=>({isFirstLoad:g&2}),$t=g=>({isFirstLoad:g[1]});function nh(g){let u,a;const t=g[15].spinner,d=oa(t,g,g[14],$t),y=d||lp(g);return{c(){u=nn("div"),y&&y.c(),this.h()},l(l){u=gn(l,"DIV",{class:!0});var b=on(u);y&&y.l(b),b.forEach(_),this.h()},h(){N(u,"class","infinite-status-prompt")},m(l,b){mn(l,u,b),y&&y.m(u,null),a=!0},p(l,b){d?d.p&&(!a||b&16386)&&sa(d,t,l,l[14],a?ga(t,l[14],b,hp):ta(l[14]),$t):y&&y.p&&(!a||b&1)&&y.p(l,a?b:-1)},i(l){a||(yn(y,l),a=!0)},o(l){Ln(y,l),a=!1},d(l){l&&_(u),y&&y.d(l)}}}function lp(g){let u,a;return u=new op({props:{spinner:g[0]}}),{c(){aa(u.$$.fragment)},l(t){Pu(u.$$.fragment,t)},m(t,d){_i(u,t,d),a=!0},p(t,d){const y={};d&1&&(y.spinner=t[0]),u.$set(y)},i(t){a||(yn(u.$$.fragment,t),a=!0)},o(t){Ln(u.$$.fragment,t),a=!1},d(t){Bi(u,t)}}}function eh(g){let u,a;const t=g[15].noResults,d=oa(t,g,g[14],Vt),y=d||rp();return{c(){u=nn("div"),y&&y.c(),this.h()},l(l){u=gn(l,"DIV",{class:!0});var b=on(u);y&&y.l(b),b.forEach(_),this.h()},h(){N(u,"class","infinite-status-prompt")},m(l,b){mn(l,u,b),y&&y.m(u,null),a=!0},p(l,b){d&&d.p&&(!a||b&16384)&&sa(d,t,l,l[14],a?ga(t,l[14],b,tp):ta(l[14]),Vt)},i(l){a||(yn(y,l),a=!0)},o(l){Ln(y,l),a=!1},d(l){l&&_(u),y&&y.d(l)}}}function rp(g){let u;return{c(){u=Kn("No results :(")},l(a){u=In(a,"No results :(")},m(a,t){mn(a,u,t)},d(a){a&&_(u)}}}function ih(g){let u,a;const t=g[15].noMore,d=oa(t,g,g[14],qt),y=d||yp();return{c(){u=nn("div"),y&&y.c(),this.h()},l(l){u=gn(l,"DIV",{class:!0});var b=on(u);y&&y.l(b),b.forEach(_),this.h()},h(){N(u,"class","infinite-status-prompt")},m(l,b){mn(l,u,b),y&&y.m(u,null),a=!0},p(l,b){d&&d.p&&(!a||b&16384)&&sa(d,t,l,l[14],a?ga(t,l[14],b,sp):ta(l[14]),qt)},i(l){a||(yn(y,l),a=!0)},o(l){Ln(y,l),a=!1},d(l){l&&_(u),y&&y.d(l)}}}function yp(g){let u;return{c(){u=Kn("No more data :)")},l(a){u=In(a,"No more data :)")},m(a,t){mn(a,u,t)},d(a){a&&_(u)}}}function ah(g){let u,a;const t=g[15].error,d=oa(t,g,g[14],Ut),y=d||dp(g);return{c(){u=nn("div"),y&&y.c(),this.h()},l(l){u=gn(l,"DIV",{class:!0});var b=on(u);y&&y.l(b),b.forEach(_),this.h()},h(){N(u,"class","infinite-status-prompt")},m(l,b){mn(l,u,b),y&&y.m(u,null),a=!0},p(l,b){d&&d.p&&(!a||b&16384)&&sa(d,t,l,l[14],a?ga(t,l[14],b,gp):ta(l[14]),Ut)},i(l){a||(yn(y,l),a=!0)},o(l){Ln(y,l),a=!1},d(l){l&&_(u),y&&y.d(l)}}}function dp(g){let u,a,t,d,y,l,b;return{c(){u=Kn(`Oops, something went wrong :( `),a=nn("br"),t=Sn(),d=nn("button"),y=Kn("Retry"),this.h()},l(f){u=In(f,`Oops, something went wrong :( `),a=gn(f,"BR",{}),t=Jn(f),d=gn(f,"BUTTON",{class:!0});var m=on(d);y=In(m,"Retry"),m.forEach(_),this.h()},h(){N(d,"class","btn-try-infinite svelte-o3w4bf")},m(f,m){mn(f,u,m),mn(f,a,m),mn(f,t,m),mn(f,d,m),A(d,y),l||(b=_e(d,"click",g[7]),l=!0)},p:ue,d(f){f&&_(u),f&&_(a),f&&_(t),f&&_(d),l=!1,b()}}}function bp(g){let u,a,t,d,y,l=g[6]&&nh(g),b=g[4]&&eh(g),f=g[3]&&ih(g),m=g[5]&&ah(g);return{c(){u=nn("div"),l&&l.c(),a=Sn(),b&&b.c(),t=Sn(),f&&f.c(),d=Sn(),m&&m.c(),this.h()},l(Y){u=gn(Y,"DIV",{class:!0});var C=on(u);l&&l.l(C),a=Jn(C),b&&b.l(C),t=Jn(C),f&&f.l(C),d=Jn(C),m&&m.l(C),C.forEach(_),this.h()},h(){N(u,"class","infinite-loading-container svelte-o3w4bf")},m(Y,C){mn(Y,u,C),l&&l.m(u,null),A(u,a),b&&b.m(u,null),A(u,t),f&&f.m(u,null),A(u,d),m&&m.m(u,null),g[16](u),y=!0},p(Y,[C]){Y[6]?l?(l.p(Y,C),C&64&&yn(l,1)):(l=nh(Y),l.c(),yn(l,1),l.m(u,a)):l&&(Be(),Ln(l,1,1,()=>{l=null}),Me()),Y[4]?b?(b.p(Y,C),C&16&&yn(b,1)):(b=eh(Y),b.c(),yn(b,1),b.m(u,t)):b&&(Be(),Ln(b,1,1,()=>{b=null}),Me()),Y[3]?f?(f.p(Y,C),C&8&&yn(f,1)):(f=ih(Y),f.c(),yn(f,1),f.m(u,d)):f&&(Be(),Ln(f,1,1,()=>{f=null}),Me()),Y[5]?m?(m.p(Y,C),C&32&&yn(m,1)):(m=ah(Y),m.c(),yn(m,1),m.m(u,null)):m&&(Be(),Ln(m,1,1,()=>{m=null}),Me())},i(Y){y||(yn(l),yn(b),yn(f),yn(m),y=!0)},o(Y){Ln(l),Ln(b),Ln(f),Ln(m),y=!1},d(Y){Y&&_(u),l&&l.d(),b&&b.d(),f&&f.d(),m&&m.d(),g[16](null)}}}const wp=50,cp=1e3,_h=10,fp=[`executed the callback function more than ${_h} times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper rather than automatic searching, you can do this:`,"","
"," ..."," "," ","
","or",'
'," ..."," ",' ',"
"].join(` -`),Du=(()=>{let g=!1;try{const u=Object.defineProperty({},"passive",{get(){return g={passive:!0},!0}});window.addEventListener("testPassive",null,u),window.removeEventListener("testPassive",null,u)}catch{}return g})(),Xu={timers:[],caches:[],throttle(g){this.caches.indexOf(g)===-1&&(this.caches.push(g),this.timers.push(setTimeout(()=>{g(),this.caches.splice(this.caches.indexOf(g),1),this.timers.shift()},wp)))},reset(){this.timers.forEach(g=>{clearTimeout(g)}),this.timers.length=0,this.caches=[]}},uh={isChecked:!1,timer:null,times:0,track(){this.times+=1,clearTimeout(this.timer),this.timer=setTimeout(()=>{this.isChecked=!0},cp),this.times>_h&&(console.error(fp),this.isChecked=!0)}},Tu={key:"_infiniteScrollHeight",getScrollElement(g){return g===window?document.documentElement:g},save(g){const u=this.getScrollElement(g);u[this.key]=u.scrollHeight},restore(g){const u=this.getScrollElement(g);typeof u[this.key]=="number"&&(u.scrollTop=u.scrollHeight-u[this.key]+u.scrollTop),this.remove(u)},remove(g){g[this.key]!==void 0&&delete g[this.key]}};function oh(g){return g&&g.offsetWidth+g.offsetHeight>0}function pp(g,u,a){let t,d,y,l,{$$slots:b={},$$scope:f}=u;const m=hg(),Y={READY:0,LOADING:1,COMPLETE:2,ERROR:3};let{distance:C=100}=u,{spinner:k="default"}=u,{direction:T="bottom"}=u,{forceUseInfiniteWrapper:Q=!1}=u,{identifier:G=+new Date}=u,V=!0,z=Y.READY,H=!1,R,Yn;const U={loaded:async()=>{a(1,V=!1),T==="top"&&(await Ha(),Tu.restore(Yn)),z===Y.LOADING&&(await Ha(),await v(!0))},complete:async()=>{a(12,z=Y.COMPLETE),await Ha(),Yn.removeEventListener("scroll",E,Du)},reset:async()=>{a(12,z=Y.READY),a(1,V=!0),Tu.remove(Yn),Yn.addEventListener("scroll",E,Du),setTimeout(()=>{Xu.reset(),E()},1)},error:()=>{a(12,z=Y.ERROR),Xu.reset()}};function E(B){z===Y.READY&&(B&&B.constructor===Event&&oh(R)?Xu.throttle(v):v())}async function v(B){z!==Y.COMPLETE&&oh(R)&&$()<=C?(a(12,z=Y.LOADING),T==="top"&&(await Ha(),Tu.save(Yn)),m("infinite",U),B&&!Q&&!uh.isChecked&&uh.track()):z===Y.LOADING&&a(12,z=Y.READY)}function $(){let B;if(T==="top")B=typeof Yn.scrollTop=="number"?Yn.scrollTop:Yn.pageYOffset;else{const F=R.getBoundingClientRect().top,P=Yn===window?window.innerHeight:Yn.getBoundingClientRect().bottom;B=F-P}return B}function I(B=R){let F;return typeof Q=="string"&&(F=document.querySelector(Q)),F||(B.tagName==="BODY"?F=window:(!Q&&["scroll","auto"].indexOf(getComputedStyle(B).overflowY)>-1||B.hasAttribute("infinite-wrapper")||B.hasAttribute("data-infinite-wrapper"))&&(F=B)),F||I(B.parentNode)}function ln(){H&&(Yn=I())}function zn(){H&&U.reset()}Sh(async()=>{a(13,H=!0),setTimeout(()=>{E(),Yn.addEventListener("scroll",E,Du)},1)}),Jh(()=>{H&&z!==Y.COMPLETE&&(Xu.reset(),Tu.remove(Yn),Yn.removeEventListener("scroll",E,Du))});function $n(B){Hi[B?"unshift":"push"](()=>{R=B,a(2,R)})}return g.$$set=B=>{"distance"in B&&a(8,C=B.distance),"spinner"in B&&a(0,k=B.spinner),"direction"in B&&a(9,T=B.direction),"forceUseInfiniteWrapper"in B&&a(10,Q=B.forceUseInfiniteWrapper),"identifier"in B&&a(11,G=B.identifier),"$$scope"in B&&a(14,f=B.$$scope)},g.$$.update=()=>{g.$$.dirty&4096&&a(6,t=z===Y.LOADING),g.$$.dirty&4096&&a(5,d=z===Y.ERROR),g.$$.dirty&4098&&a(4,y=z===Y.COMPLETE&&V),g.$$.dirty&4098&&a(3,l=z===Y.COMPLETE&&!V),g.$$.dirty&9216&&ln(),g.$$.dirty&10240&&zn()},[k,V,R,l,y,d,t,v,C,T,Q,G,z,H,f,b,$n]}class xp extends Qa{constructor(u){super();Ma(this,u,pp,bp,ua,{distance:8,spinner:0,direction:9,forceUseInfiniteWrapper:10,identifier:11})}}const jp=g=>({}),gh=g=>({copy:g[2]});function mp(g){let u,a,t;const d=g[4].default,y=oa(d,g,g[3],gh);return{c(){y&&y.c(),u=Sn(),a=nn("textarea"),this.h()},l(l){y&&y.l(l),u=Jn(l),a=gn(l,"TEXTAREA",{class:!0}),on(a).forEach(_),this.h()},h(){a.value=g[0],N(a,"class","svelte-w8w2mp")},m(l,b){y&&y.m(l,b),mn(l,u,b),mn(l,a,b),g[5](a),t=!0},p(l,[b]){y&&y.p&&(!t||b&8)&&sa(y,d,l,l[3],t?ga(d,l[3],b,jp):ta(l[3]),gh),(!t||b&1)&&(a.value=l[0])},i(l){t||(yn(y,l),t=!0)},o(l){Ln(y,l),t=!1},d(l){y&&y.d(l),l&&_(u),l&&_(a),g[5](null)}}}function Yp(g,u,a){let{$$slots:t={},$$scope:d}=u;const y=hg();let{text:l}=u,b;async function f(){b.select(),document.execCommand("Copy"),await Ha(),b.blur(),y("copy")}function m(Y){Hi[Y?"unshift":"push"](()=>{b=Y,a(1,b)})}return g.$$set=Y=>{"text"in Y&&a(0,l=Y.text),"$$scope"in Y&&a(3,d=Y.$$scope)},[l,b,f,d,t,m]}class Op extends Qa{constructor(u){super();Ma(this,u,Yp,mp,ua,{text:0})}}function sh(g,u,a){const t=g.slice();return t[12]=u[a],t[14]=a,t}function th(g){let u,a,t,d,y,l,b,f,m,Y,C,k,T,Q,G,V,z,H=g[5],R=[];for(let v=0;vLn(R[v],1,1,()=>{R[v]=null});let U=!g[3]&&yh(),E=!g[3]&&g[8]&&dh();return{c(){u=nn("span"),a=nn("span"),t=Kn(g[6]),d=Sn(),y=nn("ul");for(let v=0;v{Y[Q]=null}),Me(),y=Y[d],y?y.p(k,T):(y=Y[d]=m[d](k),y.c()),yn(y,1),y.m(u,l))},i(k){b||(yn(y),b=!0)},o(k){Ln(y),b=!1},d(k){k&&_(u),f&&f.d(),Y[d].d()}}}function yh(g){let u,a;return{c(){u=nn("span"),a=Kn(","),this.h()},l(t){u=gn(t,"SPAN",{class:!0});var d=on(u);a=In(d,","),d.forEach(_),this.h()},h(){N(u,"class","comma svelte-gbh3pt")},m(t,d){mn(t,u,d),A(u,a)},d(t){t&&_(u)}}}function dh(g){let u,a;return{c(){u=nn("span"),a=Kn(","),this.h()},l(t){u=gn(t,"SPAN",{class:!0});var d=on(u);a=In(d,","),d.forEach(_),this.h()},h(){N(u,"class","comma svelte-gbh3pt")},m(t,d){mn(t,u,d),A(u,a)},d(t){t&&_(u)}}}function Cp(g){let u,a,t=g[5].length&&th(g);return{c(){t&&t.c(),u=xe()},l(d){t&&t.l(d),u=xe()},m(d,y){t&&t.m(d,y),mn(d,u,y),a=!0},p(d,[y]){d[5].length?t?(t.p(d,y),y&32&&yn(t,1)):(t=th(d),t.c(),yn(t,1),t.m(u.parentNode,u)):t&&(Be(),Ln(t,1,1,()=>{t=null}),Me())},i(d){a||(yn(t),a=!0)},o(d){Ln(t),a=!1},d(d){t&&t.d(d),d&&_(u)}}}const bh="...";function Sp(g,u,a){let{json:t}=u,{depth:d=1/0}=u,{_lvl:y=0}=u,{_last:l=!0}=u;const b=G=>G===null?"null":typeof G;let f,m,Y,C,k;const T=G=>{switch(b(G)){case"string":return`"${G}"`;case"function":return"f () {...}";case"symbol":return G.toString();default:return G}},Q=()=>{a(8,k=!k)};return g.$$set=G=>{"json"in G&&a(0,t=G.json),"depth"in G&&a(1,d=G.depth),"_lvl"in G&&a(2,y=G._lvl),"_last"in G&&a(3,l=G._last)},g.$$.update=()=>{g.$$.dirty&17&&(a(5,f=b(t)==="object"?Object.keys(t):[]),a(4,m=Array.isArray(t)),a(6,Y=m?"[":"{"),a(7,C=m?"]":"}")),g.$$.dirty&6&&a(8,k=d=F?B:""+Array(F+1-O.length).join(P)+B},Yn={s:R,z:function(B){var F=-B.utcOffset(),P=Math.abs(F),O=Math.floor(P/60),M=P%60;return(F<=0?"+":"-")+R(O,2,"0")+":"+R(M,2,"0")},m:function B(F,P){if(F.date()1)return B(sn[0])}else{var wn=F.name;E[wn]=F,M=wn}return!O&&M&&(U=M),M||!O&&U},I=function(B,F){if(v(B))return B.clone();var P=typeof F=="object"?F:{};return P.date=B,P.args=arguments,new zn(P)},ln=Yn;ln.l=$,ln.i=v,ln.w=function(B,F){return I(B,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var zn=function(){function B(P){this.$L=$(P.locale,null,!0),this.parse(P)}var F=B.prototype;return F.parse=function(P){this.$d=function(O){var M=O.date,q=O.utc;if(M===null)return new Date(NaN);if(ln.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var sn=M.match(V);if(sn){var wn=sn[2]-1||0,pn=(sn[7]||"0").substring(0,3);return q?new Date(Date.UTC(sn[1],wn,sn[3]||1,sn[4]||0,sn[5]||0,sn[6]||0,pn)):new Date(sn[1],wn,sn[3]||1,sn[4]||0,sn[5]||0,sn[6]||0,pn)}}return new Date(M)}(P),this.$x=P.x||{},this.init()},F.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},F.$utils=function(){return ln},F.isValid=function(){return this.$d.toString()!==G},F.isSame=function(P,O){var M=I(P);return this.startOf(O)<=M&&M<=this.endOf(O)},F.isAfter=function(P,O){return I(P){let g=!1;try{const u=Object.defineProperty({},"passive",{get(){return g={passive:!0},!0}});window.addEventListener("testPassive",null,u),window.removeEventListener("testPassive",null,u)}catch{}return g})(),Xu={timers:[],caches:[],throttle(g){this.caches.indexOf(g)===-1&&(this.caches.push(g),this.timers.push(setTimeout(()=>{g(),this.caches.splice(this.caches.indexOf(g),1),this.timers.shift()},wp)))},reset(){this.timers.forEach(g=>{clearTimeout(g)}),this.timers.length=0,this.caches=[]}},uh={isChecked:!1,timer:null,times:0,track(){this.times+=1,clearTimeout(this.timer),this.timer=setTimeout(()=>{this.isChecked=!0},cp),this.times>_h&&(console.error(fp),this.isChecked=!0)}},Tu={key:"_infiniteScrollHeight",getScrollElement(g){return g===window?document.documentElement:g},save(g){const u=this.getScrollElement(g);u[this.key]=u.scrollHeight},restore(g){const u=this.getScrollElement(g);typeof u[this.key]=="number"&&(u.scrollTop=u.scrollHeight-u[this.key]+u.scrollTop),this.remove(u)},remove(g){g[this.key]!==void 0&&delete g[this.key]}};function oh(g){return g&&g.offsetWidth+g.offsetHeight>0}function pp(g,u,a){let t,d,y,l,{$$slots:b={},$$scope:f}=u;const m=hg(),Y={READY:0,LOADING:1,COMPLETE:2,ERROR:3};let{distance:C=100}=u,{spinner:k="default"}=u,{direction:T="bottom"}=u,{forceUseInfiniteWrapper:Q=!1}=u,{identifier:G=+new Date}=u,V=!0,z=Y.READY,H=!1,R,Yn;const U={loaded:async()=>{a(1,V=!1),T==="top"&&(await Ha(),Tu.restore(Yn)),z===Y.LOADING&&(await Ha(),await v(!0))},complete:async()=>{a(12,z=Y.COMPLETE),await Ha(),Yn.removeEventListener("scroll",E,Du)},reset:async()=>{a(12,z=Y.READY),a(1,V=!0),Tu.remove(Yn),Yn.addEventListener("scroll",E,Du),setTimeout(()=>{Xu.reset(),E()},1)},error:()=>{a(12,z=Y.ERROR),Xu.reset()}};function E(B){z===Y.READY&&(B&&B.constructor===Event&&oh(R)?Xu.throttle(v):v())}async function v(B){z!==Y.COMPLETE&&oh(R)&&$()<=C?(a(12,z=Y.LOADING),T==="top"&&(await Ha(),Tu.save(Yn)),m("infinite",U),B&&!Q&&!uh.isChecked&&uh.track()):z===Y.LOADING&&a(12,z=Y.READY)}function $(){let B;if(T==="top")B=typeof Yn.scrollTop=="number"?Yn.scrollTop:Yn.pageYOffset;else{const F=R.getBoundingClientRect().top,P=Yn===window?window.innerHeight:Yn.getBoundingClientRect().bottom;B=F-P}return B}function I(B=R){let F;return typeof Q=="string"&&(F=document.querySelector(Q)),F||(B.tagName==="BODY"?F=window:(!Q&&["scroll","auto"].indexOf(getComputedStyle(B).overflowY)>-1||B.hasAttribute("infinite-wrapper")||B.hasAttribute("data-infinite-wrapper"))&&(F=B)),F||I(B.parentNode)}function ln(){H&&(Yn=I())}function zn(){H&&U.reset()}Sh(async()=>{a(13,H=!0),setTimeout(()=>{E(),Yn.addEventListener("scroll",E,Du)},1)}),Jh(()=>{H&&z!==Y.COMPLETE&&(Xu.reset(),Tu.remove(Yn),Yn.removeEventListener("scroll",E,Du))});function $n(B){Hi[B?"unshift":"push"](()=>{R=B,a(2,R)})}return g.$$set=B=>{"distance"in B&&a(8,C=B.distance),"spinner"in B&&a(0,k=B.spinner),"direction"in B&&a(9,T=B.direction),"forceUseInfiniteWrapper"in B&&a(10,Q=B.forceUseInfiniteWrapper),"identifier"in B&&a(11,G=B.identifier),"$$scope"in B&&a(14,f=B.$$scope)},g.$$.update=()=>{g.$$.dirty&4096&&a(6,t=z===Y.LOADING),g.$$.dirty&4096&&a(5,d=z===Y.ERROR),g.$$.dirty&4098&&a(4,y=z===Y.COMPLETE&&V),g.$$.dirty&4098&&a(3,l=z===Y.COMPLETE&&!V),g.$$.dirty&9216&&ln(),g.$$.dirty&10240&&zn()},[k,V,R,l,y,d,t,v,C,T,Q,G,z,H,f,b,$n]}class xp extends Qa{constructor(u){super();Ma(this,u,pp,bp,ua,{distance:8,spinner:0,direction:9,forceUseInfiniteWrapper:10,identifier:11})}}const jp=g=>({}),gh=g=>({copy:g[2]});function mp(g){let u,a,t;const d=g[4].default,y=oa(d,g,g[3],gh);return{c(){y&&y.c(),u=Sn(),a=nn("textarea"),this.h()},l(l){y&&y.l(l),u=Jn(l),a=gn(l,"TEXTAREA",{class:!0}),on(a).forEach(_),this.h()},h(){a.value=g[0],N(a,"class","svelte-w8w2mp")},m(l,b){y&&y.m(l,b),mn(l,u,b),mn(l,a,b),g[5](a),t=!0},p(l,[b]){y&&y.p&&(!t||b&8)&&sa(y,d,l,l[3],t?ga(d,l[3],b,jp):ta(l[3]),gh),(!t||b&1)&&(a.value=l[0])},i(l){t||(yn(y,l),t=!0)},o(l){Ln(y,l),t=!1},d(l){y&&y.d(l),l&&_(u),l&&_(a),g[5](null)}}}function Yp(g,u,a){let{$$slots:t={},$$scope:d}=u;const y=hg();let{text:l}=u,b;async function f(){b.select(),document.execCommand("Copy"),await Ha(),b.blur(),y("copy")}function m(Y){Hi[Y?"unshift":"push"](()=>{b=Y,a(1,b)})}return g.$$set=Y=>{"text"in Y&&a(0,l=Y.text),"$$scope"in Y&&a(3,d=Y.$$scope)},[l,b,f,d,t,m]}class Op extends Qa{constructor(u){super();Ma(this,u,Yp,mp,ua,{text:0})}}function sh(g,u,a){const t=g.slice();return t[12]=u[a],t[14]=a,t}function th(g){let u,a,t,d,y,l,b,f,m,Y,C,k,T,Q,G,V,z,H=g[5],R=[];for(let v=0;vLn(R[v],1,1,()=>{R[v]=null});let U=!g[3]&&yh(),E=!g[3]&&g[8]&&dh();return{c(){u=nn("span"),a=nn("span"),t=Kn(g[6]),d=Sn(),y=nn("ul");for(let v=0;v{Y[Q]=null}),Me(),y=Y[d],y?y.p(k,T):(y=Y[d]=m[d](k),y.c()),yn(y,1),y.m(u,l))},i(k){b||(yn(y),b=!0)},o(k){Ln(y),b=!1},d(k){k&&_(u),f&&f.d(),Y[d].d()}}}function yh(g){let u,a;return{c(){u=nn("span"),a=Kn(","),this.h()},l(t){u=gn(t,"SPAN",{class:!0});var d=on(u);a=In(d,","),d.forEach(_),this.h()},h(){N(u,"class","comma svelte-gbh3pt")},m(t,d){mn(t,u,d),A(u,a)},d(t){t&&_(u)}}}function dh(g){let u,a;return{c(){u=nn("span"),a=Kn(","),this.h()},l(t){u=gn(t,"SPAN",{class:!0});var d=on(u);a=In(d,","),d.forEach(_),this.h()},h(){N(u,"class","comma svelte-gbh3pt")},m(t,d){mn(t,u,d),A(u,a)},d(t){t&&_(u)}}}function Cp(g){let u,a,t=g[5].length&&th(g);return{c(){t&&t.c(),u=xe()},l(d){t&&t.l(d),u=xe()},m(d,y){t&&t.m(d,y),mn(d,u,y),a=!0},p(d,[y]){d[5].length?t?(t.p(d,y),y&32&&yn(t,1)):(t=th(d),t.c(),yn(t,1),t.m(u.parentNode,u)):t&&(Be(),Ln(t,1,1,()=>{t=null}),Me())},i(d){a||(yn(t),a=!0)},o(d){Ln(t),a=!1},d(d){t&&t.d(d),d&&_(u)}}}const bh="...";function Sp(g,u,a){let{json:t}=u,{depth:d=1/0}=u,{_lvl:y=0}=u,{_last:l=!0}=u;const b=G=>G===null?"null":typeof G;let f,m,Y,C,k;const T=G=>{switch(b(G)){case"string":return`"${G}"`;case"function":return"f () {...}";case"symbol":return G.toString();default:return G}},Q=()=>{a(8,k=!k)};return g.$$set=G=>{"json"in G&&a(0,t=G.json),"depth"in G&&a(1,d=G.depth),"_lvl"in G&&a(2,y=G._lvl),"_last"in G&&a(3,l=G._last)},g.$$.update=()=>{g.$$.dirty&17&&(a(5,f=b(t)==="object"?Object.keys(t):[]),a(4,m=Array.isArray(t)),a(6,Y=m?"[":"{"),a(7,C=m?"]":"}")),g.$$.dirty&6&&a(8,k=d=F?B:""+Array(F+1-O.length).join(P)+B},Yn={s:R,z:function(B){var F=-B.utcOffset(),P=Math.abs(F),O=Math.floor(P/60),M=P%60;return(F<=0?"+":"-")+R(O,2,"0")+":"+R(M,2,"0")},m:function B(F,P){if(F.date()1)return B(sn[0])}else{var wn=F.name;E[wn]=F,M=wn}return!O&&M&&(U=M),M||!O&&U},I=function(B,F){if(v(B))return B.clone();var P=typeof F=="object"?F:{};return P.date=B,P.args=arguments,new zn(P)},ln=Yn;ln.l=$,ln.i=v,ln.w=function(B,F){return I(B,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var zn=function(){function B(P){this.$L=$(P.locale,null,!0),this.parse(P)}var F=B.prototype;return F.parse=function(P){this.$d=function(O){var M=O.date,q=O.utc;if(M===null)return new Date(NaN);if(ln.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var sn=M.match(V);if(sn){var wn=sn[2]-1||0,pn=(sn[7]||"0").substring(0,3);return q?new Date(Date.UTC(sn[1],wn,sn[3]||1,sn[4]||0,sn[5]||0,sn[6]||0,pn)):new Date(sn[1],wn,sn[3]||1,sn[4]||0,sn[5]||0,sn[6]||0,pn)}}return new Date(M)}(P),this.$x=P.x||{},this.init()},F.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},F.$utils=function(){return ln},F.isValid=function(){return this.$d.toString()!==G},F.isSame=function(P,O){var M=I(P);return this.startOf(O)<=M&&M<=this.endOf(O)},F.isAfter=function(P,O){return I(P){"status"in s&&t(0,a=s.status),"error"in s&&t(1,f=s.error)},[a,f]}class G extends w{constructor(l){super();y(this,l,B,A,z,{status:0,error:1})}}export{G as default,F as load}; +import{S as w,i as y,s as z,e as E,t as v,c as d,a as b,h as P,d as o,g as u,H as R,j as H,k as N,l as q,m as S,L as C}from"./chunks/vendor-e06f8fa1.js";function L(r){let l,t=r[1].frame+"",a;return{c(){l=E("pre"),a=v(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].frame+"")&&H(a,t)},d(f){f&&o(l)}}}function h(r){let l,t=r[1].stack+"",a;return{c(){l=E("pre"),a=v(t)},l(f){l=d(f,"PRE",{});var s=b(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].stack+"")&&H(a,t)},d(f){f&&o(l)}}}function A(r){let l,t,a,f,s=r[1].message+"",c,k,n,p,i=r[1].frame&&L(r),_=r[1].stack&&h(r);return{c(){l=E("h1"),t=v(r[0]),a=N(),f=E("pre"),c=v(s),k=N(),i&&i.c(),n=N(),_&&_.c(),p=q()},l(e){l=d(e,"H1",{});var m=b(l);t=P(m,r[0]),m.forEach(o),a=S(e),f=d(e,"PRE",{});var j=b(f);c=P(j,s),j.forEach(o),k=S(e),i&&i.l(e),n=S(e),_&&_.l(e),p=q()},m(e,m){u(e,l,m),R(l,t),u(e,a,m),u(e,f,m),R(f,c),u(e,k,m),i&&i.m(e,m),u(e,n,m),_&&_.m(e,m),u(e,p,m)},p(e,[m]){m&1&&H(t,e[0]),m&2&&s!==(s=e[1].message+"")&&H(c,s),e[1].frame?i?i.p(e,m):(i=L(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),e[1].stack?_?_.p(e,m):(_=h(e),_.c(),_.m(p.parentNode,p)):_&&(_.d(1),_=null)},i:C,o:C,d(e){e&&o(l),e&&o(a),e&&o(f),e&&o(k),i&&i.d(e),e&&o(n),_&&_.d(e),e&&o(p)}}}function F({error:r,status:l}){return{props:{error:r,status:l}}}function B(r,l,t){let{status:a}=l,{error:f}=l;return r.$$set=s=>{"status"in s&&t(0,a=s.status),"error"in s&&t(1,f=s.error)},[a,f]}class G extends w{constructor(l){super();y(this,l,B,A,z,{status:0,error:1})}}export{G as default,F as load}; diff --git a/docs/_app/error.svelte-eafc136f.js.br b/docs/_app/error.svelte-eafc136f.js.br new file mode 100644 index 000000000..4da98c7c4 Binary files /dev/null and b/docs/_app/error.svelte-eafc136f.js.br differ diff --git a/docs/_app/error.svelte-eafc136f.js.gz b/docs/_app/error.svelte-eafc136f.js.gz new file mode 100644 index 000000000..3fa961b1b Binary files /dev/null and b/docs/_app/error.svelte-eafc136f.js.gz differ diff --git a/docs/_app/manifest.json b/docs/_app/manifest.json index c995f9eca..c9f1f9ca9 100644 --- a/docs/_app/manifest.json +++ b/docs/_app/manifest.json @@ -1,10 +1,10 @@ { ".svelte-kit/runtime/client/start.js": { - "file": "start-d78c08c2.js", + "file": "start-d43d765c.js", "src": ".svelte-kit/runtime/client/start.js", "isEntry": true, "imports": [ - "_vendor-585ed223.js" + "_vendor-e06f8fa1.js" ], "dynamicImports": [ "src/routes/__layout.svelte", @@ -13,50 +13,50 @@ ] }, "src/routes/__layout.svelte": { - "file": "pages/__layout.svelte-3c12cae0.js", + "file": "pages/__layout.svelte-8a4b19fb.js", "src": "src/routes/__layout.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ - "_vendor-585ed223.js", - "_store-2c58625c.js" + "_vendor-e06f8fa1.js", + "_store-93a026ed.js" ], "css": [ "assets/pages/__layout.svelte-0f0f9924.css" ] }, ".svelte-kit/runtime/components/error.svelte": { - "file": "error.svelte-7e306514.js", + "file": "error.svelte-eafc136f.js", "src": ".svelte-kit/runtime/components/error.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ - "_vendor-585ed223.js" + "_vendor-e06f8fa1.js" ] }, "src/routes/index.svelte": { - "file": "pages/index.svelte-70a5d121.js", + "file": "pages/index.svelte-925f19ed.js", "src": "src/routes/index.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ - "_vendor-585ed223.js", - "_store-2c58625c.js" + "_vendor-e06f8fa1.js", + "_store-93a026ed.js" ], "css": [ "assets/pages/index.svelte-fade4f59.css" ] }, - "_vendor-585ed223.js": { - "file": "chunks/vendor-585ed223.js", + "_vendor-e06f8fa1.js": { + "file": "chunks/vendor-e06f8fa1.js", "css": [ "assets/vendor-c8b32335.css" ] }, - "_store-2c58625c.js": { - "file": "chunks/store-2c58625c.js", + "_store-93a026ed.js": { + "file": "chunks/store-93a026ed.js", "imports": [ - "_vendor-585ed223.js" + "_vendor-e06f8fa1.js" ] } } \ No newline at end of file diff --git a/docs/_app/manifest.json.br b/docs/_app/manifest.json.br index 1674ab5b1..89a1a78e1 100644 Binary files a/docs/_app/manifest.json.br and b/docs/_app/manifest.json.br differ diff --git a/docs/_app/manifest.json.gz b/docs/_app/manifest.json.gz index 533bef5e5..fdb035666 100644 Binary files a/docs/_app/manifest.json.gz and b/docs/_app/manifest.json.gz differ diff --git a/docs/_app/pages/__layout.svelte-3c12cae0.js b/docs/_app/pages/__layout.svelte-3c12cae0.js deleted file mode 100644 index 14570656b..000000000 --- a/docs/_app/pages/__layout.svelte-3c12cae0.js +++ /dev/null @@ -1,19 +0,0 @@ -import{S as Oe,i as Ge,s as Re,e as h,t as X,k as V,F as w,c as f,a as l,h as J,d as a,m as B,G as _,b as e,g as se,H as t,I as ot,J as fe,K as ut,L as ht,M as nt,N as ct,O as ft,w as De,x as He,y as Te,q as K,o as oe,B as Ne,P as j,n as mt,p as gt,v as pt,Q as vt,R as bt,T as wt,f as dt,U as _t,V as xt,W as kt,X as yt}from"../chunks/vendor-585ed223.js";import{s as Ce,q as qe,h as Et}from"../chunks/store-2c58625c.js";function $t(i){let s,d,r,o,p,b,m,g,v,k,c,$,y;return{c(){s=h("form"),d=h("div"),r=h("label"),o=X("Search"),p=V(),b=h("div"),m=h("div"),g=w("svg"),v=w("path"),k=V(),c=h("input"),this.h()},l(M){s=f(M,"FORM",{autocomplete:!0,class:!0});var n=l(s);d=f(n,"DIV",{class:!0});var u=l(d);r=f(u,"LABEL",{for:!0,class:!0});var z=l(r);o=J(z,"Search"),z.forEach(a),p=B(u),b=f(u,"DIV",{class:!0});var E=l(b);m=f(E,"DIV",{class:!0});var N=l(m);g=_(N,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var R=l(g);v=_(R,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),l(v).forEach(a),R.forEach(a),N.forEach(a),k=B(E),c=f(E,"INPUT",{type:!0,id:!0,class:!0,placeholder:!0}),E.forEach(a),u.forEach(a),n.forEach(a),this.h()},h(){e(r,"for","search-input"),e(r,"class","sr-only"),e(v,"fill-rule","evenodd"),e(v,"d","M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"),e(v,"clip-rule","evenodd"),e(g,"class","w-4 h-4 text-gray-500 dark:text-gray-400"),e(g,"fill","currentColor"),e(g,"viewBox","0 0 20 20"),e(g,"xmlns","http://www.w3.org/2000/svg"),e(m,"class","flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none"),e(c,"type","search"),e(c,"id","search-input"),e(c,"class","bg-gray-50 border border-gray-300 text-gray-900 outline-blue-500 text-sm rounded-md block w-full pl-9 p-1.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"),e(c,"placeholder","Search"),e(b,"class","relative w-full"),e(d,"class","w-full"),e(s,"autocomplete","off"),e(s,"class","w-full")},m(M,n){se(M,s,n),t(s,d),t(d,r),t(r,o),t(d,p),t(d,b),t(b,m),t(m,g),t(g,v),t(b,k),t(b,c),ot(c,i[0]),$||(y=[fe(c,"input",i[1]),fe(s,"submit",ut(function(){ht(Ce(i[0]))&&Ce(i[0]).apply(this,arguments)}))],$=!0)},p(M,[n]){i=M,n&1&&ot(c,i[0])},i:nt,o:nt,d(M){M&&a(s),$=!1,ct(y)}}}function zt(i,s,d){let r;ft(i,qe,p=>d(0,r=p));function o(){r=this.value,qe.set(r)}return[r,o]}class Mt extends Oe{constructor(s){super();Ge(this,s,zt,$t,Re,{})}}function it(i){let s,d;return s=new Mt({}),{c(){De(s.$$.fragment)},l(r){He(s.$$.fragment,r)},m(r,o){Te(s,r,o),d=!0},i(r){d||(K(s.$$.fragment,r),d=!0)},o(r){oe(s.$$.fragment,r),d=!1},d(r){Ne(s,r)}}}function St(i){let s,d,r,o,p,b,m,g,v,k,c,$,y,M,n,u,z,E,N,R,C,be,W,A,Y,ne,we,de,q,_e,Z,I,ee,ie,xe,ce,O,ke,te,L,ae,ue,ye,P,S,he,Ee,D,Q,$e,G,H,re,me,ze,Ue,x=i[0]&&it();return{c(){s=h("nav"),d=h("div"),r=h("div"),o=h("a"),p=h("span"),b=X("/iptv-org"),m=V(),x&&x.c(),g=V(),v=h("div"),k=h("div"),c=h("ul"),$=h("li"),y=h("a"),M=X("Playlists"),n=h("span"),u=w("svg"),z=w("path"),E=w("path"),N=V(),R=h("li"),C=h("a"),be=X("EPG"),W=h("span"),A=w("svg"),Y=w("path"),ne=w("path"),we=V(),de=h("li"),q=h("a"),_e=X("Database"),Z=h("span"),I=w("svg"),ee=w("path"),ie=w("path"),xe=V(),ce=h("li"),O=h("a"),ke=X("API"),te=h("span"),L=w("svg"),ae=w("path"),ue=w("path"),ye=V(),P=h("button"),S=w("svg"),he=w("path"),Ee=V(),D=w("svg"),Q=w("path"),$e=V(),G=h("a"),H=w("svg"),re=w("path"),this.h()},l(T){s=f(T,"NAV",{class:!0});var U=l(s);d=f(U,"DIV",{class:!0});var ge=l(d);r=f(ge,"DIV",{class:!0});var pe=l(r);o=f(pe,"A",{href:!0,class:!0});var Fe=l(o);p=f(Fe,"SPAN",{class:!0});var je=l(p);b=J(je,"/iptv-org"),je.forEach(a),Fe.forEach(a),m=B(pe),x&&x.l(pe),pe.forEach(a),g=B(ge),v=f(ge,"DIV",{class:!0});var le=l(v);k=f(le,"DIV",{class:!0});var Qe=l(k);c=f(Qe,"UL",{class:!0});var F=l(c);$=f(F,"LI",{});var Xe=l($);y=f(Xe,"A",{href:!0,class:!0,target:!0});var Me=l(y);M=J(Me,"Playlists"),n=f(Me,"SPAN",{class:!0});var Je=l(n);u=_(Je,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,focusable:!0,viewBox:!0});var Se=l(u);z=_(Se,"path",{d:!0,fill:!0}),l(z).forEach(a),E=_(Se,"path",{d:!0}),l(E).forEach(a),Se.forEach(a),Je.forEach(a),Me.forEach(a),Xe.forEach(a),N=B(F),R=f(F,"LI",{});var Ke=l(R);C=f(Ke,"A",{href:!0,class:!0,target:!0});var Ve=l(C);be=J(Ve,"EPG"),W=f(Ve,"SPAN",{class:!0});var We=l(W);A=_(We,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,focusable:!0,viewBox:!0});var Be=l(A);Y=_(Be,"path",{d:!0,fill:!0}),l(Y).forEach(a),ne=_(Be,"path",{d:!0}),l(ne).forEach(a),Be.forEach(a),We.forEach(a),Ve.forEach(a),Ke.forEach(a),we=B(F),de=f(F,"LI",{});var Ye=l(de);q=f(Ye,"A",{href:!0,class:!0,target:!0});var Ae=l(q);_e=J(Ae,"Database"),Z=f(Ae,"SPAN",{class:!0});var Ze=l(Z);I=_(Ze,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,focusable:!0,viewBox:!0});var Ie=l(I);ee=_(Ie,"path",{d:!0,fill:!0}),l(ee).forEach(a),ie=_(Ie,"path",{d:!0}),l(ie).forEach(a),Ie.forEach(a),Ze.forEach(a),Ae.forEach(a),Ye.forEach(a),xe=B(F),ce=f(F,"LI",{});var et=l(ce);O=f(et,"A",{href:!0,class:!0,target:!0});var Le=l(O);ke=J(Le,"API"),te=f(Le,"SPAN",{class:!0});var tt=l(te);L=_(tt,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,focusable:!0,viewBox:!0});var Pe=l(L);ae=_(Pe,"path",{d:!0,fill:!0}),l(ae).forEach(a),ue=_(Pe,"path",{d:!0}),l(ue).forEach(a),Pe.forEach(a),tt.forEach(a),Le.forEach(a),et.forEach(a),F.forEach(a),Qe.forEach(a),ye=B(le),P=f(le,"BUTTON",{type:!0,class:!0,"aria-label":!0});var ve=l(P);S=_(ve,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0,"aria-hidden":!0,focusable:!0,role:!0});var at=l(S);he=_(at,"path",{d:!0}),l(he).forEach(a),at.forEach(a),Ee=B(ve),D=_(ve,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var rt=l(D);Q=_(rt,"path",{d:!0,"fill-rule":!0,"clip-rule":!0}),l(Q).forEach(a),rt.forEach(a),ve.forEach(a),$e=B(le),G=f(le,"A",{href:!0,class:!0,target:!0,"aria-label":!0});var lt=l(G);H=_(lt,"svg",{class:!0,"aria-hidden":!0,focusable:!0,role:!0,xmlns:!0,viewBox:!0});var st=l(H);re=_(st,"path",{fill:!0,d:!0}),l(re).forEach(a),st.forEach(a),lt.forEach(a),le.forEach(a),ge.forEach(a),U.forEach(a),this.h()},h(){e(p,"class","text-[1.15rem] text-[#24292f] self-center font-semibold whitespace-nowrap dark:text-white font-mono"),e(o,"href","/"),e(o,"class","flex mr-6"),e(r,"class","flex flex-start items-center basis-[24rem] shrink"),e(z,"d","M0 0h24v24H0V0z"),e(z,"fill","none"),e(E,"d","M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"),e(u,"class","w-3 h-3 fill-gray-400"),e(u,"xmlns","http://www.w3.org/2000/svg"),e(u,"aria-hidden","true"),e(u,"focusable","false"),e(u,"viewBox","0 0 24 24"),e(n,"class","inline-flex items-center p-1 mr-2 text-sm font-semibold text-gray-400 rounded-full"),e(y,"href","https://github.com/iptv-org/iptv"),e(y,"class","block py-2 pr-4 pl-3 text-sm text-gray-700 border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"),e(y,"target","_blank"),e(Y,"d","M0 0h24v24H0V0z"),e(Y,"fill","none"),e(ne,"d","M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"),e(A,"class","w-3 h-3 fill-gray-400"),e(A,"xmlns","http://www.w3.org/2000/svg"),e(A,"aria-hidden","true"),e(A,"focusable","false"),e(A,"viewBox","0 0 24 24"),e(W,"class","inline-flex items-center p-1 mr-2 text-sm font-semibold text-gray-400 rounded-full"),e(C,"href","https://github.com/iptv-org/epg"),e(C,"class","block py-2 pr-4 pl-3 text-sm text-gray-700 border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"),e(C,"target","_blank"),e(ee,"d","M0 0h24v24H0V0z"),e(ee,"fill","none"),e(ie,"d","M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"),e(I,"class","w-3 h-3 fill-gray-400"),e(I,"xmlns","http://www.w3.org/2000/svg"),e(I,"aria-hidden","true"),e(I,"focusable","false"),e(I,"viewBox","0 0 24 24"),e(Z,"class","inline-flex items-center p-1 mr-2 text-sm font-semibold text-gray-400 rounded-full"),e(q,"href","https://github.com/iptv-org/database"),e(q,"class","block py-2 pr-4 pl-3 text-sm text-gray-700 border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"),e(q,"target","_blank"),e(ae,"d","M0 0h24v24H0V0z"),e(ae,"fill","none"),e(ue,"d","M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"),e(L,"class","w-3 h-3 fill-gray-400"),e(L,"xmlns","http://www.w3.org/2000/svg"),e(L,"aria-hidden","true"),e(L,"focusable","false"),e(L,"viewBox","0 0 24 24"),e(te,"class","inline-flex items-center p-1 mr-2 text-sm font-semibold text-gray-400 rounded-full"),e(O,"href","https://github.com/iptv-org/api"),e(O,"class","block py-2 pr-4 pl-3 text-sm text-gray-700 border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"),e(O,"target","_blank"),e(c,"class","hidden lg:flex space-x-7"),e(k,"class","md:inline-block md:w-auto pr-4"),e(he,"d","M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"),e(S,"class","w-5 h-5"),e(S,"fill","currentColor"),e(S,"viewBox","0 0 20 20"),e(S,"xmlns","http://www.w3.org/2000/svg"),e(S,"aria-hidden","true"),e(S,"focusable","false"),e(S,"role","img"),j(S,"hidden",i[1]),e(Q,"d","M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"),e(Q,"fill-rule","evenodd"),e(Q,"clip-rule","evenodd"),e(D,"class","w-5 h-5"),e(D,"fill","currentColor"),e(D,"viewBox","0 0 20 20"),e(D,"xmlns","http://www.w3.org/2000/svg"),j(D,"hidden",!i[1]),e(P,"type","button"),e(P,"class","text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-full text-sm p-2.5"),e(P,"aria-label","Toggle Dark Mode"),e(re,"fill","currentColor"),e(re,"d","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"),e(H,"class","w-5 h-5"),e(H,"aria-hidden","true"),e(H,"focusable","false"),e(H,"role","img"),e(H,"xmlns","http://www.w3.org/2000/svg"),e(H,"viewBox","0 0 496 512"),e(G,"href","https://github.com/iptv-org/"),e(G,"class","inline-flex text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-full text-sm p-2.5 ml-1"),e(G,"target","_blank"),e(G,"aria-label","GitHub"),e(v,"class","flex flex-end items-center"),e(d,"class","container flex justify-between items-center max-w-6xl mx-auto px-4 sm:px-2"),e(s,"class","bg-white border-b border-gray-200 px-2 sm:px-4 py-2.5 dark:border-gray-600 dark:bg-gray-800")},m(T,U){se(T,s,U),t(s,d),t(d,r),t(r,o),t(o,p),t(p,b),t(r,m),x&&x.m(r,null),t(d,g),t(d,v),t(v,k),t(k,c),t(c,$),t($,y),t(y,M),t(y,n),t(n,u),t(u,z),t(u,E),t(c,N),t(c,R),t(R,C),t(C,be),t(C,W),t(W,A),t(A,Y),t(A,ne),t(c,we),t(c,de),t(de,q),t(q,_e),t(q,Z),t(Z,I),t(I,ee),t(I,ie),t(c,xe),t(c,ce),t(ce,O),t(O,ke),t(O,te),t(te,L),t(L,ae),t(L,ue),t(v,ye),t(v,P),t(P,S),t(S,he),t(P,Ee),t(P,D),t(D,Q),t(v,$e),t(v,G),t(G,H),t(H,re),me=!0,ze||(Ue=[fe(o,"click",i[4]),fe(P,"click",i[2])],ze=!0)},p(T,[U]){T[0]?x?U&1&&K(x,1):(x=it(),x.c(),K(x,1),x.m(r,null)):x&&(mt(),oe(x,1,1,()=>{x=null}),gt()),U&2&&j(S,"hidden",T[1]),U&2&&j(D,"hidden",!T[1])},i(T){me||(K(x),me=!0)},o(T){oe(x),me=!1},d(T){T&&a(s),x&&x.d(),ze=!1,ct(Ue)}}}function Vt(i,s,d){let{withSearch:r=!1}=s,o=!1;function p(){(localStorage.theme||"light")==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches?(d(1,o=!1),document.documentElement.classList.remove("dark"),localStorage.theme="light"):(d(1,o=!0),document.documentElement.classList.add("dark"),localStorage.theme="dark")}function b(){document.body.scrollIntoView(),qe.set(""),Et.set(!1),Ce("")}pt(()=>{(localStorage.theme||"light")==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches?d(1,o=!0):d(1,o=!1)});const m=()=>{b()};return i.$$set=g=>{"withSearch"in g&&d(0,r=g.withSearch)},[r,o,p,b,m]}class Bt extends Oe{constructor(s){super();Ge(this,s,Vt,St,Re,{withSearch:0})}}function At(i){let s;const d=i[1].default,r=_t(d,i,i[3],null);return{c(){r&&r.c()},l(o){r&&r.l(o)},m(o,p){r&&r.m(o,p),s=!0},p(o,p){r&&r.p&&(!s||p&8)&&xt(r,d,o,o[3],s?yt(d,o[3],p,null):kt(o[3]),null)},i(o){s||(K(r,o),s=!0)},o(o){oe(r,o),s=!1},d(o){r&&r.d(o)}}}function It(i){let s=!1,d=()=>{s=!1},r,o,p,b,m,g,v,k,c,$,y,M;return vt(i[2]),g=new Bt({props:{withSearch:i[0]>150}}),c=new bt({props:{unstyled:!0,classBg:"fixed top-0 left-0 z-40 w-screen h-screen flex flex-col bg-black/[.7] overflow-y-scroll",closeButton:!1,$$slots:{default:[At]},$$scope:{ctx:i}}}),{c(){o=h("script"),p=X(`if (document) { - let mode = localStorage.theme || 'light' - if (mode === 'dark' || window.matchMedia('(prefers-color-scheme: dark)').matches) { - document.documentElement.classList.add('dark') - localStorage.theme = 'dark' - } else { - document.documentElement.classList.remove('dark') - localStorage.theme = 'light' - } - }`),b=V(),m=h("header"),De(g.$$.fragment),v=V(),k=h("main"),De(c.$$.fragment),this.h()},l(n){const u=wt('[data-svelte="svelte-bjnlvt"]',document.head);o=f(u,"SCRIPT",{});var z=l(o);p=J(z,`if (document) { - let mode = localStorage.theme || 'light' - if (mode === 'dark' || window.matchMedia('(prefers-color-scheme: dark)').matches) { - document.documentElement.classList.add('dark') - localStorage.theme = 'dark' - } else { - document.documentElement.classList.remove('dark') - localStorage.theme = 'light' - } - }`),z.forEach(a),u.forEach(a),b=B(n),m=f(n,"HEADER",{class:!0,style:!0});var E=l(m);He(g.$$.fragment,E),E.forEach(a),v=B(n),k=f(n,"MAIN",{class:!0});var N=l(k);He(c.$$.fragment,N),N.forEach(a),this.h()},h(){e(m,"class","z-40 w-full min-w-[360px]"),dt(m,"top",(i[0]>150&&i[0]<=210?i[0]-210:0)+"px"),j(m,"absolute",i[0]<=150),j(m,"fixed",i[0]>150),e(k,"class","bg-slate-50 dark:bg-[#1d232e] min-h-screen pt-10 min-w-[360px]")},m(n,u){t(document.head,o),t(o,p),se(n,b,u),se(n,m,u),Te(g,m,null),se(n,v,u),se(n,k,u),Te(c,k,null),$=!0,y||(M=fe(window,"scroll",()=>{s=!0,clearTimeout(r),r=setTimeout(d,100),i[2]()}),y=!0)},p(n,[u]){u&1&&!s&&(s=!0,clearTimeout(r),scrollTo(window.pageXOffset,n[0]),r=setTimeout(d,100));const z={};u&1&&(z.withSearch=n[0]>150),g.$set(z),(!$||u&1)&&dt(m,"top",(n[0]>150&&n[0]<=210?n[0]-210:0)+"px"),u&1&&j(m,"absolute",n[0]<=150),u&1&&j(m,"fixed",n[0]>150);const E={};u&8&&(E.$$scope={dirty:u,ctx:n}),c.$set(E)},i(n){$||(K(g.$$.fragment,n),K(c.$$.fragment,n),$=!0)},o(n){oe(g.$$.fragment,n),oe(c.$$.fragment,n),$=!1},d(n){a(o),n&&a(b),n&&a(m),Ne(g),n&&a(v),n&&a(k),Ne(c),y=!1,M()}}}function Lt(i,s,d){let{$$slots:r={},$$scope:o}=s,p=0;function b(){d(0,p=window.pageYOffset)}return i.$$set=m=>{"$$scope"in m&&d(3,o=m.$$scope)},[p,r,b,o]}class Ht extends Oe{constructor(s){super();Ge(this,s,Lt,It,Re,{})}}export{Ht as default}; diff --git a/docs/_app/pages/__layout.svelte-3c12cae0.js.br b/docs/_app/pages/__layout.svelte-3c12cae0.js.br deleted file mode 100644 index 219dada8b..000000000 Binary files a/docs/_app/pages/__layout.svelte-3c12cae0.js.br and /dev/null differ diff --git a/docs/_app/pages/__layout.svelte-3c12cae0.js.gz b/docs/_app/pages/__layout.svelte-3c12cae0.js.gz deleted file mode 100644 index 994f2afb8..000000000 Binary files a/docs/_app/pages/__layout.svelte-3c12cae0.js.gz and /dev/null differ diff --git a/docs/_app/pages/__layout.svelte-8a4b19fb.js b/docs/_app/pages/__layout.svelte-8a4b19fb.js new file mode 100644 index 000000000..b6d6b3b9f --- /dev/null +++ b/docs/_app/pages/__layout.svelte-8a4b19fb.js @@ -0,0 +1,19 @@ +import{S as qe,i as Oe,s as Ge,e as h,t as J,k as V,F as w,c as f,a as l,h as K,d as r,m as B,G as _,b as e,g as se,H as t,I as st,J as fe,K as ut,L as ot,M as it,N as ht,w as De,x as He,y as Te,q as W,o as oe,B as Ne,O as j,n as ft,p as mt,v as gt,P as pt,Q as vt,R as bt,f as nt,T as wt,U as _t,V as xt,W as kt}from"../chunks/vendor-e06f8fa1.js";import{q as Ce,s as yt,a as ct,h as Et}from"../chunks/store-93a026ed.js";function $t(i){let s,d,a,o,p,v,m,g,b,k,c,$,y;return{c(){s=h("form"),d=h("div"),a=h("label"),o=J("Search"),p=V(),v=h("div"),m=h("div"),g=w("svg"),b=w("path"),k=V(),c=h("input"),this.h()},l(M){s=f(M,"FORM",{autocomplete:!0,class:!0});var n=l(s);d=f(n,"DIV",{class:!0});var u=l(d);a=f(u,"LABEL",{for:!0,class:!0});var z=l(a);o=K(z,"Search"),z.forEach(r),p=B(u),v=f(u,"DIV",{class:!0});var E=l(v);m=f(E,"DIV",{class:!0});var N=l(m);g=_(N,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var R=l(g);b=_(R,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),l(b).forEach(r),R.forEach(r),N.forEach(r),k=B(E),c=f(E,"INPUT",{type:!0,id:!0,class:!0,placeholder:!0}),E.forEach(r),u.forEach(r),n.forEach(r),this.h()},h(){e(a,"for","search-input"),e(a,"class","sr-only"),e(b,"fill-rule","evenodd"),e(b,"d","M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"),e(b,"clip-rule","evenodd"),e(g,"class","w-4 h-4 text-gray-500 dark:text-gray-400"),e(g,"fill","currentColor"),e(g,"viewBox","0 0 20 20"),e(g,"xmlns","http://www.w3.org/2000/svg"),e(m,"class","flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none"),e(c,"type","search"),e(c,"id","search-input"),e(c,"class","bg-gray-50 border border-gray-300 text-gray-900 outline-blue-500 text-sm rounded-md block w-full pl-9 p-1.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"),e(c,"placeholder","Search"),e(v,"class","relative w-full"),e(d,"class","w-full"),e(s,"autocomplete","off"),e(s,"class","w-full")},m(M,n){se(M,s,n),t(s,d),t(d,a),t(a,o),t(d,p),t(d,v),t(v,m),t(m,g),t(g,b),t(v,k),t(v,c),st(c,i[0]),$||(y=[fe(c,"input",i[2]),fe(s,"submit",ut(i[1]))],$=!0)},p(M,[n]){n&1&&st(c,M[0])},i:ot,o:ot,d(M){M&&r(s),$=!1,it(y)}}}function zt(i,s,d){let a;ht(i,Ce,v=>d(0,a=v));function o(){yt("q",a),ct(a)}function p(){a=this.value,Ce.set(a)}return[a,o,p]}class Mt extends qe{constructor(s){super();Oe(this,s,zt,$t,Ge,{})}}function dt(i){let s,d;return s=new Mt({}),{c(){De(s.$$.fragment)},l(a){He(s.$$.fragment,a)},m(a,o){Te(s,a,o),d=!0},i(a){d||(W(s.$$.fragment,a),d=!0)},o(a){oe(s.$$.fragment,a),d=!1},d(a){Ne(s,a)}}}function St(i){let s,d,a,o,p,v,m,g,b,k,c,$,y,M,n,u,z,E,N,R,C,be,X,A,Y,ne,we,de,q,_e,Z,I,ee,ie,xe,ce,O,ke,te,L,ae,ue,ye,P,S,he,Ee,D,Q,$e,G,H,re,me,ze,Re,x=i[0]&&dt();return{c(){s=h("nav"),d=h("div"),a=h("div"),o=h("a"),p=h("span"),v=J("/iptv-org"),m=V(),x&&x.c(),g=V(),b=h("div"),k=h("div"),c=h("ul"),$=h("li"),y=h("a"),M=J("Playlists"),n=h("span"),u=w("svg"),z=w("path"),E=w("path"),N=V(),R=h("li"),C=h("a"),be=J("EPG"),X=h("span"),A=w("svg"),Y=w("path"),ne=w("path"),we=V(),de=h("li"),q=h("a"),_e=J("Database"),Z=h("span"),I=w("svg"),ee=w("path"),ie=w("path"),xe=V(),ce=h("li"),O=h("a"),ke=J("API"),te=h("span"),L=w("svg"),ae=w("path"),ue=w("path"),ye=V(),P=h("button"),S=w("svg"),he=w("path"),Ee=V(),D=w("svg"),Q=w("path"),$e=V(),G=h("a"),H=w("svg"),re=w("path"),this.h()},l(T){s=f(T,"NAV",{class:!0});var U=l(s);d=f(U,"DIV",{class:!0});var ge=l(d);a=f(ge,"DIV",{class:!0});var pe=l(a);o=f(pe,"A",{href:!0,class:!0});var Ue=l(o);p=f(Ue,"SPAN",{class:!0});var Fe=l(p);v=K(Fe,"/iptv-org"),Fe.forEach(r),Ue.forEach(r),m=B(pe),x&&x.l(pe),pe.forEach(r),g=B(ge),b=f(ge,"DIV",{class:!0});var le=l(b);k=f(le,"DIV",{class:!0});var je=l(k);c=f(je,"UL",{class:!0});var F=l(c);$=f(F,"LI",{});var Qe=l($);y=f(Qe,"A",{href:!0,class:!0,target:!0});var Me=l(y);M=K(Me,"Playlists"),n=f(Me,"SPAN",{class:!0});var Je=l(n);u=_(Je,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,focusable:!0,viewBox:!0});var Se=l(u);z=_(Se,"path",{d:!0,fill:!0}),l(z).forEach(r),E=_(Se,"path",{d:!0}),l(E).forEach(r),Se.forEach(r),Je.forEach(r),Me.forEach(r),Qe.forEach(r),N=B(F),R=f(F,"LI",{});var Ke=l(R);C=f(Ke,"A",{href:!0,class:!0,target:!0});var Ve=l(C);be=K(Ve,"EPG"),X=f(Ve,"SPAN",{class:!0});var We=l(X);A=_(We,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,focusable:!0,viewBox:!0});var Be=l(A);Y=_(Be,"path",{d:!0,fill:!0}),l(Y).forEach(r),ne=_(Be,"path",{d:!0}),l(ne).forEach(r),Be.forEach(r),We.forEach(r),Ve.forEach(r),Ke.forEach(r),we=B(F),de=f(F,"LI",{});var Xe=l(de);q=f(Xe,"A",{href:!0,class:!0,target:!0});var Ae=l(q);_e=K(Ae,"Database"),Z=f(Ae,"SPAN",{class:!0});var Ye=l(Z);I=_(Ye,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,focusable:!0,viewBox:!0});var Ie=l(I);ee=_(Ie,"path",{d:!0,fill:!0}),l(ee).forEach(r),ie=_(Ie,"path",{d:!0}),l(ie).forEach(r),Ie.forEach(r),Ye.forEach(r),Ae.forEach(r),Xe.forEach(r),xe=B(F),ce=f(F,"LI",{});var Ze=l(ce);O=f(Ze,"A",{href:!0,class:!0,target:!0});var Le=l(O);ke=K(Le,"API"),te=f(Le,"SPAN",{class:!0});var et=l(te);L=_(et,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,focusable:!0,viewBox:!0});var Pe=l(L);ae=_(Pe,"path",{d:!0,fill:!0}),l(ae).forEach(r),ue=_(Pe,"path",{d:!0}),l(ue).forEach(r),Pe.forEach(r),et.forEach(r),Le.forEach(r),Ze.forEach(r),F.forEach(r),je.forEach(r),ye=B(le),P=f(le,"BUTTON",{type:!0,class:!0,"aria-label":!0});var ve=l(P);S=_(ve,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0,"aria-hidden":!0,focusable:!0,role:!0});var tt=l(S);he=_(tt,"path",{d:!0}),l(he).forEach(r),tt.forEach(r),Ee=B(ve),D=_(ve,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var at=l(D);Q=_(at,"path",{d:!0,"fill-rule":!0,"clip-rule":!0}),l(Q).forEach(r),at.forEach(r),ve.forEach(r),$e=B(le),G=f(le,"A",{href:!0,class:!0,target:!0,"aria-label":!0});var rt=l(G);H=_(rt,"svg",{class:!0,"aria-hidden":!0,focusable:!0,role:!0,xmlns:!0,viewBox:!0});var lt=l(H);re=_(lt,"path",{fill:!0,d:!0}),l(re).forEach(r),lt.forEach(r),rt.forEach(r),le.forEach(r),ge.forEach(r),U.forEach(r),this.h()},h(){e(p,"class","text-[1.15rem] text-[#24292f] self-center font-semibold whitespace-nowrap dark:text-white font-mono"),e(o,"href","/"),e(o,"class","flex mr-6"),e(a,"class","flex flex-start items-center basis-[24rem] shrink"),e(z,"d","M0 0h24v24H0V0z"),e(z,"fill","none"),e(E,"d","M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"),e(u,"class","w-3 h-3 fill-gray-400"),e(u,"xmlns","http://www.w3.org/2000/svg"),e(u,"aria-hidden","true"),e(u,"focusable","false"),e(u,"viewBox","0 0 24 24"),e(n,"class","inline-flex items-center p-1 mr-2 text-sm font-semibold text-gray-400 rounded-full"),e(y,"href","https://github.com/iptv-org/iptv"),e(y,"class","block py-2 pr-4 pl-3 text-sm text-gray-700 border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"),e(y,"target","_blank"),e(Y,"d","M0 0h24v24H0V0z"),e(Y,"fill","none"),e(ne,"d","M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"),e(A,"class","w-3 h-3 fill-gray-400"),e(A,"xmlns","http://www.w3.org/2000/svg"),e(A,"aria-hidden","true"),e(A,"focusable","false"),e(A,"viewBox","0 0 24 24"),e(X,"class","inline-flex items-center p-1 mr-2 text-sm font-semibold text-gray-400 rounded-full"),e(C,"href","https://github.com/iptv-org/epg"),e(C,"class","block py-2 pr-4 pl-3 text-sm text-gray-700 border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"),e(C,"target","_blank"),e(ee,"d","M0 0h24v24H0V0z"),e(ee,"fill","none"),e(ie,"d","M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"),e(I,"class","w-3 h-3 fill-gray-400"),e(I,"xmlns","http://www.w3.org/2000/svg"),e(I,"aria-hidden","true"),e(I,"focusable","false"),e(I,"viewBox","0 0 24 24"),e(Z,"class","inline-flex items-center p-1 mr-2 text-sm font-semibold text-gray-400 rounded-full"),e(q,"href","https://github.com/iptv-org/database"),e(q,"class","block py-2 pr-4 pl-3 text-sm text-gray-700 border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"),e(q,"target","_blank"),e(ae,"d","M0 0h24v24H0V0z"),e(ae,"fill","none"),e(ue,"d","M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"),e(L,"class","w-3 h-3 fill-gray-400"),e(L,"xmlns","http://www.w3.org/2000/svg"),e(L,"aria-hidden","true"),e(L,"focusable","false"),e(L,"viewBox","0 0 24 24"),e(te,"class","inline-flex items-center p-1 mr-2 text-sm font-semibold text-gray-400 rounded-full"),e(O,"href","https://github.com/iptv-org/api"),e(O,"class","block py-2 pr-4 pl-3 text-sm text-gray-700 border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-gray-400 md:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"),e(O,"target","_blank"),e(c,"class","hidden lg:flex space-x-7"),e(k,"class","md:inline-block md:w-auto pr-4"),e(he,"d","M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"),e(S,"class","w-5 h-5"),e(S,"fill","currentColor"),e(S,"viewBox","0 0 20 20"),e(S,"xmlns","http://www.w3.org/2000/svg"),e(S,"aria-hidden","true"),e(S,"focusable","false"),e(S,"role","img"),j(S,"hidden",i[1]),e(Q,"d","M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"),e(Q,"fill-rule","evenodd"),e(Q,"clip-rule","evenodd"),e(D,"class","w-5 h-5"),e(D,"fill","currentColor"),e(D,"viewBox","0 0 20 20"),e(D,"xmlns","http://www.w3.org/2000/svg"),j(D,"hidden",!i[1]),e(P,"type","button"),e(P,"class","text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-full text-sm p-2.5"),e(P,"aria-label","Toggle Dark Mode"),e(re,"fill","currentColor"),e(re,"d","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"),e(H,"class","w-5 h-5"),e(H,"aria-hidden","true"),e(H,"focusable","false"),e(H,"role","img"),e(H,"xmlns","http://www.w3.org/2000/svg"),e(H,"viewBox","0 0 496 512"),e(G,"href","https://github.com/iptv-org/"),e(G,"class","inline-flex text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-full text-sm p-2.5 ml-1"),e(G,"target","_blank"),e(G,"aria-label","GitHub"),e(b,"class","flex flex-end items-center"),e(d,"class","container flex justify-between items-center max-w-6xl mx-auto px-4 sm:px-2"),e(s,"class","bg-white border-b border-gray-200 px-2 sm:px-4 py-2.5 dark:border-gray-600 dark:bg-gray-800")},m(T,U){se(T,s,U),t(s,d),t(d,a),t(a,o),t(o,p),t(p,v),t(a,m),x&&x.m(a,null),t(d,g),t(d,b),t(b,k),t(k,c),t(c,$),t($,y),t(y,M),t(y,n),t(n,u),t(u,z),t(u,E),t(c,N),t(c,R),t(R,C),t(C,be),t(C,X),t(X,A),t(A,Y),t(A,ne),t(c,we),t(c,de),t(de,q),t(q,_e),t(q,Z),t(Z,I),t(I,ee),t(I,ie),t(c,xe),t(c,ce),t(ce,O),t(O,ke),t(O,te),t(te,L),t(L,ae),t(L,ue),t(b,ye),t(b,P),t(P,S),t(S,he),t(P,Ee),t(P,D),t(D,Q),t(b,$e),t(b,G),t(G,H),t(H,re),me=!0,ze||(Re=[fe(o,"click",i[4]),fe(P,"click",i[2])],ze=!0)},p(T,[U]){T[0]?x?U&1&&W(x,1):(x=dt(),x.c(),W(x,1),x.m(a,null)):x&&(ft(),oe(x,1,1,()=>{x=null}),mt()),U&2&&j(S,"hidden",T[1]),U&2&&j(D,"hidden",!T[1])},i(T){me||(W(x),me=!0)},o(T){oe(x),me=!1},d(T){T&&r(s),x&&x.d(),ze=!1,it(Re)}}}function Vt(i,s,d){let{withSearch:a=!1}=s,o=!1;function p(){(localStorage.theme||"light")==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches?(d(1,o=!1),document.documentElement.classList.remove("dark"),localStorage.theme="light"):(d(1,o=!0),document.documentElement.classList.add("dark"),localStorage.theme="dark")}function v(){document.body.scrollIntoView(),Ce.set(""),Et.set(!1),ct("")}gt(()=>{(localStorage.theme||"light")==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches?d(1,o=!0):d(1,o=!1)});const m=()=>{v()};return i.$$set=g=>{"withSearch"in g&&d(0,a=g.withSearch)},[a,o,p,v,m]}class Bt extends qe{constructor(s){super();Oe(this,s,Vt,St,Ge,{withSearch:0})}}function At(i){let s;const d=i[1].default,a=wt(d,i,i[3],null);return{c(){a&&a.c()},l(o){a&&a.l(o)},m(o,p){a&&a.m(o,p),s=!0},p(o,p){a&&a.p&&(!s||p&8)&&_t(a,d,o,o[3],s?kt(d,o[3],p,null):xt(o[3]),null)},i(o){s||(W(a,o),s=!0)},o(o){oe(a,o),s=!1},d(o){a&&a.d(o)}}}function It(i){let s=!1,d=()=>{s=!1},a,o,p,v,m,g,b,k,c,$,y,M;return pt(i[2]),g=new Bt({props:{withSearch:i[0]>150}}),c=new vt({props:{unstyled:!0,classBg:"fixed top-0 left-0 z-40 w-screen h-screen flex flex-col bg-black/[.7] overflow-y-scroll",closeButton:!1,$$slots:{default:[At]},$$scope:{ctx:i}}}),{c(){o=h("script"),p=J(`if (document) { + let mode = localStorage.theme || 'light' + if (mode === 'dark' || window.matchMedia('(prefers-color-scheme: dark)').matches) { + document.documentElement.classList.add('dark') + localStorage.theme = 'dark' + } else { + document.documentElement.classList.remove('dark') + localStorage.theme = 'light' + } + }`),v=V(),m=h("header"),De(g.$$.fragment),b=V(),k=h("main"),De(c.$$.fragment),this.h()},l(n){const u=bt('[data-svelte="svelte-bjnlvt"]',document.head);o=f(u,"SCRIPT",{});var z=l(o);p=K(z,`if (document) { + let mode = localStorage.theme || 'light' + if (mode === 'dark' || window.matchMedia('(prefers-color-scheme: dark)').matches) { + document.documentElement.classList.add('dark') + localStorage.theme = 'dark' + } else { + document.documentElement.classList.remove('dark') + localStorage.theme = 'light' + } + }`),z.forEach(r),u.forEach(r),v=B(n),m=f(n,"HEADER",{class:!0,style:!0});var E=l(m);He(g.$$.fragment,E),E.forEach(r),b=B(n),k=f(n,"MAIN",{class:!0});var N=l(k);He(c.$$.fragment,N),N.forEach(r),this.h()},h(){e(m,"class","z-40 w-full min-w-[360px]"),nt(m,"top",(i[0]>150&&i[0]<=210?i[0]-210:0)+"px"),j(m,"absolute",i[0]<=150),j(m,"fixed",i[0]>150),e(k,"class","bg-slate-50 dark:bg-[#1d232e] min-h-screen pt-10 min-w-[360px]")},m(n,u){t(document.head,o),t(o,p),se(n,v,u),se(n,m,u),Te(g,m,null),se(n,b,u),se(n,k,u),Te(c,k,null),$=!0,y||(M=fe(window,"scroll",()=>{s=!0,clearTimeout(a),a=setTimeout(d,100),i[2]()}),y=!0)},p(n,[u]){u&1&&!s&&(s=!0,clearTimeout(a),scrollTo(window.pageXOffset,n[0]),a=setTimeout(d,100));const z={};u&1&&(z.withSearch=n[0]>150),g.$set(z),(!$||u&1)&&nt(m,"top",(n[0]>150&&n[0]<=210?n[0]-210:0)+"px"),u&1&&j(m,"absolute",n[0]<=150),u&1&&j(m,"fixed",n[0]>150);const E={};u&8&&(E.$$scope={dirty:u,ctx:n}),c.$set(E)},i(n){$||(W(g.$$.fragment,n),W(c.$$.fragment,n),$=!0)},o(n){oe(g.$$.fragment,n),oe(c.$$.fragment,n),$=!1},d(n){r(o),n&&r(v),n&&r(m),Ne(g),n&&r(b),n&&r(k),Ne(c),y=!1,M()}}}function Lt(i,s,d){let{$$slots:a={},$$scope:o}=s,p=0;function v(){d(0,p=window.pageYOffset)}return i.$$set=m=>{"$$scope"in m&&d(3,o=m.$$scope)},[p,a,v,o]}class Ht extends qe{constructor(s){super();Oe(this,s,Lt,It,Ge,{})}}export{Ht as default}; diff --git a/docs/_app/pages/__layout.svelte-8a4b19fb.js.br b/docs/_app/pages/__layout.svelte-8a4b19fb.js.br new file mode 100644 index 000000000..ce47ed3fe Binary files /dev/null and b/docs/_app/pages/__layout.svelte-8a4b19fb.js.br differ diff --git a/docs/_app/pages/__layout.svelte-8a4b19fb.js.gz b/docs/_app/pages/__layout.svelte-8a4b19fb.js.gz new file mode 100644 index 000000000..d1ee9deea Binary files /dev/null and b/docs/_app/pages/__layout.svelte-8a4b19fb.js.gz differ diff --git a/docs/_app/pages/index.svelte-70a5d121.js b/docs/_app/pages/index.svelte-70a5d121.js deleted file mode 100644 index 7a910b808..000000000 --- a/docs/_app/pages/index.svelte-70a5d121.js +++ /dev/null @@ -1,5 +0,0 @@ -import{S as ne,i as se,s as oe,$ as ct,w as te,x as re,y as le,q as N,o as U,B as ae,e as _,F as R,k as S,t as z,c as b,a as v,G as J,d as c,m as A,h as Q,b as a,P as F,g as O,H as i,J as X,L as st,n as ie,p as ue,a0 as me,v as ot,M as ee,a1 as dt,j as ce,a2 as Ve,N as xe,a3 as $e,a4 as Se,l as pe,a5 as Ie,K as it,a6 as he,a7 as ve,a8 as ge,I as Ae,O as be,T as ft,a9 as ht,_ as vt,aa as gt}from"../chunks/vendor-585ed223.js";import{q as we,h as ye,s as Ee,f as De,a as mt,c as pt}from"../chunks/store-2c58625c.js";function _t(n){let e,r,t,l,s,o,u,f,d,h,p;return{c(){e=_("button"),r=R("svg"),t=R("path"),l=S(),s=_("span"),o=z("Copy to Clipboard"),u=S(),f=_("div"),d=z("Copied!"),this.h()},l(y){e=b(y,"BUTTON",{type:!0,class:!0});var x=v(e);r=J(x,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var k=v(r);t=J(k,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),v(t).forEach(c),k.forEach(c),l=A(x),s=b(x,"SPAN",{class:!0});var I=v(s);o=Q(I,"Copy to Clipboard"),I.forEach(c),u=A(x),f=b(x,"DIV",{role:!0,class:!0});var E=v(f);d=Q(E,"Copied!"),E.forEach(c),x.forEach(c),this.h()},h(){a(t,"stroke-linecap","round"),a(t,"stroke-linejoin","round"),a(t,"stroke-width","2"),a(t,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),a(r,"class","w-5 h-5"),a(r,"fill","none"),a(r,"stroke","currentColor"),a(r,"viewBox","0 0 24 24"),a(r,"xmlns","http://www.w3.org/2000/svg"),a(s,"class","hidden"),a(f,"role","tooltip"),a(f,"class","tooltip inline-block absolute right-10 top-0 py-2 px-3 text-xs text-gray-100 rounded-md bg-black svelte-1x4n8x"),F(f,"hidden",!n[1]),a(e,"type","button"),a(e,"class","relative flex items-center p-1 text-xs text-gray-500 dark:text-gray-100")},m(y,x){O(y,e,x),i(e,r),i(r,t),i(e,l),i(e,s),i(s,o),i(e,u),i(e,f),i(f,d),h||(p=X(e,"click",function(){st(n[3])&&n[3].apply(this,arguments)}),h=!0)},p(y,x){n=y,x&2&&F(f,"hidden",!n[1])},d(y){y&&c(e),h=!1,p()}}}function bt(n){let e,r;return e=new ct({props:{text:n[0],$$slots:{default:[_t,({copy:t})=>({3:t}),({copy:t})=>t?8:0]},$$scope:{ctx:n}}}),e.$on("copy",n[2]),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,l){le(e,t,l),r=!0},p(t,[l]){const s={};l&1&&(s.text=t[0]),l&26&&(s.$$scope={dirty:l,ctx:t}),e.$set(s)},i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){U(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function wt(n,e,r){let{text:t}=e,l=!1;function s(){r(1,l=!0),setTimeout(()=>{r(1,l=!1)},2e3)}return n.$$set=o=>{"text"in o&&r(0,t=o.text)},[t,l,s]}class ut extends ne{constructor(e){super();se(this,e,wt,bt,oe,{text:0})}}function Pe(n,e,r){const t=n.slice();return t[3]=e[r],t}function kt(n){let e,r=JSON.stringify(n[3].value)+"",t;return{c(){e=_("code"),t=z(r)},l(l){e=b(l,"CODE",{});var s=v(e);t=Q(s,r),s.forEach(c)},m(l,s){O(l,e,s),i(e,t)},p:ee,i:ee,o:ee,d(l){l&&c(e)}}}function yt(n){let e,r;return e=new dt({props:{json:n[3].value}}),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,l){le(e,t,l),r=!0},p:ee,i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){U(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function Oe(n){let e,r,t=n[3].name+"",l,s,o,u,f,d,h;const p=[yt,kt],y=[];function x(k,I){return Array.isArray(k[3].value)&&k[3].value.length?0:1}return u=x(n),f=y[u]=p[u](n),{c(){e=_("tr"),r=_("td"),l=z(t),s=S(),o=_("td"),f.c(),d=S(),this.h()},l(k){e=b(k,"TR",{});var I=v(e);r=b(I,"TD",{class:!0});var E=v(r);l=Q(E,t),E.forEach(c),s=A(I),o=b(I,"TD",{class:!0});var C=v(o);f.l(C),C.forEach(c),d=A(I),I.forEach(c),this.h()},h(){a(r,"class","w-[7rem] md:w-[11rem] px-4 py-1 text-sm text-gray-400 whitespace-nowrap dark:text-gray-400 align-top"),a(o,"class","px-4 py-1 text-sm text-gray-600 dark:text-gray-100 align-top value break-words")},m(k,I){O(k,e,I),i(e,r),i(r,l),i(e,s),i(e,o),y[u].m(o,null),i(e,d),h=!0},p(k,I){f.p(k,I)},i(k){h||(N(f),h=!0)},o(k){U(f),h=!1},d(k){k&&c(e),y[u].d()}}}function Et(n){let e,r,t,l=n[0],s=[];for(let u=0;uU(s[u],1,1,()=>{s[u]=null});return{c(){e=_("table"),r=_("tbody");for(let u=0;u{localStorage.getItem("color-theme")==="light"||!("color-theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches}),n.$$set=s=>{"data"in s&&r(1,t=s.data)},[l,t]}class Be extends ne{constructor(e){super();se(this,e,xt,Et,oe,{data:1})}}function He(n){let e,r,t;return r=new Be({props:{data:n[0]}}),{c(){e=_("div"),te(r.$$.fragment),this.h()},l(l){e=b(l,"DIV",{class:!0});var s=v(e);re(r.$$.fragment,s),s.forEach(c),this.h()},h(){a(e,"class","w-full flex px-2 py-4")},m(l,s){O(l,e,s),le(r,e,null),t=!0},p(l,s){const o={};s&1&&(o.data=l[0]),r.$set(o)},i(l){t||(N(r.$$.fragment,l),t=!0)},o(l){U(r.$$.fragment,l),t=!1},d(l){l&&c(e),ae(r)}}}function $t(n){let e,r,t,l,s,o,u,f,d,h,p,y,x=n[0].url+"",k,I,E,C,j,$,V,g,B,w,D,m,T;B=new ut({props:{text:n[0].url}});let M=n[1]&&He(n);return{c(){e=_("div"),r=_("div"),t=_("div"),l=_("button"),s=R("svg"),o=R("path"),u=S(),f=R("svg"),d=R("circle"),h=S(),p=_("a"),y=_("span"),k=z(x),I=_("span"),E=R("svg"),C=R("path"),V=S(),g=_("div"),te(B.$$.fragment),w=S(),M&&M.c(),this.h()},l(L){e=b(L,"DIV",{class:!0});var P=v(e);r=b(P,"DIV",{class:!0});var G=v(r);t=b(G,"DIV",{class:!0});var q=v(t);l=b(q,"BUTTON",{class:!0});var W=v(l);s=J(W,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var H=v(s);o=J(H,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),v(o).forEach(c),H.forEach(c),W.forEach(c),u=A(q),f=J(q,"svg",{class:!0,viewBox:!0,xmlns:!0});var Y=v(f);d=J(Y,"circle",{cx:!0,cy:!0,r:!0}),v(d).forEach(c),Y.forEach(c),h=A(q),p=b(q,"A",{class:!0,href:!0,title:!0,target:!0,rel:!0});var K=v(p);y=b(K,"SPAN",{class:!0});var Z=v(y);k=Q(Z,x),Z.forEach(c),I=b(K,"SPAN",{class:!0});var fe=v(I);E=J(fe,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var de=v(E);C=J(de,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),v(C).forEach(c),de.forEach(c),fe.forEach(c),K.forEach(c),q.forEach(c),V=A(G),g=b(G,"DIV",{class:!0});var _e=v(g);re(B.$$.fragment,_e),_e.forEach(c),G.forEach(c),w=A(P),M&&M.l(P),P.forEach(c),this.h()},h(){a(o,"stroke-linecap","round"),a(o,"stroke-linejoin","round"),a(o,"stroke-width","2"),a(o,"d","M9 5l7 7-7 7"),a(s,"class","w-4 h-4"),a(s,"fill","none"),a(s,"stroke","currentColor"),a(s,"viewBox","0 0 24 24"),a(s,"xmlns","http://www.w3.org/2000/svg"),F(s,"rotate-90",n[1]),a(l,"class","w-4 h-4 flex justify-center align-middle text-gray-500 hover:text-blue-600 dark:text-gray-100 dark:hover:text-blue-600 shrink-0"),a(d,"cx","50"),a(d,"cy","50"),a(d,"r","50"),a(f,"class","w-2 h-2 flex shrink-0"),a(f,"viewBox","0 0 100 100"),a(f,"xmlns","http://www.w3.org/2000/svg"),F(f,"fill-green-500",n[0].status==="online"),F(f,"fill-yellow-500",["blocked","timeout"].includes(n[0].status)),F(f,"fill-red-500",n[0].status==="error"),a(y,"class","truncate max-w-[30rem]"),a(C,"stroke-linecap","round"),a(C,"stroke-linejoin","round"),a(C,"stroke-width","2"),a(C,"d","M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"),a(E,"class","w-4 h-4"),a(E,"fill","none"),a(E,"stroke","currentColor"),a(E,"viewBox","0 0 24 24"),a(E,"xmlns","http://www.w3.org/2000/svg"),a(I,"class","inline-flex items-center pl-1 text-sm font-semibold text-gray-500 rounded-full"),a(p,"class","whitespace-nowrap text-sm text-gray-600 dark:text-gray-100 hover:text-blue-500 hover:underline inline-flex align-middle"),a(p,"href",j=n[0].url),a(p,"title",$=n[0].url),a(p,"target","_blank"),a(p,"rel","noopener noreferrer"),a(t,"class","flex space-x-3 items-center max-w-[90%]"),a(g,"class","flex shrink-0"),a(r,"class","w-full inline-flex justify-between px-3 py-2 border-gray-200 dark:border-gray-600"),F(r,"border-b",n[1]),a(e,"class","w-full bg-gray-100 dark:bg-gray-700 dark:border-gray-600 rounded-md border border-gray-200")},m(L,P){O(L,e,P),i(e,r),i(r,t),i(t,l),i(l,s),i(s,o),i(t,u),i(t,f),i(f,d),i(t,h),i(t,p),i(p,y),i(y,k),i(p,I),i(I,E),i(E,C),i(r,V),i(r,g),le(B,g,null),i(e,w),M&&M.m(e,null),D=!0,m||(T=X(l,"click",n[2]),m=!0)},p(L,[P]){P&2&&F(s,"rotate-90",L[1]),P&1&&F(f,"fill-green-500",L[0].status==="online"),P&1&&F(f,"fill-yellow-500",["blocked","timeout"].includes(L[0].status)),P&1&&F(f,"fill-red-500",L[0].status==="error"),(!D||P&1)&&x!==(x=L[0].url+"")&&ce(k,x),(!D||P&1&&j!==(j=L[0].url))&&a(p,"href",j),(!D||P&1&&$!==($=L[0].url))&&a(p,"title",$);const G={};P&1&&(G.text=L[0].url),B.$set(G),P&2&&F(r,"border-b",L[1]),L[1]?M?(M.p(L,P),P&2&&N(M,1)):(M=He(L),M.c(),N(M,1),M.m(e,null)):M&&(ie(),U(M,1,1,()=>{M=null}),ue())},i(L){D||(N(B.$$.fragment,L),N(M),D=!0)},o(L){U(B.$$.fragment,L),U(M),D=!1},d(L){L&&c(e),ae(B),M&&M.d(),m=!1,T()}}}function Dt(n,e,r){let{stream:t}=e,l=!1;const s=()=>{r(1,l=!l)};return n.$$set=o=>{"stream"in o&&r(0,t=o.stream)},[t,l,s]}class It extends ne{constructor(e){super();se(this,e,Dt,$t,oe,{stream:0})}}function Ue(n,e,r){const t=n.slice();return t[3]=e[r],t}function qe(n){let e,r;return e=new It({props:{stream:n[3]}}),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,l){le(e,t,l),r=!0},p(t,l){const s={};l&1&&(s.stream=t[3]),e.$set(s)},i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){U(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function Vt(n){let e,r,t,l,s,o,u,f,d,h,p,y,x,k,I,E,C,j,$,V=n[0],g=[];for(let w=0;wU(g[w],1,1,()=>{g[w]=null});return{c(){e=_("div"),r=_("div"),t=_("div"),l=_("h3"),s=_("span"),o=R("svg"),u=R("path"),f=S(),d=z(n[1]),h=S(),p=_("button"),y=R("svg"),x=R("path"),k=S(),I=_("div"),E=_("div");for(let w=0;w{"streams"in o&&r(0,l=o.streams),"title"in o&&r(1,s=o.title)},[l,s,t]}class Tt extends ne{constructor(e){super();se(this,e,Bt,Vt,oe,{streams:0,title:1})}}function ze(n){let e,r,t;return r=new Be({props:{data:n[0]}}),{c(){e=_("div"),te(r.$$.fragment),this.h()},l(l){e=b(l,"DIV",{class:!0});var s=v(e);re(r.$$.fragment,s),s.forEach(c),this.h()},h(){a(e,"class","w-full flex px-2 py-4")},m(l,s){O(l,e,s),le(r,e,null),t=!0},p(l,s){const o={};s&1&&(o.data=l[0]),r.$set(o)},i(l){t||(N(r.$$.fragment,l),t=!0)},o(l){U(r.$$.fragment,l),t=!1},d(l){l&&c(e),ae(r)}}}function jt(n){let e,r,t,l,s,o,u,f,d,h=n[0].url+"",p,y,x,k,I,E,C,j,$,V,g,B,w;$=new ut({props:{text:n[0].url}});let D=n[1]&&ze(n);return{c(){e=_("div"),r=_("div"),t=_("div"),l=_("button"),s=R("svg"),o=R("path"),u=S(),f=_("a"),d=_("span"),p=z(h),y=_("span"),x=R("svg"),k=R("path"),C=S(),j=_("div"),te($.$$.fragment),V=S(),D&&D.c(),this.h()},l(m){e=b(m,"DIV",{class:!0});var T=v(e);r=b(T,"DIV",{class:!0});var M=v(r);t=b(M,"DIV",{class:!0});var L=v(t);l=b(L,"BUTTON",{class:!0});var P=v(l);s=J(P,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var G=v(s);o=J(G,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),v(o).forEach(c),G.forEach(c),P.forEach(c),u=A(L),f=b(L,"A",{class:!0,href:!0,title:!0,target:!0});var q=v(f);d=b(q,"SPAN",{class:!0});var W=v(d);p=Q(W,h),W.forEach(c),y=b(q,"SPAN",{class:!0});var H=v(y);x=J(H,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var Y=v(x);k=J(Y,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),v(k).forEach(c),Y.forEach(c),H.forEach(c),q.forEach(c),L.forEach(c),C=A(M),j=b(M,"DIV",{class:!0});var K=v(j);re($.$$.fragment,K),K.forEach(c),M.forEach(c),V=A(T),D&&D.l(T),T.forEach(c),this.h()},h(){a(o,"stroke-linecap","round"),a(o,"stroke-linejoin","round"),a(o,"stroke-width","2"),a(o,"d","M9 5l7 7-7 7"),a(s,"class","w-4 h-4"),a(s,"fill","none"),a(s,"stroke","currentColor"),a(s,"viewBox","0 0 24 24"),a(s,"xmlns","http://www.w3.org/2000/svg"),F(s,"rotate-90",n[1]),a(l,"class","w-4 h-4 flex justify-center align-middle text-gray-500 hover:text-blue-600 dark:text-gray-100 dark:hover:text-blue-600 shrink-0"),a(d,"class","truncate max-w-[30rem]"),a(k,"stroke-linecap","round"),a(k,"stroke-linejoin","round"),a(k,"stroke-width","2"),a(k,"d","M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"),a(x,"class","w-4 h-4"),a(x,"fill","none"),a(x,"stroke","currentColor"),a(x,"viewBox","0 0 24 24"),a(x,"xmlns","http://www.w3.org/2000/svg"),a(y,"class","inline-flex items-center pl-1 text-sm font-semibold text-gray-500 rounded-full"),a(f,"class","whitespace-nowrap text-sm text-gray-600 dark:text-gray-100 hover:text-blue-500 hover:underline inline-flex align-middle"),a(f,"href",I=n[0].url),a(f,"title",E=n[0].url),a(f,"target","_blank"),a(t,"class","flex space-x-3 items-center max-w-[90%]"),a(j,"class","flex shrink-0"),a(r,"class","w-full inline-flex justify-between px-3 py-2 border-gray-200 dark:border-gray-600"),F(r,"border-b",n[1]),a(e,"class","w-full bg-gray-100 dark:bg-gray-700 dark:border-gray-600 rounded-md border border-gray-200")},m(m,T){O(m,e,T),i(e,r),i(r,t),i(t,l),i(l,s),i(s,o),i(t,u),i(t,f),i(f,d),i(d,p),i(f,y),i(y,x),i(x,k),i(r,C),i(r,j),le($,j,null),i(e,V),D&&D.m(e,null),g=!0,B||(w=X(l,"click",n[2]),B=!0)},p(m,[T]){T&2&&F(s,"rotate-90",m[1]),(!g||T&1)&&h!==(h=m[0].url+"")&&ce(p,h),(!g||T&1&&I!==(I=m[0].url))&&a(f,"href",I),(!g||T&1&&E!==(E=m[0].url))&&a(f,"title",E);const M={};T&1&&(M.text=m[0].url),$.$set(M),T&2&&F(r,"border-b",m[1]),m[1]?D?(D.p(m,T),T&2&&N(D,1)):(D=ze(m),D.c(),N(D,1),D.m(e,null)):D&&(ie(),U(D,1,1,()=>{D=null}),ue())},i(m){g||(N($.$$.fragment,m),N(D),g=!0)},o(m){U($.$$.fragment,m),U(D),g=!1},d(m){m&&c(e),ae($),D&&D.d(),B=!1,w()}}}function Mt(n,e,r){let{guide:t}=e,l=!1;const s=()=>{r(1,l=!l)};return n.$$set=o=>{"guide"in o&&r(0,t=o.guide)},[t,l,s]}class Ct extends ne{constructor(e){super();se(this,e,Mt,jt,oe,{guide:0})}}function Qe(n,e,r){const t=n.slice();return t[3]=e[r],t}function Ye(n){let e,r;return e=new Ct({props:{guide:n[3]}}),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,l){le(e,t,l),r=!0},p(t,l){const s={};l&1&&(s.guide=t[3]),e.$set(s)},i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){U(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function Lt(n){let e,r,t,l,s,o,u,f,d,h,p,y,x,k,I,E,C,j,$,V=n[0],g=[];for(let w=0;wU(g[w],1,1,()=>{g[w]=null});return{c(){e=_("div"),r=_("div"),t=_("div"),l=_("h3"),s=_("span"),o=R("svg"),u=R("path"),f=S(),d=z(n[1]),h=S(),p=_("button"),y=R("svg"),x=R("path"),k=S(),I=_("div"),E=_("div");for(let w=0;w{"guides"in o&&r(0,l=o.guides),"title"in o&&r(1,s=o.title)},[l,s,t]}class St extends ne{constructor(e){super();se(this,e,Nt,Lt,oe,{guides:0,title:1})}}function Ge(n,e,r){const t=n.slice();return t[6]=e[r],t}function Re(n,e,r){const t=n.slice();return t[9]=e[r],t[11]=r,t}function At(n){let e=n[6].value+"",r;return{c(){r=z(e)},l(t){r=Q(t,e)},m(t,l){O(t,r,l)},p:ee,d(t){t&&c(r)}}}function Pt(n){let e,r=n[6].value+"",t,l,s,o;return{c(){e=_("a"),t=z(r),l=_("span"),s=R("svg"),o=R("path"),this.h()},l(u){e=b(u,"A",{href:!0,class:!0,target:!0,rel:!0});var f=v(e);t=Q(f,r),l=b(f,"SPAN",{class:!0});var d=v(l);s=J(d,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var h=v(s);o=J(h,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),v(o).forEach(c),h.forEach(c),d.forEach(c),f.forEach(c),this.h()},h(){a(o,"stroke-linecap","round"),a(o,"stroke-linejoin","round"),a(o,"stroke-width","2"),a(o,"d","M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"),a(s,"class","w-4 h-4"),a(s,"fill","none"),a(s,"stroke","currentColor"),a(s,"viewBox","0 0 24 24"),a(s,"xmlns","http://www.w3.org/2000/svg"),a(l,"class","inline-flex items-center pl-1 text-sm font-semibold text-gray-400 rounded-full"),a(e,"href",n[6].value),a(e,"class","underline hover:text-blue-500 inline-flex align-middle"),a(e,"target","_blank"),a(e,"rel","noopener noreferrer")},m(u,f){O(u,e,f),i(e,t),i(e,l),i(l,s),i(s,o)},p:ee,d(u){u&&c(e)}}}function Ot(n){let e,r=n[6].value,t=[];for(let l=0;l0&&qt();function d(){return n[5](n[6],n[9])}return{c(){f&&f.c(),e=S(),r=_("button"),l=z(t),s=S(),this.h()},l(h){f&&f.l(h),e=A(h),r=b(h,"BUTTON",{class:!0});var p=v(r);l=Q(p,t),s=A(p),p.forEach(c),this.h()},h(){a(r,"class","underline hover:text-blue-500")},m(h,p){f&&f.m(h,p),O(h,e,p),O(h,r,p),i(r,l),i(r,s),o||(u=X(r,"click",d),o=!0)},p(h,p){n=h},d(h){f&&f.d(h),h&&c(e),h&&c(r),o=!1,u()}}}function Fe(n){let e,r,t,l=n[6].name+"",s,o,u,f,d;function h(x,k){return x[6].type==="image"?Ut:x[6].type==="link"?Ht:x[6].type==="link[]"?Ot:x[6].type==="external_link"?Pt:At}let y=h(n)(n);return{c(){e=_("tr"),r=_("td"),t=_("div"),s=z(l),o=S(),u=_("td"),f=_("div"),y.c(),d=S(),this.h()},l(x){e=b(x,"TR",{});var k=v(e);r=b(k,"TD",{class:!0});var I=v(r);t=b(I,"DIV",{class:!0});var E=v(t);s=Q(E,l),E.forEach(c),I.forEach(c),o=A(k),u=b(k,"TD",{class:!0});var C=v(u);f=b(C,"DIV",{class:!0});var j=v(f);y.l(j),j.forEach(c),C.forEach(c),d=A(k),k.forEach(c),this.h()},h(){a(t,"class","flex px-4 py-1 text-sm text-gray-400 whitespace-nowrap dark:text-gray-400"),a(r,"class","align-top w-[11rem]"),a(f,"class","flex px-4 py-1 text-sm text-gray-700 dark:text-gray-100 flex-wrap"),a(u,"class","align-top")},m(x,k){O(x,e,k),i(e,r),i(r,t),i(t,s),i(e,o),i(e,u),i(u,f),y.m(f,null),i(e,d)},p(x,k){y.p(x,k)},d(x){x&&c(e),y.d()}}}function zt(n){let e,r,t,l,s=n[0],o=[];for(let u=0;ud.name)},{name:"languages",type:"link[]",value:t.languages.map(d=>d.name)},{name:"categories",type:"link[]",value:t.categories.map(d=>d.name)},{name:"is_nsfw",type:"link",value:t.is_nsfw.toString()},{name:"launched",type:"date",value:t.launched?Se(t.launched).format("D MMMM YYYY"):null},{name:"closed",type:"date",value:t.closed?Se(t.closed).format("D MMMM YYYY"):null},{name:"website",type:"external_link",value:t.website}].filter(d=>Array.isArray(d.value)?d.value.length:d.value);function o(d,h){h=h.includes(" ")?`"${h}"`:h;const p=`${d}:${h}`;we.set(p),ye.set(!0),Ee(p),l()}const u=d=>o(d.name,d.value),f=(d,h)=>o(d.name,h);return n.$$set=d=>{"data"in d&&r(2,t=d.data),"close"in d&&r(3,l=d.close)},[s,o,t,l,u,f]}class Yt extends ne{constructor(e){super();se(this,e,Qt,zt,oe,{data:2,close:3})}}function Gt(n){let e,r;return e=new Yt({props:{data:n[0],close:n[3]}}),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,l){le(e,t,l),r=!0},p(t,l){const s={};l&1&&(s.data=t[0]),e.$set(s)},i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){U(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function Rt(n){let e,r,t,l;return t=new Be({props:{data:n[0]._raw}}),{c(){e=_("div"),r=_("div"),te(t.$$.fragment),this.h()},l(s){e=b(s,"DIV",{class:!0});var o=v(e);r=b(o,"DIV",{class:!0});var u=v(r);re(t.$$.fragment,u),u.forEach(c),o.forEach(c),this.h()},h(){a(r,"class","flex p-4 bg-gray-50 dark:bg-gray-700 rounded-md w-full"),a(e,"class","pb-8 px-8 pt-6")},m(s,o){O(s,e,o),i(e,r),le(t,r,null),l=!0},p(s,o){const u={};o&1&&(u.data=s[0]._raw),t.$set(u)},i(s){l||(N(t.$$.fragment,s),l=!0)},o(s){U(t.$$.fragment,s),l=!1},d(s){s&&c(e),ae(t)}}}function Jt(n){let e,r,t,l,s,o=n[0].name+"",u,f,d,h,p,y,x,k,I,E,C,j,$,V,g,B,w,D,m,T,M,L,P;const G=[Rt,Gt],q=[];function W(H,Y){return H[1]==="json"?0:H[1]==="html"?1:-1}return~(m=W(n))&&(T=q[m]=G[m](n)),{c(){e=_("div"),r=_("div"),t=_("div"),l=_("div"),s=_("h3"),u=z(o),f=S(),d=_("div"),h=_("div"),p=_("button"),y=z("HTML"),k=S(),I=_("button"),E=z("JSON"),j=S(),$=_("div"),V=_("button"),g=R("svg"),B=R("path"),w=S(),D=_("div"),T&&T.c(),this.h()},l(H){e=b(H,"DIV",{class:!0});var Y=v(e);r=b(Y,"DIV",{class:!0});var K=v(r);t=b(K,"DIV",{class:!0});var Z=v(t);l=b(Z,"DIV",{class:!0});var fe=v(l);s=b(fe,"H3",{class:!0});var de=v(s);u=Q(de,o),de.forEach(c),fe.forEach(c),f=A(Z),d=b(Z,"DIV",{class:!0});var _e=v(d);h=b(_e,"DIV",{class:!0,role:!0});var ke=v(h);p=b(ke,"BUTTON",{type:!0,"area-selected":!0,class:!0});var Te=v(p);y=Q(Te,"HTML"),Te.forEach(c),k=A(ke),I=b(ke,"BUTTON",{type:!0,"area-selected":!0,class:!0});var je=v(I);E=Q(je,"JSON"),je.forEach(c),ke.forEach(c),_e.forEach(c),j=A(Z),$=b(Z,"DIV",{class:!0});var Me=v($);V=b(Me,"BUTTON",{type:!0,class:!0});var Ce=v(V);g=J(Ce,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var Le=v(g);B=J(Le,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),v(B).forEach(c),Le.forEach(c),Ce.forEach(c),Me.forEach(c),Z.forEach(c),w=A(K),D=b(K,"DIV",{class:!0});var Ne=v(D);T&&T.l(Ne),Ne.forEach(c),K.forEach(c),Y.forEach(c),this.h()},h(){a(s,"class","text-l font-medium text-gray-900 dark:text-white"),a(l,"class","w-1/3 overflow-hidden"),a(p,"type","button"),a(p,"area-selected",x=n[1]==="html"),a(p,"class","py-2 px-4 text-xs font-medium text-gray-900 bg-white rounded-l-lg border border-gray-200 hover:bg-gray-100 dark:border-gray-700 dark:bg-transparent dark:text-white dark:hover:text-white dark:hover:bg-gray-600 svelte-1wpa6us"),F(p,"active",n[1]==="html"),a(I,"type","button"),a(I,"area-selected",C=n[1]==="html"),a(I,"class","py-2 px-4 text-xs font-medium text-gray-900 bg-white border-t border-b border-r rounded-r-lg border-gray-200 hover:bg-gray-100 dark:bg-transparent dark:border-gray-700 dark:text-white dark:hover:text-white dark:hover:bg-gray-600 svelte-1wpa6us"),F(I,"active",n[1]==="json"),a(h,"class","inline-flex rounded-md"),a(h,"role","group"),a(d,"class","inline-flex justify-center w-1/3"),a(B,"fill-rule","evenodd"),a(B,"d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"),a(B,"clip-rule","evenodd"),a(g,"class","w-5 h-5"),a(g,"fill","currentColor"),a(g,"viewBox","0 0 20 20"),a(g,"xmlns","http://www.w3.org/2000/svg"),a(V,"type","button"),a(V,"class","text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-full text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white"),a($,"class","inline-flex w-1/3 justify-end"),a(t,"class","flex justify-between items-center py-4 pl-5 pr-4 rounded-t border-b dark:border-gray-700"),a(D,"class","overflow-y-scroll overflow-x-hidden w-full"),a(r,"class","relative bg-white rounded-md shadow dark:bg-gray-800 w-full max-w-4xl"),a(e,"class","relative px-2 py-[4rem] flex justify-center")},m(H,Y){O(H,e,Y),i(e,r),i(r,t),i(t,l),i(l,s),i(s,u),i(t,f),i(t,d),i(d,h),i(h,p),i(p,y),i(h,k),i(h,I),i(I,E),i(t,j),i(t,$),i($,V),i(V,g),i(g,B),i(r,w),i(r,D),~m&&q[m].m(D,null),M=!0,L||(P=[X(p,"click",n[4]),X(I,"click",n[5]),X(V,"click",n[3]),X(e,"click",Ve(n[3]))],L=!0)},p(H,[Y]){(!M||Y&1)&&o!==(o=H[0].name+"")&&ce(u,o),(!M||Y&2&&x!==(x=H[1]==="html"))&&a(p,"area-selected",x),Y&2&&F(p,"active",H[1]==="html"),(!M||Y&2&&C!==(C=H[1]==="html"))&&a(I,"area-selected",C),Y&2&&F(I,"active",H[1]==="json");let K=m;m=W(H),m===K?~m&&q[m].p(H,Y):(T&&(ie(),U(q[K],1,1,()=>{q[K]=null}),ue()),~m?(T=q[m],T?T.p(H,Y):(T=q[m]=G[m](H),T.c()),N(T,1),T.m(D,null)):T=null)},i(H){M||(N(T),M=!0)},o(H){U(T),M=!1},d(H){H&&c(e),~m&&q[m].d(),L=!1,xe(P)}}}function Ft(n,e,r){const{close:t}=$e("simple-modal");let{channel:l}=e,s="html";function o(h){r(1,s=h)}const u=()=>{t()},f=()=>o("html"),d=()=>o("json");return n.$$set=h=>{"channel"in h&&r(0,l=h.channel)},[l,s,o,u,f,d]}class Wt extends ne{constructor(e){super();se(this,e,Ft,Jt,oe,{channel:0})}}function We(n){let e,r,t;return{c(){e=_("img"),this.h()},l(l){e=b(l,"IMG",{class:!0,loading:!0,referrerpolicy:!0,src:!0,alt:!0}),this.h()},h(){a(e,"class","block align-middle mx-auto max-w-[6rem] max-h-[3rem] text-sm text-gray-400 dark:text-gray-600 cursor-default"),a(e,"loading","lazy"),a(e,"referrerpolicy","no-referrer"),Ie(e.src,r=n[0].logo)||a(e,"src",r),a(e,"alt",t=n[0].name)},m(l,s){O(l,e,s)},p(l,s){s&1&&!Ie(e.src,r=l[0].logo)&&a(e,"src",r),s&1&&t!==(t=l[0].name)&&a(e,"alt",t)},d(l){l&&c(e)}}}function Kt(n){let e,r,t,l,s,o=n[2].length+"",u,f,d,h,p,y,x;return{c(){e=_("button"),r=R("svg"),t=R("path"),l=S(),s=_("div"),u=z(o),f=S(),d=_("div"),h=z("streams"),p=S(),this.h()},l(k){e=b(k,"BUTTON",{class:!0});var I=v(e);r=J(I,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var E=v(r);t=J(E,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),v(t).forEach(c),E.forEach(c),l=A(I),s=b(I,"DIV",{class:!0});var C=v(s);u=Q(C,o),C.forEach(c),f=A(I),d=b(I,"DIV",{});var j=v(d);h=Q(j,"streams"),j.forEach(c),I.forEach(c),p=A(k),this.h()},h(){a(t,"stroke-linecap","round"),a(t,"stroke-linejoin","round"),a(t,"stroke-width","2"),a(t,"d","M5.636 18.364a9 9 0 010-12.728m12.728 0a9 9 0 010 12.728m-9.9-2.829a5 5 0 010-7.07m7.072 0a5 5 0 010 7.07M13 12a1 1 0 11-2 0 1 1 0 012 0z"),a(r,"class","w-5 h-5"),a(r,"fill","none"),a(r,"stroke","currentColor"),a(r,"viewBox","0 0 24 24"),a(r,"xmlns","http://www.w3.org/2000/svg"),a(s,"class","font-semibold"),a(e,"class","text-sm text-gray-500 dark:text-gray-100 inline-flex space-x-1 flex items-center hover:text-blue-500 dark:hover:text-blue-400")},m(k,I){O(k,e,I),i(e,r),i(r,t),i(e,l),i(e,s),i(s,u),i(e,f),i(e,d),i(d,h),O(k,p,I),y||(x=X(e,"click",n[4]),y=!0)},p:ee,d(k){k&&c(e),k&&c(p),y=!1,x()}}}function Xt(n){let e,r,t,l,s,o=n[1].length+"",u,f,d,h,p,y;return{c(){e=_("button"),r=R("svg"),t=R("path"),l=S(),s=_("div"),u=z(o),f=S(),d=_("div"),h=z("guides"),this.h()},l(x){e=b(x,"BUTTON",{class:!0});var k=v(e);r=J(k,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var I=v(r);t=J(I,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),v(t).forEach(c),I.forEach(c),l=A(k),s=b(k,"DIV",{class:!0});var E=v(s);u=Q(E,o),E.forEach(c),f=A(k),d=b(k,"DIV",{});var C=v(d);h=Q(C,"guides"),C.forEach(c),k.forEach(c),this.h()},h(){a(t,"stroke-linecap","round"),a(t,"stroke-linejoin","round"),a(t,"stroke-width","2"),a(t,"d","M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"),a(r,"class","w-5 h-5"),a(r,"fill","none"),a(r,"stroke","currentColor"),a(r,"viewBox","0 0 24 24"),a(r,"xmlns","http://www.w3.org/2000/svg"),a(s,"class","font-semibold"),a(e,"class","text-sm text-gray-500 dark:text-gray-100 inline-flex space-x-1 flex items-center hover:text-blue-500 dark:hover:text-blue-400")},m(x,k){O(x,e,k),i(e,r),i(r,t),i(e,l),i(e,s),i(s,u),i(e,f),i(e,d),i(d,h),p||(y=X(e,"click",n[3]),p=!0)},p:ee,d(x){x&&c(e),p=!1,y()}}}function Zt(n){let e,r,t,l,s,o,u,f=n[0].name+"",d,h,p,y,x,k=n[0].id+"",I,E,C,j,$,V,g,B=n[0].logo&&We(n),w=n[2].length&&Kt(n),D=n[1].length&&Xt(n);return{c(){e=_("tr"),r=_("td"),t=_("div"),B&&B.c(),l=S(),s=_("td"),o=_("div"),u=_("a"),d=z(f),h=S(),p=_("td"),y=_("div"),x=_("code"),I=z(k),E=S(),C=_("td"),j=_("div"),w&&w.c(),$=pe(),D&&D.c(),this.h()},l(m){e=b(m,"TR",{class:!0});var T=v(e);r=b(T,"TD",{class:!0});var M=v(r);t=b(M,"DIV",{class:!0});var L=v(t);B&&B.l(L),L.forEach(c),M.forEach(c),l=A(T),s=b(T,"TD",{class:!0});var P=v(s);o=b(P,"DIV",{});var G=v(o);u=b(G,"A",{href:!0,rel:!0,role:!0,tabindex:!0,class:!0});var q=v(u);d=Q(q,f),q.forEach(c),G.forEach(c),P.forEach(c),h=A(T),p=b(T,"TD",{class:!0});var W=v(p);y=b(W,"DIV",{});var H=v(y);x=b(H,"CODE",{class:!0});var Y=v(x);I=Q(Y,k),Y.forEach(c),H.forEach(c),W.forEach(c),E=A(T),C=b(T,"TD",{class:!0});var K=v(C);j=b(K,"DIV",{class:!0});var Z=v(j);w&&w.l(Z),$=pe(),D&&D.l(Z),Z.forEach(c),K.forEach(c),T.forEach(c),this.h()},h(){a(t,"class","inline-flex w-full align-middle justify-center whitespace-nowrap overflow-hidden"),a(r,"class","pl-2 pr-4 md:pr-7"),a(u,"href","/"),a(u,"rel","nofollow"),a(u,"role","button"),a(u,"tabindex","0"),a(u,"class","text-left font-normal text-gray-600 dark:text-white hover:underline hover:text-blue-500"),a(s,"class","px-2"),a(x,"class","break-words text-sm text-gray-500 bg-gray-100 dark:text-gray-300 dark:bg-gray-700 px-2 py-1 rounded-sm select-all cursor-text font-mono"),a(p,"class","px-2"),a(j,"class","text-right flex justify-end space-x-3 items-center"),a(C,"class","pl-2 pr-5"),a(e,"class","border-b last:border-b-0 border-gray-200 dark:border-gray-700 hover:bg-gray-50 hover:dark:bg-gray-700 h-16")},m(m,T){O(m,e,T),i(e,r),i(r,t),B&&B.m(t,null),i(e,l),i(e,s),i(s,o),i(o,u),i(u,d),i(e,h),i(e,p),i(p,y),i(y,x),i(x,I),i(e,E),i(e,C),i(C,j),w&&w.m(j,null),i(j,$),D&&D.m(j,null),V||(g=X(u,"click",it(n[5])),V=!0)},p(m,[T]){m[0].logo?B?B.p(m,T):(B=We(m),B.c(),B.m(t,null)):B&&(B.d(1),B=null),T&1&&f!==(f=m[0].name+"")&&ce(d,f),T&1&&k!==(k=m[0].id+"")&&ce(I,k),m[2].length&&w.p(m,T),m[1].length&&D.p(m,T)},i:ee,o:ee,d(m){m&&c(e),B&&B.d(),w&&w.d(),D&&D.d(),V=!1,g()}}}function er(n,e,r){let{channel:t}=e;const l=t._guides,s=t._streams,{open:o}=$e("simple-modal"),u=()=>o(St,{guides:l,title:t.name},{transitionBgProps:{duration:0},transitionWindowProps:{duration:0}}),f=()=>o(Tt,{streams:s,title:t.name},{transitionBgProps:{duration:0},transitionWindowProps:{duration:0}}),d=()=>{o(Wt,{channel:t},{transitionBgProps:{duration:0},transitionWindowProps:{duration:0}})};return n.$$set=h=>{"channel"in h&&r(0,t=h.channel)},[t,l,s,u,f,d]}class tr extends ne{constructor(e){super();se(this,e,er,Zt,oe,{channel:0})}}function Ke(n,e,r){const t=n.slice();return t[2]=e[r],t[3]=e,t[4]=r,t}function Xe(n){let e,r,t;function l(o){n[1](o,n[2],n[3],n[4])}let s={};return n[2]!==void 0&&(s.channel=n[2]),e=new tr({props:s}),ve.push(()=>ge(e,"channel",l)),{c(){te(e.$$.fragment)},l(o){re(e.$$.fragment,o)},m(o,u){le(e,o,u),t=!0},p(o,u){n=o;const f={};!r&&u&1&&(r=!0,f.channel=n[2],he(()=>r=!1)),e.$set(f)},i(o){t||(N(e.$$.fragment,o),t=!0)},o(o){U(e.$$.fragment,o),t=!1},d(o){ae(e,o)}}}function rr(n){let e,r,t,l,s,o,u,f,d,h,p,y,x,k,I,E,C,j,$,V,g,B=n[0],w=[];for(let m=0;mU(w[m],1,1,()=>{w[m]=null});return{c(){e=_("div"),r=_("div"),t=_("div"),l=_("div"),s=_("table"),o=_("thead"),u=_("tr"),f=_("th"),d=S(),h=_("th"),p=z("Name"),y=S(),x=_("th"),k=z("TVG-ID"),I=S(),E=_("th"),C=_("span"),j=z("Actions"),$=S(),V=_("tbody");for(let m=0;m{"channels"in s&&r(0,t=s.channels)},[t,l]}class ar extends ne{constructor(e){super();se(this,e,lr,rr,oe,{channels:0})}}function Ze(n){let e,r,t,l,s,o,u;function f(h){n[5](h)}let d={};return n[1]!==void 0&&(d.channels=n[1]),t=new ar({props:d}),ve.push(()=>ge(t,"channels",f)),{c(){e=_("div"),r=_("div"),te(t.$$.fragment),this.h()},l(h){e=b(h,"DIV",{id:!0,"aria-labelledby":!0});var p=v(e);r=b(p,"DIV",{class:!0});var y=v(r);re(t.$$.fragment,y),y.forEach(c),p.forEach(c),this.h()},h(){a(r,"class","border border-gray-200 dark:border-gray-700 dark:bg-gray-900 rounded-b-md overflow-hidden"),a(e,"id",s="accordion-body-"+n[0].code),a(e,"aria-labelledby",o="accordion-heading-"+n[0].code)},m(h,p){O(h,e,p),i(e,r),le(t,r,null),u=!0},p(h,p){const y={};!l&&p&2&&(l=!0,y.channels=h[1],he(()=>l=!1)),t.$set(y),(!u||p&1&&s!==(s="accordion-body-"+h[0].code))&&a(e,"id",s),(!u||p&1&&o!==(o="accordion-heading-"+h[0].code))&&a(e,"aria-labelledby",o)},i(h){u||(N(t.$$.fragment,h),u=!0)},o(h){U(t.$$.fragment,h),u=!1},d(h){h&&c(e),ae(t)}}}function nr(n){let e,r,t,l,s=n[0].flag+"",o,u,f=n[0].name+"",d,h,p,y,x,k,I,E,C,j,$=n[2]&&Ze(n);return{c(){e=_("div"),r=_("h2"),t=_("button"),l=_("span"),o=z(s),u=z("\xA0"),d=z(f),h=S(),p=R("svg"),y=R("path"),I=S(),$&&$.c(),this.h()},l(V){e=b(V,"DIV",{class:!0});var g=v(e);r=b(g,"H2",{id:!0});var B=v(r);t=b(B,"BUTTON",{type:!0,class:!0,"aria-expanded":!0,"aria-controls":!0});var w=v(t);l=b(w,"SPAN",{});var D=v(l);o=Q(D,s),u=Q(D,"\xA0"),d=Q(D,f),D.forEach(c),h=A(w),p=J(w,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var m=v(p);y=J(m,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),v(y).forEach(c),m.forEach(c),w.forEach(c),B.forEach(c),I=A(g),$&&$.l(g),g.forEach(c),this.h()},h(){a(y,"fill-rule","evenodd"),a(y,"d","M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"),a(y,"clip-rule","evenodd"),a(p,"class","w-6 h-6 shrink-0"),a(p,"fill","currentColor"),a(p,"viewBox","0 0 20 20"),a(p,"xmlns","http://www.w3.org/2000/svg"),F(p,"rotate-180",n[2]),a(t,"type","button"),a(t,"class","flex items-center focus:ring-0 dark:focus:ring-gray-800 justify-between p-4 w-full font-medium text-left border border-gray-200 dark:border-gray-700 text-gray-900 dark:text-white bg-white dark:bg-gray-800"),a(t,"aria-expanded",n[2]),a(t,"aria-controls",x="accordion-body-"+n[0].code),F(t,"rounded-t-md",n[2]),F(t,"rounded-md",!n[2]),F(t,"border-b-0",n[2]),a(r,"id",k="accordion-heading-"+n[0].code),a(e,"class","mb-3")},m(V,g){O(V,e,g),i(e,r),i(r,t),i(t,l),i(l,o),i(l,u),i(l,d),i(t,h),i(t,p),i(p,y),i(e,I),$&&$.m(e,null),E=!0,C||(j=X(t,"click",n[3]),C=!0)},p(V,[g]){(!E||g&1)&&s!==(s=V[0].flag+"")&&ce(o,s),(!E||g&1)&&f!==(f=V[0].name+"")&&ce(d,f),g&4&&F(p,"rotate-180",V[2]),(!E||g&4)&&a(t,"aria-expanded",V[2]),(!E||g&1&&x!==(x="accordion-body-"+V[0].code))&&a(t,"aria-controls",x),g&4&&F(t,"rounded-t-md",V[2]),g&4&&F(t,"rounded-md",!V[2]),g&4&&F(t,"border-b-0",V[2]),(!E||g&1&&k!==(k="accordion-heading-"+V[0].code))&&a(r,"id",k),V[2]?$?($.p(V,g),g&4&&N($,1)):($=Ze(V),$.c(),N($,1),$.m(e,null)):$&&(ie(),U($,1,1,()=>{$=null}),ue())},i(V){E||(N($),E=!0)},o(V){U($),E=!1},d(V){V&&c(e),$&&$.d(),C=!1,j()}}}function sr(n,e,r){let t,{country:l}=e,{channels:s=[]}=e,{hasQuery:o}=e;function u(){r(0,l.expanded=!l.expanded,l)}function f(d){s=d,r(1,s)}return n.$$set=d=>{"country"in d&&r(0,l=d.country),"channels"in d&&r(1,s=d.channels),"hasQuery"in d&&r(4,o=d.hasQuery)},n.$$.update=()=>{n.$$.dirty&19&&r(2,t=l.expanded||s&&s.length>0&&o)},[l,s,t,u,o,f]}class or extends ne{constructor(e){super();se(this,e,sr,nr,oe,{country:0,channels:1,hasQuery:4})}}function ir(n){let e,r,t,l,s,o,u,f,d,h,p,y,x,k,I,E,C=(n[1]?"/":n[0].toLocaleString())+"",j,$,V,g;return{c(){e=_("form"),r=_("div"),t=_("label"),l=z("Search"),s=S(),o=_("div"),u=_("div"),f=R("svg"),d=R("path"),h=S(),p=_("input"),y=S(),x=_("p"),k=_("span"),I=z(`Found\xA0 - `),E=_("span"),j=z(C),$=z(` - \xA0channels`),this.h()},l(B){e=b(B,"FORM",{class:!0});var w=v(e);r=b(w,"DIV",{});var D=v(r);t=b(D,"LABEL",{for:!0,class:!0});var m=v(t);l=Q(m,"Search"),m.forEach(c),s=A(D),o=b(D,"DIV",{class:!0});var T=v(o);u=b(T,"DIV",{class:!0});var M=v(u);f=J(M,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var L=v(f);d=J(L,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),v(d).forEach(c),L.forEach(c),M.forEach(c),h=A(T),p=b(T,"INPUT",{type:!0,id:!0,class:!0,placeholder:!0}),T.forEach(c),y=A(D),x=b(D,"P",{class:!0});var P=v(x);k=b(P,"SPAN",{class:!0});var G=v(k);I=Q(G,`Found\xA0 - `),E=b(G,"SPAN",{});var q=v(E);j=Q(q,C),q.forEach(c),$=Q(G,` - \xA0channels`),G.forEach(c),P.forEach(c),D.forEach(c),w.forEach(c),this.h()},h(){a(t,"for","search-input"),a(t,"class","sr-only"),a(d,"fill-rule","evenodd"),a(d,"d","M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"),a(d,"clip-rule","evenodd"),a(f,"class","w-5 h-5 text-gray-500 dark:text-gray-400"),a(f,"fill","currentColor"),a(f,"viewBox","0 0 20 20"),a(f,"xmlns","http://www.w3.org/2000/svg"),a(u,"class","flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none"),a(p,"type","search"),a(p,"id","search-input"),a(p,"class","bg-white border border-gray-300 text-gray-900 outline-blue-500 text-sm rounded-md block w-full pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"),a(p,"placeholder","Search for channels"),a(o,"class","relative mt-1"),F(E,"animate-spin",n[1]),a(k,"class","inline-flex text-sm text-gray-500 dark:text-gray-400 font-mono"),a(x,"class","mt-2"),a(e,"class","mb-5")},m(B,w){O(B,e,w),i(e,r),i(r,t),i(t,l),i(r,s),i(r,o),i(o,u),i(u,f),i(f,d),i(o,h),i(o,p),Ae(p,n[2]),i(r,y),i(r,x),i(x,k),i(k,I),i(k,E),i(E,j),i(k,$),V||(g=[X(p,"input",n[3]),X(e,"submit",it(function(){st(Ee(n[2]))&&Ee(n[2]).apply(this,arguments)}))],V=!0)},p(B,[w]){n=B,w&4&&Ae(p,n[2]),w&3&&C!==(C=(n[1]?"/":n[0].toLocaleString())+"")&&ce(j,C),w&2&&F(E,"animate-spin",n[1])},i:ee,o:ee,d(B){B&&c(e),V=!1,xe(g)}}}function ur(n,e,r){let t;be(n,we,u=>r(2,t=u));let{found:l=0}=e,{isLoading:s=!0}=e;function o(){t=this.value,we.set(t)}return n.$$set=u=>{"found"in u&&r(0,l=u.found),"isLoading"in u&&r(1,s=u.isLoading)},[l,s,t,o]}class cr extends ne{constructor(e){super();se(this,e,ur,ir,oe,{found:0,isLoading:1})}}function et(n,e,r){const t=n.slice();return t[18]=e[r],t[19]=e,t[20]=r,t}function tt(n){let e,r;return{c(){e=_("div"),r=z("loading..."),this.h()},l(t){e=b(t,"DIV",{class:!0});var l=v(e);r=Q(l,"loading..."),l.forEach(c),this.h()},h(){a(e,"class","flex items-center justify-center w-full pt-1 pb-6 tracking-tight text-sm text-gray-500 dark:text-gray-400 font-mono")},m(t,l){O(t,e,l),i(e,r)},d(t){t&&c(e)}}}function rt(n){let e,r,t,l,s;function o(h){n[11](h,n[18],n[19],n[20])}function u(h){n[12](h,n[18])}function f(h){n[13](h)}let d={};return n[18]!==void 0&&(d.country=n[18]),n[3][n[18].code]!==void 0&&(d.channels=n[3][n[18].code]),n[5]!==void 0&&(d.hasQuery=n[5]),e=new or({props:d}),ve.push(()=>ge(e,"country",o)),ve.push(()=>ge(e,"channels",u)),ve.push(()=>ge(e,"hasQuery",f)),{c(){te(e.$$.fragment)},l(h){re(e.$$.fragment,h)},m(h,p){le(e,h,p),s=!0},p(h,p){n=h;const y={};!r&&p&16&&(r=!0,y.country=n[18],he(()=>r=!1)),!t&&p&24&&(t=!0,y.channels=n[3][n[18].code],he(()=>t=!1)),!l&&p&32&&(l=!0,y.hasQuery=n[5],he(()=>l=!1)),e.$set(y)},i(h){s||(N(e.$$.fragment,h),s=!0)},o(h){U(e.$$.fragment,h),s=!1},d(h){ae(e,h)}}}function lt(n){let e,r,t=n[3][n[18].code]&&n[3][n[18].code].length>0&&rt(n);return{c(){t&&t.c(),e=pe()},l(l){t&&t.l(l),e=pe()},m(l,s){t&&t.m(l,s),O(l,e,s),r=!0},p(l,s){l[3][l[18].code]&&l[3][l[18].code].length>0?t?(t.p(l,s),s&24&&N(t,1)):(t=rt(l),t.c(),N(t,1),t.m(e.parentNode,e)):t&&(ie(),U(t,1,1,()=>{t=null}),ue())},i(l){r||(N(t),r=!0)},o(l){U(t),r=!1},d(l){t&&t.d(l),l&&c(e)}}}function at(n){let e,r;return e=new gt({props:{identifier:n[1],distance:500,$$slots:{spinner:[vr],error:[hr],noMore:[fr],noResults:[dr]},$$scope:{ctx:n}}}),e.$on("infinite",n[6]),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,l){le(e,t,l),r=!0},p(t,l){const s={};l&2&&(s.identifier=t[1]),l&2097152&&(s.$$scope={dirty:l,ctx:t}),e.$set(s)},i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){U(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function dr(n){let e;return{c(){e=_("div"),this.h()},l(r){e=b(r,"DIV",{slot:!0}),v(e).forEach(c),this.h()},h(){a(e,"slot","noResults")},m(r,t){O(r,e,t)},d(r){r&&c(e)}}}function fr(n){let e;return{c(){e=_("div"),this.h()},l(r){e=b(r,"DIV",{slot:!0}),v(e).forEach(c),this.h()},h(){a(e,"slot","noMore")},m(r,t){O(r,e,t)},d(r){r&&c(e)}}}function hr(n){let e;return{c(){e=_("div"),this.h()},l(r){e=b(r,"DIV",{slot:!0}),v(e).forEach(c),this.h()},h(){a(e,"slot","error")},m(r,t){O(r,e,t)},d(r){r&&c(e)}}}function vr(n){let e;return{c(){e=_("div"),this.h()},l(r){e=b(r,"DIV",{slot:!0}),v(e).forEach(c),this.h()},h(){a(e,"slot","spinner")},m(r,t){O(r,e,t)},d(r){r&&c(e)}}}function gr(n){let e,r,t,l,s,o,u,f,d,h;function p($){n[9]($)}function y($){n[10]($)}let x={};n[2]!==void 0&&(x.isLoading=n[2]),n[0].length!==void 0&&(x.found=n[0].length),l=new cr({props:x}),ve.push(()=>ge(l,"isLoading",p)),ve.push(()=>ge(l,"found",y));let k=n[2]&&tt(),I=n[4],E=[];for(let $=0;$U(E[$],1,1,()=>{E[$]=null});let j=!n[2]&&at(n);return{c(){e=_("meta"),r=S(),t=_("section"),te(l.$$.fragment),u=S(),k&&k.c(),f=S();for(let $=0;$s=!1)),!o&&V&1&&(o=!0,g.found=$[0].length,he(()=>o=!1)),l.$set(g),$[2]?k||(k=tt(),k.c(),k.m(t,f)):k&&(k.d(1),k=null),V&56){I=$[4];let B;for(B=0;B{j=null}),ue()):j?(j.p($,V),V&4&&N(j,1)):(j=at($),j.c(),N(j,1),j.m(t,null))},i($){if(!h){N(l.$$.fragment,$);for(let V=0;Vr(14,s=g)),be(n,ye,g=>r(5,o=g)),be(n,pt,g=>r(15,u=g)),be(n,De,g=>r(0,f=g));let d=[],h=nt,p=+new Date,y=!0;const x=De.subscribe(k);ht(x);function k(){r(8,h=nt),r(1,p=+new Date)}function I({detail:{loaded:g,complete:B}}){h{const B=new URLSearchParams(window.location.search).get("q");B&&(we.set(B),ye.set(!0)),await mt(),r(7,d=Object.values(u)),r(2,y=!1),o&&Ee(s)});function E(g){y=g,r(2,y)}function C(g){n.$$.not_equal(f.length,g)&&(f.length=g,De.set(f))}function j(g,B,w,D){w[D]=g,r(4,t),r(7,d),r(8,h)}function $(g,B){n.$$.not_equal(l[B.code],g)&&(l[B.code]=g,r(3,l),r(0,f))}function V(g){o=g,ye.set(o)}return n.$$.update=()=>{n.$$.dirty&384&&r(4,t=d.slice(0,h)),n.$$.dirty&1&&r(3,l=vt.groupBy(f,"country.code"))},[f,p,y,l,t,o,I,d,h,E,C,j,$,V]}class br extends ne{constructor(e){super();se(this,e,mr,gr,oe,{})}}export{br as default}; diff --git a/docs/_app/pages/index.svelte-70a5d121.js.br b/docs/_app/pages/index.svelte-70a5d121.js.br deleted file mode 100644 index 6231e13c9..000000000 Binary files a/docs/_app/pages/index.svelte-70a5d121.js.br and /dev/null differ diff --git a/docs/_app/pages/index.svelte-70a5d121.js.gz b/docs/_app/pages/index.svelte-70a5d121.js.gz deleted file mode 100644 index 4c9b102a3..000000000 Binary files a/docs/_app/pages/index.svelte-70a5d121.js.gz and /dev/null differ diff --git a/docs/_app/pages/index.svelte-925f19ed.js b/docs/_app/pages/index.svelte-925f19ed.js new file mode 100644 index 000000000..449c7aaea --- /dev/null +++ b/docs/_app/pages/index.svelte-925f19ed.js @@ -0,0 +1,5 @@ +import{S as ne,i as se,s as oe,Z as dt,w as te,x as re,y as le,q as N,o as H,B as ae,e as b,F as G,k as S,t as U,c as w,a as h,G as J,d as c,m as P,h as z,b as n,O as F,g as A,H as i,J as Z,$ as ft,n as ie,p as ue,a0 as _e,v as ot,L as ee,a1 as ht,j as ce,a2 as Te,M as xe,a3 as $e,N as he,a4 as Pe,l as we,a5 as Ve,K as it,a6 as ve,a7 as ge,a8 as me,I as Ae,R as vt,a9 as gt,_ as mt,aa as pt}from"../chunks/vendor-e06f8fa1.js";import{q as pe,c as _t,h as be,a as Ee,s as ut,f as De,b as Ie,d as bt,e as wt}from"../chunks/store-93a026ed.js";function kt(s){let e,r,t,a,l,o,u,d,f,v,_;return{c(){e=b("button"),r=G("svg"),t=G("path"),a=S(),l=b("span"),o=U("Copy to Clipboard"),u=S(),d=b("div"),f=U("Copied!"),this.h()},l(E){e=w(E,"BUTTON",{type:!0,class:!0});var m=h(e);r=J(m,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var k=h(r);t=J(k,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),h(t).forEach(c),k.forEach(c),a=P(m),l=w(m,"SPAN",{class:!0});var $=h(l);o=z($,"Copy to Clipboard"),$.forEach(c),u=P(m),d=w(m,"DIV",{role:!0,class:!0});var x=h(d);f=z(x,"Copied!"),x.forEach(c),m.forEach(c),this.h()},h(){n(t,"stroke-linecap","round"),n(t,"stroke-linejoin","round"),n(t,"stroke-width","2"),n(t,"d","M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"),n(r,"class","w-5 h-5"),n(r,"fill","none"),n(r,"stroke","currentColor"),n(r,"viewBox","0 0 24 24"),n(r,"xmlns","http://www.w3.org/2000/svg"),n(l,"class","hidden"),n(d,"role","tooltip"),n(d,"class","tooltip inline-block absolute right-10 top-0 py-2 px-3 text-xs text-gray-100 rounded-md bg-black svelte-1x4n8x"),F(d,"hidden",!s[1]),n(e,"type","button"),n(e,"class","relative flex items-center p-1 text-xs text-gray-500 dark:text-gray-100")},m(E,m){A(E,e,m),i(e,r),i(r,t),i(e,a),i(e,l),i(l,o),i(e,u),i(e,d),i(d,f),v||(_=Z(e,"click",function(){ft(s[3])&&s[3].apply(this,arguments)}),v=!0)},p(E,m){s=E,m&2&&F(d,"hidden",!s[1])},d(E){E&&c(e),v=!1,_()}}}function yt(s){let e,r;return e=new dt({props:{text:s[0],$$slots:{default:[kt,({copy:t})=>({3:t}),({copy:t})=>t?8:0]},$$scope:{ctx:s}}}),e.$on("copy",s[2]),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,a){le(e,t,a),r=!0},p(t,[a]){const l={};a&1&&(l.text=t[0]),a&26&&(l.$$scope={dirty:a,ctx:t}),e.$set(l)},i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){H(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function Et(s,e,r){let{text:t}=e,a=!1;function l(){r(1,a=!0),setTimeout(()=>{r(1,a=!1)},2e3)}return s.$$set=o=>{"text"in o&&r(0,t=o.text)},[t,a,l]}class ct extends ne{constructor(e){super();se(this,e,Et,yt,oe,{text:0})}}function Oe(s,e,r){const t=s.slice();return t[3]=e[r],t}function xt(s){let e,r=JSON.stringify(s[3].value)+"",t;return{c(){e=b("code"),t=U(r)},l(a){e=w(a,"CODE",{});var l=h(e);t=z(l,r),l.forEach(c)},m(a,l){A(a,e,l),i(e,t)},p:ee,i:ee,o:ee,d(a){a&&c(e)}}}function $t(s){let e,r;return e=new ht({props:{json:s[3].value}}),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,a){le(e,t,a),r=!0},p:ee,i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){H(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function qe(s){let e,r,t=s[3].name+"",a,l,o,u,d,f,v;const _=[$t,xt],E=[];function m(k,$){return Array.isArray(k[3].value)&&k[3].value.length?0:1}return u=m(s),d=E[u]=_[u](s),{c(){e=b("tr"),r=b("td"),a=U(t),l=S(),o=b("td"),d.c(),f=S(),this.h()},l(k){e=w(k,"TR",{});var $=h(e);r=w($,"TD",{class:!0});var x=h(r);a=z(x,t),x.forEach(c),l=P($),o=w($,"TD",{class:!0});var C=h(o);d.l(C),C.forEach(c),f=P($),$.forEach(c),this.h()},h(){n(r,"class","w-[7rem] md:w-[11rem] px-4 py-1 text-sm text-gray-400 whitespace-nowrap dark:text-gray-400 align-top"),n(o,"class","px-4 py-1 text-sm text-gray-600 dark:text-gray-100 align-top value break-words")},m(k,$){A(k,e,$),i(e,r),i(r,a),i(e,l),i(e,o),E[u].m(o,null),i(e,f),v=!0},p(k,$){d.p(k,$)},i(k){v||(N(d),v=!0)},o(k){H(d),v=!1},d(k){k&&c(e),E[u].d()}}}function Dt(s){let e,r,t,a=s[0],l=[];for(let u=0;uH(l[u],1,1,()=>{l[u]=null});return{c(){e=b("table"),r=b("tbody");for(let u=0;u{localStorage.getItem("color-theme")==="light"||!("color-theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches}),s.$$set=l=>{"data"in l&&r(1,t=l.data)},[a,t]}class Be extends ne{constructor(e){super();se(this,e,It,Dt,oe,{data:1})}}function He(s){let e,r,t;return r=new Be({props:{data:s[0]}}),{c(){e=b("div"),te(r.$$.fragment),this.h()},l(a){e=w(a,"DIV",{class:!0});var l=h(e);re(r.$$.fragment,l),l.forEach(c),this.h()},h(){n(e,"class","w-full flex px-2 py-4")},m(a,l){A(a,e,l),le(r,e,null),t=!0},p(a,l){const o={};l&1&&(o.data=a[0]),r.$set(o)},i(a){t||(N(r.$$.fragment,a),t=!0)},o(a){H(r.$$.fragment,a),t=!1},d(a){a&&c(e),ae(r)}}}function Vt(s){let e,r,t,a,l,o,u,d,f,v,_,E,m=s[0].url+"",k,$,x,C,j,D,T,g,V,y,I,p,B;V=new ct({props:{text:s[0].url}});let M=s[1]&&He(s);return{c(){e=b("div"),r=b("div"),t=b("div"),a=b("button"),l=G("svg"),o=G("path"),u=S(),d=G("svg"),f=G("circle"),v=S(),_=b("a"),E=b("span"),k=U(m),$=b("span"),x=G("svg"),C=G("path"),T=S(),g=b("div"),te(V.$$.fragment),y=S(),M&&M.c(),this.h()},l(L){e=w(L,"DIV",{class:!0});var O=h(e);r=w(O,"DIV",{class:!0});var Y=h(r);t=w(Y,"DIV",{class:!0});var Q=h(t);a=w(Q,"BUTTON",{class:!0});var W=h(a);l=J(W,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var q=h(l);o=J(q,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),h(o).forEach(c),q.forEach(c),W.forEach(c),u=P(Q),d=J(Q,"svg",{class:!0,viewBox:!0,xmlns:!0});var R=h(d);f=J(R,"circle",{cx:!0,cy:!0,r:!0}),h(f).forEach(c),R.forEach(c),v=P(Q),_=w(Q,"A",{class:!0,href:!0,title:!0,target:!0,rel:!0});var K=h(_);E=w(K,"SPAN",{class:!0});var X=h(E);k=z(X,m),X.forEach(c),$=w(K,"SPAN",{class:!0});var fe=h($);x=J(fe,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var de=h(x);C=J(de,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),h(C).forEach(c),de.forEach(c),fe.forEach(c),K.forEach(c),Q.forEach(c),T=P(Y),g=w(Y,"DIV",{class:!0});var ke=h(g);re(V.$$.fragment,ke),ke.forEach(c),Y.forEach(c),y=P(O),M&&M.l(O),O.forEach(c),this.h()},h(){n(o,"stroke-linecap","round"),n(o,"stroke-linejoin","round"),n(o,"stroke-width","2"),n(o,"d","M9 5l7 7-7 7"),n(l,"class","w-4 h-4"),n(l,"fill","none"),n(l,"stroke","currentColor"),n(l,"viewBox","0 0 24 24"),n(l,"xmlns","http://www.w3.org/2000/svg"),F(l,"rotate-90",s[1]),n(a,"class","w-4 h-4 flex justify-center align-middle text-gray-500 hover:text-blue-600 dark:text-gray-100 dark:hover:text-blue-600 shrink-0"),n(f,"cx","50"),n(f,"cy","50"),n(f,"r","50"),n(d,"class","w-2 h-2 flex shrink-0"),n(d,"viewBox","0 0 100 100"),n(d,"xmlns","http://www.w3.org/2000/svg"),F(d,"fill-green-500",s[0].status==="online"),F(d,"fill-yellow-500",["blocked","timeout"].includes(s[0].status)),F(d,"fill-red-500",s[0].status==="error"),n(E,"class","truncate max-w-[30rem]"),n(C,"stroke-linecap","round"),n(C,"stroke-linejoin","round"),n(C,"stroke-width","2"),n(C,"d","M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"),n(x,"class","w-4 h-4"),n(x,"fill","none"),n(x,"stroke","currentColor"),n(x,"viewBox","0 0 24 24"),n(x,"xmlns","http://www.w3.org/2000/svg"),n($,"class","inline-flex items-center pl-1 text-sm font-semibold text-gray-500 rounded-full"),n(_,"class","whitespace-nowrap text-sm text-gray-600 dark:text-gray-100 hover:text-blue-500 hover:underline inline-flex align-middle"),n(_,"href",j=s[0].url),n(_,"title",D=s[0].url),n(_,"target","_blank"),n(_,"rel","noopener noreferrer"),n(t,"class","flex space-x-3 items-center max-w-[90%]"),n(g,"class","flex shrink-0"),n(r,"class","w-full inline-flex justify-between px-3 py-2 border-gray-200 dark:border-gray-600"),F(r,"border-b",s[1]),n(e,"class","w-full bg-gray-100 dark:bg-gray-700 dark:border-gray-600 rounded-md border border-gray-200")},m(L,O){A(L,e,O),i(e,r),i(r,t),i(t,a),i(a,l),i(l,o),i(t,u),i(t,d),i(d,f),i(t,v),i(t,_),i(_,E),i(E,k),i(_,$),i($,x),i(x,C),i(r,T),i(r,g),le(V,g,null),i(e,y),M&&M.m(e,null),I=!0,p||(B=Z(a,"click",s[2]),p=!0)},p(L,[O]){O&2&&F(l,"rotate-90",L[1]),O&1&&F(d,"fill-green-500",L[0].status==="online"),O&1&&F(d,"fill-yellow-500",["blocked","timeout"].includes(L[0].status)),O&1&&F(d,"fill-red-500",L[0].status==="error"),(!I||O&1)&&m!==(m=L[0].url+"")&&ce(k,m),(!I||O&1&&j!==(j=L[0].url))&&n(_,"href",j),(!I||O&1&&D!==(D=L[0].url))&&n(_,"title",D);const Y={};O&1&&(Y.text=L[0].url),V.$set(Y),O&2&&F(r,"border-b",L[1]),L[1]?M?(M.p(L,O),O&2&&N(M,1)):(M=He(L),M.c(),N(M,1),M.m(e,null)):M&&(ie(),H(M,1,1,()=>{M=null}),ue())},i(L){I||(N(V.$$.fragment,L),N(M),I=!0)},o(L){H(V.$$.fragment,L),H(M),I=!1},d(L){L&&c(e),ae(V),M&&M.d(),p=!1,B()}}}function Tt(s,e,r){let{stream:t}=e,a=!1;const l=()=>{r(1,a=!a)};return s.$$set=o=>{"stream"in o&&r(0,t=o.stream)},[t,a,l]}class Bt extends ne{constructor(e){super();se(this,e,Tt,Vt,oe,{stream:0})}}function Ue(s,e,r){const t=s.slice();return t[3]=e[r],t}function ze(s){let e,r;return e=new Bt({props:{stream:s[3]}}),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,a){le(e,t,a),r=!0},p(t,a){const l={};a&1&&(l.stream=t[3]),e.$set(l)},i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){H(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function jt(s){let e,r,t,a,l,o,u,d,f,v,_,E,m,k,$,x,C,j,D,T=s[0],g=[];for(let y=0;yH(g[y],1,1,()=>{g[y]=null});return{c(){e=b("div"),r=b("div"),t=b("div"),a=b("h3"),l=b("span"),o=G("svg"),u=G("path"),d=S(),f=U(s[1]),v=S(),_=b("button"),E=G("svg"),m=G("path"),k=S(),$=b("div"),x=b("div");for(let y=0;y{"streams"in o&&r(0,a=o.streams),"title"in o&&r(1,l=o.title)},[a,l,t]}class Ct extends ne{constructor(e){super();se(this,e,Mt,jt,oe,{streams:0,title:1})}}function Qe(s){let e,r,t;return r=new Be({props:{data:s[0]}}),{c(){e=b("div"),te(r.$$.fragment),this.h()},l(a){e=w(a,"DIV",{class:!0});var l=h(e);re(r.$$.fragment,l),l.forEach(c),this.h()},h(){n(e,"class","w-full flex px-2 py-4")},m(a,l){A(a,e,l),le(r,e,null),t=!0},p(a,l){const o={};l&1&&(o.data=a[0]),r.$set(o)},i(a){t||(N(r.$$.fragment,a),t=!0)},o(a){H(r.$$.fragment,a),t=!1},d(a){a&&c(e),ae(r)}}}function Lt(s){let e,r,t,a,l,o,u,d,f,v=s[0].url+"",_,E,m,k,$,x,C,j,D,T,g,V,y;D=new ct({props:{text:s[0].url}});let I=s[1]&&Qe(s);return{c(){e=b("div"),r=b("div"),t=b("div"),a=b("button"),l=G("svg"),o=G("path"),u=S(),d=b("a"),f=b("span"),_=U(v),E=b("span"),m=G("svg"),k=G("path"),C=S(),j=b("div"),te(D.$$.fragment),T=S(),I&&I.c(),this.h()},l(p){e=w(p,"DIV",{class:!0});var B=h(e);r=w(B,"DIV",{class:!0});var M=h(r);t=w(M,"DIV",{class:!0});var L=h(t);a=w(L,"BUTTON",{class:!0});var O=h(a);l=J(O,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var Y=h(l);o=J(Y,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),h(o).forEach(c),Y.forEach(c),O.forEach(c),u=P(L),d=w(L,"A",{class:!0,href:!0,title:!0,target:!0});var Q=h(d);f=w(Q,"SPAN",{class:!0});var W=h(f);_=z(W,v),W.forEach(c),E=w(Q,"SPAN",{class:!0});var q=h(E);m=J(q,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var R=h(m);k=J(R,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),h(k).forEach(c),R.forEach(c),q.forEach(c),Q.forEach(c),L.forEach(c),C=P(M),j=w(M,"DIV",{class:!0});var K=h(j);re(D.$$.fragment,K),K.forEach(c),M.forEach(c),T=P(B),I&&I.l(B),B.forEach(c),this.h()},h(){n(o,"stroke-linecap","round"),n(o,"stroke-linejoin","round"),n(o,"stroke-width","2"),n(o,"d","M9 5l7 7-7 7"),n(l,"class","w-4 h-4"),n(l,"fill","none"),n(l,"stroke","currentColor"),n(l,"viewBox","0 0 24 24"),n(l,"xmlns","http://www.w3.org/2000/svg"),F(l,"rotate-90",s[1]),n(a,"class","w-4 h-4 flex justify-center align-middle text-gray-500 hover:text-blue-600 dark:text-gray-100 dark:hover:text-blue-600 shrink-0"),n(f,"class","truncate max-w-[30rem]"),n(k,"stroke-linecap","round"),n(k,"stroke-linejoin","round"),n(k,"stroke-width","2"),n(k,"d","M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"),n(m,"class","w-4 h-4"),n(m,"fill","none"),n(m,"stroke","currentColor"),n(m,"viewBox","0 0 24 24"),n(m,"xmlns","http://www.w3.org/2000/svg"),n(E,"class","inline-flex items-center pl-1 text-sm font-semibold text-gray-500 rounded-full"),n(d,"class","whitespace-nowrap text-sm text-gray-600 dark:text-gray-100 hover:text-blue-500 hover:underline inline-flex align-middle"),n(d,"href",$=s[0].url),n(d,"title",x=s[0].url),n(d,"target","_blank"),n(t,"class","flex space-x-3 items-center max-w-[90%]"),n(j,"class","flex shrink-0"),n(r,"class","w-full inline-flex justify-between px-3 py-2 border-gray-200 dark:border-gray-600"),F(r,"border-b",s[1]),n(e,"class","w-full bg-gray-100 dark:bg-gray-700 dark:border-gray-600 rounded-md border border-gray-200")},m(p,B){A(p,e,B),i(e,r),i(r,t),i(t,a),i(a,l),i(l,o),i(t,u),i(t,d),i(d,f),i(f,_),i(d,E),i(E,m),i(m,k),i(r,C),i(r,j),le(D,j,null),i(e,T),I&&I.m(e,null),g=!0,V||(y=Z(a,"click",s[2]),V=!0)},p(p,[B]){B&2&&F(l,"rotate-90",p[1]),(!g||B&1)&&v!==(v=p[0].url+"")&&ce(_,v),(!g||B&1&&$!==($=p[0].url))&&n(d,"href",$),(!g||B&1&&x!==(x=p[0].url))&&n(d,"title",x);const M={};B&1&&(M.text=p[0].url),D.$set(M),B&2&&F(r,"border-b",p[1]),p[1]?I?(I.p(p,B),B&2&&N(I,1)):(I=Qe(p),I.c(),N(I,1),I.m(e,null)):I&&(ie(),H(I,1,1,()=>{I=null}),ue())},i(p){g||(N(D.$$.fragment,p),N(I),g=!0)},o(p){H(D.$$.fragment,p),H(I),g=!1},d(p){p&&c(e),ae(D),I&&I.d(),V=!1,y()}}}function Nt(s,e,r){let{guide:t}=e,a=!1;const l=()=>{r(1,a=!a)};return s.$$set=o=>{"guide"in o&&r(0,t=o.guide)},[t,a,l]}class St extends ne{constructor(e){super();se(this,e,Nt,Lt,oe,{guide:0})}}function Re(s,e,r){const t=s.slice();return t[3]=e[r],t}function Ye(s){let e,r;return e=new St({props:{guide:s[3]}}),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,a){le(e,t,a),r=!0},p(t,a){const l={};a&1&&(l.guide=t[3]),e.$set(l)},i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){H(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function Pt(s){let e,r,t,a,l,o,u,d,f,v,_,E,m,k,$,x,C,j,D,T=s[0],g=[];for(let y=0;yH(g[y],1,1,()=>{g[y]=null});return{c(){e=b("div"),r=b("div"),t=b("div"),a=b("h3"),l=b("span"),o=G("svg"),u=G("path"),d=S(),f=U(s[1]),v=S(),_=b("button"),E=G("svg"),m=G("path"),k=S(),$=b("div"),x=b("div");for(let y=0;y{"guides"in o&&r(0,a=o.guides),"title"in o&&r(1,l=o.title)},[a,l,t]}class Ot extends ne{constructor(e){super();se(this,e,At,Pt,oe,{guides:0,title:1})}}function Ge(s,e,r){const t=s.slice();return t[10]=e[r],t}function Je(s,e,r){const t=s.slice();return t[13]=e[r],t[15]=r,t}function qt(s){let e=s[10].value+"",r;return{c(){r=U(e)},l(t){r=z(t,e)},m(t,a){A(t,r,a)},p:ee,d(t){t&&c(r)}}}function Ht(s){let e,r=s[10].value+"",t,a,l,o;return{c(){e=b("a"),t=U(r),a=b("span"),l=G("svg"),o=G("path"),this.h()},l(u){e=w(u,"A",{href:!0,class:!0,target:!0,rel:!0});var d=h(e);t=z(d,r),a=w(d,"SPAN",{class:!0});var f=h(a);l=J(f,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var v=h(l);o=J(v,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),h(o).forEach(c),v.forEach(c),f.forEach(c),d.forEach(c),this.h()},h(){n(o,"stroke-linecap","round"),n(o,"stroke-linejoin","round"),n(o,"stroke-width","2"),n(o,"d","M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"),n(l,"class","w-4 h-4"),n(l,"fill","none"),n(l,"stroke","currentColor"),n(l,"viewBox","0 0 24 24"),n(l,"xmlns","http://www.w3.org/2000/svg"),n(a,"class","inline-flex items-center pl-1 text-sm font-semibold text-gray-400 rounded-full"),n(e,"href",s[10].value),n(e,"class","underline hover:text-blue-500 inline-flex align-middle"),n(e,"target","_blank"),n(e,"rel","noopener noreferrer")},m(u,d){A(u,e,d),i(e,t),i(e,a),i(a,l),i(l,o)},p:ee,d(u){u&&c(e)}}}function Ut(s){let e,r=s[10].value,t=[];for(let a=0;a0&&Yt();function f(){return s[6](s[10],s[13])}return{c(){d&&d.c(),e=S(),r=b("button"),a=U(t),l=S(),this.h()},l(v){d&&d.l(v),e=P(v),r=w(v,"BUTTON",{class:!0});var _=h(r);a=z(_,t),l=P(_),_.forEach(c),this.h()},h(){n(r,"class","underline hover:text-blue-500")},m(v,_){d&&d.m(v,_),A(v,e,_),A(v,r,_),i(r,a),i(r,l),o||(u=Z(r,"click",f),o=!0)},p(v,_){s=v},d(v){d&&d.d(v),v&&c(e),v&&c(r),o=!1,u()}}}function We(s){let e,r,t,a=s[10].name+"",l,o,u,d,f;function v(m,k){return m[10].type==="image"?Rt:m[10].type==="channel"?Qt:m[10].type==="link"?zt:m[10].type==="link[]"?Ut:m[10].type==="external_link"?Ht:qt}let E=v(s)(s);return{c(){e=b("tr"),r=b("td"),t=b("div"),l=U(a),o=S(),u=b("td"),d=b("div"),E.c(),f=S(),this.h()},l(m){e=w(m,"TR",{});var k=h(e);r=w(k,"TD",{class:!0});var $=h(r);t=w($,"DIV",{class:!0});var x=h(t);l=z(x,a),x.forEach(c),$.forEach(c),o=P(k),u=w(k,"TD",{class:!0});var C=h(u);d=w(C,"DIV",{class:!0});var j=h(d);E.l(j),j.forEach(c),C.forEach(c),f=P(k),k.forEach(c),this.h()},h(){n(t,"class","flex px-4 py-1 text-sm text-gray-400 whitespace-nowrap dark:text-gray-400"),n(r,"class","align-top w-[11rem]"),n(d,"class","flex px-4 py-1 text-sm text-gray-700 dark:text-gray-100 flex-wrap"),n(u,"class","align-top")},m(m,k){A(m,e,k),i(e,r),i(r,t),i(t,l),i(e,o),i(e,u),i(u,d),E.m(d,null),i(e,f)},p(m,k){E.p(m,k)},d(m){m&&c(e),E.d()}}}function Gt(s){let e,r,t,a,l=s[0],o=[];for(let u=0;ur(8,t=m)),he(s,_t,m=>r(9,a=m));let{data:l}=e,{close:o}=e,u=null;if(l.replaced_by){const m=a.find(k=>k.id===l.replaced_by);m&&(u=m.name)}const d=[{name:"logo",type:"image",value:l.logo},{name:"name",type:"string",value:l.name},{name:"native_name",type:"string",value:l.native_name},{name:"network",type:"link",value:l.network},{name:"country",type:"link",value:l.country.name},{name:"subdivision",type:"link",value:l.subdivision?l.subdivision.name:null},{name:"city",type:"link",value:l.city},{name:"broadcast_area",type:"link[]",value:l.broadcast_area.map(m=>m.name)},{name:"languages",type:"link[]",value:l.languages.map(m=>m.name)},{name:"categories",type:"link[]",value:l.categories.map(m=>m.name)},{name:"is_nsfw",type:"link",value:l.is_nsfw.toString()},{name:"launched",type:"date",value:l.launched?Pe(l.launched).format("D MMMM YYYY"):null},{name:"closed",type:"date",value:l.closed?Pe(l.closed).format("D MMMM YYYY"):null},{name:"replaced_by",type:"channel",value:u},{name:"website",type:"external_link",value:l.website}].filter(m=>Array.isArray(m.value)?m.value.length:m.value);function f(m,k){k=k.includes(" ")?`"${k}"`:k;const $=`${m}:${k}`;t!==$&&(pe.set($),be.set(!0),Ee($),ut("q",$)),o()}const v=m=>f("name",m.value),_=m=>f(m.name,m.value),E=(m,k)=>f(m.name,k);return s.$$set=m=>{"data"in m&&r(2,l=m.data),"close"in m&&r(3,o=m.close)},[d,f,l,o,v,_,E]}class Ft extends ne{constructor(e){super();se(this,e,Jt,Gt,oe,{data:2,close:3})}}function Wt(s){let e,r;return e=new Ft({props:{data:s[0],close:s[3]}}),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,a){le(e,t,a),r=!0},p(t,a){const l={};a&1&&(l.data=t[0]),e.$set(l)},i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){H(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function Kt(s){let e,r,t,a;return t=new Be({props:{data:s[0]._raw}}),{c(){e=b("div"),r=b("div"),te(t.$$.fragment),this.h()},l(l){e=w(l,"DIV",{class:!0});var o=h(e);r=w(o,"DIV",{class:!0});var u=h(r);re(t.$$.fragment,u),u.forEach(c),o.forEach(c),this.h()},h(){n(r,"class","flex p-4 bg-gray-50 dark:bg-gray-700 rounded-md w-full"),n(e,"class","pb-8 px-8 pt-6")},m(l,o){A(l,e,o),i(e,r),le(t,r,null),a=!0},p(l,o){const u={};o&1&&(u.data=l[0]._raw),t.$set(u)},i(l){a||(N(t.$$.fragment,l),a=!0)},o(l){H(t.$$.fragment,l),a=!1},d(l){l&&c(e),ae(t)}}}function Zt(s){let e,r,t,a,l,o=s[0].name+"",u,d,f,v,_,E,m,k,$,x,C,j,D,T,g,V,y,I,p,B,M,L,O;const Y=[Kt,Wt],Q=[];function W(q,R){return q[1]==="json"?0:q[1]==="html"?1:-1}return~(p=W(s))&&(B=Q[p]=Y[p](s)),{c(){e=b("div"),r=b("div"),t=b("div"),a=b("div"),l=b("h3"),u=U(o),d=S(),f=b("div"),v=b("div"),_=b("button"),E=U("HTML"),k=S(),$=b("button"),x=U("JSON"),j=S(),D=b("div"),T=b("button"),g=G("svg"),V=G("path"),y=S(),I=b("div"),B&&B.c(),this.h()},l(q){e=w(q,"DIV",{class:!0});var R=h(e);r=w(R,"DIV",{class:!0});var K=h(r);t=w(K,"DIV",{class:!0});var X=h(t);a=w(X,"DIV",{class:!0});var fe=h(a);l=w(fe,"H3",{class:!0});var de=h(l);u=z(de,o),de.forEach(c),fe.forEach(c),d=P(X),f=w(X,"DIV",{class:!0});var ke=h(f);v=w(ke,"DIV",{class:!0,role:!0});var ye=h(v);_=w(ye,"BUTTON",{type:!0,"area-selected":!0,class:!0});var je=h(_);E=z(je,"HTML"),je.forEach(c),k=P(ye),$=w(ye,"BUTTON",{type:!0,"area-selected":!0,class:!0});var Me=h($);x=z(Me,"JSON"),Me.forEach(c),ye.forEach(c),ke.forEach(c),j=P(X),D=w(X,"DIV",{class:!0});var Ce=h(D);T=w(Ce,"BUTTON",{type:!0,class:!0});var Le=h(T);g=J(Le,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var Ne=h(g);V=J(Ne,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),h(V).forEach(c),Ne.forEach(c),Le.forEach(c),Ce.forEach(c),X.forEach(c),y=P(K),I=w(K,"DIV",{class:!0});var Se=h(I);B&&B.l(Se),Se.forEach(c),K.forEach(c),R.forEach(c),this.h()},h(){n(l,"class","text-l font-medium text-gray-900 dark:text-white"),n(a,"class","w-1/3 overflow-hidden"),n(_,"type","button"),n(_,"area-selected",m=s[1]==="html"),n(_,"class","py-2 px-4 text-xs font-medium text-gray-900 bg-white rounded-l-lg border border-gray-200 hover:bg-gray-100 dark:border-gray-700 dark:bg-transparent dark:text-white dark:hover:text-white dark:hover:bg-gray-600 svelte-1wpa6us"),F(_,"active",s[1]==="html"),n($,"type","button"),n($,"area-selected",C=s[1]==="html"),n($,"class","py-2 px-4 text-xs font-medium text-gray-900 bg-white border-t border-b border-r rounded-r-lg border-gray-200 hover:bg-gray-100 dark:bg-transparent dark:border-gray-700 dark:text-white dark:hover:text-white dark:hover:bg-gray-600 svelte-1wpa6us"),F($,"active",s[1]==="json"),n(v,"class","inline-flex rounded-md"),n(v,"role","group"),n(f,"class","inline-flex justify-center w-1/3"),n(V,"fill-rule","evenodd"),n(V,"d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"),n(V,"clip-rule","evenodd"),n(g,"class","w-5 h-5"),n(g,"fill","currentColor"),n(g,"viewBox","0 0 20 20"),n(g,"xmlns","http://www.w3.org/2000/svg"),n(T,"type","button"),n(T,"class","text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-full text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white"),n(D,"class","inline-flex w-1/3 justify-end"),n(t,"class","flex justify-between items-center py-4 pl-5 pr-4 rounded-t border-b dark:border-gray-700"),n(I,"class","overflow-y-scroll overflow-x-hidden w-full"),n(r,"class","relative bg-white rounded-md shadow dark:bg-gray-800 w-full max-w-4xl"),n(e,"class","relative px-2 py-[4rem] flex justify-center")},m(q,R){A(q,e,R),i(e,r),i(r,t),i(t,a),i(a,l),i(l,u),i(t,d),i(t,f),i(f,v),i(v,_),i(_,E),i(v,k),i(v,$),i($,x),i(t,j),i(t,D),i(D,T),i(T,g),i(g,V),i(r,y),i(r,I),~p&&Q[p].m(I,null),M=!0,L||(O=[Z(_,"click",s[4]),Z($,"click",s[5]),Z(T,"click",s[3]),Z(e,"click",Te(s[3]))],L=!0)},p(q,[R]){(!M||R&1)&&o!==(o=q[0].name+"")&&ce(u,o),(!M||R&2&&m!==(m=q[1]==="html"))&&n(_,"area-selected",m),R&2&&F(_,"active",q[1]==="html"),(!M||R&2&&C!==(C=q[1]==="html"))&&n($,"area-selected",C),R&2&&F($,"active",q[1]==="json");let K=p;p=W(q),p===K?~p&&Q[p].p(q,R):(B&&(ie(),H(Q[K],1,1,()=>{Q[K]=null}),ue()),~p?(B=Q[p],B?B.p(q,R):(B=Q[p]=Y[p](q),B.c()),N(B,1),B.m(I,null)):B=null)},i(q){M||(N(B),M=!0)},o(q){H(B),M=!1},d(q){q&&c(e),~p&&Q[p].d(),L=!1,xe(O)}}}function Xt(s,e,r){const{close:t}=$e("simple-modal");let{channel:a}=e,l="html";function o(v){r(1,l=v)}const u=()=>{t()},d=()=>o("html"),f=()=>o("json");return s.$$set=v=>{"channel"in v&&r(0,a=v.channel)},[a,l,o,u,d,f]}class er extends ne{constructor(e){super();se(this,e,Xt,Zt,oe,{channel:0})}}function Ke(s){let e,r,t;return{c(){e=b("img"),this.h()},l(a){e=w(a,"IMG",{class:!0,loading:!0,referrerpolicy:!0,src:!0,alt:!0}),this.h()},h(){n(e,"class","block align-middle mx-auto max-w-[6rem] max-h-[3rem] text-sm text-gray-400 dark:text-gray-600 cursor-default"),n(e,"loading","lazy"),n(e,"referrerpolicy","no-referrer"),Ve(e.src,r=s[0].logo)||n(e,"src",r),n(e,"alt",t=s[0].name)},m(a,l){A(a,e,l)},p(a,l){l&1&&!Ve(e.src,r=a[0].logo)&&n(e,"src",r),l&1&&t!==(t=a[0].name)&&n(e,"alt",t)},d(a){a&&c(e)}}}function tr(s){let e,r,t,a,l,o=s[2].length+"",u,d,f,v,_,E,m;return{c(){e=b("button"),r=G("svg"),t=G("path"),a=S(),l=b("div"),u=U(o),d=S(),f=b("div"),v=U("streams"),_=S(),this.h()},l(k){e=w(k,"BUTTON",{class:!0});var $=h(e);r=J($,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var x=h(r);t=J(x,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),h(t).forEach(c),x.forEach(c),a=P($),l=w($,"DIV",{class:!0});var C=h(l);u=z(C,o),C.forEach(c),d=P($),f=w($,"DIV",{});var j=h(f);v=z(j,"streams"),j.forEach(c),$.forEach(c),_=P(k),this.h()},h(){n(t,"stroke-linecap","round"),n(t,"stroke-linejoin","round"),n(t,"stroke-width","2"),n(t,"d","M5.636 18.364a9 9 0 010-12.728m12.728 0a9 9 0 010 12.728m-9.9-2.829a5 5 0 010-7.07m7.072 0a5 5 0 010 7.07M13 12a1 1 0 11-2 0 1 1 0 012 0z"),n(r,"class","w-5 h-5"),n(r,"fill","none"),n(r,"stroke","currentColor"),n(r,"viewBox","0 0 24 24"),n(r,"xmlns","http://www.w3.org/2000/svg"),n(l,"class","font-semibold"),n(e,"class","text-sm text-gray-500 dark:text-gray-100 inline-flex space-x-1 flex items-center hover:text-blue-500 dark:hover:text-blue-400")},m(k,$){A(k,e,$),i(e,r),i(r,t),i(e,a),i(e,l),i(l,u),i(e,d),i(e,f),i(f,v),A(k,_,$),E||(m=Z(e,"click",s[4]),E=!0)},p:ee,d(k){k&&c(e),k&&c(_),E=!1,m()}}}function rr(s){let e,r,t,a,l,o=s[1].length+"",u,d,f,v,_,E;return{c(){e=b("button"),r=G("svg"),t=G("path"),a=S(),l=b("div"),u=U(o),d=S(),f=b("div"),v=U("guides"),this.h()},l(m){e=w(m,"BUTTON",{class:!0});var k=h(e);r=J(k,"svg",{class:!0,fill:!0,stroke:!0,viewBox:!0,xmlns:!0});var $=h(r);t=J($,"path",{"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-width":!0,d:!0}),h(t).forEach(c),$.forEach(c),a=P(k),l=w(k,"DIV",{class:!0});var x=h(l);u=z(x,o),x.forEach(c),d=P(k),f=w(k,"DIV",{});var C=h(f);v=z(C,"guides"),C.forEach(c),k.forEach(c),this.h()},h(){n(t,"stroke-linecap","round"),n(t,"stroke-linejoin","round"),n(t,"stroke-width","2"),n(t,"d","M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"),n(r,"class","w-5 h-5"),n(r,"fill","none"),n(r,"stroke","currentColor"),n(r,"viewBox","0 0 24 24"),n(r,"xmlns","http://www.w3.org/2000/svg"),n(l,"class","font-semibold"),n(e,"class","text-sm text-gray-500 dark:text-gray-100 inline-flex space-x-1 flex items-center hover:text-blue-500 dark:hover:text-blue-400")},m(m,k){A(m,e,k),i(e,r),i(r,t),i(e,a),i(e,l),i(l,u),i(e,d),i(e,f),i(f,v),_||(E=Z(e,"click",s[3]),_=!0)},p:ee,d(m){m&&c(e),_=!1,E()}}}function lr(s){let e,r,t,a,l,o,u,d=s[0].name+"",f,v,_,E,m,k=s[0].id+"",$,x,C,j,D,T,g,V=s[0].logo&&Ke(s),y=s[2].length&&tr(s),I=s[1].length&&rr(s);return{c(){e=b("tr"),r=b("td"),t=b("div"),V&&V.c(),a=S(),l=b("td"),o=b("div"),u=b("a"),f=U(d),v=S(),_=b("td"),E=b("div"),m=b("code"),$=U(k),x=S(),C=b("td"),j=b("div"),y&&y.c(),D=we(),I&&I.c(),this.h()},l(p){e=w(p,"TR",{class:!0});var B=h(e);r=w(B,"TD",{class:!0});var M=h(r);t=w(M,"DIV",{class:!0});var L=h(t);V&&V.l(L),L.forEach(c),M.forEach(c),a=P(B),l=w(B,"TD",{class:!0});var O=h(l);o=w(O,"DIV",{});var Y=h(o);u=w(Y,"A",{href:!0,rel:!0,role:!0,tabindex:!0,class:!0});var Q=h(u);f=z(Q,d),Q.forEach(c),Y.forEach(c),O.forEach(c),v=P(B),_=w(B,"TD",{class:!0});var W=h(_);E=w(W,"DIV",{});var q=h(E);m=w(q,"CODE",{class:!0});var R=h(m);$=z(R,k),R.forEach(c),q.forEach(c),W.forEach(c),x=P(B),C=w(B,"TD",{class:!0});var K=h(C);j=w(K,"DIV",{class:!0});var X=h(j);y&&y.l(X),D=we(),I&&I.l(X),X.forEach(c),K.forEach(c),B.forEach(c),this.h()},h(){n(t,"class","inline-flex w-full align-middle justify-center whitespace-nowrap overflow-hidden"),n(r,"class","pl-2 pr-4 md:pr-7"),n(u,"href","/"),n(u,"rel","nofollow"),n(u,"role","button"),n(u,"tabindex","0"),n(u,"class","text-left font-normal text-gray-600 dark:text-white hover:underline hover:text-blue-500"),n(l,"class","px-2"),n(m,"class","break-words text-sm text-gray-500 bg-gray-100 dark:text-gray-300 dark:bg-gray-700 px-2 py-1 rounded-sm select-all cursor-text font-mono"),n(_,"class","px-2"),n(j,"class","text-right flex justify-end space-x-3 items-center"),n(C,"class","pl-2 pr-5"),n(e,"class","border-b last:border-b-0 border-gray-200 dark:border-gray-700 hover:bg-gray-50 hover:dark:bg-gray-700 h-16")},m(p,B){A(p,e,B),i(e,r),i(r,t),V&&V.m(t,null),i(e,a),i(e,l),i(l,o),i(o,u),i(u,f),i(e,v),i(e,_),i(_,E),i(E,m),i(m,$),i(e,x),i(e,C),i(C,j),y&&y.m(j,null),i(j,D),I&&I.m(j,null),T||(g=Z(u,"click",it(s[5])),T=!0)},p(p,[B]){p[0].logo?V?V.p(p,B):(V=Ke(p),V.c(),V.m(t,null)):V&&(V.d(1),V=null),B&1&&d!==(d=p[0].name+"")&&ce(f,d),B&1&&k!==(k=p[0].id+"")&&ce($,k),p[2].length&&y.p(p,B),p[1].length&&I.p(p,B)},i:ee,o:ee,d(p){p&&c(e),V&&V.d(),y&&y.d(),I&&I.d(),T=!1,g()}}}function ar(s,e,r){let{channel:t}=e;const a=t._guides,l=t._streams,{open:o}=$e("simple-modal"),u=()=>o(Ot,{guides:a,title:t.name},{transitionBgProps:{duration:0},transitionWindowProps:{duration:0}}),d=()=>o(Ct,{streams:l,title:t.name},{transitionBgProps:{duration:0},transitionWindowProps:{duration:0}}),f=()=>{o(er,{channel:t},{transitionBgProps:{duration:0},transitionWindowProps:{duration:0}})};return s.$$set=v=>{"channel"in v&&r(0,t=v.channel)},[t,a,l,u,d,f]}class nr extends ne{constructor(e){super();se(this,e,ar,lr,oe,{channel:0})}}function Ze(s,e,r){const t=s.slice();return t[2]=e[r],t[3]=e,t[4]=r,t}function Xe(s){let e,r,t;function a(o){s[1](o,s[2],s[3],s[4])}let l={};return s[2]!==void 0&&(l.channel=s[2]),e=new nr({props:l}),ge.push(()=>me(e,"channel",a)),{c(){te(e.$$.fragment)},l(o){re(e.$$.fragment,o)},m(o,u){le(e,o,u),t=!0},p(o,u){s=o;const d={};!r&&u&1&&(r=!0,d.channel=s[2],ve(()=>r=!1)),e.$set(d)},i(o){t||(N(e.$$.fragment,o),t=!0)},o(o){H(e.$$.fragment,o),t=!1},d(o){ae(e,o)}}}function sr(s){let e,r,t,a,l,o,u,d,f,v,_,E,m,k,$,x,C,j,D,T,g,V=s[0],y=[];for(let p=0;pH(y[p],1,1,()=>{y[p]=null});return{c(){e=b("div"),r=b("div"),t=b("div"),a=b("div"),l=b("table"),o=b("thead"),u=b("tr"),d=b("th"),f=S(),v=b("th"),_=U("Name"),E=S(),m=b("th"),k=U("TVG-ID"),$=S(),x=b("th"),C=b("span"),j=U("Actions"),D=S(),T=b("tbody");for(let p=0;p{"channels"in l&&r(0,t=l.channels)},[t,a]}class ir extends ne{constructor(e){super();se(this,e,or,sr,oe,{channels:0})}}function et(s){let e,r,t,a,l,o,u;function d(v){s[5](v)}let f={};return s[1]!==void 0&&(f.channels=s[1]),t=new ir({props:f}),ge.push(()=>me(t,"channels",d)),{c(){e=b("div"),r=b("div"),te(t.$$.fragment),this.h()},l(v){e=w(v,"DIV",{id:!0,"aria-labelledby":!0});var _=h(e);r=w(_,"DIV",{class:!0});var E=h(r);re(t.$$.fragment,E),E.forEach(c),_.forEach(c),this.h()},h(){n(r,"class","border border-gray-200 dark:border-gray-700 dark:bg-gray-900 rounded-b-md overflow-hidden"),n(e,"id",l="accordion-body-"+s[0].code),n(e,"aria-labelledby",o="accordion-heading-"+s[0].code)},m(v,_){A(v,e,_),i(e,r),le(t,r,null),u=!0},p(v,_){const E={};!a&&_&2&&(a=!0,E.channels=v[1],ve(()=>a=!1)),t.$set(E),(!u||_&1&&l!==(l="accordion-body-"+v[0].code))&&n(e,"id",l),(!u||_&1&&o!==(o="accordion-heading-"+v[0].code))&&n(e,"aria-labelledby",o)},i(v){u||(N(t.$$.fragment,v),u=!0)},o(v){H(t.$$.fragment,v),u=!1},d(v){v&&c(e),ae(t)}}}function ur(s){let e,r,t,a,l=s[0].flag+"",o,u,d=s[0].name+"",f,v,_,E,m,k,$,x,C,j,D=s[2]&&et(s);return{c(){e=b("div"),r=b("h2"),t=b("button"),a=b("span"),o=U(l),u=U("\xA0"),f=U(d),v=S(),_=G("svg"),E=G("path"),$=S(),D&&D.c(),this.h()},l(T){e=w(T,"DIV",{class:!0});var g=h(e);r=w(g,"H2",{id:!0});var V=h(r);t=w(V,"BUTTON",{type:!0,class:!0,"aria-expanded":!0,"aria-controls":!0});var y=h(t);a=w(y,"SPAN",{});var I=h(a);o=z(I,l),u=z(I,"\xA0"),f=z(I,d),I.forEach(c),v=P(y),_=J(y,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var p=h(_);E=J(p,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),h(E).forEach(c),p.forEach(c),y.forEach(c),V.forEach(c),$=P(g),D&&D.l(g),g.forEach(c),this.h()},h(){n(E,"fill-rule","evenodd"),n(E,"d","M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"),n(E,"clip-rule","evenodd"),n(_,"class","w-6 h-6 shrink-0"),n(_,"fill","currentColor"),n(_,"viewBox","0 0 20 20"),n(_,"xmlns","http://www.w3.org/2000/svg"),F(_,"rotate-180",s[2]),n(t,"type","button"),n(t,"class","flex items-center focus:ring-0 dark:focus:ring-gray-800 justify-between p-4 w-full font-medium text-left border border-gray-200 dark:border-gray-700 text-gray-900 dark:text-white bg-white dark:bg-gray-800"),n(t,"aria-expanded",s[2]),n(t,"aria-controls",m="accordion-body-"+s[0].code),F(t,"rounded-t-md",s[2]),F(t,"rounded-md",!s[2]),F(t,"border-b-0",s[2]),n(r,"id",k="accordion-heading-"+s[0].code),n(e,"class","mb-3")},m(T,g){A(T,e,g),i(e,r),i(r,t),i(t,a),i(a,o),i(a,u),i(a,f),i(t,v),i(t,_),i(_,E),i(e,$),D&&D.m(e,null),x=!0,C||(j=Z(t,"click",s[3]),C=!0)},p(T,[g]){(!x||g&1)&&l!==(l=T[0].flag+"")&&ce(o,l),(!x||g&1)&&d!==(d=T[0].name+"")&&ce(f,d),g&4&&F(_,"rotate-180",T[2]),(!x||g&4)&&n(t,"aria-expanded",T[2]),(!x||g&1&&m!==(m="accordion-body-"+T[0].code))&&n(t,"aria-controls",m),g&4&&F(t,"rounded-t-md",T[2]),g&4&&F(t,"rounded-md",!T[2]),g&4&&F(t,"border-b-0",T[2]),(!x||g&1&&k!==(k="accordion-heading-"+T[0].code))&&n(r,"id",k),T[2]?D?(D.p(T,g),g&4&&N(D,1)):(D=et(T),D.c(),N(D,1),D.m(e,null)):D&&(ie(),H(D,1,1,()=>{D=null}),ue())},i(T){x||(N(D),x=!0)},o(T){H(D),x=!1},d(T){T&&c(e),D&&D.d(),C=!1,j()}}}function cr(s,e,r){let t,{country:a}=e,{channels:l=[]}=e,{hasQuery:o}=e;function u(){r(0,a.expanded=!a.expanded,a)}function d(f){l=f,r(1,l)}return s.$$set=f=>{"country"in f&&r(0,a=f.country),"channels"in f&&r(1,l=f.channels),"hasQuery"in f&&r(4,o=f.hasQuery)},s.$$.update=()=>{s.$$.dirty&19&&r(2,t=a.expanded||l&&l.length>0&&o)},[a,l,t,u,o,d]}class dr extends ne{constructor(e){super();se(this,e,cr,ur,oe,{country:0,channels:1,hasQuery:4})}}function fr(s){let e,r,t,a,l,o,u,d,f,v,_,E,m,k,$,x,C=(s[1]?"/":s[0].toLocaleString())+"",j,D,T,g;return{c(){e=b("form"),r=b("div"),t=b("label"),a=U("Search"),l=S(),o=b("div"),u=b("div"),d=G("svg"),f=G("path"),v=S(),_=b("input"),E=S(),m=b("p"),k=b("span"),$=U(`Found\xA0 + `),x=b("span"),j=U(C),D=U(` + \xA0channels`),this.h()},l(V){e=w(V,"FORM",{class:!0});var y=h(e);r=w(y,"DIV",{});var I=h(r);t=w(I,"LABEL",{for:!0,class:!0});var p=h(t);a=z(p,"Search"),p.forEach(c),l=P(I),o=w(I,"DIV",{class:!0});var B=h(o);u=w(B,"DIV",{class:!0});var M=h(u);d=J(M,"svg",{class:!0,fill:!0,viewBox:!0,xmlns:!0});var L=h(d);f=J(L,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),h(f).forEach(c),L.forEach(c),M.forEach(c),v=P(B),_=w(B,"INPUT",{type:!0,id:!0,class:!0,placeholder:!0}),B.forEach(c),E=P(I),m=w(I,"P",{class:!0});var O=h(m);k=w(O,"SPAN",{class:!0});var Y=h(k);$=z(Y,`Found\xA0 + `),x=w(Y,"SPAN",{});var Q=h(x);j=z(Q,C),Q.forEach(c),D=z(Y,` + \xA0channels`),Y.forEach(c),O.forEach(c),I.forEach(c),y.forEach(c),this.h()},h(){n(t,"for","search-input"),n(t,"class","sr-only"),n(f,"fill-rule","evenodd"),n(f,"d","M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"),n(f,"clip-rule","evenodd"),n(d,"class","w-5 h-5 text-gray-500 dark:text-gray-400"),n(d,"fill","currentColor"),n(d,"viewBox","0 0 20 20"),n(d,"xmlns","http://www.w3.org/2000/svg"),n(u,"class","flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none"),n(_,"type","search"),n(_,"id","search-input"),n(_,"class","bg-white border border-gray-300 text-gray-900 outline-blue-500 text-sm rounded-md block w-full pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white"),n(_,"placeholder","Search for channels"),n(o,"class","relative mt-1"),F(x,"animate-spin",s[1]),n(k,"class","inline-flex text-sm text-gray-500 dark:text-gray-400 font-mono"),n(m,"class","mt-2"),n(e,"class","mb-5")},m(V,y){A(V,e,y),i(e,r),i(r,t),i(t,a),i(r,l),i(r,o),i(o,u),i(u,d),i(d,f),i(o,v),i(o,_),Ae(_,s[2]),i(r,E),i(r,m),i(m,k),i(k,$),i(k,x),i(x,j),i(k,D),T||(g=[Z(_,"input",s[4]),Z(e,"submit",it(s[3]))],T=!0)},p(V,[y]){y&4&&Ae(_,V[2]),y&3&&C!==(C=(V[1]?"/":V[0].toLocaleString())+"")&&ce(j,C),y&2&&F(x,"animate-spin",V[1])},i:ee,o:ee,d(V){V&&c(e),T=!1,xe(g)}}}function hr(s,e,r){let t;he(s,pe,d=>r(2,t=d));let{found:a=0}=e,{isLoading:l=!0}=e;function o(){ut("q",t),Ee(t)}function u(){t=this.value,pe.set(t)}return s.$$set=d=>{"found"in d&&r(0,a=d.found),"isLoading"in d&&r(1,l=d.isLoading)},[a,l,t,o,u]}class vr extends ne{constructor(e){super();se(this,e,hr,fr,oe,{found:0,isLoading:1})}}function tt(s,e,r){const t=s.slice();return t[18]=e[r],t[19]=e,t[20]=r,t}function rt(s){let e,r;return{c(){e=b("div"),r=U("loading..."),this.h()},l(t){e=w(t,"DIV",{class:!0});var a=h(e);r=z(a,"loading..."),a.forEach(c),this.h()},h(){n(e,"class","flex items-center justify-center w-full pt-1 pb-6 tracking-tight text-sm text-gray-500 dark:text-gray-400 font-mono")},m(t,a){A(t,e,a),i(e,r)},d(t){t&&c(e)}}}function lt(s){let e,r,t,a,l;function o(v){s[11](v,s[18],s[19],s[20])}function u(v){s[12](v,s[18])}function d(v){s[13](v)}let f={};return s[18]!==void 0&&(f.country=s[18]),s[3][s[18].code]!==void 0&&(f.channels=s[3][s[18].code]),s[5]!==void 0&&(f.hasQuery=s[5]),e=new dr({props:f}),ge.push(()=>me(e,"country",o)),ge.push(()=>me(e,"channels",u)),ge.push(()=>me(e,"hasQuery",d)),{c(){te(e.$$.fragment)},l(v){re(e.$$.fragment,v)},m(v,_){le(e,v,_),l=!0},p(v,_){s=v;const E={};!r&&_&16&&(r=!0,E.country=s[18],ve(()=>r=!1)),!t&&_&24&&(t=!0,E.channels=s[3][s[18].code],ve(()=>t=!1)),!a&&_&32&&(a=!0,E.hasQuery=s[5],ve(()=>a=!1)),e.$set(E)},i(v){l||(N(e.$$.fragment,v),l=!0)},o(v){H(e.$$.fragment,v),l=!1},d(v){ae(e,v)}}}function at(s){let e,r,t=s[3][s[18].code]&&s[3][s[18].code].length>0&<(s);return{c(){t&&t.c(),e=we()},l(a){t&&t.l(a),e=we()},m(a,l){t&&t.m(a,l),A(a,e,l),r=!0},p(a,l){a[3][a[18].code]&&a[3][a[18].code].length>0?t?(t.p(a,l),l&24&&N(t,1)):(t=lt(a),t.c(),N(t,1),t.m(e.parentNode,e)):t&&(ie(),H(t,1,1,()=>{t=null}),ue())},i(a){r||(N(t),r=!0)},o(a){H(t),r=!1},d(a){t&&t.d(a),a&&c(e)}}}function nt(s){let e,r;return e=new pt({props:{identifier:s[1],distance:500,$$slots:{spinner:[_r],error:[pr],noMore:[mr],noResults:[gr]},$$scope:{ctx:s}}}),e.$on("infinite",s[6]),{c(){te(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,a){le(e,t,a),r=!0},p(t,a){const l={};a&2&&(l.identifier=t[1]),a&2097152&&(l.$$scope={dirty:a,ctx:t}),e.$set(l)},i(t){r||(N(e.$$.fragment,t),r=!0)},o(t){H(e.$$.fragment,t),r=!1},d(t){ae(e,t)}}}function gr(s){let e;return{c(){e=b("div"),this.h()},l(r){e=w(r,"DIV",{slot:!0}),h(e).forEach(c),this.h()},h(){n(e,"slot","noResults")},m(r,t){A(r,e,t)},d(r){r&&c(e)}}}function mr(s){let e;return{c(){e=b("div"),this.h()},l(r){e=w(r,"DIV",{slot:!0}),h(e).forEach(c),this.h()},h(){n(e,"slot","noMore")},m(r,t){A(r,e,t)},d(r){r&&c(e)}}}function pr(s){let e;return{c(){e=b("div"),this.h()},l(r){e=w(r,"DIV",{slot:!0}),h(e).forEach(c),this.h()},h(){n(e,"slot","error")},m(r,t){A(r,e,t)},d(r){r&&c(e)}}}function _r(s){let e;return{c(){e=b("div"),this.h()},l(r){e=w(r,"DIV",{slot:!0}),h(e).forEach(c),this.h()},h(){n(e,"slot","spinner")},m(r,t){A(r,e,t)},d(r){r&&c(e)}}}function br(s){let e,r,t,a,l,o,u,d,f,v;function _(D){s[9](D)}function E(D){s[10](D)}let m={};s[2]!==void 0&&(m.isLoading=s[2]),s[0].length!==void 0&&(m.found=s[0].length),a=new vr({props:m}),ge.push(()=>me(a,"isLoading",_)),ge.push(()=>me(a,"found",E));let k=s[2]&&rt(),$=s[4],x=[];for(let D=0;D<$.length;D+=1)x[D]=at(tt(s,$,D));const C=D=>H(x[D],1,1,()=>{x[D]=null});let j=!s[2]&&nt(s);return{c(){e=b("meta"),r=S(),t=b("section"),te(a.$$.fragment),u=S(),k&&k.c(),d=S();for(let D=0;Dl=!1)),!o&&T&1&&(o=!0,g.found=D[0].length,ve(()=>o=!1)),a.$set(g),D[2]?k||(k=rt(),k.c(),k.m(t,d)):k&&(k.d(1),k=null),T&56){$=D[4];let V;for(V=0;V<$.length;V+=1){const y=tt(D,$,V);x[V]?(x[V].p(y,T),N(x[V],1)):(x[V]=at(y),x[V].c(),N(x[V],1),x[V].m(t,f))}for(ie(),V=$.length;V{j=null}),ue()):j?(j.p(D,T),T&4&&N(j,1)):(j=nt(D),j.c(),N(j,1),j.m(t,null))},i(D){if(!v){N(a.$$.fragment,D);for(let T=0;T<$.length;T+=1)N(x[T]);N(j),v=!0}},o(D){H(a.$$.fragment,D),x=x.filter(Boolean);for(let T=0;Tr(14,l=g)),he(s,be,g=>r(5,o=g)),he(s,wt,g=>r(15,u=g)),he(s,De,g=>r(0,d=g));let f=[],v=st,_=+new Date,E=!0;const m=De.subscribe($);gt(m);function k({detail:g}){let{loaded:V,complete:y}=g;v{const V=new URLSearchParams(window.location.search).get("q");V&&(Ie(V),pe.set(V),be.set(!0)),await bt(),r(7,f=Object.values(u)),r(2,E=!1),o&&Ee(l),window.onpopstate=y=>{const I=y.state.q;I?(Ie(I),pe.set(I),be.set(!0),Ee(l)):(Ie(null),be.set(!1))}});function x(g){E=g,r(2,E)}function C(g){s.$$.not_equal(d.length,g)&&(d.length=g,De.set(d))}function j(g,V,y,I){y[I]=g,r(4,t),r(7,f),r(8,v)}function D(g,V){s.$$.not_equal(a[V.code],g)&&(a[V.code]=g,r(3,a),r(0,d))}function T(g){o=g,be.set(o)}return s.$$.update=()=>{s.$$.dirty&384&&r(4,t=f.slice(0,v)),s.$$.dirty&1&&r(3,a=mt.groupBy(d,"country.code"))},[d,_,E,a,t,o,k,f,v,x,C,j,D,T]}class Er extends ne{constructor(e){super();se(this,e,wr,br,oe,{})}}export{Er as default}; diff --git a/docs/_app/pages/index.svelte-925f19ed.js.br b/docs/_app/pages/index.svelte-925f19ed.js.br new file mode 100644 index 000000000..a98269c71 Binary files /dev/null and b/docs/_app/pages/index.svelte-925f19ed.js.br differ diff --git a/docs/_app/pages/index.svelte-925f19ed.js.gz b/docs/_app/pages/index.svelte-925f19ed.js.gz new file mode 100644 index 000000000..04868a490 Binary files /dev/null and b/docs/_app/pages/index.svelte-925f19ed.js.gz differ diff --git a/docs/_app/start-d78c08c2.js b/docs/_app/start-d43d765c.js similarity index 96% rename from docs/_app/start-d78c08c2.js rename to docs/_app/start-d43d765c.js index ab6e098c3..155c3c7f1 100644 --- a/docs/_app/start-d78c08c2.js +++ b/docs/_app/start-d43d765c.js @@ -1 +1 @@ -var nt=Object.defineProperty,rt=Object.defineProperties;var st=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var qe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable;var Ve=(r,e,t)=>e in r?nt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,A=(r,e)=>{for(var t in e||(e={}))qe.call(e,t)&&Ve(r,t,e[t]);if(ce)for(var t of ce(e))ze.call(e,t)&&Ve(r,t,e[t]);return r},ne=(r,e)=>rt(r,st(e));var Je=(r,e)=>{var t={};for(var s in r)qe.call(r,s)&&e.indexOf(s)<0&&(t[s]=r[s]);if(r!=null&&ce)for(var s of ce(r))e.indexOf(s)<0&&ze.call(r,s)&&(t[s]=r[s]);return t};import{S as at,i as it,s as ot,e as lt,c as ct,a as ft,d as I,b as we,f as K,g as D,t as ut,h as dt,j as pt,k as _t,l as P,m as ht,n as Y,o as x,p as M,q as C,r as mt,u as gt,v as $e,w as V,x as se,y as q,z as ae,A as ie,B as z,C as oe,D as fe,E as Ke}from"./chunks/vendor-585ed223.js";let Be="",et="";function wt(r){Be=r.base,et=r.assets||Be}function bt(r){let e,t,s;const c=[r[1]||{}];var o=r[0][0];function f(n){let a={};for(let i=0;i{z(d,1)}),M()}o?(e=new o(f()),V(e.$$.fragment),C(e.$$.fragment,1),q(e,t.parentNode,t)):e=null}else o&&e.$set(i)},i(n){s||(e&&C(e.$$.fragment,n),s=!0)},o(n){e&&x(e.$$.fragment,n),s=!1},d(n){n&&I(t),e&&z(e,n)}}}function yt(r){let e,t,s;const c=[r[1]||{}];var o=r[0][0];function f(n){let a={$$slots:{default:[Et]},$$scope:{ctx:n}};for(let i=0;i{z(d,1)}),M()}o?(e=new o(f(n)),V(e.$$.fragment),C(e.$$.fragment,1),q(e,t.parentNode,t)):e=null}else o&&e.$set(i)},i(n){s||(e&&C(e.$$.fragment,n),s=!0)},o(n){e&&x(e.$$.fragment,n),s=!1},d(n){n&&I(t),e&&z(e,n)}}}function vt(r){let e,t,s;const c=[r[2]||{}];var o=r[0][1];function f(n){let a={};for(let i=0;i{z(d,1)}),M()}o?(e=new o(f()),V(e.$$.fragment),C(e.$$.fragment,1),q(e,t.parentNode,t)):e=null}else o&&e.$set(i)},i(n){s||(e&&C(e.$$.fragment,n),s=!0)},o(n){e&&x(e.$$.fragment,n),s=!1},d(n){n&&I(t),e&&z(e,n)}}}function $t(r){let e,t,s;const c=[r[2]||{}];var o=r[0][1];function f(n){let a={$$slots:{default:[kt]},$$scope:{ctx:n}};for(let i=0;i{z(d,1)}),M()}o?(e=new o(f(n)),V(e.$$.fragment),C(e.$$.fragment,1),q(e,t.parentNode,t)):e=null}else o&&e.$set(i)},i(n){s||(e&&C(e.$$.fragment,n),s=!0)},o(n){e&&x(e.$$.fragment,n),s=!1},d(n){n&&I(t),e&&z(e,n)}}}function kt(r){let e,t,s;const c=[r[3]||{}];var o=r[0][2];function f(n){let a={};for(let i=0;i{z(d,1)}),M()}o?(e=new o(f()),V(e.$$.fragment),C(e.$$.fragment,1),q(e,t.parentNode,t)):e=null}else o&&e.$set(i)},i(n){s||(e&&C(e.$$.fragment,n),s=!0)},o(n){e&&x(e.$$.fragment,n),s=!1},d(n){n&&I(t),e&&z(e,n)}}}function Et(r){let e,t,s,c;const o=[$t,vt],f=[];function n(a,i){return a[0][2]?0:1}return e=n(r),t=f[e]=o[e](r),{c(){t.c(),s=P()},l(a){t.l(a),s=P()},m(a,i){f[e].m(a,i),D(a,s,i),c=!0},p(a,i){let d=e;e=n(a),e===d?f[e].p(a,i):(Y(),x(f[d],1,1,()=>{f[d]=null}),M(),t=f[e],t?t.p(a,i):(t=f[e]=o[e](a),t.c()),C(t,1),t.m(s.parentNode,s))},i(a){c||(C(t),c=!0)},o(a){x(t),c=!1},d(a){f[e].d(a),a&&I(s)}}}function We(r){let e,t=r[5]&&Ye(r);return{c(){e=lt("div"),t&&t.c(),this.h()},l(s){e=ct(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var c=ft(e);t&&t.l(c),c.forEach(I),this.h()},h(){we(e,"id","svelte-announcer"),we(e,"aria-live","assertive"),we(e,"aria-atomic","true"),K(e,"position","absolute"),K(e,"left","0"),K(e,"top","0"),K(e,"clip","rect(0 0 0 0)"),K(e,"clip-path","inset(50%)"),K(e,"overflow","hidden"),K(e,"white-space","nowrap"),K(e,"width","1px"),K(e,"height","1px")},m(s,c){D(s,e,c),t&&t.m(e,null)},p(s,c){s[5]?t?t.p(s,c):(t=Ye(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&I(e),t&&t.d()}}}function Ye(r){let e;return{c(){e=ut(r[6])},l(t){e=dt(t,r[6])},m(t,s){D(t,e,s)},p(t,s){s&64&&pt(e,t[6])},d(t){t&&I(e)}}}function Rt(r){let e,t,s,c,o;const f=[yt,bt],n=[];function a(d,R){return d[0][1]?0:1}e=a(r),t=n[e]=f[e](r);let i=r[4]&&We(r);return{c(){t.c(),s=_t(),i&&i.c(),c=P()},l(d){t.l(d),s=ht(d),i&&i.l(d),c=P()},m(d,R){n[e].m(d,R),D(d,s,R),i&&i.m(d,R),D(d,c,R),o=!0},p(d,[R]){let v=e;e=a(d),e===v?n[e].p(d,R):(Y(),x(n[v],1,1,()=>{n[v]=null}),M(),t=n[e],t?t.p(d,R):(t=n[e]=f[e](d),t.c()),C(t,1),t.m(s.parentNode,s)),d[4]?i?i.p(d,R):(i=We(d),i.c(),i.m(c.parentNode,c)):i&&(i.d(1),i=null)},i(d){o||(C(t),o=!0)},o(d){x(t),o=!1},d(d){n[e].d(d),d&&I(s),i&&i.d(d),d&&I(c)}}}function St(r,e,t){let{stores:s}=e,{page:c}=e,{components:o}=e,{props_0:f=null}=e,{props_1:n=null}=e,{props_2:a=null}=e;mt("__svelte__",s),gt(s.page.notify);let i=!1,d=!1,R=null;return $e(()=>{const v=s.page.subscribe(()=>{i&&(t(5,d=!0),t(6,R=document.title||"untitled page"))});return t(4,i=!0),v}),r.$$set=v=>{"stores"in v&&t(7,s=v.stores),"page"in v&&t(8,c=v.page),"components"in v&&t(0,o=v.components),"props_0"in v&&t(1,f=v.props_0),"props_1"in v&&t(2,n=v.props_1),"props_2"in v&&t(3,a=v.props_2)},r.$$.update=()=>{r.$$.dirty&384&&s.page.set(c)},[o,f,n,a,i,d,R,s,c]}class Lt extends at{constructor(e){super();it(this,e,St,Rt,ot,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const Ut="modulepreload",Me={},Nt="/_app/",be=function(e,t){return!t||t.length===0?e():Promise.all(t.map(s=>{if(s=`${Nt}${s}`,s in Me)return;Me[s]=!0;const c=s.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${o}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Ut,c||(f.as="script",f.crossOrigin=""),f.href=s,document.head.appendChild(f),c)return new Promise((n,a)=>{f.addEventListener("load",n),f.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e())},Ot={},Ee=[()=>be(()=>import("./pages/__layout.svelte-3c12cae0.js"),["pages/__layout.svelte-3c12cae0.js","assets/pages/__layout.svelte-0f0f9924.css","chunks/vendor-585ed223.js","assets/vendor-c8b32335.css","chunks/store-2c58625c.js"]),()=>be(()=>import("./error.svelte-7e306514.js"),["error.svelte-7e306514.js","chunks/vendor-585ed223.js","assets/vendor-c8b32335.css"]),()=>be(()=>import("./pages/index.svelte-70a5d121.js"),["pages/index.svelte-70a5d121.js","assets/pages/index.svelte-fade4f59.css","chunks/vendor-585ed223.js","assets/vendor-c8b32335.css","chunks/store-2c58625c.js"])],At={"":[[0,2],[1]]};function Fe(r){return r instanceof Error||r&&r.name&&r.message?r:new Error(JSON.stringify(r))}function Ge(r){const e=r.status&&r.status>=400&&r.status<=599&&!r.redirect;if(r.error||e){const t=r.status;if(!r.error&&e)return{status:t||500,error:new Error};const s=typeof r.error=="string"?new Error(r.error):r.error;return s instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:s}):{status:t,error:s}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof s}"`)}}if(r.redirect){if(!r.status||Math.floor(r.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof r.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(r.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return r}function Pt(r,e){return r==="/"||e==="ignore"?r:e==="never"?r.endsWith("/")?r.slice(0,-1):r:e==="always"&&/\/[^./]+$/.test(r)?r+"/":r}function xt(r){let e=5381,t=r.length;if(typeof r=="string")for(;t;)e=e*33^r.charCodeAt(--t);else for(;t;)e=e*33^r[--t];return(e>>>0).toString(36)}function Xe(r){let e=r.baseURI;if(!e){const t=r.getElementsByTagName("base");e=t.length?t[0].href:r.URL}return e}function ke(){return{x:pageXOffset,y:pageYOffset}}function He(r){return r.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Qe(r){return r instanceof SVGAElement?new URL(r.href.baseVal,document.baseURI):new URL(r.href)}function Ze(r){const e=fe(r);let t=!0;function s(){t=!0,e.update(f=>f)}function c(f){t=!1,e.set(f)}function o(f){let n;return e.subscribe(a=>{(n===void 0||t&&a!==n)&&f(n=a)})}return{notify:s,set:c,subscribe:o}}function Ct(){const{set:r,subscribe:e}=fe(!1),t="1650113856410";let s;async function c(){clearTimeout(s);const f=await fetch(`${et}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(f.ok){const{version:n}=await f.json(),a=n!==t;return a&&(r(!0),clearTimeout(s)),a}else throw new Error(`Version check failed: ${f.status}`)}return{subscribe:e,check:c}}function jt(r,e){let s=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof r=="string"?r:r.url)}]`;e&&typeof e.body=="string"&&(s+=`[sveltekit\\:data-body="${xt(e.body)}"]`);const c=document.querySelector(s);if(c&&c.textContent){const o=JSON.parse(c.textContent),{body:f}=o,n=Je(o,["body"]);return Promise.resolve(new Response(f,n))}return fetch(r,e)}const It=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function Tt(r){const e=[],t=[];let s=!0;return{pattern:r===""?/^\/$/:new RegExp(`^${decodeURIComponent(r).split("/").map((o,f,n)=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(a)return e.push(a[1]),t.push(a[2]),"(?:/(.*))?";const i=f===n.length-1;return"/"+o.split(/\[(.+?)\]/).map((d,R)=>{if(R%2){const[,v,H,F]=It.exec(d);return e.push(H),t.push(F),v?"(.*?)":"([^/]+?)"}return i&&d.includes(".")&&(s=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${s?"/?":""}$`),names:e,types:t}}function Dt(r,e,t,s){const c={};for(let o=0;o{const{pattern:a,names:i,types:d}=Tt(c);return{id:c,exec:R=>{const v=a.exec(R);if(v)return Dt(v,i,d,t)},a:o.map(R=>r[R]),b:f.map(R=>r[R]),has_shadow:!!n}})}const tt="sveltekit:scroll",B="sveltekit:index",ye=Vt(Ee,At,Ot),qt=Ee[0](),zt=Ee[1]();let re={};try{re=JSON.parse(sessionStorage[tt])}catch{}function ve(r){re[r]=ke()}function Jt({target:r,session:e,base:t,trailing_slash:s}){var je,Ie;const c=new Map,o=new Set,f={url:Ze({}),page:Ze({}),navigating:fe(null),session:fe(e),updated:Ct()},n={id:null,promise:null},a={before_navigate:[],after_navigate:[]};let i={url:null,session_id:0,branch:[]},d=!1,R=!0,v=!1,H=1,F=null,Re,Se,Le=!1;f.session.subscribe(async l=>{Se=l,Le&&(H+=1,he(new URL(location.href),[],!0))}),Le=!0;let ue=0,G=!0,T=(Ie=(je=history.state)==null?void 0:je[B])!=null?Ie:0;T===0&&history.replaceState(ne(A({},history.state),{[B]:0}),"",location.href);const de=re[T];de&&scrollTo(de.x,de.y);let pe=!1,_e,Ue,Ne;async function Oe(l,{noscroll:_=!1,replaceState:b=!1,keepfocus:u=!1,state:h={}},w){const m=new URL(l,Xe(document));if(G)return ge({url:m,scroll:_?ke():null,keepfocus:u,redirect_chain:w,details:{state:h,replaceState:b},accepted:()=>{},blocked:()=>{}});await ee(m)}async function Ae(l){const _=Ce(l);if(!_)throw new Error("Attempted to prefetch a URL that does not belong to this app");return n.promise=xe(_,!1),n.id=_.id,n.promise}async function he(l,_,b,u){var g,k,S;const h=Ce(l),w=Ue={};let m=h&&await xe(h,b);if(!m&&l.pathname===location.pathname&&(m=await Z({status:404,error:new Error(`Not found: ${l.pathname}`),url:l,routeId:null})),!m){await ee(l);return}if(Ue!==w)return;if(o.clear(),m.redirect)if(_.length>10||_.includes(l.pathname))m=await Z({status:500,error:new Error("Redirect loop"),url:l,routeId:null});else{G?Oe(new URL(m.redirect,l).href,{},[..._,l.pathname]):await ee(new URL(m.redirect,location.href));return}else((k=(g=m.props)==null?void 0:g.page)==null?void 0:k.status)>=400&&await f.updated.check()&&await ee(l);if(v=!0,u&&u.details){const{details:y}=u,L=y.replaceState?0:1;y.state[B]=T+=L,history[y.replaceState?"replaceState":"pushState"](y.state,"",l)}if(d?(i=m.state,Re.$set(m.props)):Pe(m),u){const{scroll:y,keepfocus:L}=u;if(!L){const p=document.body,E=p.getAttribute("tabindex");(S=getSelection())==null||S.removeAllRanges(),p.tabIndex=-1,p.focus(),E!==null?p.setAttribute("tabindex",E):p.removeAttribute("tabindex")}if(await Ke(),R){const p=l.hash&&document.getElementById(l.hash.slice(1));y?scrollTo(y.x,y.y):p?p.scrollIntoView():scrollTo(0,0)}}else await Ke();n.promise=null,n.id=null,R=!0,v=!1,m.props.page&&(_e=m.props.page);const $=m.state.branch[m.state.branch.length-1];G=($==null?void 0:$.module.router)!==!1}function Pe(l){i=l.state;const _=document.querySelector("style[data-svelte]");if(_&&_.remove(),_e=l.props.page,Re=new Lt({target:r,props:ne(A({},l.props),{stores:f}),hydrate:!0}),d=!0,G){const b={from:null,to:new URL(location.href)};a.after_navigate.forEach(u=>u(b))}}async function me({url:l,params:_,stuff:b,branch:u,status:h,error:w,routeId:m}){var L;const $=u.filter(Boolean),g=$.find(p=>{var E;return(E=p.loaded)==null?void 0:E.redirect}),k={redirect:(L=g==null?void 0:g.loaded)==null?void 0:L.redirect,state:{url:l,params:_,branch:u,session_id:H},props:{components:$.map(p=>p.module.default)}};for(let p=0;p<$.length;p+=1){const E=$[p].loaded;k.props[`props_${p}`]=E?await E.props:null}if(!i.url||l.href!==i.url.href){k.props.page={error:w,params:_,routeId:m,status:h,stuff:b,url:l};const p=(E,J)=>{Object.defineProperty(k.props.page,E,{get:()=>{throw new Error(`$page.${E} has been replaced by $page.url.${J}`)}})};p("origin","origin"),p("path","pathname"),p("query","searchParams")}const S=$[$.length-1],y=S.loaded&&S.loaded.maxage;if(y){const p=l.pathname+l.search;let E=!1;const J=()=>{c.get(p)===k&&c.delete(p),U(),clearTimeout(X)},X=setTimeout(J,y*1e3),U=f.session.subscribe(()=>{E&&J()});E=!0,c.set(p,k)}return k}async function Q({status:l,error:_,module:b,url:u,params:h,stuff:w,props:m,routeId:$}){const g={module:b,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:w};m&&g.uses.dependencies.add(u.href);const k={};for(const y in h)Object.defineProperty(k,y,{get(){return g.uses.params.add(y),h[y]},enumerable:!0});const S=Se;if(b.load){const y={routeId:$,params:k,props:m||{},get url(){return g.uses.url=!0,u},get session(){return g.uses.session=!0,S},get stuff(){return g.uses.stuff=!0,A({},w)},fetch(p,E){const J=typeof p=="string"?p:p.url,{href:X}=new URL(J,u);return g.uses.dependencies.add(X),d?fetch(p,E):jt(p,E)}};_&&(y.status=l,y.error=_);const L=await b.load.call(null,y);if(!L)throw new Error("load function must return a value");g.loaded=Ge(L),g.loaded.stuff&&(g.stuff=g.loaded.stuff)}else m&&(g.loaded=Ge({props:m}));return g}async function xe({id:l,url:_,params:b,route:u},h){var E,J,X;if(n.id===l&&n.promise)return n.promise;if(!h){const U=c.get(l);if(U)return U}const{a:w,b:m,has_shadow:$}=u,g=i.url&&{url:l!==i.url.pathname+i.url.search,params:Object.keys(b).filter(U=>i.params[U]!==b[U]),session:H!==i.session_id};let k=[],S={},y=!1,L=200,p;w.forEach(U=>U());e:for(let U=0;Uj.uses.params.has(W))||g.session&&j.uses.session||Array.from(j.uses.dependencies).some(W=>o.has(W))||y&&j.uses.stuff){let W={};const Te=$&&U===w.length-1;if(Te){const te=await fetch(`${_.pathname}${_.pathname.endsWith("/")?"":"/"}__data.json${_.search}`,{headers:{"x-sveltekit-load":"true"}});if(te.ok){const De=te.headers.get("x-sveltekit-location");if(De)return{redirect:De,props:{},state:i};W=te.status===204?{}:await te.json()}else L=te.status,p=new Error("Failed to load data")}if(p||(N=await Q({module:O,url:_,params:b,props:W,stuff:S,routeId:u.id})),N&&(Te&&(N.uses.url=!0),N.loaded)){if(N.loaded.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if(N.loaded.error&&(L=N.loaded.status,p=N.loaded.error),N.loaded.redirect)return{redirect:N.loaded.redirect,props:{},state:i};N.loaded.stuff&&(y=!0)}}else N=j}catch(O){L=500,p=Fe(O)}if(p){for(;U--;)if(m[U]){let O,j,le=U;for(;!(j=k[le]);)le-=1;try{if(O=await Q({status:L,error:p,module:await m[U](),url:_,params:b,stuff:j.stuff,routeId:u.id}),(E=O==null?void 0:O.loaded)!=null&&E.error)continue;(J=O==null?void 0:O.loaded)!=null&&J.stuff&&(S=A(A({},S),O.loaded.stuff)),k=k.slice(0,le+1).concat(O);break e}catch{continue}}return await Z({status:L,error:p,url:_,routeId:u.id})}else(X=N==null?void 0:N.loaded)!=null&&X.stuff&&(S=A(A({},S),N.loaded.stuff)),k.push(N)}return await me({url:_,params:b,stuff:S,branch:k,status:L,error:p,routeId:u.id})}async function Z({status:l,error:_,url:b,routeId:u}){var $,g;const h={},w=await Q({module:await qt,url:b,params:h,stuff:{},routeId:u}),m=await Q({status:l,error:_,module:await zt,url:b,params:h,stuff:w&&w.loaded&&w.loaded.stuff||{},routeId:u});return await me({url:b,params:h,stuff:A(A({},($=w==null?void 0:w.loaded)==null?void 0:$.stuff),(g=m==null?void 0:m.loaded)==null?void 0:g.stuff),branch:[w,m],status:l,error:_,routeId:u})}function Ce(l){if(l.origin!==location.origin||!l.pathname.startsWith(t))return;const _=decodeURI(l.pathname.slice(t.length)||"/");for(const b of ye){const u=b.exec(_);if(u)return{id:l.pathname+l.search,route:b,params:u,url:l}}}async function ge({url:l,scroll:_,keepfocus:b,redirect_chain:u,details:h,accepted:w,blocked:m}){const $=i.url;let g=!1;const k={from:$,to:l,cancel:()=>g=!0};if(a.before_navigate.forEach(p=>p(k)),g){m();return}const S=Pt(l.pathname,s),y=new URL(l.origin+S+l.search+l.hash);ve(T),w(),ue++;const L=Ne={};if(d&&f.navigating.set({from:i.url,to:y}),await he(y,u,!1,{scroll:_,keepfocus:b,details:h}),ue--,Ne===L&&!ue){const p={from:$,to:y};a.after_navigate.forEach(E=>E(p)),f.navigating.set(null)}}function ee(l){return location.href=l.href,new Promise(()=>{})}return{after_navigate:l=>{$e(()=>(a.after_navigate.push(l),()=>{const _=a.after_navigate.indexOf(l);a.after_navigate.splice(_,1)}))},before_navigate:l=>{$e(()=>(a.before_navigate.push(l),()=>{const _=a.before_navigate.indexOf(l);a.before_navigate.splice(_,1)}))},disable_scroll_handling:()=>{(v||!d)&&(R=!1)},goto:(l,_={})=>Oe(l,_,[]),invalidate:l=>{const{href:_}=new URL(l,location.href);return o.add(_),F||(F=Promise.resolve().then(async()=>{await he(new URL(location.href),[],!0),F=null})),F},prefetch:async l=>{const _=new URL(l,Xe(document));await Ae(_)},prefetch_routes:async l=>{const b=(l?ye.filter(u=>l.some(h=>u.exec(h))):ye).map(u=>Promise.all(u.a.map(h=>h())));await Promise.all(b)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",u=>{let h=!1;const w={from:i.url,to:null,cancel:()=>h=!0};a.before_navigate.forEach(m=>m(w)),h?(u.preventDefault(),u.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){ve(T);try{sessionStorage[tt]=JSON.stringify(re)}catch{}}});const l=u=>{const h=He(u);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&Ae(Qe(h))};let _;const b=u=>{clearTimeout(_),_=setTimeout(()=>{var h;(h=u.target)==null||h.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",l),addEventListener("mousemove",b),addEventListener("sveltekit:trigger_prefetch",l),addEventListener("click",u=>{if(!G||u.button||u.which!==1||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.defaultPrevented)return;const h=He(u);if(!h||!h.href)return;const w=h instanceof SVGAElement,m=Qe(h);if(!w&&m.origin==="null")return;const $=(h.getAttribute("rel")||"").split(/\s+/);if(h.hasAttribute("download")||$.includes("external")||(w?h.target.baseVal:h.target))return;if(m.href===location.href){location.hash||u.preventDefault();return}const[g,k]=m.href.split("#");if(k!==void 0&&g===location.href.split("#")[0]){pe=!0,ve(T),f.page.set(ne(A({},_e),{url:m})),f.page.notify();return}ge({url:m,scroll:h.hasAttribute("sveltekit:noscroll")?ke():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:!1},accepted:()=>u.preventDefault(),blocked:()=>u.preventDefault()})}),addEventListener("popstate",u=>{if(u.state&&G){if(u.state[B]===T)return;ge({url:new URL(location.href),scroll:re[u.state[B]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{T=u.state[B]},blocked:()=>{const h=T-u.state[B];history.go(h)}})}}),addEventListener("hashchange",()=>{pe&&(pe=!1,history.replaceState(ne(A({},history.state),{[B]:++T}),"",location.href))})},_hydrate:async({status:l,error:_,nodes:b,params:u,routeId:h})=>{const w=new URL(location.href),m=[];let $={},g,k;try{for(let S=0;Se in r?nt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,A=(r,e)=>{for(var t in e||(e={}))qe.call(e,t)&&Ve(r,t,e[t]);if(ce)for(var t of ce(e))ze.call(e,t)&&Ve(r,t,e[t]);return r},ne=(r,e)=>rt(r,st(e));var Je=(r,e)=>{var t={};for(var s in r)qe.call(r,s)&&e.indexOf(s)<0&&(t[s]=r[s]);if(r!=null&&ce)for(var s of ce(r))e.indexOf(s)<0&&ze.call(r,s)&&(t[s]=r[s]);return t};import{S as at,i as it,s as ot,e as lt,c as ct,a as ft,d as I,b as we,f as K,g as D,t as ut,h as dt,j as pt,k as _t,l as P,m as ht,n as Y,o as x,p as M,q as C,r as mt,u as gt,v as $e,w as V,x as se,y as q,z as ae,A as ie,B as z,C as oe,D as fe,E as Ke}from"./chunks/vendor-e06f8fa1.js";let Be="",et="";function wt(r){Be=r.base,et=r.assets||Be}function bt(r){let e,t,s;const c=[r[1]||{}];var o=r[0][0];function f(n){let a={};for(let i=0;i{z(d,1)}),M()}o?(e=new o(f()),V(e.$$.fragment),C(e.$$.fragment,1),q(e,t.parentNode,t)):e=null}else o&&e.$set(i)},i(n){s||(e&&C(e.$$.fragment,n),s=!0)},o(n){e&&x(e.$$.fragment,n),s=!1},d(n){n&&I(t),e&&z(e,n)}}}function yt(r){let e,t,s;const c=[r[1]||{}];var o=r[0][0];function f(n){let a={$$slots:{default:[Et]},$$scope:{ctx:n}};for(let i=0;i{z(d,1)}),M()}o?(e=new o(f(n)),V(e.$$.fragment),C(e.$$.fragment,1),q(e,t.parentNode,t)):e=null}else o&&e.$set(i)},i(n){s||(e&&C(e.$$.fragment,n),s=!0)},o(n){e&&x(e.$$.fragment,n),s=!1},d(n){n&&I(t),e&&z(e,n)}}}function vt(r){let e,t,s;const c=[r[2]||{}];var o=r[0][1];function f(n){let a={};for(let i=0;i{z(d,1)}),M()}o?(e=new o(f()),V(e.$$.fragment),C(e.$$.fragment,1),q(e,t.parentNode,t)):e=null}else o&&e.$set(i)},i(n){s||(e&&C(e.$$.fragment,n),s=!0)},o(n){e&&x(e.$$.fragment,n),s=!1},d(n){n&&I(t),e&&z(e,n)}}}function $t(r){let e,t,s;const c=[r[2]||{}];var o=r[0][1];function f(n){let a={$$slots:{default:[kt]},$$scope:{ctx:n}};for(let i=0;i{z(d,1)}),M()}o?(e=new o(f(n)),V(e.$$.fragment),C(e.$$.fragment,1),q(e,t.parentNode,t)):e=null}else o&&e.$set(i)},i(n){s||(e&&C(e.$$.fragment,n),s=!0)},o(n){e&&x(e.$$.fragment,n),s=!1},d(n){n&&I(t),e&&z(e,n)}}}function kt(r){let e,t,s;const c=[r[3]||{}];var o=r[0][2];function f(n){let a={};for(let i=0;i{z(d,1)}),M()}o?(e=new o(f()),V(e.$$.fragment),C(e.$$.fragment,1),q(e,t.parentNode,t)):e=null}else o&&e.$set(i)},i(n){s||(e&&C(e.$$.fragment,n),s=!0)},o(n){e&&x(e.$$.fragment,n),s=!1},d(n){n&&I(t),e&&z(e,n)}}}function Et(r){let e,t,s,c;const o=[$t,vt],f=[];function n(a,i){return a[0][2]?0:1}return e=n(r),t=f[e]=o[e](r),{c(){t.c(),s=P()},l(a){t.l(a),s=P()},m(a,i){f[e].m(a,i),D(a,s,i),c=!0},p(a,i){let d=e;e=n(a),e===d?f[e].p(a,i):(Y(),x(f[d],1,1,()=>{f[d]=null}),M(),t=f[e],t?t.p(a,i):(t=f[e]=o[e](a),t.c()),C(t,1),t.m(s.parentNode,s))},i(a){c||(C(t),c=!0)},o(a){x(t),c=!1},d(a){f[e].d(a),a&&I(s)}}}function We(r){let e,t=r[5]&&Ye(r);return{c(){e=lt("div"),t&&t.c(),this.h()},l(s){e=ct(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var c=ft(e);t&&t.l(c),c.forEach(I),this.h()},h(){we(e,"id","svelte-announcer"),we(e,"aria-live","assertive"),we(e,"aria-atomic","true"),K(e,"position","absolute"),K(e,"left","0"),K(e,"top","0"),K(e,"clip","rect(0 0 0 0)"),K(e,"clip-path","inset(50%)"),K(e,"overflow","hidden"),K(e,"white-space","nowrap"),K(e,"width","1px"),K(e,"height","1px")},m(s,c){D(s,e,c),t&&t.m(e,null)},p(s,c){s[5]?t?t.p(s,c):(t=Ye(s),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(s){s&&I(e),t&&t.d()}}}function Ye(r){let e;return{c(){e=ut(r[6])},l(t){e=dt(t,r[6])},m(t,s){D(t,e,s)},p(t,s){s&64&&pt(e,t[6])},d(t){t&&I(e)}}}function Rt(r){let e,t,s,c,o;const f=[yt,bt],n=[];function a(d,R){return d[0][1]?0:1}e=a(r),t=n[e]=f[e](r);let i=r[4]&&We(r);return{c(){t.c(),s=_t(),i&&i.c(),c=P()},l(d){t.l(d),s=ht(d),i&&i.l(d),c=P()},m(d,R){n[e].m(d,R),D(d,s,R),i&&i.m(d,R),D(d,c,R),o=!0},p(d,[R]){let v=e;e=a(d),e===v?n[e].p(d,R):(Y(),x(n[v],1,1,()=>{n[v]=null}),M(),t=n[e],t?t.p(d,R):(t=n[e]=f[e](d),t.c()),C(t,1),t.m(s.parentNode,s)),d[4]?i?i.p(d,R):(i=We(d),i.c(),i.m(c.parentNode,c)):i&&(i.d(1),i=null)},i(d){o||(C(t),o=!0)},o(d){x(t),o=!1},d(d){n[e].d(d),d&&I(s),i&&i.d(d),d&&I(c)}}}function St(r,e,t){let{stores:s}=e,{page:c}=e,{components:o}=e,{props_0:f=null}=e,{props_1:n=null}=e,{props_2:a=null}=e;mt("__svelte__",s),gt(s.page.notify);let i=!1,d=!1,R=null;return $e(()=>{const v=s.page.subscribe(()=>{i&&(t(5,d=!0),t(6,R=document.title||"untitled page"))});return t(4,i=!0),v}),r.$$set=v=>{"stores"in v&&t(7,s=v.stores),"page"in v&&t(8,c=v.page),"components"in v&&t(0,o=v.components),"props_0"in v&&t(1,f=v.props_0),"props_1"in v&&t(2,n=v.props_1),"props_2"in v&&t(3,a=v.props_2)},r.$$.update=()=>{r.$$.dirty&384&&s.page.set(c)},[o,f,n,a,i,d,R,s,c]}class Lt extends at{constructor(e){super();it(this,e,St,Rt,ot,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const Ut="modulepreload",Me={},Nt="/_app/",be=function(e,t){return!t||t.length===0?e():Promise.all(t.map(s=>{if(s=`${Nt}${s}`,s in Me)return;Me[s]=!0;const c=s.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${o}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Ut,c||(f.as="script",f.crossOrigin=""),f.href=s,document.head.appendChild(f),c)return new Promise((n,a)=>{f.addEventListener("load",n),f.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e())},Ot={},Ee=[()=>be(()=>import("./pages/__layout.svelte-8a4b19fb.js"),["pages/__layout.svelte-8a4b19fb.js","assets/pages/__layout.svelte-0f0f9924.css","chunks/vendor-e06f8fa1.js","assets/vendor-c8b32335.css","chunks/store-93a026ed.js"]),()=>be(()=>import("./error.svelte-eafc136f.js"),["error.svelte-eafc136f.js","chunks/vendor-e06f8fa1.js","assets/vendor-c8b32335.css"]),()=>be(()=>import("./pages/index.svelte-925f19ed.js"),["pages/index.svelte-925f19ed.js","assets/pages/index.svelte-fade4f59.css","chunks/vendor-e06f8fa1.js","assets/vendor-c8b32335.css","chunks/store-93a026ed.js"])],At={"":[[0,2],[1]]};function Fe(r){return r instanceof Error||r&&r.name&&r.message?r:new Error(JSON.stringify(r))}function Ge(r){const e=r.status&&r.status>=400&&r.status<=599&&!r.redirect;if(r.error||e){const t=r.status;if(!r.error&&e)return{status:t||500,error:new Error};const s=typeof r.error=="string"?new Error(r.error):r.error;return s instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:s}):{status:t,error:s}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof s}"`)}}if(r.redirect){if(!r.status||Math.floor(r.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof r.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(r.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return r}function Pt(r,e){return r==="/"||e==="ignore"?r:e==="never"?r.endsWith("/")?r.slice(0,-1):r:e==="always"&&/\/[^./]+$/.test(r)?r+"/":r}function xt(r){let e=5381,t=r.length;if(typeof r=="string")for(;t;)e=e*33^r.charCodeAt(--t);else for(;t;)e=e*33^r[--t];return(e>>>0).toString(36)}function Xe(r){let e=r.baseURI;if(!e){const t=r.getElementsByTagName("base");e=t.length?t[0].href:r.URL}return e}function ke(){return{x:pageXOffset,y:pageYOffset}}function He(r){return r.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Qe(r){return r instanceof SVGAElement?new URL(r.href.baseVal,document.baseURI):new URL(r.href)}function Ze(r){const e=fe(r);let t=!0;function s(){t=!0,e.update(f=>f)}function c(f){t=!1,e.set(f)}function o(f){let n;return e.subscribe(a=>{(n===void 0||t&&a!==n)&&f(n=a)})}return{notify:s,set:c,subscribe:o}}function Ct(){const{set:r,subscribe:e}=fe(!1),t="1650585984725";let s;async function c(){clearTimeout(s);const f=await fetch(`${et}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(f.ok){const{version:n}=await f.json(),a=n!==t;return a&&(r(!0),clearTimeout(s)),a}else throw new Error(`Version check failed: ${f.status}`)}return{subscribe:e,check:c}}function jt(r,e){let s=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof r=="string"?r:r.url)}]`;e&&typeof e.body=="string"&&(s+=`[sveltekit\\:data-body="${xt(e.body)}"]`);const c=document.querySelector(s);if(c&&c.textContent){const o=JSON.parse(c.textContent),{body:f}=o,n=Je(o,["body"]);return Promise.resolve(new Response(f,n))}return fetch(r,e)}const It=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function Tt(r){const e=[],t=[];let s=!0;return{pattern:r===""?/^\/$/:new RegExp(`^${decodeURIComponent(r).split("/").map((o,f,n)=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(a)return e.push(a[1]),t.push(a[2]),"(?:/(.*))?";const i=f===n.length-1;return"/"+o.split(/\[(.+?)\]/).map((d,R)=>{if(R%2){const[,v,H,F]=It.exec(d);return e.push(H),t.push(F),v?"(.*?)":"([^/]+?)"}return i&&d.includes(".")&&(s=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${s?"/?":""}$`),names:e,types:t}}function Dt(r,e,t,s){const c={};for(let o=0;o{const{pattern:a,names:i,types:d}=Tt(c);return{id:c,exec:R=>{const v=a.exec(R);if(v)return Dt(v,i,d,t)},a:o.map(R=>r[R]),b:f.map(R=>r[R]),has_shadow:!!n}})}const tt="sveltekit:scroll",B="sveltekit:index",ye=Vt(Ee,At,Ot),qt=Ee[0](),zt=Ee[1]();let re={};try{re=JSON.parse(sessionStorage[tt])}catch{}function ve(r){re[r]=ke()}function Jt({target:r,session:e,base:t,trailing_slash:s}){var je,Ie;const c=new Map,o=new Set,f={url:Ze({}),page:Ze({}),navigating:fe(null),session:fe(e),updated:Ct()},n={id:null,promise:null},a={before_navigate:[],after_navigate:[]};let i={url:null,session_id:0,branch:[]},d=!1,R=!0,v=!1,H=1,F=null,Re,Se,Le=!1;f.session.subscribe(async l=>{Se=l,Le&&(H+=1,he(new URL(location.href),[],!0))}),Le=!0;let ue=0,G=!0,T=(Ie=(je=history.state)==null?void 0:je[B])!=null?Ie:0;T===0&&history.replaceState(ne(A({},history.state),{[B]:0}),"",location.href);const de=re[T];de&&scrollTo(de.x,de.y);let pe=!1,_e,Ue,Ne;async function Oe(l,{noscroll:_=!1,replaceState:b=!1,keepfocus:u=!1,state:h={}},w){const m=new URL(l,Xe(document));if(G)return ge({url:m,scroll:_?ke():null,keepfocus:u,redirect_chain:w,details:{state:h,replaceState:b},accepted:()=>{},blocked:()=>{}});await ee(m)}async function Ae(l){const _=Ce(l);if(!_)throw new Error("Attempted to prefetch a URL that does not belong to this app");return n.promise=xe(_,!1),n.id=_.id,n.promise}async function he(l,_,b,u){var g,k,S;const h=Ce(l),w=Ue={};let m=h&&await xe(h,b);if(!m&&l.pathname===location.pathname&&(m=await Z({status:404,error:new Error(`Not found: ${l.pathname}`),url:l,routeId:null})),!m){await ee(l);return}if(Ue!==w)return;if(o.clear(),m.redirect)if(_.length>10||_.includes(l.pathname))m=await Z({status:500,error:new Error("Redirect loop"),url:l,routeId:null});else{G?Oe(new URL(m.redirect,l).href,{},[..._,l.pathname]):await ee(new URL(m.redirect,location.href));return}else((k=(g=m.props)==null?void 0:g.page)==null?void 0:k.status)>=400&&await f.updated.check()&&await ee(l);if(v=!0,u&&u.details){const{details:y}=u,L=y.replaceState?0:1;y.state[B]=T+=L,history[y.replaceState?"replaceState":"pushState"](y.state,"",l)}if(d?(i=m.state,Re.$set(m.props)):Pe(m),u){const{scroll:y,keepfocus:L}=u;if(!L){const p=document.body,E=p.getAttribute("tabindex");(S=getSelection())==null||S.removeAllRanges(),p.tabIndex=-1,p.focus(),E!==null?p.setAttribute("tabindex",E):p.removeAttribute("tabindex")}if(await Ke(),R){const p=l.hash&&document.getElementById(l.hash.slice(1));y?scrollTo(y.x,y.y):p?p.scrollIntoView():scrollTo(0,0)}}else await Ke();n.promise=null,n.id=null,R=!0,v=!1,m.props.page&&(_e=m.props.page);const $=m.state.branch[m.state.branch.length-1];G=($==null?void 0:$.module.router)!==!1}function Pe(l){i=l.state;const _=document.querySelector("style[data-svelte]");if(_&&_.remove(),_e=l.props.page,Re=new Lt({target:r,props:ne(A({},l.props),{stores:f}),hydrate:!0}),d=!0,G){const b={from:null,to:new URL(location.href)};a.after_navigate.forEach(u=>u(b))}}async function me({url:l,params:_,stuff:b,branch:u,status:h,error:w,routeId:m}){var L;const $=u.filter(Boolean),g=$.find(p=>{var E;return(E=p.loaded)==null?void 0:E.redirect}),k={redirect:(L=g==null?void 0:g.loaded)==null?void 0:L.redirect,state:{url:l,params:_,branch:u,session_id:H},props:{components:$.map(p=>p.module.default)}};for(let p=0;p<$.length;p+=1){const E=$[p].loaded;k.props[`props_${p}`]=E?await E.props:null}if(!i.url||l.href!==i.url.href){k.props.page={error:w,params:_,routeId:m,status:h,stuff:b,url:l};const p=(E,J)=>{Object.defineProperty(k.props.page,E,{get:()=>{throw new Error(`$page.${E} has been replaced by $page.url.${J}`)}})};p("origin","origin"),p("path","pathname"),p("query","searchParams")}const S=$[$.length-1],y=S.loaded&&S.loaded.maxage;if(y){const p=l.pathname+l.search;let E=!1;const J=()=>{c.get(p)===k&&c.delete(p),U(),clearTimeout(X)},X=setTimeout(J,y*1e3),U=f.session.subscribe(()=>{E&&J()});E=!0,c.set(p,k)}return k}async function Q({status:l,error:_,module:b,url:u,params:h,stuff:w,props:m,routeId:$}){const g={module:b,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:w};m&&g.uses.dependencies.add(u.href);const k={};for(const y in h)Object.defineProperty(k,y,{get(){return g.uses.params.add(y),h[y]},enumerable:!0});const S=Se;if(b.load){const y={routeId:$,params:k,props:m||{},get url(){return g.uses.url=!0,u},get session(){return g.uses.session=!0,S},get stuff(){return g.uses.stuff=!0,A({},w)},fetch(p,E){const J=typeof p=="string"?p:p.url,{href:X}=new URL(J,u);return g.uses.dependencies.add(X),d?fetch(p,E):jt(p,E)}};_&&(y.status=l,y.error=_);const L=await b.load.call(null,y);if(!L)throw new Error("load function must return a value");g.loaded=Ge(L),g.loaded.stuff&&(g.stuff=g.loaded.stuff)}else m&&(g.loaded=Ge({props:m}));return g}async function xe({id:l,url:_,params:b,route:u},h){var E,J,X;if(n.id===l&&n.promise)return n.promise;if(!h){const U=c.get(l);if(U)return U}const{a:w,b:m,has_shadow:$}=u,g=i.url&&{url:l!==i.url.pathname+i.url.search,params:Object.keys(b).filter(U=>i.params[U]!==b[U]),session:H!==i.session_id};let k=[],S={},y=!1,L=200,p;w.forEach(U=>U());e:for(let U=0;Uj.uses.params.has(W))||g.session&&j.uses.session||Array.from(j.uses.dependencies).some(W=>o.has(W))||y&&j.uses.stuff){let W={};const Te=$&&U===w.length-1;if(Te){const te=await fetch(`${_.pathname}${_.pathname.endsWith("/")?"":"/"}__data.json${_.search}`,{headers:{"x-sveltekit-load":"true"}});if(te.ok){const De=te.headers.get("x-sveltekit-location");if(De)return{redirect:De,props:{},state:i};W=te.status===204?{}:await te.json()}else L=te.status,p=new Error("Failed to load data")}if(p||(N=await Q({module:O,url:_,params:b,props:W,stuff:S,routeId:u.id})),N&&(Te&&(N.uses.url=!0),N.loaded)){if(N.loaded.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if(N.loaded.error&&(L=N.loaded.status,p=N.loaded.error),N.loaded.redirect)return{redirect:N.loaded.redirect,props:{},state:i};N.loaded.stuff&&(y=!0)}}else N=j}catch(O){L=500,p=Fe(O)}if(p){for(;U--;)if(m[U]){let O,j,le=U;for(;!(j=k[le]);)le-=1;try{if(O=await Q({status:L,error:p,module:await m[U](),url:_,params:b,stuff:j.stuff,routeId:u.id}),(E=O==null?void 0:O.loaded)!=null&&E.error)continue;(J=O==null?void 0:O.loaded)!=null&&J.stuff&&(S=A(A({},S),O.loaded.stuff)),k=k.slice(0,le+1).concat(O);break e}catch{continue}}return await Z({status:L,error:p,url:_,routeId:u.id})}else(X=N==null?void 0:N.loaded)!=null&&X.stuff&&(S=A(A({},S),N.loaded.stuff)),k.push(N)}return await me({url:_,params:b,stuff:S,branch:k,status:L,error:p,routeId:u.id})}async function Z({status:l,error:_,url:b,routeId:u}){var $,g;const h={},w=await Q({module:await qt,url:b,params:h,stuff:{},routeId:u}),m=await Q({status:l,error:_,module:await zt,url:b,params:h,stuff:w&&w.loaded&&w.loaded.stuff||{},routeId:u});return await me({url:b,params:h,stuff:A(A({},($=w==null?void 0:w.loaded)==null?void 0:$.stuff),(g=m==null?void 0:m.loaded)==null?void 0:g.stuff),branch:[w,m],status:l,error:_,routeId:u})}function Ce(l){if(l.origin!==location.origin||!l.pathname.startsWith(t))return;const _=decodeURI(l.pathname.slice(t.length)||"/");for(const b of ye){const u=b.exec(_);if(u)return{id:l.pathname+l.search,route:b,params:u,url:l}}}async function ge({url:l,scroll:_,keepfocus:b,redirect_chain:u,details:h,accepted:w,blocked:m}){const $=i.url;let g=!1;const k={from:$,to:l,cancel:()=>g=!0};if(a.before_navigate.forEach(p=>p(k)),g){m();return}const S=Pt(l.pathname,s),y=new URL(l.origin+S+l.search+l.hash);ve(T),w(),ue++;const L=Ne={};if(d&&f.navigating.set({from:i.url,to:y}),await he(y,u,!1,{scroll:_,keepfocus:b,details:h}),ue--,Ne===L&&!ue){const p={from:$,to:y};a.after_navigate.forEach(E=>E(p)),f.navigating.set(null)}}function ee(l){return location.href=l.href,new Promise(()=>{})}return{after_navigate:l=>{$e(()=>(a.after_navigate.push(l),()=>{const _=a.after_navigate.indexOf(l);a.after_navigate.splice(_,1)}))},before_navigate:l=>{$e(()=>(a.before_navigate.push(l),()=>{const _=a.before_navigate.indexOf(l);a.before_navigate.splice(_,1)}))},disable_scroll_handling:()=>{(v||!d)&&(R=!1)},goto:(l,_={})=>Oe(l,_,[]),invalidate:l=>{const{href:_}=new URL(l,location.href);return o.add(_),F||(F=Promise.resolve().then(async()=>{await he(new URL(location.href),[],!0),F=null})),F},prefetch:async l=>{const _=new URL(l,Xe(document));await Ae(_)},prefetch_routes:async l=>{const b=(l?ye.filter(u=>l.some(h=>u.exec(h))):ye).map(u=>Promise.all(u.a.map(h=>h())));await Promise.all(b)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",u=>{let h=!1;const w={from:i.url,to:null,cancel:()=>h=!0};a.before_navigate.forEach(m=>m(w)),h?(u.preventDefault(),u.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){ve(T);try{sessionStorage[tt]=JSON.stringify(re)}catch{}}});const l=u=>{const h=He(u);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&Ae(Qe(h))};let _;const b=u=>{clearTimeout(_),_=setTimeout(()=>{var h;(h=u.target)==null||h.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",l),addEventListener("mousemove",b),addEventListener("sveltekit:trigger_prefetch",l),addEventListener("click",u=>{if(!G||u.button||u.which!==1||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.defaultPrevented)return;const h=He(u);if(!h||!h.href)return;const w=h instanceof SVGAElement,m=Qe(h);if(!w&&m.origin==="null")return;const $=(h.getAttribute("rel")||"").split(/\s+/);if(h.hasAttribute("download")||$.includes("external")||(w?h.target.baseVal:h.target))return;if(m.href===location.href){location.hash||u.preventDefault();return}const[g,k]=m.href.split("#");if(k!==void 0&&g===location.href.split("#")[0]){pe=!0,ve(T),f.page.set(ne(A({},_e),{url:m})),f.page.notify();return}ge({url:m,scroll:h.hasAttribute("sveltekit:noscroll")?ke():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:!1},accepted:()=>u.preventDefault(),blocked:()=>u.preventDefault()})}),addEventListener("popstate",u=>{if(u.state&&G){if(u.state[B]===T)return;ge({url:new URL(location.href),scroll:re[u.state[B]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{T=u.state[B]},blocked:()=>{const h=T-u.state[B];history.go(h)}})}}),addEventListener("hashchange",()=>{pe&&(pe=!1,history.replaceState(ne(A({},history.state),{[B]:++T}),"",location.href))})},_hydrate:async({status:l,error:_,nodes:b,params:u,routeId:h})=>{const w=new URL(location.href),m=[];let $={},g,k;try{for(let S=0;S - - - - - + + + + +