1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6531],{28393:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function i(e,t){var n=r(e,t,"get");return n.get?n.get.call(e):n.value}function o(e,t,n){var i=r(e,t,"set");if(i.set)i.set.call(e,n);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=n}return n}n.d(t,{N:()=>p});var l,s,u=n(9407),a=n(37967),c=n(72921),f=n(36757),d=n(83191),m=Object.defineProperty,h=(e,t)=>m(e,"name",{value:t,configurable:!0});function p(e){let t=e+"CollectionProvider",[n,r]=(0,a.A)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=h(e=>{let{scope:t,children:n}=e,r=u.useRef(null),o=u.useRef(new Map).current;return(0,d.jsx)(i,{scope:t,itemMap:o,collectionRef:r,children:n})},"CollectionProvider");l.displayName=t;let s=e+"CollectionSlot",m=(0,f.TL)(s),p=u.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(s,n),l=(0,c.s)(t,i.collectionRef);return(0,d.jsx)(m,{ref:l,children:r})});p.displayName=s;let y=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,f.TL)(y),w=u.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,l=u.useRef(null),s=(0,c.s)(t,l),a=o(y,n);return u.useEffect(()=>(a.itemMap.set(l,{ref:l,...i}),()=>void a.itemMap.delete(l))),(0,d.jsx)(g,{...{[v]:""},ref:s,children:r})});function b(t){let n=o(e+"CollectionConsumer",t);return u.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return w.displayName=y,h(b,"useCollection"),[{Provider:l,Slot:p,ItemSlot:w},b,r]}h(p,"createCollection");var y=new WeakMap,v=(l=new WeakMap,h(s=class e extends Map{set(e,t){return y.get(this)&&(this.has(e)?i(this,l)[i(this,l).indexOf(e)]=e:i(this,l).push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),s=i(this,l).length,u=b(e),a=u>=0?u:s+u,c=a<0||a>=s?-1:a;if(c===this.size||o&&c===this.size-1||-1===c)return this.set(t,n),this;let f=this.size+ +!o;u<0&&a++;let d=[...i(this,l)],m=!1;for(let e=a;e<f;e++)if(a===e){let i=d[e];d[e]===t&&(i=d[e+1]),o&&this.delete(t),r=this.get(i),this.set(t,n)}else{m||d[e-1]!==t||(m=!0);let n=d[m?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=i(this,l).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=i(this,l).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=i(this,l).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=i(this,l).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return o(this,l,[]),super.clear()}delete(e){let t=super.delete(e);return t&&i(this,l).splice(i(this,l).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=g(i(this,l),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=g(i(this,l),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return i(this,l).indexOf(e)}keyAt(e){return g(i(this,l),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,o=0,l=null!=i?i:this.at(0);for(let e of this)l=0===o&&1===t.length?e:Reflect.apply(r,this,[l,e,o,this]),o++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,o=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);o=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[o,n,e,this])}return o}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=[...this.entries()];return i.splice(...n),new e(i)}
1slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,l,{writable:!0,value:void 0}),o(this,l,[...super.keys()]),y.set(this,!0)}},"OrderedDict"),s);function g(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=w(e,t);return -1===n?void 0:e[n]}function w(e,t){let n=e.length,r=b(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}function b(e){return e!=e||0===e?0:Math.trunc(e)}function C(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function E(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function S(e,t){return e[1].element&&t[1].element?E(e[1].element,t[1].element)?-1:1:0}function N(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}h(g,"at"),h(w,"toSafeIndex"),h(b,"toSafeInteger"),h(function(e){let t=e+"CollectionProvider",[n,r]=(0,a.A)(t),[i,o]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new v,setItemMap:h(()=>void 0,"setItemMap")}),l=h(e=>{let{state:t,...n}=e;return t?(0,d.jsx)(m,{...n,state:t}):(0,d.jsx)(s,{...n})},"CollectionProvider");l.displayName=t;let s=h(e=>{let t=O();return(0,d.jsx)(m,{...e,state:t})},"CollectionInit");s.displayName=t+"Init";let m=h(e=>{let{scope:t,children:n,state:r}=e,o=u.useRef(null),[l,s]=u.useState(null),a=(0,c.s)(o,s),[f,m]=r;return u.useEffect(()=>{if(!l)return;let e=N(()=>{});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l]),(0,d.jsx)(i,{scope:t,itemMap:f,setItemMap:m,collectionRef:a,collectionRefObject:o,collectionElement:l,children:n})},"CollectionProviderImpl");m.displayName=t+"Impl";let p=e+"CollectionSlot",y=(0,f.TL)(p),g=u.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(p,n),l=(0,c.s)(t,i.collectionRef);return(0,d.jsx)(y,{ref:l,children:r})});g.displayName=p;let w=e+"CollectionItemSlot",b=(0,f.TL)(w),E=u.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,l=u.useRef(null),[s,a]=u.useState(null),f=(0,c.s)(t,l,a),{setItemMap:m}=o(w,n),h=u.useRef(i);C(h.current,i)||(h.current=i);let p=h.current;return u.useEffect(()=>(m(e=>s?e.has(s)?e.set(s,{...p,element:s}).toSorted(S):(e.set(s,{...p,element:s}),e.toSorted(S)):e),()=>{m(e=>s&&e.has(s)?(e.delete(s),new v(e)):e)}),[s,p,m]),(0,d.jsx)(b,{"data-radix-collection-item":"",ref:f,children:r})});function O(){return u.useState(new v)}function R(t){let{itemMap:n}=o(e+"CollectionConsumer",t);return n}return E.displayName=w,h(O,"useInitCollection"),h(R,"useCollection"),[{Provider:l,Slot:g,ItemSlot:E},{createCollectionScope:r,useCollection:R,useInitCollection:O}]},"createCollection"),h(C,"shallowEqual"),h(E,"isElementPreceding"),h(S,"sortByDocumentPosition"),h(N,"getChildListObserver")},37967:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(9407),i=n(83191),o=Object.defineProperty,l=(e,t)=>o(e,"name",{value:t,configurable:!0});function s(e,t=[]){let n=[];function o(t,o){let s=r.createContext(o);s.displayName=t+"Context";let u=n.length;n=[...n,o];let a=l(t=>{let{scope:n,children:o,...l}=t,a=n?.[e]?.[u]||s,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(a.Provider,{value:c,children:o})},"Provider");function c(n,i,l={}){let{optional:a=!1}=l,f=i?.[e]?.[u]||s,d=r.useContext(f);if(d)return d;if(void 0!==o)return o;if(!a)throw Error(`\`${n}\` must be used within \`${t}\``)}return a.displayName=t+"Provider",l(c,"useContext"),[a,c]}l(o,"createContext");let a=l(()=>{let t=n.map(e=>r.createContext(e));return l(function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])},"useScope")},"createScope");return a.scopeName=e,[o,u(a,...t)]}function u(...e){let t=e[0];if(1===e.length)return t;let n=l(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return l(function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}l(function(e,t){let n=r.createContext(t);n.displayName=e+"Context";let o=l(e=>{let{children:t,...o}=e,l=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:l,children:t})},"Provider");function s(i,o={}){let{optional:l=!1}=o,u=r.useContext(n);if(u)return u;if(void 0!==t)return t;if(!l)throw Error(`\`${i}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",l(s,"useContext"),[o,s]},"createContext"),l(s,"createContextScope"),l(u,"composeContextScopes")},39308:(e,t,n)=>{n.d(t,{mK:()=>l});var r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0}),o=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return i(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function s(e){if(!o)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function u(e){return"IFRAME"===e.tagName}i(l,"composeEventHandlers"),i(function(e){if(!o)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),i(s,"getOwnerDocument"),i(function e(t,n=!1){let{activeElement:r}=s(t);if(!r?.nodeName)return null;if(u(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=s(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),i(u,"isFrame")},41308:(e,t,n)=>{n.d(t,{C:()=>u});var r=n(9407),i=n(70884),o=Object.defineProperty,l=(e,t)=>
1o(e,"name",{value:t,configurable:!0});function s(e,t){return r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},e)}l(s,"useStateMachine");var u=l(e=>{let{present:t,children:n}=e,i=a(t),o="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),l=f(i.ref,m(o));return"function"==typeof n||i.isPresent?r.cloneElement(o,{ref:l}):null},"Presence");function a(e){let[t,n]=r.useState(),o=r.useRef(null),u=r.useRef(e),a=r.useRef("none"),c=r.useRef(void 0),[f,m]=s(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{if("mounted"===f){var e;a.current=null!=(e=c.current)?e:d(o.current),c.current=void 0}else a.current="none"},[f]),(0,i.N)(()=>{let t=o.current,n=u.current;if(n!==e){let r=a.current,i=d(t);e?(c.current=i,m("MOUNT")):"none"===i||(null==t?void 0:t.display)==="none"?m("UNMOUNT"):n&&r!==i?m("ANIMATION_OUT"):m("UNMOUNT"),u.current=e}},[e,m]),(0,i.N)(()=>{if(t){var e;let n,r=null!=(e=t.ownerDocument.defaultView)?e:window,i=l(e=>{let i=d(o.current).includes(CSS.escape(e.animationName));if(e.target===t&&i&&(m("ANIMATION_END"),!u.current)){let e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},"handleAnimationEnd"),s=l(e=>{e.target===t&&(a.current=d(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{r.clearTimeout(n),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);o.current=t,c.current=d(t)}else o.current=null;n(e)},[])}}function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=r.useRef(t);return i.current=t,r.useCallback(e=>{let t=i.current,n=!1,r=t.map(t=>{let r=c(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){let n=r[e];"function"==typeof n?n():c(t[e],null)}}},[])}function d(e){return(null==e?void 0:e.animationName)||"none"}function m(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}l(a,"usePresence"),l(c,"setRef"),l(f,"useStableComposedRefs"),l(d,"getAnimationName"),l(m,"getElementRef")},57045:(e,t,n)=>{n.d(t,{D:()=>c,N:()=>f});var r=n(9407),i=(e,t,n,r,i,o,l,s)=>{let u=document.documentElement,a=["light","dark"];function c(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&o?i.map(e=>o[e]||e):i;n?(u.classList.remove(...r),u.classList.add(o&&o[t]?o[t]:t)):u.setAttribute(e,t)}),n=t,s&&a.includes(n)&&(u.style.colorScheme=n)}if(r)c(r);else try{let e=localStorage.getItem(t)||n,r=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(r)}catch(e){}},o=["light","dark"],l="(prefers-color-scheme: dark)",s="undefined"==typeof window,u=r.createContext(void 0),a={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=r.useContext(u))?e:a},f=e=>r.useContext(u)?r.createElement(r.Fragment,null,e.children):r.createElement(m,{...e}),d=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:i=!0,enableColorScheme:s=!0,storageKey:a="theme",themes:c=d,defaultTheme:f=i?"system":"light",attribute:m="data-theme",value:g,children:w,nonce:b,scriptProps:C}=e,[E,S]=r.useState(()=>p(a,f)),[N,O]=r.useState(()=>"system"===E?v():E),R=g?Object.values(g):c,A=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&i&&(t=v());let r=g?g[t]:t,l=n?y(b):null,u=document.documentElement,a=e=>{"class"===e?(u.classList.remove(...R),r&&u.classList.add(r)):e.startsWith("data-")&&(r?u.setAttribute(e,r):u.removeAttribute(e))};if(Array.isArray(m)?m.forEach(a):a(m),s){let e=o.includes(f)?f:null,n=o.includes(t)?t:e;u.style.colorScheme=n}null==l||l()},[b]),M=r.useCallback(e=>{let t="function"==typeof e?e(E):e;S(t);try{localStorage.setItem(a,t)}catch(e){}},[E]),x=r.useCallback(e=>{O(v(e)),"system"===E&&i&&!t&&A("system")},[E,t]);r.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(x),x(e),()=>e.removeListener(x)},[x]),r.useEffect(()=>{let e=e=>{e.key===a&&(e.newValue?S(e.newValue):M(f))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[M]),r.useEffect(()=>{A(null!=t?t:E)},[t,E]);let T=r.useMemo(()=>({theme:E,setTheme:M,forcedTheme:t,resolvedTheme:"system"===E?N:E,themes:i?[...c,"system"]:c,systemTheme:i?N:void 0}),[E,M,t,N,i,c]);return r.createElement(u.Provider,{value:T},r.createElement(h,{forcedTheme:t,storageKey:a,attribute:m,enableSystem:i,enableColorScheme:s,defaultTheme:f,value:g,themes:c,nonce:b,scriptProps:C}),w)},h=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:o,enableSystem:l,enableColorScheme:s,defaultTheme:u,value:a,themes:c,nonce:f,scriptProps:d}=e,m=JSON.stringify([o,n,u,t,c,a,l,s]).slice(1,-1);return r.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?f:"",dangerouslySetInnerHTML:{__html:"(".concat(i.toString(),")(").concat(m,")")}})}),p=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>
1(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},59830:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(9407);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(0,Object.defineProperty)(i,"name",{value:"useCallbackRef",configurable:!0})},70884:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(9407),i=globalThis?.document?r.useLayoutEffect:()=>{}},97978:(e,t,n)=>{n.d(t,{i:()=>m});var r=n(9407),i=n.t(r,2),o=n(70884),l=Object.defineProperty,s=i[" useEffectEvent ".trim().toString()],u=i[" useInsertionEffect ".trim().toString()];function a(e){if("function"==typeof s)return s(e);let t=r.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof u?u(()=>{t.current=e}):(0,o.N)(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}l(a,"name",{value:"useEffectEvent",configurable:!0});var c=Object.defineProperty,f=(e,t)=>c(e,"name",{value:t,configurable:!0}),d=i[" useInsertionEffect ".trim().toString()]||o.N;function m({prop:e,defaultProp:t,onChange:n=f(()=>{},"onChange"),caller:i}){let[o,l,s]=h({defaultProp:t,onChange:n}),u=void 0!==e,a=u?e:o;return[a,r.useCallback(t=>{if(u){let n=p(t)?t(e):t;n!==e&&s.current?.(n)}else l(t)},[u,e,l,s])]}function h({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),o=r.useRef(n),l=r.useRef(t);return d(()=>{l.current=t},[t]),r.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,i,l]}function p(e){return"function"==typeof e}f(m,"useControllableState"),f(h,"useUncontrolledState"),f(p,"isFunction");var y=Symbol("RADIX:SYNC_STATE");f(function(e,t,n,i){let{prop:o,defaultProp:l,onChange:s,caller:u}=t,c=void 0!==o,f=a(s),d=[{...n,state:l}];i&&d.push(i);let[m,h]=r.useReducer((t,n)=>{if(n.type===y)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&f(r.state),r},...d),p=m.state,v=r.useRef(p);r.useEffect(()=>{v.current!==p&&(v.current=p,c||f(p))},[p,v,c]);let g=r.useMemo(()=>void 0!==o?{...m,state:o}:m,[m,o]);return r.useEffect(()=>{c&&!Object.is(o,m.state)&&h({type:y,state:o})},[o,m.state,c]),[g,h]},"useControllableStateReducer")}}]);
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.