1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2954],{32954:function(e,t,n){n.r(t),n.d(t,{default:function(){return ex}});var r=n(85893),a=n(89792),l=n(67294),i=n(14457),s=n(16265),o=n(37084),d=n(57557),u=n(9141),p=n(40052),c=n(32817),h=n(1718),f=n(69243),x=n(9653),m=n(70003),y=n(53416),g=n(40148),v=n(30218),b=n(34978),w=n(29127),j=n(98430),I=n(96798),P=n(2566),k=n(56542),_=n(53741),C=n(25934),S=n(75282),z=n(43747),$=n(56003),E=n(87196),L=n(18446),N=n(29999),A=n(61838);let O=[];function M(e){let{children:t,flatIndex:n,index:a,params:i,payload:u,siblingIndex:p}=e,{navigate:c,navigateIntent:h,resolvePathFromState:f}=(0,o.tv)(),x=(0,o.z)(),{panes:m,expand:y}=(0,s.usePaneLayout)(),g=(0,l.useMemo)(()=>(null==x?void 0:x.panes)||O,[null==x?void 0:x.panes]),v=(0,l.useMemo)(()=>null==m?void 0:m[m.length-2],[m]),b=a-1,w=(0,l.useCallback)(e=>{let t=g[b]||[],n=t[p],r=e(t,n),a=[...g.slice(0,b),r,...g.slice(b+1)];return{...x||{},panes:a}},[b,g,x,p]),j=(0,l.useCallback)(e=>{let t=w(e);return setTimeout(()=>c(t),0),t},[w,c]),I=(0,l.useCallback)(e=>{let t=w((t,n)=>[...t.slice(0,p),{...n,params:e},...t.slice(p+1)]);return f(t)},[w,f,p]),P=(0,l.useCallback)(e=>{j((t,n)=>[...t.slice(0,p),{...n,payload:e},...t.slice(p+1)])},[j,p]),k=(0,l.useCallback)(e=>{j((t,n)=>[...t.slice(0,p),{...n,params:e},...t.slice(p+1)])},[j,p]),_=(0,l.useCallback)(({id:e,parentRefPath:t,type:n,template:r})=>{c({panes:[...g.slice(0,b+1),[{id:e,params:{template:r.id,parentRefPath:(0,N.BB)(t),type:n},payload:r.params}]]})},[b,c,g]),C=(0,l.useMemo)(()=>({index:n,groupIndex:b,siblingIndex:p,payload:u,params:i,hasGroupSiblings:!!g[b]&&g[b].length>1,groupLength:g[b]?g[b].length:0,routerPanesState:g,ChildLink:s.ChildLink,BackLink:n?s.BackLink:void 0,ReferenceChildLink:s.ReferenceChildLink,handleEditReference:_,ParameterizedLink:s.ParameterizedLink,replaceCurrent:(e={})=>{j(()=>[{id:e.id||"",payload:e.payload,params:e.params||{}}])},closeCurrent:()=>{j((e,t)=>e.length>1?e.filter(e=>e!==t):e)},closeCurrentAndAfter:(e=!0)=>{e&&v&&y(v.element),c({panes:[...g.slice(0,b)]})},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,p),r,...t.slice(p)]})},setView:e=>{let t=d(i,"view");return k(e?{...t,view:e}:t)},setParams:k,setPayload:P,createPathWithParams:I,navigateIntent:h}),[n,b,p,u,i,g,_,k,P,I,h,j,v,c,y]);return(0,r.jsx)(A.ud.Provider,{value:C,children:t})}var T=Object.defineProperty,R=(e,t,n)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t,n)=>R(e,"symbol"!=typeof t?t+"":t,n);class G extends Error{constructor({message:e,context:t,helpId:n,cause:r}){super(e),D(this,"cause"),D(this,"context"),D(this,"helpId"),this.name="PaneResolutionError",this.context=t,this.helpId=n,this.cause=r}}let K=new WeakMap;function U(e){let t=K.get(e);if(t)return t;let n=(0,y.x0)();return K.set(e,n),n}let W=e=>!!e&&"function"==typeof(null==e?void 0:e.then),B=e=>!!(0,i.Uy$)(e)&&"function"==typeof e.serialize,F=e=>(t,n,r)=>{try{return e(t,n,r)}catch(e){throw e instanceof G?e:new G({message:"string"==typeof(null==e?void 0:e.message)?e.message:"",context:n,cause:e})}},H=e=>(...t)=>e(...t).pipe((0,g._)(1),(0,v.x)());function Z(e){let t=F(H(e((e,n,r)=>{if(!e)throw new G({message:"Pane returned no child",context:n,helpId:"structure-item-returned-no-child"});return W(e)||(0,u.b)(e)?(0,p.D)(e).pipe((0,b.w)(e=>t(e,n,r))):B(e)?t(e.serialize(n),n,r):"function"==typeof e?t(e(n.id,n),n,r):(0,c.of)(e)})));return t}let q=new WeakMap;function V(e,t){let n=q.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 \`${t}\` to be a function but got ${typeof r} instead.`);let a=r.bind(e);return n.set(t,a),q.set(e,n),a}async function J(e){let t=new Map,n=Z(e=>(n,r,a)=>{let l=n&&`${U(n)}-${r.path.join("__")}`,i=l&&t.get(l);if(i)return i;let s=e(n,r,a);return l&&t.set(l,s),s}),r=[[{id:`__edit__${e.params.id}`,params:{...d(e.params,["id"]),type:e.params.type},payload:e.payload}]];async function a({currentId:e,flatIndex:t,intent:r,params:l,parent:i,path:s,payload:o,unresolvedPane:d,levelIndex:u,structureContext:p}){var c;if(!d)return[];let{id:f,type:x,...m}=l,y=await (0,h.z)(n(d,{id:e,splitIndex:0,parent:i,path:s,index:t,params:{},payload:void 0,structureContext:p},t));return"document"===y.type&&y.id===f?[{panes:[...s.slice(0,s.length-1).map(e=>[{id:e}]),[{id:f,params:m,payload:o}]],depthIndex:s.length,levelIndex:u}]:null!=(c=y.canHandleIntent)&&c.call(y,r,l,{pane:y,index:t})||"documentList"===y.type&&y.schemaTypeName===x&&"_type == $type"===y.options.filter?[{panes:[...s.map(e=>[{id:e}]),[{id:l.id,params:m,payload:o}]],depthIndex:s.length,levelIndex:u}]:"list"===y.type&&y.child&&y.items?(await Promise.all(y.items.map((e,n)=>"divider"===e.type?Promise.resolve([]):a({currentId:e._id||e.id,flatIndex:t+1,intent:r,params:l,parent:y,path:[...s,e.
1id],payload:o,unresolvedPane:"function"==typeof y.child?V(y,"child"):y.child,levelIndex:n,structureContext:p})))).flat():[]}let l=(await a({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)=>e.depthIndex===t.depthIndex?e.levelIndex-t.levelIndex:e.depthIndex-t.depthIndex)[0];return l?l.panes:r}let X=(e,t)=>{let n=e.replace(/^__edit__/,""),{params:r,payload:a,structureContext:{resolveDocumentNode:l}}=t,{type:i,template:s}=r;if(!i)throw Error(`Document type for document with ID ${n} was not provided in the router params.`);let o=l({schemaType:i,documentId:n}).id("editor");return s&&(o=o.initialValueTemplate(s,a)),o.serialize()},Y=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?U(e.paneNode):null};return`metaHash(${JSON.stringify(t)})`};async function Q(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:(0,C.Z)(),type:n};if(t&&!n){let n=await (0,h.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 ee={},et=(0,l.memo)(function(){let{navigate:e}=(0,o.tv)(),t=(0,o.z)((0,l.useCallback)(e=>{let t="string"==typeof e.intent?e.intent:void 0;return t?{intent:t,params:(0,i.Uy$)(e.params)?e.params:ee,payload:e.payload}:void 0},[])),{rootPaneNode:n,structureContext:r}=(0,s.useStructureTool)(),a=(0,i.H__)(),[d,u]=(0,l.useState)(null);if(d)throw d;return(0,l.useEffect)(()=>{if(t){let{intent:l,params:i,payload:s}=t,o=!1;return(async function(){let{id:t,type:d}=await Q(a,"string"==typeof i.id?i.id:void 0,"string"==typeof i.type?i.type:void 0);if(o)return;let u=await J({intent:l,params:{...i,id:t,type:d},payload:s,rootPaneNode:n,structureContext:r});o||e({panes:u},{replace:!0})})().catch(u),()=>{o=!0}}},[a,t,e,n,r]),null}),en=$.zo.span` 2 &:not(:last-child)::after { 3 content: ' â '; 4 opacity: 0.5; 5 } 6`;function er({error:e}){if(!(e instanceof G))throw e;let{cause:t}=e,{t:n}=(0,i.$G7)(s.structureLocaleNamespace),o=(null==t?void 0:t.stack)||e.stack,d=o&&!(t instanceof s.SerializeError)&&!e.message.includes("Module build failed:"),u=t instanceof s.SerializeError?t.path:[],p=t instanceof s.SerializeError&&t.helpId||e.helpId,c=(0,l.useCallback)(()=>{window.location.reload()},[]);return(0,r.jsx)(a.Zb,{height:"fill",overflow:"auto",padding:4,sizing:"border",tone:"critical",children:(0,r.jsxs)(a.W2,{children:[(0,r.jsx)(a.X6,{as:"h2",children:n("structure-error.header.text")}),(0,r.jsxs)(a.Zb,{marginTop:4,padding:4,radius:2,overflow:"auto",shadow:1,tone:"inherit",children:[u.length>0&&(0,r.jsxs)(a.Kq,{space:2,children:[(0,r.jsx)(a.xv,{size:1,weight:"medium",children:n("structure-error.structure-path.label")}),(0,r.jsx)(a.EK,{children:u.slice(1).map((e,t)=>(0,r.jsx)(en,{children:e},`${e}-${t}`))})]}),(0,r.jsxs)(a.Kq,{marginTop:4,space:2,children:[(0,r.jsx)(a.xv,{size:1,weight:"medium",children:n("structure-error.error.label")}),(0,r.jsx)(a.EK,{children:d?o.replace(/\(\.\.\.\)\./g,`(...) 7 .`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(RegExp(` \\(https?:\\/\\/${window.location.host}`,"g")," ("):e.message})]}),p&&(0,r.jsx)(a.xu,{marginTop:4,children:(0,r.jsx)(a.xv,{children:(0,r.jsx)("a",{href:(0,S.h0)(p),rel:"noopener noreferrer",target:"_blank",children:n("structure-error.docs-link.text")})})}),(0,r.jsx)(a.xu,{marginTop:4,children:(0,r.jsx)(S.zx,{text:n("structure-error.reload-button.text"),icon:z.bnu,tone:"primary",onClick:c})})]})]})})}function ea(e){let{isSelected:t,pane:n,paneKey:l}=e,o=(0,i.Uy$)(n)&&n.type||null,{t:d}=(0,i.$G7)(s.structureLocaleNamespace);return(0,r.jsxs)(s.Pane,{id:l,selected:t,children:[(0,r.jsx)(s.PaneHeader,{title:d("panes.unknown-pane-type.title")}),(0,r.jsx)(s.PaneContent,{children:(0,r.jsx)(a.xu,{padding:4,children:"string"==typeof o?(0,r.jsx)(a.xv,{as:"p",muted:!0,children:(0,r.jsx)(i.vNl,{t:d,i18nKey:"panes.unknown-pane-type.unknown-type.text",values:{type:o}})}):(0,r.jsx)(a.xv,{as:"p",muted:!0,children:(0,r.jsx)(i.vNl,{t:d,i18nKey:"panes.unknown-pane-type.missing-type.text"})})})})]})}let el={component:(0,l.lazy)(()=>n.e(6186).then(n.bind(n,46186))),document:(0,l.lazy)(()=>Promise.resolve().then(n.bind(n,16265)).then(function(e){return e.pane})),documentList:(0,l.lazy)(()=>Promise.resolve().then(n.bind(n,16265)).then(function(e){return e.pane$1})),list:(0,l.lazy)(()=>n.e(6995).then(n.bind(n,16995)))},ei=(0,l.memo)(function(e){let{active:t,childItemId:n,groupIndex:a,index:i,itemId:o,pane:d,paneKey:u,params:p,payload:c,path:h,selected:f,siblingIndex:x}=e,m=el[d.type]||ea;return(0,r.jsx)(M,{flatIndex:i,index:a,params:p,payload:c,siblingIndex:x,children:(0,r.jsx)(l.Suspense,{fallback:(0,r.jsx)(s.LoadingPane,{paneKey:u,path:h,selected:f}),children:(0,r.jsx)(m,{childItemId:n||"",index:i,itemId:o,isActive:t,isSelected:f,paneKey:u,pane:d})})})},({params:e={},payload:t=null,...n},{params:r={},payload:a=null,...l})=>{if(!L(e,r)||!L(t,a))return!1;let i=new Set([...Object.keys(n),...Object.keys(l)]);for(let e of i)if(n[e]!==l[e])return!1;return!0});function es(){let{t:e}=(0,i.$G7)(s.structureLocaleNamespace);return(0,r.jsx)(a.Zb,{height:"fill",children:(0,r.jsx)(a.kC,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,r.jsx)(a.W2,{width:0,children:(0,r.jsx)(a.Zb,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,r.jsxs)(a.kC,{children:[(0,r.jsx)(a.xu,{children:(0,r.jsx)(a.xv,{size:1,children:(0,r.jsx)(z.foC,{})})}),(0,r.jsxs)(a.Kq,{flex:1,marginLeft:3,space:3,children:[(0,r.jsx)(a.xv,{as:"h1",size:1,weight:"medium",children:e("no-document-types-screen.title")}),(0,r.jsx)(a.xv,{as:"p",muted:!0,size:1,children:e("no-document-types-screen.subtitle")}),(0,r.jsx)(a.xv,{as:"p",muted:!0,size:1,children:(0,r.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 eo=e=>{let{documentId:t,documentType:n}=e,r=(0,i.iav)(t,n),a=(0,i.I_y)(),{t:o}=(0,i.$G7)(s.structureLocaleNamespace),d=!(null!=r&&r.published)&&!(null!=r&&r.draft),u=(null==r?void 0:r.draft)||(null==r?void 0:r.published),p=a.get(n),{value:c,isLoading:h}=(0,i._2T)({enabled:!0,schemaType:p,value:u}),f=d?o("browser-document-title.new-document",{schemaType:(null==p?void 0:p.title)||(null==p?void 0:p.name)}):(null==c?void 0:c.title)||o("browser-document-title.untitled-document"),x=r.ready&&!h,m=ep(f);return(0,l.useEffect)(()=>{x&&(document.title=m)},[f,x,m]),null},ed=e=>{let{title:t}=e,n=ep(t);return(0,l.useEffect)(()=>{document.title=n},[n,t]),null},eu=e=>{let{resolvedPanes:t}=e;if(!(null!=t&&t.length))return null;let n=t[t.length-1];return n===s.LOADING_PANE?(0,r.jsx)(ed,{}):n!==s.LOADING_PANE&&"document"===n.type?null!=n&&n.title?(0,r.jsx)(ed,{title:n.title}):(0,r.jsx)(eo,{documentId:n.options.id,documentType:n.options.type}):(0,r.jsx)(ed,{title:null==n?void 0:n.title})};
7function ep(e){let t=(0,s.useStructureTool)().structureContext.title;return[e,t].filter(e=>e).join(" | ")}let ec=(0,$.zo)(s.PaneLayout)` 8 min-height: 100%; 9 min-width: 320px; 10`,eh=(0,E.P6)("mod+s"),ef=(0,l.memo)(function({onPaneChange:e}){var t;let{push:n}=(0,a.pm)(),d=(0,i.I_y)(),{layoutCollapsed:u,setLayoutCollapsed:p}=(0,s.useStructureTool)(),{paneDataItems:h,resolvedPanes:y}=function(){let[e,t]=(0,l.useState)();if(e)throw e;let{structureContext:n,rootPaneNode:r}=(0,s.useStructureTool)(),[a,i]=(0,l.useState)({paneDataItems:[],resolvedPanes:[],routerPanes:[]}),d=function(){let e=(0,l.useMemo)(()=>new m.t(1),[]),t=(0,l.useMemo)(()=>e.asObservable().pipe((0,w.U)(e=>(null==e?void 0:e.panes)||[])),[e]),{state:n}=(0,o.tv)();return(0,l.useEffect)(()=>{e.next(n)},[n,e]),t}();return(0,l.useEffect)(()=>{let e=(function({routerPanesStream:e,rootPaneNode:t,initialCacheState:n={cacheKeysByFlatIndex:[],flattenedRouterPanes:[],resolvedPaneCache:new Map,resolvePane:()=>x.C},structureContext:r}){return e.pipe((0,w.U)(e=>[[{id:"root"}],...e]),(0,w.U)(e=>e.flatMap((e,t)=>e.map((e,n)=>({routerPaneSibling:e,groupIndex:t,siblingIndex:n}))).map((e,t)=>({...e,flatIndex:t}))),(0,j.O)([]),(0,I.e)(function(e,t){var n,r=!1;e.subscribe((0,P.x)(t,function(e){var a=n;n=e,r&&t.next([a,e]),r=!0}))}),(0,w.U)(([e,t])=>{for(let n=0;n<t.length;n++){let r=e[n],a=t[n];if(!L(r,a))return{flattenedRouterPanes:t,diffIndex:n}}return{flattenedRouterPanes:t,diffIndex:t.length}}),(0,k.R)((e,t)=>{let{cacheKeysByFlatIndex:n,resolvedPaneCache:r}=e,{flattenedRouterPanes:a,diffIndex:l}=t,i=n.slice(0,l+1),s=n.slice(l+1),o=new Set(i.flatMap(e=>Array.from(e))),d=s.flatMap(e=>Array.from(e)).filter(e=>!o.has(e));for(let e of d)r.delete(e);return{flattenedRouterPanes:a,cacheKeysByFlatIndex:n,resolvedPaneCache:r,resolvePane:Z(e=>(t,a,l)=>{var i,s;let o=t&&`${U(t)}-contextHash(${JSON.stringify({id:a.id,parentId:parent&&U(parent),path:a.path,index:a.index,splitIndex:a.splitIndex,serializeOptionsIndex:null==(i=a.serializeOptions)?void 0:i.index,serializeOptionsPath:null==(s=a.serializeOptions)?void 0:s.path})})`,d=o&&r.get(o);if(d)return d;let u=e(t,a,l);if(!o)return u;let p=n[l]||new Set;return p.add(o),n[l]=p,r.set(o,u),u})}},n),(0,b.w)(({flattenedRouterPanes:e,resolvePane:n})=>(function e({unresolvedPane:t,flattenedRouterPanes:n,parent:r,path:a,resolvePane:l,structureContext:i}){let[s,...o]=n,d=o[0],u={id:s.routerPaneSibling.id,splitIndex:s.siblingIndex,parent:r,path:[...a,s.routerPaneSibling.id],index:s.flatIndex,params:s.routerPaneSibling.params||{},payload:s.routerPaneSibling.payload,structureContext:i};try{return l(t,u,s.flatIndex).pipe((0,b.w)(n=>{let p;let h={type:"resolvedMeta",...s,paneNode:n,path:u.path},x=o.map((e,t)=>({type:"loading",path:[...u.path,...o.slice(t).map((t,n)=>`[${e.flatIndex+n}]`)],paneNode:null,...e}));return o.length?(p=null!=d&&d.routerPaneSibling.id.startsWith("__edit__")?e({unresolvedPane:X,flattenedRouterPanes:o,parent:r,path:u.path,resolvePane:l,structureContext:i}):s.groupIndex===(null==d?void 0:d.groupIndex)?e({unresolvedPane:t,flattenedRouterPanes:o,parent:r,path:a,resolvePane:l,structureContext:i}):e({unresolvedPane:"function"==typeof n.child?V(n,"child"):n.child,flattenedRouterPanes:o,parent:n,path:u.path,resolvePane:l,structureContext:i}),(0,f.z)((0,c.of)([h,...x]),p.pipe((0,w.U)(e=>[h,...e])))):(0,c.of)([h])}))}catch(e){if(e instanceof G&&(e.context&&console.warn(`Pane resolution error at index ${e.context.index}${e.context.splitIndex>0?` for split pane index ${e.context.splitIndex}`:""}: ${e.message}${e.helpId?` - see ${(0,S.h0)(e.helpId)}`:""}`,e),"structure-item-returned-no-child"===e.helpId))return(0,c.of)([]);throw e}})({unresolvedPane:t,flattenedRouterPanes:e,parent:null,path:[],resolvePane:n,structureContext:r}))).pipe((0,k.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,_.x)((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<t.length;n++){let r=e[n],a=t[n];if(Y(r)!==Y(a))return!1}return!0}))})({rootPaneNode:r,routerPanesStream:d,structureContext:n}).pipe((0,w.U)(e=>{let t=e.reduce((e,t)=>
10{let n=e[t.groupIndex]||[];return n[t.siblingIndex]=t.routerPaneSibling,e[t.groupIndex]=n,e},[]),n=t.length,r=e.map(r=>{var a;let{groupIndex:l,flatIndex:i,siblingIndex:o,routerPaneSibling:d,path:u}=r,p=d.id,c=t[l+1];return{active:l===n-2,childItemId:null!=(a=null==c?void 0:c[0].id)?a:null,index:i,itemId:d.id,groupIndex:l,key:`${"loading"===r.type?"unknown":r.paneNode.id}-${p}-${o}`,pane:"loading"===r.type?s.LOADING_PANE:r.paneNode,params:d.params||{},path:u.join(";"),payload:d.payload,selected:i===e.length-1,siblingIndex:o}});return{paneDataItems:r,routerPanes:t,resolvedPanes:r.map(e=>e.pane)}})).subscribe({next:e=>i(e),error:e=>t(e)});return()=>e.unsubscribe()},[r,d,n]),a}(),g=(0,o.z)((0,l.useCallback)(e=>"string"==typeof e.intent,[])),{sanity:{media:v}}=(0,a.Fg)(),[C,z]=(0,l.useState)(null),$=(0,l.useCallback)(()=>p(!0),[p]),E=(0,l.useCallback)(()=>p(!1),[p]);return(0,l.useEffect)(()=>{y.length&&e(y)},[e,y]),(0,l.useEffect)(()=>{let e=e=>{eh(e)&&(e.preventDefault(),n({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)},[n]),null!=(t=d._original)&&t.types.some(i.mPO)?(0,r.jsxs)(a.Xp,{element:C||null,children:[(0,r.jsxs)(ec,{flex:1,height:u?void 0:"fill",minWidth:v[1],onCollapse:$,onExpand:E,children:[h.map(({active:e,childItemId:t,groupIndex:n,itemId:a,key:i,pane:o,index:d,params:u,path:p,payload:c,siblingIndex:h,selected:f})=>(0,r.jsx)(l.Fragment,{children:o===s.LOADING_PANE?(0,r.jsx)(s.LoadingPane,{paneKey:i,path:p,selected:f}):(0,r.jsx)(ei,{active:e,groupIndex:n,index:d,pane:o,childItemId:t,itemId:a,paneKey:i,params:u,payload:c,path:p,selected:f,siblingIndex:h})},`${o===s.LOADING_PANE?"loading":o.type}-${d}`)),h.length<=1&&g&&(0,r.jsx)(s.LoadingPane,{paneKey:"intent-resolver"})]}),(0,r.jsx)(eu,{resolvedPanes:y}),(0,r.jsx)("div",{"data-portal":"",ref:z})]}):(0,r.jsx)(es,{})});function ex({tool:{options:e}}){let{unstable_sources:t}=(0,i.cFj)(),[n]=t,{source:o,defaultDocumentNode:d,structure:u}=e||{};(0,l.useEffect)(()=>((0,s.setActivePanes)([]),()=>(0,s.setActivePanes)([])),[]);let[{error:p},c]=(0,l.useState)({error:null});return p?(0,r.jsx)(er,{error:p}):(0,r.jsx)(a.SV,{onCatch:c,children:(0,r.jsx)(i.cWh,{name:o||n.name,children:(0,r.jsxs)(s.StructureToolProvider,{defaultDocumentNode:d,structure:u,children:[(0,r.jsx)(ef,{onPaneChange:s.setActivePanes}),(0,r.jsx)(et,{})]})})})}}}]);
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.