1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{242:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,6872,23)),Promise.resolve().then(t.bind(t,1647))},618:(e,s,t)=>{"use strict";t.d(s,{I:()=>l});var a=t(5155);t(2115);let r=(e,s="0 0 24 24",t=1.8,r)=>({s:r=16,className:l}={})=>(0,a.jsx)("svg",{viewBox:s,width:r,height:r,fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",className:l,children:e}),l={link:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07L11.5 4.5"}),(0,a.jsx)("path",{d:"M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5"})]})),download:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M12 3v12"}),(0,a.jsx)("path",{d:"M7 10l5 5 5-5"}),(0,a.jsx)("path",{d:"M5 21h14"})]})),search:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,a.jsx)("path",{d:"m20 20-3.5-3.5"})]})),check:r((0,a.jsx)("path",{d:"m4 12 5 5L20 6"}),"0 0 24 24",2.2),close:r((0,a.jsx)(a.Fragment,{children:(0,a.jsx)("path",{d:"M6 6 18 18M18 6 6 18"})})),chev:r((0,a.jsx)("path",{d:"m6 9 6 6 6-6"})),copy:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2"}),(0,a.jsx)("path",{d:"M5 15V6a2 2 0 0 1 2-2h9"})]})),spark:r((0,a.jsx)("path",{d:"M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8"})),bolt:r((0,a.jsx)("path",{d:"M13 2 4 14h7l-1 8 9-12h-7l1-8z"})),shield:r((0,a.jsx)("path",{d:"M12 3 4 6v6c0 5 3.5 8.5 8 9 4.5-.5 8-4 8-9V6l-8-3z"})),zip:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("rect",{x:"4",y:"3",width:"16",height:"18",rx:"2"}),(0,a.jsx)("path",{d:"M12 3v4M12 9v2M12 13v2M12 17v2"})]})),filter:r((0,a.jsx)("path",{d:"M3 5h18M6 12h12M10 19h4"})),arrow:r((0,a.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6"})),arrowL:r((0,a.jsx)("path",{d:"M19 12H5M11 6l-6 6 6 6"})),globe:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,a.jsx)("path",{d:"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"})]}),"0 0 24 24",1.6),plus:r((0,a.jsx)("path",{d:"M12 5v14M5 12h14"}),"0 0 24 24",2),minus:r((0,a.jsx)("path",{d:"M5 12h14"}),"0 0 24 24",2),warn:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,a.jsx)("path",{d:"M12 9v4M12 17h.01"})]})),home:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M3 11l9-8 9 8"}),(0,a.jsx)("path",{d:"M5 10v10h14V10"})]})),card:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"}),(0,a.jsx)("path",{d:"M2 10h20"}),(0,a.jsx)("path",{d:"M6 15h4"})]})),user:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"12",cy:"8",r:"4"}),(0,a.jsx)("path",{d:"M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8"})]})),book:r((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M4 4h11a3 3 0 0 1 3 3v13H7a3 3 0 0 1-3-3V4z"}),(0,a.jsx)("path",{d:"M4 17a3 3 0 0 1 3-3h11"})]}))}},949:(e,s,t)=>{"use strict";t.d(s,{$O:()=>d,F5:()=>a,Pe:()=>h,Ut:()=>u,Xp:()=>n,Zu:()=>l,fS:()=>r,ff:()=>i,fi:()=>c,fv:()=>o});let a="LOADING",r="ADD_IMAGES",l="ADD_VIDEOS",n="FINISH_LOADING",i="ERROR",o="SORT",c="CHECK",d="CANCEL_ALL",h="CHECK_ALL",u="RESET"},1647:(e,s,t)=>{"use strict";t.d(s,{default:()=>I});var a=t(5155),r=t(2115),l=t(4005),n=t(9861),i=t(949);let o="Ðо ÑазмеÑÑ",c="";function d(e,s){switch(s.type){case i.F5:return{...e,loading:!0,errorMessage:"",imagesHas:!1,videosHas:!1,hint:null,catalog:null,mode:s.mode||e.mode||"images"};case i.fS:return{...e,originalArray:s.images,originalUrl:s.url,hint:s.hint||null,catalog:s.catalog||null,imagesHas:!0};case i.Zu:{let t=(s.url||"").replace(/^https?:\/\//i,"");return{...e,videos:s.payload?.videos||[],ytdlpInfo:s.payload?.info||null,videosHas:!0,videosPage:!0,photosPage:!1,loading:!1,pageUrl:t,mode:s.payload?.mode==="ytdlp"?"ytdlp":"videos"}}case i.Xp:{let s=h(u(e.originalArray,o)),t={},a=(e.originalArray||[]).map((e,s)=>{let a,r,l=e.size.format;return t[l]||(t[l]=[]),t[l].push(e),r=(a=(e.src||"").split("/").pop()||"image").lastIndexOf("."),e.name=r>0?a.slice(0,r):a,e.id=s+1,e}),r=e.originalUrl||"";return r=r.replace(/^https?:\/\//i,""),{...e,formats:t,pageUrl:r,images:s,activeFormat:"",imagesHas:!0,allImages:a,loading:!1,photosPage:!0,videosPage:!1,checked:[],mode:"images"}}case i.fv:{let{format:t,sort:a,value:r}=s,l=[...e.allImages||[]];if(a&&(o=a),void 0!==r&&(c=r),c&&c.length){let e=String(c).toLowerCase();l=l.filter(s=>String(s.size.width).startsWith(e)||String(s.size.height).startsWith(e)||(s.name||"").toLowerCase().includes(e)||(s.size.format||"").toLowerCase().startsWith(e)||(s.src||"").toLowerCase().includes(e))}let n=e.activeFormat;return t&&(n=e.activeFormat===t?"":t),n&&(l=l.filter(e=>e.size.format===n)),u(l,o),{...e,images:h(l),activeFormat:n}}case i.fi:{let t,a=e.allImages.find(e=>e.id===s.id);if(!a)return e;return a.check?(t=e.checked.filter(e=>e.id!==a.id),a.check=!1):(t=[...e.checked,a],a.check=!0),{...e,checked:t}}
1case i.$O:return e.checked.forEach(e=>{e.check=!1}),{...e,checked:[]};case i.Pe:{let s=[...e.checked];for(let t of e.allImages)t.check||(t.check=!0,s.push(t));return{...e,checked:s}}case i.ff:return{...e,errorMessage:s.message,errorObject:s.payload||(s.message?{message:s.message,code:"unknown"}:null),loading:!1};case i.Ut:return{...e,photosPage:!1,videosPage:!1,loading:!1,errorMessage:"",images:[],allImages:[],formats:{},checked:[],activeFormat:"",videos:[],ytdlpInfo:null};default:return e}}function h(e){let s=[],t=Math.ceil(e.length/48),a=0;for(let r=0;r<t;r++){let l=r===t-1?e.slice(a):e.slice(a,a+48);a+=48,s.push(l)}return s}function u(e,s){return"Ðо имени"===s?e.sort((e,s)=>(e.name||"").localeCompare(s.name||"")):"Ðо вÑÑоÑе"===s?e.sort((e,s)=>s.size.height-e.size.height):"Ðо длине"===s?e.sort((e,s)=>s.size.width-e.size.width):e.sort((e,s)=>s.size.size-e.size.size),e}let m={allImages:[],checked:[],images:[],formats:{},activeFormat:"",photosPage:!1,imagesHas:!1,videos:[],ytdlpInfo:null,videosPage:!1,videosHas:!1,mode:"images",loading:!1,pageUrl:"",errorMessage:"",errorObject:null},p=function({children:e=[]}){let[s,t]=(0,r.useReducer)(d,m);return(0,a.jsx)(n.ob.Provider,{value:{state:s,dispatch:t},children:e})};var x=t(7983),g=t(2355);let f=function(){return(0,a.jsxs)("div",{className:"bg","aria-hidden":"true",children:[(0,a.jsx)("div",{className:"bg__base"}),(0,a.jsx)("div",{className:"bg__orb bg__orb--1"}),(0,a.jsx)("div",{className:"bg__orb bg__orb--2"}),(0,a.jsx)("div",{className:"bg__orb bg__orb--3"}),(0,a.jsx)("div",{className:"bg__grid"})]})};var j=t(618);let v=[["home","ÐлавнаÑ"],["how","Ðак ÑкаÑаÑÑ"],["bulk","ÐакеÑÐ½Ð°Ñ Ð·Ð°Ð³ÑÑзка"],["works","Ðак ÑÑо ÑабоÑаеÑ"],["faq","FAQ"],["guides","ÐайдÑ"]],_=[["/","ÐлавнаÑ"],["/skachat-video","СкаÑаÑÑ Ð²Ð¸Ð´ÐµÐ¾"],["/skachat-kartinki","СкаÑаÑÑ ÐºÐ°ÑÑинки"],["/youtube","YouTube downloader"],["/tiktok","TikTok downloader"],["/instagram","Instagram downloader"],["/vk","VK downloader"],["/guides","ÐайдÑ"],["/api","API"],["/pro","ТаÑиÑÑ Pro"],["/contacts","ÐонÑакÑÑ"]];function b(){return(0,a.jsx)("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M4 7h16M4 12h16M4 17h16"})})}let k=function({onJump:e=()=>null}){let[s,t]=(0,r.useState)(!1),l=(0,g.zy)(),{isLoggedIn:n,user:i,isPro:o}=(0,x.A)();return(0,r.useEffect)(()=>{t(!1)},[l.pathname]),(0,r.useEffect)(()=>(s?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[s]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("nav",{className:"nav glass",children:[(0,a.jsxs)(g.N_,{className:"nav__logo",to:"/",onClick:()=>window.scrollTo({top:0}),children:[(0,a.jsx)("span",{className:"nav__logo-mark",children:(0,a.jsx)("img",{src:"/favicon.svg",alt:"PICEX",width:"28",height:"28"})}),(0,a.jsx)("span",{className:"nav__logo-text",children:"PICEX"})]}),(0,a.jsx)("ul",{className:"nav__menu",children:v.map(([s,t])=>(0,a.jsx)("li",{children:(0,a.jsx)("a",{className:"nav__link",href:"#",onClick:t=>{t.preventDefault(),e(s)},children:t})},s))}),(0,a.jsxs)("div",{className:"nav__cta",children:[(0,a.jsx)(g.N_,{className:"btn btn--ghost btn--sm nav__cta-desktop",to:"/api",children:"API"}),n?(0,a.jsxs)(g.N_,{className:"btn btn--ghost btn--sm nav__cta-desktop nav__cabinet-btn",to:"/cabinet",children:[(0,a.jsx)("span",{className:"nav__cabinet-dot",children:o?"â
":"â"}),(i?.name||i?.email||"").split("@")[0].slice(0,12)]}):(0,a.jsx)(g.N_,{className:"btn btn--ghost btn--sm nav__cta-desktop",to:"/login",children:"ÐойÑи"}),(0,a.jsxs)(g.N_,{className:"btn btn--primary btn--sm",to:"/pro",children:[(0,a.jsx)(j.I.spark,{s:14})," Pro"]}),(0,a.jsx)("button",{type:"button",className:"nav__burger","aria-label":s?"ÐакÑÑÑÑ Ð¼ÐµÐ½Ñ":"ÐÑкÑÑÑÑ Ð¼ÐµÐ½Ñ","aria-expanded":s,onClick:()=>t(e=>!e),children:s?(0,a.jsx)(j.I.close,{s:20}):(0,a.jsx)(b,{})})]})]}),s&&(0,a.jsxs)("div",{className:"mobile-drawer glass",role:"dialog","aria-label":"ÐенÑ",children:[(0,a.jsx)("ul",{className:"mobile-drawer__list",children:_.map(([e,s])=>(0,a.jsx)("li",{children:(0,a.jsx)(g.N_,{to:e,className:"mobile-drawer__link",onClick:()=>t(!1),children:s})},e))}),(0,a.jsx)("div",{className:"mobile-drawer__cta",children:(0,a.jsxs)(g.N_,{to:"/pro",className:"btn btn--primary btn--lg",onClick:()=>t(!1),children:[(0,a.jsx)(j.I.spark,{s:14})," ÐолÑÑиÑÑ Pro"]})})]})]})},w=function(){let{pathname:e}=(0,g.zy)(),s=(0,g.Zp)(),{isLoggedIn:t}=(0,x.A)(),[l,n]=(0,r.useState)(!1),i=(0,r.useRef)(0);(0,r.useEffect)(()=>{i.current=window.scrollY;let e=()=>{let e=window.scrollY,s=e-i.current;6>Math.abs(s)||(e<60?n(!1):s>0?n(!0):n(!1),i.current=e)};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,r.useEffect)(()=>{n(!1)},[e]);let[o,c]=(0,r.useState)(!0);(0,r.useEffect)(()=>{let e=document.querySelector(".urlbar");
1if(!e||"u"<typeof IntersectionObserver)return void c(!1);let s=new IntersectionObserver(([e])=>c(e.isIntersecting),{threshold:.2});return s.observe(e),()=>s.disconnect()},[e]);let d=s=>e===s||"/"!==s&&e.startsWith(s);return(0,a.jsxs)("nav",{className:`mobnav${l||o?" mobnav--hidden":""}`,"aria-label":"ÐобилÑÐ½Ð°Ñ Ð½Ð°Ð²Ð¸Ð³Ð°ÑиÑ",children:[(0,a.jsxs)(g.N_,{to:"/",className:`mobnav__item${d("/")?" is-active":""}`,children:[(0,a.jsx)(j.I.home,{s:20}),(0,a.jsx)("span",{children:"ÐлавнаÑ"})]}),(0,a.jsxs)(g.N_,{to:"/guides",className:`mobnav__item${d("/guides")?" is-active":""}`,children:[(0,a.jsx)(j.I.book,{s:20}),(0,a.jsx)("span",{children:"ÐайдÑ"})]}),(0,a.jsx)("button",{type:"button",className:"mobnav__fab",onClick:t=>{t.preventDefault();let a=()=>{let e=document.querySelector(".urlbar__input");e?(window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>e.focus({preventScroll:!0}),150)):window.scrollTo({top:0,behavior:"smooth"})};"/"!==e?(s("/"),setTimeout(a,250)):a()},"aria-label":"ÐÑкÑÑÑÑ Ð¿Ð°ÑÑеÑ",children:(0,a.jsx)(j.I.bolt,{s:26})}),(0,a.jsxs)(g.N_,{to:"/pro",className:`mobnav__item${d("/pro")?" is-active":""}`,children:[(0,a.jsx)(j.I.spark,{s:20}),(0,a.jsx)("span",{children:"Pro"})]}),(0,a.jsxs)(g.N_,{to:t?"/cabinet":"/login",className:`mobnav__item${d(t?"/cabinet":"/login")?" is-active":""}`,children:[(0,a.jsx)(j.I.user,{s:20}),(0,a.jsx)("span",{children:t?"ÐабинеÑ":"ÐойÑи"})]})]})},N=[["Ðидео",[["YouTube","/youtube"],["TikTok","/tiktok"],["Instagram","/instagram"],["ÐÐонÑакÑе","/vk"],["RuTube","/rutube"],["X \xb7 Twitter","/twitter"],["ÐÑе плаÑÑоÑмÑ","/skachat-video"]]],["ÐаÑÑинки",[["ÐÑе каÑÑинки","/skachat-kartinki"],["GIF","/skachat-gif"],["SVG-иконки","/skachat-svg"],["WebP","/skachat-webp"],["ÐаÑÑÐµÑ Ð¿Ð¾ API","/parser-izobrazhenii"]]],["ÐÑодÑкÑ",[["ÐлавнаÑ","/"],["ТаÑиÑÑ","/pro"],["API","/api"],["ÐокÑменÑаÑиÑ","/api/docs"],["ÐайдÑ","/guides"]]],["ÐомоÑÑ",[["FAQ","/#faq"],["ÐонÑакÑÑ","/contacts"],["СÑаÑÑÑ","/status"],["УÑловиÑ","/legal/terms"],["ÐозвÑÐ°Ñ ÑÑедÑÑв","/legal/refund"],["ÐонÑиденÑиалÑноÑÑÑ","/legal/privacy"],["DMCA","/legal/dmca"]]]],y=function(){return(0,a.jsxs)("footer",{className:"footer glass",children:[(0,a.jsxs)("div",{className:"footer__grid footer__grid--wide",children:[(0,a.jsxs)("div",{className:"footer__brand",children:[(0,a.jsxs)(g.N_,{to:"/",className:"nav__logo",onClick:()=>window.scrollTo({top:0}),children:[(0,a.jsx)("span",{className:"nav__logo-mark",children:(0,a.jsx)("img",{src:"/favicon.svg",alt:"PICEX",width:"28",height:"28"})}),(0,a.jsx)("span",{className:"nav__logo-text",children:"PICEX"})]}),(0,a.jsx)("p",{children:"ÐаÑÑÐµÑ Ð¸Ð·Ð¾Ð±Ñажений и видео Ñ Ð»Ñбого ÑайÑа. YouTube, TikTok, Instagram, ÐÐ â бÑÑÑÑо, беÑплаÑно, без ÑекламÑ."}),(0,a.jsxs)("div",{className:"footer__socials",children:[(0,a.jsx)("a",{className:"chip chip--soft",href:"mailto:[email protected]",children:"[email protected]"}),(0,a.jsx)("a",{className:"chip chip--soft",href:"mailto:[email protected]",children:"[email protected]"})]})]}),N.map(([e,s])=>(0,a.jsxs)("div",{className:"footer__col",children:[(0,a.jsx)("h5",{children:e}),(0,a.jsx)("ul",{children:s.map(([e,s])=>(0,a.jsx)("li",{children:s.startsWith("/#")||s.startsWith("http")?(0,a.jsx)("a",{href:s,...s.startsWith("http")?{target:"_blank",rel:"noreferrer"}:{},children:e}):(0,a.jsx)(g.N_,{to:s,children:e})},e))})]},e))]}),(0,a.jsxs)("div",{className:"footer__bottom",children:[(0,a.jsxs)("span",{children:["\xa9 ",new Date().getFullYear()," PICEX. ÐÑе пÑава на изобÑÐ°Ð¶ÐµÐ½Ð¸Ñ Ð¸ видео пÑÐ¸Ð½Ð°Ð´Ð»ÐµÐ¶Ð°Ñ Ð¸Ñ
владелÑÑам."]}),(0,a.jsxs)("span",{className:"footer__made",children:["Ð¡Ð°Ð¹Ñ Ñделан Ñ Ð»ÑбовÑÑ"," ",(0,a.jsx)("a",{href:"https://deemkend.ru",target:"_blank",rel:"noreferrer",className:"footer__made-link",children:"deemkend"})]})]}),(0,a.jsx)("div",{className:"footer__legal-note",children:"ÐРСпиÑидонов ÐмиÑÑий ÐÐ°Ð´Ð¸Ð¼Ð¾Ð²Ð¸Ñ \xb7 ÐÐÐ ÐÐÐ\xa0324762700012347 \xb7 ÐÐÐ\xa0760806658219"})]})},M=function({children:e}){let s=(0,g.Zp)(),t=(0,g.zy)(),r=e=>{if("home"===e){s("/"),window.scrollTo({top:0,behavior:"smooth"});return}if("guides"===e)return void s("/guides");if("pro"===e)return void s("/pro");if("api"===e)return void s("/api");let a={how:"how",bulk:"features",works:"how",faq:"faq"}[e];if(a)if("/"!==t.pathname)s("/",{state:{scrollTo:a}});else{let e=document.getElementById(a);e?.scrollIntoView({behavior:"smooth",block:"start"})}};return(0,a.jsxs)("div",{className:"root",children:[(0,a.jsx)(f,{}),(0,a.jsxs)("div",{className:"page",children:[(0,a.jsx)(k,{onJump:r}),(0,a.jsx)("main",{children:(0,a.jsx)(g.$U.Provider,{value:{onJump:r},children:e})}),(0,a.jsx)(y,{})]}),(0,a.jsx)(w,{})]})};function I({children:e}){return(0,a.jsx)(p,{children:(0,a.jsx)(l.vd,{children:(0,a.jsx)(x.O,{children:(0,a.jsx)(M,{children:(0,a.jsx)(r.Suspense,{fallback:null,children:e})})})})})}},2355:(e,s,t)=>{"use strict";t.d(s,{$U:()=>x,C5:()=>p,N_:()=>o,Zp:()=>d,g:()=>u,k2:()=>c,ok:()=>m,zy:()=>h});
1var a=t(8500),r=t.n(a),l=t(3321),n=t(2115);let i="__picex_nav_state";function o({to:e,children:s,...t}){return(0,n.createElement)(r(),{href:e||"#",...t},s)}function c({to:e,className:s,style:t,children:a,end:i,...o}){let d=(0,l.usePathname)(),h=i?d===e:d===e||d.startsWith(e+"/"),u="function"==typeof s?s({isActive:h}):s,m="function"==typeof t?t({isActive:h}):t,p="function"==typeof a?a({isActive:h}):a;return(0,n.createElement)(r(),{href:e||"#",className:u,style:m,"aria-current":h?"page":void 0,...o},p)}function d(){let e=(0,l.useRouter)();return(s,t={})=>{if("number"==typeof s)return void(s<0?e.back():e.forward());try{null!=t.state&&sessionStorage.setItem(i,JSON.stringify(t.state))}catch{}t.replace?e.replace(s):e.push(s)}}function h(){let e=(0,l.usePathname)(),s=null;try{let e=sessionStorage.getItem(i);e&&(s=JSON.parse(e),sessionStorage.removeItem(i))}catch{}return{pathname:e,search:window.location.search,hash:window.location.hash,state:s,key:e}}function u(){return(0,l.useParams)()}function m(){let e=(0,l.useSearchParams)();return[e,s=>{let t=new URLSearchParams("function"==typeof s?s(e):s);window.history.replaceState(null,"","?"+t.toString())}]}function p({to:e,replace:s}){let t=(0,l.useRouter)();return(0,n.useEffect)(()=>{s?t.replace(e):t.push(e)},[e,s,t]),null}let x=(0,n.createContext)({})},6872:()=>{},7983:(e,s,t)=>{"use strict";t.d(s,{A:()=>o,O:()=>i});var a=t(5155),r=t(2115);let l=(0,r.createContext)(null),n="picex.auth.token";function i({children:e}){let[s,t]=(0,r.useState)(()=>{try{return localStorage.getItem(n)||null}catch{return null}}),[o,c]=(0,r.useState)(null),[d,h]=(0,r.useState)(null),[u,m]=(0,r.useState)(!!s),p=(0,r.useCallback)(async e=>{if(!e){c(null),h(null),m(!1);return}try{let s=await fetch("/api/auth/me",{headers:{Authorization:`Bearer ${e}`}});if(401===s.status||403===s.status)return void x();if(!s.ok)return void m(!1);let t=await s.json();c(t.user),h(t.subscription)}catch{}finally{m(!1)}},[]);function x(){try{localStorage.removeItem(n)}catch{}t(null),c(null),h(null),m(!1)}(0,r.useEffect)(()=>{p(s)},[s,p]);let g=!!d&&"active"===d.status&&1e3*d.expires_at>Date.now(),f=(0,r.useCallback)(()=>p(s),[s,p]);return(0,a.jsx)(l.Provider,{value:{token:s,user:o,sub:d,loading:u,isLoggedIn:!!o,isPro:g,login:function(e){try{localStorage.setItem(n,e)}catch{}t(e)},logout:x,refetch:f},children:e})}function o(){return(0,r.useContext)(l)}},9861:(e,s,t)=>{"use strict";t.d(s,{Cd:()=>n,ob:()=>r,wA:()=>l});var a=t(2115);let r=(0,a.createContext)(null);function l(){return(0,a.useContext)(r).dispatch}function n(){return(0,a.useContext)(r).state}}},e=>{e.O(0,[513,756,5,441,794,358],()=>e(e.s=242)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.