iptv-org.github.io/docs/_app/pages/__layout.svelte-bbbb0830.js
2022-11-22 09:32:16 +03:00

19 lines
16 KiB
JavaScript

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-be4ac25a.js";import{q as Ce,s as yt,a as ct,h as Et}from"../chunks/store-92203636.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};