1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6548],{15283:(e,t,s)=>{"use strict";s.d(t,{Fc:()=>d,TN:()=>o,XL:()=>c});var r=s(95155),a=s(12115),l=s(18460),i=s(40980);let n=(0,l.F)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),d=a.forwardRef(({className:e,variant:t,...s},a)=>(0,r.jsx)("div",{ref:a,role:"alert",className:(0,i.cn)(n({variant:t}),e),...s}));d.displayName="Alert";let c=a.forwardRef(({className:e,...t},s)=>(0,r.jsx)("h5",{ref:s,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",e),...t}));c.displayName="AlertTitle";let o=a.forwardRef(({className:e,...t},s)=>(0,r.jsx)("div",{ref:s,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",e),...t}));o.displayName="AlertDescription"},40980:(e,t,s)=>{"use strict";s.d(t,{cn:()=>l});var r=s(29722),a=s(622);function l(...e){return(0,a.QP)((0,r.$)(e))}},42137:(e,t,s)=>{"use strict";s.d(t,{InstallationSection:()=>R});var r=s(95155),a=s(89239),l=s(97916),i=s(12651),n=s(6296),d=s(91958),c=s(83687),o=s(33210),x=s(4934),m=s(12115),u=s(40980),h=s(24938);function g(){let e=(0,h.c3)("installation.free-mode");return(0,r.jsx)("div",{className:"mb-12 rounded-2xl border-2 border-primary/20 bg-primary/5 p-8 relative overflow-hidden",children:(0,r.jsxs)("div",{className:"relative z-10",children:[(0,r.jsxs)("h2",{className:"text-2xl font-bold text-primary mb-4 flex items-center gap-2",children:[(0,r.jsx)("span",{className:"bg-primary text-white text-xs px-2 py-1 rounded-full uppercase tracking-wider",children:"Free"}),e("title")]}),(0,r.jsx)("p",{className:"text-gray-700 text-lg",children:e("description")}),(0,r.jsx)("p",{className:"text-gray-700 text-lg",children:e.rich("limit",{span:e=>(0,r.jsx)("span",{className:"underline font-semibold",children:e})})}),(0,r.jsx)("p",{className:"mt-4 text-gray-700 text-lg",children:e.rich("documentation",{link:e=>(0,r.jsx)(x.Link,{href:"/documentation",className:"underline",children:e})})})]})})}function p({onBypass:e}){let t=(0,h.c3)("installation.browser-check");return(0,r.jsx)("div",{className:"absolute inset-0 z-30 h-full",children:(0,r.jsx)("div",{className:"sticky top-[40vh] w-full flex justify-center",children:(0,r.jsxs)("div",{className:"bg-white/90 backdrop-blur-md p-8 rounded-2xl shadow-2xl text-center max-w-md border border-gray-200 mx-4",children:[(0,r.jsx)("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:t("title")}),(0,r.jsx)("p",{className:"text-gray-600 mb-6",children:t("description")}),(0,r.jsx)(a.$,{variant:"link",onClick:e,className:"w-full mt-2 text-gray-500 hover:text-gray-900 hover:bg-transparent underline-offset-4 hover:underline",children:t("bypass")})]})})})}function f(){let e=(0,h.c3)("installation.update-mode");return(0,r.jsx)("div",{className:"mb-12 rounded-2xl border-2 border-primary/20 bg-primary/5 p-8 relative overflow-hidden",children:(0,r.jsxs)("div",{className:"relative z-10",children:[(0,r.jsxs)("h2",{className:"text-2xl font-bold text-primary mb-4 flex items-center gap-2",children:[(0,r.jsx)("span",{className:"bg-primary text-white text-xs px-2 py-1 rounded-full uppercase tracking-wider",children:"UPDATE"}),e("title")]}),(0,r.jsx)("p",{className:"text-gray-700 text-lg",children:e("description")})]})})}var v=s(5772),b=s(43459),j=s(80723),N=s(21628);let y=m.createContext(null);function w(){let e=m.useContext(y);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let k=m.forwardRef(({orientation:e="horizontal",opts:t,setApi:s,plugins:a,className:l,children:i,...n},d)=>{let[c,o]=(0,b.A)({...t,axis:"horizontal"===e?"x":"y"},a),[x,h]=m.useState(!1),[g,p]=m.useState(!1),f=m.useCallback(e=>{e&&(h(e.canScrollPrev()),p(e.canScrollNext()))},[]),v=m.useCallback(()=>{o?.scrollPrev()},[o]),j=m.useCallback(()=>{o?.scrollNext()},[o]),N=m.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return m.useEffect(()=>{o&&s&&s(o)},[o,s]),m.useEffect(()=>{if(o)return f(o),o.on("reInit",f),o.on("select",f),()=>{o?.off("select",f)}},[o,f]),(0,r.jsx)(y.Provider,{value:{carouselRef:c,api:o,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:x,canScrollNext:g},children:(0,r.jsx)("div",{ref:d,onKeyDownCapture:N,className:(0,u.cn)("relative",l),role:"region","aria-roledescription":"carousel",...n,children:i})})});
1k.displayName="Carousel";let C=m.forwardRef(({className:e,...t},s)=>{let{carouselRef:a,orientation:l}=w();return(0,r.jsx)("div",{ref:a,className:"overflow-hidden",children:(0,r.jsx)("div",{ref:s,className:(0,u.cn)("flex","horizontal"===l?"-ml-4":"-mt-4 flex-col",e),...t})})});C.displayName="CarouselContent";let A=m.forwardRef(({className:e,...t},s)=>{let{orientation:a}=w();return(0,r.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,u.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===a?"pl-4":"pt-4",e),...t})});A.displayName="CarouselItem";let E=m.forwardRef(({className:e,variant:t="outline",size:s="icon",...l},i)=>{let{orientation:n,scrollPrev:d,canScrollPrev:c}=w();return(0,r.jsxs)(a.$,{ref:i,variant:t,size:s,className:(0,u.cn)("absolute h-8 w-8 rounded-full","horizontal"===n?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!c,onClick:d,...l,children:[(0,r.jsx)(j.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});E.displayName="CarouselPrevious";let z=m.forwardRef(({className:e,variant:t="outline",size:s="icon",...l},i)=>{let{orientation:n,scrollNext:d,canScrollNext:c}=w();return(0,r.jsxs)(a.$,{ref:i,variant:t,size:s,className:(0,u.cn)("absolute h-8 w-8 rounded-full","horizontal"===n?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!c,onClick:d,...l,children:[(0,r.jsx)(N.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Next slide"})]})});function I({stepNumber:e,title:t,description:s,images:a,children:l,reverse:i=!1,onImageClick:n}){let d=(0,h.c3)("installation"),c=a.length>1;return(0,r.jsxs)("section",{className:"grid gap-8 md:grid-cols-2 items-center",children:[(0,r.jsxs)("div",{className:(0,u.cn)(i?"order-2 md:order-1":""),children:[(0,r.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-10 h-10 rounded-full bg-primary text-white font-bold text-xl",children:e}),(0,r.jsx)("h2",{className:"text-2xl font-semibold text-gray-900",children:t})]}),(0,r.jsx)("p",{className:"text-gray-600 mb-6",children:s}),l]}),(0,r.jsx)("div",{className:(0,u.cn)(i?"order-1 md:order-2":""),children:(0,r.jsxs)(k,{className:"w-full",children:[(0,r.jsx)(C,{children:a.map((e,s)=>(0,r.jsx)(A,{children:(0,r.jsx)("div",{className:(0,u.cn)("rounded-xl overflow-hidden border-2 border-dashed border-gray-200 relative bg-gray-100",n&&"cursor-pointer hover:border-primary transition-colors"),onClick:()=>n?.(s),children:(0,r.jsx)(v.default,{src:e,alt:`${t} - ${d("step")} ${s+1}`,width:600,height:400,className:"w-full h-auto object-cover aspect-video"})})},s))}),c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E,{className:"left-2"}),(0,r.jsx)(z,{className:"right-2"})]})]})})]})}z.displayName="CarouselNext";var P=s(15283),D=s(73321);function S(){let e=(0,h.c3)("installation.upgrade-mode");return(0,r.jsx)("div",{className:"mb-12 rounded-2xl border-2 border-primary/20 bg-primary/5 p-8 relative overflow-hidden",children:(0,r.jsxs)("div",{className:"relative z-10",children:[(0,r.jsxs)("h2",{className:"text-2xl font-bold text-primary mb-4 flex items-center gap-2",children:[(0,r.jsx)("span",{className:"bg-primary text-white text-xs px-2 py-1 rounded-full uppercase tracking-wider",children:"UPGRADE"}),e("title")]}),(0,r.jsx)("p",{className:"text-gray-700 text-lg",children:e.rich("description",{link:e=>(0,r.jsx)(x.Link,{href:"/blog/post/1",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 hover:underline",children:e})})})]})})}function T(){let e=(0,h.c3)("installation.check-old-version-alert");return(0,r.jsx)("div",{className:"mb-12 rounded-2xl border-2 border-primary/20 bg-primary/5 p-8 relative overflow-hidden",children:(0,r.jsxs)("div",{className:"relative z-10",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-primary mb-4 flex items-center gap-2",children:e("title")}),(0,r.jsx)("p",{className:"text-gray-700 text-lg",children:e("description")}),(0,r.jsx)("p",{className:"mt-4 text-gray-700 text-lg",children:e.rich("upgrade-link",{link:e=>(0,r.jsx)(x.Link,{href:"/installation?mode=UPGRADE",className:"underline",children:e})})})]})})}let L="stealer-script-version";function R({mode:e,steps:t,stealerVersion:s}){let b=(0,h.c3)("installation"),j=(0,D.useRouter)(),N=(0,D.usePathname)(),y=(0,D.useSearchParams)(),[w,F]=(0,m.useState)(null),[_,U]=(0,m.useState)(!1),[$,O]=(0,m.useState)(null),[G,B]=(0,m.useState)(null),[X,V]=(0,m.useState)(),[
1K,Q]=(0,m.useState)(!1),[W,q]=(0,m.useState)(!1),H=e||"INSTALLATION",J=t.filter(e=>e.types.includes(H));(0,m.useEffect)(()=>{F(window.navigator.userAgent.toLowerCase().indexOf("firefox")>-1);let e=()=>{let e=document.getElementById(L);if(e){let t=e.textContent;if(O({isInstalled:!0,version:t}),t&&t!==s&&"UPDATE"!==H){let e=new URLSearchParams(y.toString());e.set("mode","UPDATE"),j.replace(`${N}?${e.toString()}`,{scroll:!1})}}};e();let t=setInterval(e,500),r=()=>{"visible"===document.visibilityState&&e()};return window.addEventListener("visibilitychange",r),()=>{clearInterval(t),window.removeEventListener("visibilitychange",r)}},[H,s,N,j,y]),(0,m.useEffect)(()=>{X&&G&&X.scrollTo(G.initialIndex)},[X,G]),(0,m.useEffect)(()=>{let e;return K&&(e=setInterval(()=>{let e=document.getElementById(L);if(e){let t=e.textContent;if("UPDATE"===H&&t!==s)return;O({isInstalled:!0,version:t}),Q(!1)}},1e3)),()=>clearInterval(e)},[K,H,s]),(0,m.useEffect)(()=>{let e;return K?e=setTimeout(()=>{q(!0)},5e3):q(!1),()=>clearTimeout(e)},[K]);let M=w||_,Y=$?.isInstalled&&$?.version===s,Z=(e,t)=>{B({images:e.images,initialIndex:t,title:e.title})},ee=e=>e.buttonData?.href.endsWith(".user.js"),et=(e,t,l)=>{let c=e.title.toLowerCase().includes("firefox"),o=ee(e),m=(0,h.c3)("installation");if(c&&M)return(0,r.jsxs)("div",{className:"mt-4 text-sm text-green-600 flex items-center gap-2 bg-green-50 px-4 py-2 rounded-lg border border-green-200 w-fit",children:[(0,r.jsx)(i.A,{className:"h-4 w-4"}),m("messages.using-firefox")]});if(o&&$?.isInstalled&&("UPDATE"!==H||$.version===s))return(0,r.jsxs)("div",{className:"mt-4 text-sm text-green-600 flex items-center gap-2 bg-green-50 px-4 py-2 rounded-lg border border-green-200 w-fit",children:[(0,r.jsx)(i.A,{className:"h-4 w-4"}),m("UPDATE"===H?"messages.script-updated":"messages.script-installed")]});return(0,r.jsxs)("div",{className:"flex flex-col gap-2 mt-4",children:[e.buttonData&&(0,r.jsx)(a.$,{asChild:!0,size:"lg",className:"w-full sm:w-auto",...o?{onClick:()=>{ee(e)&&Q(!0)}}:{},children:(0,r.jsxs)(x.Link,{href:e.buttonData.href,target:"_blank",children:[e.buttonData.icon,e.buttonData.label]})}),o&&K&&(0,r.jsxs)("div",{className:"flex flex-col gap-2 mt-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-primary animate-pulse",children:[(0,r.jsx)(n.A,{className:"h-4 w-4 animate-spin"}),(0,r.jsx)("span",{className:"text-sm font-medium",children:m("messages.waiting-for-install")})]}),W&&(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground animate-in fade-in slide-in-from-top-2",children:[(0,r.jsx)("span",{children:m("messages.not-detected")}),(0,r.jsxs)(a.$,{variant:"link",size:"sm",className:"h-auto p-0 text-primary",onClick:()=>window.location.reload(),children:[(0,r.jsx)(d.A,{className:"mr-1 h-3 w-3"}),m("messages.reload-page")]})]})]})]})};return(0,r.jsxs)(r.Fragment,{children:[Y?(0,r.jsxs)(P.Fc,{className:"mb-8 border-green-200 bg-green-50 text-green-900 [&>svg]:text-green-600",children:[(0,r.jsx)(c.A,{className:"h-4 w-4"}),(0,r.jsx)(P.XL,{children:b("messages.all-ready")}),(0,r.jsx)(P.TN,{children:b("messages.script-latest",{version:$?.version??""})})]}):(0,r.jsxs)(r.Fragment,{children:["INSTALLATION"===H&&(0,r.jsx)(T,{}),"FREE"===H&&(0,r.jsx)(g,{}),"UPDATE"===H&&(0,r.jsx)(f,{}),"UPGRADE"===H&&(0,r.jsx)(S,{})]}),(0,r.jsx)("div",{className:"space-y-12 relative",children:"INSTALLATION"===H||"FREE"===H||"UPGRADE"===H?(0,r.jsxs)(r.Fragment,{children:[J.length>0&&(0,r.jsx)(I,{stepNumber:1,title:J[0].title,description:J[0].description,images:J[0].images,reverse:!1,onImageClick:e=>Z(J[0],e),children:et(J[0],0,1)}),J.length>1&&(0,r.jsx)(l.w,{}),(0,r.jsxs)("div",{className:"relative",children:[!M&&(0,r.jsx)(p,{onBypass:()=>U(!0)}),(0,r.jsx)("div",{className:(0,u.cn)("space-y-12 transition-all duration-500",M?"":"blur-sm opacity-50 pointer-events-none select-none grayscale"),children:J.slice(1).map((e,t)=>(0,r.jsxs)("div",{children:[(0,r.jsx)(I,{stepNumber:t+2,title:e.title,description:e.description,images:e.images,reverse:!1,onImageClick:t=>Z(e,t),children:et(e,t+1,t+2)}),t<J.length-2&&(0,r.jsx)(l.w,{className:"mt-12"})]},t+2))})]})]}):(0,r.jsx)("div",{className:"space-y-12",children:J.map((e,t)=>(0,r.jsxs)("div",{children:[(0,r.jsx)(I,{stepNumber:t+1,title:e.title,de
1scription:e.description,images:e.images,reverse:!1,onImageClick:t=>Z(e,t),children:et(e,t,t+1)}),t<J.length-1&&(0,r.jsx)(l.w,{className:"mt-12"})]},t+1))})}),G&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm cursor-pointer animate-in fade-in",onClick:()=>B(null)}),(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 pointer-events-none",children:(0,r.jsxs)("div",{className:"relative w-full max-w-6xl pointer-events-auto",onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)(k,{setApi:V,className:"w-full",children:[(0,r.jsx)(C,{children:G.images.map((e,t)=>(0,r.jsx)(A,{children:(0,r.jsx)("div",{className:"relative w-full aspect-video bg-gray-100 rounded-xl overflow-hidden shadow-2xl",children:(0,r.jsx)(v.default,{src:e,alt:b("image_alt",{index:t+1}),fill:!0,className:"object-contain"})})},t))}),G.images.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E,{className:"left-4"}),(0,r.jsx)(z,{className:"right-4"})]})]}),(0,r.jsx)("button",{onClick:()=>B(null),className:"absolute -top-12 right-0 p-2 bg-white/10 hover:bg-white/20 text-white rounded-full transition-colors",children:(0,r.jsx)(o.A,{className:"w-6 h-6"})})]})})]})]})}},66172:(e,t,s)=>{Promise.resolve().then(s.bind(s,42137))},89239:(e,t,s)=>{"use strict";s.d(t,{$:()=>d});var r=s(95155);s(12115);var a=s(42442),l=s(18460),i=s(40980);let n=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-black underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",xl:"h-12 rounded-md px-8 has-[>svg]:px-6",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:t,size:s,asChild:l=!1,...c}){let o=l?a.DX:"button";return(0,r.jsx)(o,{"data-slot":"button",className:(0,i.cn)(n({variant:t,size:s,className:e})),...c})}},97916:(e,t,s)=>{"use strict";s.d(t,{w:()=>n});var r=s(95155),a=s(12115),l=s(89803),i=s(40980);let n=a.forwardRef(({className:e,orientation:t="horizontal",decorative:s=!0,...a},n)=>(0,r.jsx)(l.b,{ref:n,decorative:s,orientation:t,className:(0,i.cn)("shrink-0 bg-border","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...a}));n.displayName=l.b.displayName}},e=>{e.O(0,[7311,8500,8437,7891,8441,3794,7358],()=>e(e.s=66172)),_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.