티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[17,3201,6315,9389,16902,19667,28773,28970,31146,37415,38074,45338,48727,50531,57293,57431,58281,60229,64492,65404,73369,73560,73575,76413,76512,77224,83846,85243,90920,91472],{1868:(e,t,n)=>{n.d(t,{c9:()=>b,_$:()=>x,iU:()=>y,tV:()=>f});var i=n(74848),a=n(21373),r=n(84268),s=n(10095),l=n(38621),o=n(29731),c=n(30459),d=n(96540),u=n(43258),h=n(96379);let m=async(e,t,n)=>{try{return(await (0,h.DI)(e,{method:t,body:n})).ok}catch{return!1}},p=e=>{let t=new FormData;return t.append(“feature”,e),t};function f(e){let{alreadyRequested:t=!1,dismissed:n=!1,dismissedAt:i=””,featureName:a=””,requestPath:r=””}=e??{},[s,l]=(0,d.useState)(!1),[o,c]=(0,d.useState)(t),{addToast:h}=(0,u.Y6)(),f=async()=>{l(!0),await (o?(e,t)=>m(e,”DELETE”,p(t)):(e,t)=>m(e,”POST”,p(t)))(r,a)?c(!o):h({type:”error”,message:”Something went wrong. Please try again later.”}),l(!1)};return{inProgress:s,requested:o,dismissed:n,dismissedAt:i,toggleFeatureRequest:f}}function x({featureRequestInfo:e,learnMorePath:t,requestMessage:n,requestedMessage:a}){let{inProgress:r,requested:s,toggleFeatureRequest:l}=f(e);return e.showFeatureRequest?s?(0,i.jsx)(b,{inProgress:r,toggleFeatureRequest:l,requestedMessage:a}):(0,i.jsx)(y,{inProgress:r,toggleFeatureRequest:l,isEnterpriseRequest:e.isEnterpriseRequest,featureName:e.featureName,billingEntityId:e.billingEntityId,learnMorePath:t,requestMessage:n}):null}let y=({inProgress:e,toggleFeatureRequest:t,billingEntityId:n=””,isEnterpriseRequest:a=!1,featureName:r,learnMorePath:s,requestMessage:l})=>{let{sendClickAnalyticsEvent:o}=(0,c.S)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g,{onClick:()=>{t();let e=a&&n?`ref_cta:ask_enterprise_owners_for_access;ref_loc:${r};enterprise_id:${n};`:`ref_cta:ask_admin_for_access;ref_loc:${r};`;o({category:”member_feature_request”,action:`action.${r}`,label:e})},inProgress:e,isEnterpriseRequest:a}),l&&(0,i.jsx)(N,{message:l}),s&&(0,i.jsx)(j,{onClick:()=>{o({category:”suggestion”,action:”click_to_read_docs”,label:`ref_cta:learn_more;ref_loc:${r};`})},path:s})]})},b=({inProgress:e,toggleFeatureRequest:t,requestedMessage:n})=>(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(v,{message:n}),(0,i.jsx)(w,{onClick:t,inProgress:e})]}),g=({onClick:e,inProgress:t,isEnterpriseRequest:n})=>(0,i.jsx)(a.Q,{onClick:e,variant:”primary”,disabled:t,…(0,o.G)(“feature-request-request-button”),children:t?”Requesting…”:n?”Ask enterprise owners for access”:”Ask admin for access”}),j=({onClick:e,path:t})=>(0,i.jsx)(r.A,{href:t,onClick:e,…(0,o.G)(“feature-request-learn-more-link”),children:”Learn more”}),N=({message:e})=>(0,i.jsx)(“span”,{children:e}),v=({message:e})=>(0,i.jsxs)(“span”,{className:”d-inline-block color-fg-subtle mr-1″,children:[(0,i.jsx)(s.A,{icon:l.CheckIcon}),e]}),w=({onClick:e,inProgress:t})=>(0,i.jsx)(r.A,{className:”color-fg-danger text-semibold”,as:”button”,onClick:e,disabled:t,…(0,o.G)(“feature-request-cancel-link”),children:t?”Cancelling…”:”Remove request”});try{x.displayName||(x.displayName=”FeatureRequest”)}catch{}try{y.displayName||(y.displayName=”RequestFeature”)}catch{}try{b.displayName||(b.displayName=”CancelFeatureRequest”)}catch{}try{g.displayName||(g.displayName=”RequestCTA”)}catch{}try{j.displayName||(j.displayName=”LearnMore”)}catch{}try{N.displayName||(N.displayName=”RequestMessage”)}catch{}try{v.displayName||(v.displayName=”RequestedMessage”)}catch{}try{w.displayName||(w.displayName=”RemoveRequestCTA”)}catch{}},4788:(e,t,n)=>{n.d(t,{N:()=>DebouncedWorkerManager});var i=n(35750),a=n(18150),r=n(85242),s=n(88243),l=n(16213),o=n(50467),c=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,m=new WeakMap,p=new WeakMap,f=new WeakSet;let DebouncedWorkerManager=class DebouncedWorkerManager{post(e){if((0,i._)(this,p)&&(0,i._)(this,p).call(this,e))return(0,i._)(this,u)&&clearTimeout((0,i._)(this,u)),(0,s._)(this,f,x).call(this,e);this.idle()?((0,i._)(this,u)&&clearTimeout((0,i._)(this,u)),(0,r._)(this,u,setTimeout(()=>{(0,s._)(this,f,x).call(this,e)},(0,i._)(this,m)))):(0,r._)(this,d,e)}idle(){return!(0,i._)(this,c)}terminate(){(0,i._)(this,h).terminate()}constructor(e,t=200,n){(0,l._)(this,f),(0,a._)(this,c,{writable:!0,value:void 0}),(0,a._)(this,d,{writable:!0,value:void 0}),(0,o._)(this,”onResponse”,void 0),(0,a._)(this,u,{writable:!0,value:void 0}),(0,a._)(this,h,{writable:!0,value:void 0}),(0,a._)(this,m,{writable:!0,value:void 0}),(0,a._)(this,p,{writable:!0,value:void 0}),(0,r._)(this,h,e),(0,r._)(this,m,t),(0,r._)(this,p,n),(0,i._)(this,h).onmessage=({data:e})=>{this.onResponse&&this.onResponse(e),(0,i._)(this,d)?((0,s._)(this,f,x).call(this,(0,i._)(this,d)),(0,r._)(this,d,void 0)):(0,r._)(this,c,void 0)}}};function x(e){(0,r._)(this,c,e),(0,i._)(this,h).postMessage(e)}},5723:(e,t,n)=>{n.d(t,{T:()=>h});var i=n(74848),a=n(61526),r=n(71315),s=n(43258),l=n(96379),o=n(38621),c=n(21373),d=n(84268),u=n(10095);function h({binary:e,helpUrl:t,webCommitInfo:n}){let{shouldFork:h,lockedOnMigration:m,shouldUpdate:p,userOverRepositoryLimit:f}=n,x=r.fV.pathname;x.endsWith(“/”)&&(x=x.slice(0,-1));let y=(0,a.Zp)(),{addToast:b}=(0,s.Y6)(),g=x+r.fV.search,j=async e=>{e.preventDefault();try{(await (0,l.DI)(g,{method:”POST”,headers:{Accept:”application/json”}})).ok?y(g):b({type:”error”,message:”An unexpected error occurred. Please try again.”})}catch{b({type:”error”,message:”An unexpected error occurred. Please try again.”})}},N=m?{message:”This repository is currently being migrated.”,description:”Sorry, you\u2019re not able to edit this repository while the migration is in progress.”,icon:o.LockIcon}:h?f?{message:”You are over your repository limit”,description:”Sorry, you\u2019re not able to fork this repository.”,icon:o.AlertIcon}:{message:”You need to fork this repository to propose changes.”,description:”Sorry, you\u2019re not able to edit this repository directly\u2014you need to fork it and propose your changes from there instead.”,icon:o.GitBranchIcon}:p?{message:”Sorry, it looks like your fork is outdated!”,description:”You\u2019ll have to bring it up to date before you can propose changes.”,icon:o.AlertIcon}:e?{message:”Binary file content is not editable.”,description:”But you can still rename or move it.”,icon:o.PencilIcon}:null;return N?(0,i.jsxs)(“div”,{className:”EditIssues-module__Box–eK5kJ”,children:[(0,i.jsx)(u.A,{icon:N.icon,size:”medium”,className:”EditIssues-module__Octicon–FVf44″}),(0,i.jsx)(“h3″,{className:”EditIssues-module__Text–gil9m”,children:N.message}),(0,i.jsx)(“span”,{className:”EditIssues-module__Text_1–mK4xp”,children:N.description}),(h&&!f||p)&&(0,i.jsx)(“form”,{onSubmit:j,”data-turbo”:”false”,method:”post”,action:g,”data-testid”:”edit-issues-form”,children:(0,i.jsx)(c.Q,{type:”submit”,variant:”primary”,children:h?”Fork this repository”:”Update your fork”})}),h&&f?(0,i.jsx)(d.A,{href:`${t}/repositories/creating-and-managing-repositories/repository-limits`,children:”Learn more repository limits”}):(0,i.jsx)(d.A,{href:`${t}/articles/fork-a-repo`,children:”Learn more about forks”})]}):null}try{h.displayName||(h.displayName=”EditIssues”)}catch{}},8934:(e,t,n)=>{n.d(t,{x:()=>o});var i=n(74848),a=n(16522),r=n(13523),s=n(96540),l=n(54571);let o=(0,s.forwardRef)(function(e,t){let n,s,o,d,u,h,m=(0,a.c)(13);m[0]!==e?({children:n,src:o,…s}=e,m[0]=e,m[1]=n,m[2]=s,m[3]=o):(n=m[1],s=m[2],o=m[3]),m[4]===Symbol.for(“react.memo_cache_sentinel”)?(d=[],m[4]=d):d=m[4];let[p]=(0,l.I)(c,!0,d);return m[5]!==p||m[6]!==o?(u=p?{}:{src:o,”data-nonce”:(0,r.M1)()},m[5]=p,m[6]=o,m[7]=u):u=m[7],m[8]!==n||m[9]!==s||m[10]!==t||m[11]!==u?(h=(0,i.jsx)(“include-fragment”,{…s,ref:t,…u,children:n}),m[8]=n,m[9]=s,m[10]=t,m[11]=u,m[12]=h):h=m[12],h});try{o.displayName||(o.displayName=”IncludeFragment”)}catch{}function c(){return!1}},10242:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(74848),a=n(84268);let r=({feedbackUrl:e})=>(0,i.jsx)(a.A,{className:”FeedbackLink-module__link–Ga4DP”,href:e,inline:!0,children:”Give feedback”});try{r.displayName||(r.displayName=”FeedbackLink”)}catch{}},14195:(e,t,n)=>{n.d(t,{KY:()=>h,Kv:()=>u,Op:()=>CodeNavigationInfo});var i=n(50467),a=n(25407),r=n(96379),s=n(89136),l=n(89024),o=n(15459);let CodeNavigationInfo=class CodeNavigationInfo{initCodeSections(){let e=new Map,t=new Map;for(let n=0;n{let t=this.blobLines[e.ident_utf16.start.line_number]||””,n=(0,o.N_)(e,t,{stylingDirectives:this.stylingDirectives,repo:this.repo,refInfo:this.refInfo,path:this.path});return this.lineIndexedSymbols[n.lineNumber]=n,n})}getBlobLine(e){return this.blobLines[e]||””}getSymbolOnLine(e){return this.lineIndexedSymbols[e]}initSymbolTree(){if(this.symbols){let e=[],t=this.symbols.filter(e=>”field”!==e.kind.fullName).map(t=>{let n=0;for(let r=e.length-1;r>=0;r–){var i,a;if(i=t,a=e[r],i.extent.start.line===a.extent.end.line?i.extent.start.column>=a.extent.end.column:i.extent.start.line>=a.extent.end.line)e.pop();else{n=e.length;break}}return e.push(t),t.setSymbolDepth(n),{symbol:t,depth:n}});this.symbolTree=[];for(let e=0;en.depth){let i=function e(t,n){let i=[],a=t[n];for(let r=n+1;ra.depth){let a=e(t,r);r+=d(a),i.push({symbol:n.symbol,children:a,isParent:a.length>0})}else break}return i}(t,e);e+=d(i),this.symbolTree.push({symbol:n.symbol,isParent:!0,children:i});continue}this.symbolTree.push({symbol:n.symbol,isParent:!1,children:[]})}}}createReferences(e){return e.map(e=>{let t=new s.BW({ident:e,repo:this.repo,refInfo:this.refInfo,path:this.path,isPlain:this.isPlain,source:s.u.BLOB_CONTENT});return t.setSnippet(void 0,this.stylingDirectives?.[e.start.line],this.blobLines[e.start.line],void 0),t})}getReferencesToSymbol(e){let t=u(this.blobLines,(0,l.ah)(e));return this.createReferences(t)}getReferencesToSearch(e){let t=u(this.blobLines,(0,l.tz)(e));return this.createReferences(t)}getDefinitionsAndReferences(e,t,n){this.setLoading(!0);let i=(async()=>{let i=this.getSymbolOnLine(t+1);if(i&&i.name===e)return{definitions:[i],backend:”search”};let[a,r]=await this.getAlephDefinitions(e,t,n,this.loggedIn);if(“search”===r){let t=this.getLocalDefinitions(e);t.length>0&&(a=t);let n=a.find(e=>e.path===this.path&&e.repo===this.repo);n&&(a=[n]),r=”search”}else{let t=this.getLocalDefinitions(e,!0);for(let n of a)””===n.kind.fullName&&n.name===e&&(n.kind=t[0]?t[0].kind:new s.v0({kind:””}))}return{definitions:a,backend:r}})(),a=(async()=>{let{definitions:t}=await i,n=t.map(e=>e.lineNumber);return{references:this.getReferencesToSymbol(e).filter(e=>!n.includes(e.lineNumber)),backend:”search”}})(),r=(async()=>{let a=”SYMBOL_KIND_UNKNOWN”,r=this.getSymbolOnLine(t+1);if(r)a=r.kind.enumStringVal;else{let{definitions:e}=await i;a=e[0]?.kind?.enumStringVal||a}return this.getAlephReferences(e,t,n,this.loggedIn,a)})();return{definitions:i,localReferences:a,crossReferences:(async()=>{let[e,t]=await r;return{references:e,backend:t}})(),setLoading:this.setLoading}}getLocalDefinitions(e,t=!1){let n=9,i=[];for(let a of this.symbols)a.name===e&&(a.kind.ranke).map(t=>(0,o.zs)(t,{stylingDirectives:this.stylingDirectives,repo:this.repo,refInfo:this.refInfo,path:this.path,symbol:e,backend:d})),d]}async getAlephReferences(e,t,n,i,s){let l,d=”search”;if(“”===e&&-1===t&&-1===n||!i)return[[],d];let u=(0,a.lkl)({repo:this.repo,type:”references”,q:e,language:this.language,row:t,column:n,ref:this.refInfo.name,path:this.path,codeNavContext:”BLOB_VIEW”,symbolKind:s}),h=await (0,r.lS)(u);if(!h.ok)return[[],d];try{l=await h.json()}catch{return[[],d]}d=c(l.backend)??”search”;let m=new Set;return[l.payload.flatMap(e=>e).reduce((e,t)=>{var n;if(t.path===this.path)return e;let i=(0,o.QV)(t,{stylingDirectives:this.stylingDirectives,repo:this.repo,refInfo:this.refInfo,path:this.path,backend:d});return n=i.lineNumber,m.has(n)||(m.add(n),0)||e.push(i),e},[]).sort((e,t)=>e.lineNumber-t.lineNumber),d]}constructor(e,t,n,a,r,s,l,o,c,d){(0,i._)(this,”repo”,void 0),(0,i._)(this,”refInfo”,void 0),(0,i._)(this,”language”,void 0),(0,i._)(this,”path”,void 0),(0,i._)(this,”loggedIn”,void 0),(0,i._)(this,”blobLines”,void 0),(0,i._)(this,”symbols”,void 0),(0,i._)(this,”lineIndexedSymbols”,{}),(0,i._)(this,”isPlain”,void 0),(0,i._)(this,”stylingDirectives”,void 0),(0,i._)(this,”setLoading”,void 0),this.setLoading=d,this.setLoading(!0),this.repo=e,this.refInfo=t,this.path=n,this.loggedIn=a,this.language=o,this.blobLines=r,this.stylingDirectives=l,this.isPlain=c,this.symbols=this.initSymbols(s),this.initSymbolTree(),this.initCodeSections(),this.setLoading(!1)}};function c(e){switch(e){case”ALEPH_PRECISE”:case”ALEPH_PRECISE_PREVIEW”:case”ALEPH_PRECISE_DEVELOPMENT”:return”precise”;case”BLACKBIRD”:return”search”;default:return null}}function d(e){let t=e.length;for(let n=0;n=200,a={},r=e.reduce((e,i)=>{if(a[i.ident.start.line])return e;a[i.ident.start.line]=!0;let r=(0,l.lA)(n,[t[i.ident.start.line]]),s=r.next();for(;!s.done&&e.length<200;){let{column:t,columnEnd:n}=s.value;e.push({start:{line:i.ident.start.line,column:t},end:{line:i.ident.start.line,column:n}}),s=r.next()}return e},[]);if(r.length<200&&i){let i=e[e.length-1].ident.start.line,a=(0,l.lA)(n,t,i),s=a.next();for(;!s.done&&r.length<200;){let{line:e,column:t,columnEnd:n}=s.value;r.push({start:{line:e,column:t},end:{line:e,column:n}}),s=a.next()}}return r}},14343:(e,t,n)=>{n.d(t,{d:()=>i});function i(e,t,n){return[…function*(e,t){for(let n of e){let e=t(n);null!=e&&(yield e)}}(e,e=>{let n=t(e);return null!=n?[e,n]:null})].sort((e,t)=>n(e[1],t[1])).map(([e])=>e)}},15459:(e,t,n)=>{n.d(t,{N_:()=>a,QV:()=>s,zs:()=>r});var i=n(89136);function a(e,t,{stylingDirectives:n,repo:a,refInfo:r,path:s}){let{extent_utf16:l,ident_utf16:o}=e,c=new i.AP({kind:e.kind,fullyQualifiedName:e.fully_qualified_name,name:e.name,extent:{start:{line:l.start.line_number,column:l.start.utf16_col},end:{line:l.end.line_number,column:l.end.utf16_col}},ident:{start:{line:o.start.line_number,column:o.start.utf16_col},end:{line:o.end.line_number,column:o.end.utf16_col}},source:i.u.BLACKBIRD_ANALYSIS});return c.setSnippet(void 0,n?.[o.start.line_number],t,void 0),c.setFileInfo(a,r,s),c}function r(e,{symbol:t,refInfo:n,repo:a,path:r,backend:s}){let l=e.ident?.start?.character,o=e.ident?.end?.character??e.ident?.start?.character,c={start:{line:e.ident.start.line,column:l?l-e.leadingWhitespace:0},end:{line:e.ident?.end?.line??e.ident.start.line,column:o?o-e.leadingWhitespace:0}},d=e.extent?.start?.character,u=e.extent?.end?.character??e.extent?.start?.character,h={start:{line:e.extent.start.line,column:d||0},end:{line:e.extent.end?.line??e.extent.start.line,column:u||0}},m=new i.AP({ident:c,extent:h,kind:e.symbolKind,name:t,fullyQualifiedName:t,source:”search”===s?i.u.BLACKBIRD_SEARCH:i.u.ALEPH_PRECISE});if(e.local)m.setFileInfo(a,n,r);else if(e.commitOid&&e.path){let t=n;e.commitOid!==n.currentOid&&(t={name:””,listCacheKey:e.commitOid,currentOid:e.commitOid,canEdit:!1}),m.setFileInfo(e.repo??a,t,e.path)}let p=Array(e.leadingWhitespace).fill(” “).join(“”)+(e.firstLine||””);return m.setSnippet(e.highlightedText,void 0,p,e.leadingWhitespace),m}function s(e,{refInfo:t,path:n,repo:a,backend:r}){let s=t,l=n;!e.local&&e.commitOid&&e.path&&(s=t,l=e.path,e.commitOid!==t.currentOid&&(s={name:””,listCacheKey:e.commitOid,currentOid:e.commitOid,canEdit:!1}));let o=e.ident.start.character,c=e.ident.end?.character,d=new i.BW({repo:a,refInfo:s,path:l,ident:{start:{line:e.ident.start.line,column:o?o-e.leadingWhitespace:0},end:{line:e.ident.end?.line||e.ident.start.line,column:c?c-e.leadingWhitespace:0}},source:”search”===r?i.u.BLACKBIRD_SEARCH:i.u.ALEPH_PRECISE}),u=Array(e.leadingWhitespace).fill(” “).join(“”)+(e.firstLine||””);return d.setSnippet(e.highlightedText,void 0,u,e.leadingWhitespace),d}},17363:(e,t,n)=>{n.d(t,{KY:()=>a.KY,Kv:()=>a.Kv,Op:()=>a.Op,tz:()=>r.tz,v0:()=>i.v0});var i=n(89136),a=n(14195),r=n(89024);n(15459)},19826:(e,t,n)=>{var i=n(70103),a=n(1723),r=n(96633),s=n(23989);(0,a.o)(“react-code-view”,()=>({App:r.q,routes:[(0,i.a)({path:”/:owner/:repo/tree/:branch/:path/*”,Component:s.R,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/blob/:branch/:path/*”,Component:s.R,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/blame/:branch/:path/*”,Component:s.R,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/edit/:branch/:path/*”,Component:s.R,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/new/:branch/:path/*”,Component:s.R,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/new/:branch/*”,Component:s.R,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/tree/delete/:branch/:path/*”,Component:s.R,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/delete/:branch/:path/*”,Component:s.R,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo”,Component:s.R,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/tree/:branch/*”,Component:s.R,shouldNavigateOnError:!0})]}))},22128:(e,t,n)=>{n.d(t,{f:()=>s,g:()=>r});var i=n(96540);let a=”react_blob_view_scroll_line_into_view”;function r(e){let t=(0,i.useRef)(e);(0,i.useEffect)(()=>{t.current=e},[e]),(0,i.useEffect)(()=>{let e=e=>t.current(e.detail);return window.addEventListener(a,e),()=>{window.removeEventListener(a,e)}},[])}function s(e){window.dispatchEvent(new CustomEvent(a,{detail:e}))}},22198:(e,t,n)=>{n.d(t,{r:()=>r});var i=n(74848),a=n(72511);function r({forkName:e,forkOwner:t}){return(0,i.jsxs)(a.A,{“aria-live”:”polite”,className:”EditingForkBanner-module__Flash–pv06I”,children:[“You\u2019re making changes in a project you don\u2019t have write access to. Submitting a change will write it to a new branch in your fork “,(0,i.jsx)(“b”,{children:`${t}/${e}`}),”, so you can send a pull request.”]})}try{r.displayName||(r.displayName=”EditingForkBanner”)}catch{}},23189:(e,t,n)=>{n.d(t,{a:()=>r,t:()=>s});var i=n(74848),a=n(12683);let r=”find-result-marks-container”;function s(){return(0,i.jsx)(a.az,{sx:{position:”fixed”,top:0,right:0,height:”100%”,width:”15px”,transition:”transform 0.3s”,”&:hover”:{transform:”scaleX(1.5)”},zIndex:1},id:r})}try{s.displayName||(s.displayName=”ScrollMarksContainer”)}catch{}},23989:(e,t,n)=>{n.d(t,{x:()=>aY,R:()=>aG});var i=n(74848),a=n(79739),r=n(12748),s=n(64375),l=n(26619),o=n(31078),c=n(53552),d=n(46209),u=n(80780),h=n(50731),m=n(13364),p=n(19189),f=n(17038),x=n(41617),y=n(78314),b=n(53627),g=n(17182),j=n(39467),N=n(64830),v=n(96540),w=n(86131),_=n(70843),k=n(87555),S=n(12683),C=n(70170),I=n(37272),T=n(6665),L=n(14343),B=n(84331),A=n(38621),D=n(10095),O=n(73943),E=n(60569);function R({symbolKind:e,showFullSymbol:t}){return e?(0,i.jsxs)(S.az,{sx:{display:”flex”,flexDirection:”row”,position:”relative”,…t?{}:{mr:2}},children:[(0,i.jsx)(S.az,{sx:{backgroundColor:e.plColor,opacity:.1,position:”absolute”,borderRadius:5,alignItems:”stretch”,display:”flex”,width:”100%”,height:”100%”}}),(0,i.jsx)(S.az,{sx:{color:e.plColor,borderRadius:5,fontWeight:600,…t?{fontSize:”small”,px:2,py:”1px”,mt:”2px”}:{fontSize:”smaller”,px:1,py:”1px”}},children:t?e.fullName:e.shortName})]}):null}try{R.displayName||(R.displayName=”SymbolIndicator”)}catch{}let F=v.memo(function({treeSymbols:e,onTreeSymbolSelect:t}){let n=!e.some(e=>e.isParent||e.children.length>0);return(0,i.jsx)(S.az,{id:”filter-results”,sx:{mb:-2,overflowY:”auto”,maxHeight:”calc(100vh – 237px)”,pl:3,pb:2,pt:1},children:(0,i.jsx)(E.G,{“aria-label”:”Code Navigation”,flat:n,children:e.map((e,n)=>(0,i.jsx)(P,{id:`${n}${e.symbol.name}`,symbol:e,depth:e.isParent?1:2,onSelect:t},`${n}${e.symbol.name}`))})})});function z({symbol:e}){return(0,i.jsxs)(S.az,{sx:{display:”flex”},children:[(0,i.jsx)(R,{symbolKind:e.symbol.kind}),” “,(0,i.jsx)(S.PA,{title:e.symbol.name,sx:{maxWidth:180,display:”block”},children:(0,i.jsx)(“span”,{children:e.symbol.name})})]})}function P({symbol:e,depth:t,onSelect:n,id:a}){let[r,s]=(0,v.useState)(t<=7);return(0,i.jsxs)(E.G.Item,{onSelect:()=>n(e.symbol),expanded:r,onExpandedChange:()=>s(!r),id:a,children:[(0,i.jsx)(z,{symbol:e}),e.isParent&&e.children.length>0&&(0,i.jsx)(E.G.SubTree,{children:e.children.map((e,a)=>(0,i.jsx)(P,{symbol:e,depth:e.isParent?t+1:t,onSelect:n,id:`${a}${e.symbol.name}`},`${a}${e.symbol.name}`))})]})}try{F.displayName||(F.displayName=”CodeNavSymbolTree”)}catch{}try{z.displayName||(z.displayName=”CodeNavTreeContent”)}catch{}try{P.displayName||(P.displayName=”CodeNavTreeItem”)}catch{}var $=n(4559),M=n(97068),W=n(45800),H=n(38077);let U=v.memo(function({symbol:e,filterText:t,onSelect:n,focused:a,index:r}){return(0,i.jsx)(S.lF.Item,{role:”option”,id:`jump-to-item-${r}`,”aria-selected”:a,sx:{minWidth:0,…a?{backgroundColor:”var(–bgColor-muted, var(–color-canvas-subtle)) !important”}:{}},onSelect:()=>n(e),children:(0,i.jsx)(S.N_,{href:e.href(),sx:{“:hover”:{textDecoration:”none”}},children:(0,i.jsxs)(“div”,{style:{display:”flex”},children:[(0,i.jsx)(R,{symbolKind:e.kind}),” “,(0,i.jsx)(“div”,{style:{display:”flex”,minWidth:0,alignItems:”flex-end”},children:(0,i.jsx)(H.z,{search:t,text:e.name,overflowWidth:175,hideOverflow:!0},e.fullyQualifiedName)})]})})})});try{U.displayName||(U.displayName=”JumpToItem”)}catch{}function V(e){return(0,i.jsx)(K,{…e})}function K({codeSymbols:e,filterText:t,onSelect:n,focusedIndex:a}){let r=(0,v.useRef)(e.length),s=(0,v.useRef)(“”),{containerRef:l}=(0,W.G)({bindKeys:M.z0.ArrowVertical|M.z0.HomeAndEnd});return(0,v.useEffect)(()=>{e.length===r.current&&(s.current+=”\u200B”);let t=1===e.length?”symbol”:”symbols”;(0,$.i)(`${e.length} ${t} found${s.current}`),r.current=e.length},[e]),(0,i.jsx)(S.lF,{ref:l,role:”listbox”,id:”filter-results”,”aria-orientation”:”vertical”,sx:{maxHeight:”68vh”,overflowY:”auto”},children:e.map((e,r)=>{let{name:s,lineNumber:l}=e;return(0,i.jsx)(U,{symbol:e,filterText:t,onSelect:n,focused:r===a,index:r},`${s}_${l}`)})})}try{V.displayName||(V.displayName=”JumpToItemList”)}catch{}try{K.displayName||(K.displayName=”FullJumpToItemList”)}catch{}var G=n(25407),Y=n(84268);function q({filterText:e,isFindInFile:t}){let[n,a]=(0,v.useState)(t?”No matches found”:”No symbols found”),r=(0,y.t)(),s=(0,v.useRef)(!0);return(0,v.useEffect)(()=>{if(s.current){s.current=!1;return}a(`${n}\u200B`)},[e]),(0,i.jsxs)(S.az,{sx:{justifyContent:”center”,alignItems:”center”,display:”flex”,flexDirection:”column”,pb:2},children:[“”===e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.az,{sx:{bg:”canvas.subtle”,borderRadius:6,p:”16px”},children:(0,i.jsxs)(S.az,{sx:{textAlign:”center”},children:[(0,i.jsx)(S.DZ,{as:”h3″,sx:{fontSize:0,marginBottom:”4px”},children:”Symbol outline not available for this file”}),(0,i.jsx)(S.az,{sx:{justifyContent:”center”,alignItems:”center”,display:”flex”,fontSize:”12px”,color:”fg.muted”},children:”To inspect a symbol, try clicking on the symbol directly in the code view.”})]})}),(0,i.jsxs)(S.az,{sx:{mt:”8px”,fontSize:0,textAlign:”center”,color:”fg.muted”},children:[” “,”Code navigation supports a limited number of languages.”,” “,(0,i.jsx)(Y.A,{inline:!0,href:”https://docs.github.com/repositories/working-with-files/using-files/navigating-code-on-github”,children:”See which languages are supported.”})]})]}),e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D.A,{icon:A.SearchIcon,size:24}),(0,i.jsx)(S.EY,{as:”h3″,sx:{textAlign:”center”,fontWeight:600,fontSize:3,py:2},role:”alert”,”aria-relevant”:”all”,children:n})]}),e&&(0,i.jsxs)(S.EY,{id:”filter-zero-state”,sx:{textAlign:”center”,px:3,mt:2,fontSize:0,color:”fg.subtle”},children:[“No lines in this file contain that string.”,(0,i.jsx)(“br”,{}),”Search in”,” “,(0,i.jsxs)(Y.A,{href:(0,G.Y8Y)({owner:r.ownerLogin,repo:r.name,searchTerm:e}),inline:!0,children:[r.ownerLogin,”/”,r.name]}),” “,”or”,” “,(0,i.jsx)(Y.A,{href:(0,G.GGt)({searchTerm:e}),inline:!0,children:”all of GitHub”})]})]})}try{q.displayName||(q.displayName=”SymbolZeroState”)}catch{}let Q=”symbols-pane-header”;function X({codeSymbols:e,onSymbolSelect:t,treeSymbols:n,autoFocusSearch:a,onClose:r}){let[s,l]=(0,v.useState)(“”),[o,c]=(0,v.useState)(e);return(0,v.useEffect)(()=>{var t,n;let i;””===s?c(e):c((t=s,n=e,i=t.replace(/\s/g,””),(0,L.d)(n,e=>{let t=(0,B.dt)(e.name,i);return t>0?{score:t,text:e.name}:null},B.UD)))},[s,e]),(0,i.jsx)(Z,{treeSymbols:n,codeSymbols:o,filterText:s,setFilterText:l,onSymbolSelect:t,autoFocusSearch:a,onClose:r})}function Z({codeSymbols:e,setFilterText:t,filterText:n,onSymbolSelect:a,treeSymbols:r,autoFocusSearch:s,onClose:l}){let o=e?.length>0,c=r.length>0,d=o||c,[u,h]=(0,v.useState)(-1),{sendRepoKeyDownEvent:m}=(0,T.T)(),p=(0,v.useRef)(null),f=!c||””!==n;(0,v.useEffect)(()=>{s&&p.current?.focus()},[s]),(0,O.Gp)(()=>{p.current?.focus()});let x=(0,v.useMemo)(()=>(0,C.s)(()=>{m(“BLOB_SYMBOLS_MENU.FILTER_SYMBOLS”)},400),[m]);return(0,i.jsxs)(S.az,{sx:{py:2,px:3},”aria-labelledby”:Q,children:[(0,i.jsxs)(S.az,{sx:{display:”flex”,flexDirection:”row”,justifyContent:”space-between”},children:[(0,i.jsx)(S.az,{as:”h2″,sx:{fontSize:1,order:1,display:”flex”,flexDirection:”row”,justifyContent:”center”,alignItems:”center”,fontWeight:600},id:Q,tabIndex:-1,children:”Symbols”}),(0,i.jsx)(S.K0,{“aria-label”:”Close symbols”,tooltipDirection:”w”,”data-hotkey”:”Escape”,icon:A.XIcon,sx:{order:3,color:”fg.default”,mr:-2},onClick:l,variant:”invisible”})]}),d&&(0,i.jsx)(S.az,{sx:{fontSize:0,color:”fg.muted”,pt:2},children:”Find definitions and references for functions and other symbols in this file by clicking a symbol below or in the code.”}),(o||””!==n)&&(0,i.jsx)(S.ks,{block:!0,leadingVisual:()=>(0,i.jsx)(D.A,{“aria-hidden”:”true”,icon:A.FilterIcon}),ref:p,trailingAction:n?(0,i.jsx)(S.ks.Action,{onClick:()=>{t(“”),h(-1)},icon:A.XCircleFillIcon,”aria-label”:”Clear input”,”data-testid”:”clear-search”,className:”CodeNavSymbolNavigation-module__TextInput_Action–Hfrzs”}):(0,i.jsx)(i.Fragment,{}),trailingVisual:n?void 0:()=>(0,i.jsx)(I.E,{children:(0,i.jsx)(S.az,{sx:{mr:”6px”},children:(0,i.jsx)(“kbd”,{children:”r”})})}),sx:{mt:2,borderRadius:2},placeholder:”Filter symbols”,value:n,name:”Filter symbols”,”aria-label”:”Filter symbols”,”aria-controls”:!o&&f?”filter-zero-state”:”filter-results”,”aria-expanded”:”true”,”aria-autocomplete”:”list”,”aria-activedescendant”:-1===u?void 0:`jump-to-item-${u}`,onKeyDown:t=>{“ArrowDown”===t.key||(“N”===t.key||”n”===t.key)&&t.ctrlKey?h(Math.min(u+1,e.length-1)):”ArrowUp”===t.key||(“P”===t.key||”p”===t.key)&&t.ctrlKey?h(Math.max(u-1,0)):”Enter”===t.key&&e[u]?a(e[u]):”Escape”===t.key&&l()},role:”combobox”,onChange:e=>{t(e.target.value),x(),h(-1)}}),!f&&(0,i.jsx)(S.az,{sx:{ml:-3,mb:-2},children:(0,i.jsx)(F,{treeSymbols:r,onTreeSymbolSelect:a})}),o&&f&&(0,i.jsx)(V,{codeSymbols:e,filterText:n,onSelect:a,focusedIndex:u}),!o&&f&&(0,i.jsx)(S.EY,{sx:{display:”flex”,alignItems:”center”,justifyContent:”center”,mt:2},children:(0,i.jsx)(q,{filterText:n})})]})}try{X.displayName||(X.displayName=”CodeNavSymbolNavigation”)}catch{}try{Z.displayName||(Z.displayName=”JumpToActionList”)}catch{}var J=n(23189),ee=n(6426),et=n(66561),en=n(53419),ei=n(71315),ea=n(7808),er=n(4788),es=n(17363);function el({data:e}){let{query:t,lines:n,currentCodeReferences:i}=e;return{ranges:i?(0,es.KY)(i,n,(0,es.tz)(t)):(0,es.Kv)(n,(0,es.tz)(t)),query:t}}var eo=n(11680),ec=n(12817),ed=n(43951),eu=n(95107),eh=n(73395),em=n(35898),ep=n(27473),ef=n(96459),ex=n(3966),ey=n(22128),eb=n(42934);function eg(e){let[t,n]=(0,v.useState)(!1),i=(0,v.useCallback)(e=>{let i=e[e.length-1].intersectionRatio<1;i!==t&&n(i)},[t,n]);return(0,v.useEffect)(()=>{let t=e.current,n=new IntersectionObserver(i,{threshold:[1],rootMargin:”-1px 0px 0px 0px”});return e.current&&n.observe(e.current),()=>{t&&n.unobserve(t)}},[e,i]),t}function ej(){return v.useMemo(()=>({top:”0px”,zIndex:4,background:”var(–bgColor-default, var(–color-canvas-default))”,position:”sticky”}),[!0])}var eN=n(21067),ev=n(96379);async function ew(e,t,n){if(!(0,eN.M3)())return;let i=new FormData;i.set(“tree_view_expanded_preference”,null===e?””:e?”true”:”false”),i.set(“symbols_view_expanded_preference”,null===t?””:t?”true”:”false”),i.set(“code_line_wrap_enabled”,null===n?””:n?”true”:”false”),(0,ev.DI)(“/repos/preferences”,{method:”PUT”,body:i,headers:{Accept:”application/json”}})}var e_=n(86400);let ek=(0,v.createContext)({findInFileOpen:!1,setFindInFileOpen:()=>void 0});function eS({children:e,searchTerm:t,setSearchTerm:n,isBlame:a}){let r=(0,e_.fY)(a),s=(0,v.useRef)(“”),[l,o]=(0,v.useState)(!1),c=(0,v.useCallback)(e=>{e&&””===t&&””!==s.current?n(s.current):e||””===t||(s.current=t,n(“”)),o(e)},[t,n]),d=(0,v.useMemo)(()=>({findInFileOpen:!r&&l,setFindInFileOpen:c}),[l,c,r]);return(0,i.jsx)(ek,{value:d,children:e})}function eC(){return(0,v.useContext)(ek)}try{ek.displayName||(ek.displayName=”FindInFileOpenContext”)}catch{}try{eS.displayName||(eS.displayName=”FindInFileOpenProvider”)}catch{}let eI=”FileRenderer”,eT=”Image”,eL=”TooLargeError”,eB=”Markdown”,eA=”IssueTemplate”,eD=”Code”;function eO(){let e=(0,ed.A)(),t=(0,ec.O)();if(e.renderedFileInfo&&!e.shortPath&&!t)return eI;if(e.renderImageOrRaw)if(e.image)return eT;else return eL;if(e.csv&&!t)return”CSV”;if(e.richText&&!t)return eB;if((e.issueTemplate?.structured&&e.issueTemplate.valid||e.discussionTemplate&&e.discussionTemplate.valid)&&!t&&!e.isPlain)return eA;else return eD}function eE(e){throw Error(`Unexpected object: ${e}`)}var eR=n(59775),eF=n(61722);function ez(e){let t=(0,v.useRef)(null);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eR.s,{…e,ref:t}),(0,i.jsx)(eF.A,{containerRef:t})]})}try{ez.displayName||(ez.displayName=”MarkdownContent”)}catch{}var eP=n(60269),e$=n(61526),eM=n(82075),eW=n(54571);let eH=(0,v.createContext)([]);try{eH.displayName||(eH.displayName=”SplitCodeownersErrorsContext”)}catch{}var eU=n(16417),eV=n(70214),eK=n(38102),eG=n(10188),eY=n(24506),eq=n(64498),eQ=n(77430),eX=n(66108),eZ=n(73017),eJ=n(16522);let e0=[.007,.014,.03,.049,.084,.14,.23,.38,.62,Number.MAX_VALUE],e1={“scale.orange.0″:”#ffdfb6″,”scale.orange.1″:”#ffc680″,”scale.orange.2″:”#f0883e”,”scale.orange.3″:”#f0883e”,”scale.orange.4″:”#db6d28″,”scale.orange.5″:”#bd561d”,”scale.orange.6″:”#9b4215″,”scale.orange.7″:”#762d0a”,”scale.orange.8″:”#5a1e02″,”scale.orange.9″:”#3d1300″};function e2(e,t){return e1[`scale.orange.${t}`]}function e3(e,t){return e1[`scale.orange.${9-t}`]}var e4=n(88431),e6=n(62935),e5=n(11196),e7=n(51220),e8=n(46996),e9=n(60493),te=n(88125);let tt=v.forwardRef(ti);function tn({copilotAccessAllowed:e,linesData:t,tabSize:n,onLineNumberClick:a}){let r=(0,v.useRef)(null),s=ts((0,ec.O)(),t);return(0,i.jsx)(“div”,{className:”d-flex flex-column”,style:{tabSize:n},ref:r,”data-hpc”:!0,children:s.map((t,n)=>(0,i.jsx)(tr,{…t,index:n,copilotAccessAllowed:e,onLineNumberClick:a},`blame-for-segment-${t.range?.start??t.linesData[0].lineNumber}`))})}function ti({copilotAccessAllowed:e,linesData:t,tabSize:n,materializeAllLines:a,onLineNumberClick:r},s){let l=(0,v.useRef)(null),o=(0,ec.O)(),{screenSize:c}=(0,j.lm)(),[d,u]=(0,v.useState)(0);(0,e4.N)(()=>{u(l.current?.offsetTop??0)},[]);let h=(0,v.useCallback)(e=>{let n=t[e],i=o?.ranges[n.lineNumber];return i&&i.end===i.start?window.innerWidth>j.Gy.medium?31:41:20},[t,o]),m=(0,e7.XW)({count:t.length,overscan:a?Number.MAX_SAFE_INTEGER:100,estimateSize:h,scrollMargin:d}),p=m.getVirtualItems().map(e=>({…t[e.index],virtualOffset:e.start-m.options.scrollMargin}));(0,v.useImperativeHandle)(s,()=>({scrollToTop:()=>{(0,ex.si)(0)||m.scrollToIndex(0,{align:”start”})},scrollToLine:e=>{(0,ex.si)(e)||m.scrollToIndex(e,{align:”center”})}}));let f=ts(o,p);return(0,i.jsx)(“div”,{style:{“–blame-segments-count”:f.length,”–blame-virt-total-size”:`${m.getTotalSize()}px`,tabSize:n},className:”virtual-blame-wrapper”,ref:l,”data-hpc”:!0,children:f.map((t,n)=>{let a=t.linesData[0].virtualOffset??0;return c(0,i.jsxs)(“div”,{className:”d-flex flex-row”,children:[(0,i.jsx)(“div”,{className:`react-line-numbers ${n.length>1?””:”react-blame-no-line-data”}`,children:(0,i.jsx)(te.Kn,{codeLineData:e,onClick:r},`line-number-${e.lineNumber}-content-${e.rawText?.substring(0,100)}`)}),(0,i.jsx)(“div”,{className:`react-code-line ${n.length>1?””:”react-blame-no-line-data”}`,children:(0,i.jsx)(e9.S,{stylingDirectivesLine:e.stylingDirectivesLine,id:`LC${e.lineNumber}`,codeLineData:e,copilotAccessAllowed:a,shouldUseInert:!1},`code-line=${e.lineNumber}-content-${e.rawText?.substring(0,100)}`)})]},`line-pair-${e.lineNumber}`))})]})}let tr=v.memo(function({range:e,commit:t,linesData:n,virtualOffset:a,copilotAccessAllowed:r,onLineNumberClick:s}){return(0,i.jsx)(“div”,{className:”react-blame-segment-wrapper”,style:void 0!==a?{transform:`translateY(${a}px)`,position:”absolute”,top:0}:void 0,children:(0,i.jsx)(ta,{range:e,commit:t,linesData:n,copilotAccessAllowed:r,onLineNumberClick:s})})},(e,t)=>e.range===t.range&&e.commit===t.commit&&e.virtualOffset===t.virtualOffset&&(0,e8.A)(e.linesData,t.linesData));function ts(e,t){if(!e)return[{linesData:t}];let n=[],i=null,a=!0;for(let r of t){i||(i={linesData:[]});let t=a?Object.values(e?.ranges??{}).find(e=>e.start<=r.lineNumber&&e.end>=r.lineNumber):e?.ranges[r.lineNumber];t&&(i.range=t,i.commit=e.commits[t.commitOid]),i.linesData.push(r),i.range?.end===r.lineNumber&&(n.push(i),i=null),a=!1}return i&&(n.push(i),i=null),n}let tl=v.memo(to);function to({range:e,commit:t}){let n=(0,y.t)(),a=new Date(t.committedDate),r=new Date(n.createdAt),s=(0,i.jsx)(“div”,{className:”timestamp-ago”,children:(0,i.jsx)(e6.A,{date:a,tense:”past”,className:”Blame-module__RelativeTime–RTYmV”})});return(0,i.jsxs)(“div”,{className:”react-blame-for-range d-flex”,children:[(0,i.jsx)(“div”,{“aria-hidden”:!0,className:”age-indicator”,children:(0,i.jsx)(td,{commitDate:a,repoCreationDate:r})}),(0,i.jsx)(“div”,{className:”pt-1 timestamp-wrapper-desktop”,children:s}),(0,i.jsx)(“div”,{className:”author-avatar-wrapper”,children:t.authorAvatarUrl&&(0,i.jsx)(eQ.r,{src:t.authorAvatarUrl,size:18})}),(0,i.jsx)(S.az,{sx:{verticalAlign:”top”,pt:[2,2,”6px”],pb:[2,2,0],minWidth:[0,0,170],flexGrow:[1,1,1]},children:(0,i.jsx)(“div”,{className:”d-flex”,children:(0,i.jsx)(eZ.JR,{html:t.shortMessageHtmlLink,sx:{whiteSpace:”nowrap”,ml:2,overflowX:”hidden”,textOverflow:”ellipsis”,maxWidth:”100%”,fontSize:[1,1,0]},”data-hovercard-url”:(0,G.fQd)({owner:n.ownerLogin,repo:n.name,commitish:t.oid})})})}),(0,i.jsxs)(S.az,{sx:{display:”flex”,alignContent:”flex-start”,justifySelf:”flex-end”,verticalAlign:”top”,pl:2,pt:[“2px”,”2px”,”1px”],pb:[1,1,0],width:[150,150,34],pr:[2,2,0]},children:[(0,i.jsx)(“div”,{className:”pt-1 pr-3 timestamp-wrapper-mobile”,children:s}),(0,i.jsx)(tc,{range:e,commit:t})]})]})}function tc({range:e,commit:t}){let n=(0,y.t)();if(!e.reblamePath)return null;let a=(0,G.buO)({owner:n.ownerLogin,repo:n.name,commitish:t.firstParentOid,filePath:e.reblamePath}),r=new Intl.DateTimeFormat(void 0,{year:”numeric”,month:”short”,day:”numeric”}),s=t.oid.slice(0,7),l=r.format(new Date(t.committedDate)),o=`Blame prior to change ${s}, made on ${l}`,c=`reblame-${s}`;return(0,i.jsx)(e5.m,{text:o,type:”label”,id:c,children:(0,i.jsx)(eX.N,{“aria-labelledby”:c,to:a,className:”Button Button–iconOnly Button–invisible Button–small”,children:(0,i.jsx)(A.VersionsIcon,{})})})}function td({commitDate:e,repoCreationDate:t}){let n=function(e,t){let n,i=(0,eJ.c)(4),{resolvedColorScheme:a}=(0,S.DP)(),r=a?.startsWith(“dark”),s=r?e1[“scale.orange.9”]:e1[“scale.orange.0”];if(e(0,i.jsx)(te.Kn,{codeLineData:e,onClick:t,ownedCodeSections:n,onLineStickOrUnstick:r,onCollapseToggle:c},`line-number-${e.lineNumber}-content:${e.rawText?.substring(0,100)}`))}),(0,i.jsx)(“div”,{className:”react-code-lines”,children:e.map(e=>(0,i.jsx)(e9.S,{codeLineData:e,codeLineClassName:e.codeLineClassName,stylingDirectivesLine:e.stylingDirectivesLine,id:`LC${e.lineNumber}`,onLineStickOrUnstick:r,setIsCollapsed:c,codeLineToSectionMap:a,copilotAccessAllowed:o,measureRef:void 0,shouldUseInert:!1},`line-data-${e.lineNumber}-content:${e.rawText?.substring(0,100)}`))})]}),1e3===e.length&&(0,i.jsx)(S.az,{sx:{justifyContent:”center”,display:”flex”},children:(0,i.jsx)(Y.A,{href:u,children:”View remainder of file in raw view”})})]})}try{tm.displayName||(tm.displayName=”CodeLinesSSR”)}catch{}try{tp.displayName||(tp.displayName=”CodeLinesSSRUnmemoized”)}catch{}var tf=n(32470),tx=n(99580),ty=n(52191),tb=n(12188);let tg=v.memo(tj);function tj({linesData:e,onLineNumberClick:t,codeSections:n,nonTruncatedLinesData:a,colorizedLines:r,onLineStickOrUnstick:s,tabSize:l,contentWidth:o,copilotAccessAllowed:c,onCollapseToggle:d}){let u=(0,N.ud)().codeWrappingOption.enabled,{rawBlobUrl:h}=(0,ed.A)(),m=[…Array(Math.floor(e.length/th.kd)+1).keys()];return(0,i.jsxs)(S.az,{className:”react-code-file-contents”,role:”presentation”,”aria-hidden”:!0,”data-tab-size”:l,”data-paste-markdown-skip”:!0,sx:{tabSize:l,isolation:”isolate”,position:”relative”,width:o,overflow:”auto”,maxWidth:u?”100%”:”unset”},”data-hpc”:!0,children:[(0,i.jsx)(“div”,{className:”react-line-numbers-no-virtualization”,style:{pointerEvents:”auto”,position:”relative”,zIndex:2},children:m.map(a=>{let r=e.slice(a*th.kd,Math.min(a*th.kd+th.kd,e.length));return(0,i.jsx)(“div”,{className:”react-no-virtualization-wrapper-lines-ssr”,children:r.map(e=>(0,i.jsx)(ty.m,{codeLineData:e,onClick:t,ownedCodeSections:n,onLineStickOrUnstick:s,onCollapseToggle:d},`line-number-${e.lineNumber}`))},`line-number-wrapper-${a}-content:${r[0]?.rawText?.substring(0,100)}`)})}),(0,i.jsxs)(“div”,{className:”react-code-lines”,children:[(0,i.jsx)(tx.R,{linesData:e}),(0,i.jsx)(tf.n,{linesData:e,copilotAccessAllowed:c}),(0,i.jsx)(tb.Bg,{linesData:a,colorizedLines:r}),1e3===e.length&&(0,i.jsx)(S.az,{sx:{justifyContent:”center”,display:”flex”},children:(0,i.jsx)(Y.A,{href:h,children:”View remainder of file in raw view”})})]})]})}try{tg.displayName||(tg.displayName=”CodeLinesSSRNoVirtualization”)}catch{}try{tj.displayName||(tj.displayName=”CodeLinesSSRNoVirtualizationUnmemoized”)}catch{}var tN=n(71600),tv=n(23451);function tw({linesData:e,onCodeNavTokenSelected:t,onLineNumberClick:n,isBlame:a,isCursorVisible:s,isVirtualized:l,textAreaRef:o,shouldRenderOverlay:d,tabSize:h,optionalTestLeftOffsetFunction:m,textSelection:p,onCollapseToggle:f,onLineStickOrUnstick:x,optionalTestTopOffsetFunction:b,additionalTextAreaInstructions:g}){let j,[N,w]=(0,v.useState)(0),[_,k]=(0,v.useState)(0),[C,I]=(0,v.useState)(!1),T=(0,v.useRef)(“”),L=(0,v.useRef)(null),B=(0,y.t)(),{refInfo:A,path:D}=(0,c.eu)(),{cursorNavigationHighlightLine:O,expandAndFocusLineContextMenu:E,cursorNavigationEnter:R,searchShortcut:F,cursorNavigationPageDown:z,cursorNavigationPageUp:P}=(0,u.wk)(),$=(0,e$.zy)();(0,v.useEffect)(()=>{w(0),k(0)},[$.key]),(0,v.useEffect)(()=>{function e(e){T.current=e.key}return window.oncontextmenu=function(e){if(“ContextMenu”===T.current&&-1===e.button&&document.activeElement?.className.indexOf(eq.Dp)!==-1)return T.current=””,e?.preventDefault(),e?.stopPropagation(),!1},window.addEventListener(“keydown”,e),()=>{window.removeEventListener(“keydown”,e),window.oncontextmenu=null}},[]);let M=a?e_.cH:e_.M_,W=(0,v.useRef)(null),{onEnter:H,updateUrlForLineNumber:U,onPageUp:V,onPageDown:K,currentStartLine:Y,currentStartChar:q,currentEndLine:Q,currentEndChar:X,determineAndSetTextAreaCursorPosition:Z,getCorrectLineNumberWithCollapsedSections:J}=(0,e_.M1)(W,t,m??w,b??k,e,l,a,n,o,h,g,p),ee=(0,v.useRef)(!1);(0,v.useEffect)(()=>{ee.current=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},[]);let et=(0,eU.o)(“react-line-numbers”),en=s?{height:`${et}px`,width:”1.5px”,backgroundColor:”fg.default”,position:”absolute”,visibility:ee.current?”hidden”:”visible”,zIndex:2}:{};return j=Y.current===Q.current&&q.current===X.current?`#L${Y.current+1}C${q.current}`:`#${(0,eh.Kn)({start:{line:Y.current+1,column:q.current},end:{line:Q.current+1,column:X.current}})}`,(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.az,{“aria-hidden”:!0,style:{top:_,left:M+N},sx:en,ref:W,”data-testid”:”navigation-cursor”,className:”code-navigation-cursor”,children:” “}),d&&(0,i.jsx)(“div”,{style:{top:_+et,left:M+N,zIndex:2},className:”position-absolute border rounded-2 color-bg-subtle px-3 py-2″,children:(0,i.jsxs)(S.EY,{sx:{pointerEvents:”auto”},children:[“Code view is read-only.”,” “,A.canEdit&&(0,i.jsx)(eX.N,{to:(0,G.Nyd)({owner:B.ownerLogin,repo:B.name,filePath:D,commitish:A.name,hash:j}),children:”Switch to the editor.”})]})}),C&&(0,i.jsx)(eq.Ay,{ref:L,rowBeginId:`LG${J(Y.current)}`,rowBeginNumber:J(Y.current),rowEndNumber:J(Q.current),rowEndId:`LG${J(Q.current)}`,openOnLoad:!0,cursorRef:W,onCollapseToggle:f,onLineStickOrUnstick:x,lineData:function(){if(Y.current!==Q.current)return null;let t=e[Y.current];if(!t)return null;if(t.isStartLine)return t;if(“”===t.codeLineClassName)return null;let n=t.codeLineClassName?.split(“child-of-line-“);if(!n||t.codeLineClassName?.indexOf(“child-of-line-“)===-1)return null;let i=parseInt(n[n.length-1]?.trim()??”undefined”);return i&&!Number.isNaN(i)?e[i-1]&&e[i-1]?.lineNumber===i?e[i-1]:e[(0,ex.N9)(i,e)]:null}(),onMenuClose:function(e,t){I(e),setTimeout(()=>{t&&Z(),o?.current?.focus()},300)}}),(0,i.jsx)(“button”,{hidden:!0,”data-testid”:”NavigationCursorEnter”,”data-hotkey”:R.hotkey,onClick:H,”data-hotkey-scope”:ex.wQ}),(0,i.jsx)(“button”,{hidden:!0,”data-testid”:”NavigationCursorSetHighlightedLine”,”data-hotkey”:O.hotkey,onClick:U,”data-hotkey-scope”:ex.wQ}),(0,i.jsx)(“button”,{hidden:!0,”data-testid”:”NavigationCursorSetHighlightAndExpandMenu”,”data-hotkey”:E.hotkey,onClick:e=>(e.preventDefault(),e.stopPropagation(),I(!0),setTimeout(()=>{L.current?.setAnchor(W.current)},0),!1),”data-hotkey-scope”:ex.wQ}),(0,i.jsx)(“button”,{hidden:!0,”data-testid”:”NavigationCursorPageDown”,”data-hotkey”:z.hotkey,onClick:K,”data-hotkey-scope”:ex.wQ}),(0,i.jsx)(“button”,{hidden:!0,”data-testid”:”NavigationCursorPageUp”,”data-hotkey”:P.hotkey,onClick:V,”data-hotkey-scope”:ex.wQ}),(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:F.hotkey,onButtonClick:()=>{(0,tv.Z)({retainScrollPosition:!0,returnTarget:o?.current??void 0})},onlyAddHotkeyScopeButton:!0})]})}try{tw.displayName||(tw.displayName=”NavigationCursor”)}catch{}var t_=n(54443),tk=n(57387),tS=n(40961);function tC({onDismiss:e}){let{expandAndFocusLineContextMenu:t,cursorNavigationEnter:n,cursorNavigationHighlightLine:a}=(0,u.wk)();return(0,tS.createPortal)((0,i.jsx)(tk.l,{width:”large”,”aria-label”:”Code Blob Focused Hotkeys”,onClose:e,title:”Code Blob Focused Hotkeys”,children:(0,i.jsx)(“div”,{children:(0,i.jsxs)(“div”,{children:[(0,i.jsxs)(“div”,{className:”p-1″,children:[“Select the line the cursor is on “,(0,i.jsx)(“kbd”,{children:a.text})]}),(0,i.jsxs)(“div”,{className:”p-1″,children:[“Select the symbol under the cursor “,(0,i.jsx)(“kbd”,{children:n.text})]}),(0,i.jsxs)(“div”,{className:”p-1″,children:[“Move focus to the highlighted line menu “,(0,i.jsx)(“kbd”,{children:t.text})]})]})})}),document.body)}try{tC.displayName||(tC.displayName=”TextAreaHelpDialog”)}catch{}function tI({textAreaRef:e,setTextOverlayShouldBeVisible:t,setTextSelection:n,setAdditionalTextAreaInstructions:a,cursorClickStartRef:s,parentRef:l,tabSize:o,plainTextLinesAsString:c,numLines:d,setIsTextAreaFocused:h}){let m=(0,e_.fY)(),p=(0,N.ud)().codeWrappingOption,f=(0,u.V3)(),x=(0,u._y)(),y=(0,eU.o)(“react-line-numbers”),[b,g]=(0,v.useState)(!1),{cursorNavigationOpenHelpDialog:w}=(0,u.wk)(),_=(0,S.DP)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“textarea”,{id:ex.wQ,”data-testid”:ex.wQ,ref:e,onMouseUp:i=>(function(e,t,n,i,a,r,s,l){if(r&&!e.defaultPrevented&&a){if(2===e.button)e.preventDefault(),e.stopPropagation();else if(0===e.button){n(!1);let r=(0,j.nn)(window.innerWidth)o+s.current?.clientHeight){a.current={startX:-2,startY:-2};return}let c=(0,ex.t1)(e.pageY,o,l),d=s.current?.getBoundingClientRect().left||0,u=e.clientX-d-e_.M_,h=!1;(c{t&&t.current&&i({start:t.current.selectionStart,end:t.current.selectionEnd,keyboard:!1,displayStart:h})},0)}}})(i,e,t,n,s,m,l,y),onMouseDown:e=>(function(e,t,n,i,a){if(n&&!e.defaultPrevented&&i){if(2===e.button){e.preventDefault(),e.stopPropagation();return}else if(0===e.button){if(e.ctrlKey){e.preventDefault(),e.stopPropagation();return}let n=(0,j.nn)(window.innerWidth)r+t.current?.clientHeight){i.current={startX:-2,startY:-2};return}let s=(0,ex.t1)(e.pageY,r,a),l=t.current?.getBoundingClientRect().left||0;i.current={startX:e.clientX-l-e_.M_,startY:s}}}})(e,l,m,s,y),”aria-label”:”file content”,”aria-readonly”:!0,inputMode:”none”,tabIndex:0,”aria-multiline”:!0,”aria-haspopup”:!1,”data-gramm”:”false”,”data-gramm_editor”:”false”,”data-enable-grammarly”:”false”,style:{resize:”none”,marginTop:-2,paddingLeft:e_.M_,paddingRight:e_.di,display:”hidden”,width:”100%”,backgroundColor:”unset”,boxSizing:”border-box”,color:”transparent”,position:”absolute”,border:”none”,tabSize:o,outline:”none”,overflowX:”auto”,height:y*(d+1),fontSize:”12px”,lineHeight:”20px”,overflowY:”hidden”,overflowWrap:p.enabled?”anywhere”:”normal”,overscrollBehaviorX:”none”,whiteSpace:p.enabled?”pre-wrap”:”pre”,zIndex:1},value:c,onKeyDown:function(i){if(f.includes(i.key)||x.includes(i.key)&&(i.getModifierState(“Control”)||i.getModifierState(“Alt”)||i.getModifierState(“Shift”)||i.getModifierState(“Meta”)))” “===i.key&&(i.preventDefault(),i.shiftKey?a(`PageUp${Date.now()}`):a(`PageDown${Date.now()}`)),i.altKey&&i.ctrlKey&&”\u02D9″===i.key&&g(!0),t(!1),setTimeout(()=>{e.current&&n({start:e.current.selectionStart,end:e.current.selectionEnd,keyboard:!0,displayStart:!1})},5);else{var r,s;let e;!(!i.ctrlKey&&!i.metaKey&&!i.altKey&&!i.shiftKey&&(r=/[a-zA-Z0-9-_ ]{1,1}/,s=i.key,(e=r.exec(s))&&e[0]===s||”Backspace”===i.key||”Enter”===i.key))||((0,$.i)(“Code view is read only.”),t(!0),i.preventDefault())}},spellCheck:!1,autoCorrect:”off”,autoCapitalize:”off”,autoComplete:”off”,”data-ms-editor”:”false”,onDrop:e=>{let t=e.dataTransfer.getData(“Text”);try{let e=new URL(t);window.open(e,”_blank”)?.focus()}catch{}return!1},onPaste:e=>(e.preventDefault(),!1),onChange:()=>{},className:`react-blob-textarea react-blob-print-hide${_.resolvedColorScheme?.endsWith(“contrast”)?” select-contrast”:””}`,onFocus:()=>{h(!0)}}),b&&(0,i.jsx)(tC,{onDismiss:()=>{g(!1)}}),(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:w.hotkey,onButtonClick:()=>{g(!0)},onlyAddHotkeyScopeButton:!0})]})}try{tI.displayName||(tI.displayName=”TextArea”)}catch{}let tT=(0,eM.A)(“localStorage”);function tL({blobLinesHandle:e,onCodeNavTokenSelected:t,codeSections:n,codeLineToSectionMap:a,validCodeNav:r,onLineStickOrUnstick:s,searchResults:l,focusedSearchResult:o}){var d,u;let h,m,p,f,x,y,b,{rawLines:g,colorizedLines:j,stylingDirectives:w,tabSize:_}=(0,ed.A)(),k=!!(0,ec.O)(),[I,T]=(0,v.useState)(!1),L=(0,e_.fY)(),B=(0,eU.o)(“react-line-numbers”),[A,D]=(0,v.useState)(void 0),[O,E]=(0,v.useState)({start:-1,end:-1,keyboard:!0,displayStart:!1}),[R,F]=(0,v.useState)(“”),[z,P]=(0,v.useState)(!1),$=(0,v.useRef)(null),[M,W]=(0,v.useState)(!1),H=(0,v.useRef)({startX:0,startY:0}),{hash:U}=(0,e$.zy)(),{refInfo:V,path:K,copilotAccessAllowed:G}=(0,c.eu)(),Y=(0,v.useRef)(null),[q,Q]=(0,v.useState)(void 0),[X]=(0,eW.I)(()=>!1,!0,[]),Z=(0,v.useRef)(null),J=(0,N.ud)().codeWrappingOption.enabled,ee=(0,eV.u)(),et=(0,eu.YP)(),en=(0,v.useCallback)(()=>{D((0,eh.$c)(window.location.hash)?.blobRange)},[]),{findInFileOpen:ei,setFindInFileOpen:ea}=eC(),er=(0,v.useContext)(eH),{lines:es,plainTextLinesAsString:el,nonTruncatedLinesData:eo}=(h=function(e,t,n,i,a){let[r]=(0,eW.I)(()=>e.length,Math.min(e.length,1e3),[e]);return(0,v.useMemo)(()=>Array(r).fill(null).map((e,t)=>t+1).map(r=>{let s,l=t?.[r-1],o=!1,c=!1;for(let e of n?.get(r)??[])e.startLine===r&&(o=!0,s=e),e.endLine===r&&(c=!0);let d=e[r-1]?.replace(/[\n\r]/g,””)??””,u=a&&a.get(r)||[],h=(0,ex.Bn)(u,r,c,n);return{stylingDirectivesLine:l,lineNumber:r,codeLineClassName:h,isStartLine:o,isEndLine:c,ownedSection:s,rawText:d,hiddenUnicode:(0,eG.Y)(d),codeownersLineError:i?.find(e=>e.line===r)}}),[r,t,e,a,n,i])}(g??[],w??null,d=n??null,er,a),m=(0,eG.bp)(),p=(0,v.useRef)(“”),(0,ex.Wb)(e=>{let t;return(t=[…e]).sort(),p.current=t.join(“,”)}),x=(f=(0,v.useMemo)(()=>(function(e,t){let n=new Set;for(let i=0;i!n.has(e.lineNumber))})(h,d),[h,d,p.current])).map(e=>m&&e.rawText?(0,eG.TA)(e.rawText):e.rawText).join(` `),{lines:f,plainTextLinesAsString:x,nonTruncatedLinesData:h}),em=(0,th.G)(eo.length)&&j&&0!==j.length,ep=(0,v.useRef)(es);ep.current=es,(0,v.useEffect)(()=>{(0,ex.X5)()},[V.currentOid,K]),(0,v.useEffect)(()=>{window.onbeforeprint=()=>T(!0),window.onafterprint=()=>T(!1)},[]),(0,v.useEffect)(()=>{ew(null,null,J)},[]),(0,v.useEffect)(()=>{“true”!==tT.getItem(“heardHelpAnnouncement”)&&((0,ex.kY)(“While the code is focused, press Alt+F1 for a menu of operations.”,2e3),tT.setItem(“heardHelpAnnouncement”,”true”))},[]),u=(0,v.useCallback)(e=>{if(e&&e?.node&&!k){if(!e.node.textContent||e.node.textContent.length<3)return;let n=e.node;!n||!n.hasAttribute||n.hasAttribute("clickadded")||(n.classList.add("pl-token"),n.setAttribute("clickadded","true"),n.addEventListener("click",function(n){let i=n.target.textContent?n.target.textContent:"";t&&e&&(t({selectedText:i,lineNumber:e.lineNumber,offset:e.offset}),ei&&ea(!1))}))}},[ei,k,ea,t]),y=!!(0,ec.O)(),b=(0,e_.fY)(),(0,v.useEffect)(()=>{let e;if(y||!r||b)return;let t=(0,C.s)(t=>{clearTimeout(e),e=setTimeout(()=>{!function(e,t){let n=function(e,t,n){let i,a;if(document.caretPositionFromPoint){let e=document.caretPositionFromPoint(t,n);e&&(i=e.offsetNode,a=e.offset)}else if(document.caretRangeFromPoint){let e=document.caretRangeFromPoint(t,n);e&&(i=e.startContainer,a=e.startOffset)}if(!i||”number”!=typeof a||i.nodeType!==Node.TEXT_NODE||!i.textContent)return null;let r=function(e,t,n){let i,a=null;for(;i=t.exec(e);){if(t.lastIndex===a){(0,eK.N7)(Error(“regexp did not advance in findNearestMatch()”));break}a=t.lastIndex;let e=i.index+i[0].length;if(i.index<=n&&n<=e)return[i[0],i.index,e]}return null}(i.textContent,e,a);if(!r)return null;let s=document.createRange();return s.setStart(i,r[1]),s.setEnd(i,r[2]),s}(/\w+[!?]?/g,e.clientX,e.clientY);if(!n)return;let i=n.commonAncestorContainer.parentElement;if(i)for(let e of i.classList){if(["pl-token","pl-c","pl-s","pl-k"].includes(e))return null;let i=n.toString();if(!i||i.match(/\n|\s|[();&.=",]/))return null;let{lineNumber:a,offset:r,node:s}=function(e){let t=e.startContainer,n=e.startOffset;for(;;){let e=t.previousSibling;for(;e;)n+=(e.textContent||"").length,e=e.previousSibling;let i=t.parentElement;if(!i)return{lineNumber:0,offset:0,node:null};if(i.classList.contains("react-file-line"))return{lineNumber:parseInt(i.getAttribute("data-line-number")||"1",10),offset:n,node:t};t=i}}(n);if(0===a&&0===r||!s)return null;return t({lineNumber:a,offset:r,node:s})}}(t,u)},15)},5);return window.addEventListener("mousemove",t),()=>{window.removeEventListener(“mousemove”,t)}},[u,y,r,b]);let ef=({line:t,column:n})=>{if(t<10)e.current?.scrollToTop();else if(e.current){if(-1===(0,ex.N9)(t,es)){for(let e of a?.get(t)??[])e&&e.collapsed&&(e.collapsed=!1,(0,ex.ny)(e?.startLine));ee()}setTimeout(()=>{let i=(0,ex.N9)(t,ep.current);e.current?.scrollToLine(i,n)},0),et&&!(0,ex.si)(t)&&(s(null,!0),(0,ex.CZ)(et,t,a,s))}};return(0,v.useEffect)(()=>{let e=(0,eh.$c)(U);e.blobRange?.start?.line?D(e.blobRange):D(void 0)},[K,U,es.length]),(0,v.useEffect)(()=>{let e=(0,eh.$c)(U);if(!e.blobRange?.start?.line)return;let t=window.setTimeout(()=>ef({line:e.blobRange.start.line}),0);return()=>{window.clearTimeout(t)}},[K,k]),(0,v.useEffect)(()=>{let e=Y.current;if(!e||!L)return void Q(void 0);Q(e.scrollWidth>e.clientWidth?e.scrollWidth:void 0);let t=new ResizeObserver(e=>{for(let{target:t}of e)Q(t.scrollWidth>t.clientWidth?t.scrollWidth:void 0)});return t.observe(e),()=>{t.disconnect()}},[L,K]),(0,ey.g)(ef),(0,i.jsx)(t_.gt,{searchResults:l,focusedSearchResult:o,children:(0,i.jsxs)(tN.iU,{highlightedLines:A,children:[es.some(e=>e.hiddenUnicode)&&(0,i.jsx)(eG.om,{}),(0,i.jsx)(S.az,{sx:{display:”flex”,flex:1,py:2*!k,flexDirection:”column”,justifyContent:”space-between”,minWidth:0,position:”relative”},children:(0,i.jsx)(eq.AG,{children:(0,i.jsx)(eY.eT,{children:(0,i.jsxs)(S.az,{sx:{flex:1,position:”relative”,minWidth:0,overflowX:k?”auto”:void 0,overflowY:k?”hidden”:void 0},ref:$,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||P(!1)},children:[L&&(0,i.jsx)(S.az,{ref:Z,sx:{position:”absolute”,width:”100%”,overflow:”hidden”},children:(0,i.jsx)(S.az,{sx:{width:q,height:B*es.length},children:(0,i.jsx)(tw,{linesData:es,isBlame:!1,onCodeNavTokenSelected:t,onLineNumberClick:en,isCursorVisible:!!z,isVirtualized:!0,textAreaRef:Y,onCollapseToggle:ee,onLineStickOrUnstick:s,tabSize:_,textSelection:O,shouldRenderOverlay:!!M,additionalTextAreaInstructions:R??””})})}),L&&(0,i.jsx)(tI,{textAreaRef:Y,setTextOverlayShouldBeVisible:W,setTextSelection:E,setAdditionalTextAreaInstructions:F,cursorClickStartRef:H,parentRef:$,tabSize:_,plainTextLinesAsString:el,numLines:es.length,setIsTextAreaFocused:P}),k?X?(0,i.jsx)(tn,{linesData:es,tabSize:_,copilotAccessAllowed:G,onLineNumberClick:en}):(0,i.jsx)(tt,{ref:e,linesData:es,tabSize:_,copilotAccessAllowed:G,onLineNumberClick:en}):X?em?(0,i.jsx)(tg,{linesData:es,nonTruncatedLinesData:eo,onLineNumberClick:en,colorizedLines:j,codeSections:n,codeLineToSectionMap:a,onLineStickOrUnstick:s,tabSize:_,contentWidth:q,copilotAccessAllowed:G,onCollapseToggle:ee}):(0,i.jsx)(tm,{linesData:es,onLineNumberClick:en,codeSections:n,codeLineToSectionMap:a,onLineStickOrUnstick:s,tabSize:_,contentWidth:q,copilotAccessAllowed:G,onCollapseToggle:ee}):em?(0,i.jsx)(th.P9,{ref:e,linesData:es,nonTruncatedLinesData:eo,onLineNumberClick:en,colorizedLines:j,codeSections:n,codeLineToSectionMap:a,onLineStickOrUnstick:s,tabSize:_,textAreaRef:Y,cursorContainerRef:Z,contentWidth:q??Y.current?.clientWidth,onCollapseToggle:ee,materializeAllLines:I,copilotAccessAllowed:G}):(0,i.jsx)(tu.FL,{ref:e,linesData:es,onLineNumberClick:en,codeSections:n,codeLineToSectionMap:a,onLineStickOrUnstick:s,tabSize:_,contentWidth:q,cursorContainerRef:Z,onCollapseToggle:ee,textAreaRef:Y,materializeAllLines:I,copilotAccessAllowed:G})]})})})})]})})}try{tL.displayName||(tL.displayName=”CodeBlob”)}catch{}function tB({displayName:e,displayUrl:t}){return(0,i.jsx)(S.az,{sx:{display:”flex”,justifyContent:”center”,width:”100%”},children:(0,i.jsx)(S.az,{as:”img”,alt:e,src:t,”data-hpc”:!0,sx:{maxWidth:”100%”}})})}try{tB.displayName||(tB.displayName=”ImageBlob”)}catch{}var tA=n(94236),tD=n(5524),tO=n(30093),tE=n(10576),tR=n(64451),tF=n(86877),tz=n(46720);let tP=”issue”;function t$({issueTemplate:e,type:t}){return(0,i.jsxs)(S.az,{sx:{borderBottomLeftRadius:”6px”,borderBottomRightRadius:”6px”,p:5},children:[(0,i.jsxs)(S.az,{as:”table”,sx:{mb:3},children:[(0,i.jsx)(“thead”,{children:(0,i.jsxs)(“tr”,{children:[t===tP?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tM,{header:!0,children:”Name”}),(0,i.jsx)(tM,{header:!0,children:”About”})]}):(0,i.jsx)(tM,{header:!0,children:”Title”}),e.type&&(0,i.jsx)(tM,{header:!0,children:”Type”}),(0,i.jsx)(tM,{header:!0,children:”Labels”}),e.projects&&(0,i.jsx)(tM,{header:!0,children:”Projects”}),t===tP&&(0,i.jsx)(tM,{header:!0,children:”Assignees”})]})}),(0,i.jsx)(“tbody”,{children:(0,i.jsxs)(“tr”,{children:[t===tP?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tM,{children:e.name}),(0,i.jsx)(tM,{children:e.about})]}):(0,i.jsx)(tM,{children:e.title}),e.type&&(0,i.jsx)(tM,{children:e.type}),(0,i.jsx)(tM,{children:e.labels}),e.projects&&(0,i.jsx)(tM,{children:e.projects}),t===tP&&(0,i.jsx)(tM,{children:e.assignees})]})})]}),e.inputs.map((e,t)=>(0,i.jsx)(tW,{input:e},t))]})}function tM({children:e,header:t}){return(0,i.jsx)(S.az,{as:t?”th”:”td”,sx:{p:”6px 13px”,border:”1px solid var(–borderColor-default, var(–color-border-default))”},children:e})}function tW({input:e}){switch(e.type){case”markdown”:return(0,i.jsx)(tH,{input:e});case”dropdown”:return(0,i.jsx)(tU,{input:e});case”input”:return(0,i.jsx)(tV,{input:e});case”textarea”:return(0,i.jsx)(tK,{input:e});case”checkboxes”:return(0,i.jsx)(tG,{input:e});default:return null}}function tH({input:e}){return e.value?(0,i.jsx)(eZ.vb,{html:e.value}):null}function tU({input:e}){let t=e.options?.slice();e.required||t?.unshift(“None”);let n=e.multiple?”Selections: “:”Selection: “;return e.value&&(n+=e.value),(0,i.jsx)(tY,{input:e,style:{alignItems:”start”},children:(0,i.jsxs)(tA.W,{children:[(0,i.jsx)(tA.W.Button,{children:n}),(0,i.jsx)(tA.W.Overlay,{width:”medium”,children:(0,i.jsx)(tD.l,{selectionVariant:e.multiple?”multiple”:”single”,children:t?.map((t,n)=>(0,i.jsx)(tD.l.Item,{selected:t===e.value,disabled:!0,children:t},n))})})]})})}function tV({input:e}){return(0,i.jsx)(tY,{input:e,children:(0,i.jsx)(tO.A,{placeholder:e.placeholder,value:e.value??””})})}function tK({input:e}){return(0,i.jsx)(tY,{input:e,children:(0,i.jsx)(tE.Ay,{placeholder:e.placeholder,value:e.value??””,style:e.render?{fontFamily:”mono”}:{}})})}function tG({input:e}){return e.checkboxes?(0,i.jsxs)(tR.A,{disabled:!0,className:”YamlTemplateContent-module__CheckboxGroup–oI4h2″,children:[(0,i.jsx)(tR.A.Label,{className:”YamlTemplateContent-module__CheckboxGroup_Label–xgfwI”,children:e.label}),e.description&&(0,i.jsx)(tR.A.Caption,{className:”YamlTemplateContent-module__CheckboxGroup_Caption–fs5iA”,children:(0,i.jsx)(eZ.vb,{html:e.description})}),e.checkboxes.map((e,t)=>(0,i.jsxs)(tF.A,{disabled:!0,required:e.required,children:[(0,i.jsx)(tz.A,{}),(0,i.jsx)(tF.A.Label,{children:e.label})]},t))]}):null}function tY({children:e,input:t,style:n}){return(0,i.jsxs)(tF.A,{disabled:!0,required:t.required,style:{marginLeft:”15px”,marginRight:”15px”,…n},children:[(0,i.jsx)(tF.A.Label,{className:”YamlTemplateContent-module__FormControl_Label–vwL3i”,children:t.label}),t.description&&(0,i.jsx)(tF.A.Caption,{children:(0,i.jsx)(eZ.vb,{html:t.description})}),e]})}try{t$.displayName||(t$.displayName=”YamlTemplateContent”)}catch{}try{tM.displayName||(tM.displayName=”MarkdownTableCell”)}catch{}try{tW.displayName||(tW.displayName=”TemplateInput”)}catch{}try{tH.displayName||(tH.displayName=”MarkdownInput”)}catch{}try{tU.displayName||(tU.displayName=”DropdownInput”)}catch{}try{tV.displayName||(tV.displayName=”InputInput”)}catch{}try{tK.displayName||(tK.displayName=”TextareaInput”)}catch{}try{tG.displayName||(tG.displayName=”CheckboxesInput”)}catch{}try{tY.displayName||(tY.displayName=”InputWrapper”)}catch{}let tq=(0,v.lazy)(()=>n.e(69994).then(n.bind(n,69994))),tQ=(0,v.lazy)(()=>n.e(33671).then(n.bind(n,33671)));function tX({setOpenPanel:e,codeNavInfo:t,validCodeNav:n,onCodeNavTokenSelected:a,onLineStickOrUnstick:s,searchResults:l,setSearchTerm:o,blobLinesHandle:c,focusedSearchResult:d}){let h=!!(0,ec.O)(),{rawLines:m}=(0,ed.A)(),{sendRepoKeyDownEvent:p}=(0,T.T)(),{findInFileShortcut:f}=(0,u.wk)(),x=eO(),{setFindInFileOpen:y}=eC(),b=x===eD,g=b&&null!=m&&n?f.hotkey:””,j=(0,e_.fY)();(0,v.useEffect)(()=>{b||e(void 0)},[b,e]);let N=b||”CSV”===x||x===eB?{}:{overflow:”auto”};return(0,i.jsxs)(S.az,{as:”section”,”aria-labelledby”:”file-name-id-wide file-name-id-mobile”,sx:{backgroundColor:”var(–bgColor-default, var(–color-canvas-default))”,border:”0px”,borderWidth:0,borderRadius:”0px 0px 6px 6px”,p:0,minWidth:0,mt:h?”92px”:”46px”,…x===eB?{justifyContent:”center”}:{},…N},children:[(0,i.jsx)(tZ,{blobLinesHandle:c,onCodeNavTokenSelected:a,codeSections:h?void 0:t?.codeSections,codeLineToSectionMap:t?t.lineToSectionMap:void 0,validCodeNav:n,onLineStickOrUnstick:s,searchResults:l,focusedSearchResult:d}),b&&!j&&(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:g,onButtonClick:function(){y(!0),p(“BLOB_FIND_IN_FILE_MENU.OPEN”);let e=window.getSelection()?.toString();e&&o(e)},buttonTestLabel:”hotkey-button”})]})}let tZ=v.memo(function({onCodeNavTokenSelected:e,codeSections:t,codeLineToSectionMap:n,validCodeNav:a,onLineStickOrUnstick:r,searchResults:s,blobLinesHandle:l,focusedSearchResult:o}){let c=(0,ed.A)(),d=eO();switch(d){case eL:return(0,i.jsxs)(S.az,{sx:{textAlign:”center”},”data-hpc”:!0,children:[(0,i.jsx)(Y.A,{href:c.rawBlobUrl,children:”View raw”}),c.large&&(0,i.jsx)(“p”,{children:”(Sorry about that, but we can\u2019t show files that are this big right now.)”})]});case eD:return(0,i.jsx)(tL,{blobLinesHandle:l,onCodeNavTokenSelected:e,codeSections:t,codeLineToSectionMap:n,validCodeNav:a,onLineStickOrUnstick:r,searchResults:s,focusedSearchResult:o});case eB:return(0,i.jsx)(ez,{richText:c.richText,sx:{borderBottomLeftRadius:”6px”,borderBottomRightRadius:”6px”,p:5,minWidth:0}});case”CSV”:return(0,i.jsx)(v.Suspense,{fallback:(0,i.jsx)(eP.f,{}),children:(0,i.jsx)(tq,{csv:c.csv})});case eI:return(0,i.jsx)(v.Suspense,{fallback:(0,i.jsx)(eP.f,{}),children:(0,i.jsx)(tQ,{identityUuid:c.renderedFileInfo.identityUUID,size:c.renderedFileInfo.size,type:c.renderedFileInfo.renderFileType,url:c.displayUrl},c.renderedFileInfo.identityUUID)});case eT:return(0,i.jsx)(tB,{displayName:c.displayName,displayUrl:c.displayUrl});case eA:return(0,i.jsx)(t$,{issueTemplate:c.issueTemplate?c.issueTemplate:c.discussionTemplate,type:c.issueTemplate?tP:”discussion”,”data-hpc”:!0});default:eE(d)}});try{tq.displayName||(tq.displayName=”CSVBlob”)}catch{}try{tQ.displayName||(tQ.displayName=”FileRendererBlob”)}catch{}try{tX.displayName||(tX.displayName=”BlobContent”)}catch{}try{tZ.displayName||(tZ.displayName=”Blob”)}catch{}var tJ=n(41461),t0=n(49884),t1=n(5839),t2=n(26108),t3=n(21373),t4=n(23657),t6=n(46251),t5=n(44956),t7=n(6236),t8=n(72011),t9=n(97665),ne=n(94747),nt=n(31971);let nn=e=>{let t=(0,t9.jE)(),{mutateAsync:n,…i}=(0,ne.n)({onSuccess:async()=>{t.invalidateQueries({queryKey:t8.O6}),e&&await t.invalidateQueries({queryKey:(0,t8.dp)(e)}),await Promise.all([“starred”,”user_owned”,”org_owned”,”shared_with_user”].map(e=>t.invalidateQueries({queryKey:(0,t8.X_)(e)}))),await t.invalidateQueries({queryKey:t8.Ku})},mutationFn:async t=>{let n=e?(0,t4.fn)(e):”/custom_copilots”,i={custom_copilot:{name:t.name,owner_id:t.owner_id,owner_type:t.owner_type,resources_attributes:t.resources?.map(e=>({id:e.databaseId,copilot_chat_attachment_id:e.copilotChatAttachmentId,resource_type:e.type,_destroy:e.markedForDestroy,metadata:(0,nt.M)(e)}))}},a=await (0,ev.lS)(n,{method:e?”PUT”:”POST”,body:i}),r=await a.json();if(!a.ok)throw r.errorMessages;return r}});return{upsertCopilotSpace:n,…i}};function ni({closeDialog:e,currentFile:t,returnFocusRef:n}){let a=(0,v.useRef)(null),[r,s]=(0,v.useState)(“”),[l,o]=(0,v.useState)({}),{upsertCopilotSpace:c,isPending:d}=nn(),[u,h]=(0,v.useState)(null),m=(0,v.useCallback)(e=>h(e),[]),p=(0,v.useCallback)(e=>{let t={…l};for(let n of e)t[n]&&delete t[n];o(t)},[l]),f=async()=>{if(!d)try{let n=[];t&&n.push({id:””,repositoryId:t.repoID,nwo:`${t.repoOwner}/${t.repoName}`,filePath:t.path,sha:t.commitOID,fileExists:!0,type:”github_file”,markedForDestroy:!1});let i={name:r,owner_id:u?.id,owner_type:u?.type,resources:n};await c(i),o({}),e(),(0,en.BI)(“copilot_spaces.code_view”,{target:”COPILOT_SPACES_CODE_VIEW_MENU_SPACE_CREATED”})}catch(e){o(e??{})}},x=()=>{e()};return(0,i.jsx)(tk.l,{position:{narrow:”fullscreen”},title:”Create a new Space”,onClose:e,width:”large”,”aria-label”:”Create a new Space”,returnFocusRef:n,renderFooter:()=>(0,i.jsx)(t5.m,{onCancel:x,onSave:f,isLoading:d,saveButtonText:”Create”}),children:(0,i.jsx)(“form”,{onSubmit:async e=>{e.preventDefault(),e.stopPropagation(),await f()},children:(0,i.jsxs)(t6.B,{children:[(0,i.jsxs)(tF.A,{children:[(0,i.jsx)(tF.A.Label,{required:!0,children:”Name”}),(0,i.jsx)(tO.A,{ref:a,autoFocus:!0,block:!0,”data-testid”:”copilot-space-name-input”,name:”copilot-space-name”,maxLength:255,value:r,onChange:e=>{s(e.target.value),p([“name”,”slug”])}}),(0,i.jsxs)(tF.A.Caption,{children:[r.length,”/”,255]}),l.name?(0,i.jsx)(tF.A.Validation,{variant:”error”,children:(0,i.jsxs)(“span”,{children:[“Name “,l.name]})}):l.slug?(0,i.jsx)(tF.A.Validation,{variant:”error”,children:(0,i.jsx)(“span”,{children:t4.j0})}):null]}),(0,i.jsx)(t7.E,{onSelect:m,repoId:t?.repoID})]})})})}try{ni.displayName||(ni.displayName=”SpacesSelectionCreateSpaceDialog”)}catch{}var na=n(23967),nr=n(79064);function ns({repository:e,currentFile:t,onBannerChange:n}){let[a,r]=(0,v.useState)(!1),s=(0,v.useRef)(!1),l=(0,v.useRef)(null),[o,c]=(0,v.useState)(“”),[d,u]=(0,v.useState)(“”),[h,m]=(0,v.useState)(!1),[p,f]=(0,v.useState)([]),[x,y]=(0,v.useState)([]),[b,g]=(0,v.useState)(!1),[j,N]=(0,v.useState)(!1),[w,_]=(0,v.useState)(void 0),[k,S]=(0,v.useState)(!1),{upsertCopilotSpace:C}=nn(w),I=(0,v.useMemo)(()=>{let e=t.path.split(“/”).pop()||””,n=e.lastIndexOf(“.”),i=n>0?e.slice(n+1):””;return””===i||Object.values(na.r4).some(e=>e.extensions?.includes(`.${i}`))},[t.path]);(0,v.useEffect)(()=>{if(!s.current||!w)return;let e={id:””,repositoryId:t.repoID,nwo:`${t.repoOwner}/${t.repoName}`,filePath:t.path,sha:t.commitOID,fileExists:!0,type:”github_file”,markedForDestroy:!1};(async()=>{try{if(await C({resources:[e]}),S(!1),r(!1),n&&w){let e=(0,t4.Cb)({id:w.id,owner:w.owner});n({variant:”success”,onDismiss:()=>n(null),title:”none”,description:(0,i.jsxs)(i.Fragment,{children:[“File added to”,” “,(0,i.jsx)(Y.A,{href:e,inline:!0,children:w.name}),” “,”successfully”]}),hideTitle:!0,style:{marginBottom:”16px”}})}c(“”),u(“”),setTimeout(()=>(0,$.i)(`File added to ${w.name} successfully.`),250)}catch{S(!0),n&&(n({variant:”critical”,onDismiss:()=>n(null),title:”none”,description:”There was an error adding the file to the space.”,hideTitle:!0,style:{marginBottom:”16px”}}),setTimeout(()=>(0,$.i)(“There was an error adding the file to the space”),250))}finally{s.current=!1}})()},[w,C,t,n]);let T=(0,v.useCallback)(async()=>{try{let t=new URLSearchParams({q:d,owner:e.private?e.ownerLogin:””,editable_only:”true”}),n=await (0,ev.lS)(`/github-copilot/chat/custom_copilots/search?${t.toString()}`);if(!n.ok)throw Error(“Failed to fetch spaces”);return await n.json()}catch{return[]}},[d,e.private,e.ownerLogin]),L=(0,v.useCallback)(()=>{let t=nr.Jt.getLastSelectedSpace(),n=x;if(t){if(t.ownerIsOrg&&t.owner!==e.ownerLogin&&e.private){nr.Jt.setLastSelectedSpace(void 0),f(x);return}(n=n.filter(e=>e.id!==t.id||e.owner!==t.owner)).length===x.length&&n.pop(),n=[t,…n]}f(n)},[x,e.ownerLogin,e.private]);(0,v.useEffect)(()=>{let e=!1;return(async()=>{if(!1===a)return;if(m(!0),””===d&&b){e||(L(),m(!1));return}let t=await T();e||(f(t),b||(y(t),g(!0)),m(!1))})(),()=>{e=!0}},[T,d,b,a,L]),(0,v.useEffect)(()=>()=>{O.current&&clearTimeout(O.current)},[]);let B=p.map(e=>({id:`${e.owner}-${e.id}`,key:`${e.owner}-${e.id}`,text:e.name,description:e.owner,descriptionVariant:”inline”,value:`${e.owner}-${e.id}`,trailingVisual:e.starred?()=>(0,i.jsx)(A.StarFillIcon,{className:”SpacesSelectionMenu-module__starButton–EpO1d”}):void 0})),D=()=>{N(!0),(0,en.BI)(“copilot_spaces.code_view”,{target:”COPILOT_SPACES_CODE_VIEW_MENU_CREATE_SPACE_CLICKED”}),r(!1)},O=(0,v.useRef)(null);return I?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t1.X,{title:”Select a space”,onCancel:()=>r(!1),anchorRef:l,renderAnchor:e=>(0,i.jsx)(t2.K,{icon:A.SpaceIcon,size:”small”,”aria-label”:”Add to space”,tooltipDirection:”n”,…e}),open:a,onOpenChange:e=>{!e&&(k||s.current)||(r(e),e?((0,en.BI)(“copilot_spaces.code_view”,{target:”COPILOT_SPACES_CODE_VIEW_MENU_OPENED”}),S(!1)):(c(“”),u(“”)))},loading:h,items:B,filterValue:o,onFilterChange:e=>{c(e),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{u(e)},350)},…{selected:void 0,onSelectedChange:e=>{let t;return S(!1),void(_(t=p.find(t=>`${t.owner}-${t.id}`===e?.id)),nr.Jt.setLastSelectedSpace(t),s.current=!0,(0,en.BI)(“copilot_spaces.code_view”,{target:”COPILOT_SPACES_CODE_VIEW_MENU_SPACE_SELECTED”}))}},overlayProps:{height:”auto”,width:”large”},message:0!==p.length||h?void 0:{title:”No spaces found”,body:”You can create a new space to get started.”,variant:”empty”,action:(0,i.jsx)(t3.Q,{variant:”default”,size:”small”,leadingVisual:A.PlusIcon,onClick:D,children:”Create a new space”})},secondaryAction:p.length>0?(0,i.jsx)(t1.X.SecondaryActionButton,{onClick:D,children:”Create a space”}):void 0}),j&&(0,i.jsx)(ni,{closeDialog:()=>N(!1),currentFile:t,returnFocusRef:l})]}):null}try{ns.displayName||(ns.displayName=”SpacesSelectionMenu”)}catch{}var nl=n(39803),no=n(69599),nc=n(61282),nd=n(41462),nu=n(43258),nh=n(25556);function nm(e,t,n){let a,r,s,l,o=(0,eJ.c)(11),[c,d]=(0,v.useState)(“”);o[0]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>{d(“”)},o[0]=a):a=o[0];let u=a;o[1]!==t?(r=e=>{d(e),t.current!==document.activeElement&&setTimeout(u,3e3)},o[1]=t,o[2]=r):r=o[2];let h=r;return o[3]!==t||o[4]!==e||o[5]!==c||o[6]!==n?(s=(0,i.jsx)(np,{message:c,id:e,contentRef:t,clearMessage:u,portalTooltipProps:n},e),o[3]=t,o[4]=e,o[5]=c,o[6]=n,o[7]=s):s=o[7],o[8]!==s||o[9]!==h?(l=[h,u,s],o[8]=s,o[9]=h,o[10]=l):l=o[10],l}function np(e){let t,n=(0,eJ.c)(6),{message:a,id:r,contentRef:s,clearMessage:l,portalTooltipProps:o}=e;return n[0]!==l||n[1]!==s||n[2]!==r||n[3]!==a||n[4]!==o?(t=a?(0,i.jsx)(nh.m,{id:r,contentRef:s,”aria-label”:a,open:!!a,onMouseLeave:l,”aria-live”:”assertive”,…o}):null,n[0]=l,n[1]=s,n[2]=r,n[3]=a,n[4]=o,n[5]=t):t=n[5],t}try{np.displayName||(np.displayName=”AlertTooltip”)}catch{}var nf=n(73783),nx=n(34164),ny=n(18096),nb=n(73722);function ng({disabled:e,…t}){let n=e?{“aria-disabled”:!0,onClick:e=>e.preventDefault()}:{};return(0,i.jsx)(t2.K,{size:”small”,…t,…n})}try{ng.displayName||(ng.displayName=”AccessibleIconButton”)}catch{}var nj=n(26607);let nN=(0,v.lazy)(()=>n.e(53902).then(n.bind(n,53902)));function nv({stickied:e,searchTerm:t,searchResults:n,setSearchTerm:a,focusedSearchResult:s,setFocusedSearchResult:l,onClose:o}){let c=(0,e_.fY)(),d=(0,v.useRef)(null),{findInFileShortcut:h,findSelectionShortcut:m,findNextShortcut:p,findPrevShortcut:f}=(0,u.wk)(),[x,y]=(0,v.useState)(!0),{sendRepoKeyDownEvent:b}=(0,T.T)(),g=e=>{void 0===s?l(0):1===e?l(s===n.length-1?0:s+1):l(0===s?n.length-1:s-1)};(0,v.useEffect)(()=>{d.current?.focus(),d.current?.select()},[]);let j=()=>{let e=window.getSelection()?.toString();e?.length&&(a(e),l(0),b(“BLOB_FIND_IN_FILE_MENU.FIND_IN_FILE_FROM_SELECTION”)),d.current?.focus(),d.current?.select()};return((0,v.useEffect)(()=>{n.length>0&&void 0!==s&&(0,ey.f)({line:n[s].lineNumber,column:n[s].ident.start.column})},[n,s]),c)?null:(0,i.jsxs)(“div”,{className:`find-in-file-popover ${e?”find-in-file-popover-stickied”:”find-in-file-popover-not-stickied”}`,children:[(0,i.jsxs)(S.az,{sx:{fontSize:0,py:2,pl:3,pr:2,borderBottom:”1px solid var(–borderColor-default, var(–color-border-default))”,display:”flex”,flexDirection:”row”,justifyContent:”center”,alignItems:”center”},children:[(0,i.jsxs)(S.az,{sx:{display:”flex”,flexDirection:”row”,alignItems:”baseline”},children:[(0,i.jsx)(S.EY,{as:”h5″,sx:{color:”fg.default”,pr:2,fontWeight:”bold”},children:”Find”}),(0,i.jsxs)(S.EY,{className:”find-text-help-tooltip”,sx:{color:”fg.subtle”,visibility:x?”visible”:”hidden”},children:[“Press “,(0,i.jsx)(nj.A,{children:h.text}),” again to open the browser’s find menu”]})]}),(0,i.jsx)(S.az,{sx:{flex:1}}),(0,i.jsx)(S.K0,{variant:”invisible”,size:”small”,onClick:o,icon:A.XIcon,sx:{color:”fg.subtle”},”aria-label”:”Close find in file”})]}),(0,i.jsxs)(S.az,{sx:{px:2,py:”6px”},children:[(0,i.jsx)(S.ks,{ref:d,sx:{pl:1,border:”none”,boxShadow:”none”},validationStatus:n.length>1e3?”error”:void 0,type:”text”,leadingVisual:()=>(0,i.jsx)(D.A,{icon:A.SearchIcon,”aria-hidden”:”true”}),”aria-labelledby”:”find-in-file-label”,”aria-expanded”:”true”,autoComplete:”off”,name:”Find in file input”,placeholder:”Search this file”,value:t,block:!0,onChange:e=>{e.target.value?(y(!1),a(e.target.value),void 0===s&&l(0)):(y(!0),a(“”),l(0))},trailingAction:(0,i.jsxs)(S.az,{sx:{display:”flex”,flexDirection:”row”,justifyContent:”center”,alignItems:”center”},children:[(0,i.jsxs)(S.EY,{className:”text-small”,sx:{textAlign:”center”,color:”fg.subtle”,m:2},children:[0===n.length||void 0===s?0:s+1,”/”,n.length]}),(0,i.jsx)(S.K0,{size:”small”,variant:”invisible”,onClick:()=>{g(-1)},icon:A.ChevronUpIcon,”aria-label”:”Up”,”data-testid”:”up-search”,sx:{color:”fg.subtle”}}),(0,i.jsx)(S.K0,{size:”small”,variant:”invisible”,onClick:()=>{g(1)},icon:A.ChevronDownIcon,”aria-label”:”Down”,”data-testid”:”down-search”,sx:{color:”fg.subtle”}})]}),onKeyDown:e=>{“Enter”===e.code||”NumpadEnter”===e.code?e.shiftKey?g(-1):g(1):(e.metaKey||e.ctrlKey)&&(“g”===e.key||”G”===e.key)?(e.preventDefault(),e.shiftKey?g(-1):g(1)):(e.metaKey||e.ctrlKey)&&(“f”===e.key||”F”===e.key)?x?(b(“BLOB_FIND_IN_FILE_MENU.FALLBACK_TO_BROWSER_SEARCH”),o()):(y(!0),e.preventDefault(),d.current?.focus(),d.current?.select()):”Escape”===e.key&&o()}}),(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:h.hotkey,onButtonClick:j,buttonTestLabel:”hotkey-button”}),(0,i.jsx)(“button”,{hidden:!0,”data-hotkey”:m.hotkey,onClick:j,”data-testid”:”selection-hotkey”}),(0,i.jsx)(“button”,{hidden:!0,”data-hotkey”:p.hotkey,onClick:()=>g(1),”data-testid”:”find-next-button”}),(0,i.jsx)(“button”,{hidden:!0,”data-hotkey”:f.hotkey,onClick:()=>g(-1),”data-testid”:”find-prev-button”}),(0,i.jsx)(v.Suspense,{fallback:null,children:(0,i.jsx)(nN,{definitionsOrReferences:n})})]})]})}try{nN.displayName||(nN.displayName=”ScrollMarks”)}catch{}try{nv.displayName||(nv.displayName=”FindInFilePopover”)}catch{}var nw=n(49799),n_=n(45385),nk=n(24494),nS=n(69497);function nC({showTitle:e=!0}){let{sendRepoClickEvent:t}=(0,T.T)(),[n,a]=(0,v.useState)(!1),r=(0,y.t)(),{refInfo:s,path:l}=(0,c.eu)(),{contributors:o,loading:d,error:u}=(0,n_.u)(r.ownerLogin,r.name,s.name,l);if(u)return(0,i.jsx)(nL,{});if(d)return(0,i.jsx)(nw.r,{width:100,”data-testid”:”contributors-skeleton”});if(!o||!o?.users.length)return null;let{users:h,totalCount:m}=o,p=nT(m,” contributor”,”contributors”);return(0,i.jsxs)(S.az,{sx:{display:”flex”,flexDirection:”row”,alignItems:”center”},children:[(0,i.jsx)(S.az,{sx:{display:”flex”,flexDirection:”row”},children:(0,i.jsx)(nk.A,{children:h.slice(0,10).map((e,t)=>(0,i.jsx)(eQ.r,{className:t>5?”AvatarShowLarge”:”AvatarShowMedium”,src:e.primaryAvatarUrl,alt:e.login,”data-testid”:”contributor-avatar”,”data-hovercard-url”:(0,G.dCN)({owner:e.login})},e.login))})}),(0,i.jsxs)(S.N_,{as:”button”,”aria-label”:`Show ${p}”`,onClick:()=>{a(!0),t(“CONTRIBUTORS.LIST.OPEN”)},”data-testid”:”contributors-count-button”,sx:{ml:2,color:”fg.default”},children:[(0,i.jsx)(D.A,{icon:A.PeopleIcon}),e&&(0,i.jsx)(S.EY,{className:”react-contributors-title”,sx:{mx:1,fontSize:0},children:”Contributors”}),(0,i.jsx)(S.$c,{sx:{mx:1,px:2,py:1},children:m})]}),n&&(0,i.jsx)(tk.l,{title:p,onClose:()=>a(!1),width:”medium”,height:o.totalCount>=12?”small”:”auto”,renderBody:()=>(0,i.jsx)(S.lF,{sx:{overflowY:”auto”,py:2},”data-testid”:”contributor-dialog-list”,children:h.map(e=>(0,i.jsx)(nI,{user:e},e.login))})})]})}function nI({user:e}){let{sendRepoClickEvent:t}=(0,T.T)(),{path:n,refInfo:a}=(0,c.eu)(),r=(0,y.t)();return(0,i.jsxs)(S.lF.Item,{sx:{display:”flex”,flexDirection:”row”,fontSize:1,py:2,color:”fg.default”,”&:hover”:{backgroundColor:”canvas.subtle”}},”data-testid”:”contributor-dialog-row”,onSelect:()=>t(“CONTRIBUTORS.LIST.USER”),children:[(0,i.jsxs)(S.N_,{as:eX.N,sx:{flex:1},muted:!0,to:e.profileLink,onClick:()=>t(“CONTRIBUTORS.LIST.USER”),children:[(0,i.jsx)(eQ.r,{src:e.primaryAvatarUrl,alt:e.login,sx:{mr:2},”aria-hidden”:”true”}),(0,i.jsx)(nS.A,{inline:!0,title:e.login,children:e.login})]}),(0,i.jsx)(S.lF.TrailingVisual,{children:(0,i.jsx)(S.N_,{as:eX.N,muted:!0,to:(0,G.MtY)({repo:r,branch:a.name,path:n,author:e.login}),onClick:()=>t(“CONTRIBUTORS.LIST.COMMITS”),”aria-label”:`${nT(e.commitsCount,”commit”,”commits”)} by ${e.login}`,”data-testid”:”commit-link”,children:nT(e.commitsCount,”commit”,”commits”)})})]})}function nT(e,t,n){return`${e} ${1===e?t:n}`}function nL(){return(0,i.jsxs)(S.EY,{sx:{color:”danger.fg”},children:[(0,i.jsx)(D.A,{icon:A.AlertFillIcon}),”\xa0Cannot retrieve contributors info at this time.”]})}try{nC.displayName||(nC.displayName=”ContributorAvatars”)}catch{}try{nI.displayName||(nI.displayName=”ContributorRow”)}catch{}try{nL.displayName||(nL.displayName=”ContributorsError”)}catch{}var nB=n(93753);let nA=”FileNameStickyHeader-module__GoToTopButton–Ubgke”;var nD=n(95723);function nO({fileNameId:e=”file-name-id”,id:t,size:n,showCopyPathButton:a}){let r=(0,y.t)(),{refInfo:s,path:l,action:o}=(0,c.eu)();return(0,i.jsx)(nD.Q,{path:l,repo:r,commitish:s.name,isFolder:”tree”===o,fileNameId:e,id:t,size:n,showCopyPathButton:a&&””!==l&&”/”!==l})}try{nO.displayName||(nO.displayName=”ReposHeaderBreadcrumb”)}catch{}let nE=()=>(0,i.jsx)(nO,{id:”sticky-breadcrumb”,fileNameId:”sticky-file-name-id”,size:”md”}),nR=({sx:e,className:t})=>(0,i.jsx)(S.$n,{leadingVisual:A.ArrowUpIcon,variant:”invisible”,size:”small”,sx:e,onClick:e=>{e.preventDefault(),window.scrollTo({top:0,behavior:”smooth”})},className:(0,nx.$)(“FileNameStickyHeader-module__Button–uOm_J”,t),children:”Top”});function nF({isStickied:e,showTree:t,treeToggleElement:n}){return(0,i.jsx)(S.az,{sx:{display:e?”flex”:”none”,minWidth:0,py:2,…e?{backgroundColor:”canvas.subtle”,borderLeft:”1px solid var(–borderColor-default, var(–color-border-default))”,borderRight:”1px solid var(–borderColor-default, var(–color-border-default))”}:{}},children:t?(0,i.jsxs)(“div”,{className:”FileNameStickyHeader-module__Box_5–o8uey”,children:[(0,i.jsx)(nE,{}),(0,i.jsx)(nR,{className:nA})]}):(0,i.jsxs)(“div”,{className:”FileNameStickyHeader-module__Box_1–IABVr”,children:[(0,i.jsxs)(“div”,{className:”FileNameStickyHeader-module__Box_2–lk5pv”,children:[e&&n,(0,i.jsx)(“div”,{className:”FileNameStickyHeader-module__Box_3–vcfl4″,children:(0,i.jsx)(nB.R,{buttonClassName:”ref-selector-class”})}),(0,i.jsx)(“div”,{className:”FileNameStickyHeader-module__Box_4–Vz8VN”,children:(0,i.jsx)(nE,{})})]}),(0,i.jsx)(nR,{className:nA})]})})}try{nE.displayName||(nE.displayName=”StickyReposHeaderBreadcrumb”)}catch{}try{nR.displayName||(nR.displayName=”GoToTopButton”)}catch{}try{nF.displayName||(nF.displayName=”FileNameStickyHeader”)}catch{}let nz=v.memo(nP);function nP(){let e=function(){let e=(0,eJ.c)(2),{resolvedColorScheme:t}=(0,S.DP)();if(t?.startsWith(“dark”)){let t;return e[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=Array(10).fill(null).map(e3),e[0]=t):t=e[0],t}{let t;return e[1]===Symbol.for(“react.memo_cache_sentinel”)?(t=Array(10).fill(null).map(e2),e[1]=t):t=e[1],t}}();return(0,i.jsxs)(“div”,{“aria-hidden”:!0,className:”BlameAgeLegend-module__Box–EZ5He”,children:[(0,i.jsx)(“span”,{className:”BlameAgeLegend-module__Text–bdSBv”,children:”Older”}),e.map((e,t)=>(0,i.jsx)(S.az,{sx:{backgroundColor:e},className:”BlameAgeLegend-module__Box_1–l6Ibv”},`blame-recency-color-${t}`)),(0,i.jsx)(“span”,{className:”BlameAgeLegend-module__Text_1–cLTTt”,children:”Newer”})]})}try{nP.displayName||(nP.displayName=”BlameAgeLegend”)}catch{}var n$=n(39768);function nM(){let{headerInfo:{isCSV:e,isRichtext:t,shortPath:n},renderedFileInfo:a,image:s,issueTemplate:l,discussionTemplate:o,viewable:c}=(0,ed.A)(),d=(0,ec.O)(),[h]=(0,ef.o)(),m=”1″===h.get(“plain”)||!!h.get(“short_path”)?.length,f=a&&!c||s,x=t||l||o||e||a,y=a?`short_path=${n}`:”plain=1″,{getUrl:b}=(0,p.Z)(),g=!x||m||d?d?2:1:0,[j,N]=(0,v.useState)(g);(0,e4.N)(()=>{N(g)},[g]);let w=(0,ef.Z)(),{viewCodeShortcut:_,viewPreviewShortcut:k,viewBlameShortcut:S}=(0,u.wk)(),C=e=>{if(x||(e+=1),N(e),j!==e)switch(e){case 0:w(b({action:”blob”,params:””,hash:””}));break;case 1:w(b({action:”blob”,params:x?y:””,hash:location.hash?.substring(1)??void 0}));break;case 2:w(b({action:”blame”,params:””,hash:location.hash?.substring(1)??void 0}))}};if(f)return null;let I=[(0,i.jsx)(n$.I.Button,{selected:1===j,”data-hotkey”:_.hotkey,children:”Code”},”raw”),(0,i.jsx)(n$.I.Button,{selected:2===j,”data-hotkey”:S.hotkey,children:”Blame”},”blame”)],T=(0,i.jsx)(n$.I.Button,{selected:0===j,”data-hotkey”:k.hotkey,children:”Preview”},”preview'”),L=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:_.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>(0,v.startTransition)(()=>C(+!!x))}),(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:S.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>(0,v.startTransition)(()=>C(x?2:1))}),x&&(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:k.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>(0,v.startTransition)(()=>C(0))})]}),B=x?f?[T]:[T,…I]:[…I];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n$.I,{“aria-label”:”File view”,size:”small”,onChange:C,className:”BlobTabButtons-module__SegmentedControl–UrXKO”,children:B}),L]})}try{nM.displayName||(nM.displayName=”BlobTabButtons”)}catch{}var nW=n(55255),nH=n(10436),nU=n(47416);let nV=”CodeSizeDetails-module__Text–vK6rK”;function nK({className:e}){let{codeownerInfo:t}=(0,nU.Y_)(),{helpUrl:n}=(0,c.sq)(),a=(0,ed.A)(),{path:r,refInfo:s}=(0,c.eu)(),l=(0,y.t)(),o=(0,ec.O)(),{headerInfo:{blobSize:d,isGitLfs:u,lineInfo:{truncatedLoc:h,truncatedSloc:m},mode:p},viewable:f,rawLines:x}=a,b=”symbolic link”===p?function({rawLines:e,blame:t,repo:n,refInfo:i,path:a}){if(!e||!e[0])return null;let r=e[0];r.startsWith(“/”)||/^[a-zA-Z]:\\/.test(r)||(r=`${a}/../${r}`);let s={owner:n.ownerLogin,repo:n.name,commitish:i.name,filePath:r};return t?(0,G.buO)(s):(0,G.nD_)(s)}({rawLines:x,blame:o,repo:l,refInfo:s,path:r}):void 0;return(0,i.jsx)(“div”,{className:(0,nx.$)(e,”CodeSizeDetails-module__Box–g57tw”),children:(0,i.jsxs)(“div”,{className:(0,nx.$)(“text-mono”,”CodeSizeDetails-module__Box_1–mgPJs”),children:[“file”!==p&&!b&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nS.A,{title:p,inline:!0,className:”CodeSizeDetails-module__Truncate–JTd_Z”,children:(0,i.jsx)(“span”,{children:p})}),f&&(0,i.jsx)(“span”,{className:nV,children:”\xb7″})]}),f?(0,i.jsxs)(i.Fragment,{children:[b&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.N_,{as:eX.N,muted:!0,to:b,className:”CodeSizeDetails-module__PrimerLink–Jd0de”,children:”Symbolic Link”}),(0,i.jsx)(“span”,{className:nV,children:”\xb7″})]}),(0,i.jsx)(nS.A,{maxWidth:”100%”,title:d,inline:!0,”data-testid”:”blob-size”,className:”CodeSizeDetails-module__Truncate_1–SXHND”,children:(0,i.jsx)(“span”,{children:`${h} lines (${m} loc) \xb7 ${d}`})})]}):(0,i.jsx)(“span”,{children:d}),t&&(0,i.jsx)(nG,{codeownerInfo:t}),u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“span”,{className:”file-info-divider”}),(0,i.jsx)(S.N_,{muted:!0,href:`${n}/articles/versioning-large-files/`,”aria-label”:”Learn more about Git LFS”,className:”CodeSizeDetails-module__PrimerLink_1–FIJwd”,children:(0,i.jsx)(nH.m4,{icon:A.QuestionIcon})}),(0,i.jsx)(“span”,{children:” Stored with Git LFS”})]})]})})}function nG({codeownerInfo:{codeownerPath:e,ownedByCurrentUser:t,ownersForFile:n,ruleForPathLine:a}}){var r,s,l;let o;if(!(t||n))return null;let c=(r=t,s=n,l=a,o=”Owned by “,r&&(o+=”you”,s&&(o+=” along with “)),o+=s,l&&(o+=` (from CODEOWNERS line ${l})`),o),d=t?{color:”var(–fgColor-accent, var(–color-accent-fg))”}:{};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“span”,{className:”CodeSizeDetails-module__Text_1–Jh7Af”,children:” \xb7 “}),(0,i.jsx)(nW.A,{id:”codeowners-tooltip”,”aria-label”:c,wrap:!0,className:”CodeSizeDetails-module__Tooltip–gy_bK”,children:e?(0,i.jsx)(S.N_,{“aria-labelledby”:”codeowners-tooltip”,href:e,muted:!t,sx:d,children:(0,i.jsx)(nH.m4,{icon:A.ShieldLockIcon})}):(0,i.jsx)(nH.m4,{icon:A.ShieldLockIcon,sx:d})})]})}try{nK.displayName||(nK.displayName=”CodeSizeDetails”)}catch{}try{nG.displayName||(nG.displayName=”CodeOwnersBadge”)}catch{}var nY=n(39111);function nq({editEnabled:e,githubDevUrl:t,ghDesktopPath:n,onBranch:a}){let{sendRepoClickEvent:r}=(0,T.T)(),s=(0,nY.X)([“windows”,”mac”]),{openWithGitHubDevShortcut:l}=(0,u.wk)();return(0,i.jsxs)(tD.l.Group,{children:[(0,i.jsx)(tD.l.GroupHeading,{children:”Open with…”}),t?(0,i.jsxs)(tD.l.LinkItem,{onClick:()=>r(“BLOB_EDIT_DROPDOWN.DEV_LINK”,{edit_enabled:e}),className:”js-blob-dropdown-click js-github-dev-shortcut”,href:t,”data-hotkey”:l.hotkey,children:[“github.dev”,(0,i.jsx)(tD.l.TrailingVisual,{“aria-hidden”:”true”,children:(0,i.jsx)(I.E,{children:(0,i.jsx)(“kbd”,{children:”.”})})})]}):null,a&&s&&n?(0,i.jsx)(tD.l.LinkItem,{onClick:()=>r(“BLOB_EDIT_DROPDOWN.DESKTOP”),href:n,children:”GitHub Desktop”}):null]})}function nQ(e,t,n){let i=(0,nY.X)([“windows”,”mac”]);return!!(e||t&&i&&n)}try{nq.displayName||(nq.displayName=”OpenWithActionItems”)}catch{}function nX({editAllowed:e,hasOpenWithItem:t}){let n=(0,ed.A)(),{refInfo:a}=(0,c.eu)(),{canEdit:r}=a,{githubDevUrl:s}=(0,c.sq)(),{sendRepoClickEvent:l}=(0,T.T)(),{getUrl:o}=(0,p.Z)(),{defaultBranch:d}=(0,y.t)(),{headerInfo:{ghDesktopPath:u,onBranch:h}}=n,m=a.name===d,f=!!a.canEditOnDefaultBranch&&!m;return(0,i.jsxs)(i.Fragment,{children:[e&&(0,i.jsxs)(tD.l.Group,{children:[(0,i.jsx)(tD.l.GroupHeading,{children:”Edit file…”}),f?(0,i.jsxs)(tD.l.LinkItem,{onClick:()=>l(“BLOB_EDIT_DROPDOWN.ON_DEFAULT_BRANCH”),href:o({action:”edit”,commitish:d}),children:[“On “,(0,i.jsx)(“code”,{children:d}),” branch”]}):(0,i.jsxs)(tD.l.LinkItem,{onClick:()=>l(“BLOB_EDIT_DROPDOWN.IN_PLACE”),href:o({action:”edit”}),”data-hotkey”:”e”,children:[“In place”,(0,i.jsx)(tD.l.TrailingVisual,{“aria-hidden”:”true”,children:(0,i.jsx)(I.E,{children:(0,i.jsx)(“kbd”,{children:”e”})})})]})]}),e&&t&&(0,i.jsx)(tD.l.Divider,{}),t&&(0,i.jsx)(nq,{editEnabled:r,githubDevUrl:s,ghDesktopPath:u,onBranch:h})]})}try{nX.displayName||(nX.displayName=”EditMenuActionItems”)}catch{}function nZ({shortcut:e}){return(0,i.jsx)(i.Fragment,{children:e.text?.split(” “).map(e=>(0,i.jsxs)(v.Fragment,{children:[(0,i.jsx)(“kbd”,{children:e}),” “]},e))})}try{nZ.displayName||(nZ.displayName=”KeyboardVisual”)}catch{}var nJ=n(29e3);function n0(){return(0,ed.A)().workflowRedirectUrl}function n1({onBlamePage:e,onDismiss:t,maxLineNumber:n}){let a=(0,ef.Z)(),r=(0,e_.fY)(),s=(0,e_.aM)(),l=(0,e_.ue)(),o=(0,v.useRef)(r?s:1),d=(0,v.useRef)(!0),[u,h]=(0,v.useState)(!0),m=(0,v.useRef)(s!==l&&r?l:null),{refInfo:p,path:f}=(0,c.eu)(),x=(0,y.t)(),b=(0,v.useRef)(null),g=(0,v.useRef)(o.current?`#L${o.current}${m.current?`-L${m.current}`:””}`:””),j=e?(0,G.buO)({repo:x.name,owner:x.ownerLogin,filePath:f,commitish:p.name}):(0,G.nD_)({repo:x.name,owner:x.ownerLogin,filePath:f,commitish:p.name});(0,v.useEffect)(()=>{b&&b.current&&(b.current.value=r?`${s}${l!==s?`-${l}`:””}`:”1″,b.current.focus())},[]);let N=(e,n)=>{a(`${e}${n}`);let i=(0,eh.$c)(n);if(!i.blobRange?.start?.line||!d.current){h(d.current),setTimeout(()=>{b.current?.focus()},25);return}(0,ey.f)({line:i.blobRange.start.line}),t()};return(0,tS.createPortal)((0,i.jsxs)(nJ.A,{isOpen:!0,onDismiss:t,children:[(0,i.jsx)(nJ.A.Header,{children:”Jump to line”}),(0,i.jsxs)(S.az,{sx:{display:”flex”,pl:3,pr:3,pt:3,pb:3*!!u},children:[(0,i.jsx)(S.az,{sx:{display:”flex”,flexGrow:1,mr:2},children:(0,i.jsx)(S.ks,{ref:b,”aria-invalid”:!u,”aria-describedby”:u?””:”goToLineErrorValidation”,sx:{flexGrow:1,pr:2},placeholder:”Jump to line…”,onChange:e=>{let t=e.target.value;b&&b.current&&(b.current.value=t),function(e){let t=!0;if(“”===e.trim()&&(o.current=1),e.startsWith(“-“)&&n){let i=parseInt(e,10);if(!Number.isNaN(i)&&i<0){let e=n+i+1;e<=0&&(e=1,t=!1),o.current=e}}else if(e.includes("-")){let[i,a]=e.split("-"),r=parseInt(i,10),s=parseInt(a,10);!Number.isNaN(r)&&r>0&&(o.current=n?Math.min(r,n):r,t=void 0!==n&&r<=n),!Number.isNaN(s)&&s>0&&(m.current=n?Math.min(s,n):s,t=t&&void 0!==n&&s<=n)}else{let i=parseInt(e,10);!Number.isNaN(i)&&i>0?(o.current=n?Math.min(i,n):i,t=void 0!==n&&i<=n):t=""===e}d.current=t,t&&!u&&h(!0),g.current=`#L${o.current}${m.current?`-L${m.current}`:""}`}(t)},onFocus:()=>{b&&b.current&&b.current.select()},onKeyDown:e=>{if(“Enter”===e.key){if(“Enter”===e.key&&!d.current){h(d.current),setTimeout(()=>{b.current?.focus()},25);return}N(j,g.current)}}})}),(0,i.jsx)(S.z9,{href:u?j+g.current:void 0,onClick:e=>{e.preventDefault(),N(j,g.current)},sx:tJ.E,children:”Go”})]}),!u&&(0,i.jsx)(S.az,{role:”alert”,id:”goToLineErrorValidation”,sx:{display:”flex”,p:2,justifyContent:”center”,color:”red”},children:”Invalid line number”})]}),document.body)}try{n1.displayName||(n1.displayName=”GoToLineDialog”)}catch{}var n2=n(60971),n3=n(6873);function n4(){let e=(0,y.t)(),{path:t,refInfo:n}=(0,c.eu)();return n.canEdit?(0,i.jsx)(tD.l.LinkItem,{as:eX.N,to:(0,G.IO9)({repo:e,path:t,commitish:n.name,action:”tree/delete”}),children:(0,i.jsx)(S.EY,{sx:{color:”danger.fg”},children:”Delete directory”})}):null}try{n4.displayName||(n4.displayName=”DeleteDirectoryItem”)}catch{}let n6=(0,v.lazy)(()=>Promise.all([n.e(30587),n.e(347),n.e(81028),n.e(46728),n.e(86093),n.e(5924)]).then(n.bind(n,86093)));function n5({webCommitInfo:e,isBlob:t}){let[n,a]=(0,v.useState)(“closed”),r=(0,v.useRef)(null),s=(0,y.t)(),{refInfo:l,path:o}=(0,c.eu)(),{helpUrl:d}=(0,c.sq)(),u=(0,G.IO9)({repo:s,commitish:l.name,action:t?”blob”:”tree”,path:o});return e.shouldFork||e.shouldUpdate||e.lockedOnMigration?null:(0,i.jsxs)(“div”,{className:”DeleteHeaderButtons-module__Box–WKomk”,children:[(0,i.jsx)(t3.Q,{as:eX.N,to:u,children:”Cancel changes”}),(0,i.jsx)(t3.Q,{variant:”primary”,ref:r,onClick:()=>{(0,v.startTransition)(()=>{a(“pending”)})},children:”Commit changes…”}),(“pending”===n||”saving”===n)&&(0,i.jsx)(v.Suspense,{fallback:null,children:(0,i.jsx)(n6,{isNewFile:!1,isDelete:!0,helpUrl:d,ownerName:s.ownerLogin,dialogState:n,setDialogState:a,refName:l.name,placeholderMessage:`Delete ${o}${t?””:” directory”}`,webCommitInfo:e,returnFocusRef:r})})]})}try{n6.displayName||(n6.displayName=”WebCommitDialog”)}catch{}try{n5.displayName||(n5.displayName=”DeleteHeaderButtons”)}catch{}let n7=(0,eM.A)(“localStorage”);function n8({symbolsEnabled:e}){let{codeFoldingOption:t,codeWrappingOption:n,codeCenterOption:a,openSymbolsOption:r}=(0,N.ud)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n9,{option:t}),(0,i.jsx)(n9,{option:n}),(0,i.jsx)(n9,{option:a}),e&&(0,i.jsx)(n9,{option:r})]})}function n9({option:e}){let t=(0,v.useCallback)(()=>{(0,v.startTransition)(()=>e.setEnabled(!e.enabled)),n7.setItem(e.name,String(!e.enabled)),e.name===N.T2&&ew(null,null,!e.enabled)},[e]);return(0,i.jsx)(tD.l.Item,{selected:e.enabled,onSelect:t,children:e.label},e.name)}try{n8.displayName||(n8.displayName=”SettingsMenuItems”)}catch{}try{n9.displayName||(n9.displayName=”OptionsElement”)}catch{}function ie({payload:e,showTree:t,treeToggleElement:n,validCodeNav:a,onFindFilesShortcut:r}){let{codeCenterOption:s}=(0,N.ud)();return(0,i.jsx)(“div”,{className:(0,nx.$)(“container”,”CodeViewHeader-module__Box–iIXFW”),children:(0,i.jsx)(“div”,{className:”px-3 pt-3 pb-0″,id:”StickyHeader”,children:(0,i.jsx)(“div”,{className:”CodeViewHeader-module__Box_1–aCFlZ”,children:(0,i.jsxs)(“div”,{className:”CodeViewHeader-module__Box_2–Nk8st”,children:[t?(0,i.jsx)(“div”,{className:”CodeViewHeader-module__Box_6–LXUKx”,children:(0,i.jsx)(nO,{id:”repos-header-breadcrumb–wide”,fileNameId:”file-name-id-wide”,showCopyPathButton:!0})}):(0,i.jsxs)(“div”,{className:(0,nx.$)(“react-code-view-header-wrap–narrow”,”CodeViewHeader-module__Box_3–qOof0″),children:[(0,i.jsx)(S.az,{sx:{display:”block”,”@media screen and (min-width: 1360px)”:{display:s.enabled?”none”:”block”},mr:2},children:n}),(0,i.jsx)(“div”,{className:”react-code-view-header-mb–narrow mr-2″,children:(0,i.jsx)(nB.R,{buttonClassName:”ref-selector-class”,idEnding:”repos-header-ref-selector-wide”})}),(0,i.jsx)(“div”,{className:(0,nx.$)(“react-code-view-header-mb–narrow”,”CodeViewHeader-module__Box_5–gX0kP”),children:(0,i.jsx)(nO,{id:”repos-header-breadcrumb”,fileNameId:”file-name-id”,showCopyPathButton:!0})})]}),(0,i.jsx)(“div”,{className:”react-code-view-header-element–wide”,children:(0,i.jsx)(it,{payload:e,onFindFilesShortcut:r,narrow:!1,showTree:t,validCodeNav:a})}),(0,i.jsx)(“div”,{className:”react-code-view-header-element–narrow”,children:(0,i.jsx)(it,{payload:e,onFindFilesShortcut:r,narrow:!0,showTree:t,validCodeNav:a})})]})})})})}function it({payload:e,onFindFilesShortcut:t,narrow:n,showTree:a,validCodeNav:r}){let s=(0,ny.y)(),{findFileWorkerPath:l,githubDevUrl:o}=(0,c.sq)(),d=(0,y.t)(),{refInfo:h,modelsRepoIntegrationEnabled:m,path:p}=(0,c.eu)(),{openWithGitHubDevShortcut:f,openWithGitHubDevInNewWindowShortcut:b}=(0,u.wk)(),j=(0,v.useRef)(null),N=(0,no.G7)(“copilot_agent_tasks_btn_code_nav”)&&(e.copilotSWEAgentEnabled??!1),w=!a&&(0,i.jsxs)(“div”,{children:[(0,i.jsx)(n3.default,{commitOid:h.currentOid,findFileWorkerPath:l,searchBoxRef:j,config:{enableOverlay:!0},className:”CodeViewHeader-module__FileResultsList–jfr5L”}),(0,i.jsx)(g.H,{inputRef:j,onFindFilesShortcut:t,textAreaId:ex.wQ})]});return(0,i.jsx)(“div”,{className:”CodeViewHeader-module__Box_7–dBydM”,children:(0,i.jsxs)(“div”,{className:”d-flex gap-2″,children:[(0,x.mM)(e)&&(0,i.jsxs)(ed.s,{blob:e.blob,children:[!n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ir,{}),w]}),(0,i.jsx)(iu,{onCopy:s,narrow:n,validCodeNav:r,copilotAccessAllowed:e.copilotAccessAllowed??!1})]}),m&&e.path?.match(/\.prompt\.(yml|yaml)$/)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(t3.Q,{as:eX.N,to:(0,G.afT)({repo:d,path:e.path,commitish:h.name,action:”edit”}),children:”Edit prompt”})}),(0,x.Hf)(e)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nd.W,{as:”h2″,text:”Directory actions”}),!n&&(0,i.jsxs)(i.Fragment,{children:[w,(0,i.jsx)(n2.L,{}),N&&(0,i.jsx)(nc.V,{isIconButton:!0,currentRepo:d,currentReference:{path:p},hideRepoSelector:!0,eventType:”new_agent_task_button_codenav”})]}),(0,i.jsx)(ii,{narrow:n}),(0,i.jsx)(Y.A,{className:”js-github-dev-shortcut d-none”,”data-hotkey”:f.hotkey,href:o}),(0,i.jsx)(Y.A,{className:”js-github-dev-new-tab-shortcut d-none”,”data-hotkey”:b.hotkey,href:o,target:”_blank”})]}),(0,x.iS)(e)&&(0,i.jsx)(n5,{webCommitInfo:e.webCommitInfo,isBlob:e.deleteInfo.isBlob})]})})}function ii({narrow:e}){let{refInfo:t,path:n}=(0,c.eu)(),a=(0,y.t)(),{sendRepoClickEvent:s}=(0,T.T)(),{addToast:l}=(0,nu.Y6)(),{createPermalink:o}=(0,p.Z)(),{copyFilePathShortcut:d,copyPermalinkShortcut:h}=(0,u.wk)(),{codeCenterOption:m}=(0,N.ud)(),f=(0,v.useRef)(null),[x,b,g]=nm(“raw-copy-message-tooltip”,f,{direction:”nw”});return(0,i.jsxs)(i.Fragment,{children:[d.hotkey&&(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:d.hotkey,onButtonClick:()=>{(0,nl.D)(n),l({type:”success”,message:”Path copied!”})}}),h.hotkey&&(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:h.hotkey,onButtonClick:()=>{(0,nl.D)(o({absolute:!0})),l({type:”success”,message:”Permalink copied!”})}}),(0,i.jsx)(nd.W,{as:”h2″,text:”More options”}),g,(0,i.jsxs)(tA.W,{onOpenChange:e=>e&&s(“MORE_OPTIONS_DROPDOWN”),anchorRef:f,children:[(0,i.jsx)(tA.W.Anchor,{children:(0,i.jsx)(t2.K,{icon:A.KebabHorizontalIcon,”aria-label”:”More options”,size:”medium”,title:”More options”,”data-testid”:”tree-overflow-menu-anchor”,onBlur:b,className:”CodeViewHeader-module__IconButton–JUv3R”})}),(0,i.jsx)(tA.W.Overlay,{width:”small”,children:(0,i.jsxs)(tD.l,{children:[e&&t.canEdit&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(tD.l.LinkItem,{as:eX.N,onClick:()=>s(“NEW_FILE_BUTTON”),to:(0,G.IO9)({repo:a,path:n,commitish:t.name,action:”new”}),children:[(0,i.jsx)(tD.l.LeadingVisual,{children:(0,i.jsx)(A.PlusIcon,{})}),”Create new file”]}),(0,i.jsxs)(tD.l.LinkItem,{onClick:()=>s(“UPLOAD_FILES_BUTTON”),href:(0,G.IO9)({repo:a,path:n,commitish:t.name,action:”upload”}),children:[(0,i.jsx)(tD.l.LeadingVisual,{children:(0,i.jsx)(A.UploadIcon,{})}),”Upload files”]}),(0,i.jsx)(tD.l.Divider,{})]}),(0,i.jsx)(ia,{path:n,updateTooltipMessage:x}),t.canEdit&&(0,i.jsx)(tD.l.Divider,{}),(0,i.jsx)(n4,{}),(0,i.jsx)(tD.l.Divider,{}),(0,i.jsxs)(tD.l.Group,{selectionVariant:”multiple”,children:[(0,i.jsx)(tD.l.GroupHeading,{children:”View options”}),(0,i.jsx)(n9,{option:m})]})]})})]})]})}function ia({path:e,updateTooltipMessage:t}){let{copyFilePathShortcut:n}=(0,u.wk)(),{copyPermalinkShortcut:a}=(0,u.wk)(),{sendRepoClickEvent:r}=(0,T.T)(),{createPermalink:s}=(0,p.Z)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(tD.l.Item,{onSelect:()=>{r(“MORE_OPTIONS_DROPDOWN.COPY_PATH”),(0,nl.D)(e),t(“Path copied!”)},children:[“Copy path”,n.hotkey&&(0,i.jsx)(tD.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,i.jsx)(nZ,{shortcut:n})})]}),(0,i.jsxs)(tD.l.Item,{onSelect:()=>{r(“MORE_OPTIONS_DROPDOWN.COPY_PERMALINK”),(0,nl.D)(s({absolute:!0})),t(“Permalink copied!”)},children:[“Copy permalink”,a.hotkey&&(0,i.jsx)(tD.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,i.jsx)(nZ,{shortcut:a})})]})]})}function ir(){let e=n0();return e?(0,i.jsx)(t3.Q,{as:eX.N,to:e,children:”View Runs”}):null}try{ie.displayName||(ie.displayName=”CodeViewHeader”)}catch{}try{it.displayName||(it.displayName=”PageActions”)}catch{}try{ii.displayName||(ii.displayName=”TreeOverflowMenu”)}catch{}try{ia.displayName||(ia.displayName=”CopyPathsActionItems”)}catch{}try{ir.displayName||(ir.displayName=”ViewRunsButton”)}catch{}function is({fileReference:e}){return(0,i.jsx)(tD.l.Item,{“data-testid”:”copilot-menu-items”,onSelect:()=>(0,t0.Xu)(e),children:”Ask about this file”})}try{is.displayName||(is.displayName=”CopilotMenuItems”)}catch{}function il({viewable:e,onCopy:t,name:n,updateTooltipMessage:a,all:r}){let{sendRepoClickEvent:s}=(0,T.T)(),{rawBlobUrl:l}=(0,ed.A)(),{downloadRawContentShortcut:o}=(0,u.wk)(),c=(0,v.useCallback)(async()=>await io(l,n),[n,l]);return(0,i.jsxs)(tD.l.Group,{children:[(0,i.jsx)(tD.l.GroupHeading,{children:”Raw file content”}),r&&(0,i.jsx)(ic,{viewable:e,onCopy:t,updateTooltipMessage:a}),r&&(0,i.jsx)(id,{onClick:()=>s(“BLOB_RAW_DROPDOWN.VIEW”),rawHref:l}),(0,i.jsxs)(tD.l.LinkItem,{onClick:c,children:[“Download”,o.text&&(0,i.jsx)(tD.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,i.jsx)(nZ,{shortcut:o})})]})]})}async function io(e,t){let n=await fetch(e,{method:”get”}),i=await n.blob(),a=document.createElement(“a”);a.setAttribute(“download”,t);let r=URL.createObjectURL(i);a.href=r,a.setAttribute(“target”,”_blank”),a.click(),URL.revokeObjectURL(r)}function ic({viewable:e,onCopy:t,updateTooltipMessage:n}){let{copyRawContentShortcut:a}=(0,u.wk)();return e?(0,i.jsxs)(tD.l.Item,{onSelect:async()=>{let e=await t(),{ariaLabel:i}=(0,nb.t0)(e);n(i)},children:[“Copy”,a.text&&(0,i.jsx)(tD.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,i.jsx)(nZ,{shortcut:a})})]}):null}function id({onClick:e,rawHref:t}){let{viewRawContentShortcut:n}=(0,u.wk)();return(0,i.jsxs)(tD.l.LinkItem,{onClick:e,href:t,children:[“View”,n.text&&(0,i.jsx)(tD.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,i.jsx)(nZ,{shortcut:n})})]})}try{il.displayName||(il.displayName=”RawMenuActionItems”)}catch{}try{ic.displayName||(ic.displayName=”CopyActionItem”)}catch{}try{id.displayName||(id.displayName=”RawActionItem”)}catch{}function iu({onCopy:e,validCodeNav:t,narrow:n,copilotAccessAllowed:a}){let s=(0,ed.A)(),l=s.symbolsEnabled,{action:o,path:d,refInfo:{canEdit:h,currentOid:m,name:f,refType:x}}=(0,c.eu)(),{githubDevUrl:b}=(0,c.sq)(),{sendRepoClickEvent:g}=(0,T.T)(),[j,N]=(0,v.useState)(!1),w=n0(),{search:_}=(0,e$.zy)(),k=new URLSearchParams(_),{setFindInFileOpen:S}=eC(),C=(0,e_.fY)(),L=!(s.richText&&”1″!==k.get(“plain”)||s.renderImageOrRaw||s.renderedFileInfo&&!k.get(“short_path”)||s.issueTemplate?.structured&&s.issueTemplate.valid),{headerInfo:{deleteTooltip:B,onBranch:D,siteNavLoginPath:O,lineInfo:{truncatedLoc:E}},viewable:R}=s,F=(0,em.i)(),{getUrl:z}=(0,p.Z)(),P=eO(),$=(0,v.useRef)(“”);(0,v.useEffect)(()=>{$.current=z({action:”blame”})},[z]);let{goToLineShortcut:M,findInFileShortcut:W,alternativeGoToLineShortcut:H}=(0,u.wk)(),U=(0,v.useRef)(null),[V,K,G]=nm(“raw-copy-message-tooltip”,U,{direction:”nw”}),Y=(0,y.t)(),q=z(),[Q]=(0,eW.I)(()=>window.location.origin+q,q),X=(0,v.useMemo)(()=>({type:”file”,url:Q,path:d,repoID:Y.id,repoOwner:Y.ownerLogin,repoName:Y.name,ref:ip(f,x??”branch”),commitOID:m}),[Q,d,Y.id,Y.ownerLogin,Y.name,f,x,m]);return(0,i.jsxs)(i.Fragment,{children:[L&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:M.hotkey,onButtonClick:()=>N(!0)}),(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:H.hotkey,onButtonClick:()=>N(!0)})]}),(0,i.jsx)(ih,{blameUrl:$.current,viewable:R,hidden:!0}),G,(0,i.jsxs)(tA.W,{onOpenChange:e=>e&&g(“MORE_OPTIONS_DROPDOWN”,{edit_enabled:h,github_dev_enabled:!!b}),anchorRef:U,children:[(0,i.jsx)(tA.W.Anchor,{children:(0,i.jsx)(t2.K,{icon:A.KebabHorizontalIcon,”aria-label”:”More file actions”,tooltipDirection:”nw”,className:(0,nx.$)(“js-blob-dropdown-click”,”NavigationMenu-module__IconButton–YP8f3″),size:”medium”,variant:”default”,”data-testid”:`more-file-actions-button-nav-menu-${n?”narrow”:”wide”}`,onBlur:K})}),(0,i.jsx)(tA.W.Overlay,{width:”small”,className:”NavigationMenu-module__ActionMenu_Overlay–OpDWf”,children:(0,i.jsxs)(tD.l,{children:[n&&null!==w&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tD.l.LinkItem,{href:w,children:”View Runs”}),(0,i.jsx)(tD.l.Divider,{})]}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(il,{viewable:R,onCopy:e,name:s.displayName,updateTooltipMessage:V}),(0,i.jsx)(tD.l.Divider,{})]}),(0,i.jsxs)(tD.l.Group,{children:[L&&(0,i.jsxs)(tD.l.Item,{onSelect:()=>{g(“MORE_OPTIONS_DROPDOWN.GO_TO_LINE”),N(!0)},”aria-keyshortcuts”:M.hotkey,children:[“Jump to line”,(0,i.jsx)(tD.l.TrailingVisual,{“aria-hidden”:”true”,children:(0,i.jsx)(I.E,{children:(0,i.jsx)(“kbd”,{children:M.text})})})]}),P===eD&&null!==s.rawLines&&t&&!C&&(0,i.jsxs)(tD.l.Item,{onSelect:()=>{g(“BLOB_FIND_IN_FILE_MENU.OPEN”),S(!0)},”aria-keyshortcuts”:W.ariaKeyShortcuts,children:[“Find in file”,(0,i.jsx)(tD.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,i.jsx)(nZ,{shortcut:W})})]})]}),(L||P===eD&&null!==s.rawLines&&t)&&(0,i.jsx)(tD.l.Divider,{}),(0,i.jsx)(ia,{path:d,updateTooltipMessage:V}),(0,i.jsx)(tD.l.Divider,{}),a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(tD.l.Group,{children:[(0,i.jsx)(tD.l.GroupHeading,{children:”Copilot”}),(0,i.jsx)(is,{fileReference:X})]}),(0,i.jsx)(tD.l.Divider,{})]}),(0,i.jsxs)(tD.l.Group,{selectionVariant:”multiple”,children:[(0,i.jsx)(tD.l.GroupHeading,{children:”View options”}),(0,i.jsx)(n8,{symbolsEnabled:l})]}),(h&&D||!R&&D)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tD.l.Divider,{}),(0,i.jsx)(im,{deleteTooltip:B,loggedIn:!!F,siteNavLoginPath:O})]})]})})]}),j&&(0,i.jsx)(n1,{onBlamePage:”blame”===o,onDismiss:()=>{N(!1),setTimeout(()=>{let e=document.getElementById(ex.wQ);e?.focus()},0)},maxLineNumber:parseInt(E,10)??void 0})]})}function ih({blameUrl:e,viewable:t,hidden:n}){let{hash:a}=(0,e$.zy)(),s=(0,e$.Gy)(e+a),{viewBlameShortcut:l}=(0,u.wk)();return t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.$n,{“data-hotkey”:l.hotkey,sx:{…n?{display:”none”}:void 0},onClick:s,className:”NavigationMenu-module__Button–SKxrr”,children:”Blame”}),(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:l.hotkey,onButtonClick:s,onlyAddHotkeyScopeButton:!0})]}):null}function im({deleteTooltip:e,loggedIn:t,siteNavLoginPath:n}){let{getUrl:a}=(0,p.Z)();return(0,i.jsx)(tD.l.LinkItem,{as:eX.N,”aria-label”:e,to:t?a({action:”delete”}):n,className:”NavigationMenu-module__ActionList_LinkItem–mNJjE”,children:”Delete file”})}let ip=(e,t)=>”branch”===t?`refs/heads/${e}`:”tag”===t?`refs/tags/${e}`:e;try{iu.displayName||(iu.displayName=”NavigationMenu”)}catch{}try{ih.displayName||(ih.displayName=”BlameButton”)}catch{}try{im.displayName||(im.displayName=”DeleteActionItem”)}catch{}function ix({toc:e,openPanel:t,setOpenPanel:n,isDirectoryReadme:a}){var r;let s=v.useRef(null);return(r=e)&&r.length>=2?(0,i.jsx)(S.K0,{ref:s,tooltipDirection:”n”,sx:{mr:2*!a},icon:A.ListUnorderedIcon,variant:”invisible”,”aria-label”:”Outline”,”aria-pressed”:”toc”===t,onClick:()=>{n?.(“toc”===t?void 0:”toc”,s.current)},size:”small”,className:”TableOfContents-module__IconButton–yD4jb”}):null}try{ix.displayName||(ix.displayName=”TableOfContents”)}catch{}function iy({currentStickyLines:e,colorizedLines:t}){let n=Array.from(e.values());return(0,i.jsxs)(“div”,{className:”StickyLinesHeader-module__Box–tCWj4″,children:[(0,i.jsx)(“div”,{className:(0,nx.$)(“react-line-numbers”,”StickyLinesHeader-module__Box_1–vlFhw”),children:n.map(e=>(0,i.jsx)(te.Kn,{codeLineData:e},`sticky-header-line-number-${e.lineNumber}`))}),(0,i.jsx)(“div”,{className:”react-code-lines”,children:n.map(e=>t&&t[e.lineNumber-1]?(0,i.jsx)(eZ.$6,{className:”react-code-text react-code-line-contents-no-virtualization react-file-line html-div”,style:{paddingLeft:”18px”},html:t[e.lineNumber-1],onClick:()=>(0,ey.f)({line:e.lineNumber})},`sticky-header-line-${e.lineNumber}`):(0,i.jsx)(e9.S,{codeLineData:e,stylingDirectivesLine:e.stylingDirectivesLine,codeLineToSectionMap:void 0,copilotAccessAllowed:!1,onClick:()=>(0,ey.f)({line:e.lineNumber}),shouldUseInert:!1},`sticky-header-line-${e.lineNumber}`))})]})}try{iy.displayName||(iy.displayName=”StickyLinesHeader”)}catch{}function ib({openPanel:e,setOpenPanel:t,showTree:n,validCodeNav:a,treeToggleElement:r,searchTerm:s,setSearchTerm:l,currentStickyLines:o,focusedSearchResult:d,setFocusedSearchResult:h,searchResults:m,searchingText:f,stickyHeaderRef:x,copilotInfo:b,colorizedLines:g,onBannerChange:j}){let N=(0,ed.A)(),w=N.symbolsEnabled,_=eg(x),{copilotAccessAllowed:k,copilotSpacesEnabled:C,refInfo:I,path:L}=(0,c.eu)(),B=eO(),{sendRepoClickEvent:D}=(0,T.T)(),O=(0,eb.ds)(),{copyFilePathShortcut:E}=(0,u.wk)(),{copyPermalinkShortcut:R}=(0,u.wk)(),F=(0,y.t)(),z=(0,no.G7)(“copilot_agent_tasks_btn_code_view”)&&N.copilotSWEAgentEnabled,{githubDevUrl:P}=(0,c.sq)(),{headerInfo:{toc:$,onBranch:M,ghDesktopPath:W},viewable:H}=N,U=nQ(P,M,W),V=(0,ec.O)(),K=(0,ny.y)(),{createPermalink:G}=(0,p.Z)(),{addToast:Y}=(0,nu.Y6)(),{findInFileOpen:q,setFindInFileOpen:Q}=eC(),X=(0,v.useRef)(null),[Z,J,ee]=nm(“raw-actions-message-tooltip”,X,{direction:”nw”}),{getUrl:en}=(0,p.Z)(),ei=en(),[ea]=(0,eW.I)(()=>window.location.origin+ei,ei),er=(0,v.useMemo)(()=>({type:”file”,url:ea,path:L,repoID:F.id,repoOwner:F.ownerLogin,repoName:F.name,ref:ip(I.name,I.refType??”branch”),commitOID:I.currentOid}),[ea,L,F.id,F.ownerLogin,F.name,I.name,I.refType,I.currentOid]),es=H&&I.canEditOnDefaultBranch;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(“div”,{ref:eb.oM,className:”BlobViewHeader-module__Box–kEu6z”,children:[(0,i.jsx)(“div”,{className:”react-blob-sticky-header”,children:(0,i.jsx)(nF,{isStickied:_,showTree:n,treeToggleElement:r})}),(0,i.jsxs)(S.az,{sx:{borderRadius:_?”0px”:”6px 6px 0px 0px”},className:”BlobViewHeader-module__Box_1–_sZV1″,children:[(0,i.jsx)(nd.W,{as:”h2″,text:”File metadata and controls”}),(0,i.jsxs)(“div”,{className:”BlobViewHeader-module__Box_2–fPJpL”,children:[(0,i.jsx)(nM,{}),(0,i.jsx)(nK,{className:”react-code-size-details-in-header”}),(0,i.jsx)(et.E,{copilotInfo:b,className:”react-code-size-details-in-header”,view:V?”blame”:”preview”})]}),(0,i.jsxs)(“div”,{className:”BlobViewHeader-module__Box_3–c1yoS”,children:[E.hotkey&&(0,i.jsx)(iv,{hotkey:E.hotkey,onActivate:()=>{(0,nl.D)(L),Y({type:”success”,message:”Path copied!”})}}),R.hotkey&&(0,i.jsx)(iv,{hotkey:R.hotkey,onActivate:()=>{(0,nl.D)(G({absolute:!0})),Y({type:”success”,message:”Permalink copied!”})}}),k&&C&&(0,i.jsx)(ns,{repository:F,currentFile:er,onBannerChange:j}),(0,i.jsx)(t0.Ay,{copilotAccessAllowed:k,messageReference:er,hideDropdown:!0,id:”blob-view-header-copilot-icon”}),z&&(0,i.jsx)(nc.V,{isIconButton:!0,size:”small”,tooltipDirection:”n”,currentRepo:F,currentReference:{path:L},hideRepoSelector:!0,eventType:”new_agent_task_button_codeview”}),(0,i.jsxs)(“div”,{className:(0,nx.$)(“react-blob-header-edit-and-raw-actions”,”BlobViewHeader-module__Box_4–PCpYh”),children:[(0,i.jsx)(ij,{onCopy:K,fileName:N.displayName}),(0,i.jsx)(ig,{})]}),B===eD&&!V&&a&&w&&(0,i.jsx)(iN,{isCodeNavOpen:”codeNav”===e,setCodeNavOpen:e=>{e&&D(“BLOB_SYMBOLS_MENU.OPEN”),localStorage.setItem(“codeNavOpen”,e?”codeNav”:””),ew(null,e,null),t(e?”codeNav”:void 0)},size:”small”,searchingText:f.selectedText}),!V&&(0,i.jsx)(ix,{toc:$,openPanel:e,setOpenPanel:t}),(0,i.jsxs)(“div”,{className:”react-blob-header-edit-and-raw-actions-combined”,children:[ee,(0,i.jsxs)(tA.W,{anchorRef:X,children:[(0,i.jsx)(tA.W.Anchor,{children:(0,i.jsx)(S.K0,{icon:A.KebabHorizontalIcon,tooltipDirection:”nw”,”aria-label”:”Edit and raw actions”,className:(0,nx.$)(“js-blob-dropdown-click”,”BlobViewHeader-module__IconButton–JW7qq”),size:”small”,title:”More file actions”,variant:”invisible”,”data-testid”:”more-file-actions-button”,onBlur:J})}),(0,i.jsx)(tA.W.Overlay,{className:(0,nx.$)(“react-blob-header-edit-and-raw-actions-combined”,”BlobViewHeader-module__ActionMenu_Overlay–R93NU”),width:”small”,children:(0,i.jsxs)(tD.l,{children:[(I.canEdit&&H||es||U)&&(0,i.jsxs)(“div”,{className:”react-navigation-menu-edit-and-raw-actions”,children:[(0,i.jsx)(nX,{editAllowed:!!(H&&I.canEdit)||!!es,hasOpenWithItem:U}),(0,i.jsx)(tD.l.Divider,{})]}),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(il,{viewable:H,onCopy:K,name:N.displayName,updateTooltipMessage:Z,all:!0})})]})})]})]})]})]}),V&&(0,i.jsxs)(“div”,{className:”BlobViewHeader-module__Box_5–Sz1Xt”,children:[(0,i.jsx)(nz,{}),(0,i.jsx)(nC,{})]})]}),q&&(0,i.jsx)(nv,{stickied:_,searchTerm:s,focusedSearchResult:d,setFocusedSearchResult:h,setSearchTerm:l,searchResults:m,onClose:()=>{Q(!1),”codeNav”===e&&l(f.selectedText)}}),(0,i.jsx)(“div”,{children:!V&&o.size>0&&(0,i.jsx)(S.az,{sx:{top:O},className:”BlobViewHeader-module__Box_6–sVOtd”,children:(0,i.jsx)(iy,{currentStickyLines:o,colorizedLines:g})})})]})}function ig(){let e=(0,ed.A)(),{getUrl:t}=(0,p.Z)(),{refInfo:n}=(0,c.eu)(),{canEdit:a}=n,{sendRepoClickEvent:s}=(0,T.T)(),{githubDevUrl:l}=(0,c.sq)(),o=(0,ef.Z)(),{editFileShortcut:d,openWithGitHubDevShortcut:h,openWithGitHubDevInNewWindowShortcut:m}=(0,u.wk)(),f=!!n.canEditOnDefaultBranch,{headerInfo:{editTooltip:x,ghDesktopPath:y,onBranch:b}}=e,g=nQ(l,b,y);return a||g?(0,i.jsxs)(i.Fragment,{children:[l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y.A,{className:”js-github-dev-shortcut d-none”,”data-hotkey”:h.hotkey,href:l}),(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:h.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{o(l+window.location.pathname.substring(1))}}),(0,i.jsx)(Y.A,{className:”js-github-dev-new-tab-shortcut d-none”,”data-hotkey”:m.hotkey,href:l,target:”_blank”}),(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:m.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{window.open(l,”_blank”)}})]}),(0,i.jsxs)(nf.A,{children:[a?(0,i.jsx)(S.K0,{as:eX.N,tooltipDirection:”nw”,”aria-label”:x,”data-hotkey”:d.hotkey,icon:A.PencilIcon,to:t({action:”edit”}),size:”small”,sx:{…tJ.E},”data-testid”:”edit-button”}):(0,i.jsx)(ng,{icon:A.PencilIcon,”aria-label”:x,disabled:!0}),(0,i.jsxs)(tA.W,{onOpenChange:e=>e&&s(“BLOB_EDIT_DROPDOWN”),children:[(0,i.jsx)(tA.W.Anchor,{children:(0,i.jsx)(S.K0,{tooltipDirection:”nw”,icon:A.TriangleDownIcon,size:”small”,”aria-label”:”More edit options”,”data-testid”:”more-edit-button”})}),(0,i.jsx)(tA.W.Overlay,{align:”end”,children:(0,i.jsx)(tD.l,{children:(0,i.jsx)(nX,{editAllowed:a||f,hasOpenWithItem:g})})})]})]}),a&&(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:”e,Shift+E”,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{o(t({action:”edit”}))}})]}):null}function ij({onCopy:e,fileName:t}){let{viewRawContentShortcut:n,copyRawContentShortcut:a,downloadRawContentShortcut:s}=(0,u.wk)(),{renderImageOrRaw:l,renderedFileInfo:o,viewable:c,image:d,rawBlobUrl:h,headerInfo:{isGitLfs:m}}=(0,ed.A)(),p=(0,ef.Z)(),{addToast:f}=(0,nu.Y6)(),x=(0,v.useRef)(null),[y,b,g]=nm(“raw-copy-message-tooltip”,x),j=async()=>{await io(h,t)},N=async()=>{let t=await e(),{ariaLabel:n}=(0,nb.t0)(t);y(n)},w=new URL(h,ei.fV.origin);w.searchParams.set(“download”,””);let _={“aria-label”:”Download raw file”,tooltipDirection:”n”,icon:A.DownloadIcon,size:”small”,onClick:async()=>{m||await io(h,t)},”data-testid”:”download-raw-button”,”data-hotkey”:s.hotkey,sx:{borderTopLeftRadius:0,borderBottomLeftRadius:0}};return!m&&(o&&!c||d)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.K0,{“aria-label”:”Download raw file”,tooltipDirection:”n”,icon:A.DownloadIcon,size:”small”,onClick:j,”data-testid”:”download-raw-button”,”data-hotkey”:s.hotkey}),(0,i.jsx)(r._,{buttonTestLabel:”download-raw-button-shortcut”,buttonFocusId:ex.wQ,buttonHotkey:s.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:j})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(nf.A,{children:[(0,i.jsx)(S.z9,{href:h,download:l?”true”:void 0,size:”small”,sx:{linkButtonSx:tJ.E},”data-testid”:”raw-button”,”data-hotkey”:n.hotkey,className:”BlobViewHeader-module__LinkButton–j1CPd”,children:”Raw”}),!m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.K0,{ref:x,”aria-label”:”Copy raw file”,tooltipDirection:”n”,icon:A.CopyIcon,size:”small”,onMouseLeave:b,onClick:N,”data-testid”:”copy-raw-button”,”data-hotkey”:a.hotkey,onBlur:b}),g]}),m?(0,i.jsx)(S.K0,{as:”a”,”data-turbo”:”false”,href:w.toString(),…_}):(0,i.jsx)(S.K0,{…_})]}),(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:n.hotkey,buttonTestLabel:”raw-button-shortcut”,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>p(h)}),!m&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r._,{buttonTestLabel:”copy-raw-button-shortcut”,buttonFocusId:ex.wQ,buttonHotkey:a.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:async()=>{let t=await e(),{ariaLabel:n,content:i}=(0,nb.t0)(t);f({message:n,icon:i})}}),(0,i.jsx)(r._,{buttonTestLabel:”download-raw-button-shortcut”,buttonFocusId:ex.wQ,buttonHotkey:s.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:async()=>{await io(h,t)}})]})]})}function iN({isCodeNavOpen:e,setCodeNavOpen:t,size:n,searchingText:a}){let{toggleSymbolsShortcut:r}=(0,u.wk)(),s=!(0,N.ud)().openSymbolsOption.enabled&&!e;return(0,i.jsx)(S.K0,{“aria-label”:e?”Close symbols panel”:”Open symbols panel”,tooltipDirection:”nw”,”aria-pressed”:e,”aria-expanded”:e,”aria-controls”:”symbols-pane”,icon:A.CodeSquareIcon,className:(0,nx.$)(s&&a?”react-button-with-indicator”:””,”BlobViewHeader-module__IconButton_2–goIj9″),”data-hotkey”:r.hotkey,onClick:()=>{(0,e_.Ov)(!0),t(!e)},variant:”invisible”,”data-testid”:”symbols-button”,id:”symbols-button”,size:n})}function iv({hotkey:e,onActivate:t}){return(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:e,onButtonClick:t})}try{ib.displayName||(ib.displayName=”BlobViewHeader”)}catch{}try{ig.displayName||(ig.displayName=”EditMenu”)}catch{}try{ij.displayName||(ij.displayName=”RawGroup”)}catch{}try{iN.displayName||(iN.displayName=”SymbolsButton”)}catch{}try{iv.displayName||(iv.displayName=”KeyboardShortcut”)}catch{}var iw=n(67941),i_=n(39619),ik=n(68911),iS=n(69726);let iC={definitions:void 0,localReferences:void 0,crossReferences:void 0,error:!1};var iI=n(73342),iT=n(87449);function iL({reference:e,isHighlighted:t,href:n,onClick:a,role:r,ariaLevel:s,symbol:l,index:o,focusElement:c}){let[d,u]=(0,v.useState)(null);(0,v.useEffect)(()=>{if(c){let e=document.getElementById(`find-in-file-item-${o}`);e&&e.focus()}},[c,o]);let{tabSize:h}=(0,ed.A)(),m=(0,eG.bp)(),p=(0,iI.W)(e.highlightedText,e.stylingDirectives,e.bodyText,”plain”,h,m);return(0,i.jsx)(S.N_,{as:eX.N,to:n,role:r,sx:{display:”block”,p:0,fontWeight:400,fontSize:”12px”,”:hover:not([disabled])”:{bg:”canvas.default”},”:hover”:{textDecoration:”none”},'[data-component=”text”]’:{gridArea:”auto”},gridTemplateAreas:”text”,whiteSpace:”break-spaces”,verticalAlign:”top”,lineHeight:”20px”,position:”relative”,overflowWrap:”anywhere”,fontFamily:”mono”,overflow:”visible”},onClick:e=>{e.ctrlKey||e.metaKey||a?.()},onSelect:a,id:`find-in-file-item-${o}`,”aria-current”:t?”location”:void 0,”aria-level”:s,onKeyDown:e=>{“ArrowDown”===e.key?(iB(“nextElementSibling”),e.preventDefault()):”ArrowUp”===e.key&&(iB(“previousElementSibling”),e.preventDefault())},children:(0,i.jsx)(S.az,{sx:{p:1,py:”5px”,…t?{background:”var(–bgColor-attention-muted, var(–color-attention-subtle))”,boxShadow:”inset 2px 0 0 var(–bgColor-attention-emphasis, var(–color-attention-fg))”}:{}},children:(0,i.jsxs)(“div”,{className:”d-flex”,children:[(0,i.jsx)(S.az,{className:”text-small blob-num color-fg-muted”,sx:{width:”auto”,minWidth:”auto”},children:e.lineNumber}),(0,i.jsxs)(S.az,{sx:{overflow:”hidden”,whiteSpace:”pre”,position:”relative”},children:[null!==d&&(0,i.jsxs)(“div”,{id:`offset-${e.href(!1)}`,style:{marginLeft:-d},children:[l.length>0&&(0,i.jsx)(iT.U,{symbols:[e],lineNumber:e.lineNumber,sx:{overflow:”initial”},isNotUsingWhitespace:!0}),(0,i.jsx)(eZ.JR,{sx:{position:”relative”,width:”100%”,overflow:”hidden”},html:p,”aria-current”:t?”location”:void 0})]}),(0,i.jsx)(“span”,{ref:e=>{u(e?.offsetWidth??null)},style:{visibility:”hidden”,position:”absolute”,whiteSpace:”pre”},children:function(e,t){let n=34-e.length,i=t.bodyText.slice(0,t.ident.start.column);if(n<=0)return i;n=Math.max(n/2,n-t.bodyText.slice(t.ident.start.column+e.length).trimEnd().length);let a=i.split(" "),r=[];for(let e=a.length-1;e>=0;e–){let t=a[e];if(r.unshift(t),r.join(” “).length<=n)a.pop();else break}let s=a.join(" "),l=(i.slice(s.length).match(/^[ \t]*/)||[])[0]??"";return`${a.join(" ")}${l}`}(l,e)})]})]})})})}function iB(e){let{activeElement:t}=document,n=t?.[e];if(n)if("treeitem"!==n.role&&"nextElementSibling"===e){let e=n.querySelector('[role="treeitem"]');e?.focus()}else n.focus()}try{iL.displayName||(iL.displayName="CodeNavCell")}catch{}function iA({results:e,repo:t,filePath:n,highlightedIndex:a,isDefinition:r,onClick:s,offset:l,initiallyExpanded:o,enableExpandCollapse:d,symbol:u,setFocusOnFile:h}){let m=!!(0,ec.O)(),[p,f]=(0,v.useState)(o),x=(0,y.t)(),{path:b}=(0,c.eu)(),g=v.useRef(null),[j,N]=(0,v.useState)(!1),w=(0,e_.DC)(),_=e.slice(0,10),k=e.length>10?e.slice(10):[],{sendRepoClickEvent:C}=(0,T.T)(),I=x.ownerLogin===t.ownerLogin&&x.name===t.name,L=(0,v.useCallback)(e=>{“Enter”===e.key||” “===e.key?(f(!p),e.preventDefault()):”ArrowLeft”===e.key?f(!1):”ArrowRight”===e.key?(f(!0),p&&g.current?.focus()):”ArrowDown”===e.key?(iB(“nextElementSibling”),e.preventDefault()):”ArrowUp”===e.key&&(iB(“previousElementSibling”),e.preventDefault())},[p]);(0,v.useEffect)(()=>{a&&a>=10+l&&N(!0)},[a,l]),(0,v.useEffect)(()=>{h&&w&&g.current?.focus()},[h,w]),(0,v.useEffect)(()=>{w||document.getElementById(ex.wQ)?.focus()},[w]);let B=`${n}-${r?”definition”:”reference”}-group`;return(0,i.jsxs)(“div”,{children:[(0,i.jsxs)(S.az,{sx:{fontSize:0,px:3,py:2,display:”flex”,justifyContent:”space-between”,borderTop:”1px solid”,borderColor:”border.muted”,cursor:d?”pointer”:”auto”},onClick:d?()=>f(!p):void 0,onKeyDown:L,ref:g,children:[(0,i.jsxs)(S.az,{sx:{display:”flex”},children:[r&&x.id!==t.id&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eQ.r,{square:!0,src:t.ownerAvatar,sx:{mr:2,backgroundColor:”#FFFFFF”},size:16}),(0,i.jsx)(S.az,{sx:{fontWeight:”600″,mr:1},children:t.name})]}),(0,i.jsxs)(S.az,{as:”button”,”aria-expanded”:p,”aria-controls”:B,sx:{fontWeight:”400″,color:”fg.muted”,display:”flex”,flexDirection:”row”,backgroundColor:”canvas.default”,border:”none”,padding:0},children:[d&&(0,i.jsx)(D.A,{“aria-hidden”:”true”,icon:p?A.ChevronDownIcon:A.ChevronRightIcon}),(0,i.jsx)(S.az,{sx:{display:”table”,width:”100%”,tableLayout:”fixed”},children:(0,i.jsxs)(S.PA,{“aria-label”:`${r?”Definitions”:”References”} in ${n!==b?n:”this file”}`,title:n,sx:{direction:”rtl”,maxWidth:”100%”,pl:2,display:”table-cell”,textAlign:”left”},children:[“\u200E”,I&&n===b?”In this file”:n,”\u200E”]})})]})]}),e&&!p&&(0,i.jsx)(S.$c,{sx:{ml:2},children:e.length})]}),p&&(0,i.jsxs)(S.az,{“aria-label”:`Results in ${n!==b?n:”this file”}`,id:B,sx:{overflowX:”hidden”},role:”group”,className:”code-nav-file-information”,children:[_.map((e,t)=>(0,i.jsx)(iL,{reference:e,isHighlighted:a===t+l,href:e.href(m),onClick:()=>{s&&s(t+l),C(“BLOB_SYMBOLS_MENU.SYMBOL_DEFINITION_CLICK”)},symbol:u,index:t+l},`codeNavigation${t+l}`)),j&&k.map((e,t)=>(0,i.jsx)(iL,{reference:e,isHighlighted:a===t+l+10,href:e.href(m),onClick:()=>{s&&s(t+l+10),C(“BLOB_SYMBOLS_MENU.SYMBOL_DEFINITION_CLICK”)},symbol:u,index:t+l+10,focusElement:0===t},`codeNavigation${t+l+10}`)),k.length>0&&(0,i.jsx)(S.az,{sx:{px:3,pt:1,pb:2,fontSize:0,color:”fg.muted”,borderColor:”border.muted”},children:(0,i.jsx)(S.$n,{leadingVisual:j?A.FoldIcon:A.UnfoldIcon,onClick:()=>N(!j),sx:{color:”fg.default”},variant:”invisible”,size:”small”,”aria-selected”:!1,children:j?”Show less”:”Show more”})})]})]},n)}try{iA.displayName||(iA.displayName=”CodeNavFileInformation”)}catch{}function iD({definitions:e,references:t,highlightedIndex:n,initiallyExpanded:a,enableExpandCollapse:r,onClick:s,symbol:l,setFocusOnFile:o}){let c=(0,v.useMemo)(()=>{let n={};if(e)for(let t of e){let e=t.pathKey();n[e]||(n[e]=[]),n[e].push(t)}else if(t)for(let e of t){let t=e.pathKey();n[t]||(n[t]=[]),n[t].push(e)}return n},[e,t]),d=0;return(0,i.jsx)(i.Fragment,{children:Object.keys(c).map((t,u)=>{let h=c[t],m=(0,i.jsx)(iA,{repo:h[0].repo,filePath:h[0].path,results:h,highlightedIndex:n,isDefinition:void 0!==e&&e.length>0,onClick:s,offset:d,initiallyExpanded:a,enableExpandCollapse:r,symbol:l,setFocusOnFile:0===u&&o},t);return d+=h.length,m})})}try{iD.displayName||(iD.displayName=”CodeNavInfoPanelData”)}catch{}let iO=(0,v.lazy)(()=>n.e(53902).then(n.bind(n,53902)));function iE({codeNavInfo:e,selectedText:t,lineNumber:n,offset:a,onClose:r,onBackToSymbol:s,onSymbolSelect:l,isLoading:o,setSearchResults:d,setFocusedSearchResult:h}){let{findNextShortcut:m,findPrevShortcut:p}=(0,u.wk)(),f=!!(0,ec.O)(),{definitions:x,localReferences:b,crossReferences:g,error:j}=function(e,t,n,i){let[a,r]=(0,v.useState)(iC);return(0,v.useEffect)(()=>{(async()=>{if(n<0||i<0)return;let{definitions:a,localReferences:s,crossReferences:l,setLoading:o}=e.getDefinitionsAndReferences(t,n,i);r(iC);try{let e=await a;r({definitions:e,localReferences:void 0,crossReferences:void 0,error:!1}),o(!1);let[t,n]=await Promise.all([s,l]);r({definitions:e,localReferences:t,crossReferences:n,error:!1})}catch{r({...iC,error:!0})}finally{o(!1)}})()},[e,t,n,i]),a}(e,t,n,a),{copilotAccessAllowed:N}=(0,c.eu)(),[w,_]=(0,v.useState)(-1),[k,C]=(0,v.useState)(!1),I=(0,y.t)(),T=(0,v.useMemo)(()=>x?.definitions||[],[x?.definitions]),L=(0,v.useMemo)(()=>b?.references||[],[b]),B=(0,v.useMemo)(()=>g?.references||[],[g?.references]),D=T.length,E=L.length+B.length,R=(0,ef.Z)(),F=T.length>0?T[0]:void 0,z=B.map(e=>e.path).filter((e,t,n)=>n.indexOf(e)===t),P=k?E:L.length,$=(0,v.useRef)(null),{language:M,languageID:W}=(0,ed.A)(),H=(0,v.useMemo)(()=>({type:”symbol”,kind:”codeNavSymbol”,name:t,languageID:W,languageName:M,codeNavDefinitions:T.map(e=>({ident:e.ident,extent:e.extent,kind:e.kind.fullName,fullyQualifiedName:e.fullyQualifiedName,ref:iz(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin,path:e.path})),codeNavReferences:[…L.map(e=>({ident:e.ident,path:e.path,ref:iz(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin})),…B.map(e=>({ident:e.ident,path:e.path,ref:iz(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin}))]}),[B,T,M,W,L,t]);(0,v.useEffect)(()=>{F&&F.repo.name===e.repo.name&&F.path===e.path?d([F,…L]):d(L),h(void 0),window.dispatchEvent(new i_.Xr(H))},[e.path,e.repo.name,F,L,t,d,h,H]),(0,O.Gp)(e=>{e||$.current?.focus()}),(0,v.useEffect)(()=>{_(-1)},[t]),(0,v.useEffect)(()=>{C(z.length>0&&z.length<=5)},[z.length]);let U=({index:e,direction:t,navigate:n})=>{if(void 0!==e){let t=e>=D?L[e-D]:T[e];_(e),n&&R(t.href(f)),(0,ey.f)({line:t.lineNumber,column:t.ident.start.column})}if(void 0!==t){let e=Math.max(D,w+t),i=L[e-D];e0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(iR,{headerText:T.length>1?”Definitions”:”Definition”,searchType:x?.backend===”precise”?”Precise”:”Search”}),(0,i.jsx)(“div”,{children:T&&(0,i.jsx)(iD,{definitions:T,onClick:e=>{U({index:e})},highlightedIndex:w,initiallyExpanded:!0,enableExpandCollapse:T.length>1,symbol:t,setFocusOnFile:!0},”definitions”)})]}):null,!o&&(L.length>0||B.length>0)&&(0,i.jsx)(iR,{headerText:`${P} ${P>1?”References”:”Reference”}`,searchType:”Search”,sx:{justifyContent:”space-between”},children:(0,i.jsxs)(S.az,{sx:{display:”float”,float:”right”,mr:”-6px”},children:[(0,i.jsx)(S.K0,{unsafeDisableTooltip:!0,”aria-label”:”Previous reference”,”data-hotkey”:p.hotkey,onClick:()=>U({direction:-1,navigate:!0}),sx:{mr:2,cursor:”pointer”,color:”fg.muted”},disabled:w<=T.length,icon:A.ChevronUpIcon,variant:"invisible",size:"small"}),(0,i.jsx)(S.K0,{unsafeDisableTooltip:!0,"aria-label":"Next reference","data-hotkey":m.hotkey,onClick:()=>U({direction:1,navigate:!0}),sx:{cursor:”pointer”,color:”fg.muted”},disabled:w>=L.length+T.length-1,icon:A.ChevronDownIcon,variant:”invisible”,size:”small”}),(0,i.jsx)(“button”,{hidden:!0,”data-hotkey”:m.hotkey,onClick:()=>U({direction:1,navigate:!0}),”data-testid”:”find-next-button”}),(0,i.jsx)(“button”,{hidden:!0,”data-hotkey”:p.hotkey,onClick:()=>U({direction:-1,navigate:!0}),”data-testid”:”find-prev-button”})]})}),j&&(0,i.jsx)(S.az,{sx:{p:3,fontWeight:”400″,color:”fg.muted”},children:”No references found”}),!o&&L.length>0&&(0,i.jsx)(iD,{initiallyExpanded:!0,enableExpandCollapse:!0,references:L,highlightedIndex:w-D,onClick:e=>{U({index:D+e})},symbol:t,setFocusOnFile:!(T&&T.length>0)},”referencesInfoBox”),!o&&k&&(0,i.jsx)(iD,{initiallyExpanded:!1,enableExpandCollapse:!0,references:B,symbol:t},”crossReferencesInfoBox”),0===L.length&&0===T.length&&!j&&!o&&(0,i.jsx)(S.az,{sx:{p:3,fontWeight:”400″,color:”fg.muted”},children:”No definitions or references found”}),(0,i.jsxs)(S.az,{sx:{px:2,py:2,fontSize:0,color:”fg.muted”,borderTop:”1px solid”,borderColor:”border.muted”},children:[z.length>5&&(0,i.jsx)(S.$n,{leadingVisual:k?A.FoldIcon:A.UnfoldIcon,sx:{color:”fg.default”,mb:2},variant:”invisible”,size:”small”,onClick:()=>C(!k),children:k?”Show less”:”Show more”}),(0,i.jsx)(S.$n,{as:Y.A,leadingVisual:A.SearchIcon,sx:{color:”fg.default”},variant:”invisible”,size:”small”,href:(0,G.Y8Y)({owner:I.ownerLogin,repo:I.name,searchTerm:t}),children:”Search for this symbol”})]}),(0,i.jsx)(v.Suspense,{fallback:null,children:(0,i.jsx)(iO,{definitionsOrReferences:[…T,…L]})})]})}function iR({headerText:e,searchType:t,sx:n,children:a}){return(0,i.jsxs)(S.az,{sx:{fontSize:”14px”,px:3,py:2,fontWeight:”600″,backgroundColor:”canvas.subtle”,borderTop:”1px solid”,borderColor:”border.muted”,height:”36px”,display:”flex”,flexDirection:”row”,alignItems:”center”,…n},children:[(0,i.jsxs)(S.DZ,{as:”h3″,sx:{fontSize:”12px”,fontWeight:”semibold”,color:”fg.muted”},children:[e,(0,i.jsx)(S.EY,{sx:{ml:2,fontWeight:”light”},children:t})]}),a]})}function iF({currentSymbol:e,selectedText:t,codeNavInfo:n,onSymbolSelect:a,children:r}){let s=e?.fullyQualifiedName??t,l=s.split(/(\W+)/).map(e=>{let t=/^\W+$/.test(e),i=t?[]:n.getLocalDefinitions(e,!0),a=1===i.length?i[0]:void 0,r=a?.kind.plColor;return{text:e,symbol:a,symbolColor:r,isSeparator:t}});return(0,i.jsxs)(S.az,{as:”h3″,sx:{display:”flex”,flexDirection:”column”,flexGrow:1,alignContent:”start”,fontWeight:400,fontSize:1,fontFamily:”mono”,flexWrap:”wrap”,minWidth:0,verticalAlign:”center”,gap:2,px:3},”aria-label”:`${e?.kind.fullName||””} ${s}`.trimStart(),children:[e&&(0,i.jsxs)(S.az,{sx:{display:”flex”,alignItems:”center”,justifyContent:”space-between”,flexGrow:1,width:”100%”},children:[(0,i.jsx)(R,{symbolKind:e.kind,showFullSymbol:!0}),r]}),(0,i.jsxs)(S.PA,{title:s,sx:{maxWidth:290,mt:”3px”,direction:”rtl”,alignSelf:”start”},inline:!0,children:[“\u200E”,l.map((e,t)=>{let n=e.symbol?{all:”unset”,cursor:”pointer”,”&:hover”:{backgroundColor:”attention.muted”}}:{};return(0,i.jsx)(S.az,{as:”span”,role:”button”,tabIndex:e.isSeparator?-1:0,sx:{…n,color:e.symbolColor,direction:”ltr”},onClick:()=>e.symbol?a(e.symbol):void 0,onKeyDown:t=>{e.symbol&&[“Enter”,”Space”].includes(t.code)&&a(e.symbol)},children:e.text},`${e.text}-${t}`)}),”\u200E”]})]})}function iz(e){return e.name===e.currentOid?e.currentOid:”tree”===e.refType?`refs/heads/${e.name}`:(0,ik.D7)(e.name,e.refType??”branch”)}try{iO.displayName||(iO.displayName=”ScrollMarks”)}catch{}try{iE.displayName||(iE.displayName=”CodeNavSymbolDetails”)}catch{}try{iR.displayName||(iR.displayName=”CodeNavSymbolSectionHeader”)}catch{}try{iF.displayName||(iF.displayName=”CodeNavSymbolDefinitionHeader”)}catch{}function iP({selectedText:e,showCodeNavWithSymbol:t,lineNumber:n,offset:a,onClose:r,onClear:s,codeNavInfo:l,isLoading:o,setSearchResults:d,setFocusedSearchResult:u,autoFocusSearch:h}){function m(e){t(e),f(!1)}let[p,f]=(0,v.useState)(!e);(0,O.Gp)(e=>{e&&(s(),f(!0),d([]))});let{refInfo:x,path:b}=(0,c.eu)(),g=(0,y.t)(),{language:j,languageID:N,displayUrl:w}=(0,ed.A)(),_=(0,v.useMemo)(()=>({type:”file”,languageID:N,languageName:j,path:b,ref:(0,ik.D7)(x.name,x.refType),commitOID:x.currentOid,repoID:g.id,repoName:g.name,repoOwner:g.ownerLogin,url:w}),[N,j,b,x.name,x.refType,x.currentOid,g.id,g.name,g.ownerLogin,w]);return(0,v.useEffect)(()=>{e?f(!1):p||(window.dispatchEvent(new i_.Xr(_)),f(!0))},[e,l]),(0,i.jsx)(“div”,{id:”symbols-pane”,children:p?l?(0,i.jsx)(X,{treeSymbols:l.symbolTree,onSymbolSelect:m,codeSymbols:l.symbols,onClose:r,autoFocusSearch:h}):(0,i.jsx)(“div”,{children:”Click on a symbol to see code navigation data”}):(0,i.jsx)(iE,{codeNavInfo:l,selectedText:e,lineNumber:n,offset:a,onBackToSymbol:()=>{s(),f(!0),d([]),window.dispatchEvent(new i_.Xr(_))},onClose:()=>{r(),s(),d([]),window.dispatchEvent(new i_.Xr(_))},onSymbolSelect:m,isLoading:o,setSearchResults:d,setFocusedSearchResult:u})})}try{iP.displayName||(iP.displayName=”CodeNavInfoPanel”)}catch{}var i$=n(27059);let iM=v.memo(iW);function iW(e){let{…t}=e,[n,a]=v.useState(!1),{screenSize:r}=(0,j.lm)();return v.useEffect(()=>{a(rt.setOpenPanel(void 0),renderHeader:()=>null,renderBody:()=>iH({…t})})]})}function iH({stickySx:e,stickyHeaderRef:t,openPanel:n,isCodeNavLoading:a,codeNavInfo:r,setOpenPanel:s,showCodeNavWithSymbol:l,searchingText:o,setSearchingText:c,setSearchTerm:d,setSearchResults:u,setFocusedSearchResult:h,autoFocusSearch:m,className:p}){let{headerInfo:{toc:f}}=(0,ed.A)(),x=eg(t);return(0,i.jsx)(i$.Z,{sx:{…e,…x?{borderRadius:”0px 0px 6px 6px”,borderTop:0}:{}},className:`panel-content-narrow-styles ${p||””}`,children:”toc”===n?(0,i.jsx)(iw.A,{toc:f,onClose:()=>{s(void 0)}}):”codeNav”===n&&(0,i.jsx)(iP,{codeNavInfo:r,showCodeNavWithSymbol:l,selectedText:o.selectedText,lineNumber:o.lineNumber-1,offset:o.offset,onClose:()=>{s(void 0),localStorage.setItem(“codeNavOpen”,””),ew(null,!1,null),document.getElementById(“symbols-button”)?.focus()},isLoading:a,onClear:()=>c({selectedText:””,lineNumber:0,offset:-1}),setSearchTerm:d,setSearchResults:u,setFocusedSearchResult:h,autoFocusSearch:m})})}try{iM.displayName||(iM.displayName=”PanelContent”)}catch{}try{iW.displayName||(iW.displayName=”PanelContentUnmemoized”)}catch{}try{iH.displayName||(iH.displayName=”InnerPanelContent”)}catch{}function iU({blame:e,blob:t,searchTerm:n,setSearchTerm:a,symbolsExpanded:r,setValidCodeNav:s,showTree:l,treeToggleElement:o,validCodeNav:u,copilotInfo:h}){let{path:m}=(0,c.eu)(),p=t.symbolsEnabled,f=(0,v.useRef)(null),x=ej(),[b,g]=(0,v.useState)(!1),[w,_]=(0,v.useState)(null),{openPanel:k,setOpenPanel:C}=(0,d.Ak)(),I=(0,v.useRef)(null),L=(0,N.ud)().openSymbolsOption.enabled&&p,{screenSize:B}=(0,j.lm)();(0,O.Gp)(e=>{e&&g(!0)});let{sendRepoClickEvent:A}=(0,T.T)(),D=(0,v.useRef)(!0);function E(){window.scrollY<300&&z(null,!0)}(0,v.useEffect)(()=>{D.current?(D.current=!1,U.selectedText&&!k&&L&&r&&P()):(z(null,!0),a(“”),g(!1),V({selectedText:””,lineNumber:-1,offset:0}))},[m]),(0,v.useEffect)(()=>(window.addEventListener(“scroll”,E),()=>{window.removeEventListener(“scroll”,E)}),[]);let R=!!(0,ec.O)(),{currentStickyLines:F,setStickyLines:z}=function(){let[e,t]=(0,v.useState)(()=>new Map),n=(0,v.useCallback)((n,i)=>{let a=!1;if(null===n&&0===e.size)return;if(null===n&&i){e.clear(),t(new Map(e));return}if(!n)return;let r=n.lineNumber;if(i&&e.has(r)?(e.delete(r),a=!0):i||e.has(r)||(e.set(r,n),a=!0),e.has(r))for(let[t]of e){let n=e.get(t);(!n.ownedSection||n.ownedSection.endLine{!R&&L&&(C(“codeNav”),A(“BLOB_SYMBOLS_MENU.OPEN_WITH_SYMBOL”),localStorage.setItem(“codeNavOpen”,”codeNav”),ew(null,!0,null))},[R,L,C,A]),{isCodeNavLoading:$,codeNavInfo:M,showCodeNavWithSymbol:W,showCodeNavForToken:H,searchingText:U,setSearchingText:V}=function(e,t,n,i,a){let r=(0,ef.Z)(),s=(0,y.t)(),l=(0,em.i)(),{refInfo:o,path:d}=(0,c.eu)(),[u,h]=(0,v.useState)(!1),m=(0,v.useMemo)(()=>e.stylingDirectives?.map(e=>(0,ep.M)(e)),[e.stylingDirectives]),[p]=(0,ef.o)(),f=”1″===p.get(“plain”),x=(0,v.useMemo)(()=>{n(!0);try{return new es.Op(s,o,d,!!l,e.rawLines||[],e.symbols?.symbols??[],m,e.language,f,h)}catch{n(!1)}},[n,s,o,d,l,e.rawLines,e.symbols?.symbols,e.language,m,f]),[b,g]=(0,v.useState)(()=>{let t=(0,eh.$c)(i);if(!t.blobRange?.start?.line)return{selectedText:””,lineNumber:-1,offset:0};if(!a&&t.blobRange.start.line===t.blobRange.end.line&&null!==t.blobRange.start.column&&null!==t.blobRange.end.column&&t.blobRange.end.column-t.blobRange.start.column>2&&e.stylingDirectives&&e.stylingDirectives[t.blobRange.start.line-1]?.length&&x?.blobLines[t.blobRange.start.line-1]){let e=x.blobLines[t.blobRange.start.line-1]?.substring(t.blobRange.start.column-1,t.blobRange.end.column-1),n=m[t.blobRange.start.line-1]?.find(e=>e.s===t.blobRange.start.column-1&&e.e===t.blobRange.end.column-1);return e&&n&&(0,ex.Bm)(e,n.c)?{selectedText:e,lineNumber:t.blobRange.start.line,offset:t.blobRange.start.column}:{selectedText:””,lineNumber:-1,offset:0}}if(!i||!x||a)return{selectedText:””,lineNumber:-1,offset:0};{let e=x.getSymbolOnLine(Number(i.substring(2)));return e?{selectedText:e.name,lineNumber:e.lineNumber,offset:e.ident.start.column}:{selectedText:””,lineNumber:-1,offset:0}}});return{isCodeNavLoading:u,codeNavInfo:x,showCodeNavWithSymbol:(0,v.useCallback)(e=>{g({selectedText:e.name,lineNumber:e.lineNumber,offset:e.ident.start.column}),t(),r(e.href()),(0,ey.f)({line:e.lineNumber})},[t,r]),showCodeNavForToken:(0,v.useCallback)(e=>{g(e),t()},[t]),setSearchingText:g,searchingText:b}}(t,P,s,ei.fV.hash,R),{searchStatus:K,searchResults:G,setSearchResults:Y,focusedSearchResult:q,setFocusedSearchResult:Q}=function(e,t){let{findInFileWorkerPath:n}=(0,c.sq)(),[i,a]=(0,v.useState)([]),[r,s]=(0,v.useState)(void 0),[l,o]=(0,v.useState)(“done”),d=v.useRef(null),{refInfo:u,path:h}=(0,c.eu)();!d.current&&t&&(d.current=new er.N(new ea.z(n,el),200,e=>1!==e.query.length));let m=(0,v.useRef)(t);m.current=t;let p=(0,v.useRef)(“”);(0,v.useEffect)(()=>function(){d.current?.terminate()},[]);let f=(0,v.useRef)(void 0);return d.current&&e!==f.current&&(d.current.onResponse=t=>{t.query===m.current&&(s(0),a(e?.createReferences(t.ranges)||[]),o(“done”),p.current=m.current)},f.current=e),(0,v.useEffect)(()=>{if(!e||!d.current||!p.current||””===p.current){a([]),s(0),o(“done”);return}a([]),s(0),o(“pending”),d.current.post({query:p.current,lines:e.blobLines,currentCodeReferences:void 0})},[u.name,h]),(0,v.useEffect)(()=>{if(e&&d.current)if(“”===t)a([]),s(0),o(“done”),p.current=””;else{var n;if(p.current===t||!((n=t).length>0&&n.length<=1e3))return;o("pending");let a=p.current.length>0&&t.startsWith(p.current);d.current.post({query:t,lines:e.blobLines,currentCodeReferences:a?i:void 0})}},[t]),{focusedSearchResult:r,setFocusedSearchResult:s,searchResults:i,setSearchResults:a,searchStatus:l}}(M,n),{headerInfo:{toc:X}}=t,Z=(0,v.useMemo)(()=>({value:!1}),[M]);Z.value=!k||Z.value;let J=void 0!==k&&M&&u&&!(0===M.symbols.length&&”codeNav”===k&&!Z.value)&&!(!X&&”toc”===k)&&”edit”!==k&&!(!p&&”codeNav”===k),eg=J?k:void 0;return(0,v.useEffect)(()=>{k&&!J&&C(void 0)},[k,C,J]),(0,v.useEffect)(()=>{try{(0,en.BI)(“blob-size”,{lines:t.stylingDirectives?.length,truncatedSloc:t.headerInfo?.lineInfo.truncatedSloc,truncatedLoc:t.headerInfo?.lineInfo.truncatedLoc,length:t.rawLines?.reduce((e,t)=>e+t.length,0)??0,humanLength:t.headerInfo?.blobSize})}catch{}},[t]),(0,i.jsx)(ed.s,{blob:t,children:(0,i.jsx)(ec.k,{blame:e,children:(0,i.jsxs)(eu.EN,{children:[M&&(0,i.jsx)(iV,{codeNavInfo:M}),(0,i.jsx)(ee.D,{}),w&&(0,i.jsx)(S.az,{sx:{mb:3},children:(0,i.jsx)(eo.l,{…w})}),(0,i.jsxs)(S.az,{sx:{display:”flex”,flexDirection:”row”},children:[(0,i.jsxs)(S.az,{className:”container”,sx:{width:”100%”,height:”fit-content”,minWidth:0,mr:eg&&M&&B>j.Gy.medium?3:0},children:[(0,i.jsxs)(S.az,{sx:{height:”40px”,pl:1,pb:3},className:”react-code-size-details-banner”,children:[(0,i.jsx)(nK,{className:”react-code-size-details-banner”}),(0,i.jsx)(et.E,{copilotInfo:h,className:”react-code-size-details-banner”,view:e?”blame”:”preview”})]}),(0,i.jsx)(S.az,{className:”react-blob-view-header-sticky”,sx:x,id:eb.Us,ref:f,children:(0,i.jsx)(ib,{currentStickyLines:F,focusedSearchResult:q,openPanel:eg,searchingText:U,searchResults:G,searchTerm:n,setFocusedSearchResult:Q,setOpenPanel:C,setSearchTerm:a,showTree:l,stickyHeaderRef:f,treeToggleElement:o,validCodeNav:u,copilotInfo:h,colorizedLines:t.colorizedLines,onBannerChange:_})}),(0,i.jsx)(S.az,{sx:{border:”1px solid”,borderTop:”none”,borderColor:”border.default”,borderRadius:”0px 0px 6px 6px”,minWidth:”273px”},children:(0,i.jsx)(tX,{blobLinesHandle:I,setOpenPanel:C,validCodeNav:u,codeNavInfo:M,onCodeNavTokenSelected:H,onLineStickOrUnstick:z,searchResults:G,setSearchTerm:a,focusedSearchResult:q})})]}),eg&&M?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.az,{sx:{pb:”33px”}}),(0,i.jsx)(iM,{stickySx:x,stickyHeaderRef:f,openPanel:eg,isCodeNavLoading:$,codeNavInfo:M,setOpenPanel:C,showCodeNavWithSymbol:W,searchingText:U,setSearchingText:V,searchTerm:n,searchResults:G,searchStatus:K,setSearchResults:Y,setSearchTerm:a,setFocusedSearchResult:Q,autoFocusSearch:b})]}):null]})]})})})}function iV({codeNavInfo:e}){let{sendRepoKeyDownEvent:t}=(0,T.T)(),{findSymbolShortcut:n}=(0,u.wk)(),{setOpenPanel:a}=(0,d.Ak)();return 0===e.symbols.length?null:(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:n.hotkey,onButtonClick:()=>{a(“codeNav”),(0,O.DE)(),t(“FIND_SYMBOL”)}})}try{iU.displayName||(iU.displayName=”BlobViewContent”)}catch{}try{iV.displayName||(iV.displayName=”FindSymbolShortcut”)}catch{}var iK=n(74459),iG=n(10677),iY=n(72511);let iq=”BlameBanners-module__Flash–meEjD”,iQ=”BlameBanners-module__Box–aOFdP”;function iX({payload:e}){let t=”blame”in e?e.blame:void 0;return(0,i.jsxs)(ec.k,{blame:t,children:[(0,i.jsx)(iZ,{}),(0,i.jsx)(i0,{})]})}function iZ(){let e=(0,y.t)(),t=(0,c.eu)().refInfo.name,n=(0,ec.O)(),[a,r]=v.useState(!0);if(!n)return null;let s=n?.ignoreRevs,l=n?.errorType;return l?(0,i.jsx)(i.Fragment,{children:a&&(0,i.jsxs)(iY.A,{variant:”warning”,className:iq,children:[(0,i.jsx)(D.A,{icon:A.InfoIcon}),(0,i.jsx)(iJ,{blameErrorType:l,renderIgnoreRefsLink:()=>(0,i.jsx)(eX.N,{to:(0,G.nD_)({repo:e.name,owner:e.ownerLogin,commitish:t,filePath:s.path}),children:s.path})}),(0,i.jsx)(“div”,{onClick:()=>r(!1),className:iQ,children:(0,i.jsx)(D.A,{icon:A.XIcon})})]})}):null}function iJ({blameErrorType:e,renderIgnoreRefsLink:t}){switch(e){case”invalid_ignore_revs”:return(0,i.jsxs)(“span”,{children:[“Your “,t(),” file is invalid.”]});case”ignore_revs_too_big”:return(0,i.jsxs)(“span”,{children:[“Your “,t(),” file is too large.”]});case”symlink_disallowed”:return(0,i.jsx)(“span”,{children:”Symlinks are not supported.”});case”blame_timeout”:return(0,i.jsx)(“span”,{children:”Your blame took too long to compute.”});default:eE(e)}}function i0(){let e=(0,y.t)(),t=(0,c.eu)().refInfo.name,n=(0,ec.O)()?.ignoreRevs,[a,r]=v.useState(!0);if(!n?.present)return null;let s=(0,i.jsx)(eX.N,{to:(0,G.nD_)({repo:e.name,owner:e.ownerLogin,commitish:t,filePath:n.path}),children:n.path});return(0,i.jsx)(i.Fragment,{children:a&&(0,i.jsxs)(iY.A,{className:iq,children:[(0,i.jsx)(D.A,{icon:A.InfoIcon}),n.timedOut?(0,i.jsxs)(“span”,{children:[“Failed to ignore revisions in “,s,”.”]}):(0,i.jsxs)(“span”,{children:[“Ignoring revisions in “,s,”.”]}),(0,i.jsx)(“div”,{onClick:()=>r(!1),className:iQ,children:(0,i.jsx)(D.A,{icon:A.XIcon})})]})})}try{iX.displayName||(iX.displayName=”BlameBanners”)}catch{}try{iZ.displayName||(iZ.displayName=”BlameErrorBanner”)}catch{}try{iJ.displayName||(iJ.displayName=”BlameErrorText”)}catch{}try{i0.displayName||(i0.displayName=”IgnoreRevsBanner”)}catch{}var i1=n(71467);let i2=”BlobLowerBanners-module__Flash–fMDNQ”;var i3=n(2748);function i4({errors:e}){if(!e||0===e.length)return null;let t=[];return 1===e.length?t.push(“Learn more about this error.”):e.map((e,n)=>{t.push(`Learn more about error ${n+1}.`)}),(0,i.jsxs)(iY.A,{variant:”danger”,className:”DiscussionTemplateBanner-module__Flash–k48SN”,children:[(0,i.jsxs)(“p”,{children:[(0,i.jsx)(D.A,{icon:A.AlertIcon}),(0,i.jsxs)(“strong”,{children:[“There “,1===e.length?”is a problem”:”are some problems”,” with this template”]})]}),e.map((e,n)=>(0,i.jsxs)(“p”,{children:[(0,i.jsx)(eZ.JR,{html:e.message}),”. “,(0,i.jsx)(Y.A,{href:e.link,target:”_blank”,children:t[n]})]},`error-${n}`))]})}try{i4.displayName||(i4.displayName=”DiscussionTemplateBanner”)}catch{}var i6=n(54589);let i5=”IssueTemplateBanner-module__Banner–On97d”;function i7(e){let t,{issueTemplate:n,showIssueFormWarning:a,isValidLegacyIssueTemplate:r,helpUrl:s,isLoggedIn:l}=e;if(!l||!n&&!r&&!a)return null;let o=(0,no.G7)(“lifecycle_label_name_updates”),c=null,d=”Info”,u=[];return n?!1===n.valid?(t=”critical”,d=”Critical”,n.errors&&(1===n.errors.length?u.push(“Learn more about this error.”):n.errors.map((e,t)=>{u.push(`Learn more about error ${t+1}.`)})),c=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(“p”,{children:[(0,i.jsx)(D.A,{icon:A.AlertIcon}),(0,i.jsxs)(“strong”,{children:[“There “,n.errors?.length===1?”is a problem”:”are some problems”,” with this template”]})]}),n.errors?.map((e,t)=>(0,i.jsxs)(“p”,{children:[(0,i.jsx)(eZ.JR,{html:e.message}),”. “,(0,i.jsx)(Y.A,{href:e.link,target:”_blank”,children:u[t]})]},`error-${t}`))]})):c=n.structured?(0,i.jsxs)(i.Fragment,{children:[o?(0,i.jsx)(i6.X,{className:”mr-2″}):(0,i.jsx)(nj.A,{variant:”success”,className:”IssueTemplateBanner-module__Label–emfRW”,children:”Beta”}),”This file is used as an Issue Form template.”,” “,(0,i.jsx)(“a”,{href:”https://github.com/orgs/community/discussions/categories/projects-and-issues”,children:”Give Feedback.”})]}):”This file is used as a markdown issue template.”:a&&(c=”Issue form templates are not supported on private repositories.”,t=”warning”,d=”Warning”),(0,i.jsxs)(i.Fragment,{children:[(n||a)&&(0,i.jsx)(eo.l,{title:d,variant:t,className:i5,children:c}),r&&(0,i.jsx)(i8,{helpUrl:s})]})}function i8({helpUrl:e}){return(0,i.jsxs)(eo.l,{title:”Warning”,variant:”warning”,className:i5,children:[“You are using an old version of issue templates. Please update to the new issue template workflow.”,” “,(0,i.jsx)(Y.A,{href:`${e}/articles/about-issue-and-pull-request-templates`,target:”_blank”,inline:!0,children:”Learn more about issue templates.”})]})}try{i7.displayName||(i7.displayName=”IssueTemplateBanner”)}catch{}try{i8.displayName||(i8.displayName=”LegacyIssueTemplateBanner”)}catch{}function i9(){let e=(0,y.t)(),t=(0,em.i)(),{refInfo:n,path:a}=(0,c.eu)(),{helpUrl:r}=(0,c.sq)(),{csvError:s,isCodeownersFile:l,publishBannersInfo:{showPublishActionBanner:o,releasePath:d,dismissActionNoticePath:u},discussionTemplate:h,issueTemplate:m,showIssueFormWarning:p,isValidLegacyIssueTemplate:f}=(0,ed.A)(),[x,b]=(0,v.useState)([]),[g,j]=(0,v.useState)(i3.bN.LOADING),N=(0,v.useRef)(0);return(0,v.useEffect)(()=>{if(!e.currentUserCanPush)return;N.current++;let t=async()=>{try{let t=N.current,i=await (0,i3.kz)(e,n,a);if(t(0,i3.Ke)(e))),j(i3.bN.VALIDATED)}else j(i3.bN.ERROR)}catch{j(i3.bN.ERROR)}};l&&t()},[l,e,n,a]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(i1.A,{showPublishActionBanner:o,releasePath:d,dismissActionNoticePath:u}),(0,i.jsx)(i7,{issueTemplate:m,showIssueFormWarning:p,isValidLegacyIssueTemplate:f,isLoggedIn:!!t,helpUrl:r}),h?.errors&&h.errors.length>0&&(0,i.jsx)(i4,{…h}),(0,i.jsx)(ae,{}),l&&e.currentUserCanPush&&(0,i.jsx)(eH,{value:x,children:(0,i.jsx)(i3.$4,{errors:x,state:g})}),s&&(0,i.jsx)(at,{csvError:s})]})}function ae(){let{truncated:e,large:t,image:n,renderedFileInfo:a,rawBlobUrl:r}=(0,ed.A)();return!e||t||n||a?null:(0,i.jsxs)(iY.A,{className:i2,children:[“This file has been truncated, but you can”,” “,(0,i.jsx)(Y.A,{inline:!0,href:r,children:”view the full file”}),”.”]})}function at({csvError:e}){return(0,i.jsx)(iY.A,{variant:”warning”,className:i2,children:(0,i.jsx)(eZ.vb,{html:e})})}try{i9.displayName||(i9.displayName=”BlobLowerBanners”)}catch{}try{ae.displayName||(ae.displayName=”TruncatedBanner”)}catch{}try{at.displayName||(at.displayName=”CSVErrorBanner”)}catch{}function an(){let{license:e}=(0,nU.Y_)(),t=(0,y.t)(),{helpUrl:n}=(0,c.sq)(),a={permissions:{icon:A.CheckIcon,color:”success.fg”},limitations:{icon:A.XIcon,color:”danger.fg”},conditions:{icon:A.InfoIcon,color:”accent.fg”}};return e?(0,i.jsxs)(“div”,{className:”BlobLicenseBanner-module__Box–ZTbkr”,children:[(0,i.jsxs)(“div”,{className:(0,nx.$)(“blob-license-banner-outer”,”BlobLicenseBanner-module__Box_1–fLkDE”),children:[(0,i.jsxs)(“div”,{className:”BlobLicenseBanner-module__Box_2–tcP0E”,children:[(0,i.jsxs)(“div”,{className:”BlobLicenseBanner-module__Box_3–hdf26″,children:[(0,i.jsx)(nH.m4,{icon:A.LawIcon,size:32}),(0,i.jsxs)(“div”,{className:”BlobLicenseBanner-module__Box_4–tUGlM”,children:[(0,i.jsxs)(“div”,{className:”BlobLicenseBanner-module__Box_5–pNkB6″,children:[`${t.ownerLogin}/${t.name} is licensed under`,” “,e.name.toLowerCase().startsWith(“the “)?””:” the”]}),(0,i.jsx)(“h3″,{children:e.name})]})]}),(0,i.jsx)(eZ.vb,{html:e.description,className:”BlobLicenseBanner-module__VerifiedHTMLBox–TIzSo”})]}),(0,i.jsx)(“div”,{className:”BlobLicenseBanner-module__Box_6–RO_Q9″,children:Object.keys(e.rules).map((t,n)=>(0,i.jsxs)(“div”,{className:”BlobLicenseBanner-module__Box_7–KUIEo”,children:[(0,i.jsx)(“h5″,{className:”BlobLicenseBanner-module__Box_8–dxXDr”,children:t.charAt(0).toUpperCase()+t.substring(1)}),e.rules[t].map(e=>(0,i.jsxs)(“div”,{className:”BlobLicenseBanner-module__Box_9–ZuLtf”,children:[(0,i.jsx)(nH.m4,{icon:a[t].icon,size:13,sx:{color:a[t].color},className:”BlobLicenseBanner-module__Octicon–ew2Qo”}),e.label]},e.tag))]},n))})]}),(0,i.jsxs)(“div”,{className:”BlobLicenseBanner-module__Box_10–b6JCS”,children:[“This is not legal advice.\xa0″,(0,i.jsx)(Y.A,{inline:!0,href:`${n}/articles/licensing-a-repository/#disclaimer`,children:”Learn more about repository licenses”})]})]}):null}try{an.displayName||(an.displayName=”BlobLicenseBanner”)}catch{}function ai({citationHelpUrl:e}){return(0,i.jsxs)(iY.A,{variant:”warning”,className:”InvalidCitationWarning-module__Flash–F08CB”,children:[“Your “,(0,i.jsx)(“strong”,{children:”CITATION.cff”}),”file cannot be parsed. Make sure the formatting is correct.”,” “,(0,i.jsx)(Y.A,{inline:!0,href:e,children:”Learn more about CITATION files.”})]})}try{ai.displayName||(ai.displayName=”InvalidCitationWarning”)}catch{}function aa({globalPreferredFundingPath:e}){return(0,i.jsxs)(iY.A,{className:”OverridingGlobalFundingFileWarning-module__Flash–nDWHQ”,children:[“This file is overriding the organization-wide “,(0,i.jsx)(“code”,{children:”FUNDING.yml”}),”file. Removing “,(0,i.jsx)(“code”,{children:”FUNDING.yml”}),”in this repository will use the organization default.”,(0,i.jsxs)(Y.A,{inline:!0,href:e??void 0,children:[” “,”View organization funding file.”]})]})}try{aa.displayName||(aa.displayName=”OverridingGlobalFundingFileWarning”)}catch{}function ar(){let{topBannersInfo:{overridingGlobalFundingFile:e,globalPreferredFundingPath:t,showInvalidCitationWarning:n,citationHelpUrl:a}}=(0,ed.A)(),{showLicenseMeta:r}=(0,nU.Y_)();return(0,i.jsxs)(i.Fragment,{children:[r&&(0,i.jsx)(an,{}),n&&(0,i.jsx)(ai,{citationHelpUrl:a}),(0,i.jsx)(iK.I6,{}),e&&(0,i.jsx)(aa,{globalPreferredFundingPath:t})]})}try{ar.displayName||(ar.displayName=”BlobMidBanners”)}catch{}var as=n(19415);let al=”DependabotConfigurationBanner-module__Text_1–Rlpyl”;function ao(){let{defaultBranch:e}=(0,y.t)(),{refInfo:{name:t}}=(0,c.eu)(),{dependabotInfo:{showConfigurationBanner:n}}=(0,ed.A)();return n?e===t?(0,i.jsx)(ac,{}):(0,i.jsx)(ad,{}):null}function ac(){let{dependabotInfo:{configFilePath:e,networkDependabotPath:t,dismissConfigurationNoticePath:n,configurationNoticeDismissed:a}}=(0,ed.A)(),r=(0,v.useCallback)(()=>(0,ev.DI)(n,{method:”POST”}),[n]);return a?null:(0,i.jsx)(“div”,{className:”DependabotConfigurationBanner-module__Box–BNyPt”,children:(0,i.jsx)(as.A,{caret:”top”,open:!0,children:(0,i.jsxs)(as.A.Content,{children:[(0,i.jsx)(“h5″,{className:”DependabotConfigurationBanner-module__Text–HoEpO”,children:”Dependabot”}),(0,i.jsx)(“p”,{className:al,children:”Dependabot creates pull requests to keep your dependencies secure and up-to-date.”}),(0,i.jsxs)(“p”,{className:al,children:[“You can opt out at any time by removing the “,(0,i.jsx)(“code”,{children:e}),” config file.”]}),(0,i.jsxs)(“div”,{className:”DependabotConfigurationBanner-module__Box_1–tvtY3″,children:[(0,i.jsx)(t3.Q,{as:”a”,href:t,children:”View update status”}),(0,i.jsx)(t3.Q,{variant:”invisible”,onClick:r,className:”DependabotConfigurationBanner-module__Button–JJgnn”,children:”Dismiss”})]})]})})})}function ad(){let{defaultBranch:e,name:t,ownerLogin:n}=(0,y.t)(),{path:a}=(0,c.eu)(),r=(0,G.nD_)({owner:n,repo:t,commitish:e,filePath:a});return(0,i.jsxs)(iY.A,{variant:”warning”,children:[(0,i.jsxs)(“h5″,{children:[(0,i.jsx)(A.AlertIcon,{}),”Cannot configure Dependabot from this branch”]}),(0,i.jsxs)(“p”,{children:[“To configure Dependabot, you must use”,” “,(0,i.jsx)(Y.A,{inline:!0,href:r,children:”this repository’s default branch”})]})]})}try{ao.displayName||(ao.displayName=”DependabotConfigurationBanner”)}catch{}try{ac.displayName||(ac.displayName=”DefaultBranchDependabotConfigurationBanner”)}catch{}try{ad.displayName||(ad.displayName=”DirectionsForNonDefaultBranch”)}catch{}var au=n(76662);let ah=”OrgOnboardingTip-module__Text_1–POa2P”;function am({children:e,mediaUrl:t,mediaPreviewSrc:n,iconSvg:a,taskTitle:r,taskPath:s,org:l}){return(0,i.jsxs)(“section”,{className:”OrgOnboardingTip-module__Box–HU9iF”,children:[(0,i.jsxs)(“div”,{className:”OrgOnboardingTip-module__Box_1–xZeel”,children:[(0,i.jsx)(ap,{iconSvg:a}),(0,i.jsxs)(“div”,{className:”OrgOnboardingTip-module__Box_2–h4SOZ”,children:[(0,i.jsxs)(au.A,{children:[(0,i.jsx)(au.A.Item,{href:(0,G.p3r)({owner:l}),children:”Tasks”}),(0,i.jsx)(au.A.Item,{href:s,className:”OrgOnboardingTip-module__Breadcrumbs_Item–GcBYX”,children:r})]}),e]})]}),(0,i.jsx)(ax,{mediaPreviewSrc:n,mediaUrl:t})]})}function ap({iconSvg:e}){return(0,i.jsxs)(“div”,{className:”OrgOnboardingTip-module__Box_3–IXOGE”,children:[(0,i.jsx)(eZ.vb,{html:e,className:”OrgOnboardingTip-module__VerifiedHTMLBox–BMUT0″}),(0,i.jsx)(af,{size:6,color:”#6c84e9″,bottom:-7,left:-7}),(0,i.jsx)(af,{size:4,color:”#9e7bff”,top:-4,right:4}),(0,i.jsx)(af,{size:6,color:”#6c84e9″,top:-7,right:-8})]})}function af({size:e,color:t,left:n,right:a,top:r,bottom:s}){return(0,i.jsx)(S.az,{sx:{width:e,height:e,left:`${n}px`,right:`${a}px`,top:`${r}px`,bottom:`${s}px`,backgroundColor:t},className:”OrgOnboardingTip-module__Box_4–ekf4d”})}function ax({mediaUrl:e,mediaPreviewSrc:t}){return!((ei.cg?.innerWidth??0){location.href=r},children:”Upgrade now”})}try{aj.displayName||(aj.displayName=”PlanSupportBanner”)}catch{}try{aN.displayName||(aN.displayName=”UpgradeButton”)}catch{}function av(){let{planSupportInfo:e,topBannersInfo:t}=(0,ed.A)(),{actionsOnboardingTip:n}=t,a=(0,y.t)();return(0,i.jsxs)(“div”,{className:”BlobTopBanners-module__Box–F5OCo”,children:[(0,i.jsx)(aj,{…e,feature:”codeowners”,featureName:”CODEOWNERS”}),(0,i.jsx)(ao,{}),n&&(0,i.jsx)(am,{iconSvg:n.iconSvg,mediaPreviewSrc:n.mediaPreviewSrc,mediaUrl:n.mediaUrl,taskTitle:n.taskTitle,taskPath:n.taskPath,org:n.orgName,children:(0,i.jsx)(ay,{owner:a.ownerLogin,repo:a.name})})]})}try{av.displayName||(av.displayName=”BlobTopBanners”)}catch{}function aw({payload:e}){return(0,x.Hf)(e)?(0,i.jsx)(a_,{tree:e.tree}):(0,x.mM)(e)?(0,i.jsx)(ak,{blob:e.blob,payload:e}):null}function a_({tree:e}){return(0,i.jsxs)(iG.X,{payload:e,children:[(0,i.jsx)(iK.I6,{}),(0,i.jsx)(aS,{}),(0,i.jsx)(aC,{})]})}function ak({blob:e,payload:t}){return(0,i.jsxs)(ed.s,{blob:e,children:[(0,i.jsx)(av,{}),(0,i.jsx)(ar,{}),(0,i.jsx)(i9,{}),(0,i.jsx)(iX,{payload:t}),(0,i.jsx)(aC,{})]})}function aS(){let{items:e,totalCount:t}=(0,iG.d)(),n=t-e.length;return n>0?(0,i.jsxs)(S.Hx,{variant:”warning”,”data-testid”:”repo-truncation-warning”,sx:{mt:3},children:[“Sorry, we had to truncate this directory to “,e.length.toLocaleString(),” files. “,n.toLocaleString(),” “,1===n?”entry was”:”entries were”,” omitted from the list. Latest commit info may be omitted.”]}):null}function aC(){let e=(0,l.x7)(),t=””;for(let n of e)t+=n.message;return(0,ex.kY)(t),(0,i.jsx)(i.Fragment,{children:e.map((e,t)=>(0,i.jsx)(S.Hx,{variant:e.variant,sx:{mt:3},children:e.message},t))})}try{aw.displayName||(aw.displayName=”CodeViewBanners”)}catch{}try{a_.displayName||(a_.displayName=”TreeBanners”)}catch{}try{ak.displayName||(ak.displayName=”BlobBanners”)}catch{}try{aS.displayName||(aS.displayName=”TruncatedTreeBanner”)}catch{}try{aC.displayName||(aC.displayName=”CodeViewContextBanners”)}catch{}var aI=n(19976),aT=n(81960),aL=n(22198),aB=n(5723),aA=n(98755),aD=n(8934);function aO({diff:e,index:t}){let[n,a]=(0,v.useState)(!1),[r,s]=(0,v.useState)(!1),[l,o]=(0,v.useState)(!1),c=[];for(let t=0;t<5;t++)e.deletions>t?c.push(“deletion”):c.push(“neutral”);return e.diffHTML?(0,i.jsx)(“div”,{id:”readme”,className:”readme prose-diff html-blob blob”,children:(0,i.jsx)(eZ.vb,{html:e.diffHTML,className:”markdown-body container-lg”})}):(0,i.jsxs)(S.az,{sx:{border:”1px solid”,borderColor:”border.default”,borderRadius:”6px”,mt:3},id:`diff-entry-${t}`,children:[(0,i.jsxs)(S.az,{sx:{backgroundColor:”canvas.subtle”,borderBottom:”1px solid”,borderColor:”border.default”,display:”flex”,py:1,px:2,alignItems:”center”,gap:2},children:[(0,i.jsx)(t2.K,{“aria-label”:n?”Expand diff”:”Collapse diff”,icon:n?A.ChevronRightIcon:A.ChevronDownIcon,size:”small”,tooltipDirection:”s”,variant:”invisible”,onClick:()=>a(!n)}),(0,i.jsx)(S.EY,{sx:{color:”fg.muted”},children:e.deletions}),(0,i.jsx)(aI.uP,{squares:c}),(0,i.jsx)(S.N_,{sx:{color:”fg.default”,cursor:”pointer”},href:`#diff-entry-${t}`,children:e.path}),(0,i.jsx)(aA.T,{textToCopy:e.path,ariaLabel:”Copy path to clipboard”})]}),n?null:(0,i.jsx)(S.az,{sx:{px:3*!r,py:4*!r,position:”relative”},tabIndex:-1,children:r?(0,i.jsx)(aD.x,{“data-testid”:”delete-diff-fragment”,src:e.loadDiffPath,onLoad:()=>o(!0),children:!l&&(0,i.jsx)(S.az,{sx:{display:”flex”,alignItems:”center”,justifyContent:”center”,height:”137px”},children:(0,i.jsx)(iS.A,{})})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(aE,{}),(0,i.jsxs)(S.az,{sx:{position:”absolute”,display:”flex”,flexDirection:”column”,alignItems:”center”,justifyContent:”center”,top:0,left:0,height:”100%”,width:”100%”},children:[(0,i.jsx)(S.N_,{onClick:()=>s(!0),sx:{cursor:”pointer”},children:”Load diff”}),”This file was deleted.”]})]})})]})}function aE(){return(0,i.jsx)(S.az,{as:”svg”,”aria-hidden”:”true”,className:”width-full”,viewBox:”0 0 340 84″,xmlns:”http://www.w3.org/2000/svg”,sx:{height:”84″,maxWidth:”340px”},children:(0,i.jsx)(S.az,{as:”path”,className:”js-diff-placeholder”,clipPath:”url(#diff-placeholder)”,d:”M0 0h340v84H0z”,fillRule:”evenodd”,sx:{fill:”canvas.subtle”}})})}try{aO.displayName||(aO.displayName=”DiffEntry”)}catch{}try{aE.displayName||(aE.displayName=”DiffPlaceholderSvg”)}catch{}function aR({deleteInfo:e,webCommitInfo:t}){let{path:n}=(0,c.eu)(),{helpUrl:a}=(0,c.sq)(),r=(0,y.t)();return t.shouldFork||t.shouldUpdate||t.lockedOnMigration?(0,i.jsx)(aB.T,{binary:!1,helpUrl:a,webCommitInfo:t}):(0,i.jsxs)(S.az,{sx:{maxWidth:”1280px”,mx:”auto”},children:[(0,i.jsx)(aT.A,{as:”h1″,className:”sr-only”,children:`Deleting ${e.isBlob?””:”directory “}${r.name}/${n}. Commit changes to save.`}),(0,i.jsx)(aI.nq,{}),t.forkedRepo&&(0,i.jsx)(aL.r,{forkName:t.forkedRepo.name,forkOwner:t.forkedRepo.owner}),e.truncated&&(0,i.jsx)(iY.A,{variant:”warning”,className:”mb-2″,children:”The diff you’re trying to view is too large. We only load the first 1000 changed files.”}),e.diffs.map((e,t)=>(0,i.jsx)(aO,{diff:e,index:t},t))]})}try{aR.displayName||(aR.displayName=”DeleteViewContent”)}catch{}var aF=n(5205),az=n(79059),aP=n(75202),a$=n(34424),aM=n(83025);function aW({openPanel:e,readme:t,setOpenPanel:n,stickyHeaderHeight:a}){let{displayName:r,errorMessage:s,richText:l,headerInfo:o,timedOut:d}=t,{toc:u}=o||{},h=(0,y.t)(),{refInfo:m,path:p}=(0,c.eu)(),f=p&&”/”!==p?`${p}/${r}`:r;return(0,i.jsxs)(S.az,{sx:{minWidth:0,display:”flex”,flexDirection:”row”,justifyContent:”space-between”,gap:3},children:[(0,i.jsxs)(S.az,{id:”readme”,sx:{borderColor:”border.default”,borderWidth:1,borderStyle:”solid”,borderRadius:2,width:”toc”===e?”65%”:”100%”},children:[(0,i.jsxs)(S.az,{sx:{display:”flex”,flexDirection:”row”,alignItems:”center”,gap:2,pr:2,pl:3,py:2,borderBottom:”1px solid”,borderColor:”border.default”},children:[(0,i.jsx)(S.DZ,{as:”h2″,sx:{fontSize:1,flexGrow:1},children:(0,i.jsx)(S.N_,{sx:{color:”fg.default”,”&:hover”:{color:”accent.fg”}},href:”#readme”,children:r})}),m.canEdit&&(0,i.jsx)(aM.l,{editPath:(0,G.IO9)({repo:h,commitish:m.name,action:”edit”,path:f}),editTooltip:”Edit README”}),(0,i.jsx)(ix,{toc:u,openPanel:e,setOpenPanel:n,isDirectoryReadme:!0})]}),(0,i.jsx)(a$.e,{richText:l,errorMessage:s,path:f,stickyHeaderHeight:a,timedOut:d})]}),”toc”===e&&(0,i.jsx)(i$.Z,{sx:{height:”fit-content”,width:”35%”},children:(0,i.jsx)(iw.A,{onClose:()=>{n(void 0)},toc:u})})]})}try{aW.displayName||(aW.displayName=”DirectoryReadmePreview”)}catch{}function aH({showTree:e,treeToggleElement:t}){let n=(0,v.useRef)(null),a=eg(n),r=ej();return(0,i.jsx)(S.az,{className:”react-blob-view-header-sticky”,sx:{…r,zIndex:+!!a},ref:n,children:(0,i.jsx)(S.az,{sx:{display:”flex”,flexDirection:”column”,backgroundColor:”canvas.subtle”,borderBottom:a?”1px solid var(–borderColor-default, var(–color-border-default))”:”none”,overflow:”hidden”},children:(0,i.jsx)(nF,{isStickied:a,showTree:e,treeToggleElement:t})})})}try{aH.displayName||(aH.displayName=”FolderViewHeader”)}catch{}function aU({tree:e,showTree:t,treeToggleElement:n}){let{openPanel:a,setOpenPanel:r}=(0,d.Ak)();return(0,i.jsxs)(iG.X,{payload:e,children:[(0,i.jsx)(ee.D,{}),e.showBranchInfobar&&(0,i.jsx)(aP.t,{fallback:(0,i.jsx)(aF.o,{}),children:(0,i.jsx)(aF.k,{})}),(0,i.jsx)(aH,{showTree:t,treeToggleElement:n}),(0,i.jsxs)(S.az,{sx:{display:”flex”,flexDirection:”column”,gap:3},children:[(0,i.jsx)(az.t,{}),e.readme&&(0,i.jsx)(aW,{openPanel:a,setOpenPanel:r,readme:e.readme,stickyHeaderHeight:50})]})]})}try{aU.displayName||(aU.displayName=”FileTreeViewContent”)}catch{}var aV=n(97363);let aK=(0,v.lazy)(()=>Promise.all([n.e(82216),n.e(30587),n.e(347),n.e(15874),n.e(17688),n.e(16007),n.e(20382),n.e(48287),n.e(81028),n.e(6860),n.e(36590),n.e(51419),n.e(27061),n.e(46728),n.e(72241),n.e(63523),n.e(86093),n.e(55046),n.e(87107)]).then(n.bind(n,22098)));function aG({initialPayload:e}){let t=(0,m.P)(e);return(0,i.jsx)(aY,{payload:t,isDataRouter:!1})}function aY({payload:e,isDataRouter:t=!0}){let n,m=(0,y.t)(),{findFileWorkerPath:p}=(0,c.sq)(),{path:b}=e,C=(0,h.p)(e.refInfo),I=(0,x.di)(e),T=(0,x.mM)(e),L=(0,x.KR)(e),B=(0,x.iS)(e),[A,D]=(0,v.useState)(null),O=(0,nU.U6)(m,C,b,e.error?.httpStatus===404),E=(0,aV.TX)(m,C,b,e.error?.httpStatus===404,T||L?e.blob.rawLines?.length??1e5:1e5),R=v.useRef(null),F=v.useRef(!1),z=v.useRef(!1),P=v.useRef(null),$=v.useRef(null),M=”repos-file-tree”,W=v.useRef(void 0),[H,U]=(0,v.useState)(“”),{toggleFocusedPaneShortcut:V}=(0,u.wk)();(0,w.s)(!1),(0,v.useEffect)(()=>()=>(0,w.s)(!0),[]),(0,_.L)(!0);let K=v.useMemo(()=>(0,f.aO)(e),[e.path,e.refInfo.currentOid]),G=(0,v.useCallback)(e=>{ew(e,null,null)},[]),{isTreeExpanded:Y,collapseTree:q,expandTree:X,treeToggleElement:Z,treeToggleRef:ee,searchBoxRef:et}=(0,g.qn)(M,W,e.treeExpanded,ex.wQ,G),en=(0,v.useCallback)(()=>{window.innerWidth{if(!window.location.hash&&window.scrollY>0){let e=document.querySelector(“#StickyHeader”);e&&(e.style.position=”relative”,e.scrollIntoView(),e.style.position=”sticky”)}},[e.path]);let{codeCenterOption:er}=(0,N.ud)(),es=v.useCallback(()=>{window.innerWidth(function(){let e=document.getElementById(Q),t=document.getElementById(ex.wQ);if(document.activeElement?.id===ex.wQ&&(z.current=!0),A?.contains(document.activeElement)&&!z.current?F.current=!0:R.current?.contains(document.activeElement)&&(F.current=!1),F.current||z.current)if(z.current){let t=P.current||e||A;F.current=!0,z.current=!1,t?.focus()}else{let e=$.current||R.current;P.current=A?.contains(document.activeElement)?document.activeElement:null,F.current=!1,z.current=!1,e?.focus()}else{let e=t||A;$.current=R.current?.contains(document.activeElement)?document.activeElement:null,F.current=!1,e?.focus()}})()})]})]})})})})})}function aq(){let e=(0,p.Z)(),{permalinkShortcut:t}=(0,u.wk)();return e.isCurrentPagePermalink()?(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:t.hotkey,buttonTestLabel:”header-permalink-button”,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{}}):(0,i.jsx)(r._,{buttonFocusId:ex.wQ,buttonHotkey:t.hotkey,buttonTestLabel:”header-permalink-button”,onButtonClick:()=>{let t=e.createPermalink();0>window.location.href.indexOf(t)&&(0,b.kd)(t)}})}try{aK.displayName||(aK.displayName=”BlobEditor”)}catch{}try{aG.displayName||(aG.displayName=”CodeViewEntrypoint”)}catch{}try{aY.displayName||(aY.displayName=”CodeView”)}catch{}try{aq.displayName||(aq.displayName=”PermalinkShortcut”)}catch{}},27059:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(74848),a=n(12683),r=n(34164);let s=({children:e,sx:t,className:n,…s})=>(0,i.jsx)(a.az,{sx:t,className:(0,r.$)(“Panel-module__Box–U9sAo”,n),…s,children:e});try{s.displayName||(s.displayName=”Panel”)}catch{}},29731:(e,t,n)=>{n.d(t,{G:()=>i});let i=e=>({})},45385:(e,t,n)=>{n.d(t,{u:()=>o});var i=n(68273),a=n(16522),r=n(25407),s=n(96379),l=n(96540);let o=(0,i.xS)()?function(e,t,n,i){let o,c,d,u,h=(0,a.c)(9);h[0]===Symbol.for(“react.memo_cache_sentinel”)?(o={loading:!0},h[0]=o):o=h[0];let[m,p]=(0,l.useState)(o);h[1]!==n||h[2]!==i||h[3]!==t||h[4]!==e?(c=t&&e&&n&&i?(0,r.IO9)({repo:{name:t,ownerLogin:e},commitish:n,action:”file-contributors”,path:i}):null,h[1]=n,h[2]=i,h[3]=t,h[4]=e,h[5]=c):c=h[5];let f=c;return h[6]!==f?(d=()=>{if(!f)return;let e=!1;return(async()=>{p({loading:!0});let t=await (0,s.lS)(f);if(!e)try{t.ok?p({contributors:await t.json()}):p({error:!0})}catch{p({error:!0})}})(),function(){e=!0}},u=[f],h[6]=f,h[7]=d,h[8]=u):(d=h[7],u=h[8]),(0,l.useEffect)(d,u),m}:function(e,t,n,i){let[a,o]=(0,l.useState)({loading:!0}),c=t&&e&&n&&i?(0,r.IO9)({repo:{name:t,ownerLogin:e},commitish:n,action:”file-contributors”,path:i}):null;return(0,l.useEffect)(()=>{if(!c)return;let e=!1;return(async()=>{o({loading:!0});let t=await (0,s.lS)(c);if(!e)try{t.ok?o({contributors:await t.json()}):o({error:!0})}catch{o({error:!0})}})(),function(){e=!0}},[c]),a}},54589:(e,t,n)=>{n.d(t,{X:()=>l});var i=n(74848),a=n(26607),r=n(10242),s=n(84174);let l=({children:e=”Preview”,feedbackUrl:t,className:n})=>(0,i.jsx)(s.V,{className:n,label:(0,i.jsx)(a.A,{variant:”success”,children:e}),link:t?(0,i.jsx)(r.A,{feedbackUrl:t}):void 0});try{l.displayName||(l.displayName=”BetaLabel”)}catch{}},60269:(e,t,n)=>{n.d(t,{f:()=>s});var i=n(74848),a=n(69726),r=n(12683);let s=()=>(0,i.jsx)(r.az,{sx:{display:”flex”,flexDirection:”column”,alignItems:”center”,py:3},children:(0,i.jsx)(a.A,{“aria-label”:”Loading”})});try{s.displayName||(s.displayName=”LoadingFallback”)}catch{}},66561:(e,t,n)=>{n.d(t,{E:()=>b});var i=n(74848),a=n(78314),r=n(1868),s=n(29731),l=n(30459),o=n(96379),c=n(38621),d=n(73077),u=n(31604),h=n(19415),m=n(12683),p=n(96540),f=n(35898);let x={ORG_ADMIN:`For an organization, developers writing less boilerplate code means more productivity, while learning new technologies means delivering better customers solutions. Try it in Codespaces or your file editor.`,ORG_MEMBER:`We noticed that you’re personally paying for GitHub Copilot. Instead, ask your organization admin to purchase the business version of GitHub Copilot.`,STANDARD:`Spend less time creating boilerplate and repetitive code patterns, and more time building great software. Try it in Codespaces or your favorite file editor.`},y=({featureRequestInfo:e,inProgress:t,toggleFeatureRequest:n,requested:a})=>e?.showFeatureRequest?a?(0,i.jsx)(r.c9,{inProgress:t,toggleFeatureRequest:n}):(0,i.jsx)(r.iU,{inProgress:t,toggleFeatureRequest:n,featureName:e?.featureName}):null,b=({view:e,copilotInfo:t,className:n})=>{let{documentationUrl:b,notices:g,userAccess:j}=t??{},{business:N,orgHasCFBAccess:v,userHasCFIAccess:w,userHasOrgs:_,userIsOrgAdmin:k,userIsOrgMember:S,featureRequestInfo:C}=j??{},{codeViewPopover:I}=g??{},{sendClickAnalyticsEvent:T}=(0,l.S)(),L=(0,f.i)(),{isOrgOwned:B,ownerLogin:A}=(0,a.t)(),{inProgress:D,requested:O,dismissed:E,dismissedAt:R,toggleFeatureRequest:F}=(0,r.tV)(C),[z,P]=(0,p.useState)(!1),[$,M]=(0,p.useState)(!1),W=(0,p.useCallback)(()=>P(!0),[P]),H=(0,p.useCallback)(()=>P(!1),[P]),U=(0,p.useCallback)(()=>j&&B&&S&&!k&&(!v||w)?”Your organization can pay for GitHub Copilot”:”Code 55% faster with GitHub Copilot”,[v,B,j,w,k,S]),V=(t,n)=>{T({category:”copilot_popover_code_view”,action:t,label:`ref_cta:${n};ref_loc:code_view_${e}`})},K=()=>{let e=j?.userHasOrgs??!1;T({category:”copilot_popover_code_view”,action:`click_to_go_to_copilot_for_${e?”business”:”individuals”}_info`,label:”ref_cta:learn_more;ref_loc:code_view”})};return $||!t?null:(0,i.jsx)(“div”,{className:n,children:(0,i.jsx)(u.T,{onOpen:W,onClose:H,open:z,overlayProps:{role:”dialog”,style:{overflow:”inherit”}},focusZoneSettings:{disabled:!0},renderAnchor:t=>(0,i.jsx)(m.$n,{…t,…(0,s.G)(“copilot-popover-button”),leadingVisual:c.CopilotIcon,”aria-label”:U(),onClick:()=>{P(!z),L&&T({category:”copilot_popover_code_view”,action:`click_to_open_popover_${e}`,label:`ref_cta:open_copilot_popover;owner:${A};relationship:${L&&A===L.login?”owner”:k?”admin”:S?”member”:”personal”}`})},size:”small”,sx:{color:”fg.default”,display:[“none”,”none”,”none”,”none”,”block”]},variant:”invisible”}),children:(0,i.jsx)(h.A,{“aria-label”:”GitHub Copilot”,open:z,…(0,s.G)(“copilot-popover-content”),caret:”top”,children:(0,i.jsxs)(h.A.Content,{className:”CopilotPopover-module__PopoverContent–vIHIX”,children:[(0,i.jsx)(m.DZ,{as:”h2″,sx:{fontSize:1,fontWeight:”bold”,pb:3},children:”Code 55% faster with GitHub Copilot”}),(0,i.jsxs)(m.az,{sx:{fontSize:1,fontWeight:”normal”,pb:3},children:[(0,i.jsx)(“span”,{…(0,s.G)(“copilot-popover-body-text”),children:(()=>{if(E)return””;if(j&&B){if(k)return x.ORG_ADMIN;else if(S&&w)return x.ORG_MEMBER}return x.STANDARD})()}),E?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(“p”,{children:[“Your request for Copilot Business was declined by an admin on “,R,”.”]}),(0,i.jsxs)(“p”,{className:”mb-0″,children:[(0,i.jsx)(m.N_,{…(0,s.G)(“contact-admin-link”),”aria-label”:”Click this link to contact your admin.”,target:”_blank”,href:`/orgs/${A}/people?query=role:owner`,onClick:()=>K(),children:”Contact your admin”}),””,” for more details around their decision.”]})]}):(0,i.jsx)(m.N_,{…(0,s.G)(“copilot-popover-content-learn-more”),”aria-label”:”Click this link to learn more about copilot. This action opens in a new tab.”,target:”_blank”,href:b,onClick:()=>K(),sx:{marginLeft:”8px”},children:”Learn more”})]}),(0,i.jsxs)(m.az,{sx:{alignItems:”center”,display:”flex”,flexDirection:”row”},children:[N||w||B&&(!B||S)?S&&!v&&k?(0,i.jsx)(d.z,{type:”button”,href:`/github-copilot/business_signup/organization/payment?org=${A}`,onClick:()=>V(“click_to_buy_copilot_for_business”,”get_github_copilot”),children:”Get GitHub Copilot”}):C&&!E?(0,i.jsx)(y,{requested:O,featureRequestInfo:C,inProgress:D,toggleFeatureRequest:F}):null:_?(0,i.jsx)(d.z,{type:”button”,href:”/settings/copilot”,onClick:()=>V(“click_to_go_to_copilot_settings”,”get_github_copilot”),children:”Get GitHub Copilot”}):(0,i.jsx)(d.z,{type:”button”,href:”/github-copilot/signup”,onClick:()=>V(“click_to_go_to_copilot_trial_signup”,”start_a_free_trial”),children:”Start a free trial”}),(0,i.jsx)(m.N_,{…(0,s.G)(“copilot-popover-dismiss-button”),onClick:()=>{if(I){let t;(0,o.DI)(I.dismissPath,{method:S?”DELETE”:”POST”}),t=`${B?”org_”:””}code_view_${e}${k?”_org_admin”:””}`,T({category:”copilot_popover_code_view”,action:”click_to_dismiss_copilot_popover_forever”,label:`ref_cta:dont_show_again;ref_loc:${t}`}),M(!0)}},sx:{cursor:”pointer”,fontSize:1,textDecorationLine:”none”,marginLeft:E?0:”16px”},children:”Don’t show again”})]})]})})})})};try{y.displayName||(y.displayName=”FeatureRequest”)}catch{}try{b.displayName||(b.displayName=”CopilotPopover”)}catch{}},70843:(e,t,n)=>{n.d(t,{L:()=>r});var i=n(16522),a=n(96540);function r(e){let t,n,r=(0,i.c)(3);r[0]!==e?(t=()=>{if(!e)return;let t=document.querySelector(“.footer”);if(t)return t.hidden=!0,()=>{t.hidden=!1}},n=[e],r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,a.useEffect)(t,n)}},84174:(e,t,n)=>{n.d(t,{V:()=>r});var i=n(74848),a=n(46251);let r=({label:e,link:t,className:n})=>t?(0,i.jsxs)(a.B,{direction:”horizontal”,gap:”condensed”,align:”baseline”,className:n,children:[e,” “,t]}):n?(0,i.jsx)(“span”,{className:n,children:e}):(0,i.jsx)(i.Fragment,{children:e});try{r.displayName||(r.displayName=”LabelWithLink”)}catch{}},86131:(e,t,n)=>{n.d(t,{A:()=>r,s:()=>a});let i=!0;function a(e){i=e}function r(){return i}},89024:(e,t,n)=>{n.d(t,{ah:()=>a,lA:()=>s,tz:()=>r});let i=”Symbol”;function a(e){return{kind:i,regexp:RegExp(`(\\W|^)${e.replace(/[.*+?^${}()|[\]\\]/g,”\\$&”)}(\\W|$)`,”g”)}}function r(e){return{kind:”Text”,regexp:RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,”\\$&”),”gi”)}}function*s(e,t,n=0){for(let a=n;a0&&/\W/.test(t[0])&&(t=t.substring(1),s+=n[0].length-t.length),t.length>0&&/\W/.test(t[t.length-1])&&(t=t.substring(0,t.length-1))),yield{line:a,column:s,columnEnd:s+t.length,text:r}}}}},89136:(e,t,n)=>{n.d(t,{AP:()=>CodeSymbol,BW:()=>CodeReference,u:()=>r,v0:()=>SymbolKind});var i=n(50467),a=n(25407);let r={BLACKBIRD_SEARCH:”blackbird-search”,BLACKBIRD_ANALYSIS:”blackbird-analysis”,ALEPH_PRECISE:”aleph-precise”,BLOB_CONTENT:”blob-content-search”};let SymbolKind=class SymbolKind{constructor({kind:e}){(0,i._)(this,”enumStringVal”,void 0),(0,i._)(this,”fullName”,void 0),(0,i._)(this,”shortName”,void 0),(0,i._)(this,”plColor”,void 0),(0,i._)(this,”rank”,void 0);const[t,n]=function(e){if(“string”==typeof e){let t=e.toString().replace(“SYMBOL_KIND_”,””).replace(/_DEF$/,””).replace(/_REF$/,””).toLowerCase();if(e.startsWith(“SYMBOL_KIND_”))return[t,e.toString()];if(“”!==e&&”unknown”!==e){let t=`SYMBOL_KIND_${e.toUpperCase()}`;return”call”===e?t+=”_REF”:t+=”_DEF”,[e,t]}}return[“unknown”,”SYMBOL_KIND_UNKNOWN”]}(e);this.enumStringVal=n,this.fullName=t,this.shortName=function(e){switch(e){case”function”:case”method”:return”func”;case”interface”:return”intf”;case”implementation”:return”impl”;case”constant”:return”const”;case”module”:return”mod”;case”section_1″:return”h1″;case”section_2″:return”h2″;case”section_3″:return”h3″;case”section_4″:return”h4″;case”section_5″:return”h5″;case”section_6″:return”h6″;case”class”:case”call”:case”enum”:case”field”:case”macro”:case”struct”:case”trait”:case”type”:case”union”:return e;default:return e.substring(0,1)}}(t),this.plColor=function(e){switch(e){case”function”:case”method”:default:return”prettylights.syntax.entity”;case”class”:case”enum”:case”struct”:case”union”:return”prettylights.syntax.constant”;case”interface”:case”trait”:return”prettylights.syntax.keyword”;case”constant”:case”field”:case”enum member”:return”prettylights.syntax.variable”;case”implementation”:return”prettylights.syntax.string”}}(t),this.rank=({class:1,struct:1,enum:1,type:2,interface:3,trait:3,module:4,implementation:5,function:6,method:7,call:8,field:9})[t]||9}};let CodeSymbol=class CodeSymbol{setSymbolDepth(e){this.depth=e}setFileInfo(e,t,n){this.repo=e,this.refInfo=t,this.path=n}get lineNumber(){return this.ident.start.line+1}setSnippet(e,t,n,i){this.highlightedText=e,this.stylingDirectives=t,this.bodyText=n,this.leadingWhitespace=i}href(){if(!this.repo||!this.refInfo||!this.path)return`/${window.location.pathname}#L${this.lineNumber}`;let e=this.source===r.BLACKBIRD_SEARCH?this.repo.defaultBranch:this.refInfo.name||this.refInfo.currentOid;return(0,a.nD_)({owner:this.repo.ownerLogin,repo:this.repo.name,commitish:e,filePath:this.path,lineNumber:this.lineNumber})}pathKey(){return`${this.repo.ownerLogin}/${this.repo.name}/${this.refInfo.currentOid}/${this.path}`}constructor({ident:e,extent:t,kind:n,name:a,fullyQualifiedName:r,source:s}){(0,i._)(this,”ident”,void 0),(0,i._)(this,”extent”,void 0),(0,i._)(this,”kind”,void 0),(0,i._)(this,”name”,void 0),(0,i._)(this,”fullyQualifiedName”,void 0),(0,i._)(this,”highlightedText”,void 0),(0,i._)(this,”stylingDirectives”,void 0),(0,i._)(this,”leadingWhitespace”,void 0),(0,i._)(this,”source”,void 0),this.ident=e,this.extent=t,this.kind=new SymbolKind({kind:n}),this.name=a,this.fullyQualifiedName=r,this.source=s}};let CodeReference=class CodeReference{get lineNumber(){return this.ident.start.line+1}href(e){if(!this.repo||!this.refInfo||!this.path)return`/${window.location.pathname}#L${this.lineNumber}`;let t=this.source===r.BLACKBIRD_SEARCH?this.repo.defaultBranch:this.refInfo.name||this.refInfo.currentOid,n={owner:this.repo.ownerLogin,repo:this.repo.name,commitish:t,filePath:this.path,lineNumber:this.lineNumber,plain:this.isPlain?1:void 0};return e?(0,a.buO)(n):(0,a.nD_)(n)}setSnippet(e,t,n,i){this.highlightedText=e,this.stylingDirectives=t,this.bodyText=n,this.leadingWhitespace=i}pathKey(){return`${this.repo.ownerLogin}/${this.repo.name}/${this.refInfo.currentOid}/${this.path}`}constructor({ident:e,repo:t,refInfo:n,path:a,isPlain:r,source:s}){(0,i._)(this,”ident”,void 0),(0,i._)(this,”repo”,void 0),(0,i._)(this,”refInfo”,void 0),(0,i._)(this,”path”,void 0),(0,i._)(this,”isPlain”,void 0),(0,i._)(this,”highlightedText”,void 0),(0,i._)(this,”stylingDirectives”,void 0),(0,i._)(this,”source”,void 0),(0,i._)(this,”leadingWhitespace”,void 0),this.ident=e,this.repo=t,this.refInfo=n,this.path=a,this.isPlain=r??!1,this.source=s}}},95723:(e,t,n)=>{n.d(t,{Q:()=>p,w:()=>y});var i=n(74848),a=n(16522),r=n(98755),s=n(25407),l=n(66108),o=n(41462),c=n(84268),d=n(81960);let u=”Breadcrumb-module__md–YqBrk”,h=”Breadcrumb-module__lg–X8kMz”,m=”Breadcrumb-module__listItem–r4enD”;function p(e){let t,n,s,l,c,d,p,g,j,N,v,w,_=(0,a.c)(44),{id:k,fileNameId:S,path:C,repo:I,commitish:T,isFolder:L,size:B,showCopyPathButton:A}=e,D=void 0===k?”breadcrumb”:k,O=void 0===B?”lg”:B;_[0]!==C?(n={fileName:(t=C.split(“/”)).pop()||””,segments:t.map((e,n)=>({directoryName:e,directoryPath:t.slice(0,n+1).join(“/”)}))},_[0]=C,_[1]=n):n=_[1];let{fileName:E,segments:R}=n,F=!C,z=L&&”/”===C,P=”md”===O?u:h,$=`Breadcrumb-module__container–u5hNw ${P}`,M=`${D}-heading`,W=`${D}-heading`;if(_[2]!==W?(s=(0,i.jsx)(o.W,{id:W,as:”h2″,text:”Breadcrumbs”}),_[2]=W,_[3]=s):s=_[3],_[4]!==T||_[5]!==I?(l=(0,i.jsx)(f,{repo:I,commitish:T}),_[4]=T,_[5]=I,_[6]=l):l=_[6],_[7]!==I||_[8]!==z?(c=z&&(0,i.jsx)(o.W,{as:”h1″,text:I.name}),_[7]=I,_[8]=z,_[9]=c):c=_[9],_[10]!==l||_[11]!==c?(d=(0,i.jsxs)(“li”,{className:m,children:[l,c]}),_[10]=l,_[11]=c,_[12]=d):d=_[12],_[13]!==T||_[14]!==I||_[15]!==R||_[16]!==O){let e;_[18]!==T||_[19]!==I||_[20]!==O?(e=e=>{let{directoryName:t,directoryPath:n}=e;return(0,i.jsxs)(“li”,{className:m,children:[(0,i.jsx)(y,{size:O}),t?(0,i.jsx)(x,{path:n,directoryName:t,repo:I,commitish:T}):null]},n)},_[18]=T,_[19]=I,_[20]=O,_[21]=e):e=_[21],p=R.map(e),_[13]=T,_[14]=I,_[15]=R,_[16]=O,_[17]=p}else p=_[17];return _[22]!==d||_[23]!==p?(g=(0,i.jsxs)(“ol”,{className:”Breadcrumb-module__list–lkq0r”,children:[d,p]}),_[22]=d,_[23]=p,_[24]=g):g=_[24],_[25]!==D||_[26]!==g||_[27]!==M||_[28]!==s?(j=(0,i.jsxs)(“nav”,{“data-testid”:”breadcrumbs”,”aria-labelledby”:M,id:D,className:”Breadcrumb-module__nav–kjUkO”,children:[s,g]}),_[25]=D,_[26]=g,_[27]=M,_[28]=s,_[29]=j):j=_[29],_[30]!==E||_[31]!==S||_[32]!==L||_[33]!==F||_[34]!==O?(N=E&&(0,i.jsxs)(“div”,{“data-testid”:”breadcrumbs-filename”,className:”Breadcrumb-module__filename–n2aVJ”,children:[(0,i.jsx)(y,{size:O}),(0,i.jsx)(b,{value:E,id:S,size:O}),!F&&L&&(0,i.jsx)(y,{size:O})]},E),_[30]=E,_[31]=S,_[32]=L,_[33]=F,_[34]=O,_[35]=N):N=_[35],_[36]!==C||_[37]!==A?(v=A&&(0,i.jsx)(r.T,{ariaLabel:”Copy path”,textToCopy:C,tooltipProps:{direction:”nw”},size:”small”,className:”ml-2″}),_[36]=C,_[37]=A,_[38]=v):v=_[38],_[39]!==j||_[40]!==N||_[41]!==v||_[42]!==$?(w=(0,i.jsxs)(“div”,{className:$,children:[j,N,v]}),_[39]=j,_[40]=N,_[41]=v,_[42]=$,_[43]=w):w=_[43],w}function f(e){let t,n,r=(0,a.c)(6),{repo:o,commitish:d}=e;return r[0]!==d||r[1]!==o?(t=(0,s.IO9)({repo:o,commitish:d,action:”tree”}),r[0]=d,r[1]=o,r[2]=t):t=r[2],r[3]!==o.name||r[4]!==t?(n=(0,i.jsx)(c.A,{as:l.N,className:”Breadcrumb-module__repoLink–ZlDIS”,to:t,”data-testid”:”breadcrumbs-repo-link”,reloadDocument:!0,children:o.name}),r[3]=o.name,r[4]=t,r[5]=n):n=r[5],n}function x(e){let t,n,r=(0,a.c)(7),{directoryName:o,path:d,repo:u,commitish:h}=e;return r[0]!==h||r[1]!==d||r[2]!==u?(t=(0,s.IO9)({repo:u,commitish:h,path:d,action:”tree”}),r[0]=h,r[1]=d,r[2]=u,r[3]=t):t=r[3],r[4]!==o||r[5]!==t?(n=(0,i.jsx)(c.A,{as:l.N,to:t,className:”Breadcrumb-module__directoryLink–pwiL6″,children:o}),r[4]=o,r[5]=t,r[6]=n):n=r[6],n}function y(e){let t,n=(0,a.c)(2),{size:r}=e,s=`Breadcrumb-module__separator–DqIXz ${“md”===(void 0===r?”lg”:r)?u:h}`;return n[0]!==s?(t=(0,i.jsx)(“span”,{className:s,”aria-hidden”:”true”,children:”/”}),n[0]=s,n[1]=t):t=n[1],t}function b(e){let t,n=(0,a.c)(4),{value:r,id:s,size:l}=e,o=`Breadcrumb-module__filenameHeading–Paorw ${“md”===(void 0===l?”lg”:l)?u:h}`;return n[0]!==s||n[1]!==o||n[2]!==r?(t=(0,i.jsx)(d.A,{as:”h1″,tabIndex:-1,className:o,id:s,children:r}),n[0]=s,n[1]=o,n[2]=r,n[3]=t):t=n[3],t}try{p.displayName||(p.displayName=”Breadcrumb”)}catch{}try{f.displayName||(f.displayName=”RepoLink”)}catch{}try{x.displayName||(x.displayName=”DirectoryLink”)}catch{}try{y.displayName||(y.displayName=”Separator”)}catch{}try{b.displayName||(b.displayName=”FileName”)}catch{}},96633:(e,t,n)=>{n.d(t,{N:()=>m,q:()=>h});var i=n(74848),a=n(57224),r=n(78314),s=n(35898),l=n(19357),o=n(76648),c=n(39467),d=n(64830),u=n(96540);function h({children:e}){let t=(0,o.B)();return(0,i.jsx)(m,{payload:t,children:e})}function m({children:e,payload:t}){let[n]=u.useState(t?.repo),[o]=u.useState(t?.currentUser),h=(0,u.useMemo)(()=>({}),[]);return(0,u.useEffect)(()=>{let e=document.querySelector(“.footer”);e&&(e.querySelector(“.mt-6”)?.classList.replace(“mt-6″,”mt-0”),e.querySelector(“.border-top”)?.classList.remove(“border-top”))},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“meta”,{name:”github-code-view-meta-stats”,id:”github-code-view-meta-stats”,”data-hydrostats”:”publish”}),(0,i.jsx)(c.LB,{initialValue:c.Gy.xxxlarge,children:(0,i.jsx)(a.y,{appName:”react-code-view”,category:””,metadata:h,children:(0,i.jsx)(s.Q,{user:o,children:(0,i.jsx)(r.d,{repository:n,children:(0,i.jsx)(d.cp,{children:(0,i.jsx)(l.i,{children:e})})})})})})]})}try{h.displayName||(h.displayName=”App”)}catch{}try{m.displayName||(m.displayName=”AppWrapper”)}catch{}}},e=>{e.O(0,[3088,43934,82216,67733,97068,913,6488,31475,48775,42892,23832,99418,33915,4712,96537,51220,66946,74524,36978,25407,40771,66990,29665,91232,41474,30240,6623,10288,36584,3966],()=>e(e.s=19826)),e.O()}]); //# sourceMappingURL=react-code-view-7c04e97bfddf.js.map