1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3483],{43483:function(e,t,n){let r,l,a,i;n.r(t),n.d(t,{default:function(){return ek}});var s,o,d=n(57437),u=n(6348),c=n(2265),p=n(12781),h=n(63758),f=n(90759),x=n(11841),m=n(46075),y=n.n(m),g=n(79473),v=n(28419),b=n(87935),w=n(30783),j=n(87477),I=n(11368),P=n(95978),k=n(66629),_=n(77419),z=n(90456),C=n(73600),S=n(7449),E=n(36940),M=n(17753),O=n(4382),R=n(45609),L=n(28887),N=n(16890),U=n(21652),K=n.n(U),T=n(60036),A=n(71033),F=n(93954),Z=n(57668);n(27795),n(18788),n(7633),n(82558),n(51779),n(42798),n(84173),n(57685);var $=n(71001),D=n(31779);let W=[];function B(e){let{children:t,flatIndex:n,index:r,params:l,payload:a,siblingIndex:i}=e,{navigate:s,navigateIntent:o,resolvePathFromState:u}=(0,x.tv)(),p=(0,x.z)(),{panes:h,expand:m}=(0,f.Cc)(),g=(0,c.useMemo)(()=>(null==p?void 0:p.panes)||W,[null==p?void 0:p.panes]),v=(0,c.useMemo)(()=>null==h?void 0:h[h.length-2],[h]),b=r-1,w=(0,c.useCallback)(e=>{let t=g[b]||[],n=t[i],r=e(t,n),l=[...g.slice(0,b),r,...g.slice(b+1)];return{...p||{},panes:l}},[b,g,p,i]),j=(0,c.useCallback)(e=>{let t=w(e);return setTimeout(()=>s(t),0),t},[w,s]),I=(0,c.useCallback)(e=>u(w((t,n)=>[...t.slice(0,i),{...n,params:e},...t.slice(i+1)])),[w,u,i]),P=(0,c.useCallback)(e=>{j((t,n)=>[...t.slice(0,i),{...n,payload:e},...t.slice(i+1)])},[j,i]),k=(0,c.useCallback)(e=>{j((t,n)=>[...t.slice(0,i),{...n,params:e},...t.slice(i+1)])},[j,i]),_=(0,c.useCallback)(e=>{let{id:t,parentRefPath:n,type:r,template:l}=e;s({panes:[...g.slice(0,b+1),[{id:t,params:{template:l.id,parentRefPath:(0,D.BB)(n),type:r},payload:l.params}]]})},[b,s,g]),z=(0,c.useMemo)(()=>({index:n,groupIndex:b,siblingIndex:i,payload:a,params:l,hasGroupSiblings:!!g[b]&&g[b].length>1,groupLength:g[b]?g[b].length:0,routerPanesState:g,ChildLink:f.aL,BackLink:f.hb,ReferenceChildLink:f.HZ,handleEditReference:_,ParameterizedLink:f.V$,replaceCurrent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(()=>[{id:e.id||"",payload:e.payload,params:e.params||{}}])},closeCurrent:()=>{j((e,t)=>e.length>1?e.filter(e=>e!==t):e)},closeCurrentAndAfter:function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];e&&v&&m(v.element),s({panes:[...g.slice(0,b)]},{replace:!0})},duplicateCurrent:e=>{j((t,n)=>{let r={...n,payload:(null==e?void 0:e.payload)||n.payload,params:(null==e?void 0:e.params)||n.params};return[...t.slice(0,i),r,...t.slice(i)]})},setView:e=>{let t=y()(l,"view");return k(e?{...t,view:e}:t)},setParams:k,setPayload:P,createPathWithParams:I,navigateIntent:o}),[n,b,i,a,l,g,_,k,P,I,o,j,v,s,m]);return(0,d.jsx)(f.ud.Provider,{value:z,children:t})}class G extends Error{constructor(e){let{message:t,context:n,helpId:r,cause:l}=e;super(t),this.context=n,this.helpId=r,this.cause=l}}let H=new WeakMap;function V(e){let t=H.get(e);if(t)return t;let n=(0,k.x0)();return H.set(e,n),n}let X=e=>!!e&&"function"==typeof(null==e?void 0:e.then),q=e=>!!(0,p.Uy$)(e)&&"function"==typeof e.serialize,J=e=>(t,n,r)=>{try{return e(t,n,r)}catch(e){if(e instanceof G)throw e;throw new G({message:"string"==typeof(null==e?void 0:e.message)?e.message:"",context:n,cause:e})}},Y=e=>function(){return e(...arguments).pipe((0,_._)(1),(0,z.x)())};function Q(e){let t=J(Y(e((e,n,r)=>{if(!e)throw new G({message:"Pane returned no child",context:n,helpId:"structure-item-returned-no-child"});return X(e)||(0,g.b)(e)?(0,v.D)(e).pipe((0,C.w)(e=>t(e,n,r))):q(e)?t(e.serialize(n),n,r):"function"==typeof e?t(e(n.id,n),n,r):(0,b.of)(e)})));return t}let ee=new WeakMap;function et(e,t){let n=ee.get(e)||new Map;if(n){let e=n.get(t);if(e)return e}let r=e[t];if("function"!=typeof r)throw Error("Expected property `".concat(t,"` to be a function but got ").concat(typeof r," instead."));let l=r.bind(e);return n.set(t,l),ee.set(e,n),l}async function en(e){let t=new Map,n=Q(e=>(n,r,l)=>{let a=n&&"".concat(V(n),"-").concat(r.path.join("__")),i=a&&t.get(a);if(i)return i;let s=e(n,r,l);return a&&t.set(a,s),s}),r=[[{id:"__edit__".concat(e.params.id),params:{...y()(e.params,["id"]),type:e.params.type},payload:e.payload}]];async function l(e){var t;let{currentId:r,flatIndex:a,intent:i,params:s,parent:o,path:d,payload:u,unresolvedPane:c,levelIndex:p,structureContext:h}=e;if(!c)return[];let{id:f,type:x,...m}=s,y=await (0,w.z)(n(c,{id:r,splitIndex:0,parent:o,path:d,index:a,params:{},payload:void 0,structureContext:h},a));return"document"===y.type&&y.id===f?[{panes:[...d.slice(0,d.length-1).map(e=>[{id:e}]),[{id:f,params:m,payload:u}]],depthIndex:d.length,levelIndex:p}]:(null==(t=y.canHandleIntent)?void 0:t.call(y,i,s,{pane:y,index:a}))||"documentList"===y.type&&y.schemaTypeName===x&&"_type == $type"===y.options.filter?[{panes:[...d.map(e=>[{id:e}]),[{id:s.id,params:m,payload:u}]],depthIndex:d.length,levelIndex:p}]:"list"===y.type&&y.child&&y.items?(await Promise.all(y.items.map((e,t)=>"divider"===e.type?Promise.resolve([]):l({currentId:e._id||e.id,flatIndex:a+1,intent:i,params:s,parent:y,path:[...d,e.id],payload:u,unresolvedPane:"function"==typeof y.child?et(y,"child"):y.child,levelIndex:t,structureContext:h})))).flat():[]}let a=(await l({currentId:"root",flatIndex:0,levelIndex:0,intent:e.intent,params:e.params,parent:null,path:[],payload:e.payload,unresolvedPane:e.rootPaneNode,structureContext:e.structureContext})).sort((e,t)=>
1e.depthIndex===t.depthIndex?e.levelIndex-t.levelIndex:e.depthIndex-t.depthIndex)[0];return a?a.panes:r}let er=(e,t)=>{let n=e.replace(/^__edit__/,""),{params:r,payload:l,structureContext:{resolveDocumentNode:a}}=t,{type:i,template:s}=r;if(!i)throw Error("Document type for document with ID ".concat(n," was not provided in the router params."));let o=a({schemaType:i,documentId:n}).id("editor");return s&&(o=o.initialValueTemplate(s,l)),o.serialize()},el=e=>{let t={type:e.type,id:e.routerPaneSibling.id,params:e.routerPaneSibling.params||{},payload:e.routerPaneSibling.payload||null,flatIndex:e.flatIndex,groupIndex:e.groupIndex,siblingIndex:e.siblingIndex,path:e.path,paneNode:"resolvedMeta"===e.type?V(e.paneNode):null};return"metaHash(".concat(JSON.stringify(t),")")};async function ea(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:(0,T.Z)(),type:n};if(t&&!n){let n=await (0,w.z)(e.resolveTypeForDocument(t));return{id:t,type:n}}throw new G({message:"Neither document `id` or `type` was provided when trying to resolve intent."})}let ei={},es=(0,c.memo)(function(){let{navigate:e}=(0,x.tv)(),t=(0,x.z)((0,c.useCallback)(e=>{let t="string"==typeof e.intent?e.intent:void 0;return t?{intent:t,params:(0,p.Uy$)(e.params)?e.params:ei,payload:e.payload}:void 0},[])),{rootPaneNode:n,structureContext:r}=(0,f.nz)(),l=(0,p.H__)(),[a,i]=(0,c.useState)(null);if(a)throw a;return(0,c.useEffect)(()=>{if(t){let{intent:a,params:s,payload:o}=t,d=!1;return(async function(){let{id:t,type:i}=await ea(l,"string"==typeof s.id?s.id:void 0,"string"==typeof s.type?s.type:void 0);if(d)return;let u=await en({intent:a,params:{...s,id:t,type:i},payload:o,rootPaneNode:n,structureContext:r});d||e({panes:u},{replace:!0})})().catch(i),()=>{d=!0}}},[l,t,e,n,r]),null});var eo=Object.freeze,ed=Object.defineProperty;let eu=F.ZP.span(s||(s=eo(ed(r=["\n &:not(:last-child)::after {\n content: ' â ';\n opacity: 0.5;\n }\n"],"raw",{value:eo(l||r.slice())}))));function ec(e){let{error:t}=e;if(!(t instanceof G))throw t;let{cause:n}=t,{t:r}=(0,p.$G7)(f.UA),l=(null==n?void 0:n.stack)||t.stack,a=l&&!(n instanceof f.zc)&&!t.message.includes("Module build failed:"),i=n instanceof f.zc?n.path:[],s=n instanceof f.zc&&n.helpId||t.helpId,o=(0,c.useCallback)(()=>{window.location.reload()},[]);return(0,d.jsx)(u.Zb,{height:"fill",overflow:"auto",padding:4,sizing:"border",tone:"critical",children:(0,d.jsxs)(u.W2,{children:[(0,d.jsx)(u.X6,{as:"h2",children:r("structure-error.header.text")}),(0,d.jsxs)(u.Zb,{marginTop:4,padding:4,radius:2,overflow:"auto",shadow:1,tone:"inherit",children:[i.length>0&&(0,d.jsxs)(u.Kq,{space:2,children:[(0,d.jsx)(u.xv,{size:1,weight:"medium",children:r("structure-error.structure-path.label")}),(0,d.jsx)(u.EK,{children:i.slice(1).map((e,t)=>(0,d.jsx)(eu,{children:e},"".concat(e,"-").concat(t)))})]}),(0,d.jsxs)(u.Kq,{marginTop:4,space:2,children:[(0,d.jsx)(u.xv,{size:1,weight:"medium",children:r("structure-error.error.label")}),(0,d.jsx)(u.EK,{children:a?l.replace(/\(\.\.\.\)\./g,"(...)\n .").replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(RegExp(" \\(https?:\\/\\/".concat(window.location.host),"g")," ("):t.message})]}),s&&(0,d.jsx)(u.xu,{marginTop:4,children:(0,d.jsx)(u.xv,{children:(0,d.jsx)("a",{href:(0,N.h)(s),rel:"noopener noreferrer",target:"_blank",children:r("structure-error.docs-link.text")})})}),(0,d.jsx)(u.xu,{marginTop:4,children:(0,d.jsx)(Z.zx,{text:r("structure-error.reload-button.text"),icon:A.bnu,tone:"primary",onClick:o})})]})]})})}function ep(e){let{isSelected:t,pane:n,paneKey:r}=e,l=(0,p.Uy$)(n)&&n.type||null,{t:a}=(0,p.$G7)(f.UA);return(0,d.jsxs)(f.X6,{id:r,selected:t,children:[(0,d.jsx)(f.hX,{title:a("panes.unknown-pane-type.title")}),(0,d.jsx)(f.Bh,{children:(0,d.jsx)(u.xu,{padding:4,children:"string"==typeof l?(0,d.jsx)(u.xv,{as:"p",muted:!0,children:(0,d.jsx)(p.vNl,{t:a,i18nKey:"panes.unknown-pane-type.unknown-type.text",values:{type:l}})}):(0,d.jsx)(u.xv,{as:"p",muted:!0,children:(0,d.jsx)(p.vNl,{t:a,i18nKey:"panes.unknown-pane-type.missing-type.text"})})})})]})}let eh={component:(0,c.lazy)(()=>n.e(2668).then(n.bind(n,32668))),document:(0,c.lazy)(()=>n.e(9173).then(n.bind(n,79173))),documentList:(0,c.lazy)(()=>n.e(779).then(n.bind(n,70779))),list:(0,c.lazy)(()=>n.e(3044).then(n.bind(n,23044)))},ef=(0,c.memo)(function(e){let{active:t,childItemId:n,groupIndex:r,index:l,itemId:a,pane:i,paneKey:s,params:o,payload:u,path:p,selected:h,siblingIndex:x}=e,m=eh[i.type]||ep;return(0,d.jsx)(B,{flatIndex:l,index:r,params:o,payload:u,siblingIndex:x,children:(0,d.jsx)(c.Suspense,{fallback:(0,d.jsx)(f.K4,{paneKey:s,path:p,selected:h}),children:(0,d.jsx)(m,{childItemId:n||"",index:l,itemId:a,isActive:t,isSelected:h,paneKey:s,pane:i})})})},(e,t)=>{let{params:n={},payload:r=null,...l}=e,{params:a={},payload:i=null,...s}=t;if(!K()(n,a)||!K()(r,i))return!1;for(let e of new Set([...Object.keys(l),...Object.keys(s)]))if(l[e]!==s[e])return!1;return!0});function ex(){let{t:e}=(0,p.$G7)(f.UA);return(0,d.jsx)(u.Zb,{height:"fill",children:(0,d.jsx)(u.kC,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,d.jsx)(u.W2,{width:0,children:(0,d.jsx)(u.Zb,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,d.jsxs)(u.kC,{children:[(0,d.jsx)(u.xu,{children:(0,d.jsx)(u.xv,{size:1,children:(0,d.jsx)(A.foC,{})})}),(0,d.jsxs)(u.Kq,{flex:1,marginLeft:3,space:3,children:[(0,d.jsx)(u.xv,{as:"h1",size:1,weight:"medium",children:e("no-document-types-screen.title")}),(0,d.jsx)(u.xv,{as:"p",muted:!0,size:1,children:e("no-document-types-screen.subtitle")}),(0,d.jsx)(u.xv,{as:"p",muted:!0,size:1,children:(0,d.jsx)("a",{href:"https://www.sanity.io/docs/create-a-schema-and-configure-sanity-studio",target:"_blank",rel:"noreferrer",children:e("no-document-types-screen.link-text")})})]})]})})})})})}let em=e=>{let{documentId:t,documentType:n}=e,r=(0,h.iav)(t,n),l=(0,p.I_y)(),{t:a}=(0,p.$G7)(f.UA),i=!(null==r?void 0:r.published)&&!(null==r?void 0:r.draft),s=(null==r?void 0:r.draft)||(null==r?void 0:r.published),o=l.get(n),{value:d,isLoading:u}=(0,p.v7n)({enabled:!0,schemaType:o,value:s}),x=i?a("browser-document-title.new-document",{schemaType:(null==o?void 0:o.title)||(null==o?void 0:o.name)}):(null==d?void 0:d.title)||a("browser-document-title.untitled-document"),m=r.ready&&!u,y=ev(x);return(0,c.useEffect)(()=>{m&&(document.title=y)},[x,m,y]),null},ey=e=>{let{title:t}=e,n=ev(t);return(0,c.useEffect)(()=>{document.title=n},[n,t]),null},eg=e=>{let{resolvedPanes:t}=e;if(!(null==t?void 0:t.length))return null;let n=t[t.length-1];return n===f.PF?(0,d.jsx)(ey,{}):n!==f.PF&&"document"===n.type?(null==n?void 0:n.title)?(0,d.jsx)(ey,{title:n.title}):(0,d.jsx)(em,{documentId:n.options.id,documentType:n.options.type}):(0,d.jsx)(ey,{title:null==n?void 0:n.title})};function ev(e){return[e,(0,f.nz)().structureContext.title].filter(e=>e).join(" | ")}var eb=Object.freeze,ew=Object.defineProperty;let ej=(0,F.ZP)(f.hL)(o||(o=eb(ew(a=["\n min-height: 100%;\n min-width: 320px;\n"],"raw",{value:eb(i||a.slice())})))),eI=(0,$.ZP)("mod+s"),eP=(0,c.memo)(function(e){var t;let{onPaneChange:n}=e,{push:r}
1=(0,u.pm)(),l=(0,p.I_y)(),{layoutCollapsed:a,setLayoutCollapsed:i}=(0,f.nz)(),{paneDataItems:s,resolvedPanes:o}=function(){let[e,t]=(0,c.useState)();if(e)throw e;let{structureContext:n,rootPaneNode:r}=(0,f.nz)(),[l,a]=(0,c.useState)({paneDataItems:[],resolvedPanes:[],routerPanes:[]}),i=function(){let e=(0,c.useMemo)(()=>new P.t(1),[]),t=(0,c.useMemo)(()=>e.asObservable().pipe((0,S.U)(e=>(null==e?void 0:e.panes)||[])),[e]),{state:n}=(0,x.tv)();return(0,c.useEffect)(()=>{e.next(n)},[n,e]),t}();return(0,c.useEffect)(()=>{let e=(function(e){let{routerPanesStream:t,rootPaneNode:n,initialCacheState:r={cacheKeysByFlatIndex:[],flattenedRouterPanes:[],resolvedPaneCache:new Map,resolvePane:()=>I.C},structureContext:l}=e;return t.pipe((0,S.U)(e=>[[{id:"root"}],...e]),(0,S.U)(e=>e.flatMap((e,t)=>e.map((e,n)=>({routerPaneSibling:e,groupIndex:t,siblingIndex:n}))).map((e,t)=>({...e,flatIndex:t}))),(0,E.O)([]),(0,M.e)(function(e,t){var n,r=!1;e.subscribe((0,O.x)(t,function(e){var l=n;n=e,r&&t.next([l,e]),r=!0}))}),(0,S.U)(e=>{let[t,n]=e;for(let e=0;e<n.length;e++){let r=t[e],l=n[e];if(!K()(r,l))return{flattenedRouterPanes:n,diffIndex:e}}return{flattenedRouterPanes:n,diffIndex:n.length}}),(0,R.R)((e,t)=>{let{cacheKeysByFlatIndex:n,resolvedPaneCache:r}=e,{flattenedRouterPanes:l,diffIndex:a}=t,i=n.slice(0,a+1),s=n.slice(a+1),o=new Set(i.flatMap(e=>Array.from(e)));for(let e of s.flatMap(e=>Array.from(e)).filter(e=>!o.has(e)))r.delete(e);return{flattenedRouterPanes:l,cacheKeysByFlatIndex:n,resolvedPaneCache:r,resolvePane:Q(e=>(t,l,a)=>{var i,s;let o=t&&"".concat(V(t),"-").concat("contextHash(".concat(JSON.stringify({id:l.id,parentId:parent&&V(parent),path:l.path,index:l.index,splitIndex:l.splitIndex,serializeOptionsIndex:null==(i=l.serializeOptions)?void 0:i.index,serializeOptionsPath:null==(s=l.serializeOptions)?void 0:s.path}),")")),d=o&&r.get(o);if(d)return d;let u=e(t,l,a);if(!o)return u;let c=n[a]||new Set;return c.add(o),n[a]=c,r.set(o,u),u})}},r),(0,C.w)(e=>{let{flattenedRouterPanes:t,resolvePane:r}=e;return function e(t){let{unresolvedPane:n,flattenedRouterPanes:r,parent:l,path:a,resolvePane:i,structureContext:s}=t,[o,...d]=r,u=d[0],c={id:o.routerPaneSibling.id,splitIndex:o.siblingIndex,parent:l,path:[...a,o.routerPaneSibling.id],index:o.flatIndex,params:o.routerPaneSibling.params||{},payload:o.routerPaneSibling.payload,structureContext:s};try{return i(n,c,o.flatIndex).pipe((0,C.w)(t=>{let r;let p={type:"resolvedMeta",...o,paneNode:t,path:c.path},h=d.map((e,t)=>{let n=[...c.path,...d.slice(t).map((t,n)=>"[".concat(e.flatIndex+n,"]"))];return{type:"loading",path:n,paneNode:null,...e}});return d.length?(r=(null==u?void 0:u.routerPaneSibling.id.startsWith("__edit__"))?e({unresolvedPane:er,flattenedRouterPanes:d,parent:l,path:c.path,resolvePane:i,structureContext:s}):o.groupIndex===(null==u?void 0:u.groupIndex)?e({unresolvedPane:n,flattenedRouterPanes:d,parent:l,path:a,resolvePane:i,structureContext:s}):e({unresolvedPane:"function"==typeof t.child?et(t,"child"):t.child,flattenedRouterPanes:d,parent:t,path:c.path,resolvePane:i,structureContext:s}),(0,j.z)((0,b.of)([p,...h]),r.pipe((0,S.U)(e=>[p,...e])))):(0,b.of)([p])}))}catch(e){if(e instanceof G&&(e.context&&console.warn("Pane resolution error at index ".concat(e.context.index).concat(e.context.splitIndex>0?" for split pane index ".concat(e.context.splitIndex):"",": ").concat(e.message).concat(e.helpId?" - see ".concat((0,N.h)(e.helpId)):""),e),"structure-item-returned-no-child"===e.helpId))return(0,b.of)([]);throw e}}({unresolvedPane:n,flattenedRouterPanes:t,parent:null,path:[],resolvePane:r,structureContext:l})})).pipe((0,R.R)((e,t)=>t.map((t,n)=>{let r=e[n];return r&&"loading"===t.type&&r.routerPaneSibling.id===t.routerPaneSibling.id?r:t}),[]),(0,L.x)((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<t.length;n++){let r=e[n],l=t[n];if(el(r)!==el(l))return!1}return!0}))})({rootPaneNode:r,routerPanesStream:i,structureContext:n}).pipe((0,S.U)(e=>{let t=e.reduce((e,t)=>{let n=e[t.groupIndex]||[];return n[t.siblingIndex]=t.routerPaneSibling,e[t.groupIndex]=n,e},[]),n=t.length,r=e.map(r=>{var l;let{groupIndex:a,flatIndex:i,siblingIndex:s,routerPaneSibling:o,path:d}=r,u=o.id,c=t[a+1];return{active:a===n-2,childItemId:null!=(l=null==c?void 0:c[0].id)?l:null,index:i,itemId:o.id,groupIndex:a,key:"".concat("loading"===r.type?"unknown":r.paneNode.id,"-").concat(u,"-").concat(s),pane:"loading"===r.type?f.PF:r.paneNode,params:o.params||{},path:d.join(";"),payload:o.payload,selected:i===e.length-1,siblingIndex:s}});return{paneDataItems:r,routerPanes:t,resolvedPanes:r.map(e=>e.pane)}})).subscribe({next:e=>a(e),error:e=>t(e)});return()=>e.unsubscribe()},[r,i,n]),l}(),m=(0,x.z)((0,c.useCallback)(e=>"string"==typeof e.intent,[])),{sanity:{media:y}}=(0,u.Fg)(),[g,v]=(0,c.useState)(null),w=(0,c.useCallback)(()=>i(!0),[i]),k=(0,c.useCallback)(()=>i(!1),[i]);return((0,c.useEffect)(()=>{o.length&&n(o)},[n,o]),(0,c.useEffect)(()=>{let e=e=>{eI(e)&&(e.preventDefault(),r({closable:!0,id:"auto-save-message",status:"info",title:"Your work is automatically saved!",duration:4e3}))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r]),null==(t=l._original)?void 0:t.types.some(h.mPO))?(0,d.jsxs)(u.Xp,{element:g||null,children:[(0,d.jsxs)(ej,{flex:1,height:a?void 0:"fill",minWidth:y[1],onCollapse:w,onExpand:k,children:[s.map(e=>{let{active:t,childItemId:n,groupIndex:r,itemId:l,key:a,pane:i,index:s,params:o,path:u,payload:p,siblingIndex:h,selected:x}=e;return(0,d.jsx)(c.Fragment,{children:i===f.PF?(0,d.jsx)(f.K4,{paneKey:a,path:u,selected:x}):(0,d.jsx)(ef,{active:t,groupIndex:r,index:s,pane:i,childItemId:n,itemId:l,paneKey:a,params:o,payload:p,path:u,selected:x,siblingIndex:h})},"".concat(i===f.PF?"loading":i.type,"-").concat(s))}),s.length<=1&&m&&(0,d.jsx)(f.K4,{paneKey:"intent-resolver"})]}),(0,d.jsx)(eg,{resolvedPanes:o}),(0,d.jsx)("div",{"data-portal":"",ref:v})]}):(0,d.jsx)(ex,{})});function ek(e){let{tool:{options:t}}=e,{unstable_sources:n}=(0,p.cFj)(),[r]=n,{source:l,defaultDocumentNode:a,structure:i}=t||{};(0,c.useEffect)(()=>((0,f.aR)([]),()=>(0,f.aR)([])),[]);let[{error:s},o]=(0,c.useState)({error:null});return s?(0,d.jsx)(ec,{error:s}):(0,d.jsx)(u.SV,{onCatch:o,children:(0,d.jsx)(p.cWh,{name:l||r.name,children:(0,d.jsxs)(f.b9,{defaultDocumentNode:a,structure:i,children:[(0,d.jsx)(eP,{onPaneChange:f.aR}),(0,d.jsx)(es,{})]})})})}}}]);
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.