1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="940db764-f75c-4f96-8539-40926d8e4576",e._sentryDebugIdIdentifier="sentry-dbid-940db764-f75c-4f96-8539-40926d8e4576")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3308],{83022:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/article-index",function(){return t(89659)}])},13037:function(e,n,t){"use strict";t.d(n,{s:function(){return o}});var i=t(23119);let o=(0,t(65992).ZP)(i.Z)(e=>{let{theme:n}=e;return{color:n.palette.linkblue.main,textDecoration:"none",":hover":{textDecoration:"underline",color:n.palette.linkblue.dark}}})},8593:function(e,n,t){"use strict";t.d(n,{lb:function(){return h}});var i=t(82729),o=t(81548),l=t(2756);function r(){let e=(0,i._)(["\n query AllArticleVotes {\n allArticleVotes {\n t\n v\n }\n}\n "]);return r=function(){return e},e}function s(){let e=(0,i._)(["\n query GetUserArticleVotes {\n userArticleVotes {\n t\n v\n }\n}\n "]);return s=function(){return e},e}function a(){let e=(0,i._)(["\n mutation AddVote($article_title: String!) {\n addVote(article_title: $article_title) {\n t\n v\n }\n}\n "]);return a=function(){return e},e}function c(){let e=(0,i._)(["\n mutation RedactVote($article_title: String!) {\n redactVote(article_title: $article_title) {\n t\n v\n }\n}\n "]);return c=function(){return e},e}function d(){let e=(0,i._)(["\n query GetIndexPageData($input: ArticleInput!) {\n getIndexPageData(input: $input) {\n description\n totalArticles\n articles {\n _id\n publication_id\n title\n isScore\n categories\n category_sections\n category_subsections\n }\n categories {\n id\n _id\n name\n description\n displayName\n isScore\n slug\n sections {\n id\n _id\n name\n hide\n subSections {\n id\n _id\n name\n hide\n }\n }\n }\n }\n}\n "]);return d=function(){return e},e}let u={};(0,o.Ps)(r()),(0,o.Ps)(s()),(0,o.Ps)(a()),(0,o.Ps)(c());let p=(0,o.Ps)(d());function h(e){let n={...u,...e};return l.a(p,n)}},89659:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return et},default:function(){return ei}});var i,o,l=t(52322),r=t(15674),s=t(41075),a=t(35199),c=t(69692),d=t(62197),u=t(53108),p=t(56961),h=t(85610),x=t(2784),f=t(35629),g=t(31256),m=t(43211),v=t(13037);let y={fontSize:14,color:"grey.300",lineHeight:"20.2px",flexShrink:0,mr:.5};var b=e=>{let{articles:n}=e;return 0===n.length?null:(0,l.jsx)(c.Z,{component:"ul",sx:{listStyle:"none",margin:0,padding:0},children:n.map(e=>{var n,t;return(0,l.jsx)(c.Z,{component:"li",display:"flex",alignItems:"flex-start","data-testid":"article-list-item","aria-label":e.isScore?"SCORE: ".concat(null!==(n=e.title)&&void 0!==n?n:""):null!==(t=e.title)&&void 0!==t?t:void 0,sx:{"&::before":{...y,content:'"score"',visibility:e.isScore?"visible":"hidden"}},children:(0,l.jsx)(c.Z,{component:"span",sx:{display:"flex",alignItems:"flex-start","&::before":{...y,content:'"-"'}},children:(0,l.jsx)(v.s,{variant:"body2",href:"/article/".concat(e.publication_id),children:e.title})})},e._id)})})},j=t(47746),_=t(27149),w=()=>{let e=(0,j.Z)(),n=(0,_.Z)(e.breakpoints.down("md")),[t,i]=(0,x.useState)(!1);return((0,x.useEffect)(()=>{if(!n){i(!1);return}let e=()=>{let e=window.innerHeight,n=window.scrollY;i(n>e&&n>200)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[n]),n)?(0,l.jsx)(c.Z,{component:"button",type:"button","aria-label":"Back to top","aria-hidden":!t,tabIndex:t?0:-1,"data-testid":"back-to-top-button",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},sx:{position:"fixed",right:16,bottom:24,width:48,height:48,display:"grid",placeItems:"center",cursor:"pointer",border:"none",borderRadius:"50%",background:"linear-gradient(0deg, #4F46E5 0%, #60A5FA 100%)",boxShadow:"0 8px 24px rgba(0,0,0,.45), 0 2px 6px rgba(79,70,229,.35)",opacity:t?1:0,transform:t?"translateY(0)":"translateY(8px)",transition:"opacity .2s ease, transform .2s ease",pointerEvents:t?"auto":"none",WebkitTapHighlightColor:"transparent",zIndex:e.zIndex.fab,p:0,fontFamily:"inherit"},children:(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"#fff","aria-hidden":!0,style:{display:"block"},children:(0,l.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})})}):null},Z=t(24032),S=t(85801),k=t(5007),I=t(41664),E=t.n(I),z=t(57302),C=t.n(z);function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(null,arguments)}var D=function(e){return x.createElement("svg",P({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},e),i||(i=x.createElement("path",{d:"M13.544 10.456a4.368 4.368 0 00-6.176 0l-3.089 3.088a4.367 4.367 0 106.177 6.177L12 18.177",stroke:"#000",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=x.createElement("path",{d:"M10.456 13.544a4.368 4.368 0 006.176 0l3.089-3.088a4.367 4.367 0 10-6.177-6.177L12 5.823",stroke:"#000",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},L=t(6824),M=e=>{var n,t;let{category:i}=e,{enqueueSnackbar:o}=(0,L.Ds)(),r=null!==(t=C()(null!==(n=i.slug)&&void 0!==n?n:""))&&void 0!==t?t:"";return(0,l.jsxs)(d.Z,{id:r,component:"h2",fontSize:24,sx:{scrollMarginTop:"80px",alignItems:"center",display:"flex",justifyContent:"center"},children:[(0,l.jsx)(Z.Z,{title:"Click to copy link",children:(0,l.jsx)(S.Z,{size:"small","aria-label":"Copy link to category",onClick:()=>{let e="".concat(window.location.origin,"/index#").concat(r);navigator.clipboard.writeText(e),o("Link copied to clipboard",{variant:"info"})},children:(0,l.jsx)(k.Z,{component:D,sx:{fill:"none",fontSize:16}})})}),(0,l.jsx)(E(),{href:"#",passHref:!0,prefetch:!1,legacyBehavior:!0,children:(0,l.jsx)(v.s,{underline:"hover",sx:{color:"text.primary",fontSize:24,position:"relative"},children:(0,l.jsx)("span",{style:{position:"absolute",top:"-100px"}})})}),i.displayName]})},A=t(41033);let T="#0000cc",O="#800080",B={color:T,textDecoration:"underline",cursor:"pointer","&:hover":{color:O},"&:visited":{color:O}},V={color:"#888",flexShrink:0};var N=e=>{let{categories:n,articles:t}=e,i=(0,j.Z)(),o=(0,_.Z)(i.breakpoints.up("md")),r=(0,_.Z)(i.breakpoints.up("sm")),s=o?3:r?2:1,a=new Set(t.flatMap(e=>e.categories)),d=new Set(t.flatMap(e=>e.category_sections)),u=new Set(t.flatMap(e=>{var n;return null!==(n=e.category_subsections)&&void 0!==n?n:[]})),p=n.filter(e=>
1a.has(e._id)).sort((e,n)=>{var t,i;return(null!==(t=e.displayName)&&void 0!==t?t:"").localeCompare(null!==(i=n.displayName)&&void 0!==i?i:"")}),[h,f]=(0,x.useState)(!0),[g,m]=(0,x.useState)(()=>new Set(p.map(e=>e._id))),v=(0,x.useMemo)(()=>{let e=new Map;return t.forEach(n=>{var t;null===(t=n.categories)||void 0===t||t.forEach(n=>{var t;e.set(n,(null!==(t=e.get(n))&&void 0!==t?t:0)+1)})}),e},[t]),y=(0,x.useMemo)(()=>{let e=new Map;return t.forEach(n=>{var t;null===(t=n.category_sections)||void 0===t||t.forEach(n=>{var t;e.set(n,(null!==(t=e.get(n))&&void 0!==t?t:0)+1)})}),e},[t]),b=(0,x.useMemo)(()=>{let e=new Map;return t.forEach(n=>{var t;null===(t=n.category_subsections)||void 0===t||t.forEach(n=>{var t;e.set(n,(null!==(t=e.get(n))&&void 0!==t?t:0)+1)})}),e},[t]),w=e=>{m(n=>{let t=new Set(n);return t.has(e)?t.delete(e):t.add(e),t})},Z=()=>m(new Set),S=()=>m(new Set(p.map(e=>e._id)));return 0===p.length?null:(0,l.jsxs)(c.Z,{component:"nav",sx:{my:1,bgcolor:"#f6f2ee",border:"1px solid #ccc",p:1.5},children:[(0,l.jsxs)(c.Z,{sx:{display:"flex",alignItems:"baseline",borderBottom:"1px solid #aaa",pb:.5,mb:1},children:[(0,l.jsxs)(c.Z,{role:"button",tabIndex:0,"aria-expanded":h,"aria-controls":"toc-content",onClick:()=>f(!h),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),f(!h))},sx:{cursor:"pointer",userSelect:"none",fontSize:14,fontWeight:700,color:"#222",display:"flex",alignItems:"baseline",gap:.75},children:[(0,l.jsxs)(c.Z,{component:"span",sx:{fontFamily:"monospace",fontSize:12,color:T,fontWeight:400},children:["[",h?"-":"+","]"]}),"table of contents"]}),h&&(0,l.jsxs)(c.Z,{sx:{ml:"auto",display:"flex",gap:1,fontSize:11},children:[(0,l.jsx)(c.Z,{component:"span",role:"button",tabIndex:0,onClick:Z,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),Z())},sx:{...B,fontSize:11},children:"expand all"}),(0,l.jsx)(c.Z,{component:"span",sx:{color:"#999"},children:"|"}),(0,l.jsx)(c.Z,{component:"span",role:"button",tabIndex:0,onClick:S,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),S())},sx:{...B,fontSize:11},children:"collapse all"})]})]}),(0,l.jsx)(A.Z,{in:h,id:"toc-content",children:(0,l.jsx)(c.Z,{sx:{display:"flex",alignItems:"flex-start",gap:"16px"},children:Array.from({length:s},(e,n)=>{let t=Math.ceil(p.length/s),i=p.slice(n*t,(n+1)*t);return(0,l.jsx)(c.Z,{"data-testid":"toc-column",sx:{flex:1,minWidth:0},children:i.map(e=>{var n,t,i;let o=(null!==(n=e.sections)&&void 0!==n?n:[]).filter(e=>d.has(e._id)&&!e.hide).slice().sort((e,n)=>{var t,i;return(null!==(t=e.name)&&void 0!==t?t:"").localeCompare(null!==(i=n.name)&&void 0!==i?i:"")}
1),r=!g.has(e._id),s=null!==(t=v.get(e._id))&&void 0!==t?t:0;return(0,l.jsxs)(c.Z,{sx:{breakInside:"avoid",mb:.25,display:"flex",alignItems:"baseline",gap:.5},children:[o.length>0?(0,l.jsxs)(c.Z,{component:"span","data-testid":"toc-category-toggle-slot",role:"button",tabIndex:0,"aria-expanded":r,"aria-controls":"toc-cat-".concat(e._id),"aria-label":"Toggle ".concat(e.displayName," sections"),onClick:()=>w(e._id),onKeyDown:n=>{("Enter"===n.key||" "===n.key)&&(n.preventDefault(),w(e._id))},sx:{fontFamily:"monospace",fontSize:10,color:T,cursor:"pointer",userSelect:"none",flexShrink:0},children:["[",r?"-":"+","]"]}):(0,l.jsx)(c.Z,{component:"span","data-testid":"toc-category-toggle-slot","aria-hidden":"true",sx:{fontFamily:"monospace",fontSize:10,visibility:"hidden",flexShrink:0},children:"[+]"}),(0,l.jsxs)(c.Z,{sx:{flex:1,minWidth:0},children:[(0,l.jsxs)(c.Z,{sx:{display:"flex",alignItems:"baseline",gap:.5},children:[(0,l.jsx)(c.Z,{component:"a","data-testid":"toc-category-link",href:"#".concat(C()(null!==(i=e.slug)&&void 0!==i?i:"")),sx:{...B,fontWeight:700,fontSize:13,lineHeight:1.4},children:e.displayName}),(0,l.jsxs)(c.Z,{component:"span",sx:{...V,fontSize:11},children:["(",s,")"]})]}),o.length>0&&(0,l.jsx)(A.Z,{in:r,id:"toc-cat-".concat(e._id),children:(0,l.jsx)(c.Z,{component:"ul",sx:{listStyle:"none",m:0,p:0,pl:1.5},children:o.map(e=>{var n,t,i;let o=(null!==(n=e.subSections)&&void 0!==n?n:[]).filter(e=>{var n;return u.has(null!==(n=e._id)&&void 0!==n?n:"")&&!e.hide}).slice().sort((e,n)=>{var t,i;return(null!==(t=e.name)&&void 0!==t?t:"").localeCompare(null!==(i=n.name)&&void 0!==i?i:"")}),r=null!==(t=y.get(e._id))&&void 0!==t?t:0;return(0,l.jsxs)(c.Z,{component:"li",children:[(0,l.jsxs)(c.Z,{sx:{display:"flex",alignItems:"baseline",gap:.5},children:[(0,l.jsx)(c.Z,{component:"a","data-testid":"toc-section-link",href:"#".concat(C()(null!==(i=e.name)&&void 0!==i?i:"")),sx:{...B,fontSize:12,lineHeight:1.3,fontWeight:400},children:e.name}),(0,l.jsxs)(c.Z,{component:"span",sx:{...V,fontSize:10},children:["(",r,")"]})]}),o.length>0&&(0,l.jsx)(c.Z,{component:"ul",sx:{listStyle:"none",m:0,p:0,pl:1.5},children:o.map(e=>{var n,t,i;let o=null!==(t=b.get(null!==(n=e._id)&&void 0!==n?n:""))&&void 0!==t?t:0;return(0,l.jsx)(c.Z,{component:"li",children:(0,l.jsxs)(c.Z,{sx:{display:"flex",alignItems:"baseline",gap:.5},children:[(0,l.jsx)(c.Z,{component:"a","data-testid":"toc-subsection-link",href:"#".concat(C()(null!==(i=e.name)&&void 0!==i?i:"")),sx:{...B,fontSize:11,lineHeight:1.3},children:e.name}),(0,l.jsxs)(c.Z,{component:"span",sx:{...V,fontSize:10},children:["(",o,")"]})]})},e._id)})})]},e._id)})})})]})]},e._id)})},n)})})})]})},W=t(6189),q=t(38508),F=t(50548),H=t(39935),R=t(8593),$=t(21129),G=t(82729),Y=t(81548),K=t(2756);function Q(){let e=(0,G._)(["\n query GetTagInfo {\n getTagInfoSearch\n}\n "]);return Q=function(){return e},e}let U={},X=(0,Y.Ps)(Q());var J=t(25325),ee=t.n(J),en=t(11163),et=!0,ei=e=>{var n,t,i,o,v,y,j;let _=(0,en.useRouter)(),Z=_.query,S=Z.sort_by||f.Qoj.Alphabetic,k=Z.categoryId,I=Z.subsectionId,E=Z.sectionId,z=Z.publishedDateAfter,P=Z.publishedDateBefore,D=Z.filterByTag,L=Z.location,A=Z.vid_length,T=Z.q,O=null!==(t=Z.match_by)&&void 0!==t?t:"any",B=Z.filmedOnAfter,V=Z.filmedOnBefore,G=Z.authorId,Y=(0,g.fz)({page:1,sort_by:S||f.Qoj.Published,categoryId:k,sectionId:E,subsectionId:I,location:L,vid_length:A,publishedDateFrom:z,publishedDateTo:P,filterByTag:D,match_by:O,filmedOnFrom:B,filmedOnTo:V,authorId:G,cmeOnly:!!(0,m.qq)(Z.cmeOnly)||void 0,q:T}),{data:Q,loading:J}=(0,R.lb)({variables:{input:{...Y,perPage:1e3}}}),{data:et}=(0,$.Ei)(),{data:ei}=function(e){let n={...U};return K.a(X,n)}(),[eo,el]=(0,x.useState)(!1),[er,es]=(0,x.useState)(84),[ea,ec]=(0,x.useState)(0),ed=null==Q?void 0:Q.getIndexPageData,eu=null!==(i=null==et?void 0:et.categories)&&void 0!==i?i:[],ep=null!==(o=null==ei?void 0:ei.getTagInfoSearch)&&void 0!==o?o:[],eh=(null!==(v=null==ed?void 0:ed.totalArticles)&&void 0!==v?v:0)>1?"articles":"article",ex=null!==(y=null==Q?void 0:null===(n=Q.getIndexPageData)||void 0===n?void 0:n.articles)&&void 0!==y?y:[],ef=()=>{let e=document.getElementById("toc");if(!e)return;e.scrollIntoView({block:"start"});let n=document.querySelector("header"),t=n?n.getBoundingClientRect().height:er,i=window.innerWidth<900?8
10:16;window.scrollBy(0,-(t+i))};return(0,x.useLayoutEffect)(()=>{let e=()=>{let e=document.querySelector("header");if(e){let n=e.offsetHeight;es(n),ec(n)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,x.useEffect)(()=>{let e=()=>{window.scrollY>=50?el(!0):el(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,x.useEffect)(()=>{if(_.asPath.includes("#")){let e=_.asPath.split("#")[1],n=document.getElementById(C()(decodeURIComponent(e)));n&&setTimeout(()=>{n.scrollIntoView({behavior:"instant"})},500)}},[_.asPath]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(h.Z,{enableGutters:!1,children:(0,l.jsxs)(r.Z,{theme:H.uH,children:[(0,l.jsx)(s.ZP,{sx:{position:"sticky",top:eo?er-2:ea,zIndex:999,left:0,right:0,width:"100%",transition:"top 0.2s ease-out"},children:(0,l.jsx)(s.ZP,{item:!0,xs:12,display:{xs:"block",md:"none"},bgcolor:"black",children:(0,l.jsx)(a.Z,{direction:"row",justifyContent:"flex-end",alignItems:"center",py:2,px:{xs:1},children:(0,l.jsx)(F.Z,{tags:ep,categories:eu,categoryHeader:"Sections",theme:H.on,useShallowRouting:!0})})})}),(0,l.jsxs)(s.ZP,{container:!0,columnSpacing:2,direction:"row-reverse",children:[(0,l.jsx)(s.ZP,{item:!0,xs:12,md:9,children:(0,l.jsxs)(c.Z,{bgcolor:"white",px:4,py:4,borderRadius:{xs:0,md:2},children:[(0,l.jsxs)(a.Z,{direction:{md:"row"},alignItems:{xs:"flex-start",md:"center"},justifyContent:"space-between",spacing:2,children:[(0,l.jsx)(d.Z,{variant:"h4",component:"h1",children:"Article Index"}),(0,l.jsxs)(d.Z,{variant:"body2",fontFamily:"Manrope, sans-serif",children:["Showing: ",null==ed?void 0:ed.totalArticles," ",eh]})]}),(0,l.jsx)(W.Z,{categories:eu,shallow:!0}),(0,l.jsx)(c.Z,{id:"toc",sx:{scrollMarginTop:{xs:"".concat(er+80,"px"),md:"".concat(er+16,"px")}},children:(0,l.jsx)(N,{categories:null!==(j=null==ed?void 0:ed.categories)&&void 0!==j?j:[],articles:ex})}),J&&(0,l.jsx)(u.Z,{severity:"info",sx:{my:2},children:(0,l.jsx)(d.Z,{variant:"caption",children:"Loading..."})}),null==ed?void 0:ed.categories.filter(e=>ex.flatMap(e=>e.categories).includes(e._id)).map((e,n)=>{var t;let i=ex.filter(n=>{var t,i,o,l,r,s,a,c;if(null===(t=n.categories)||void 0===t?void 0:t.includes(e._id)){if((null!==(r=null===(i=n.category_sections)||void 0===i?void 0:i.length)&&void 0!==r?r:0)===0&&(null!==(s=null===(o=n.category_subsections)||void 0===o?void 0:o.length)&&void 0!==s?s:0)===0)return!0;if(null===(l=n.category_sections)||void 0===l?void 0:l.length){let t=null!==(c=null===(a=e.sections)||void 0===a?void 0:a.map(e=>e._id))&&void 0!==c?c:[];if(!(ee()(n.category_sections,t).length>0))return!0}}return!1});return(0,l.jsxs)(c.Z,{children:[(0,l.jsxs)(c.Z,{mt:0==n?1:2,sx:{display:"grid",gridTemplateColumns:"28px 1fr 28px",alignItems:"center",columnGap:1},children:[(0,l.jsx)(c.Z,{"aria-hidden":!0}),(0,l.jsx)(M,{category:e}),(0,l.jsx)(c.Z,{component:"button","data-testid":"toc-scroll-button",onClick:ef,"aria-label":"Scroll to table of contents",sx:{width:28,height:28,display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"text.primary",bgcolor:"transparent",border:"none",borderRadius:1,p:0,m:0,flexShrink:0,transition:"color 0.2s ease, background-color 0.2s ease","& svg":{transition:"transform 0.2s ease",display:"block"},"&:hover":{color:"#e45252"},"&:hover svg":{transform:"translateY(-1px)"},"&:focus-visible":{outline:"2px solid #e45252",outlineOffset:"2px",color:"#e45252"}},children:(0,l.jsx)(c.Z,{component:"svg",viewBox:"0 0 12 12",sx:{width:14,height:14,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"},children:(0,l.jsx)("path",{d:"M6 10 V 2 M3 5 L 6 2 L 9 5"})})})]}),(0,l.jsx)(p.Z,{sx:{backgroundColor:"#e45252",mb:1}}),!!e.description&&(0,l.jsx)(d.Z,{variant:"body2",children:e.description}),!!e.isScore&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Z,{color:"grey.300",fontSize:"0.875rem",mt:1,children:"score = part of SCORE curriculum for general surgery"}),(0,l.jsx)(p.Z,{sx:{backgroundColor:"grey.50"}})]}),(0,l.jsx)(c.Z,{mt:1,children:(0,l.jsx)(b,{articles:i})}),(null!==(t=e.sections)&&void 0!==t?t:[]).filter(e=>ex.flatMap(e=>e.category_sections).includes(e._id)&&!e.hide).map((e,n)=>{var t,i;let o=ex.filter(n=>{var t,i,o,l,r;let s=n.category_sections;if(null==s?void 0:s.includes(null!==(t=e._id)&&void 0!==t?t:"")){if((null!==(o=null===(i=n.category_subsections)||void 0===i?void 0:i.length)&&void 0!==o?o:0)===0)return!0;{let t=null!==(r=null===(l=e.subSections)||void 0===l?void 0:l.map(e=>e._id))&&void 0!==r?r:[];if(!(ee()(n.category_subsections,t).length>0))return!0}}return!1}),r=0==n&&(null==o?void 0:o.length)==0;return(0,l.jsxs)(c.Z,{children:[(0,l.jsxs)(d.Z,{variant:"h4",component:"h3",fontStyle:"italic",fontWeight:600,fontSize:18,sx:{mt:r?0:2,mb:.5,position:"relative"},children:[e.name,(0,l.jsx)("span",{id:C()(null!==(t=e.name)&&void 0!==t?t:""),style:{position:"absolute",top:"-100px"}})]}),(0,l.jsx)(b,{articles:o}),(null!==(i=e.subSections)&&void 0!==i?i:[]).filter(e=>ex.filter(n=>{var t;let i=n.category_subsections;return null==i?void 0:i.includes(null!==(t=e._id)&&void 0!==t?t:"")}).length>0&&!e.hide).map((e,n)=>{var t;let i=ex.filter(n=>{var t;let i=n.category_subsections;return null==i?void 0:i.includes(null!==(t=e._id)&&void 0!==t?t:"")}),o=0==n&&0==i.length;return(0,l.jsxs)(c.Z,{children:[(0,l.jsxs)(d.Z,{variant:"body1",component:"h4",fontSize:16,mt:o?0:2,sx:{position:"relative"},children:[e.name,(0,l.jsx)("span",{id:C()(null!==(t=e.name)&&void 0!==t?t:""),style:{position:"absolute",top:"-100px"}})]}),(0,l.jsx)(b,{articles:i})]},e.name)})]},e.name)})]},e._id)})]})}),(0,l.jsx)(s.ZP,{item:!0,xs:12,md:3,p:0,display:{xs:"none",md:"block"},children:(0,l.jsx)(q.Z,{tags:ep,categories:eu,hideAuthors:!1,theme:H.on,categoryHeader:"Sections",defaultSort:f.Qoj.Alphabetic,shallow:!0})})]}),(0,l.jsx)(w,{})]})})})}}},function(e){e.O(0,[2189,966,5920,288,1302,2888,9774,179],function(){return e(e.s=83022)}),_N_E=e.O()}]);
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.