1"use strict";(globalThis.webpackChunk_N_E=globalThis.webpackChunk_N_E||[]).push([[1206],{21206:(e,t,n)=>{n.r(t),n.d(t,{default:()=>eb});var r=n(87448),i=n(97783),a=n(23796),l=n(30289),s=n(57102),o=n(91862),d=n(82992),p=n(25882),u=n(94202),c=n(92768),f=n(1053),h=n(24383),m=n(9198),x=n(38388),g=n(49319),y=n(31467),I=n(10648),w=n(36716),b=n(68575),j=n(42485),_=n(74133),v=n(48085),P=n(5915),S=n(1481),E=n(47499),k=n(24568),$=n(17497),z=n(78139),T=n(91172),G=n(95175),M=n(32438),N=n(70297),C=n(99646),D=n(99519);class O extends Error{constructor({message:e,context:t,helpId:n,cause:r}){super(e),this.name="PaneResolutionError",this.context=t,this.helpId=n,this.cause=r}}let R=new WeakMap;function B(e){let t=R.get(e);if(t)return t;let n=(0,w.Ak)();return R.set(e,n),n}let L=e=>!!e&&"function"==typeof e?.then,Z=e=>!!(0,l.u4i)(e)&&"function"==typeof e.serialize,A=e=>(t,n,r)=>{try{return e(t,n,r)}catch(e){throw e instanceof O?e:new O({message:"string"==typeof e?.message?e.message:"",context:n,cause:e})}},Y=e=>(...t)=>e(...t).pipe((0,b.H)(1),(0,j.B)());function H(e){let t=A(Y(e((e,n,r)=>{if(!e)throw new O({message:"Pane returned no child",context:n,helpId:"structure-item-returned-no-child"});return L(e)||(0,f.A)(e)?(0,h.H)(e).pipe((0,_.n)(e=>t(e,n,r))):Z(e)?t(e.serialize(n),n,r):"function"==typeof e?t(e(n.id,n),n,r):(0,m.of)(e)})));return t}let J=new WeakMap;function F(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 i=r.bind(e);return n.set(t,i),J.set(e,n),i}async function W(e){let t=new Map,n=H(e=>(n,r,i)=>{let a=n&&`${B(n)}-${r.path.join("__")}`,l=a&&t.get(a);if(l)return l;let s=e(n,r,i);return a&&t.set(a,s),s}),r=[[{id:`__edit__${e.params.id}`,params:{...c(e.params,["id"]),type:e.params.type},payload:e.payload}]];async function i({currentId:e,flatIndex:t,intent:r,params:a,parent:l,path:s,payload:o,unresolvedPane:d,levelIndex:p,structureContext:u}){if(!d)return[];let{id:c,type:f,...h}=a,m=await (0,x._)(n(d,{id:e,splitIndex:0,parent:l,path:s,index:t,params:{},payload:void 0,structureContext:u},t));return"document"===m.type&&m.id===c?[{panes:[...s.slice(0,s.length-1).map(e=>[{id:e}]),[{id:c,params:h,payload:o}]],depthIndex:s.length,levelIndex:p}]:m.canHandleIntent?.(r,a,{pane:m,index:t})||"documentList"===m.type&&m.schemaTypeName===f&&"_type == $type"===m.options.filter?[{panes:[...s.map(e=>[{id:e}]),[{id:a.id,params:h,payload:o}]],depthIndex:s.length,levelIndex:p}]:"list"===m.type&&m.child&&m.items?(await Promise.all(m.items.map((e,n)=>"divider"===e.type?Promise.resolve([]):i({currentId:e._id||e.id,flatIndex:t+1,intent:r,params:a,parent:m,path:[...s,e.id],payload:o,unresolvedPane:"function"==typeof m.child?F(m,"child"):m.child,levelIndex:n,structureContext:u})))).flat():[]}let a=(await i({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 a?a.panes:r}let V=(e,t)=>{let n=e.replace(/^__edit__/,""),{params:r,payload:i,structureContext:{resolveDocumentNode:a}}=t,{type:l,template:s}=r;if(!l)throw Error(`Document type for document with ID ${n} was not provided in the router params.`);let o=a({schemaType:l,documentId:n}).id("editor");return s&&(o=o.initialValueTemplate(s,i)),o.serialize()},K=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?B(e.paneNode):null};return`metaHash(${JSON.stringify(t)})`};function q(e){return e?.panes||[]}function Q(){return new I.m(1)}function X(e){let t=e.reduce(ee,[]),n=t.length,r=e.map(r=>{let{groupIndex:i,flatIndex:a,siblingIndex:l,routerPaneSibling:s,path:d}=r,p=s.id,u=t[i+1];return{active:i===n-2,childItemId:u?.[0].id??null,index:a,itemId:s.id,groupIndex:i,key:`${"loading"===r.type?"unknown":r.paneNode.id}-${p}-${l}`,pane:"loading"===r.type?o.Gp:r.paneNode,params:s.params||{},path:d.join(";"),payload:s.payload,selected:a===e.length-1,siblingIndex:l,maximized:!1}});return{paneDataItems:r,routerPanes:t,resolvedPanes:r.map(U)}}function U(e){return e.pane}function ee(e,t){let n=e[t.groupIndex]||[];return n[t.siblingIndex]=t.routerPaneSibling,e[t.groupIndex]=n,e}async function et(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:(0,z.A)(),type:n};if(t&&!n){let n=await (0,x._)(e.resolveTypeForDocument(t));return{id:t,type:n}}throw new O({message:"Neither document `id` or `type` was provided when trying to resolve intent."})}let en={}
1,er=(0,a.memo)(function(){let e,t,n=(0,i.c)(7),{navigate:r}=(0,p.rd)(),s=(0,p.ks)(ei),{rootPaneNode:d,structureContext:u}=(0,o.pl)(),c=(0,l.q3J)(),[f,h]=(0,a.useState)(null);if(f)throw f;return n[0]!==c||n[1]!==s||n[2]!==r||n[3]!==d||n[4]!==u?(e=()=>{if(s){let{intent:e,params:t,payload:n}=s,i=!1;return(async function(){let{id:a,type:l}=await et(c,"string"==typeof t.id?t.id:void 0,"string"==typeof t.type?t.type:void 0);if(i)return;let s=await W({intent:e,params:{...t,id:a,type:l},payload:n,rootPaneNode:d,structureContext:u});i||r({panes:s},{replace:!0})})().catch(h),()=>{i=!0}}},t=[c,s,r,d,u],n[0]=c,n[1]=s,n[2]=r,n[3]=d,n[4]=u,n[5]=e,n[6]=t):(e=n[5],t=n[6]),(0,a.useEffect)(e,t),null});function ei(e){let t="string"==typeof e.intent?e.intent:void 0;return t?{intent:t,params:(0,l.u4i)(e.params)?e.params:en,payload:e.payload}:void 0}let ea=N.I4.span` 2 &:not(:last-child)::after { 3 content: ' â '; 4 opacity: 0.5; 5 } 6`;function el(e){let t,n,a,o,p,u,c,f,h,m,x,g,y,I,w,b,j,_,v,P,S,E,k,$,z,M,N,C,D,R,B=(0,i.c)(74),{error:L}=e;if(!(L instanceof O))throw L;let{cause:Z}=L,{t:A}=(0,l.Bdt)(d.Z7),Y=Z?.stack||L.stack;B[0]!==Z||B[1]!==L.message||B[2]!==Y?(t=Y&&!(Z instanceof d.LV)&&!L.message.includes("Module build failed:"),B[0]=Z,B[1]=L.message,B[2]=Y,B[3]=t):t=B[3];let H=t;if(B[4]!==Z||B[5]!==L.helpId||B[6]!==A){let e,t=Z instanceof d.LV?Z.path:[];u=Z instanceof d.LV&&Z.helpId||L.helpId,p=eo,o=G.Zp,c="fill",f="auto",h=4,m="border",x="critical",a=G.mc,B[25]!==A?(e=A("structure-error.header.text"),B[25]=A,B[26]=e):e=B[26],B[27]!==e?(v=(0,r.jsx)(G.DZ,{as:"h2",children:e}),B[27]=e,B[28]=v):v=B[28],n=G.Zp,g=4,y=4,I=2,w="auto",b=1,j="inherit",_=t.length>0&&(0,r.jsxs)(G.BJ,{space:2,children:[(0,r.jsx)(G.EY,{size:1,weight:"medium",children:A("structure-error.structure-path.label")}),(0,r.jsx)(G.Cy,{children:t.slice(1).map(es)})]}),B[4]=Z,B[5]=L.helpId,B[6]=A,B[7]=n,B[8]=a,B[9]=o,B[10]=p,B[11]=u,B[12]=c,B[13]=f,B[14]=h,B[15]=m,B[16]=x,B[17]=g,B[18]=y,B[19]=I,B[20]=w,B[21]=b,B[22]=j,B[23]=_,B[24]=v}else n=B[7],a=B[8],o=B[9],p=B[10],u=B[11],c=B[12],f=B[13],h=B[14],m=B[15],x=B[16],g=B[17],y=B[18],I=B[19],w=B[20],b=B[21],j=B[22],_=B[23],v=B[24];return B[29]!==A?(P=A("structure-error.error.label"),B[29]=A,B[30]=P):P=B[30],B[31]!==P?(S=(0,r.jsx)(G.EY,{size:1,weight:"medium",children:P}),B[31]=P,B[32]=S):S=B[32],B[33]!==L.message||B[34]!==H||B[35]!==Y?(E=H?Y.replace(/\(\.\.\.\)\./g,`(...) 7 .`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(RegExp(` \\(https?:\\/\\/${window.location.host}`,"g")," ("):L.message,B[33]=L.message,B[34]=H,B[35]=Y,B[36]=E):E=B[36],B[37]!==E?(k=(0,r.jsx)(G.Cy,{children:E}),B[37]=E,B[38]=k):k=B[38],B[39]!==S||B[40]!==k?($=(0,r.jsxs)(G.BJ,{marginTop:4,space:2,children:[S,k]}),B[39]=S,B[40]=k,B[41]=$):$=B[41],B[42]!==u||B[43]!==A?(z=u&&(0,r.jsx)(G.az,{marginTop:4,children:(0,r.jsx)(G.EY,{children:(0,r.jsx)("a",{href:(0,s.iB)(u),rel:"noopener noreferrer",target:"_blank",children:A("structure-error.docs-link.text")})})}),B[42]=u,B[43]=A,B[44]=z):z=B[44],B[45]!==A?(M=A("structure-error.reload-button.text"),B[45]=A,B[46]=M):M=B[46],B[47]!==p||B[48]!==M?(N=(0,r.jsx)(G.az,{marginTop:4,children:(0,r.jsx)(s.$n,{text:M,icon:T.Fjq,tone:"primary",onClick:p})}),B[47]=p,B[48]=M,B[49]=N):N=B[49],B[50]!==n||B[51]!==$||B[52]!==g||B[53]!==z||B[54]!==N||B[55]!==y||B[56]!==I||B[57]!==w||B[58]!==b||B[59]!==j||B[60]!==_?(C=(0,r.jsxs)(n,{marginTop:g,padding:y,radius:I,overflow:w,shadow:b,tone:j,children:[_,$,z,N]}),B[50]=n,B[51]=$,B[52]=g,B[53]=z,B[54]=N,B[55]=y,B[56]=I,B[57]=w,B[58]=b,B[59]=j,B[60]=_,B[61]=C):C=B[61],B[62]!==a||B[63]!==C||B[64]!==v?(D=(0,r.jsxs)(a,{children:[v,C]}),B[62]=a,B[63]=C,B[64]=v,B[65]=D):D=B[65],B[66]!==o||B[67]!==c||B[68]!==f||B[69]!==h||B[70]!==m||B[71]!==x||B[72]!==D?(R=(0,r.jsx)(o,{height:c,overflow:f,padding:h,sizing:m,tone:x,children:D}),B[66]=o,B[67]=c,B[68]=f,B[69]=h,B[70]=m,B[71]=x,B[72]=D,B[73]=R):R=B[73],R}function es(e,t){return(0,r.jsx)(ea,{children:e},`${e}-${t}`)}function eo(){window.location.reload()}function ed(){let e,t,n,a,s,o,p,u,c=(0,i.c)(17),{t:f}=(0,l.Bdt)(d.Z7);return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(G.az,{children:(0,r.jsx)(G.EY,{size:1,children:(0,r.jsx)(T.sAQ,{})})}),c[0]=e):e=c[0],c[1]!==f?(t=f("no-document-types-screen.title"),c[1]=f,c[2]=t):t=c[2],c[3]!==t?(n=(0,r.jsx)(G.EY,{as:"h1",size:1,weight:"medium",children:t}),c[3]=t,c[4]=n):n=c[4],c[5]!==f?(a=f("no-document-types-screen.subtitle"),c[5]=f,c[6]=a):a=c[6],c[7]!==a?(s=(0,r.jsx)(G.EY,{as:"p",muted:!0,size:1,children:a}),c[7]=a,c[8]=s):s=c[8],c[9]!==f?(o=f("no-document-types-screen.link-text"),c[9]=f,c[10]=o):o=c[10],c[11]!==o?(p=(0,r.jsx)(G.EY,{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:o})}
7),c[11]=o,c[12]=p):p=c[12],c[13]!==n||c[14]!==s||c[15]!==p?(u=(0,r.jsx)(G.Zp,{height:"fill",children:(0,r.jsx)(G.so,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,r.jsx)(G.mc,{width:0,children:(0,r.jsx)(G.Zp,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,r.jsxs)(G.so,{children:[e,(0,r.jsxs)(G.BJ,{flex:1,marginLeft:3,space:3,children:[n,s,p]})]})})})})}),c[13]=n,c[14]=s,c[15]=p,c[16]=u):u=c[16],u}let ep=e=>{let t,n,r=(0,i.c)(7),{documentId:s,documentType:p}=e,{selectedReleaseId:u}=(0,l.QO2)(),c=(0,l.zX2)(s,p,"default",u),f=(0,l.I07)(),{t:h}=(0,l.Bdt)(d.Z7),m=!c?.published&&!c?.draft,x=c?.version||c?.draft||c?.published,g=f.get(p),{value:y,isLoading:I}=(0,l.MOl)({enabled:!!x,schemaType:g,value:x}),{lastRevisionDocument:w}=(0,o.c0)(s,p),b=w&&!x?"":m?h("browser-document-title.new-document",{schemaType:g?.title||g?.name}):y?.title||h("browser-document-title.untitled-document"),j=c.ready&&!I,_=ef(b);return r[0]!==_||r[1]!==j?(t=()=>{j&&(document.title=_)},r[0]=_,r[1]=j,r[2]=t):t=r[2],r[3]!==b||r[4]!==_||r[5]!==j?(n=[b,j,_],r[3]=b,r[4]=_,r[5]=j,r[6]=n):n=r[6],(0,a.useEffect)(t,n),null},eu=e=>{let t,n,r=(0,i.c)(5),{title:l}=e,s=ef(l);return r[0]!==s?(t=()=>{document.title=s}
7,r[0]=s,r[1]=t):t=r[1],r[2]!==s||r[3]!==l?(n=[s,l],r[2]=s,r[3]=l,r[4]=n):n=r[4],(0,a.useEffect)(t,n),null},ec=e=>{let t,n=(0,i.c)(8),{resolvedPanes:a}=e;if(!a?.length)return null;let l=a[a.length-1];if(l===o.Gp){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(eu,{}),n[0]=e):e=n[0],e}if(function(e){return e!==o.Gp&&"document"===e.type}(l)){let e;if(l?.title){let e;return n[1]!==l.title?(e=(0,r.jsx)(eu,{title:l.title}),n[1]=l.title,n[2]=e):e=n[2],e}return n[3]!==l.options.id||n[4]!==l.options.type?(e=(0,r.jsx)(ep,{documentId:l.options.id,documentType:l.options.type}),n[3]=l.options.id,n[4]=l.options.type,n[5]=e):e=n[5],e}let s=l?.title;return n[6]!==s?(t=(0,r.jsx)(eu,{title:s}),n[6]=s,n[7]=t):t=n[7],t};function ef(e){let t,n=(0,i.c)(3),r=(0,o.pl)().structureContext.title;return n[0]!==e||n[1]!==r?(t=[e,r].filter(eh),n[0]=e,n[1]=r,n[2]=t):t=n[2],t.join(" | ")}function eh(e){return e}let em=(0,N.I4)(o.bt)` 8 min-height: 100%; 9 min-width: 320px; 10`,ex=(0,C.v_)("mod+s"),eg=(0,a.memo)(function(e){let t,n,d,c,f,h,x,I,w,b,j,z,T,N,C,R,L,Z=(0,i.c)(48),{onPaneChange:A}=e,{push:Y}=(0,M.dj)(),J=(0,l.I07)(),{navigate:W}=(0,p.rd)(),U=(0,p.ks)(),{layoutCollapsed:ee,setLayoutCollapsed:et}=(0,o.pl)(),en=function(){let e,t,n,r,l,d=(0,i.c)(15),[u,c]=(0,a.useState)(),[f,h]=(0,a.useState)(null);if(u)throw u;let{structureContext:x,rootPaneNode:I}=(0,o.pl)();d[0]===Symbol.for("react.memo_cache_sentinel")?(e={paneDataItems:[],resolvedPanes:[],routerPanes:[]},d[0]=e):e=d[0];let[w,b]=(0,a.useState)(e),j=function(){let e,t,n,r=(0,i.c)(6),[l]=(0,a.useState)(Q);r[0]!==l?(e=l.asObservable().pipe((0,v.T)(q)),r[0]=l,r[1]=e):e=r[1];let s=e,{state:o}=(0,p.rd)();return r[2]!==o||r[3]!==l?(t=()=>{l.next(o)},n=[o,l],r[2]=o,r[3]=l,r[4]=t,r[5]=n):(t=r[4],n=r[5]),(0,a.useEffect)(t,n),s}();if(d[1]!==I||d[2]!==j||d[3]!==x?(t=()=>{let e=(function({routerPanesStream:e,rootPaneNode:t,initialCacheState:n={cacheKeysByFlatIndex:[],flattenedRouterPanes:[],resolvedPaneCache:new Map,resolvePane:()=>y.t},structureContext:r}){return e.pipe((0,v.T)(e=>[[{id:"root"}],...e]),(0,v.T)(e=>e.flatMap((e,t)=>e.map((e,n)=>({routerPaneSibling:e,groupIndex:t,siblingIndex:n}))).map((e,t)=>({...e,flatIndex:t}))),(0,P.Z)([]),(0,S.N)(function(e,t){var n,r=!1;e.subscribe((0,E._)(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),(0,v.T)(([e,t])=>{for(let n=0;n<t.length;n++)if(!D(e[n],t[n]))return{flattenedRouterPanes:t,diffIndex:n};return{flattenedRouterPanes:t,diffIndex:t.length}}),(0,k.S)((e,t)=>{let{cacheKeysByFlatIndex:n,resolvedPaneCache:r}=e,{flattenedRouterPanes:i,diffIndex:a}=t,l=n.slice(0,a+1),s=n.slice(a+1),o=new Set(l.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:i,cacheKeysByFlatIndex:n,resolvedPaneCache:r,resolvePane:H(e=>(t,i,a)=>{let l=t&&`${B(t)}-contextHash(${JSON.stringify({id:i.id,parentId:parent&&B(parent),path:i.path,index:i.index,splitIndex:i.splitIndex,serializeOptionsIndex:i.serializeOptions?.index,serializeOptionsPath:i.serializeOptions?.path})})`,s=l&&r.get(l);if(s)return s;let o=e(t,i,a);if(!l)return o;let d=n[a]||new Set;return d.add(l),n[a]=d,r.set(l,o),o})}},n),(0,_.n)(({flattenedRouterPanes:e,resolvePane:n})=>(function e({unresolvedPane:t,flattenedRouterPanes:n,parent:r,path:i,resolvePane:a,structureContext:l}){let[o,...d]=n,p=d[0],u={id:o.routerPaneSibling.id,splitIndex:o.siblingIndex,parent:r,path:[...i,o.routerPaneSibling.id],index:o.flatIndex,params:o.routerPaneSibling.params||{},payload:o.routerPaneSibling.payload,structureContext:l};try{return a(t,u,o.flatIndex).pipe((0,_.n)(n=>{let s,c={type:"resolvedMeta",...o,paneNode:n,path:u.path},f=d.map((e,t)=>({type:"loading",path:[...u.path,...d.slice(t).map((t,n)=>`[${e.flatIndex+n}]`)],paneNode:null,...e}));return d.length?(s=p?.routerPaneSibling.id.startsWith("__edit__")?e({unresolvedPane:V,flattenedRouterPanes:d,parent:r,path:u.path,resolvePane:a,structureContext:l}):o.groupIndex===p?.groupIndex?e({unresolvedPane:t,flattenedRouterPanes:d,parent:r,path:i,resolvePane:a,structureContext:l}):e({unresolvedPane:"function"==typeof n.child?F(n,"child"):n.child,flattenedRouterPanes:d,parent:n,path:u.path,resolvePane:a,structureContext:l}),(0,g.x)((0,m.of)([c,...f]),s.pipe((0,v.T)(e=>[c,...e])))):(0,m.of)([c])}))}catch(e){if(e instanceof O&&(e.context&&console.warn(`Pane resolution error at index ${e.context.
10index}${e.context.splitIndex>0?` for split pane index ${e.context.splitIndex}`:""}: ${e.message}${e.helpId?` - see ${(0,s.iB)(e.helpId)}`:""}`,e),"structure-item-returned-no-child"===e.helpId))return(0,m.of)([]);throw e}})({unresolvedPane:t,flattenedRouterPanes:e,parent:null,path:[],resolvePane:n,structureContext:r}))).pipe((0,k.S)((e,t)=>t.map((t,n)=>{let r=e[n];return r&&"loading"===t.type&&r.routerPaneSibling.id===t.routerPaneSibling.id?r:t}),[]),(0,$.F)((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<t.length;n++){let r=e[n],i=t[n];if(K(r)!==K(i))return!1}return!0}))})({rootPaneNode:I,routerPanesStream:j,structureContext:x}).pipe((0,v.T)(X)).subscribe({next:e=>b(e),error:e=>c(e)});return()=>e.unsubscribe()},n=[I,j,x],d[1]=I,d[2]=j,d[3]=x,d[4]=t,d[5]=n):(t=d[4],n=d[5]),(0,a.useEffect)(t,n),d[6]!==w.paneDataItems||d[7]!==f){let e;d[9]!==f?(e=e=>({...e,maximized:!!f&&e.key===f.key}),d[9]=f,d[10]=e):e=d[10],r=w.paneDataItems.map(e),d[6]=w.paneDataItems,d[7]=f,d[8]=r}else r=d[8];let z=r;return d[11]!==w||d[12]!==f||d[13]!==z?(l={...w,paneDataItems:z,maximizedPane:f,setMaximizedPane:h},d[11]=w,d[12]=f,d[13]=z,d[14]=l):l=d[14],l}(),{paneDataItems:er,resolvedPanes:ei,setMaximizedPane:ea,maximizedPane:el}=en,es=(0,p.ks)(ey),{sanity:eo}=(0,G.DP)(),{media:ep}=eo,[eu,ef]=(0,a.useState)(null);Z[0]!==et?(t=()=>et(!0),Z[0]=et,Z[1]=t):t=Z[1];let eh=t;Z[2]!==et?(n=()=>et(!1),Z[2]=et,Z[3]=n):n=Z[3];let eg=n;if(Z[4]!==er){let e=er.findLastIndex(eI);d=-1===e?er:er.slice(e).filter(t=>t.groupIndex<=er[e].groupIndex),Z[4]=er,Z[5]=d}else d=Z[5];let eb=d;Z[6]!==A||Z[7]!==ei?(c=()=>{ei.length&&A(ei)},f=[A,ei],Z[6]=A,Z[7]=ei,Z[8]=c,Z[9]=f):(c=Z[8],f=Z[9]),(0,a.useEffect)(c,f),Z[10]!==Y?(h=()=>{let e=e=>{ex(e)&&(e.preventDefault(),Y({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)},x=[Y],Z[10]=Y,Z[11]=h,Z[12]=x):(h=Z[11],x=Z[12]),(0,a.useEffect)(h,x);let ej=J._original?.types.some(l.Xhw);Z[13]!==W||Z[14]!==U?.panes||Z[15]!==ea?(I=e=>{if(!e)return;let t=U?.panes||[];if(e.maximized){ea(null),W({panes:t});return}if(e.pane!==o.Gp&&"document"===e.pane.type){let n=t.slice(0,e.groupIndex);ea(e),W({panes:n})}},Z[13]=W,Z[14]=U?.panes,Z[15]=ea,Z[16]=I):I=Z[16];let e_=I,ev=(0,a.useRef)(-1);if(Z[17]!==el||Z[18]!==er||Z[19]!==ea?(w=()=>{let e=er.findIndex(ew),t=ev.current;if(ev.current=e,el){if(el.pane!==o.Gp&&"document"!==el.pane.type)return void ea(null);if(-1!==e&&e!==t)return void ea(er[e]);er.some(e=>e.key===el.key)||ea(er.find(e=>e.groupIndex===el.groupIndex&&e.siblingIndex===el.siblingIndex&&e.pane!==o.Gp&&"document"===e.pane.type)||null)}},b=[el,er,ea],Z[17]=el,Z[18]=er,Z[19]=ea,Z[20]=w,Z[21]=b):(w=Z[20],b=Z[21]),(0,a.useEffect)(w,b),!ej){let e;return Z[22]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(ed,{}),Z[22]=e):e=Z[22],e}let eP=eu||null,eS=ee?void 0:"fill",eE=ep[1];if(Z[23]!==e_||Z[24]!==eb){let e;Z[26]!==e_?(e=e=>{let{active:t,childItemId:n,groupIndex:i,itemId:l,key:s,pane:d,index:p,params:u,path:c,payload:f,siblingIndex:h,selected:m,maximized:x}=e;return(0,r.jsx)(a.Fragment,{children:d===o.Gp?(0,r.jsx)(o.RG,{paneKey:s,path:c,selected:m}):(0,r.jsx)(o.Gt,{active:t,groupIndex:i,index:p,pane:d,childItemId:n,itemId:l,paneKey:s,params:u,payload:f,path:c,selected:m,siblingIndex:h,maximized:x,onSetMaximizedPane:()=>e_(e)})},`${d===o.Gp?"loading":d.type}-${p}`)},Z[26]=e_,Z[27]=e):e=Z[27],j=eb.map(e),Z[23]=e_,Z[24]=eb,Z[25]=j}else j=Z[25];return Z[28]!==es||Z[29]!==er.length?(z=er.length<=1&&es&&(0,r.jsx)(o.RG,{paneKey:"intent-resolver"}),Z[28]=es,Z[29]=er.length,Z[30]=z):z=Z[30],Z[31]!==eh||Z[32]!==eg||Z[33]!==ep[1]||Z[34]!==eS||Z[35]!==j||Z[36]!==z?(T=(0,r.jsxs)(em,{flex:1,height:eS,minWidth:eE,onCollapse:eh,onExpand:eg,children:[j,z]}),Z[31]=eh,Z[32]=eg,Z[33]=ep[1],Z[34]=eS,Z[35]=j,Z[36]=z,Z[37]=T):T=Z[37],Z[38]!==ei?(N=(0,r.jsx)(ec,{resolvedPanes:ei}),Z[38]=ei,Z[39]=N):N=Z[39],Z[40]===Symbol.for("react.memo_cache_sentinel")?(C=(0,r.jsx)("div",{"data-portal":"",ref:ef}),Z[40]=C):C=Z[40],Z[41]!==eP||Z[42]!==T||Z[43]!==N?(R=(0,r.jsxs)(G.GD,{element:eP,children:[T,N,C]}),Z[41]=eP,Z[42]=T,Z[43]=N,Z[44]=R):R=Z[44],Z[45]!==en||Z[46]!==R?(L=(0,r.jsx)(u.N8,{value:en,children:R}),Z[45]=en,Z[46]=R,Z[47]=L):L=Z[47],L});function ey(e){return"string"==typeof e.intent}function eI(e){return e.maximized}function ew(e){return e.selected}function eb(e){let t,n,p,u,c,f,h,m=(0,i.c)(14),{tool:x}=e,{options:g}=x,{unstable_sources:y}=(0,l.hA9)(),[I]=y;m[0]!==g?(t=g||{},m[0]=g,m[1]=t):t=m[1];let{source:w,defaultDocumentNode:b,structure:j}=t;m[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],m[2]=n):n=m[2],(0,a.useEffect)(ej,n),m[3]===Symbol.for("react.memo_cache_sentinel")?(p={error:null},m[3]=p):p=m[3];let[_,v]=(0,a.useState)(p),{error:P}=_;if(P){let e;return m[4]!==P?(e=(0,r.jsx)(el,{error:P}
10),m[4]=P,m[5]=e):e=m[5],e}let S=w||I.name;return m[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,r.jsx)(eg,{onPaneChange:o.GG}),c=(0,r.jsx)(er,{}),m[6]=u,m[7]=c):(u=m[6],c=m[7]),m[8]!==b||m[9]!==j?(f=(0,r.jsxs)(d.$l,{defaultDocumentNode:b,structure:j,children:[u,c]}),m[8]=b,m[9]=j,m[10]=f):f=m[10],m[11]!==S||m[12]!==f?(h=(0,r.jsx)(s.tH,{onCatch:v,children:(0,r.jsx)(l.NeO,{name:S,children:f})}),m[11]=S,m[12]=f,m[13]=h):h=m[13],h}function ej(){return(0,o.GG)([]),e_}function e_(){return(0,o.GG)([])}}}]);
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.