1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[295],{940295:function(e,t,n){n.r(t),n.d(t,{default:function(){return em}});var r=n(415311),a=n(604355),l=n(680701),i=n(920132),s=n(952698),d=n(986616),o=n(211396),u=n(587184),p=n(207091),c=n.n(p),h=n(493967),f=n(532089),x=n(909840),m=n(133577),y=n(638577),g=n(454400),v=n(505539),j=n(781820),w=n(633966),b=n(895671),I=n(756546),P=n(225092),k=n(713026),_=n(540710),C=n(424189),S=n(481473),z=n(181977),$=n(573365),E=n(378533),M=n.n(E),O=n(509764),L=n(895426),N=n(544320),R=n(957854);n(490547),n(538418),n(699417),n(575749),n(543453),n(123824),n(307953),n(310759);var T=n(997456),W=n(680775);let K=[];function D(e){let{children:t,flatIndex:n,index:a,params:l,payload:s,siblingIndex:d}=e,{navigate:p,navigateIntent:h,resolvePathFromState:f}=(0,u.tv)(),x=(0,u.z)(),{panes:m,expand:y}=(0,o.a0)(),g=(0,i.useMemo)(()=>(null==x?void 0:x.panes)||K,[null==x?void 0:x.panes]),v=(0,i.useMemo)(()=>null==m?void 0:m[m.length-2],[m]),j=a-1,w=(0,i.useCallback)(e=>{let t=g[j]||[],n=t[d],r=e(t,n),a=[...g.slice(0,j),r,...g.slice(j+1)];return{...x||{},panes:a}},[j,g,x,d]),b=(0,i.useCallback)(e=>{let t=w(e);return setTimeout(()=>p(t),0),t},[w,p]),I=(0,i.useCallback)(e=>f(w((t,n)=>[...t.slice(0,d),{...n,params:e},...t.slice(d+1)])),[w,f,d]),P=(0,i.useCallback)(e=>{b((t,n)=>[...t.slice(0,d),{...n,payload:e},...t.slice(d+1)])},[b,d]),k=(0,i.useCallback)(e=>{b((t,n)=>[...t.slice(0,d),{...n,params:e},...t.slice(d+1)])},[b,d]),_=(0,i.useCallback)(({id:e,parentRefPath:t,type:n,template:r})=>{p({panes:[...g.slice(0,j+1),[{id:e,params:{template:r.id,parentRefPath:(0,W.BB)(t),type:n},payload:r.params}]]})},[j,p,g]),C=(0,i.useMemo)(()=>({index:n,groupIndex:j,siblingIndex:d,payload:s,params:l,hasGroupSiblings:!!g[j]&&g[j].length>1,groupLength:g[j]?g[j].length:0,routerPanesState:g,ChildLink:o.a4,BackLink:n?o._:void 0,ReferenceChildLink:o.a5,handleEditReference:_,ParameterizedLink:o.a6,replaceCurrent:(e={})=>{b(()=>[{id:e.id||"",payload:e.payload,params:e.params||{}}])},closeCurrent:()=>{b((e,t)=>e.length>1?e.filter(e=>e!==t):e)},closeCurrentAndAfter:(e=!0)=>{e&&v&&y(v.element),p({panes:[...g.slice(0,j)]},{replace:!0})},duplicateCurrent:e=>{b((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,d),r,...t.slice(d)]})},setView:e=>{let t=c()(l,"view");return k(e?{...t,view:e}:t)},setParams:k,setPayload:P,createPathWithParams:I,navigateIntent:h}),[n,j,d,s,l,g,_,k,P,I,h,b,v,p,y]);return(0,r.jsx)(o.b.Provider,{value:C,children:t})}
1class Z extends Error{constructor({message:e,context:t,helpId:n,cause:r}){super(e),this.context=t,this.helpId=n,this.cause=r}}let A=new WeakMap;function U(e){let t=A.get(e);if(t)return t;let n=(0,j.x0)();return A.set(e,n),n}let B=e=>!!e&&"function"==typeof(null==e?void 0:e.then),V=e=>!!(0,s.av)(e)&&"function"==typeof e.serialize,F=e=>(t,n,r)=>{try{return e(t,n,r)}catch(e){throw e instanceof Z?e:new Z({message:"string"==typeof(null==e?void 0:e.message)?e.message:"",context:n,cause:e})}},q=e=>(...t)=>e(...t).pipe((0,w._)(1),(0,b.x)());function H(e){let t=F(q(e((e,n,r)=>{if(!e)throw new Z({message:"Pane returned no child",context:n,helpId:"structure-item-returned-no-child"});return B(e)||(0,h.b)(e)?(0,f.D)(e).pipe((0,I.w)(e=>t(e,n,r))):V(e)?t(e.serialize(n),n,r):"function"==typeof e?t(e(n.id,n),n,r):(0,x.of)(e)})));return t}let J=new WeakMap;function X(e,t){let n=J.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),J.set(e,n),a}async function Y(e){let t=new Map,n=H(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:{...c()(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:d,unresolvedPane:o,levelIndex:u,structureContext:p}){var c;if(!o)return[];let{id:h,type:f,...x}=l,y=await (0,m.z)(n(o,{id:e,splitIndex:0,parent:i,path:s,index:t,params:{},payload:void 0,structureContext:p},t));return"document"===y.type&&y.id===h?[{panes:[...s.slice(0,s.length-1).map(e=>[{id:e}]),[{id:h,params:x,payload:d}]],depthIndex:s.length,levelIndex:u}]:null!=(c=y.canHandleIntent)&&c.call(y,r,l,{pane:y,index:t})||"documentList"===y.type&&y.schemaTypeName===f&&"_type == $type"===y.options.filter?[{panes:[...s.map(e=>[{id:e}]),[{id:l.id,params:x,payload:d}]],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.id],payload:d,unresolvedPane:"function"==typeof y.child?X(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 G=(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 d=l({schemaType:i,documentId:n}).id("editor");return s&&(d=d.initialValueTemplate(s,a)),d.serialize()},Q=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 ee(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:(0,O.Z)(),type:n};if(t&&!n){let n=await (0,m.z)(e.resolveTypeForDocument(t));return{id:t,type:n}}throw new Z({message:"Neither document `id` or `type` was provided when trying to resolve intent."})}let et={},en=(0,i.memo)(function(){let{navigate:e}=(0,u.tv)(),t=(0,u.z)((0,i.useCallback)(e=>{let t="string"==typeof e.intent?e.intent:void 0;return t?{intent:t,params:(0,s.av)(e.params)?e.params:et,payload:e.payload}:void 0},[])),{rootPaneNode:n,structureContext:r}=(0,o.W)(),a=(0,s.a9)(),[l,d]=(0,i.useState)(null);if(l)throw l;return(0,i.useEffect)(()=>{if(t){let{intent:l,params:i,payload:s}=t,o=!1;return(async function(){let{id:t,type:d}=await ee(a,"string"==typeof i.id?i.id:void 0,"string"==typeof i.type?i.type:void 0);if(o)return;let u=await Y({intent:l,params:{...i,id:t,type:d},payload:s,rootPaneNode:n,structureContext:r});o||e({panes:u},{replace:!0})})().catch(d),()=>{o=!0}}},[a,t,e,n,r]),null}),er=N.ZP.span` 2 &:not(:last-child)::after { 3 content: ' â '; 4 opacity: 0.5; 5 } 6`;function ea({error:e}){if(!(e instanceof Z))throw e;let{cause:t}=e,{t:n}=(0,s.j)(o.s),l=(null==t?void 0:t.stack)||e.stack,d=l&&!(t instanceof o.S)&&!e.message.includes("Module build failed:"),u=t instanceof o.S?t.path:[],p=t instanceof o.S&&t.helpId||e.helpId,c=(0,i.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)(er,{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?l.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,$.h)(p),rel:"noopener noreferrer",target:"_blank",children:n("structure-error.docs-link.text")})})}),(0,r.jsx)(a.xu,{marginTop:4,children:(0,r.jsx)(R.B,{text:n("structure-error.reload-button.text"),icon:L.bnu,tone:"primary",onClick:c})})]})]})})}function el(e){let{isSelected:t,pane:n,paneKey:l}=e,i=(0,s.av)(n)&&n.type||null,{t:d}=(0,s.j)(o.s);return(0,r.jsxs)(o.$,{id:l,selected:t,children:[(0,r.jsx)(o.Y,{title:d("panes.unknown-pane-type.title")}),(0,r.jsx)(o.a2,{children:(0,r.jsx)(a.xu,{padding:4,children:"string"==typeof i?(0,r.jsx)(a.xv,{as:"p",muted:!0,children:(0,r.jsx)(s.dl,{t:d,i18nKey:"panes.unknown-pane-type.unknown-type.text",values:{type:i}})}):(0,r.jsx)(a.xv,{as:"p",muted:!0,children:(0,r.jsx)(s.dl,{t:d,i18nKey:"panes.unknown-pane-type.missing-type.text"})})})})]})}let ei={component:(0,i.lazy)(()=>n.e(5847).then(n.bind(n,565847))),document:(0,i.lazy)(()=>n.e(7087).then(n.bind(n,507087))),documentList:(0,i.lazy)(()=>n.e(7206).then(n.bind(n,67206))),list:(0,i.lazy)(()=>n.e(8746).then(n.bind(n,618746)))},es=(0,i.memo)(function(e){let{active:t,childItemId:n,groupIndex:a,index:l,itemId:s,pane:d,paneKey:u,params:p,payload:c,path:h,selected:f,siblingIndex:x}=e,m=ei[d.type]||el;return(0,r.jsx)(D,{flatIndex:l,index:a,params:p,payload:c,siblingIndex:x,children:(0,r.jsx)(i.Suspense,{fallback:(0,r.jsx)(o.a8,{paneKey:u,path:h,selected:f}),children:(0,r.jsx)(m,{childItemId:n||"",index:l,itemId:s,isActive:t,isSelected:f,paneKey:u,pane:d})})})},({params:e={},payload:t=null,...n},{params:r={},payload:a=null,...l})=>{if(!M()(e,r)||!M()(t,a))return!1;for(let e of new Set([...Object.keys(n),...Object.keys(l)]))if(n[e]!==l[e])return!1;return!0});function ed(){let{t:e}=(0,s.j)(o.s);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)(L.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,d.iav)(t,n),a=(0,s.d8)(),{t:l}=(0,s.j)(o.s),u=!(null!=r&&r.published)&&!(null!=r&&r.draft),p=(null==r?void 0:r.draft)||(null==r?void 0:r.published),c=a.get(n),{value:h,isLoading:f}=(0,s.dA)({enabled:!0,schemaType:c,value:p}),x=u?l("browser-document-title.new-document",{schemaType:(null==c?void 0:c.title)||(null==c?void 0:c.name)}):(null==h?void 0:h.title)||l("browser-document-title.untitled-document"),m=r.ready&&!f,y=ec(x);return(0,i.useEffect)(()=>{m&&(document.title=y)},[x,m,y]),null},eu=e=>{let{title:t}=e,n=ec(t);return(0,i.useEffect)(()=>{document.title=n},[n,t]),null},ep=e=>{let{resolvedPanes:t}=e;if(!(null!=t&&t.length))return null;let n=t[t.length-1];return n===o.a7?(0,r.jsx)(eu,{}):n!==o.a7&&"document"===n.type?null!=n&&n.title?(0,r.jsx)(eu,{title:n.title}):(0,r.jsx)(eo,{documentId:n.options.id,documentType:n.options.type}):(0,r.jsx)(eu,{title:null==n?void 0:n.title})};function ec(e){return[e,(0,o.W)().structureContext.title].filter(e=>e).join(" | ")}let eh=(0,N.ZP)(o.P)` 8 min-height: 100%; 9 min-width: 320px; 10`,ef=(0,T.ZP)("mod+s"),ex=(0,i.memo)(function({onPaneChange:e}){var t;let{push:n}=(0,l.pm)(),p=(0,s.d8)(),{layoutCollapsed:c,setLayoutCollapsed:h}=(0,o.W)(),{paneDataItems:f,resolvedPanes:m}=function(){let[e,t]=(0,i.useState)();if(e)throw e;let{structureContext:n,rootPaneNode:r}=(0,o.W)(),[a,l]=(0,i.useState)({paneDataItems:[],resolvedPanes:[],routerPanes:[]}),s=function(){let e=(0,i.useMemo)(()=>new v.t(1),[]),t=(0,i.useMemo)(()=>e.asObservable().pipe((0,P.U)(e=>(null==e?void 0:e.panes)||[])),[e]),{state:n}=(0,u.tv)();return(0,i.useEffect)(()=>
10{e.next(n)},[n,e]),t}();return(0,i.useEffect)(()=>{let e=(function({routerPanesStream:e,rootPaneNode:t,initialCacheState:n={cacheKeysByFlatIndex:[],flattenedRouterPanes:[],resolvedPaneCache:new Map,resolvePane:()=>g.C},structureContext:r}){return e.pipe((0,P.U)(e=>[[{id:"root"}],...e]),(0,P.U)(e=>e.flatMap((e,t)=>e.map((e,n)=>({routerPaneSibling:e,groupIndex:t,siblingIndex:n}))).map((e,t)=>({...e,flatIndex:t}))),(0,k.O)([]),(0,_.e)(function(e,t){var n,r=!1;e.subscribe((0,C.x)(t,function(e){var a=n;n=e,r&&t.next([a,e]),r=!0}))}),(0,P.U)(([e,t])=>{for(let n=0;n<t.length;n++){let r=e[n],a=t[n];if(!M()(r,a))return{flattenedRouterPanes:t,diffIndex:n}}return{flattenedRouterPanes:t,diffIndex:t.length}}),(0,S.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),d=new Set(i.flatMap(e=>Array.from(e)));for(let e of s.flatMap(e=>Array.from(e)).filter(e=>!d.has(e)))r.delete(e);return{flattenedRouterPanes:a,cacheKeysByFlatIndex:n,resolvedPaneCache:r,resolvePane:H(e=>(t,a,l)=>{var i,s;let d=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})})`,o=d&&r.get(d);if(o)return o;let u=e(t,a,l);if(!d)return u;let p=n[l]||new Set;return p.add(d),n[l]=p,r.set(d,u),u})}},n),(0,I.w)(({flattenedRouterPanes:e,resolvePane:n})=>(function e({unresolvedPane:t,flattenedRouterPanes:n,parent:r,path:a,resolvePane:l,structureContext:i}){let[s,...d]=n,o=d[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,I.w)(n=>{let p;let c={type:"resolvedMeta",...s,paneNode:n,path:u.path},h=d.map((e,t)=>({type:"loading",path:[...u.path,...d.slice(t).map((t,n)=>`[${e.flatIndex+n}]`)],paneNode:null,...e}));return d.length?(p=null!=o&&o.routerPaneSibling.id.startsWith("__edit__")?e({unresolvedPane:G,flattenedRouterPanes:d,parent:r,path:u.path,resolvePane:l,structureContext:i}):s.groupIndex===(null==o?void 0:o.groupIndex)?e({unresolvedPane:t,flattenedRouterPanes:d,parent:r,path:a,resolvePane:l,structureContext:i}):e({unresolvedPane:"function"==typeof n.child?X(n,"child"):n.child,flattenedRouterPanes:d,parent:n,path:u.path,resolvePane:l,structureContext:i}),(0,y.z)((0,x.of)([c,...h]),p.pipe((0,P.U)(e=>[c,...e])))):(0,x.of)([c])}))}catch(e){if(e instanceof Z&&(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,$.h)(e.helpId)}`:""}`,e),"structure-item-returned-no-child"===e.helpId))return(0,x.of)([]);throw e}})({unresolvedPane:t,flattenedRouterPanes:e,parent:null,path:[],resolvePane:n,structureContext:r}))).pipe((0,S.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,z.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(Q(r)!==Q(a))return!1}return!0}))})({rootPaneNode:r,routerPanesStream:s,structureContext:n}).pipe((0,P.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 a;let{groupIndex:l,flatIndex:i,siblingIndex:s,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}-${s}`,pane:"loading"===r.type?o.a7:r.paneNode,params:d.params||{},path:u.join(";"),payload:d.payload,selected:i===e.length-1,siblingIndex:s}});return{paneDataItems:r,routerPanes:t,resolvedPanes:r.map(e=>e.pane)}})).subscribe({next:e=>l(e),error:e=>t(e)});return()=>e.unsubscribe()},[r,s,n]),a}(),j=(0,u.z)((0,i.useCallback)(e=>"string"==typeof e.intent,[])),{sanity:{media:w}}=(0,a.Fg)(),[b,E]=(0,i.useState)(null),O=(0,i.useCallback)(()=>h(!0),[h]),L=(0,i.useCallback)(()=>h(!1),[h]);return(0,i.useEffect)(()=>{m.length&&e(m)},[e,m]),(0,i.useEffect)(()=>{let e=e=>{ef(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=p._original)&&t.types.some(d.mPO)?(0,r.jsxs)(a.Xp,{element:b||null,children:[(0,r.jsxs)(eh,{flex:1,height:c?void 0:"fill",minWidth:w[1],onCollapse:O,onExpand:L,children:[f.map(({active:e,childItemId:t,groupIndex:n,itemId:a,key:l,pane:s,index:d,params:u,path:p,payload:c,siblingIndex:h,selected:f})=>(0,r.jsx)(i.Fragment,{children:s===o.a7?(0,r.jsx)(o.a8,{paneKey:l,path:p,selected:f}):(0,r.jsx)(es,{active:e,groupIndex:n,index:d,pane:s,childItemId:t,itemId:a,paneKey:l,params:u,payload:c,path:p,selected:f,siblingIndex:h})},`${s===o.a7?"loading":s.type}-${d}`)),f.length<=1&&j&&(0,r.jsx)(o.a8,{paneKey:"intent-resolver"})]}),(0,r.jsx)(ep,{resolvedPanes:m}),(0,r.jsx)("div",{"data-portal":"",ref:E})]}):(0,r.jsx)(ed,{})});function em({tool:{options:e}}){let{unstable_sources:t}=(0,s.ag)(),[n]=t,{source:a,defaultDocumentNode:d,structure:u}=e||{};(0,i.useEffect)(()=>((0,o.a9)([]),()=>(0,o.a9)([])),[]);let[{error:p},c]=(0,i.useState)({error:null});return p?(0,r.jsx)(ea,{error:p}):(0,r.jsx)(l.SV,{onCatch:c,children:(0,r.jsx)(s.eV,{name:a||n.name,children:(0,r.jsxs)(o.V,{defaultDocumentNode:d,structure:u,children:[(0,r.jsx)(ex,{onPaneChange:o.a9}),(0,r.jsx)(en,{})]})})})}}}]);
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.