"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["app_assets_modules_react-shared_hooks_use-canonical-object_ts-ui_packages_code-view-shared_ho-3e492a"],{55822:(e,t,r)=>{r.d(t,{f:()=>o});var i=r(67294);function o(e){let t=(0,i.useRef)([]);for(let r of t.current)if(e===r||function e(t,r){if(t===r)return!0;if("object"!=typeof t||typeof t!=typeof r||!t||!r)return!1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(let i=0;i5&&t.current.pop(),e}},29881:(e,t,r)=>{r.d(t,{bx:()=>s,ln:()=>l,tW:()=>c});var i=r(15631),o=r(20679);let a={cursorNavigationHopWordLeft:{hotkey:"Alt+ArrowLeft,Ctrl+ArrowLeft",useWhileBlobFocused:!0,noModifierHotkey:["ArrowLeft"],modifierRequired:!0},cursorNavigationHopWordRight:{hotkey:"Alt+ArrowRight,Ctrl+ArrowRight",useWhileBlobFocused:!0,noModifierHotkey:["ArrowRight"],modifierRequired:!0},cursorNavigationTopOfPage:{hotkey:"Meta+ArrowUp",useWhileBlobFocused:!0,noModifierHotkey:["ArrowUp"],modifierRequired:!0},cursorNavigationBottomOfPage:{hotkey:"Meta+ArrowDown",useWhileBlobFocused:!0,noModifierHotkey:["ArrowDown"],modifierRequired:!0},cursorNavigationEnd:{hotkey:"End,Meta+ArrowRight",useWhileBlobFocused:!0,noModifierHotkey:["End"]},cursorNavigationHome:{hotkey:"Home,Meta+ArrowLeft",useWhileBlobFocused:!0,noModifierHotkey:["Home"]},cursorNavigationPageUp:{hotkey:"PageUp",useWhileBlobFocused:!0,noModifierHotkey:["PageUp"]},cursorNavigationPageDown:{hotkey:"PageDown",useWhileBlobFocused:!0,noModifierHotkey:["PageDown"]},cursorNavigationArrowDown:{hotkey:"ArrowDown",useWhileBlobFocused:!0,noModifierHotkey:["ArrowDown"]},cursorNavigationArrowUp:{hotkey:"ArrowUp",useWhileBlobFocused:!0,noModifierHotkey:["ArrowUp"]},cursorNavigationArrowLeft:{hotkey:"ArrowLeft",useWhileBlobFocused:!0,noModifierHotkey:["ArrowLeft"]},cursorNavigationArrowRight:{hotkey:"ArrowRight",useWhileBlobFocused:!0,noModifierHotkey:["ArrowRight"]},cursorNavigationShiftHopWordLeft:{hotkey:"Alt+Shift+ArrowLeft,Ctrl+Shift+ArrowLeft",useWhileBlobFocused:!0,noModifierHotkey:["ArrowLeft"],modifierRequired:!0},cursorNavigationShiftHopWordRight:{hotkey:"Alt+Shift+ArrowRight,Ctrl+Shift+ArrowRight",useWhileBlobFocused:!0,noModifierHotkey:["ArrowRight"],modifierRequired:!0},cursorNavigationShiftTopOfPage:{hotkey:"Meta+Shift+ArrowUp",useWhileBlobFocused:!0,noModifierHotkey:["ArrowUp"],modifierRequired:!0},cursorNavigationShiftBottomOfPage:{hotkey:"Meta+Shift+ArrowDown",useWhileBlobFocused:!0,noModifierHotkey:["ArrowDown"],modifierRequired:!0},cursorNavigationShiftEnd:{hotkey:"Shift+End,Meta+Shift+ArrowRight",useWhileBlobFocused:!0,noModifierHotkey:["End"],modifierRequired:!0},cursorNavigationShiftHome:{hotkey:"Shift+Home,Meta+Shift+ArrowLeft",useWhileBlobFocused:!0,noModifierHotkey:["Home"],modifierRequired:!0},cursorNavigationShiftPageUp:{hotkey:"Shift+PageUp",useWhileBlobFocused:!0,noModifierHotkey:["PageUp"],modifierRequired:!0},cursorNavigationShiftPageDown:{hotkey:"Shift+PageDown",useWhileBlobFocused:!0,noModifierHotkey:["PageDown"],modifierRequired:!0},cursorNavigationShiftArrowDown:{hotkey:"Shift+ArrowDown",useWhileBlobFocused:!0,noModifierHotkey:["ArrowDown"],modifierRequired:!0},cursorNavigationShiftArrowUp:{hotkey:"Shift+ArrowUp",useWhileBlobFocused:!0,noModifierHotkey:["ArrowUp"],modifierRequired:!0},cursorNavigationShiftArrowLeft:{hotkey:"Shift+ArrowLeft",useWhileBlobFocused:!0,noModifierHotkey:["ArrowLeft"],modifierRequired:!0},cursorNavigationShiftArrowRight:{hotkey:"Shift+ArrowRight",useWhileBlobFocused:!0,noModifierHotkey:["ArrowRight"],modifierRequired:!0},cursorNavigationHighlightLine:{text:"J",hotkey:"Shift+J",useWhileBlobFocused:!0,noModifierHotkey:["J"],modifierRequired:!0},cursorNavigationGoLineUp:{hotkey:"Ctrl+p",useWhileBlobFocused:!0,noModifierHotkey:["p"],modifierRequired:!0},cursorNavigationOpenHelpDialog:{hotkey:"Alt+F1,Control+Alt+\u02D9,Control+Alt+h",useWhileBlobFocused:!0,noModifierHotkey:["F1","h","\u02D9"],modifierRequired:!0},cursorNavigationGoLineDown:{hotkey:"Ctrl+n",useWhileBlobFocused:!0,noModifierHotkey:["n"],modifierRequired:!0},cursorNavigationEnter:{text:"\u2318 Enter",hotkey:"Meta+Enter",useWhileBlobFocused:!0,noModifierHotkey:["Enter"],modifierRequired:!0},cursorNavigationSpace:{hotkey:" ",useWhileBlobFocused:!0,noModifierHotkey:[" "],modifierRequired:!1},cursorNavigationShiftSpace:{hotkey:"Shift+ ",useWhileBlobFocused:!0,noModifierHotkey:[" "],modifierRequired:!0},expandAndFocusLineContextMenu:{text:"Shift Alt C",hotkey:"Alt+Shift+C,Alt+Shift+\xc7",useWhileBlobFocused:!0,noModifierHotkey:["C"],modifierRequired:!0},copyFilePathShortcut:{text:"\u2318 shift .",hotkey:"Meta+Shift+>",useWhileBlobFocused:!0,noModifierHotkey:["."],modifierRequired:!0},copyPermalinkShortcut:{text:"\u2318 shift ,",hotkey:"Meta+Shift+<",useWhileBlobFocused:!0,noModifierHotkey:[","],modifierRequired:!0},copyRawContentShortcut:{text:"\u2318 shift c",hotkey:"Meta+Shift+C",useWhileBlobFocused:!0,noModifierHotkey:["c"],modifierRequired:!0},downloadRawContentShortcut:{text:"\u2318 shift s",hotkey:"Meta+Shift+S",useWhileBlobFocused:!0,noModifierHotkey:["s"],modifierRequired:!0},editFileShortcut:{hotkey:"e,Shift+E",useWhileBlobFocused:!0,noModifierHotkey:["e","E"]},goToLineShortcut:{text:"l",hotkey:"l,Shift+L",ariaKeyShortcuts:"l",useWhileBlobFocused:!0,noModifierHotkey:["l","L"]},alternativeGoToLineShortcut:{hotkey:"Mod+Alt+g",ariaKeyShortcuts:"Mod+Alt+g",useWhileBlobFocused:!0,noModifierHotkey:["g","G"]},findInFileShortcut:{hotkey:"Meta+f, F3",text:"\u2318 f",ariaKeyShortcuts:"Meta+F",useWhileBlobFocused:!0,noModifierHotkey:["f","F3"],modifierRequired:!0},findFilesShortcut:{hotkey:"t,Shift+T",useWhileBlobFocused:!0,noModifierHotkey:["t","T"]},findSelectionShortcut:{hotkey:"Meta+e",useWhileBlobFocused:!0,noModifierHotkey:["e"],modifierRequired:!0},findNextShortcut:{hotkey:"Mod+g"},findPrevShortcut:{hotkey:"Mod+Shift+G"},openWithGitHubDevShortcut:{hotkey:"., Meta+Shift+/",useWhileBlobFocused:!0,noModifierHotkey:["."]},openWithGitHubDevInNewWindowShortcut:{hotkey:"Shift+.,Shift+>,>",useWhileBlobFocused:!0,noModifierHotkey:[">"]},permalinkShortcut:{hotkey:"y,Shift+Y",useWhileBlobFocused:!0,noModifierHotkey:["y","Y"]},searchShortcut:{hotkey:"/",useWhileBlobFocused:!0,noModifierHotkey:["/"]},selectAllShortcut:{hotkey:"Meta+a",useWhileBlobFocused:!0,noModifierHotkey:["a"],modifierRequired:!0},selectEditTabShortcut:{hotkey:"Mod+Shift+P"},submitCommitDialogShortcut:{hotkey:"Mod+Enter"},refSelectorShortcut:{hotkey:"w",text:"w",useWhileBlobFocused:!0,noModifierHotkey:["w"]},escapeRightClickMenu:{hotkey:"Escape",useWhileBlobFocused:!0,noModifierHotkey:["Escape"]},toggleFocusedPaneShortcut:{hotkey:"Meta+F6,Meta+Shift+F6",useWhileBlobFocused:!0,noModifierHotkey:["F6"],modifierRequired:!0},toggleSymbolsShortcut:{hotkey:"Meta+i",useWhileBlobFocused:!0,noModifierHotkey:["i"],modifierRequired:!0},toggleTreeShortcut:{hotkey:"Meta+b",useWhileBlobFocused:!0,noModifierHotkey:["b"],modifierRequired:!0},viewBlameShortcut:{hotkey:"b,Shift+B,Meta+/ Meta+b",useWhileBlobFocused:!0,noModifierHotkey:["b"]},viewCodeShortcut:{hotkey:"Meta+/ Meta+c",useWhileBlobFocused:!0,modifierRequired:!0},viewPreviewShortcut:{hotkey:"Meta+/ Meta+p"},viewRawContentShortcut:{text:"\u2318 / \u2318 r",hotkey:"Meta+/ Meta+r",useWhileBlobFocused:!0,noModifierHotkey:["r"],modifierRequired:!0},findSymbolShortcut:{hotkey:"r,Shift+R",useWhileBlobFocused:!0,noModifierHotkey:["r","R"],modifierRequired:!1}},n=new Map;function s(){let e=(0,o.f)(["mac"]),[t]=(0,i.D)(()=>!1,!0,[]),r=0;if(e?r=1:t||(r=2),!n.has(r)){var s,l;let i=a;e||t||(i=Object.keys(s=i).reduce((e,t)=>{let r=s[t];return e[t]={hotkey:r.hotkey?.replace(/Meta/g,"Control"),text:r.text?.replace(/⌘/g,"Ctrl").replace(/⇧/g,"Shift"),ariaKeyShortcuts:r.ariaKeyShortcuts?.replace(/Meta/g,"Control"),useWhileBlobFocused:r.useWhileBlobFocused,modifierRequired:r.modifierRequired,noModifierHotkey:r.noModifierHotkey},e},{})),t&&(i=Object.keys(l=i).reduce((e,t)=>{let r=l[t];return e[t]={hotkey:void 0,text:r.text?.replace(/⌘/g,"Ctrl").replace(/⇧/g,"Shift"),ariaKeyShortcuts:r.ariaKeyShortcuts?.replace(/Meta/g,"Control"),useWhileBlobFocused:r.useWhileBlobFocused,modifierRequired:r.modifierRequired,noModifierHotkey:r.noModifierHotkey},e},{})),n.set(r,i)}return n.get(r)}function l(){let e=s();return Object.keys(e).reduce((t,r)=>{let i=e[r];if(i.useWhileBlobFocused&&i.noModifierHotkey&&i.modifierRequired)for(let e of i.noModifierHotkey)t.includes(e)||t.push(e);return t},[])}function c(){let e=s();return Object.keys(e).reduce((t,r)=>{let i=e[r];if(i.useWhileBlobFocused&&i.noModifierHotkey&&!i.modifierRequired)for(let e of i.noModifierHotkey)t.includes(e)||t.push(e);return t},[])}},81700:(e,t,r)=>{r.d(t,{U:()=>l});var i=r(22326),o=r(67294),a=r(59309),n=r(24533),s=r(41768);function l(e){let t=(0,n.T)(),r=e||t,l=(0,o.useRef)(r),c=(0,o.useContext)(a.h);if(r)l.current=r;else{let e=(0,i.Vr)(location.pathname,l.current.refInfo.name,l.current.path);r=(0,s.xC)(l.current,c,e)}return r}},23180:(e,t,r)=>{r.d(t,{a:()=>d});var i=r(52674),o=r(22326),a=r(7949),n=r(59434),s=r(87623),l=r(67294),c=r(37589);function d(){let{sendAnalyticsEvent:e}=(0,n.z)(),t=function(){let e=function(){let e=(0,i.H)(),t=(0,c.x)();return(0,l.useMemo)(()=>({react_app:"code-view",repository_id:e.id,repository_nwo:`${e.ownerLogin}/${e.name}`,repository_public:e.public,repository_is_fork:e.isFork,actor_id:t?.id,actor_login:t?.login}),[e,t])}(),t=(0,i.H)(),r=(0,o.Mf)(o.V6,{owner:t.ownerLogin,repo:t.name});return(0,l.useCallback)((t,i,o)=>{let a={target:t,interaction:i,context:o,...e,url:window.location.href,user_agent:window.navigator.userAgent,browser_width:window.innerWidth,browser_languages:window.navigator.languages.join(",")};(0,s.v)(r,{method:"POST",body:a})},[e,r])}(),r=(0,a.y)("code_nav_ui_events");return{sendRepoClickEvent:(0,l.useCallback)((i,o={})=>{e("repository.click",i,o),r&&t(i,"click",o)},[e,t,r]),sendRepoKeyDownEvent:(0,l.useCallback)((i,o={})=>{e("repository.keydown",i,o),r&&t(i,"keydown",o)},[e,t,r]),sendStats:(0,l.useCallback)((i,o={})=>{e(i,"",o),r&&t(i,"stats",o)},[e,t,r]),sendMarketplaceActionEvent:(0,l.useCallback)((t,r={})=>{e("marketplace.action.click",t,r)},[e])}}},79842:(e,t,r)=>{r.d(t,{B:()=>l});var i=r(86525),o=r(52674),a=r(22326),n=r(15631),s=r(67294);function l(){let e=(0,o.H)(),{path:t,action:r,refInfo:l}=(0,i.Br)(),[c]=(0,n.D)(()=>!1,!0,[]),d=s.useCallback(t=>(0,a.Qi)({repo:e,commitish:l.name,action:"directory"===t.contentType?"tree":"blob",path:t.path}),[e.ownerLogin,e.name,l.name]);function u(e){return e?`?${e}`:""}function h(e){return c?"":void 0===e?window.location.hash:e?`#${e}`:""}return{getItemUrl:d,getUrl(i={}){let o=(0,a.Qi)({repo:e,commitish:i.commitish||l.name,action:i.action||r,path:i.path||t})+function({params:e,hash:t}){return u(e)+h(t)}(i);return i.absolute?new URL(o,window.location.origin).href:o},createPermalink(i={}){let o=(0,a.Qi)({repo:e,commitish:l.currentOid,action:i.action||r,path:i.path||t})+function({params:e,hash:t}){return u(e)+h(t)}(i);return i.absolute?new URL(o,window.location.origin).href:o},isCurrentPagePermalink:()=>!c&&l.name===l.currentOid&&window.location.pathname.includes(l.currentOid)}}},41768:(e,t,r)=>{r.d(t,{r8:()=>o,xC:()=>a});var i=r(91801);function o(e){return(0,i.g6)(e)?{...e.fileTree,[e.path]:{items:e.tree.items,totalCount:e.tree.totalCount}}:e.fileTree}function a(e,t,r){return{path:r,repo:e.repo,refInfo:e.refInfo,currentUser:e.currentUser,fileTree:o(e),fileTreeProcessingTime:e.fileTreeProcessingTime,foldersToFetch:e.foldersToFetch,allShortcutsEnabled:e.allShortcutsEnabled,treeExpanded:e.treeExpanded,symbolsExpanded:e.symbolsExpanded,codeLineWrapEnabled:e.codeLineWrapEnabled,error:t||void 0}}},80589:(e,t,r)=>{r.d(t,{A:()=>i});let i={"&:hover:not([disabled])":{textDecoration:"none"},"&:focus:not([disabled])":{textDecoration:"none"},"&:active:not([disabled])":{textDecoration:"none"}}},91801:(e,t,r)=>{var i,o;function a(e){return"blob"in e}function n(e){return a(e)&&"blame"in e}function s(e){return"deleteInfo"in e&&"webCommitInfo"in e}function l(e){return"editInfo"in e&&"webCommitInfo"in e}function c(e){return"tree"in e}r.d(t,{kl:()=>o,K$:()=>n,Kg:()=>a,XU:()=>s,OH:()=>l,g6:()=>c}),function(e){e.FALSE_POSITIVE="false_positive",e.USED_IN_TESTS="used_in_tests",e.WILL_FIX_LATER="will_fix_later"}(i||(i={})),function(e){e.README="readme",e.CODE_OF_CONDUCT="code_of_conduct",e.LICENSE="license",e.SECURITY="security"}(o||(o={}))},14136:(e,t,r)=>{r.d(t,{m:()=>h,z:()=>u});var i=r(85893),o=r(79621),a=r(44459),n=r(85529),s=r(50919),l=r(42483),c=r(67294),d=r(41436);function u(e){if("clipboard"in navigator)return navigator.clipboard.writeText(e);let t=document.body;if(!t)return Promise.reject(Error());let r=function(e){let t=document.createElement("pre");return t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="5px",t.textContent=e,t}(e);return t.appendChild(r),!function(e){if("clipboard"in navigator)return navigator.clipboard.writeText(e.textContent||"");let t=getSelection();if(null==t)return Promise.reject(Error());t.removeAllRanges();let r=document.createRange();r.selectNodeContents(e),t.addRange(r),document.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}(r),t.removeChild(r),Promise.resolve()}function h({icon:e=n.CopyIcon,size:t="medium",onCopy:r,sx:o,textToCopy:l,tooltipProps:h,ariaLabel:f,accessibleButton:p,hasPortalTooltip:x=!1}){let[y,g]=c.useState(!1),b=(0,a.Z)(),j=()=>{g(!0),u(l),r?.(),setTimeout(()=>b()&&g(!1),2e3)},w=y?"Copied!":f??`Copy ${l} to clipboard`;return x?(0,i.jsx)(m,{label:w,textToCopy:l,copied:y,onClickCopy:j,tooltipProps:h,sx:{...o}}):(0,i.jsx)(d.u,{text:w,"aria-label":w,...h,sx:{position:"absolute"},children:(0,i.jsx)(s.h,{"aria-label":w,icon:y?n.CheckIcon:e,variant:"invisible",size:t,tabIndex:!1===p?-1:0,className:y?"color-fg-success":void 0,sx:{...o},onClick:j})})}function m({icon:e=n.CopyIcon,size:t="medium",label:r,accessibleButton:a,copied:d,onClickCopy:u,tooltipProps:h,sx:m}){let f=c.useRef(null),[p,x]=(0,o.g)({contentRef:f,"aria-label":d?"Copied!":r,...h});return(0,i.jsxs)(l.Z,{ref:f,...p,children:[(0,i.jsx)(s.h,{"aria-label":r,icon:d?n.CheckIcon:e,variant:"invisible",size:t,tabIndex:!1===a?-1:0,className:d?"color-fg-success":void 0,sx:{...m},onClick:u}),x]})}try{h.displayName||(h.displayName="CopyToClipboardButton")}catch{}try{m.displayName||(m.displayName="PortalTooltipCopyButton")}catch{}},15429:(e,t,r)=>{r.d(t,{M:()=>a});let i=e=>{let t=getComputedStyle(e,null);return["overflow","overflow-y","overflow-x"].some(e=>{let r=t.getPropertyValue(e);return"auto"===r||"scroll"===r})},o=(e,t)=>e&&null!==e.parentNode?o(e.parentNode,t.concat([e])):t;function a(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let t=o(e.parentNode,[]);for(let e of t)if((e instanceof HTMLElement||e instanceof SVGElement)&&i(e))return e;return document.scrollingElement||document.documentElement}},7949:(e,t,r)=>{r.d(t,{g:()=>o,y:()=>a});var i=r(12008);let o=()=>i.M()?.enabled_features??{},a=e=>!!o()[e]},59434:(e,t,r)=>{r.d(t,{w:()=>s,z:()=>n});var i=r(67294),o=r(79697),a=r(15470);function n(){let e=(0,i.useContext)(a.f);if(!e)throw Error("useAnalytics must be used within an AnalyticsContext");let{appName:t,category:r,metadata:n}=e;return{sendAnalyticsEvent:(0,i.useCallback)((e,i,a={})=>{let s={react:!0,app_name:t,category:r,...n};(0,o.qP)(e,{...s,...a,target:i})},[t,r,n])}}function s(){let{sendAnalyticsEvent:e}=n();return{sendClickAnalyticsEvent:(0,i.useCallback)((t={})=>{e("analytics.click",void 0,t)},[e])}}},20679:(e,t,r)=>{r.d(t,{f:()=>o});var i=r(15631);function o(e){let t=e.join(","),[r]=(0,i.D)(()=>{let e=/Windows/.test(navigator.userAgent)?"windows":/Macintosh/.test(navigator.userAgent)?"mac":null;return!!e&&t.includes(e)},!1,[t]);return r}},52973:(e,t,r)=>{r.d(t,{F:()=>u,f:()=>h});var i=r(15205),o=r(22326),a=r(90804),n=r(87623),s=r(67294);async function l(e){let t=await (0,n.v)(e);return t.ok?await t.json():void 0}let c=new Map,d=(0,i.Z)(l,{cache:c});function u(){c.clear()}function h(e,t,r,i){let[n,l]=(0,s.useState)(),[c,h]=(0,s.useState)(!1),[m,f]=(0,s.useState)(!0),p=t&&e&&r&&i?(0,o.Qi)({repo:{name:t,ownerLogin:e},commitish:r,action:"latest-commit",path:i}):null;return(0,s.useEffect)(()=>(document.addEventListener(a.Q.START,u),()=>{document.removeEventListener(a.Q.START,u)})),(0,s.useEffect)(()=>{let e=!1,t=async()=>{if(!p)return;h(!1),f(!0),l(void 0);let t=await d(p);if(!e){try{t?l(t):h(!0)}catch(e){h(!0)}f(!1)}};return t(),function(){e=!0}},[p,r]),[n,m,c]}},34734:(e,t,r)=>{r.d(t,{s:()=>f});var i=r(85893),o=r(52674),a=r(22326),n=r(77461),s=r(46741),l=r(85529),c=r(45677),d=r(50919),u=r(52516),h=r(86525),m=r(23180);function f({useIcon:e}){let{refInfo:t,path:r}=(0,h.Br)(),f=(0,o.H)(),{sendRepoClickEvent:p}=(0,m.a)();return t.canEdit?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.N,{as:"h2",text:"Add file"}),(0,i.jsxs)(c.P,{children:[e?(0,i.jsx)(c.P.Anchor,{children:(0,i.jsx)(d.h,{icon:l.PlusIcon,"aria-label":"Add file"})}):(0,i.jsx)(c.P.Button,{children:"Add file"}),(0,i.jsx)(c.P.Overlay,{sx:{maxHeight:"55vh",overflowY:"auto"},children:(0,i.jsxs)(u.S,{children:[(0,i.jsxs)(u.S.LinkItem,{as:n.r,onClick:()=>p("NEW_FILE_BUTTON"),to:(0,a.Qi)({repo:f,path:r,commitish:t.name,action:"new"}),children:[(0,i.jsx)(u.S.LeadingVisual,{children:(0,i.jsx)(l.PlusIcon,{})}),"Create new file"]}),(0,i.jsxs)(u.S.LinkItem,{onClick:()=>p("UPLOAD_FILES_BUTTON"),href:(0,a.Qi)({repo:f,path:r,commitish:t.name,action:"upload"}),children:[(0,i.jsx)(u.S.LeadingVisual,{children:(0,i.jsx)(l.UploadIcon,{})}),"Upload files"]})]})})]})]}):null}try{f.displayName||(f.displayName="AddFileDropdownButton")}catch{}},47357:(e,t,r)=>{r.d(t,{I:()=>a});var i=r(85893),o=r(56830);function a({children:e}){let t=(0,o.n)();return t?(0,i.jsx)(i.Fragment,{children:e}):null}try{a.displayName||(a.displayName="AllShortcutsEnabled")}catch{}},70668:(e,t,r)=>{r.d(t,{K:()=>p});var i=r(85893),o=r(86525),a=r(80589),n=r(52674),s=r(22326),l=r(85529),c=r(42483),d=r(98833),u=r(89042),h=r(48170),m=r(97011),f=r(73290);function p(e){let t=(0,n.H)(),{refInfo:r,path:h}=(0,o.Br)();return(0,i.jsx)(c.Z,{sx:{minHeight:"100vh",margin:16},children:(0,i.jsxs)(c.Z,{sx:{border:"1px solid var(--borderColor-default, var(--color-border-default))",borderRadius:"6px",padding:50,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,i.jsx)(d.Z,{icon:l.AlertIcon,sx:{color:"fg.muted",mb:2},size:20}),(0,i.jsx)(x,{...e}),(h||!r.currentOid)&&(0,i.jsx)(u.Q,{type:"button",sx:{mt:4,...a.A},variant:"primary","aria-label":r.currentOid?"go to Overview":"go to default branch",href:r.currentOid?(0,s.IY)(t):(0,s.sA)(t),children:r.currentOid?"Return to the repository overview":"Go to default branch"})]})})}function x({httpStatus:e,type:t}){return(0,i.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1,textAlign:"center"},children:[(0,i.jsx)(c.Z,{sx:{fontSize:4,color:"fg.default",fontWeight:"bold"},children:404===e?"404 - page not found":"Error loading page"}),404===e?(0,i.jsx)(y,{}):(0,i.jsx)(g,{httpStatus:e,type:t})]})}function y(){let e=(0,n.H)(),{path:t,refInfo:r}=(0,o.Br)();return r.currentOid?(0,i.jsxs)(c.Z,{sx:{color:"fg.muted",display:"flex",flexWrap:"wrap",justifyContent:"center"},"data-testid":"eror-404-description",children:["The\xa0",(0,i.jsx)(h.Z,{as:"p",sx:{mb:0},children:r.name}),"\xa0branch of\xa0",(0,i.jsx)(m.Z,{as:"p",sx:{fontWeight:"bold",mb:0},children:e.name}),"\xa0does not contain the path\xa0",(0,i.jsxs)(m.Z,{as:"p",sx:{fontWeight:"bold",mb:0},children:[t,"."]})]}):(0,i.jsxs)(c.Z,{sx:{color:"fg.muted",display:"flex",flexWrap:"wrap",justifyContent:"center"},"data-testid":"error-404-description",children:["Cannot find a valid ref in\xa0",(0,i.jsx)(h.Z,{as:"p",sx:{mb:0},children:r.name})]})}function g({httpStatus:e,type:t}){let r=e?` ${e} error`:"error";return"fetchError"===t?(0,i.jsx)(c.Z,{sx:{fontSize:1,color:"fg.muted"},"data-testid":"fetch-error-description",children:"It looks like your internet connection is down. Please check it."}):(0,i.jsxs)(c.Z,{sx:{fontSize:1,color:"fg.muted"},"data-testid":"default-error-description",children:["An unexpected ",r," occured. Try",(0,i.jsx)(f.Z,{onClick:()=>window.location.reload(),children:"\xa0reloading the page."},"reload-page")]})}try{p.displayName||(p.displayName="CodeViewError")}catch{}try{x.displayName||(x.displayName="ErrorText")}catch{}try{y.displayName||(y.displayName="DescriptionText404")}catch{}try{g.displayName||(g.displayName="DefaultDescriptionText")}catch{}},94614:(e,t,r)=>{r.d(t,{w:()=>l});var i=r(85893),o=r(85193),a=r(85529),n=r(50919),s=r(29881);function l({editPath:e,editTooltip:t,customSx:r}){let{editFileShortcut:l}=(0,s.bx)(),c=(0,o.s)();return e?(0,i.jsx)(n.h,{icon:a.PencilIcon,sx:{...r},"aria-label":t,onClick:()=>{c(e)},"data-hotkey":l.hotkey,size:"small",title:t,variant:"invisible"}):null}try{l.displayName||(l.displayName="EditButton")}catch{}},65286:(e,t,r)=>{r.d(t,{x:()=>M,d:()=>R});var i=r(85893),o=r(86028),a=r(86525),n=r(23180),s=r(80589),l=r(53924),c=r(52674),d=r(22326),u=r(77461),h=r(75299),m=r(46741),f=r(52973),p=r(85529),x=r(42483),y=r(97011),g=r(98833),b=r(91863),j=r(73290),w=r(65379),k=r(89042),v=r(50919),N=r(67294),C=r(20756);function S({status:e,oid:t}){let r=(0,c.H)(),[o,a]=(0,C.fQ)(t,r);return e?(0,i.jsx)(C.vC,{statusRollup:e,combinedStatus:o,onWillOpenPopup:a,size:"small"}):null}try{S.displayName||(S.displayName="ReposChecksStatusBadge")}catch{}function R({commitCount:e}){return(0,i.jsx)(x.Z,{sx:{display:"flex",flexDirection:"column",border:"1px solid",borderColor:"border.default",borderRadius:6,mb:3},children:(0,i.jsx)(M,{commitCount:e})})}function M({commitCount:e}){let t=(0,c.H)(),{refInfo:r,path:n}=(0,a.Br)(),[s,l,d]=(0,f.f)(t.ownerLogin,t.name,r.name,n),[u,h]=(0,N.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(x.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:2,minWidth:"273px",pr:2,pl:3,py:2},children:[(0,i.jsx)(m.N,{as:"h2",text:"Latest commit"}),d?(0,i.jsx)(H,{}):l?(0,i.jsx)(o.N,{width:120,"data-testid":"loading"}):s?(0,i.jsx)(F,{commit:s,detailsOpen:u,setDetailsOpen:h}):null,(0,i.jsx)(T,{commit:s}),(0,i.jsx)(B,{commit:s,commitCount:e,detailsOpen:u,setDetailsOpen:h})]}),u&&s&&(0,i.jsx)(x.Z,{sx:{display:s.bodyMessageHtml?"flex":["flex","none","none"]},children:(0,i.jsx)(E,{commit:s})})]})}function H(){return(0,i.jsxs)(y.Z,{sx:{color:"attention.fg"},"data-testid":"latest-commit-error-message",children:[(0,i.jsx)(g.Z,{icon:p.AlertFillIcon}),"\xa0Cannot retrieve latest commit at this time."]})}function F({commit:e,detailsOpen:t,setDetailsOpen:r}){let o=(0,c.H)(),a=`data-hovercard-url=${(0,d.QY)({owner:o.ownerLogin,repo:o.name,commitish:e.oid})} `,n=function(e,t){let r="";if(e){let i=e.split("0?(0,i.jsx)(l.C,{authors:e.authors,repo:o,includeVerbs:!1,committer:e.committer,committerAttribution:e.committerAttribution}):(0,i.jsx)(l.D,{author:e.author,repo:o}),(0,i.jsxs)(x.Z,{className:"react-last-commit-message",sx:{alignItems:"center",minWidth:0,gap:2},children:[(0,i.jsx)(x.Z,{className:"Truncate",sx:{fontSize:1,alignItems:"center"},children:e.shortMessageHtmlLink&&(0,i.jsx)(h.WZ,{className:"Truncate-text","data-testid":"latest-commit-html",unverifiedHTML:n})}),e.bodyMessageHtml&&(0,i.jsx)(A,{detailsOpen:t,setDetailsOpen:r}),(0,i.jsx)(S,{oid:e.oid,status:e.status})]}),(0,i.jsx)(y.Z,{className:"react-last-commit-summary-timestamp",sx:{color:"fg.muted",fontSize:0},children:(0,i.jsx)(b.Z,{datetime:e.date,tense:"past"})})]})}function T({commit:e}){let t=e?.oid.slice(0,7);return(0,i.jsx)(x.Z,{sx:{display:"flex",alignItems:"center"},"data-testid":"latest-commit-details",children:e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(y.Z,{className:"react-last-commit-oid-timestamp",sx:{color:"fg.muted",fontSize:0},children:[(0,i.jsx)(j.Z,{as:u.r,to:e.url,className:"Link--secondary","aria-label":`Commit ${t}`,children:t}),"\xa0\xb7\xa0",(0,i.jsx)(b.Z,{datetime:e.date,tense:"past"})]}),(0,i.jsx)(y.Z,{className:"react-last-commit-timestamp",sx:{color:"fg.muted",fontSize:0},children:(0,i.jsx)(b.Z,{datetime:e.date,tense:"past"})})]})})}function B({commit:e,commitCount:t,detailsOpen:r,setDetailsOpen:o}){return(0,i.jsxs)(x.Z,{sx:{display:"flex",gap:2},children:[(0,i.jsx)(m.N,{as:"h2",text:"History"}),(0,i.jsx)(Z,{className:"react-last-commit-history-group",size:"small",leadingVisual:p.HistoryIcon,children:(0,i.jsx)(y.Z,{sx:{color:"fg.default"},children:t?`${t} Commits`:"History"})}),(0,i.jsx)(x.Z,{sx:{display:["inherit","none","none"]},children:(e?.shortMessageHtmlLink||e?.bodyMessageHtml)&&(0,i.jsx)(A,{detailsOpen:r,setDetailsOpen:o,useMediumButton:!0})}),(0,i.jsx)(w.Z,{"aria-label":"Commit history",children:(0,i.jsx)(Z,{className:"react-last-commit-history-icon",leadingVisual:p.HistoryIcon})})]})}function Z({children:e,className:t,leadingVisual:r,size:o}){let{sendRepoClickEvent:l}=(0,n.a)(),{refInfo:u,path:h}=(0,a.Br)(),m=(0,c.H)();return(0,i.jsx)(k.Q,{className:t,sx:{alignItems:"center",color:"fg.default",...s.A},onClick:()=>l("HISTORY_BUTTON"),href:(0,d.w2)({owner:m.ownerLogin,repo:m.name,ref:u.name,path:h}),variant:"invisible",size:o,leadingVisual:r,children:e})}function A({detailsOpen:e,setDetailsOpen:t,useMediumButton:r}){return(0,i.jsx)(v.h,{"aria-label":"Open commit details",icon:p.EllipsisIcon,sx:{color:"fg.muted",minWidth:"28px"},onClick:()=>t(!e),variant:"invisible","aria-pressed":e,"aria-expanded":e,"data-testid":"latest-commit-details-toggle",size:r?"medium":"small"})}function E({commit:e}){let t=e?.oid.slice(0,7);return(0,i.jsxs)(x.Z,{sx:{backgroundColor:"canvas.subtle",borderTop:"1px solid",borderColor:"border.default",borderRadius:"0px 0px 6px 6px",px:3,py:2,flexGrow:1},children:[(0,i.jsxs)(x.Z,{sx:{display:["flex","none","none"],flexDirection:"column"},children:[(0,i.jsxs)(x.Z,{sx:{display:"flex",flexDirection:"row",minWidth:0,gap:2,alignItems:"center"},children:[e.shortMessageHtmlLink&&(0,i.jsx)(h.WZ,{className:"Truncate-text","data-testid":"latest-commit-html",html:e.shortMessageHtmlLink,sx:{"> a":{color:"var(--fgColor-default, var(--color-fg-default)) !important"}}}),(0,i.jsx)(S,{oid:e.oid,status:e.status})]}),(0,i.jsx)(j.Z,{as:u.r,to:e.url,className:"Link--secondary","aria-label":`Commit ${t}`,children:t}),e.bodyMessageHtml&&(0,i.jsx)("br",{})]}),e.bodyMessageHtml&&(0,i.jsx)(x.Z,{sx:{mt:[2,0,0],color:"fg.muted"},children:(0,i.jsx)(h.WZ,{className:"Truncate-text","data-testid":"latest-commit-html",html:e.bodyMessageHtml,sx:{whiteSpace:"pre-wrap"}})})]})}try{R.displayName||(R.displayName="LatestCommitSingleLine")}catch{}try{M.displayName||(M.displayName="LatestCommitContent")}catch{}try{H.displayName||(H.displayName="CommitErrorMessage")}catch{}try{F.displayName||(F.displayName="CommitSummary")}catch{}try{T.displayName||(T.displayName="LastCommitTimestamp")}catch{}try{B.displayName||(B.displayName="HistoryLink")}catch{}try{Z.displayName||(Z.displayName="HistoryLinkButton")}catch{}try{A.displayName||(A.displayName="CommitDetailsButton")}catch{}try{E.displayName||(E.displayName="CommitDetails")}catch{}},11646:(e,t,r)=>{r.d(t,{Z:()=>h});var i=r(85893),o=r(87623),a=r(85529),n=r(51461),s=r(42483),l=r(89042),c=r(50919),d=r(67294),u=r(80589);function h({showPublishActionBanner:e,releasePath:t,dismissActionNoticePath:r,sx:h}){let[m,f]=(0,d.useState)(!1);return e?(0,i.jsxs)(n.Z,{sx:{display:"flex",flexDirection:"row",alignItems:"center",mt:3,...h},hidden:m,children:[e&&(0,i.jsx)(s.Z,{sx:{flexGrow:1},children:"You can publish this Action to the GitHub Marketplace"}),(0,i.jsx)(l.Q,{href:t,sx:{fontSize:0,mr:2,...u.A},children:"Draft a release"}),(0,i.jsx)(c.h,{icon:a.XIcon,"aria-label":"Dismiss",onClick:e?()=>{(0,o.Q)(r,{method:"POST"}),f(!0)}:()=>{},sx:{backgroundColor:"transparent",border:0,pr:0},title:"Dismiss"})]}):null}try{h.displayName||(h.displayName="PublishBanners")}catch{}},17191:(e,t,r)=>{r.d(t,{S:()=>h});var i=r(85893),o=r(52674),a=r(22326),n=r(44355),s=r(88049),l=r(67294),c=r(86525),d=r(29881),u=r(23180);function h({size:e,buttonClassName:t,allowResizing:r,idEnding:h}){let m=(0,o.H)(),{refInfo:f,path:p,action:x}=(0,c.Br)(),y=function(){let{addToast:e}=(0,s.V6)();return(0,l.useCallback)(t=>e({type:"error",message:t}),[e])}(),{sendRepoClickEvent:g}=(0,u.a)(),{refSelectorShortcut:b}=(0,d.bx)(),j=f.name;return j===f.currentOid&&(j=f.name.slice(0,7)),(0,i.jsx)(n.cq,{currentCommitish:j,defaultBranch:m.defaultBranch,owner:m.ownerLogin,repo:m.name,canCreate:m.currentUserCanPush,cacheKey:f.listCacheKey,selectedRefType:"tree"===f.refType?"branch":f.refType,getHref:e=>`${(0,a.Qi)({repo:m,commitish:e,action:x,path:p})}${window.location.search}`,hotKey:b.hotkey,onBeforeCreate:e=>g("REF_SELECTOR_MENU.CREATE_BRANCH",{ref_name:e}),onCreateError:y,onOpenChange:e=>e&&g("REF_SELECTOR_MENU"),size:e,buttonClassName:t,allowResizing:r,idEnding:h||"repos-header-ref-selector",useFocusZone:!0})}try{h.displayName||(h.displayName="ReposHeaderRefSelector")}catch{}},71735:(e,t,r)=>{r.d(t,{X:()=>u,D:()=>h});var i=r(85893),o=r(52674),a=r(91534),n=r(75299),s=r(63451),l=r(85193),c=r(67294),d=r(89250);let u=(0,c.forwardRef)(function({onAnchorClick:e,richText:t,stickyHeaderHeight:r,sx:u},m){let{hash:f}=(0,d.TH)(),p=(0,o.H)(),x=(0,l.s)(),y=(0,c.useRef)(null);return(0,c.useImperativeHandle)(m,()=>y.current),(0,c.useEffect)(()=>{let e=()=>{h(window.location.hash,r)};return window.addEventListener("load",e),window.addEventListener("hashchange",e),()=>{window.removeEventListener("load",e),window.removeEventListener("hashchange",e)}},[]),(0,s.b)(()=>{y?.current&&h(window.location.hash,r)},[f]),(0,i.jsx)(n.wB,{ref:y,className:"js-snippet-clipboard-copy-unpositioned",html:t,sx:u,"data-hpc":!0,onClick:t=>{let i=t.metaKey||t.ctrlKey,o=t.target.closest("a");if(o&&o.href){if(!i){let e=o.href,i=new URL(e,window.location.origin);(0,a.Z)(window.location.href,e)?(h(i.hash,r),window.location.hash===i.hash&&t.preventDefault()):e.startsWith(`${window.location.origin}/${p.ownerLogin}/${p.name}/`)&&(x(i.pathname+i.search+i.hash),t.preventDefault())}e?.(t)}}})});function h(e,t=125){var r;if(!e)return;let i=(function(e){try{return decodeURIComponent(e.slice(1))}catch{return""}})(e).toLowerCase(),o=i.startsWith("user-content-")?i:`user-content-${i}`,a=(r=document,""===o?null:r.getElementById(o)||r.getElementsByName(o)[0]||null);a&&document&&document.defaultView&&window.requestAnimationFrame(()=>{let e=a.getBoundingClientRect().top-document.body.getBoundingClientRect().top-t;window.scrollTo({top:e});let r=a.closest("h1,h2,h3,h4,h5,h6,li,span");r&&(r.focus(),r.setAttribute("data-react-autofocus","true"))})}try{u.displayName||(u.displayName="SharedMarkdownContent")}catch{}try{u.displayName||(u.displayName="SharedMarkdownContent")}catch{}},86028:(e,t,r)=>{r.d(t,{N:()=>o});var i=r(85893);function o({width:e,...t}){return(0,i.jsx)("div",{style:{width:e},className:"Skeleton Skeleton--text",...t,children:"\xa0"})}try{o.displayName||(o.displayName="SkeletonText")}catch{}},54042:(e,t,r)=>{r.d(t,{Z:()=>h});var i=r(85893),o=r(75299),a=r(85529),n=r(42483),s=r(50919),l=r(51526),c=r(14783),d=r(67294),u=r(71735);function h({onClose:e,toc:t}){let[r,h]=(0,d.useState)(""),[m,f]=(0,d.useState)(""),p=(0,d.useRef)(null);return((0,d.useEffect)(()=>{p.current?.focus()},[]),(0,d.useEffect)(()=>{let e=()=>{window.location.hash&&f(window.location.hash)};return e(),window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[]),t)?(0,i.jsxs)(n.Z,{sx:{px:2,pt:2,maxWidth:"100vw"},as:"section","aria-labelledby":"outline-id",children:[e?(0,i.jsxs)(n.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,i.jsx)(n.Z,{as:"h3",id:"outline-id",ref:p,sx:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:1,fontWeight:600,px:2},tabIndex:-1,children:"Outline"}),(0,i.jsx)(s.h,{"aria-label":"Close outline",icon:a.XIcon,onClick:e,variant:"invisible",sx:{color:"fg.muted"}})]}):null,t.length>=8?(0,i.jsx)(n.Z,{sx:{pt:3,px:2},children:(0,i.jsx)(l.Z,{leadingVisual:a.FilterIcon,placeholder:"Filter headings","aria-label":"Filter headings",sx:{width:"100%"},onChange:e=>{h(e.target.value)}})}):null,(0,i.jsx)(c.$,{sx:{overflowY:"auto","> li":{borderRadius:2,width:"100%"}},children:t.map(({level:e,htmlText:t,anchor:a},n)=>{let s;if(!t||r&&!t.toLowerCase().includes(r.toLowerCase()))return null;s=1===e?{fontWeight:"bold"}:{paddingLeft:`${(e-1)*16}px`};let l=`#${a}`;return(0,i.jsx)(c.$.Item,{"aria-current":m===l?"page":void 0,href:l,onClick:e=>{1===e.button||e.metaKey||e.ctrlKey||(m!==l&&(location.href=l),(0,u.D)(l),e.preventDefault())},children:(0,i.jsx)(o.wB,{sx:{...s},html:t})},`outline-${a}-${n}`)})})]}):null}try{h.displayName||(h.displayName="TableOfContentsPanel")}catch{}},12484:(e,t,r)=>{r.d(t,{e:()=>O,y:()=>q});var i=r(85893),o=r(52674),a=r(42483),n=r(51461),s=r(97011),l=r(86028),c=r(86525),d=r(22326),u=r(87623),h=r(67294),m=r(23180),f=r(85529),p=r(45677),x=r(88216),y=r(48170),g=r(73290),b=r(75308),j=r(84915);function w({children:e}){return(0,i.jsx)(a.Z,{className:"popover-container-width",sx:{borderRadius:6,minWidth:250},children:e})}function k({icon:e,header:t,content:r}){return(0,i.jsxs)(a.Z,{sx:{display:"flex",p:3},children:[(0,i.jsx)(a.Z,{sx:{mr:2},children:e}),(0,i.jsxs)("div",{children:[(0,i.jsx)(b.Z,{as:"h2",sx:{fontSize:1,mb:1},children:t}),(0,i.jsx)(s.Z,{sx:{color:"fg.muted",fontSize:0},children:r})]})]})}function v({icon:e,bg:t}){return(0,i.jsx)(j.Z,{sx:{bg:t,color:"fg.onEmphasis"},size:30,icon:()=>(0,i.jsx)(e,{size:16})})}function N({children:e}){return(0,i.jsx)(a.Z,{sx:{display:"flex",flexWrap:"wrap",p:3,justifyContent:"space-between",borderTop:"solid 1px",borderColor:"border.muted",gap:3},children:e})}try{w.displayName||(w.displayName="PopoverContainer")}catch{}try{k.displayName||(k.displayName="PopoverContent")}catch{}try{v.displayName||(v.displayName="PopoverIcon")}catch{}try{N.displayName||(N.displayName="PopoverActions")}catch{}function C(e){return`${e} ${1===e?"commit":"commits"}`}function S({comparison:e,repo:t,linkify:r=!1}){let{sendRepoClickEvent:o}=(0,m.a)(),{ahead:a,behind:n,baseBranch:s,baseBranchRange:l,currentRef:c}=e,u=(0,d.j6)({repo:t,base:l,head:c}),h=(0,d.j6)({repo:t,base:c,head:l}),f=()=>o("AHEAD_BEHIND_LINK",{category:"Branch Infobar",action:"Ahead Compare",label:`ref_loc:bar;is_fork:${t.isFork}`}),p=()=>o("AHEAD_BEHIND_LINK",{category:"Branch Infobar",action:"Behind Compare",label:`ref_loc:bar;is_fork:${t.isFork}`});return 0===a&&0===n?(0,i.jsxs)("span",{children:["This branch is up to date with ",(0,i.jsx)(y.Z,{as:"span",children:s}),"."]}):a>0&&n>0?(0,i.jsxs)("span",{children:["This branch is"," ",(0,i.jsxs)(R,{linkify:r,href:u,onClick:f,children:[C(a)," ahead of"]}),","," ",(0,i.jsxs)(R,{linkify:r,href:h,onClick:p,children:[C(n)," behind"]})," ",(0,i.jsx)(y.Z,{as:"span",children:s}),"."]}):a>0?(0,i.jsxs)("span",{children:["This branch is"," ",(0,i.jsxs)(R,{linkify:r,href:u,onClick:f,children:[C(a)," ahead of"]})," ",(0,i.jsx)(y.Z,{as:"span",children:s}),"."]}):(0,i.jsxs)("span",{children:["This branch is"," ",(0,i.jsxs)(R,{linkify:r,href:h,onClick:p,children:[C(n)," behind"]})," ",(0,i.jsx)(y.Z,{as:"span",children:s}),"."]})}function R({sx:e,href:t,linkify:r,children:o,...a}){return r?(0,i.jsx)(g.Z,{sx:e,href:t,...a,children:o}):(0,i.jsx)(s.Z,{children:o})}try{S.displayName||(S.displayName="RefComparisonText")}catch{}try{R.displayName||(R.displayName="LinkOrText")}catch{}var M=r(80589);function H({comparison:e}){let t=(0,o.H)(),r=e.ahead>0,a=(0,d.j6)({repo:t,base:e.baseBranchRange,head:e.currentRef}),n=(0,d.wu)({repo:t,refName:e.currentRef});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{icon:(0,i.jsx)(v,{bg:"neutral.emphasis",icon:f.GitPullRequestIcon}),header:r?(0,i.jsx)(S,{repo:t,comparison:{...e,behind:0}}):(0,i.jsxs)(s.Z,{children:["This branch is not ahead of the upstream ",(0,i.jsx)(y.Z,{as:"span",children:e.baseBranch}),"."]}),content:(0,i.jsx)(s.Z,{as:"p",children:r?"Open a pull request to contribute your changes upstream.":"No new commits yet. Enjoy your day!"})}),r&&(0,i.jsxs)(N,{children:[!t.isFork&&(0,i.jsx)(x.r,{as:g.Z,sx:{flex:1,...M.A},href:a,"data-testid":"compare-button",children:"Compare"}),(0,i.jsx)(x.r,{as:g.Z,sx:{flex:1,...M.A},href:n,variant:"primary","data-testid":"open-pr-button",children:"Open pull request"})]})]})}try{H.displayName||(H.displayName="ContributePopoverContent")}catch{}function F({comparison:e}){let{sendRepoClickEvent:t}=(0,m.a)();return(0,i.jsxs)(p.P,{onOpenChange:e=>e&&t("CONTRIBUTE_BUTTON",{category:"Branch Infobar",action:"Open Contribute dropdown",label:"ref_loc:contribute_dropdown"}),children:[(0,i.jsx)(p.P.Anchor,{children:(0,i.jsx)(x.r,{leadingVisual:f.GitPullRequestIcon,trailingVisual:f.TriangleDownIcon,children:"Contribute"})}),(0,i.jsx)(p.P.Overlay,{align:"end",sx:{marginTop:2},children:(0,i.jsx)(w,{children:(0,i.jsx)(H,{comparison:e})})})]})}try{F.displayName||(F.displayName="ContributeButton")}catch{}var T=r(74121);function B(e,t,r){let[i,o]=(0,h.useState)(!1);return{disabled:i,label:i?t:e,action:async()=>{o(!0),await r(),o(!1)}}}let Z={category:"Branch Infobar",label:"ref_loc:fetch_upstream_dropdown"};function A({comparison:e,discard:t,update:r}){let a=(0,o.H)(),{helpUrl:n}=(0,c.Ou)(),{sendRepoClickEvent:s}=(0,m.a)(),l=`${n}/github/collaborating-with-issues-and-pull-requests/syncing-a-fork`,u=(0,d.j6)({repo:a,base:e.baseBranchRange,head:e.currentRef}),h=E(e),p=e.behind>0,y=B(`Discard ${C(e.ahead)}`,"Discarding changes...",t),b=B("Update branch","Updating...",r),j={compare:"behind"===h,discard:"behind-and-ahead"===h&&e.isTrackingBranch,update:["behind","behind-and-ahead"].includes(h)},w=Object.values(j).some(Boolean);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{icon:(0,i.jsx)(v,{icon:p?f.GitMergeIcon:f.CheckIcon,bg:p?"neutral.emphasis":"success.emphasis"}),header:(0,i.jsx)(L,{comparison:e}),content:(0,i.jsx)(W,{comparison:e,helpUrl:l})}),w&&(0,i.jsxs)(N,{children:[j.compare&&(0,i.jsx)(x.r,{as:g.Z,sx:{flex:1,...M.A},href:u,onClick:()=>s("SYNC_FORK.COMPARE",{...Z,action:"Compare"}),"data-testid":"compare-button",children:"Compare"}),j.discard&&(0,i.jsx)(x.r,{onClick:y.action,sx:{flex:1},"data-testid":"discard-button",variant:"danger",disabled:y.disabled,children:y.label}),j.update&&(0,i.jsx)(x.r,{onClick:b.action,disabled:b.disabled,sx:{flex:1},variant:"primary","data-testid":"update-branch-button",children:b.label})]})]})}function E({behind:e,ahead:t}){return 0===e&&0===t?"sync":e>0&&t>0?"behind-and-ahead":e>0?"behind":"ahead"}function L({comparison:e}){let t=E(e);switch(t){case"behind":case"behind-and-ahead":return(0,i.jsx)(s.Z,{children:"This branch is out-of-date"});default:return(0,i.jsxs)(s.Z,{children:["This branch is not behind the upstream ",(0,i.jsx)(y.Z,{as:"span",children:e.baseBranch}),"."]})}}function W({comparison:e,helpUrl:t}){let r=E(e);switch(r){case"sync":case"ahead":return(0,i.jsx)(s.Z,{as:"p",children:"No new commits to fetch. Enjoy your day!"});case"behind":return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.Z,{as:"p",children:["Update branch to keep this branch up-to-date by syncing ",C(e.behind)," from the upstream repository."]}),(0,i.jsx)(s.Z,{as:"p",children:(0,i.jsx)(g.Z,{href:t,target:"_blank",rel:"noopener noreferrer",children:"Learn more about syncing a fork"})})]});case"behind-and-ahead":return e.isTrackingBranch?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{as:"p",children:"Update branch to merge the latest changes from the upstream repository into this branch."}),(0,i.jsxs)(s.Z,{as:"p",children:["Discard ",C(e.ahead)," to make this branch match the upstream repository."," ",C(e.ahead)," will be removed from this branch."]}),(0,i.jsx)(s.Z,{as:"p",children:(0,i.jsx)(g.Z,{href:t,target:"_blank",rel:"noopener noreferrer",children:"Learn more about syncing a fork"})})]}):(0,i.jsx)(s.Z,{as:"p",children:"Update branch to merge the latest changes from the upstream repository into this branch."})}}try{A.displayName||(A.displayName="FetchUpstreamPopoverContent")}catch{}try{L.displayName||(L.displayName="HeaderText")}catch{}try{W.displayName||(W.displayName="ContentText")}catch{}function I({comparison:e,discard:t}){let r=(0,o.H)(),{sendRepoClickEvent:a}=(0,m.a)(),n=(0,d.wu)({repo:r,refName:e.currentRef}),l=C(e.ahead),c=B(`Discard ${l}`,"Discarding changes...",t);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{icon:(0,i.jsx)(v,{icon:f.AlertIcon,bg:"neutral.emphasis"}),header:"This branch has conflicts that must be resolved",content:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.Z,{as:"p",children:["Discard ",l," to make this branch match the upstream repository. ",l," will be removed from this branch."]}),(0,i.jsx)(s.Z,{as:"p",children:"You can resolve merge conflicts using the command line and a text editor."})]})}),(0,i.jsxs)(N,{children:[(0,i.jsx)(x.r,{sx:{flex:1},onClick:c.action,disabled:c.disabled,"data-testid":"discard-button",variant:"danger",children:c.label}),(0,i.jsx)(x.r,{as:g.Z,sx:{flex:1,...M.A},href:n,variant:"primary","data-testid":"open-pr-button",onClick:()=>a("SYNC_FORK.OPEN_PR",{...Z,action:"Open pull request"}),children:"Open pull request"})]})]})}try{I.displayName||(I.displayName="FetchUpstreamWithConflictsPopoverContent")}catch{}function P({comparison:e}){let[t,r,n]=function({head:e,base:t}){let[r,i]=(0,h.useState)(),[a,n]=(0,h.useState)(!0),[s,l]=(0,h.useState)(),c=(0,o.H)(),m=(0,d.$_)({repo:c,head:e,base:t});return(0,h.useEffect)(()=>{let e=async()=>{n(!0),i(void 0);let e=await (0,u.v)(m);try{e.ok?i((await e.json()).state):l(e.statusText)}catch(e){l(e?.message||e?.toString())}n(!1)};e()},[m]),[r,a,s]}({base:e.currentRef,head:e.baseBranchRange}),{sendRepoClickEvent:s}=(0,m.a)(),{discardChanges:l,updateBranch:f}=function(){let e=(0,o.H)(),{refInfo:{name:t}}=(0,c.Br)(),r=(0,d.db)({repo:e,refName:t,discard:!0}),i=(0,d.db)({repo:e,refName:t,discard:!1}),a=(0,h.useCallback)(()=>(0,u.Q)(i,{method:"POST"}),[i]),n=(0,h.useCallback)(()=>(0,u.Q)(r,{method:"POST"}),[r]);return{updateBranch:a,discardChanges:n}}(),p=async()=>{s("SYNC_FORK.DISCARD",{...Z,action:"Discard Conflicts"});let e=await l();e.ok&&e.url&&(window.location.href=e.url)},x=async()=>{s("SYNC_FORK.UPDATE",{...Z,action:"Fetch and merge"});let e=await f();e.ok&&e.url&&(window.location.href=e.url)};return 0===e.behind?(0,i.jsx)(A,{update:x,discard:p,comparison:e}):r||n?(0,i.jsx)(a.Z,{sx:{p:4,display:"flex",justifyContent:"center"},children:(0,i.jsx)(T.Z,{})}):"clean"===t?(0,i.jsx)(A,{update:x,discard:p,comparison:e}):(0,i.jsx)(I,{discard:p,comparison:e})}try{P.displayName||(P.displayName="FetchPopoverContainer")}catch{}function _({comparison:e}){let{sendRepoClickEvent:t}=(0,m.a)();return(0,i.jsxs)(p.P,{onOpenChange:r=>r&&t("SYNC_FORK_BUTTON",{category:"Branch Infobar",action:"Open Fetch upstream dropdown",label:"ref_loc:fetch_upstream_dropdown",ahead:e.ahead,behind:e.behind}),children:[(0,i.jsx)(p.P.Anchor,{children:(0,i.jsx)(x.r,{leadingVisual:f.SyncIcon,trailingAction:f.TriangleDownIcon,children:"Sync fork"})}),(0,i.jsx)(p.P.Overlay,{align:"end",sx:{marginTop:2},children:(0,i.jsx)(w,{children:(0,i.jsx)(P,{comparison:e})})})]})}try{_.displayName||(_.displayName="FetchUpstreamButton")}catch{}function D({repo:e,pullRequestNumber:t}){return(0,i.jsxs)(g.Z,{href:(0,d.xR)({repo:e,number:t}),sx:{display:"flex",gap:1,alignItems:"center",color:"fg.muted","&:hover":{color:"accent.fg"}},children:[(0,i.jsx)(f.GitPullRequestIcon,{size:16}),"#",t]})}try{D.displayName||(D.displayName="PullRequestLink")}catch{}function O({sx:e}){let t;let[r,n]=function(){let[e,t]=(0,h.useState)(),[r,i]=(0,h.useState)(),{refInfo:a,path:n}=(0,c.Br)(),s=(0,o.H)(),l=(0,d.Qi)({repo:s,action:"branch-infobar",commitish:a.name,path:n});return(0,h.useEffect)(()=>{let e=async()=>{t(void 0);let e=await (0,u.v)(l);try{e.ok?t(await e.json()):i(422===e.status?"timeout":e.statusText)}catch(e){i(e?.message||e?.toString())}};e()},[l]),[e,r]}(),s=(0,o.H)();return t="timeout"===n?(0,i.jsx)(i.Fragment,{children:"Sorry, getting ahead/behind information for this branch is taking too long."}):r?r.refComparison?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S,{linkify:!0,repo:s,comparison:r.refComparison}),(0,i.jsx)(a.Z,{sx:{display:"flex",gap:2},children:r.pullRequestNumber?(0,i.jsx)(D,{repo:s,pullRequestNumber:r.pullRequestNumber}):(0,i.jsxs)(i.Fragment,{children:[s.currentUserCanPush&&(0,i.jsx)(F,{comparison:r.refComparison}),s.isFork&&s.currentUserCanPush&&(0,i.jsx)(_,{comparison:r.refComparison})]})})]}):(0,i.jsx)(i.Fragment,{children:"Cannot retrieve ahead/behind information for this branch."}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.N,{width:"40%"}),(0,i.jsx)(l.N,{width:"30%"})]}),(0,i.jsx)(U,{sx:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",justifyContent:"space-between",border:"solid 1px",borderColor:"border.default",borderRadius:"6px",pl:3,pr:2,py:2,mb:3,...e},children:t})}function U({children:e,sx:t}){return(0,i.jsx)(a.Z,{"data-testid":"branch-info-bar","aria-live":"polite",sx:{display:"flex",gap:2,bg:"canvas.subtle",fontSize:1,...t},children:e})}function q(){return(0,i.jsx)(n.Z,{variant:"warning",sx:{my:3},children:(0,i.jsx)(s.Z,{children:"Cannot retrieve comparison with upstream repository."})})}try{O.displayName||(O.displayName="BranchInfoBar")}catch{}try{U.displayName||(U.displayName="BranchInfoBarContainer")}catch{}try{q.displayName||(q.displayName="BranchInfoBarErrorBanner")}catch{}},77149:(e,t,r)=>{r.d(t,{t:()=>U});var i,o=r(85893),a=r(18602),n=r(86525),s=r(52674),l=r(22326),c=r(46741),d=r(51952),u=r(85193),h=r(85529),m=r(42483),f=r(97011),p=r(79902),x=r(51461),y=r(98833),g=r(73290),b=r(67294),j=r(81473),w=r(15062),k=r(87623),v=r(79842),N=r(65286);function C({uploadUrl:e}){return(0,o.jsx)("div",{className:"repo-file-upload-tree-target js-document-dropzone js-upload-manifest-tree-view","data-testid":"dragzone","data-drop-url":e,children:(0,o.jsx)("div",{className:"repo-file-upload-outline",children:(0,o.jsxs)("div",{className:"repo-file-upload-slate",children:[(0,o.jsx)(m.Z,{sx:{color:"fg.muted"},children:(0,o.jsx)(h.FileIcon,{size:32})}),(0,o.jsx)("h2",{"aria-hidden":"true",children:"Drop to upload your files"})]})})})}try{C.displayName||(C.displayName="Dropzone")}catch{}var S=r(77461),R=r(86028),M=r(75299),H=r(91863);let F={directory:"Directory",submodule:"Submodule",symlink_directory:"Symlink to directory",symlink_file:"Symlink to file"};function T({item:e}){switch(e.contentType){case"directory":return(0,o.jsx)(h.FileDirectoryFillIcon,{className:"icon-directory"});case"submodule":case"symlink_directory":case"symlink_file":return(0,o.jsx)(h.FileSubmoduleIcon,{className:"icon-directory"});default:return(0,o.jsx)(h.FileIcon,{className:"color-fg-muted"})}}function B({initialFocus:e,item:t,getItemUrl:r,onNavigate:i}){let a=r(t),n=t.hasSimplifiedPath?"This path skips through empty directories":t.name;return"submodule"===t.contentType&&(a=t.submoduleUrl??a,i=e=>{e.preventDefault(),t.submoduleUrl&&(window.location.href=t.submoduleUrl)}),(0,o.jsx)("div",{className:"overflow-hidden",children:(0,o.jsx)("h3",{children:(0,o.jsx)("div",{className:"react-directory-truncate",children:(0,o.jsx)(S.r,{title:n,"aria-label":`${t.name}, ${function({contentType:e}){return`(${F[e]||"File"})`}(t)}`,className:"symlink_directory"!==t.contentType&&"symlink_file"!==t.contentType?"Link--primary":void 0,"data-react-autofocus":!!e||null,onClick:i,to:a,children:(0,o.jsx)(Z,{item:t})})})})})}function Z({item:e}){return e.hasSimplifiedPath?(0,o.jsx)(o.Fragment,{children:e.name.split("/").map((e,t,r)=>{let i=t===r.length-1;return(0,o.jsx)("span",{className:i?"":"react-directory-default-color","data-testid":"path-name-segment",children:`${e}${i?"":"/"}`},t)})}):e.submoduleDisplayName?(0,o.jsx)("span",{style:{color:"var(--fgColor-accent, var(--color-accent-fg))"},children:e.submoduleDisplayName}):(0,o.jsx)(o.Fragment,{children:e.name})}function A({commit:e}){return e?e.shortMessageHtmlLink?(0,o.jsx)("div",{children:(0,o.jsx)(M.sF,{className:"react-directory-commit-message",html:e.shortMessageHtmlLink})}):(0,o.jsx)(g.Z,{className:"Link--secondary",href:e.url,children:"No commit message"}):(0,o.jsx)(R.N,{})}function E({commit:e}){return e?.date?(0,o.jsx)("div",{className:"react-directory-commit-age",children:(0,o.jsx)(H.Z,{datetime:e.date,tense:"past"})}):(0,o.jsx)(R.N,{})}try{T.displayName||(T.displayName="IconCell")}catch{}try{B.displayName||(B.displayName="NameCell")}catch{}try{Z.displayName||(Z.displayName="ItemPathName")}catch{}try{A.displayName||(A.displayName="CommitMessageCell")}catch{}try{E.displayName||(E.displayName="CommitAgeCell")}catch{}function L({children:e,sx:t,...r}){return(0,o.jsx)(m.Z,{as:"table",sx:{width:"100%",borderCollapse:"separate",borderSpacing:0,border:"1px solid",borderColor:"border.default",borderRadius:"6px",tableLayout:"fixed",overflow:"hidden",...t},...r,children:e})}let W=({children:e,sx:t})=>(0,o.jsx)(m.Z,{as:"thead",sx:{height:"40px",...t},children:(0,o.jsx)(m.Z,{as:"tr",sx:{p:3,color:"fg.muted",fontSize:0,textAlign:"left",height:"40px",th:{pl:3,backgroundColor:"canvas.subtle"}},children:e})}),I=({children:e,onClick:t,index:r,id:i})=>(0,o.jsx)(m.Z,{as:"tr",sx:{fontSize:1,height:"40px",td:{pl:3,textAlign:"left",borderTopStyle:"solid",borderTopWidth:1,borderTopColor:"border.default"},"&:hover":{bg:"canvas.subtle"}},onClick:t,"data-index":r,id:i,children:e}),P=({children:e})=>(0,o.jsx)(m.Z,{as:"tfoot",sx:{backgroundColor:"canvas.subtle",borderTopColor:"border.default",p:3},children:e});try{L.displayName||(L.displayName="Table")}catch{}try{W.displayName||(W.displayName="HeaderRow")}catch{}try{I.displayName||(I.displayName="Row")}catch{}try{P.displayName||(P.displayName="TableFooter")}catch{}function _({initialFocus:e,item:t,commit:r,onNavigate:i,getItemUrl:a,navigate:n,index:s,className:l}){let c=b.useCallback(e=>{window.innerWidth(0,o.jsxs)("tr",{className:`react-directory-row ${l}`,onClick:c,id:`folder-row-${s}`,children:[(0,o.jsx)("td",{className:"react-directory-row-name-cell-small-screen",colSpan:2,children:(0,o.jsxs)("div",{className:"react-directory-filename-column",children:[(0,o.jsx)(T,{item:t}),(0,o.jsx)(B,{initialFocus:e,item:t,getItemUrl:a,onNavigate:i})]})}),(0,o.jsx)("td",{className:"react-directory-row-name-cell-large-screen",colSpan:1,children:(0,o.jsxs)("div",{className:"react-directory-filename-column",children:[(0,o.jsx)(T,{item:t}),(0,o.jsx)(B,{initialFocus:e,item:t,getItemUrl:a,onNavigate:i})]})}),(0,o.jsx)("td",{className:"react-directory-row-commit-cell",children:(0,o.jsx)(A,{commit:r})}),(0,o.jsx)("td",{children:(0,o.jsx)(E,{commit:r})})]}),{})}let D=b.memo(_);function O({initialFocus:e,linkTo:t,linkRef:r,navigate:i}){let{setFocusHint:a}=(0,j.x)(),{path:s}=(0,n.Br)(),l=b.useCallback(()=>{let e=window.innerWidth{a(s)},ref:r,rel:"nofollow",sx:{fontWeight:"bold",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"none"},"&:focus:focus-visible div":{outline:"2px solid var(--focus-outlineColor, var(--color-accent-fg))",outlineOffset:"-2px"}},to:t,children:(0,o.jsxs)(m.Z,{className:"width-full",sx:{width:16,textAlign:"center",letterSpacing:"2px",display:"flex",alignItems:"center"},children:[(0,o.jsx)(y.Z,{icon:h.FileDirectoryFillIcon,size:"small",sx:{color:"var(--treeViewItem-leadingVisual-iconColor-rest, var(--color-icon-directory))",mr:"10px"}}),".."]})})]})})}try{_.displayName||(_.displayName="WrappedDirectoryRow")}catch{}try{(i=RowContent).displayName||(i.displayName="RowContent")}catch{}try{D.displayName||(D.displayName="DirectoryRow")}catch{}try{O.displayName||(O.displayName="GoDirectoryUpRow")}catch{}function U({overview:e}){let t=(0,s.H)(),{refInfo:r,path:i}=(0,n.Br)(),{items:S,templateDirectorySuggestionUrl:R,totalCount:M}=(0,a.j)(),{items:H}=function(e,t){let r=e.length>t,[i,o]=(0,b.useState)(r);!function(e,t){let r=(0,b.useCallback)(e,t);(0,b.useEffect)(()=>{let e=null,t=null;return t=requestAnimationFrame(()=>{e=setTimeout(()=>{r(),e=null},0),t=null}),()=>{e&&clearTimeout(e),t&&cancelAnimationFrame(t)}},[r])}(()=>{i&&o(!1)},[i]);let a=i?e.slice(0,t):e;return{truncated:i,items:a}}(S,100),[F,T]=b.useState(!!e),B=M-S.length,{commitInfo:Z}=function(){let{refInfo:e,path:t}=(0,n.Br)(),r=(0,s.H)(),[i,o]=(0,b.useState)({loading:!0}),a=(0,w.Lr)(),c=(0,l.Qi)({repo:r,action:"tree-commit-info",commitish:e.name,path:t});return(0,b.useEffect)(()=>{let e=!1,t=async()=>{o({loading:!0});let t=await (0,k.v)(c);if(!e)try{t.ok?o({commitInfo:await t.json()}):(a({variant:"warning",message:"Failed to load latest commit information."}),o({error:!0}))}catch(e){o({error:!0})}};return t(),function(){e=!0}},[a,c]),i}(),A=i.length>1,E=(0,l.C2)(i),_=(0,l.Qi)({repo:t,action:"tree",commitish:r.name,path:E}),U=(0,l.Qi)({repo:t,commitish:r.name,path:i,action:"upload"}),q=b.useRef(null),{getItemUrl:$}=(0,v.B)(),z=(0,u.s)(),{focusHint:Q}=(0,j.x)(),[K,G]=b.useState(-1),V=b.useCallback(e=>{0===e.screenX&&0===e.screenY&&q.current?.focus()},[]),Y=b.useCallback(()=>{T(!1)},[]),X=b.useCallback(e=>{let t;G(e);let r=document.getElementById(`folder-row-${e}`);(t=window.innerWidth<=d._G.medium?r?.querySelector(".react-directory-row-name-cell-small-screen"):r?.querySelector(".react-directory-row-name-cell-large-screen"))||(t=r),t?.getElementsByTagName("a")[0]?.focus()},[]);return(0,o.jsxs)(m.Z,{"data-hpc":!0,children:[(0,o.jsx)("button",{hidden:!0,"data-testid":"focus-next-element-button","data-hotkey":"j",onClick:()=>{let e=Math.min(K+1,A?H.length:H.length-1);X(e)}}),(0,o.jsx)("button",{hidden:!0,"data-testid":"focus-previous-element-button","data-hotkey":"k",onClick:()=>{X(Math.max(K-1,0))}}),(0,o.jsx)(c.N,{as:"h2",text:"Folders and files",id:"folders-and-files"}),(0,o.jsxs)(L,{"aria-labelledby":"folders-and-files",sx:{overflow:"unset"},children:[(0,o.jsxs)(W,{sx:e?{height:"0px",lineHeight:"0px",tr:{height:"0px",fontSize:"0px"}}:void 0,children:[(0,o.jsx)(m.Z,{as:"th",sx:{width:"100%",borderTopLeftRadius:"6px","@media screen and (min-width: 544px)":{display:"none"}},colSpan:2,children:(0,o.jsx)(f.Z,{sx:{fontWeight:600},children:"Name"})}),(0,o.jsx)(m.Z,{as:"th",sx:{width:"40%",borderTopLeftRadius:"6px","@media screen and (max-width: 543px)":{display:"none"}},colSpan:1,children:(0,o.jsx)(f.Z,{sx:{fontWeight:600},children:"Name"})}),(0,o.jsx)(m.Z,{as:"th",sx:{"@media screen and (max-width: 543px)":{display:"none"}},children:(0,o.jsx)(p.Z,{inline:!0,title:"Last commit message",sx:{maxWidth:"100%"},children:(0,o.jsx)(f.Z,{sx:{fontWeight:600},children:"Last commit message"})})}),(0,o.jsx)(m.Z,{as:"th",sx:{textAlign:"right",pr:3,width:"136px",borderTopRightRadius:"6px"},colSpan:1,children:(0,o.jsx)(p.Z,{inline:!0,title:"Last commit date",sx:{maxWidth:"100%"},children:(0,o.jsx)(f.Z,{sx:{fontWeight:600},children:"Last commit date"})})})]}),(0,o.jsxs)("tbody",{children:[!!e&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.Z,{as:"tr",sx:{color:"fg.muted",fontSize:0,height:"40px"},children:(0,o.jsx)(m.Z,{as:"td",colSpan:3,sx:{backgroundColor:"canvas.subtle",p:1,borderTopLeftRadius:2,borderTopRightRadius:2},children:(0,o.jsx)(N.x,{commitCount:e?.commitCount})})}),B>0?(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:3,children:(0,o.jsxs)(x.Z,{variant:"warning",sx:{borderRadius:0},children:[(0,o.jsx)(y.Z,{icon:h.AlertIcon}),"Sorry, we had to truncate this directory to 1,000 files. ",B," entries were omitted from the list."]})})}):null]}),A&&(0,o.jsx)(O,{initialFocus:!Q||!H.some(e=>e.path===Q),linkTo:_,linkRef:q,navigate:z}),H.map((e,t)=>(0,o.jsx)(D,{initialFocus:e.path===Q,item:e,commit:(Z||{})[e.name],onNavigate:V,getItemUrl:$,navigate:z,className:F&&t>=10?"truncate-for-mobile":void 0,index:A?t+1:t},e.name)),(0,o.jsx)(m.Z,{as:"tr",className:F&&H.length>10?"show-for-mobile":"d-none",sx:{textAlign:"center",verticalAlign:"center",height:"40px",borderTop:"1px solid",borderColor:"border.default"},"data-testid":"view-all-files-row",children:(0,o.jsx)(m.Z,{as:"td",colSpan:3,onClick:Y,sx:{borderTop:"1px solid var(--borderColor-default, var(--color-border-default))",cursor:"pointer"},children:(0,o.jsx)("div",{children:(0,o.jsx)(g.Z,{as:"button",onClick:Y,children:"View all files"})})})})]}),R&&(0,o.jsx)(P,{children:(0,o.jsx)(I,{children:(0,o.jsxs)("td",{colSpan:3,children:["Customize the issue creation experience with a ",(0,o.jsx)("code",{children:"config.yml"})," file."," ",(0,o.jsx)(g.Z,{href:R,children:"Learn more about configuring a template chooser."})]})})})]}),t.currentUserCanPush&&(0,o.jsx)(C,{uploadUrl:U})]})}try{U.displayName||(U.displayName="DirectoryContent")}catch{}},54431:(e,t,r)=>{r.d(t,{e:()=>h});var i=r(85893),o=r(86525),a=r(52674),n=r(22326),s=r(85529),l=r(42483),c=r(98833),d=r(73290),u=r(71735);function h({errorMessage:e,onAnchorClick:t,path:r,richText:h,stickyHeaderHeight:m,timedOut:f}){let p=(0,a.H)(),{refInfo:x}=(0,o.Br)();return e?(0,i.jsxs)(l.Z,{sx:{py:6,px:3,textAlign:"center"},children:[f&&(0,i.jsx)(c.Z,{icon:s.HourglassIcon,size:32}),(0,i.jsx)(l.Z,{"data-testid":"directory-richtext-error-message",children:e}),f&&(0,i.jsxs)("div",{children:["But you can view the"," ",(0,i.jsx)(d.Z,{href:(0,n.Qi)({repo:p,commitish:x.name,action:"raw",path:r}),"data-testid":"directory-richtext-timeout-raw-link",children:"raw file"}),"."]})]}):h?(0,i.jsx)(u.X,{onAnchorClick:t,richText:h,stickyHeaderHeight:m,sx:{p:5,overflow:"auto"}}):null}try{h.displayName||(h.displayName="DirectoryRichtextContent")}catch{}},56830:(e,t,r)=>{r.d(t,{K:()=>n,n:()=>s});var i=r(85893),o=r(67294);let a=o.createContext(!0);function n({allShortcutsEnabled:e,children:t}){return(0,i.jsxs)(a.Provider,{value:e,children:[" ",t," "]})}function s(){return o.useContext(a)}try{a.displayName||(a.displayName="AllShortcutsEnabledContext")}catch{}try{n.displayName||(n.displayName="AllShortcutsEnabledProvider")}catch{}},15062:(e,t,r)=>{r.d(t,{Is:()=>d,KG:()=>s,Lr:()=>l,QV:()=>c});var i=r(85893),o=r(67294),a=r(89250);let n=(0,o.createContext)({banners:[],addBanner:()=>void 0,addQueuedBanner:()=>void 0});function s(){return(0,o.useContext)(n).banners}function l(){return(0,o.useContext)(n).addBanner}function c(){return(0,o.useContext)(n).addQueuedBanner}function d({children:e}){let t=(0,a.TH)(),[r,s]=(0,o.useState)([]),[l,c]=(0,o.useState)([]),d=(0,o.useCallback)(e=>s(t=>[...t,e]),[]),u=(0,o.useCallback)(e=>c(t=>[...t,e]),[]),h=(0,o.useMemo)(()=>({banners:r,addBanner:d,addQueuedBanner:u}),[d,u,r]);return(0,o.useEffect)(()=>{s(l),c([])},[t.key]),(0,i.jsx)(n.Provider,{value:h,children:e})}try{n.displayName||(n.displayName="CodeViewBannersContext")}catch{}try{d.displayName||(d.displayName="CodeViewBannersProvider")}catch{}},18602:(e,t,r)=>{r.d(t,{J:()=>s,j:()=>n});var i=r(85893),o=r(67294);let a=o.createContext({});function n(){return o.useContext(a)}function s({payload:e,children:t}){return(0,i.jsx)(a.Provider,{value:e,children:t})}try{a.displayName||(a.displayName="TreeContext")}catch{}try{s.displayName||(s.displayName="CurrentTreeProvider")}catch{}},211:(e,t,r)=>{r.d(t,{aM:()=>n,ve:()=>s});var i=r(85893),o=r(67294);let a=(0,o.createContext)({query:"",setQuery:()=>void 0});function n(){return(0,o.useContext)(a)}function s({children:e}){let[t,r]=(0,o.useState)(""),n=(0,o.useMemo)(()=>({query:t,setQuery:r}),[r,t]);return(0,i.jsx)(a.Provider,{value:n,children:e})}try{a.displayName||(a.displayName="FileQueryContext")}catch{}try{s.displayName||(s.displayName="FileQueryProvider")}catch{}},86525:(e,t,r)=>{r.d(t,{Br:()=>l,Ou:()=>c,Tv:()=>s});var i=r(85893),o=r(12008),a=r(67294);let n=a.createContext({});function s({children:e,...t}){return(0,i.jsx)(n.Provider,{value:t,children:e})}function l(){return a.useContext(n)}function c(){return(0,o.M)()}try{n.displayName||(n.displayName="FilesPageInfoContext")}catch{}try{s.displayName||(s.displayName="FilesPageInfoProvider")}catch{}},52674:(e,t,r)=>{r.d(t,{H:()=>s,d:()=>n});var i=r(85893),o=r(67294);let a=o.createContext({});function n({repository:e,children:t}){return(0,i.jsxs)(a.Provider,{value:e,children:[" ",t," "]})}function s(){return o.useContext(a)}try{a.displayName||(a.displayName="CurrentRepositoryContext")}catch{}try{n.displayName||(n.displayName="CurrentRepositoryProvider")}catch{}},37589:(e,t,r)=>{r.d(t,{M:()=>n,x:()=>s});var i=r(85893),o=r(67294);let a=o.createContext(void 0);function n({user:e,children:t}){return(0,i.jsxs)(a.Provider,{value:e,children:[" ",t," "]})}function s(){return o.useContext(a)}try{a.displayName||(a.displayName="CurrentUserContext")}catch{}try{n.displayName||(n.displayName="CurrentUserProvider")}catch{}},81473:(e,t,r)=>{r.d(t,{o:()=>s,x:()=>l});var i=r(85893),o=r(71207),a=r(67294);let n=a.createContext({focusHint:null,setFocusHint:()=>void 0});function s({children:e}){let t={key:o.ssrSafeLocation.pathname+o.ssrSafeLocation.search},r=(0,a.useRef)(t.key),s=(0,a.useRef)(t.key),l=(0,a.useRef)({hint:null,location:null}),c=(0,a.useCallback)((e,r)=>{l.current={hint:e,context:r,location:t.key}},[t.key]);s.current!==t.key&&(r.current=s.current,s.current=t.key);let d=l.current.location===r.current,u=d?l.current.hint:null,h=d?l.current.context:null,m=(0,a.useMemo)(()=>({focusHint:u,context:h,setFocusHint:c}),[u,h,c]);return(0,i.jsx)(n.Provider,{value:m,children:e})}function l(){return(0,a.useContext)(n)}try{n.displayName||(n.displayName="FocusHintContext")}catch{}try{s.displayName||(s.displayName="FocusHintContextProvider")}catch{}},79804:(e,t,r)=>{r.d(t,{O:()=>s});var i=r(85893),o=r(67294),a=r(26012),n=r(71207);let s=(0,o.forwardRef)(function({src:e,size:t=20,...r},s){let l=(0,o.useMemo)(()=>{let r=new URL(e,n.ssrSafeLocation.origin);return r.searchParams.has("size")||r.searchParams.has("s")||r.searchParams.set("size",String(2*Number(t))),r.toString()},[e,t]);return(0,i.jsx)(a.Z,{ref:s,src:l,size:t,"data-testid":"github-avatar",...r})});try{s.displayName||(s.displayName="GitHubAvatar")}catch{}},98888:(e,t,r)=>{r.d(t,{h:()=>f});var i=r(85893),o=r(42379),a=r(15173),n=r(41905),s=r(86010),l=r(67294),c=r(15388);let d=c.ZP.span.withConfig({displayName:"ControlledTooltip__TooltipBase",componentId:"sc-9994fd4-0"})` &::after { position: absolute; z-index: 1000000; display: none; padding: 0.5em 0.75em; font: normal normal 11px/1.5 ${(0,o.U2)("fonts.normal")}; -webkit-font-smoothing: subpixel-antialiased; color: ${(0,o.U2)("colors.fg.onEmphasis")}; text-align: center; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-wrap: break-word; white-space: pre; pointer-events: none; content: attr(aria-label); background: ${(0,o.U2)("colors.neutral.emphasisPlus")}; border-radius: ${(0,o.U2)("radii.2")}; opacity: 0; } /* delay animation for tooltip */ @keyframes tooltip-appear { from { opacity: 0; } to { opacity: 1; } } &.tooltipped-open, &:hover, &:active, &:focus { &::after { display: inline-block; text-decoration: none; animation-name: tooltip-appear; animation-duration: 0.1s; animation-fill-mode: forwards; animation-timing-function: ease-in; animation-delay: 0s; } } &.tooltipped-no-delay.tooltipped-open, &.tooltipped-no-delay:hover, &.tooltipped-no-delay:active, &.tooltipped-no-delay:focus { &::after { animation-delay: 0s; } } /* Tooltipped south */ &.tooltipped-s, &.tooltipped-se, &.tooltipped-sw { &::after { top: 100%; right: 50%; margin-top: 6px; } } &.tooltipped-se { &::after { right: auto; left: 50%; margin-left: -${(0,o.U2)("space.3")}; } } &.tooltipped-sw::after { margin-right: -${(0,o.U2)("space.3")}; } /* Tooltips above the object */ &.tooltipped-n, &.tooltipped-ne, &.tooltipped-nw { &::after { right: 50%; bottom: 100%; margin-bottom: 6px; } } &.tooltipped-ne { &::after { right: auto; left: 50%; margin-left: -${(0,o.U2)("space.3")}; } } &.tooltipped-nw::after { margin-right: -${(0,o.U2)("space.3")}; } /* Move the tooltip body to the center of the object. */ &.tooltipped-s::after, &.tooltipped-n::after { transform: translateX(50%); } /* Tooltipped to the left */ &.tooltipped-w { &::after { right: 100%; bottom: 50%; margin-right: 6px; transform: translateY(50%); } } /* tooltipped to the right */ &.tooltipped-e { &::after { bottom: 50%; left: 100%; margin-left: 6px; transform: translateY(50%); } } &.tooltipped-align-right-2::after { right: 0; margin-right: 0; } &.tooltipped-align-left-2::after { left: 0; margin-left: 0; } ${a.Z}; `,u=()=>()=>void 0,h=()=>!1,m=()=>!0,f=(0,l.forwardRef)(function({direction:e="n",className:t,text:r,noDelay:o,align:a,wrap:c,open:f=!1,portalProps:p={},...x},y){let g=(0,l.useSyncExternalStore)(u,m,h),b=(0,s.W)(t,`tooltipped-${e}`,a&&`tooltipped-align-${a}-2`,o&&"tooltipped-no-delay",c&&"tooltipped-multiline",f&&"tooltipped-open");return g?(0,i.jsx)(n.h,{...p,children:(0,i.jsx)(d,{ref:y,role:"tooltip","aria-label":r,...x,sx:{position:"fixed",zIndex:1,...x.sx},className:b})}):null});try{f.displayName||(f.displayName="ControlledTooltip")}catch{}},24815:(e,t,r)=>{r.d(t,{u:()=>l});var i=r(85893),o=r(48030),a=r(67294),n=r(98888),s=r(15429);let l=(0,a.forwardRef)(function({contentRef:e,open:t,anchoredPositionAlignment:r,anchorSide:l,anchorOffset:c,alignmentOffset:d,allowOutOfBounds:u,...h},m){let f=(0,a.useRef)(null);(0,a.useImperativeHandle)(m,()=>f.current);let p=(0,a.useRef)({left:0,top:0}),x=(0,a.useSyncExternalStore)((0,a.useCallback)(r=>{if(!f.current||!e.current||!t)return()=>void 0;let i=(0,s.M)(e.current);return i?.addEventListener("scroll",r),()=>{i?.removeEventListener("scroll",r)}},[e,t]),(0,a.useCallback)(()=>{if(!f.current||!e.current)return p.current;let t=(0,o.N)(f.current,e.current,{align:r??"center",side:l??"outside-top",alignmentOffset:d??0,anchorOffset:c??0,allowOutOfBounds:u});return(t.left!==p.current.left||t.top!==p.current.top)&&(p.current=t),p.current},[e,d,c,r,l,u]),(0,a.useCallback)(()=>p.current,[]));return(0,i.jsx)(n.h,{...h,ref:f,open:t,style:{position:"absolute",...x,...h.style}})});try{l.displayName||(l.displayName="PortalTooltip")}catch{}},79621:(e,t,r)=>{r.d(t,{g:()=>n});var i=r(85893),o=r(67294),a=r(24815);function n({includeAriaAttributes:e=!0,...t}){let r=(0,o.useId)(),[n,s]=(0,o.useState)(!1),l=t.open??n,c=t.id??r,d=(0,o.useCallback)(()=>s(!0),[]),u=(0,o.useCallback)(()=>s(!1),[]);return[{...e?{"aria-describedby":c}:{},onPointerEnter:d,onPointerLeave:u,onFocus:d,onBlur:u},(0,i.jsx)(a.u,{...t,open:l,id:c},"portal-tooltip")]}},75299:(e,t,r)=>{r.d(t,{WZ:()=>h,sF:()=>f,wB:()=>u});var i,o=r(85893),a=r(42483),n=r(97011),s=r(27856),l=r.n(s),c=r(67294);function d(e){if("html"in e&&void 0!==e.html){let{html:t,...r}=e;return{safeHTML:t,props:r}}let{unverifiedHTML:t,unverifiedHTMLConfig:r,...i}=e,o={...r,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1};return{safeHTML:l().sanitize(t,o),props:i}}let u=m(a.Z);u.displayName="SafeHTMLBox";let h=m(n.Z);function m(e){let t=(0,c.forwardRef)((t,r)=>{let{safeHTML:i,props:a}=d(t);return(0,o.jsx)(e,{ref:r,...a,dangerouslySetInnerHTML:i?{__html:i}:void 0})});return t}h.displayName="SafeHTMLText";let f=(0,c.forwardRef)((e,t)=>{let{safeHTML:r,props:i}=d(e);return(0,o.jsx)("div",{ref:t,...i,dangerouslySetInnerHTML:r?{__html:r}:void 0})});f.displayName="SafeHTMLDiv";try{(i=SafeHTMLComponent).displayName||(i.displayName="SafeHTMLComponent")}catch{}},46741:(e,t,r)=>{r.d(t,{N:()=>a});var i=r(85893),o=r(75308);function a({as:e,text:t,...r}){return(0,i.jsx)(o.Z,{as:e,className:"sr-only","data-testid":"screen-reader-heading",...r,children:t})}try{a.displayName||(a.displayName="ScreenReaderHeading")}catch{}}}]); //# sourceMappingURL=app_assets_modules_react-shared_hooks_use-canonical-object_ts-ui_packages_code-view-shared_ho-3e492a-405fab20eac6.js.map