PageSourceSearch

https://lablab.ai/_next/static/chunks/50679-86569cabcd82c80a.js

js lablab.ai collected 2026-10-01 11:24:37 UTC 12,735 bytes, 3 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="7d359b24-bce7-526b-bc38-2c5c42e487c1")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[50679],{6554:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(54842);function o(e,t){return(0,r.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},7606:(e,t,n)=>{n.d(t,{l:()=>o});var r=n(88175);function o(e){let t=e.parentElement,n=null;for(;t&&!r.Er(t);)r.Jb(t)&&(n=t),t=t.parentElement;let o=(null==t?void 0:t.getAttribute("disabled"))==="";return!(o&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(r.Jb(t))return!1;t=t.previousElementSibling}return!0}(n))&&o}},10996:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(54842),o=n(73332),i=n(37847),u=n(25448);function l(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,r.useRef)(null),[n,l]=(0,r.useState)(!1),s=(0,i.L)(),c=(0,u._)(()=>{t.current=null,l(!1),s.dispose()}),a=(0,u._)(e=>{if(s.dispose(),null===t.current){t.current=e.currentTarget,l(!0);{let n=(0,o.TW)(e.currentTarget);s.addEventListener(n,"pointerup",c,!1),s.addEventListener(n,"pointermove",e=>{if(t.current){var n,r;let o,i;l((o=e.width/2,i=e.height/2,n={top:e.clientY-i,right:e.clientX+o,bottom:e.clientY+i,left:e.clientX-o},r=t.current.getBoundingClientRect(),!(!n||!r||n.right<r.left||n.left>r.right||n.bottom<r.top||n.top>r.bottom)))}},!1),s.addEventListener(n,"pointercancel",c,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:c,onClick:c}}}},38980:(e,t,n)=>{n.d(t,{o:()=>V});var r=n(47035),o=n(84673),i=n(54842);let u="undefined"!=typeof document?i.useLayoutEffect:()=>{};function l(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function s(e){let t=(0,i.useRef)({isFocused:!1,observer:null});return u(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,i.useCallback)(n=>{let o=(0,r.wt)(n);(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement)&&(t.current.isFocused=!0,o.addEventListener("focusout",n=>{if(t.current.isFocused=!1,o.disabled){let t=l(n);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){t.current.observer?.disconnect();let e=o===(0,r.bq)()?null:(0,r.bq)();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]}))},[e])}function c(e){if("undefined"==typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function a(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function d(e){let t=null;return()=>(null==t&&(t=e()),t)}let f=d(function(){return a(/^Mac/i)}),p=d(function(){return a(/^iPhone/i)}),v=d(function(){return a(/^iPad/i)||f()&&navigator.maxTouchPoints>1}),b=d(function(){return p()||v()});d(function(){return f()||b()});let y=d(function(){return c(/AppleWebKit/i)&&(b()||!E())});d(function(){return y()&&!E()&&!m()});let E=d(function(){return c(/Chrome|CriOS|CrMo/i)}),T=d(function(){return c(/Android/i)}),m=d(function(){return c(/(Firefox|FxiOS)/i)}),g=null;function w(e,t,n=!0){let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:u}=t;!y()&&m()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(f()?r=!0:o=!0);let l=y()&&f()&&!v()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:u}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:u,detail:1,bubbles:!0,cancelable:!0});w.isOpening=n;if(function(){if(null==g){g=!1;try{document.createElement("div").focus({get preventScroll(){return g=!0,!0}})}catch{}}return g}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}e.dispatchEvent(l),w.isOpening=!1}w.isOpening=!1;let h=null,L=new Set,F=new Map,k=!1,H=!1,P={Tab:!0,Escape:!0};function M(e,t){for(let n of L)n(e,t)}function W(e){k=!0,w.isOpening||e.metaKey||!f()&&e.altKey||e.ctrlKey||"Control"
2===e.key||"Shift"===e.key||"Meta"===e.key||(h="keyboard",M("keyboard",e))}function C(e){h="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(k=!0,M("pointer",e))}function D(e){w.isOpening||(""!==e.pointerType||!e.isTrusted)&&(T()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(k=!0,h="virtual")}function K(e){let t=(0,r.wt)(e),n=(0,o.mD)(t),i=(0,o.TW)(t);if(t===n){H=!0;return}t!==i&&e.isTrusted&&(k||H||(h="virtual",M("virtual",e)),k=!1,H=!1)}function A(){k=!1,H=!0}function S(e){if("undefined"==typeof window||"undefined"==typeof document)return;let t=(0,o.mD)(e),n=(0,o.TW)(e);if(F.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){k=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",W,!0),n.addEventListener("keyup",W,!0),n.addEventListener("click",D,!0),t.addEventListener("focus",K,!0),t.addEventListener("blur",A,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",C,!0),n.addEventListener("pointermove",C,!0),n.addEventListener("pointerup",C,!0)),t.addEventListener("beforeunload",()=>{O(e)},{once:!0}),F.set(t,{focus:r})}let O=(e,t)=>{let n=(0,o.mD)(e),r=(0,o.TW)(e);t&&r.removeEventListener("DOMContentLoaded",t),F.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:F.get(n).focus}),r.removeEventListener("keydown",W,!0),r.removeEventListener("keyup",W,!0),r.removeEventListener("click",D,!0),n.removeEventListener("focus",K,!0),n.removeEventListener("blur",A,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",C,!0),r.removeEventListener("pointermove",C,!0),r.removeEventListener("pointerup",C,!0)),F.delete(n))};function x(){return"pointer"!==h}"undefined"!=typeof document&&function(e){let t,n=(0,o.TW)(void 0);"loading"!==n.readyState?S(void 0):(t=()=>{S(e)},n.addEventListener("DOMContentLoaded",t)),()=>O(e,t)}();let B=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);var R=n(78545);function V(e={}){var t;let{autoFocus:n=!1,isTextInput:u,within:c}=e,a=(0,i.useRef)({isFocused:!1,isFocusVisible:n||x()}),[d,f]=(0,i.useState)(!1),[p,v]=(0,i.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),b=(0,i.useCallback)(()=>v(a.current.isFocused&&a.current.isFocusVisible),[]),y=(0,i.useCallback)(e=>{a.current.isFocused=e,a.current.isFocusVisible=x(),f(e),b()},[b]);t={enabled:d,isTextInput:u},S(),(0,i.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,n)=>{(function(e,t,n){let i=n?(0,r.wt)(n):void 0,u=(0,o.TW)(i),l=(0,o.mD)(i),s=void 0!==l?l.HTMLInputElement:HTMLInputElement,c=void 0!==l?l.HTMLTextAreaElement:HTMLTextAreaElement,a=void 0!==l?l.HTMLElement:HTMLElement,d=void 0!==l?l.KeyboardEvent:KeyboardEvent,f=(0,r.bq)(u);return!((e=e||f instanceof s&&!B.has(f.type)||f instanceof c||f instanceof a&&f.isContentEditable)&&"keyboard"===t&&n instanceof d&&!P[n.key])})(!!t?.isTextInput,e,n)&&(e=>{a.current.isFocusVisible=e,b()})(x())};return L.add(e),()=>{L.delete(e)}},[u,d]);let{focusProps:E}=function(e){let{isDisabled:t,onFocus:n,onBlur:u,onFocusChange:l}=e,c=(0,i.useCallback)(e=>{if((0,r.wt)(e)===e.currentTarget)return u&&u(e),l&&l(!1),!0},[u,l]),a=s(c),d=(0,i.useCallback)(e=>{let t=(0,r.wt)(e),i=(0,o.TW)(t),u=i?(0,r.bq)(i):(0,r.bq)();t===e.currentTarget&&t===u&&(n&&n(e),l&&l(!0),a(e))},[l,n,a]);return{focusProps:{onFocus:!t&&(n||l||u)?d:void 0,onBlur:!t&&(u||l)?c:void 0}}}({isDisabled:c,onFocusChange:y}),{focusWithinProps:T}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:u,onFocusWithinChange:c}=e,a=(0,i.useRef)({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:f}=(0,R.A)(),p=(0,i.useCallback)(e=>{(0,r.sD)(e.currentTarget,(0,r.wt)(e))&&a.current.isFocusWithin&&!(0,r.sD)(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,f(),n&&n(e),c&&c(!1))},[n,c,a,f]),v=s(p),b=(0,i.useCallback)(e=>{if(!(0,r.sD)(e.currentTarget,(0,r.wt)(e)))return;let t=(0,r.wt)(e),n=(0,o.TW)(t),i=(0,r.bq)(n);if(!a.current.isFocusWithin&&i===t){u&&u(e),c&&c(!0),a.current.isFocusWithin=!0,v(e);let t=e.currentTarget;d(n,"focus",e=>{let o=(0,r.wt)(e);if(a.current.isFocusWithin&&!(0,r.sD)(t,o)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:o});Object.defineProperty(e,"target",{value:t}
2),Object.defineProperty(e,"currentTarget",{value:t}),p(l(e))}},{capture:!0})}},[u,c,v,d,p]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:b,onBlur:p}}}({isDisabled:!c,onFocusWithinChange:y});return{isFocused:d,isFocusVisible:p,focusProps:c?T:E}}},47035:(e,t,n)=>{n.d(t,{bq:()=>o,wt:()=>i,sD:()=>r}),n(84673);function r(e,t){return!!t&&!!e&&e.contains(t)}let o=(e=document)=>e.activeElement;function i(e){return e.target}},49529:(e,t,n)=>{n.d(t,{M:()=>d});var r=n(47035),o=n(84673),i=n(78545),u=n(54842);let l=!1,s=0;function c(e){"touch"===e.pointerType&&(l=!0,setTimeout(()=>{l=!1},500))}function a(){let e=(0,o.TW)(null);if(void 0!==e)return 0===s&&"undefined"!=typeof PointerEvent&&e.addEventListener("pointerup",c),s++,()=>{--s>0||"undefined"!=typeof PointerEvent&&e.removeEventListener("pointerup",c)}}function d(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:s,isDisabled:c}=e,[d,f]=(0,u.useState)(!1),p=(0,u.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,u.useEffect)(a,[]);let{addGlobalListener:v,removeAllGlobalListeners:b}=(0,i.A)(),{hoverProps:y,triggerHoverEnd:E}=(0,u.useMemo)(()=>{let e=(e,t)=>{let r=p.target;p.pointerType="",p.target=null,"touch"!==t&&p.isHovered&&r&&(p.isHovered=!1,b(),s&&s({type:"hoverend",target:r,pointerType:t}),n&&n(!1),f(!1))},i={};return"undefined"!=typeof PointerEvent&&(i.onPointerEnter=i=>{l&&"mouse"===i.pointerType||((i,u)=>{if(p.pointerType=u,c||"touch"===u||p.isHovered||!(0,r.sD)(i.currentTarget,(0,r.wt)(i)))return;p.isHovered=!0;let l=i.currentTarget;p.target=l,v((0,o.TW)((0,r.wt)(i)),"pointerover",t=>{p.isHovered&&p.target&&!(0,r.sD)(p.target,(0,r.wt)(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:l,pointerType:u}),n&&n(!0),f(!0)})(i,i.pointerType)},i.onPointerLeave=t=>{!c&&(0,r.sD)(t.currentTarget,(0,r.wt)(t))&&e(t,t.pointerType)}),{hoverProps:i,triggerHoverEnd:e}},[t,n,s,c,p,v,b]);return(0,u.useEffect)(()=>{c&&E({currentTarget:p.target},p.pointerType)},[c]),{hoverProps:y,isHovered:d}}},78545:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(54842);function o(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)((t,n,r,o)=>{let i=o?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,r.useCallback)((t,n,r,o)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,o),e.current.delete(r)},[]),o=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,r.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}},84673:(e,t,n)=>{n.d(t,{Ng:()=>u,TW:()=>r,mD:()=>o});let r=e=>!function(e){return"object"==typeof e&&null!=e&&"window"in e&&e.window===e}(e)?!function(e){return i(e)&&9===e.nodeType}(e)?e?.ownerDocument??("undefined"!=typeof document?document:void 0):e:e.document,o=e=>{let t=r(e);return t?.defaultView??("undefined"!=typeof window?window:void 0)};function i(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType}function u(e){return i(e)&&11===e.nodeType&&"host"in e}}}]);
3//# chunkId=7d359b24-bce7-526b-bc38-2c5c42e487c1

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.