PageSourceSearch

https://www.1x.tech/_next/static/chunks/5580-e78d59910aa8bd8a.js

js 1x.tech collected 2026-10-02 03:13:50 UTC 21,553 bytes, 9 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b757bd6d-def9-4674-a0d1-837382d0c36e",e._sentryDebugIdIdentifier="sentry-dbid-b757bd6d-def9-4674-a0d1-837382d0c36e")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5580,5662],{35264:function(e,t,n){"use strict";/**
2 * @license React
3 * use-sync-external-store-with-selector.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var r=n(67294),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,u=r.useRef,a=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=u(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=i(e,(d=s(function(){function e(e){if(!a){if(a=!0,i=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return u=t}return u=e}if(t=u,o(i,e))return t;var n=r(e);return void 0!==l&&l(t,n)?t:(i=e,u=n)}var i,u,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,n,r,l]))[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},72012:function(e,t,n){"use strict";e.exports=n(35264)},52226:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,i){try{return function e(i,u){if(i===u)return!0;if(i&&u&&"object"==typeof i&&"object"==typeof u){var a,s,c,l;if(i.constructor!==u.constructor)return!1;if(Array.isArray(i)){if((a=i.length)!=u.length)return!1;for(s=a;0!=s--;)if(!e(i[s],u[s]))return!1;return!0}if(n&&i instanceof Map&&u instanceof Map){if(i.size!==u.size)return!1;for(l=i.entries();!(s=l.next()).done;)if(!u.has(s.value[0]))return!1;for(l=i.entries();!(s=l.next()).done;)if(!e(s.value[1],u.get(s.value[0])))return!1;return!0}if(r&&i instanceof Set&&u instanceof Set){if(i.size!==u.size)return!1;for(l=i.entries();!(s=l.next()).done;)if(!u.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(u)){if((a=i.length)!=u.length)return!1;for(s=a;0!=s--;)if(i[s]!==u[s])return!1;return!0}if(i.constructor===RegExp)return i.source===u.source&&i.flags===u.flags;if(i.valueOf!==Object.prototype.valueOf&&"function"==typeof i.valueOf&&"function"==typeof u.valueOf)return i.valueOf()===u.valueOf();if(i.toString!==Object.prototype.toString&&"function"==typeof i.toString&&"function"==typeof u.toString)return i.toString()===u.toString();if((a=(c=Object.keys(i)).length)!==Object.keys(u).length)return!1;for(s=a;0!=s--;)if(!Object.prototype.hasOwnProperty.call(u,c[s]))return!1;if(t&&i instanceof Element)return!1;for(s=a;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!i.$$typeof)&&!e(i[c[s]],u[c[s]]))return!1;return!0}return i!=i&&u!=u}(e,i)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},62212:function(e,t,n){"use strict";n.d(t,{Nc:function(){return y}});var r,o=n(67294),i=n(85893),u=(0,o.forwardRef)(({as:e="div",...t},n)=>(0,i.jsx)(e,{...t,ref:n})),a="cf-turnstile-script",s="onloadTurnstileCallback",c=e=>!!document.getElementById(e),l=({render:e="explicit",onLoadCallbackName:t=s,scriptOptions:{nonce:n="",defer:r=!0,async:o=!0,id:i="",appendTo:u,onError:l,crossOrigin:d=""}={}})=>{let f=i||a;if(c(f))return;let p=document.createElement("script");p.id=f,p.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${e}`,document.querySelector(`script[src="${p.src}"]`)||(p.defer=!!r,p.async=!!o,n&&(p.nonce=n),d&&(p.crossOrigin=d),l&&(p.onerror=l,delete window[t]),("body"===u?document.body:document.getElementsByTagName("head")[0]).appendChild(p))},d={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}},f="unloaded",p=new Promise((e,t)=>
9{r={resolve:e,reject:t},"ready"===f&&e(void 0)}),m=(e=s)=>("unloaded"===f&&(f="loading",window[e]=()=>{r.resolve(),f="ready",delete window[e]}),p),y=(0,o.forwardRef)((e,t)=>{let{scriptOptions:n,options:r={},siteKey:p,onWidgetLoad:y,onSuccess:h,onExpire:v,onError:g,onBeforeInteractive:w,onAfterInteractive:b,onUnsupported:E,onTimeout:x,onLoadScript:k,id:S,style:O,as:N="div",injectScript:T=!0,rerenderOnCallbackChange:I=!1,...C}=e,j=r.size,M=(0,o.useCallback)(()=>typeof j>"u"?{}:"execute"===r.execution?d.invisible:"interaction-only"===r.appearance?d.interactionOnly:d[j],[r.execution,j,r.appearance]),[R,U]=(0,o.useState)(M()),L=(0,o.useRef)(null),[_,A]=(0,o.useState)(!1),D=(0,o.useRef)(void 0),P=(0,o.useRef)(!1),F=S||"cf-turnstile",V=(0,o.useRef)({onSuccess:h,onError:g,onExpire:v,onBeforeInteractive:w,onAfterInteractive:b,onUnsupported:E,onTimeout:x});(0,o.useEffect)(()=>{I||(V.current={onSuccess:h,onError:g,onExpire:v,onBeforeInteractive:w,onAfterInteractive:b,onUnsupported:E,onTimeout:x})});let $=n?.id||a,W=function(e=a){let[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let t=()=>{c(e)&&n(!0)},r=new MutationObserver(t);return r.observe(document,{childList:!0,subtree:!0}),t(),()=>{r.disconnect()}},[e]),t}($),z=n?.onLoadCallbackName||s,B=r.appearance||"always",J=(0,o.useMemo)(()=>({sitekey:p,action:r.action,cData:r.cData,theme:r.theme||"auto",language:r.language||"auto",tabindex:r.tabIndex,"response-field":r.responseField,"response-field-name":r.responseFieldName,size:function(e){if("invisible"!==e&&"interactionOnly"!==e)return e}(j),retry:r.retry||"auto","retry-interval":r.retryInterval||8e3,"refresh-expired":r.refreshExpired||"auto","refresh-timeout":r.refreshTimeout||"auto",execution:r.execution||"render",appearance:r.appearance||"always","feedback-enabled":r.feedbackEnabled||!0,callback:e=>{P.current=!0,I?h?.(e):V.current.onSuccess?.(e)},"error-callback":I?g:(...e)=>V.current.onError?.(...e),"expired-callback":I?v:(...e)=>V.current.onExpire?.(...e),"before-interactive-callback":I?w:(...e)=>V.current.onBeforeInteractive?.(...e),"after-interactive-callback":I?b:(...e)=>V.current.onAfterInteractive?.(...e),"unsupported-callback":I?E:(...e)=>V.current.onUnsupported?.(...e),"timeout-callback":I?x:(...e)=>V.current.onTimeout?.(...e)}),[r.action,r.appearance,r.cData,r.execution,r.language,r.refreshExpired,r.responseField,r.responseFieldName,r.retry,r.retryInterval,r.tabIndex,r.theme,r.feedbackEnabled,r.refreshTimeout,p,j,I,I?h:null,I?g:null,I?v:null,I?w:null,I?b:null,I?E:null,I?x:null]),K=(0,o.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,o.useEffect)(function(){T&&!_&&(m(z),l({onLoadCallbackName:z,scriptOptions:{...n,id:$}}))},[T,_,n,$,z]),(0,o.useEffect)(function(){"ready"!==f&&m(z).then(()=>A(!0)).catch(console.error)},[z]),(0,o.useEffect)(function(){if(!L.current||!_)return;let e=!1;return(async()=>{if(e||!L.current)return;let t=window.turnstile.render(L.current,J);D.current=t,D.current&&y?.(D.current)})(),()=>{e=!0,D.current&&(window.turnstile.remove(D.current),P.current=!1)}},[F,_,J]),(0,o.useImperativeHandle)(t,()=>{let{turnstile:e}=window;return{getResponse(){if(!e?.getResponse||!D.current||!K()){console.warn("Turnstile has not been loaded");return}return e.getResponse(D.current)},getResponsePromise:async(e=3e4,t=100)=>new Promise((n,r)=>{let o,i=async()=>{if(P.current&&window.turnstile&&D.current)try{let e=window.turnstile.getResponse(D.current);return o&&clearTimeout(o),e?n(e):r(Error("No response received"))}catch(e){return o&&clearTimeout(o),console.warn("Failed to get response",e),r(Error("Failed to get response"))}o||(o=setTimeout(()=>{o&&clearTimeout(o),r(Error("Timeout"))},e)),await new Promise(e=>setTimeout(e,t)),await i()};i()}),reset(){if(!e?.reset||!D.current||!K()){console.warn("Turnstile has not been loaded");return}"execute"===r.execution&&U(d.invisible);try{P.current=!1,e.reset(D.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${D}`,e)}},remove(){if(!e?.remove||!D.current||!K()){console.warn("Turnstile has not been loaded");return}U(d.invisible),P.current=!1,e.remove(D.current),D.current=null}
9,render(){if(!e?.render||!L.current||!K()||D.current){console.warn("Turnstile has not been loaded or container not found");return}let t=e.render(L.current,J);return D.current=t,D.current&&y?.(D.current),"execute"!==r.execution&&U(j?d[j]:{}),t},execute(){if("execute"!==r.execution){console.warn('Execution mode is not set to "execute"');return}if(!e?.execute||!L.current||!D.current||!K()){console.warn("Turnstile has not been loaded or container not found");return}e.execute(L.current,J),U(j?d[j]:{})},isExpired:()=>e?.isExpired&&D.current&&K()?e.isExpired(D.current):(console.warn("Turnstile has not been loaded"),!1)}},[D,r.execution,j,J,L,K,_,y]),(0,o.useEffect)(()=>{if(_||!W)return;if(window.turnstile){A(!0);return}let e=setInterval(()=>{window.turnstile&&(A(!0),clearInterval(e))},50);return()=>{clearInterval(e)}},[_,W]),(0,o.useEffect)(()=>{U(M())},[r.execution,j,B]),(0,o.useEffect)(()=>{W&&"function"==typeof k&&k()},[W]),(0,i.jsx)(u,{ref:L,as:N,id:F,style:{...R,...O},...C})});y.displayName="Turnstile"},73557:function(e,t,n){"use strict";n.d(t,{z$:function(){return T},fC:function(){return N}});var r=n(67294);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}(...e),e)}var u=n(85893);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var s=n(79698),c=n(57898),l=n(56060),d=globalThis?.document?r.useLayoutEffect:()=>{},f=e=>{let t,n;let{present:o,children:u}=e,a=function(e){var t,n;let[o,i]=r.useState(),u=r.useRef({}),a=r.useRef(e),s=r.useRef("none"),[c,l]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=p(u.current);s.current="mounted"===c?e:"none"},[c]),d(()=>{let t=u.current,n=a.current;if(n!==e){let r=s.current,o=p(t);e?l("MOUNT"):"none"===o||t?.display==="none"?l("UNMOUNT"):n&&r!==o?l("ANIMATION_OUT"):l("UNMOUNT"),a.current=e}},[e,l]),d(()=>{if(o){let e;let t=o.ownerDocument.defaultView??window,n=n=>{let r=p(u.current).includes(n.animationName);if(n.target===o&&r&&(l("ANIMATION_END"),!a.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(s.current=p(u.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}l("ANIMATION_END")},[o,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),i(e)},[])}}(o),s="function"==typeof u?u({present:a.isPresent}):r.Children.only(u),c=i(a.ref,(t=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?s.ref:(t=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?s.props.ref:s.props.ref||s.ref);return"function"==typeof u||a.isPresent?r.cloneElement(s,{ref:c}):null};function p(e){return e?.animationName||"none"}f.displayName="Presence";var m=n(75320),y="Checkbox",[h,v]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),a=n.length;n=[...n,o];let s=t=>{let{scope:n,children:o,...s}=t,c=n?.[e]?.[a]||i,l=r.useMemo(()=>s,Object.values(s));return(0,u.jsx)(c.Provider,{value:l,children:o})};return s.displayName=t+"Provider",[s,function(n,u){let s=u?.[e]?.[a]||i,c=r.useContext(s);if(c)return c;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}(y),[g,w]=h(y),b=r.forwardRef((e,t)=>
9{let{__scopeCheckbox:n,name:o,checked:c,defaultChecked:l,required:d,disabled:f,value:p="on",onCheckedChange:y,form:h,...v}=e,[w,b]=r.useState(null),E=i(t,e=>b(e)),x=r.useRef(!1),N=!w||h||!!w.closest("form"),[T=!1,I]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,i]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,i=r.useRef(o),u=(0,s.W)(t);return r.useEffect(()=>{i.current!==o&&(u(o),i.current=o)},[o,i,u]),n}({defaultProp:t,onChange:n}),u=void 0!==e,a=u?e:o,c=(0,s.W)(n);return[a,r.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else i(t)},[u,e,i,c])]}({prop:c,defaultProp:l,onChange:y}),C=r.useRef(T);return r.useEffect(()=>{let e=w?.form;if(e){let t=()=>I(C.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[w,I]),(0,u.jsxs)(g,{scope:n,state:T,disabled:f,children:[(0,u.jsx)(m.WV.button,{type:"button",role:"checkbox","aria-checked":S(T)?"mixed":T,"aria-required":d,"data-state":O(T),"data-disabled":f?"":void 0,disabled:f,value:p,...v,ref:E,onKeyDown:a(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:a(e.onClick,e=>{I(e=>!!S(e)||!e),N&&(x.current=e.isPropagationStopped(),x.current||e.stopPropagation())})}),N&&(0,u.jsx)(k,{control:w,bubbles:!x.current,name:o,value:p,checked:T,required:d,disabled:f,form:h,style:{transform:"translateX(-100%)"},defaultChecked:!S(l)&&l})]})});b.displayName=y;var E="CheckboxIndicator",x=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...o}=e,i=w(E,n);return(0,u.jsx)(f,{present:r||S(i.state)||!0===i.state,children:(0,u.jsx)(m.WV.span,{"data-state":O(i.state),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});x.displayName=E;var k=e=>{let{control:t,checked:n,bubbles:o=!0,defaultChecked:i,...a}=e,s=r.useRef(null),d=(0,c.D)(n),f=(0,l.t)(t);r.useEffect(()=>{let e=s.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(d!==n&&t){let r=new Event("click",{bubbles:o});e.indeterminate=S(n),t.call(e,!S(n)&&n),e.dispatchEvent(r)}},[d,n,o]);let p=r.useRef(!S(n)&&n);return(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i??p.current,...a,tabIndex:-1,ref:s,style:{...e.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function S(e){return"indeterminate"===e}function O(e){return S(e)?"indeterminate":e?"checked":"unchecked"}var N=b,T=x},40275:function(e,t,n){"use strict";let r;n.d(t,{Kx:function(){return m},T:function(){return p},o_:function(){return y}});var o=n(67294);let i=new Uint8Array(16),u=[];for(let e=0;e<256;++e)u.push((e+256).toString(16).slice(1));var a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let s=["channel/disconnect","channel/response","channel/heartbeat"],c=["handshake/syn","handshake/syn-ack","handshake/ack"],l=e=>s.some(t=>t===e),d=e=>c.some(t=>t===e),f=({data:e={}})=>"object"==typeof e&&null!==e&&!Array.isArray(e)&&!("domain"in e)&&["id","type","from","to"].every(t=>t in e)&&e.type.startsWith("handshake/");function p(e,t,n){let[s,c]=(0,o.useState)(),[p,m]=(0,o.useState)(!1);(0,o.useEffect)(()=>{if(window.self===window.top&&!window.opener)return;let e=function(e){let t=window.self!==window.top||window.opener,n={buffer:[],id:null,origin:null,source:null,status:"connecting"};function o(t,o){if(d(t)||l(t)||"connecting"!==n.status&&"reconnecting"!==n.status){if(n.id&&n.origin&&n.source){let s={connectionId:n.id,data:o,domain:"sanity/channels",from:e.id,id:function(e,t,n){if(a.randomUUID&&!t&&!e)return a.randomUUID();let o=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return function(e,t=0){return u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]}(o)}(),to:e.connectTo,type:t};try{n.source.postMessage(s,{targetOrigin:n.origin})}catch(t){throw Error(`Failed to postMessage '${s.id}' on '${e.id}'`)}}}else n.buffer.push({type:t,data:o})}function s(t){if(f(t))console.error("Visual editing package mismatch detected! Please ensure you are using the latest version of Sanity Studio and any packages listed here:\nhttps://github.com/sanity-io/visual-editing");else if(function(t){let{data:n}=t;return"sanity/channels"===n.domain&&n.to===e.id&&n.from===e.connectTo&&"channel/response"!==n.type}(t)){let{data:r}=t;if(n.origin&&t.origin!==n.origin)return;if(t.source&&n.source!==t.source&&(n.source=t.source),d(r.type)&&r.data){if("handshake/syn"===r.type)return n.origin=t.origin,n.id=r.data.id,c("connecting"),void o("handshake/syn-ack",{id:n.id});if("handshake/ack"===r.type&&r.data.id===n.id)return void c("connected")}else if(r.connectionId===n.id&&t.origin===n.origin){if("channel/disconnect"===r.type)return void c("disconnected");{let t=[r.type,r.data];
9e.onEvent?.(...t),o("channel/response",{responseTo:r.id})}return}}}function c(t){n.status=t,e?.onStatusUpdate?.(t),"connected"===t&&function(){let e=[...n.buffer];n.buffer.splice(0,n.buffer.length),e.forEach(({type:e,data:t})=>{o(e,t)})}()}return window.addEventListener("message",s,!1),c("connecting"),{destroy:function(){["disconnected"].includes(n.status)||c("disconnected"),window.removeEventListener("message",s,!1)},inFrame:t,send:function(e,t){o(e,t)}}}({id:"preview-kit",connectTo:"presentation",onStatusUpdate(e){"connected"===e?m(!0):"disconnected"===e&&m(!1)}}),t=setTimeout(()=>c(e),0);return()=>{clearTimeout(t),e.destroy(),c(void 0)}},[n,t]);let y=JSON.stringify(Array.from(e.keys()));(0,o.useEffect)(()=>{"[]"!==y&&s&&p&&s.send("preview-kit/documents",{projectId:t,dataset:n,perspective:"previewDrafts",documents:Array.from(e.values())})},[y,s,p,n,e,t])}function m(e){let t=(0,o.useMemo)(()=>JSON.stringify(e||{}),[e]);return(0,o.useMemo)(()=>JSON.parse(t),[t])}function y(e){let{refreshInterval:t}=e,n=function(){let[e,t]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t(navigator.onLine);let e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e),window.addEventListener("offline",n),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}},[]);let n=(0,o.useSyncExternalStore)(h,()=>document.visibilityState,()=>"hidden");return!e||"hidden"===n}(),[r,i]=(0,o.useState)("hit"),u=(0,o.useCallback)(()=>(i("inflight"),()=>i("hit")),[]);return(0,o.useEffect)(()=>{if(!t||"hit"!==r)return;let e=setTimeout(()=>i("stale"),t);return()=>clearTimeout(e)},[t,r]),(0,o.useEffect)(()=>{if("hit"!==r)return;let e=()=>i("stale");return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[t,r]),(0,o.useEffect)(()=>{n&&"hit"===r&&i("stale"),n||"stale"!==r||i("refresh")},[n,r]),[r,u]}function h(e){return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)}},58113:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});let r=(0,n(67294).createContext)(null)},90998:function(e,t,n){"use strict";n.d(t,{y:function(){return s}});var r=n(40275),o=n(67294),i=n(52226),u=n(72012),a=n(58113);function s(e,t,n,s){let{isEqual:c=i}=s||{},l=(0,o.useContext)(a.x),d=(0,r.Kx)(n),f=(0,o.useMemo)(()=>({subscribe:()=>()=>{},getSnapshot:()=>e}),[e]),p=(0,o.useMemo)(()=>(null==l?void 0:l(e,t,d))||{subscribe:()=>()=>{},getSnapshot:()=>e},[l,e,d,t]),[m]=(0,o.useState)(()=>{if(void 0===e)throw Error("initialSnapshot can't be undefined, if you don't want an initial value use null instead");try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn("Failed to deep clone initialSnapshot, this is likely an error and an indication that the snapshot isn't JSON serializable",{initialSnapshot:e,error:t}),e}}),y=(0,o.useCallback)(()=>m,[m]),h=(0,o.useCallback)(e=>e,[]),v=(0,u.useSyncExternalStoreWithSelector)((null==p?void 0:p.subscribe)||f.subscribe,(null==p?void 0:p.getSnapshot)||f.getSnapshot,y,h,c),g=null!==l;return[v,g&&m===v,g]}},82729:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return r}})},41972:function(e,t,n){"use strict";function r(e,...t){let n=e.length-1;return e.slice(0,n).reduce((e,n,r)=>e+n+t[r],"")+e[n]}n.d(t,{Z:function(){return r}})}}]);

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.