performance.mark("js-parse-end:26497-2bdad8556e409811.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["26497"],{99947(e,t,n){n.d(t,{A:()=>r});let r={codeFileContents:"CodeLines-module__codeFileContents__TXelD",scrollBarContainer:"CodeLines-module__scrollBarContainer__fsxaw",scrollBarSpacer:"CodeLines-module__scrollBarSpacer__ArS9V",scrollContainerHidden:"CodeLines-module__scrollContainerHidden__g7TeZ",scrollContainerAuto:"CodeLines-module__scrollContainerAuto__KCNMe"}},62269(e,t,n){function r(e){let t=e.match(/#?(?:L)(\d+)((?:C)(\d+))?/g);if(t){if(1===t.length){let e=a(t[0]);if(!e)return;return Object.freeze({start:e,end:e})}if(2!==t.length)return;{let e=a(t[0]),n=a(t[1]);if(!e||!n)return;return u(Object.freeze({start:e,end:n}))}}}function l(e){let{start:t,end:n}=u(e);return null!=t.column&&null!=n.column?`L${t.line}C${t.column}-L${n.line}C${n.column}`:null!=t.column?`L${t.line}C${t.column}-L${n.line}`:null!=n.column?`L${t.line}-L${n.line}C${n.column}`:t.line===n.line?`L${t.line}`:`L${t.line}-L${n.line}`}function i(e){let t;return{blobRange:r(e),anchorPrefix:(t=e.length<5e3&&e.match(/(file-.+?-)L\d+?/i))&&t[1]?t[1]:""}}function o({anchorPrefix:e,blobRange:t}){return t?`#${e}${l(t)}`:"#"}function a(e){if(!e)return null;let t=e.match(/L(\d+)/),n=e.match(/C(\d+)/);return t&&t[1]?Object.freeze({line:parseInt(t[1]),column:n&&n[1]?parseInt(n[1]):null}):null}function c(e,t){let[n,r]=s(e.start,!0,t),[l,i]=s(e.end,!1,t);if(!n||!l)return;let o=r,a=i;if(-1===o&&(o=0),-1===a&&(a=l.childNodes.length),!n.ownerDocument)throw Error("DOMRange needs to be inside document");let c=n.ownerDocument.createRange();return c.setStart(n,o),c.setEnd(l,a),c}function s(e,t,n){let r=[null,0],l=n(e.line);if(!l)return r;if(null==e.column)return[l,-1];let i=e.column-1,o=function e(t){if(t.nodeType===Node.TEXT_NODE)return[t];if(!t.childNodes||!t.childNodes.length)return[];let n=[];for(let r of t.childNodes)n=n.concat(e(r));return n}(l);for(let e=0;ei,JB:()=>o,Kn:()=>l,Py:()=>c,eC:()=>r})},83914(e,t,n){n.d(t,{nB:()=>x,pO:()=>E});var r=n(74848),l=n(16522),i=n(23666),o=n(78597),a=n(38621),c=n(59134),s=n(26108),u=n(10095),d=n(49305),f=n(34164),m=n(96540),h=n(23054);let p="CodeownersValidationBanner-module__Flash__TSfKS";var g=n(73537);let v=["CODEOWNERS","/CODEOWNERS"],b="ERROR",y="LOADING";function x(e){let t,n,a,c,s,u,d,f=(0,l.c)(17),{filePath:p,forceRender:x,full:_,refName:C,repo:E}=e;f[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],f[0]=t):t=f[0];let[N,S]=(0,m.useState)(t),[j,R]=(0,m.useState)(y);f[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,g.G7)("codeowners_validation_in_diff"),f[1]=n):n=f[1];let $=n;f[2]!==p?(a=v.includes(p),f[2]=p,f[3]=a):a=f[3];let A=a,k=x||$&&A,O=(0,m.useRef)(!1);return(f[4]!==p||f[5]!==C||f[6]!==E||f[7]!==k?(c=()=>{!k||O.current||(async()=>{O.current=!0;try{var e,t,n;let r=await (e=E,t={name:C},n=p,(0,o.lS)((0,i.$RX)({owner:e.ownerLogin,repo:e.name,commitish:t.name,filePath:n}),{method:"GET"}));if(r.ok){let e=await r.json();S(e.map(L)),R("VALIDATED")}else R(b)}catch{R(b)}})()},s=[p,C,E,k],f[4]=p,f[5]=C,f[6]=E,f[7]=k,f[8]=c,f[9]=s):(c=f[8],s=f[9]),(0,m.useEffect)(c,s),k)?(f[10]!==_||f[11]!==N||f[12]!==j?(u=(0,r.jsx)(w,{validationErrors:N,validationState:j,full:_}),f[10]=_,f[11]=N,f[12]=j,f[13]=u):u=f[13],f[14]!==u||f[15]!==N?(d=(0,r.jsx)(h.A,{value:N,children:u}),f[14]=u,f[15]=N,f[16]=d):d=f[16],d):null}function w(e){let t,n,i,o,f,h,g,v,x,w,C,L=(0,l.c)(27),{full:E,validationErrors:N,validationState:S}=e,[j,R]=(0,m.useState)(!1),$=(0,m.useRef)(null);if(S===b){let e;return L[0]!==E?(e=(0,r.jsx)(c.A,{variant:"warning",className:p,full:E,children:"Failed to validate this CODEOWNERS file"}),L[0]=E,L[1]=e):e=L[1],e}if(S===y){let e;return L[2]!==E?(e=(0,r.jsx)(c.A,{variant:"default",className:p,full:E,children:"Validating CODEOWNERS rules..."}),L[2]=E,L[3]=e):e=L[3],e}if(0===N.length){let e;return L[4]!==E?(e=(0,r.jsx)(c.A,{variant:"success",className:p,full:E,children:"This CODEOWNERS file is valid."}),L[4]=E,L[5]=e):e=L[5],e}return L[6]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)(u.A,{icon:a.BugIcon}),L[6]=t):t=L[6],L[7]!==j?(n=()=>R(!j),L[7]=j,L[8]=n):n=L[8],L[9]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.jsx)(s.K,{"aria-label":"View CODEOWNERS errors",tooltipDirection:"s",ref:$,size:"small",icon:a.KebabHorizontalIcon,className:"CodeownersValidationBanner-module__IconButton__deECG"}),L[9]=i):i=L[9],L[10]!==n?(o=(0,r.jsxs)("div",{onClick:n,className:"CodeownersValidationBanner-module__Box__gN1J4",children:["This CODEOWNERS file contains errors",i]}),L[10]=n,L[11]=o):o=L[11],L[12]!==E||L[13]!==o?(f=(0,r.jsxs)(c.A,{variant:"warning",className:"CodeownersValidationBanner-module__Flash_1__QF8oV",full:E,children:[t,o]}),L[12]=E,L[13]=o,L[14]=f):f=L[14],L[15]===Symbol.for("react.memo_cache_sentinel")?(h=()=>R(!1),L[15]=h):h=L[15],L[16]===Symbol.for("react.memo_cache_sentinel")?(g=(0,r.jsx)(d.A.Header,{children:"CODEOWNERS errors"}),L[16]=g):g=L[16],L[17]!==N?(v=N.map(_),L[17]=N,L[18]=v):v=L[18],L[19]!==v?(x=(0,r.jsx)("div",{className:"CodeownersValidationBanner-module__Box_1__elFSw",children:v}),L[19]=v,L[20]=x):x=L[20],L[21]!==j||L[22]!==x?(w=(0,r.jsxs)(d.A,{isOpen:j,onDismiss:h,returnFocusRef:$,className:"CodeownersValidationBanner-module__Dialog__t75ku",children:[g,x]}),L[21]=j,L[22]=x,L[23]=w):w=L[23],L[24]!==w||L[25]!==f?(C=(0,r.jsxs)(r.Fragment,{children:[f,w]}),L[24]=w,L[25]=f,L[26]=C):C=L[26],C}function _(e,t){return(0,r.jsx)(C,{error:e},t)}function C(e){let t,n,i,o,a=(0,l.c)(10),{error:c}=e,s=`${c.kind} on line ${c.line}${c.suggestion?`: ${c.suggestion}`:""}`;return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,f.$)(p,"CodeownersValidationBanner-module__ErrorCodeBlock__E0i9w"),a[0]=t):t=a[0],a[1]!==c.lineError?(n=(0,r.jsx)("b",{className:"CodeownersValidationBanner-module__Box_3__Xb9rR",children:c.lineError}),a[1]=c.lineError,a[2]=n):n=a[2],a[3]!==c.linePrefix||a[4]!==c.lineSuffix||a[5]!==n?(i=(0,r.jsx)("pre",{className:t,children:(0,r.jsxs)("code",{children:[c.linePrefix,n,c.lineSuffix]})}),a[3]=c.linePrefix,a[4]=c.lineSuffix,a[5]=n,a[6]=i):i=a[6],a[7]!==s||a[8]!==i?(o=(0,r.jsxs)("div",{className:"CodeownersValidationBanner-module__Box_2__Y4FaM",children:[s,i]}),a[7]=s,a[8]=i,a[9]=o):o=a[9],o}function L(e){var t,n,r;let l=e.source.trim(),i=e.column-1,o=(t=i,n=e.end_column,r=l,n||(r.substring(t).indexOf(" ")>0?r.indexOf(" ",t):r.length));if(i>30){let e=i-30;l="\u2026"+l.slice(e),i-=e-1,o-=e-1}return{...e,linePrefix:l.substring(0,i),lineError:l.substring(i,o),lineSuffix:l.substring(o)}}function E(){let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(u.A,{icon:a.DotFillIcon,"aria-label":"This line contains CODEOWNERS errors",className:"CodeownersValidationBanner-module__Octicon__Hyamu"}),t[0]=e):e=t[0],e}x.displayName="CodeownersValidationBanner",w.displayName="CodeownersValidationBannerInner",C.displayName="CodeownersErrorDetails",E.displayName="CodeownersErrorLineIndicator"},74208(e,t,n){n.d(t,{A:()=>a,m:()=>c});var r=n(74848),l=n(16522),i=n(96540);let o=i.createContext(!1);function a(e){let t,n=(0,l.c)(3),{children:i,isMarketplaceEnabled:a}=e,c=void 0!==a&&a;return n[0]!==i||n[1]!==c?(t=(0,r.jsx)(o,{value:c,children:i}),n[0]=i,n[1]=c,n[2]=t):t=n[2],t}function c(){return i.use(o)}o.displayName="MarketplaceEnabledContext",a.displayName="MarketplaceEnabledProvider"},23054(e,t,n){n.d(t,{A:()=>i,v:()=>o});var r=n(96540);let l=(0,r.createContext)([]);l.displayName="SplitCodeownersErrorsContext";let i=l;function o(){return(0,r.use)(l)}},82307(e,t,n){n.d(t,{om:()=>v,TA:()=>x,bp:()=>C,T4:()=>b,Y:()=>_,$E:()=>w});var r=n(74848),l=n(16522),i=n(26316),o=n(19519),a=n(38621),c=n(83223),s=n(59134),u=n(21373),d=n(10095),f=n(4978);let m=/[\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F}/u,h=/[\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F}/gu,p=/([\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F})/gu,g=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","\uDB40\uDC01":"U+E0001","\uDB40\uDC7F":"U+E007F"}));function v(){let e,t,n,f,m,h,p=(0,l.c)(11),{isBrowser:g}=(0,o.V)(),v=g?i.cg:void 0;if(!v)return null;p[0]!==v.location.href||p[1]!==v.location.origin?((t="1"===(e=new URL(v.location.href,v.location.origin)).searchParams.get("h"))?e.searchParams.delete("h"):e.searchParams.set("h","1"),p[0]=v.location.href,p[1]=v.location.origin,p[2]=e,p[3]=t):(e=p[2],t=p[3]),p[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(d.A,{icon:a.AlertIcon}),p[4]=n):n=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(f=(0,r.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,r.jsx)(c.A,{inline:!0,href:"https://github.co/hiddenchars",target:"_blank",rel:"noreferrer",children:"Learn more about bidirectional Unicode characters"})]}),p[5]=f):f=p[5],p[6]!==e.href?(m=()=>{window.location.href=e.href},p[6]=e.href,p[7]=m):m=p[7];let b=t?"Hide revealed characters":"Show hidden characters";return p[8]!==m||p[9]!==b?(h=(0,r.jsxs)(s.A,{full:!0,variant:"warning",className:"HiddenUnicode-module__Flash__W7rYG",children:[n,f,(0,r.jsx)(u.Q,{as:"a",onClick:m,size:"small",className:"HiddenUnicode-module__Button__YXJk7",children:b})]}),p[8]=m,p[9]=b,p[10]=h):h=p[10],h}function b(){let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(f.A,{direction:"e",text:"This line has hidden Unicode characters",children:(0,r.jsx)(d.A,{icon:a.AlertIcon,className:"HiddenUnicode-module__Octicon__zhTmr"})}),t[0]=e):e=t[0],e}function y(e){let t,n=(0,l.c)(2),{char:i}=e;return n[0]!==i?(t=(0,r.jsx)("span",{className:"hidden-unicode-replacement padded",children:i}),n[0]=i,n[1]=t):t=n[1],t}function x(e){return _(e)?e.replaceAll(h,e=>g.get(e)??""):e}function w(e){return _(e)?e.split(p).map((e,t)=>{let n=g.get(e);return n?(0,r.jsx)(y,{char:n},t):e}):null}function _(e){return m.test(e)}function C(){return!!i.cg&&"1"===new URL(i.cg.location.href,i.cg.location.origin).searchParams.get("h")}v.displayName="HiddenUnicodeAlert",b.displayName="HiddenUnicodeTooltip",y.displayName="HiddenUnicodeCharacter"},4575(e,t,n){n.d(t,{M:()=>u,U:()=>s});var r=n(74848),l=n(16522),i=n(38621),o=n(87763),a=n(22520),c=n(22776);function s(e){let t,n=(0,l.c)(2),{linesData:i,onLineStickOrUnstick:s,setIsCollapsed:d,tabSize:f,extraLeftPadding:m,contentWidth:h}=e,p=[...(0,a.bP)().keys()],g=(0,o.o)("react-line-numbers"),v=p.map(e=>{let t=(0,a.N9)(e,i);if(void 0===t||i[t]?.ownedSection===void 0)return null;let n=i[t],l=(0,a.m)(n?.rawText?.length??0,n?.rawText??"",f);return(0,r.jsxs)("div",{className:"CodeFoldingEllipsisOverlay-module__ellipsisRow__Z5MC7",style:{top:g*t,height:g},children:[h?(0,r.jsx)(c.I,{subtle:!0,lineNumber:e,highlightPosition:{offset:-82,width:h}}):null,(0,r.jsx)(u,{codeLineData:n,setIsCollapsed:d,onLineStickOrUnstick:s,leftOffset:l+(m??0)})]},`expand-row-ellipsis-${e}`)});return n[0]!==v?(t=(0,r.jsx)(r.Fragment,{children:v}),n[0]=v,n[1]=t):t=n[1],t}function u({codeLineData:e,leftOffset:t,setIsCollapsed:n,onLineStickOrUnstick:l}){let{lineNumber:o,ownedSection:c}=e;return(0,a.$0)(o)?(0,r.jsx)("button",{"aria-label":"Expand row",className:"Button Button--iconOnly Button--invisible Button--small px-2 py-0 ml-1 border-0 expand-row-ellipsis",style:{left:t},onMouseDown:t=>{(0,a.ny)(o),n?.(!1),c&&(c.collapsed=!1,l?.(e,!0)),t.preventDefault()},children:(0,r.jsx)(i.EllipsisIcon,{})}):null}s.displayName="CodeFoldingEllipsisOverlay",u.displayName="ExpandRowEllipsis"},22776(e,t,n){n.d(t,{S:()=>b,I:()=>x});var r=n(74848),l=n(16522),i=n(88134),o=n(76849),a=n(34164),c=n(96540),s=n(77879),u=n(73342),d=n(22520),f=n(65938),m=n(90224),h=n(4575),p=n(5672),g=n(23827),v=n(40772);let b=c.memo(y);function y(e){let t,n,o,b,y,w,_,C,L,E,N,S,j,R,$,A,k=(0,l.c)(68),{codeLineData:O,codeLineClassName:B,colorizedLine:I,id:T,onClick:D,setIsCollapsed:M,onLineStickOrUnstick:H,sharedLineObserver:U,virtualOffset:z,codeLineToSectionMap:P,stylingDirectivesLine:F,virtualKey:W,forceVisible:V,measureRef:Y,virtualIndex:G,copilotAccessAllowed:X,currentLineHeight:q,shouldUseInert:K}=e,{lineNumber:J,rawText:Q}=O,Z=(0,d.$0)(J),{tabSize:ee}=(0,s.A)(),et=(0,p.kT)(J),en=(0,c.useRef)(null),[er,el]=(0,c.useState)(void 0);k[0]!==et||k[1]!==J||k[2]!==Q||k[3]!==ee?(t=()=>{et&&en.current?el((0,d.jH)(et,en.current,J,ee,Q??"")):el(void 0)},n=[et,J,ee,Q],k[0]=et,k[1]=J,k[2]=Q,k[3]=ee,k[4]=t,k[5]=n):(t=k[4],n=k[5]),(0,c.useLayoutEffect)(t,n),k[6]!==P||k[7]!==J?(o=P?.get(J)?.length??0,k[6]=P,k[7]=J,k[8]=o):o=k[8];let ei=o,eo=(0,u.B)(U,O,ei),ea=(0,i.ud)().codeWrappingOption,ec=(0,g.WB)(J),es=(0,g.e6)(J),eu=et?.start.line===J,ed=(0,c.useRef)(null),ef=(0,c.useRef)(null);k[9]!==eu?(b=()=>{eu&&ef.current?.setAnchor(ed.current)},y=[eu],k[9]=eu,k[10]=b,k[11]=y):(b=k[10],y=k[11]),(0,c.useLayoutEffect)(b,y),k[12]!==Y||k[13]!==eo?(w=e=>{Y?.(e),eo(e)},k[12]=Y,k[13]=eo,k[14]=w):w=k[14];let em=z&&"virtual",eh=ea.enabled&&Y&&"react-code-text-cell";k[15]!==B||k[16]!==em||k[17]!==eh?(_=(0,a.$)(B,"react-code-text react-code-line-contents",em,eh),k[15]=B,k[16]=em,k[17]=eh,k[18]=_):_=k[18];let ep=z?`translateY(${z}px)`:void 0,eg=ea.enabled?void 0===q?20:q:"auto";k[19]!==ep||k[20]!==eg?(C={transform:ep,minHeight:eg},k[19]=ep,k[20]=eg,k[21]=C):C=k[21],k[22]!==er||k[23]!==et||k[24]!==J?(L=et&&(0,r.jsx)(x,{lineNumber:J,highlightPosition:er}),k[22]=er,k[23]=et,k[24]=J,k[25]=L):L=k[25],k[26]!==Z||k[27]!==er||k[28]!==et||k[29]!==J?(E=Z&&!et&&(0,r.jsx)(x,{subtle:!0,lineNumber:J,highlightPosition:er}),k[26]=Z,k[27]=er,k[28]=et,k[29]=J,k[30]=E):E=k[30],k[31]!==es||k[32]!==J||k[33]!==ec?(N=ec&&ec.length>0&&(0,r.jsx)(m.U,{symbols:ec,focusedSymbol:es,className:"CodeLine-module__highlightedOverlayInCodeLine__FMeq1",lineNumber:J}),k[31]=es,k[32]=J,k[33]=ec,k[34]=N):N=k[34];let ev=!!et;return k[35]!==I||k[36]!==V||k[37]!==T||k[38]!==J||k[39]!==Q||k[40]!==K||k[41]!==F||k[42]!==ev?(S=(0,r.jsx)(v.FS,{id:T,lineNumber:J,stylingDirectivesLine:F,current:ev,rawText:Q,forceVisible:V,ref:en,shouldUseInert:K,colorizedLine:I}),k[35]=I,k[36]=V,k[37]=T,k[38]=J,k[39]=Q,k[40]=K,k[41]=F,k[42]=ev,k[43]=S):S=k[43],k[44]!==O||k[45]!==H||k[46]!==M||k[47]!==ea.enabled?(j=ea.enabled&&(0,r.jsx)(h.M,{codeLineData:O,setIsCollapsed:M,onLineStickOrUnstick:H,leftOffset:0}),k[44]=O,k[45]=H,k[46]=M,k[47]=ea.enabled,k[48]=j):j=k[48],k[49]!==X||k[50]!==et||k[51]!==eu?(R=eu&&X&&(0,r.jsx)(f.z8,{ref:ef,rowBeginNumber:et.start.line,rowEndNumber:et.end.line,id:"code-line-copilot-button"}),k[49]=X,k[50]=et,k[51]=eu,k[52]=R):R=k[52],k[53]!==L||k[54]!==E||k[55]!==N||k[56]!==S||k[57]!==j||k[58]!==R?($=(0,r.jsxs)("div",{ref:ed,children:[L,E,N,S,j,R]}),k[53]=L,k[54]=E,k[55]=N,k[56]=S,k[57]=j,k[58]=R,k[59]=$):$=k[59],k[60]!==D||k[61]!==_||k[62]!==C||k[63]!==$||k[64]!==w||k[65]!==G||k[66]!==W?(A=(0,r.jsx)("div",{ref:w,"data-key":W,"data-index":G,className:_,style:C,onClick:D,children:$}),k[60]=D,k[61]=_,k[62]=C,k[63]=$,k[64]=w,k[65]=G,k[66]=W,k[67]=A):A=k[67],A}function x(e){let t,n,i=(0,l.c)(9),{lineNumber:a,highlightPosition:c,subtle:s}=e,u=(0,o.Y)(),d=c?.offset!==void 0,f=c?.width!==void 0,m=c?.offset??-72,h=c?.width??0,p=s?"var(--bgColor-neutral-muted, var(--color-neutral-subtle))":"var(--bgColor-attention-muted, var(--color-attention-subtle))",g=s?"inset 2px 0 0 var(--fgColor-muted, var(--color-fg-subtle))":"inset 2px 0 0 var(--fgColor-attention, var(--color-attention-fg))",v=u?"-3px":0,b=`${m}px`,y=f?`${d&&f?h:h+82}px`:"calc(100% + 72px)";i[0]!==p||i[1]!==g||i[2]!==v||i[3]!==b||i[4]!==y?(t={backgroundColor:p,boxShadow:g,top:v,left:b,width:y},i[0]=p,i[1]=g,i[2]=v,i[3]=b,i[4]=y,i[5]=t):t=i[5];let x=`highlighted-line-${a}`;return i[6]!==t||i[7]!==x?(n=(0,r.jsx)("div",{className:"CodeLine-module__highlighterElement__nPzf1",style:t},x),i[6]=t,i[7]=x,i[8]=n):n=i[8],n}b.displayName="CodeLine",y.displayName="CodeLineUnmemoized",x.displayName="HighlighterElement"},12788(e,t,n){n.d(t,{FL:()=>w,Ru:()=>L,_x:()=>C});var r=n(74848),l=n(88134),i=n(34164),o=n(96540),a=n(18955),c=n(79250),s=n(22520),u=n(19490),d=n(4575),f=n(22776),m=n(99947),h=n(16522),p=n(51220),g=n(36895),v=n(87763);function b(e){return e.getBoundingClientRect().height}function y(e){window.scrollTo({top:e,left:0,behavior:"instant"})}var x=n(95630);let w=o.memo(_);function _({linesData:e,onLineNumberClick:t,codeSections:n,codeLineToSectionMap:w,onLineStickOrUnstick:E,sharedLineObserver:N,tabSize:S,contentWidth:j,onCollapseToggle:R,cursorContainerRef:$,textAreaRef:A,materializeAllLines:k,copilotAccessAllowed:O,ref:B}){let I=(0,o.useRef)(null),T=(0,o.useRef)(null),D=(0,o.useRef)(null),M=(0,c.fY)(),H=(0,o.useRef)(!0),U=(0,o.useRef)(!0),z=(0,o.useRef)(!0),{stylingDirectives:P}=(0,a.PL)();(0,o.useEffect)(()=>{if(A&&A.current){A.current.onscroll=()=>{if(T.current&&A?.current){if(!z.current){z.current=!0;return}if(A.current.scrollLeft===T.current.scrollLeft)return;H.current=!(U.current&&z.current),T.current.scrollLeft=A.current.scrollLeft}$&&$.current&&A?.current&&($.current.scrollLeft=A.current.scrollLeft)};let e=A.current;return()=>{e&&(e.onscroll=null)}}},[A,I,M,$]);let F=(0,l.ud)().codeWrappingOption.enabled,W=(0,s.Gb)(),{virtualizer:V,currentLineHeight:Y}=function(e){var t;let n,r,l,i,o=(0,h.c)(12),{lineCount:a,materializeAllLines:c}=e,s=(0,v.o)("react-line-numbers");o[0]!==s?(n=()=>s,o[0]=s,o[1]=n):n=o[1];let u=n;o[2]!==a?(t=a,r=function(e){if(t<150){let e=Array(t);for(let n=0;n{V.measure()},[F,V]),(0,o.useImperativeHandle)(B,()=>({scrollToTop:()=>{(0,s.si)(0)||V.scrollToIndex(0,{align:"start"})},scrollToLine:(e,t)=>{V.scrollToIndex(e,{align:"start"});let n=I.current;n&&n.scroll({left:L(n,e,t)})}})),(0,r.jsxs)("div",{ref:I,style:{pointerEvents:M?"none":"auto"},onScroll:e=>C(e,A),children:[(0,r.jsx)("div",{className:(0,i.$)("react-code-line-container",M?m.A.scrollContainerHidden:m.A.scrollContainerAuto),ref:T,tabIndex:0,onScroll:()=>{if(M&&T.current&&D.current){if(!U.current){U.current=!0;return}D.current.scrollLeft!==T.current.scrollLeft&&(z.current=!(U.current&&H.current),D.current.scrollLeft=T.current.scrollLeft)}},children:(0,r.jsxs)("div",{className:(0,i.$)("react-code-file-contents",m.A.codeFileContents),role:"presentation","aria-hidden":!0,"data-tab-size":S,"data-testid":"code-lines-container","data-paste-markdown-skip":!0,style:{tabSize:S,width:j,maxWidth:F?"100%":"unset",height:V.getTotalSize()},"data-hpc":!0,children:[(0,r.jsx)("div",{className:"react-line-numbers",style:{pointerEvents:"auto",height:V.getTotalSize(),position:"relative",zIndex:2},children:V.getVirtualItems().map(l=>{let i=e[l.index];return(0,r.jsx)(x.Kn,{codeLineData:i,onClick:t,ownedCodeSections:n,onLineStickOrUnstick:E,onCollapseToggle:R,virtualOffset:l.start,copilotAccessAllowed:O},i.lineNumber)})}),(0,r.jsx)("div",{className:"react-code-lines",style:{height:V.getTotalSize()},children:V.getVirtualItems().map(t=>{let n=e[t.index];return(0,r.jsx)(f.S,{codeLineData:n,stylingDirectivesLine:n.stylingDirectivesLine??(P?P[n.lineNumber-1]:void 0),shouldUseInert:W,codeLineClassName:n.codeLineClassName,id:`LC${n.lineNumber}`,onLineStickOrUnstick:E,sharedLineObserver:N,setIsCollapsed:R,codeLineToSectionMap:w,virtualOffset:t.start,virtualKey:String(t.key),copilotAccessAllowed:O,currentLineHeight:Y,measureRef:F?V.measureElement:void 0,virtualIndex:F?t.index:void 0},n.lineNumber)})}),(0,r.jsx)(u.A,{shouldNotOverrideCopy:M,containerRef:M?A:I}),!F&&(0,r.jsx)(d.U,{linesData:e,onLineStickOrUnstick:E,setIsCollapsed:R,tabSize:S,extraLeftPadding:82})]})}),M&&j&&T.current&&T.current.clientWidth{if(D.current&&A?.current){if(!H.current){H.current=!0;return}D.current.scrollLeft!==A.current.scrollLeft&&(U.current=!(z.current&&H.current),A.current.scrollLeft=D.current.scrollLeft)}},ref:D,onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>e.preventDefault(),children:(0,r.jsx)("div",{className:m.A.scrollBarSpacer,style:{width:j}})}):null]})}function C(e,t){let n=e.target;t?.current?.scrollTo(n.scrollLeft,n.scrollTop)}function L(e,t,n){if(!n)return 0;let r=(0,s.a2)(t,n);if(!r)return 0;let l=e.getBoundingClientRect(),i=r.getBoundingClientRect();return l.left+l.width-e.scrollLeft-(i.left+i.width)>0?0:r.offsetLeft}w.displayName="CodeLines",_.displayName="CodeLinesUnmemoized"},46513(e,t,n){n.d(t,{kd:()=>L,G:()=>S,P9:()=>C,OL:()=>E});var r=n(74848),l=n(16522),i=n(73537),o=n(88134),a=n(34164),c=n(96540),s=n(87763),u=n(79250),d=n(22520),f=n(19490),m=n(4575),h=n(12788),p=n(99947),g=n(3633),v=n(67572),b=n(41559),y=n(73342);function x(e){let t,n,i=(0,l.c)(7),{linesData:o,sharedLineObserver:a,codeLineToSectionMap:c}=e,u=(0,s.o)("react-line-numbers");return void 0===c?null:(i[0]!==c||i[1]!==u||i[2]!==o||i[3]!==a?(t=o.map(e=>{let t=e.lineNumber,n=c?.get(t)?.length??0;if(void 0===t||void 0===e.ownedSection)return null;let l=(0,d.N9)(t,o);return(0,r.jsx)(w,{className:"symbol-highlight react-code-text",lineData:o[l],sharedLineObserver:a,numParents:n,style:{top:u*(l-1),height:u}},`observer-overlay-${l}-lineNumber-no-virtualization`)}),i[0]=c,i[1]=u,i[2]=o,i[3]=a,i[4]=t):t=i[4],i[5]!==t?(n=(0,r.jsx)(r.Fragment,{children:t}),i[5]=t,i[6]=n):n=i[6],n)}function w(e){let t,n,i,o=(0,l.c)(8),{lineData:c,sharedLineObserver:s,numParents:u,className:d,style:f}=e,m=(0,y.B)(s,c,u);return o[0]!==m?(t=e=>{m(e)},o[0]=m,o[1]=t):t=o[1],o[2]!==d?(n=(0,a.$)(d,"StickyLineObserverOverlay-module__stickyLineObserver__rhc2u"),o[2]=d,o[3]=n):n=o[3],o[4]!==f||o[5]!==t||o[6]!==n?(i=(0,r.jsx)("div",{ref:t,className:n,style:f,"data-testid":"sticky-line-observer"}),o[4]=f,o[5]=t,o[6]=n,o[7]=i):i=o[7],i}x.displayName="StickyLineObserverOverlay",w.displayName="StickyLineObserverLine";var _=n(40772);let C=c.memo(N);C.displayName="CodeLinesNoVirtualization";let L=60,E=3500;function N({linesData:e,onLineNumberClick:t,codeSections:n,nonTruncatedLinesData:l,codeLineToSectionMap:i,onLineStickOrUnstick:o,sharedLineObserver:y,colorizedLines:w,tabSize:C,contentWidth:E,cursorContainerRef:S,onCollapseToggle:j,textAreaRef:R,copilotAccessAllowed:$,ref:A}){let k=(0,c.useRef)(null),O=(0,c.useRef)(null),B=(0,c.useRef)(null),I=(0,u.fY)(),T=(0,c.useRef)(!0),D=(0,c.useRef)(!0),M=(0,c.useRef)(!0),H=(0,s.o)("react-line-numbers"),U=(0,c.useMemo)(()=>[...Array(Math.floor(e.length/L)+1).keys()],[e.length]);return(0,c.useImperativeHandle)(A,()=>({scrollToTop:()=>{(0,d.si)(0)||window.scrollTo({left:0,top:0})},scrollToLine:(e,t)=>{let n=k.current;n&&setTimeout(()=>window.scrollTo({left:(0,h.Ru)(n,e,t),top:H*e}),0)}})),(0,c.useEffect)(()=>{if(R&&R.current){R.current.onscroll=()=>{if(O.current&&R?.current){if(!M.current){M.current=!0;return}if(R.current.scrollLeft===O.current.scrollLeft)return;T.current=!(D.current&&M.current),O.current.scrollLeft=R.current.scrollLeft}S&&S.current&&R?.current&&(S.current.scrollLeft=R.current.scrollLeft)};let e=R.current;return()=>{e&&(e.onscroll=null)}}},[R,k,I,S]),(0,r.jsxs)("div",{ref:k,style:{pointerEvents:I?"none":"auto"},onScroll:e=>(0,h._x)(e,R),children:[(0,r.jsx)("div",{ref:O,className:(0,a.$)(I?p.A.scrollContainerHidden:p.A.scrollContainerAuto),tabIndex:0,onScroll:()=>{if(I&&O.current&&B.current){if(!D.current){D.current=!0;return}B.current.scrollLeft!==O.current.scrollLeft&&(M.current=!(D.current&&T.current),B.current.scrollLeft=O.current.scrollLeft)}},children:(0,r.jsxs)("div",{className:(0,a.$)("react-code-file-contents",p.A.codeFileContents),role:"presentation","aria-hidden":!0,"data-tab-size":C,"data-paste-markdown-skip":!0,style:{tabSize:C,width:E,maxWidth:"unset"},"data-hpc":!0,children:[(0,r.jsx)("div",{className:"react-line-numbers-no-virtualization",style:{pointerEvents:"auto",position:"relative",zIndex:2},children:U.map(l=>{let a=e.slice(l*L,Math.min(l*L+L,e.length));return(0,r.jsx)("div",{className:"react-no-virtualization-wrapper-lines",children:a.map(e=>(0,r.jsx)(b.m,{codeLineData:e,onClick:t,ownedCodeSections:n,onLineStickOrUnstick:o,onCollapseToggle:j,codeLineToSectionMap:i,copilotAccessAllowed:$},`line-number-${e.lineNumber}-content:${e.rawText?.substring(0,100)}`))},`line-number-wrapper-${l}-content:${a[0]?.rawText?.substring(0,100)}`)})}),(0,r.jsxs)("div",{className:"react-code-lines",children:[(0,r.jsx)(v.R,{linesData:e}),(0,r.jsx)(g.n,{linesData:e,copilotAccessAllowed:$}),(0,r.jsx)(_.Bg,{colorizedLines:w,linesData:l}),(0,r.jsx)(x,{linesData:e,sharedLineObserver:y,codeLineToSectionMap:i}),(0,r.jsx)(m.U,{linesData:e,onLineStickOrUnstick:o,setIsCollapsed:j,tabSize:C,contentWidth:E})]}),(0,r.jsx)(f.A,{shouldNotOverrideCopy:I,containerRef:I?R:k})]})}),I&&E&&O.current&&O.current.clientWidth{if(B.current&&R?.current){if(!T.current){T.current=!0;return}B.current.scrollLeft!==R.current.scrollLeft&&(D.current=!(M.current&&T.current),R.current.scrollLeft=B.current.scrollLeft)}},ref:B,onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onMouseUp:e=>e.preventDefault(),children:(0,r.jsx)("div",{className:p.A.scrollBarSpacer,style:{width:E}})}):null]})}function S(e){let t,n=(0,l.c)(1),r=(0,o.ud)().codeWrappingOption.enabled;n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.G7)("react_blob_overlay"),n[0]=t):t=n[0];let a=t,c=(0,d.Gb)(),s=(0,d.hO)();return a&&!r&&!(s&&!c)&&eu,iU:()=>s,kT:()=>d});var r=n(74848),l=n(16522),i=n(13589),o=n(13865),a=n(96540);let c=a.createContext(new i.Lj(void 0));function s({highlightedLines:e,children:t}){let n=(0,o.AI)(e);return(0,a.useEffect)(()=>{n.value=e},[n,e]),(0,r.jsx)(c,{value:n,children:t})}function u(){return(0,o.HN)(a.use(c))}function d(e){let t,n=(0,l.c)(2),r=a.use(c);n[0]!==e?(t=t=>t&&e>=t.start.line&&e<=t.end.line?t:void 0,n[0]=e,n[1]=t):t=n[1];let i=(0,o.Sk)(r,t);return(0,o.HN)(i)}c.displayName="HighlightedLineContext",s.displayName="HighlightedLinesProvider"},3633(e,t,n){n.d(t,{n:()=>m});var r=n(74848),l=n(16522),i=n(76849),o=n(34164),a=n(96540),c=n(77879),s=n(87763),u=n(22520),d=n(65938),f=n(5672);function m(e){let t,n,o,m,p,g,v,b,y,x=(0,l.c)(32),{linesData:w,copilotAccessAllowed:_}=e,C=(0,f.Df)(),{tabSize:L}=(0,c.A)(),E=(0,s.o)("react-line-numbers"),N=(0,i.Y)(),S=(0,a.useRef)(null),j=(0,a.useRef)(null);x[0]!==w||x[1]!==C?(t=C?(0,u.N9)(C.start.line,w):0,x[0]=w,x[1]=C,x[2]=t):t=x[2];let R=t;x[3]!==w||x[4]!==C||x[5]!==R?(n=C?.end.line?(0,u.N9)(C.end.line,w):R,x[3]=w,x[4]=C,x[5]=R,x[6]=n):n=x[6];let $=n,[A,k]=(0,a.useState)(N?R*E-3:R*E);if(x[7]!==N||x[8]!==E||x[9]!==C||x[10]!==R?(o=()=>{C&&(j.current?.setAnchor(S.current),k(N?R*E-3:R*E))},m=[C,N,E,R],x[7]=N,x[8]=E,x[9]=C,x[10]=R,x[11]=o,x[12]=m):(o=x[11],m=x[12]),(0,a.useLayoutEffect)(o,m),!C)return null;if(x[13]!==$||x[14]!==w||x[15]!==C||x[16]!==R||x[17]!==L){p=[];for(let e=R;e<=$;e++){let t=(0,u.zS)("",e+1);if(!t)continue;let n=(0,u.jH)(C,t,e+1,L,w[e+1]?.rawText??"")??{};p.push({position:n,lineNumber:e})}x[13]=$,x[14]=w,x[15]=C,x[16]=R,x[17]=L,x[18]=p}else p=x[18];let O=A+10;return x[19]!==O?(g={position:"relative",top:O},x[19]=O,x[20]=g):g=x[20],x[21]!==p||x[22]!==R?(v=p.map(e=>{let{position:t,lineNumber:n}=e;return(0,r.jsx)(h,{highlightPosition:t,lineNumber:n,startingLineNumber:R},`line-${n}-highlight-${t.offset}`)}),x[21]=p,x[22]=R,x[23]=v):v=x[23],x[24]!==_||x[25]!==A||x[26]!==C?(b=_&&(0,r.jsx)(d.z8,{ref:j,rowBeginNumber:C.start.line,rowEndNumber:C.end.line,recalcPosition:A,id:"code-line-copilot-button"}),x[24]=_,x[25]=A,x[26]=C,x[27]=b):b=x[27],x[28]!==g||x[29]!==v||x[30]!==b?(y=(0,r.jsxs)("div",{ref:S,style:g,children:[v,b]}),x[28]=g,x[29]=v,x[30]=b,x[31]=y):y=x[31],y}function h(e){let t,n,i,a=(0,l.c)(11),{startingLineNumber:c,lineNumber:u,highlightPosition:d,subtle:f}=e,m=(0,s.o)("react-line-numbers"),h=(u-c)*m,p=f?"HighlightedLinesOverlay-module__lineHighlightSubtle__wHQDF":"HighlightedLinesOverlay-module__lineHighlightActive__RseNi";a[0]!==p?(t=(0,o.$)("line-highlight",p,"HighlightedLinesOverlay-module__lineHighlight__kvRG4"),a[0]=p,a[1]=t):t=a[1];let g=d&&d.offset?`${d.offset-10}px`:"-82px",v=`${h-10}px`,b=d&&d.width?`${d.width+82}px`:"calc(100% + 82px)";a[2]!==m||a[3]!==g||a[4]!==v||a[5]!==b?(n={height:m,left:g,top:v,width:b},a[2]=m,a[3]=g,a[4]=v,a[5]=b,a[6]=n):n=a[6];let y=`highlighted-line-${u}`;return a[7]!==t||a[8]!==n||a[9]!==y?(i=(0,r.jsx)("div",{className:t,style:n},y),a[7]=t,a[8]=n,a[9]=y,a[10]=i):i=a[10],i}m.displayName="HighlightedLinesOverlay",h.displayName="LineHighlight"},67572(e,t,n){n.d(t,{R:()=>s});var r=n(74848),l=n(16522),i=n(87763),o=n(22520),a=n(90224),c=n(23827);function s(e){let t,n=(0,l.c)(5),{linesData:s}=e,u=(0,c.VT)(),d=(0,c.Gp)(),f=(0,i.o)("react-line-numbers");return n[0]!==d||n[1]!==f||n[2]!==s||n[3]!==u?(t=(0,r.jsx)(r.Fragment,{children:[...u.values()].map(e=>{let t=e[0]?.lineNumber;if(void 0===t)return null;let n=(0,o.N9)(t,s)+1;return(0,r.jsx)(a.U,{className:"symbol-highlight react-code-text",lineNumber:n,symbols:e,focusedSymbol:d,style:{position:"absolute",top:f*(n-1),paddingLeft:"10px",height:f,whiteSpace:"pre"}},`overlay-${n}-lineNumber-no-virtualization`)})}),n[0]=d,n[1]=f,n[2]=s,n[3]=u,n[4]=t):t=n[4],t}s.displayName="HighlightedSymbolsOverlay"},95630(e,t,n){n.d(t,{Kn:()=>w,_Y:()=>L,cw:()=>C});var r=n(74848),l=n(16522),i=n(62269),o=n(83914),a=n(7231),c=n(56341),s=n(88134),u=n(38621),d=n(10095),f=n(34164),m=n(96540),h=n(79250),p=n(22520),g=n(82307),v=n(65938),b=n(36899),y=n(5672);let x="LineNumber-module__codeFoldingChevron__sY2Yt",w=m.memo(_);function _({codeLineData:e,onClick:t,ownedCodeSections:n,onCollapseToggle:l,preventClick:u,onLineStickOrUnstick:d,virtualOffset:x,copilotAccessAllowed:w}){let{lineNumber:E,ownedSection:N,codeLineClassName:S,isStartLine:j,codeownersLineError:R,hiddenUnicode:$}=e,{sendRepoClickEvent:A}=(0,a.T)(),k=(0,h.Jo)(),[O,B]=(0,m.useState)(!1),I=(0,m.useCallback)(e=>{let n,r;if(e.defaultPrevented)return;let l=parseInt(e.currentTarget.getAttribute("data-line-number")||"",10),o=(0,i.$c)(`L${l}`),a=k.current;if(a&&(a.start.line!==a.end.line||a.start.column!==a.end.column))n=a.start,r=a.end;else{let e=window.getSelection()?.rangeCount?window.getSelection()?.getRangeAt(0):null;e&&(n=(0,p.um)(e.startContainer,e.startOffset),r=(0,p.um)(e.endContainer,e.endOffset))}let s=!1;n&&r&&n.line<=l&&r.line>=l&&(s=!0,o={anchorPrefix:"",blobRange:{start:n,end:r}});let{blobRange:u}=o,d=(0,i.eC)(window.location.hash);d&&e.shiftKey&&!s?(A("BLOB.MULTILINE"),o.blobRange={start:d.start,end:u.end}):A("BLOB.LINE");let f=(0,i.JB)(o);(0,c.Zu)(f),t?.(e)},[t,k,A]),T=(0,y.kT)(E),D=T?.start.line===E,M=T&&T.start.line=E||D&&T?.start.column===null,H=(0,m.useRef)(null),U=(0,m.useRef)(null),z=(0,m.useRef)(null);(0,m.useLayoutEffect)(()=>{D&&U.current?.setAnchor(H.current)},[D]);let{codeFoldingOption:P}=(0,s.ud)(),F=P.enabled;(0,m.useEffect)(()=>{!P.enabled&&((0,p.X5)(),l?.(!1),N&&(N.collapsed=!1))},[P.enabled,N,l]);let W=e=>{w&&(B(e),setTimeout(()=>z.current?.setAnchor(e?H.current:null),0))};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{ref:H,"data-line-number":E,className:(0,f.$)(S,"react-line-number react-code-text",x&&"virtual",u&&"prevent-click",M&&"highlighted-line"),style:x?{paddingRight:"16px",transform:`translateY(${x}px)`}:{paddingRight:"16px"},onMouseDown:u?void 0:I,onMouseEnter:w?()=>W(!0):void 0,onMouseLeave:w?()=>W(!1):void 0,children:[E,R&&(0,r.jsx)(C,{children:(0,r.jsx)(o.pO,{})}),$&&(0,r.jsx)(C,{children:(0,r.jsx)(g.T4,{})}),F&&j&&N&&n&&(0,r.jsx)(C,{displayRight:!0,children:(0,r.jsx)(L,{codeLineData:e,onCollapseToggle:l,onLineStickOrUnstick:d})})]}),D&&(0,r.jsx)(b.Ay,{codeLineClassName:S,ref:U,rowBeginId:`LG${T.start.line}`,rowBeginNumber:T.start.line,rowEndNumber:T.end.line,rowEndId:`LG${T.end.line}`}),w&&O&&(0,r.jsx)("div",{children:(0,r.jsx)(v.z8,{ref:z,rowBeginNumber:E,rowEndNumber:E,id:"code-line-copilot-button"})})]})}function C(e){let t,n,i=(0,l.c)(5),{children:o,displayRight:a}=e,c=a&&"LineNumber-module__codeAlertRight__hdWmf";return i[0]!==c?(t=(0,f.$)("LineNumber-module__codeAlert__WexRo",c),i[0]=c,i[1]=t):t=i[1],i[2]!==o||i[3]!==t?(n=(0,r.jsx)("span",{className:t,children:o}),i[2]=o,i[3]=t,i[4]=n):n=i[4],n}function L({codeLineData:e,onCollapseToggle:t,onLineStickOrUnstick:n}){let l=(0,p.$0)(e.lineNumber),i=(0,m.useCallback)(r=>{let{lineNumber:l,ownedSection:i}=e;i&&(i.collapsed=!1),t?.(!1),(0,p.ny)(l),n?.(e,!0),r.preventDefault()},[e,t,n]),o=(0,m.useCallback)(n=>{let{lineNumber:r,ownedSection:l}=e;l&&(l.collapsed=!0),t?.(!0),(0,p.E8)(r),n.preventDefault()},[e,t]);return l?(0,r.jsx)("div",{"aria-label":"Expand code section",onMouseDown:i,role:"button",tabIndex:0,className:x,children:(0,r.jsx)(d.A,{icon:u.ChevronRightIcon})}):(0,r.jsx)("div",{"aria-label":"Collapse code section",onMouseDown:o,role:"button",tabIndex:0,className:x,children:(0,r.jsx)(d.A,{icon:u.ChevronDownIcon})})}w.displayName="LineNumber",_.displayName="LineNumberUnmemoized",C.displayName="CodeAlert",L.displayName="CodeFoldingChevron"},41559(e,t,n){n.d(t,{m:()=>b});var r=n(74848),l=n(62269),i=n(83914),o=n(7231),a=n(56341),c=n(88134),s=n(34164),u=n(96540),d=n(79250),f=n(22520),m=n(82307),h=n(65938),p=n(36899),g=n(5672),v=n(95630);let b=u.memo(y);function y({codeLineData:e,onClick:t,ownedCodeSections:n,onCollapseToggle:b,preventClick:x,onLineStickOrUnstick:w,virtualOffset:_,copilotAccessAllowed:C}){let{lineNumber:L,ownedSection:E,codeLineClassName:N,isStartLine:S,codeownersLineError:j,hiddenUnicode:R}=e,{sendRepoClickEvent:$}=(0,o.T)(),A=(0,d.Jo)(),k=(0,u.useCallback)(e=>{let n,r;if(e.defaultPrevented)return;let i=parseInt(e.currentTarget.getAttribute("data-line-number")||"",10),o=(0,l.$c)(`L${i}`),c=A.current;if(c&&(c.start.line!==c.end.line||c.start.column!==c.end.column))n=c.start,r=c.end;else{let e=window.getSelection()?.rangeCount?window.getSelection()?.getRangeAt(0):null;e&&(n=(0,f.um)(e.startContainer,e.startOffset),r=(0,f.um)(e.endContainer,e.endOffset))}let s=!1;n&&r&&n.line<=i&&r.line>=i&&(s=!0,o={anchorPrefix:"",blobRange:{start:n,end:r}});let{blobRange:u}=o,d=(0,l.eC)(window.location.hash);d&&e.shiftKey&&!s?($("BLOB.MULTILINE"),o.blobRange={start:d.start,end:u.end}):$("BLOB.LINE");let m=(0,l.JB)(o);(0,a.Zu)(m),t?.(e)},[t,A,$]),O=(0,g.kT)(L),B=O?.start.line===L,I=O&&O.start.line=L||B&&O?.start.column===null,T=(0,u.useRef)(null),D=(0,u.useRef)(null),M=(0,u.useRef)(null),[H,U]=(0,u.useState)(!1);(0,u.useLayoutEffect)(()=>{B&&D.current?.setAnchor(T.current)},[B]);let{codeFoldingOption:z}=(0,c.ud)(),P=z.enabled,F=e=>{C&&(U(e),setTimeout(()=>M.current?.setAnchor(e?T.current:null),0))};return(0,u.useEffect)(()=>{!z.enabled&&((0,f.X5)(),b?.(!1),E&&(E.collapsed=!1))},[z.enabled,E,b]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{ref:e=>{T.current=e},"data-line-number":L,className:(0,s.$)(N,"react-line-number react-code-text",_&&"virtual",x&&"prevent-click",I&&"highlighted-line"),style:_?{paddingRight:"16px",transform:`translateY(${_}px)`}:{paddingRight:"16px"},onMouseDown:x?void 0:k,onMouseEnter:C?()=>F(!0):void 0,onMouseLeave:C?()=>F(!1):void 0,children:[L,j&&(0,r.jsx)(v.cw,{children:(0,r.jsx)(i.pO,{})}),R&&(0,r.jsx)(v.cw,{children:(0,r.jsx)(m.T4,{})}),P&&S&&E&&n&&(0,r.jsx)(v.cw,{displayRight:!0,children:(0,r.jsx)(v._Y,{codeLineData:e,onCollapseToggle:b,onLineStickOrUnstick:w})})]}),B&&(0,r.jsx)(p.Ay,{codeLineClassName:N,ref:D,rowBeginId:`LG${O.start.line}`,rowBeginNumber:O.start.line,rowEndNumber:O.end.line,rowEndId:`LG${O.end.line}`}),C&&H&&(0,r.jsx)("div",{children:(0,r.jsx)(h.z8,{ref:M,rowBeginNumber:L,rowEndNumber:L,id:"code-line-copilot-button"})})]})}b.displayName="LineNumberNoVirtualziation",y.displayName="LineNumberNoVirtualizationUnmemoized"},23827(e,t,n){n.d(t,{Gp:()=>m,VT:()=>u,WB:()=>d,e6:()=>f,gt:()=>s});var r=n(74848),l=n(16522),i=n(13589),o=n(13865),a=n(96540);let c=(0,a.createContext)({resultsByLineNumber:new i.Es,focusedResult:new i.Lj(void 0)});function s({searchResults:e,focusedSearchResult:t,children:n}){let l=(0,o.R)(),i=(0,o.AI)(void 0!==t?e[t]:void 0);(0,a.useEffect)(()=>{let t=new Map;for(let n of e){let e=n.lineNumber;t.has(e)?t.get(e).push(n):t.set(e,[n])}for(let[e,n]of(l.clear(),t))l.set(e,n)},[l,e]),(0,a.useEffect)(()=>{i.value=void 0!==t?e[t]:void 0},[e,i,t]);let u=(0,a.useMemo)(()=>({resultsByLineNumber:l,focusedResult:i}),[l,i]);return(0,r.jsx)(c,{value:u,children:n})}function u(){let{resultsByLineNumber:e}=(0,a.use)(c);return(0,o.tQ)(e)}function d(e){let t,n=(0,l.c)(3),{resultsByLineNumber:r}=(0,a.use)(c);return n[0]!==e||n[1]!==r?(t=r.get(e),n[0]=e,n[1]=r,n[2]=t):t=n[2],(0,o.HN)(t)}function f(e){let t,n=(0,l.c)(2),{focusedResult:r}=(0,a.use)(c);n[0]!==e?(t=t=>t?.lineNumber===e?t:void 0,n[0]=e,n[1]=t):t=n[1];let i=(0,o.Sk)(r,t);return(0,o.HN)(i)}function m(){let{focusedResult:e}=(0,a.use)(c);return(0,o.HN)(e)}c.displayName="SearchResultsContext",s.displayName="SearchResultsProvider"},40772(e,t,n){n.d(t,{Bg:()=>v,FS:()=>p});var r=n(74848),l=n(16522),i=n(41230),o=n(16497),a=n(19519),c=n(35228),s=n(96540),u=n(77879),d=n(79250),f=n(22520),m=n(82307),h=n(46513);let p=s.memo(g);function g(e){let t,n,i,a,s,h,p=(0,l.c)(9),{id:g,stylingDirectivesLine:v,rawText:b,lineNumber:y,current:x,forceVisible:w,shouldUseInert:_,colorizedLine:C,ref:L}=e,E=(t=(0,d.fY)(),n=(0,f.hO)(),i=(0,f.Gb)(),!t||i?"plain":n&&!i?"separated-characters-chunked":"data-attribute"),{tabSize:N}=(0,u.A)();p[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,m.bp)(),p[0]=a):a=p[0];let S=a,j=(0,c.W)(C,v,b,w?"plain":E,N,S);p[1]===Symbol.for("react.memo_cache_sentinel")?(s={position:"relative"},p[1]=s):s=p[1];let R=x?"location":void 0;return p[2]!==j||p[3]!==g||p[4]!==y||p[5]!==L||p[6]!==_||p[7]!==R?(h=(0,r.jsx)(o.$6,{id:g,className:"react-file-line html-div","data-testid":"code-cell","data-line-number":y,html:j,ref:L,style:s,"aria-current":R,inert:_}),p[2]=j,p[3]=g,p[4]=y,p[5]=L,p[6]=_,p[7]=R,p[8]=h):h=p[8],h}p.displayName="SyntaxHighlightedLine",g.displayName="SyntaxHighlightedLineWithRef";let v=s.memo(b);function b(e){let t,n,c=(0,l.c)(4),{linesData:s,colorizedLines:u}=e;c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m.bp)(),c[0]=t):t=c[0];let d=function(e,t,n){let r,o=(0,l.c)(5),{isServer:c}=(0,a.V)();return o[0]!==t||o[1]!==n||o[2]!==c||o[3]!==e?(r=t?t.map((r,l)=>{if(l>=e.length)return null;let o="",a="";l%h.kd!=0||c||(o=c?"
":'
'),(l+1)%h.kd!=0&&l!==t.length||c||(a="
");let s=0!==r.length?r:"\n",u=n?(0,i.Gx)(s)??s:s;return`${o}
${u}
${a}`}).join("\n"):"
",o[0]=t,o[1]=n,o[2]=c,o[3]=e,o[4]=r):r=o[4],r}(s,u??null,t),p=(0,f.Gb)();return c[1]!==d||c[2]!==p?(n=(0,r.jsx)(o.$6,{inert:p,html:d}),c[1]=d,c[2]=p,c[3]=n):n=c[3],n}v.displayName="SyntaxHighlightedOverlay",b.displayName="SyntaxHighlightedOverlayUnmemoed"},65938(e,t,n){n.d(t,{eT:()=>y,z8:()=>x});var r=n(74848),l=n(16522),i=n(95173),o=n(31595),a=n(68541),c=n(9926),s=n(54242),u=n(73537),d=n(44241),f=n(96540),m=n(40961),h=n(77879),p=n(97136),g=n(5672);let v="copilot-button-positioner",b="copilot-button-container";function y(e){let t,n,i=(0,l.c)(3),{children:o}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("div",{id:b}),i[0]=t):t=i[0],i[1]!==o?(n=(0,r.jsxs)("div",{id:v,className:"position-relative",children:[o,t]}),i[1]=o,i[2]=n):n=i[2],n}y.displayName="CopilotButtonContainer";let x=f.memo(function(e){let t,n,y,x,w,_,C,L,E,N,S=(0,l.c)(36),{rowBeginNumber:j,rowEndNumber:R,id:$,recalcPosition:A,ref:k}=e,[O,B]=(0,f.useState)(null);S[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>({setAnchor:B}),S[0]=t):t=S[0],(0,f.useImperativeHandle)(k,t);let[I,T]=(0,f.useState)(void 0);S[1]!==O?(n=()=>{let e=()=>requestAnimationFrame(()=>T(function(e,t={x:0,y:0}){let n=document.getElementById(v);if(!e||!n)return{display:"none"};let{top:r,height:l}=e.getBoundingClientRect(),{top:i}=n.getBoundingClientRect(),o=(p.u9-l)/2;return{top:`${r-i-o+t.y+1}px`,right:"37px"}}(O)));return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},S[1]=O,S[2]=n):n=S[2],S[3]!==O||S[4]!==A?(y=[O,A],S[3]=O,S[4]=A,S[5]=y):y=S[5],(0,f.useLayoutEffect)(n,y);let D=(0,o.l)(),{copilotAccessAllowed:M}=(0,i.w)(),H=(0,a.z)(),U=(0,g.Df)(),z=(0,s.t)(),{language:P,languageID:F,copilotSWEAgentEnabled:W}=(0,h.A)();S[6]!==j||S[7]!==R?(x={start:j,end:R},S[6]=j,S[7]=R,S[8]=x):x=S[8];let V=H.refType;S[9]!==H.name||S[10]!==V?(w=(0,d.D7)(H.name,V),S[9]=H.name,S[10]=V,S[11]=w):w=S[11],S[12]!==P||S[13]!==F||S[14]!==D||S[15]!==H.currentOid||S[16]!==z.id||S[17]!==z.name||S[18]!==z.ownerLogin||S[19]!==x||S[20]!==w?(_={type:"snippet",languageID:F,languageName:P,path:D,range:x,ref:w,commitOID:H.currentOid,repoID:z.id,repoName:z.name,repoOwner:z.ownerLogin,url:window.location.href},S[12]=P,S[13]=F,S[14]=D,S[15]=H.currentOid,S[16]=z.id,S[17]=z.name,S[18]=z.ownerLogin,S[19]=x,S[20]=w,S[21]=_):_=S[21];let Y=_;S[22]!==W?(C=(0,u.G7)("copilot_agent_tasks_btn_code_view_lines")&&W,S[22]=W,S[23]=C):C=S[23];let G=C;S[24]===Symbol.for("react.memo_cache_sentinel")?(L=(0,u.G7)("copilot_mission_control_decoupled_mode"),S[24]=L):L=S[24];let X=L;S[25]!==M||S[26]!==$||S[27]!==Y||S[28]!==D||S[29]!==I||S[30]!==z||S[31]!==U||S[32]!==G?(E=void 0===I?null:(0,r.jsx)("div",{style:{alignSelf:"center",position:"absolute",lineHeight:"16px",height:"24px",width:"24px",zIndex:2,...I},children:(0,r.jsx)(c.Ay,{copilotAccessAllowed:M,messageReference:Y,id:$,showAgentTaskButton:G,currentRepo:z,currentReference:{path:D,range:U?{start:U.start.line,end:U.end.line}:void 0},decoupledModeEnabled:X})}),S[25]=M,S[26]=$,S[27]=Y,S[28]=D,S[29]=I,S[30]=z,S[31]=U,S[32]=G,S[33]=E):E=S[33];let q=E;if(S[34]!==q){let e=document.getElementById(b);N=e?(0,m.createPortal)(q,e):null,S[34]=q,S[35]=N}else N=S[35];return N});x.displayName="CopilotButton"},36899(e,t,n){n.d(t,{AG:()=>$,Ay:()=>k,Dp:()=>R});var r=n(74848),l=n(16522),i=n(69184),o=n(95173),a=n(51336),c=n(74208),s=n(31595),u=n(68541),d=n(23082),f=n(12191),m=n(99637),h=n(54242),p=n(53181),g=n(26316),v=n(88015),b=n(38621),y=n(67323),x=n(26108),w=n(18990),_=n(34164),C=n(96540),L=n(40961),E=n(61968),N=n(97136),S=n(22520);let j="highlighted-line-menu-container",R="highlighted-line-menu-first-option";function $(e){let t,n,i=(0,l.c)(3),{children:o}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("div",{id:j}),i[0]=t):t=i[0],i[1]!==o?(n=(0,r.jsxs)("div",{id:N.uU,className:"position-relative",children:[o,t]}),i[1]=o,i[2]=n):n=i[2],n}$.displayName="HighlightedLineMenuContainer";let A=C.memo(function(e){let t,n,$,A,k,O,B,I,T,D,M=(0,l.c)(46),{codeLineClassName:H,offset:U,lineData:z,onLineStickOrUnstick:P,onMenuClose:F,onCollapseToggle:W,openOnLoad:V,cursorRef:Y,rowBeginId:G,rowBeginNumber:X,rowEndId:q,rowEndNumber:K,ref:J}=e,Q=void 0!==V&&V,[Z,ee]=(0,C.useState)(null);M[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>({setAnchor:ee}),M[0]=t):t=M[0],(0,C.useImperativeHandle)(J,t);let et=C.useRef(null),{githubDevUrl:en}=(0,a.s)(),er=(0,s.l)(),el=(0,c.m)(),{modelsAccessAllowed:ei}=(0,o.w)(),eo=(0,u.z)(),ea=(0,h.t)(),[ec,es]=(0,C.useState)(Q?"hidden":"visible"),[eu,ed]=(0,C.useState)(void 0);M[1]!==Z||M[2]!==U?(n=()=>{let e=()=>{es("hidden"),requestAnimationFrame(()=>{ed((0,N.sZ)(Z,U)),es("visible")})};return e(),g.cg?.addEventListener("resize",e),()=>{g.cg?.removeEventListener("resize",e)}},$=[Z,U],M[1]=Z,M[2]=U,M[3]=n,M[4]=$):(n=M[3],$=M[4]),(0,C.useLayoutEffect)(n,$);let[ef,em]=C.useState(!1);M[5]!==Y||M[6]!==Q?(A=()=>{if(Q){Y&&ee(Y.current);let e=window.setTimeout(()=>{em(!0)},50);return()=>{window.clearTimeout(e)}}},M[5]=Y,M[6]=Q,M[7]=A):A=M[7];let eh=(0,C.useEffectEvent)(A);M[8]!==eh?(k=()=>eh(),M[8]=eh,M[9]=k):k=M[9],M[10]===Symbol.for("react.memo_cache_sentinel")?(O=[],M[10]=O):O=M[10],(0,C.useLayoutEffect)(k,O);let{newDiscussionPath:ep,newIssuePath:eg}=(0,E.Y_)(),{refSelectorShortcut:ev}=(0,d.wk)(),{createPermalink:eb,getUrl:ey}=(0,f.Z)();M[11]!==z||M[12]!==W||M[13]!==P||M[14]!==F?(B={lineData:z,onLineStickOrUnstick:P,onMenuClose:F,onCollapseToggle:W,setOpen:em},M[11]=z,M[12]=W,M[13]=P,M[14]=F,M[15]=B):B=M[15];let{setShouldBeOpen:ex,expandOrCollapseSection:ew,openUpRefSelector:e_}=(0,N.S9)(B),[eC]=(0,v.ok)(),eL="1"===eC.get("plain"),eE=`L${X}${G!==q?`-L${K}`:""}`,eN=eL?"plain=1":void 0;M[16]!==eb||M[17]!==eE||M[18]!==eN?(I=eb({absolute:!0,params:eN,hash:eE}),M[16]=eb,M[17]=eE,M[18]=eN,M[19]=I):I=M[19];let eS=I,ej=encodeURIComponent(eS);M[20]!==H||M[21]!==ej||M[22]!==ew||M[23]!==ey||M[24]!==en||M[25]!==el||M[26]!==z||M[27]!==eE||M[28]!==ei||M[29]!==ep||M[30]!==eg||M[31]!==ef||M[32]!==e_||M[33]!==er||M[34]!==eS||M[35]!==eu||M[36]!==eo||M[37]!==ev||M[38]!==ea||M[39]!==X||M[40]!==K||M[41]!==ex||M[42]!==ec?(T=void 0===eu?null:(0,r.jsxs)(y.W,{open:ef,onOpenChange:ex,children:[(0,r.jsx)(y.W.Anchor,{children:(0,r.jsx)(x.K,{className:(0,_.$)(H,"HighlightedLineMenu-module__highlightedLineMenuButton__hVBhI"),size:"small",icon:b.KebabHorizontalIcon,"aria-label":`Line ${X} options`,"data-testid":"highlighted-line-menu-button",style:{visibility:ec,...eu}})}),(0,r.jsx)(y.W.Overlay,{width:"small",children:(0,r.jsxs)(w.l,{"data-testid":"highlighted-line-menu",children:[X===K&&(0,r.jsx)(w.l.Item,{onClick:()=>{(0,S.kY)(`Copied line ${X}.`);let e=(0,N.zM)(g.XC?.getElementById(`LC${X}`)??null);e&&(0,m.D)(e),ex(!1)},onSelect:()=>{(0,S.kY)(`Copied line ${X}.`);let e=(0,N.zM)(g.XC?.getElementById(`LC${X}`)??null);e&&(0,m.D)(e),ex(!1)},ref:et,className:R,children:"Copy line"}),X!==K&&(0,r.jsx)(w.l.Item,{onClick:()=>{(0,S.kY)(`Copied lines ${X}-${K}.`);let e="";for(let t=X;t<=K;t++)e+=`${(0,N.zM)(g.XC?.getElementById(`LC${t}`)??null)}${t!==K?"\n":""}`;e&&(0,m.D)(e),ex(!1)},onSelect:()=>{(0,S.kY)(`Copied lines ${X}-${K}.`);let e="";for(let t=X;t<=K;t++)e+=`${(0,N.zM)(g.XC?.getElementById(`LC${t}`)??null)}${t!==K?"\n":""}`;e&&(0,m.D)(e),ex(!1)},className:R,children:"Copy lines"}),eS&&(0,r.jsx)(w.l.Item,{onClick:()=>{(0,S.kY)("Copied permalink."),(0,m.D)(eS),ex(!1)},onSelect:()=>{(0,S.kY)("Copied permalink."),(0,m.D)(eS),ex(!1)},children:"Copy permalink"}),(0,r.jsx)(w.l.LinkItem,{href:ey({action:"blame",hash:eE}),children:"View git blame"}),eg&&eS&&(0,r.jsx)(w.l.LinkItem,{href:`${eg}?permalink=${ej}`,children:"Reference in new issue"}),ep&&eS&&(0,r.jsx)(w.l.LinkItem,{href:`${ep}?permalink=${ej}`,children:"Reference in new discussion"}),en&&(0,r.jsx)(w.l.LinkItem,{href:en+g.cg?.location.pathname.substring(1),children:"View file in GitHub.dev"}),X===K&&z&&(0,r.jsxs)(w.l.Item,{onClick:ew,onSelect:ew,children:[z.ownedSection&&z.ownedSection.collapsed?"Expand":"Collapse"," current section"]}),(0,r.jsxs)(w.l.Item,{onClick:e_,onSelect:e_,children:["View file in different branch/tag",(0,r.jsx)(w.l.TrailingVisual,{children:(0,r.jsx)(i.E,{children:ev.text})})]}),el&&ei&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.W.Divider,{}),(0,r.jsxs)(w.l.LinkItem,{href:(0,p.D)({registry:"azure-openai",name:"gpt-4o",commit:eo.currentOid,filePath:er,repoOwner:ea.ownerLogin,repoName:ea.name,beginLine:X,endLine:K}),target:"_blank",children:[(0,r.jsx)("p",{className:"mb-1",children:"Open as prompt in GitHub Models"}),(0,r.jsx)("span",{className:"HighlightedLineMenu-module__aiDisclaimer__V9Fv5",children:"This tool uses AI to process your code"})]})]})]})})]}),M[20]=H,M[21]=ej,M[22]=ew,M[23]=ey,M[24]=en,M[25]=el,M[26]=z,M[27]=eE,M[28]=ei,M[29]=ep,M[30]=eg,M[31]=ef,M[32]=e_,M[33]=er,M[34]=eS,M[35]=eu,M[36]=eo,M[37]=ev,M[38]=ea,M[39]=X,M[40]=K,M[41]=ex,M[42]=ec,M[43]=T):T=M[43];let eR=T;if(M[44]!==eR){let e=g.XC?.getElementById(j);D=e?(0,L.createPortal)(eR,e):null,M[44]=eR,M[45]=D}else D=M[45];return D});A.displayName="HighlightedLineMenu";let k=A},90224(e,t,n){n.d(t,{p:()=>c,U:()=>a});var r=n(74848),l=n(88134),i=n(34164);let o="HighlightedOverlay-module__hiddenText__yijzZ";function a({symbols:e,focusedSymbol:t,lineNumber:n,style:s,isNotUsingWhitespace:u,className:d}){let f=0,m=e.length>0?e[0].bodyText:"",h=`overlay-${n}-${s?"blob":"panel"}-${m}`,p=(0,l.ud)().codeWrappingOption,g=e.length>0&&!u?e[0].leadingWhitespace??0:0;return(0,r.jsxs)("span",{className:(0,i.$)("HighlightedOverlay-module__overlayWrapper__X2ab9",p.enabled?"HighlightedOverlay-module__overlayWrapperWrap__UNKrl":"HighlightedOverlay-module__overlayWrapperNoWrap__utsVG",d),style:s,children:[e.map(e=>{let n=e===t,l=(0,r.jsxs)("span",{children:[(0,r.jsx)("span",{className:o,children:m.substring(f,e.ident.start.column+g)}),(0,r.jsx)("span",{className:(0,i.$)("HighlightedOverlay-module__highlightBackground__POs8P",n?"HighlightedOverlay-module__focusedHighlight__ffA7o":"HighlightedOverlay-module__unfocusedHighlight__ti2EU"),children:(0,r.jsx)("span",{className:n?void 0:o,id:c(e.lineNumber,e.ident.start.column+g),children:m.substring(e.ident.start.column+g,e.ident.end.column+g)})})]},`symbol-${e.ident.start.line}-${e.ident.start.column+g}`);return f=e.ident.end.column+g,l}),(0,r.jsx)("span",{className:o,children:m.substring(f)})]},h)}function c(e,t){return`match-${e}-${t}`}a.displayName="HighlightedOverlay"},18955(e,t,n){n.d(t,{$Q:()=>b,PL:()=>p,TX:()=>y,Zj:()=>h});var r=n(74848),l=n(16522),i=n(54242),o=n(73537),a=n(23666),c=n(97286),s=n(78597),u=n(96540),d=n(46513);let f={stylingDirectives:null},m=u.createContext(f);function h(e){let t,n,i,o=(0,l.c)(6);return o[0]!==e?({children:t,...n}=e,o[0]=e,o[1]=t,o[2]=n):(t=o[1],n=o[2]),o[3]!==t||o[4]!==n?(i=(0,r.jsx)(m,{value:n,children:t}),o[3]=t,o[4]=n,o[5]=i):i=o[5],i}function p(){return u.use(m)}function g(e){return Array.isArray(e.stylingDirectives)}async function v(e){if(!e)return f;let t=await (0,s.lS)(e);if(t.ok){let e=await t.json();if(e&&g(e))return e}return f}function b(e,t,n,r){let s,u,m,h,p,g=(0,l.c)(18);g[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.G7)("react_blob_overlay"),g[0]=s):s=g[0];let b=s,y=(0,i.t)();g[1]!==n||g[2]!==t||g[3]!==e||g[4]!==y?(u=e&&t&&!n?(0,a.rzN)({repo:y,commitish:e.name,path:t}):null,g[1]=n,g[2]=t,g[3]=e,g[4]=y,g[5]=u):u=g[5];let x=u,w=!!x&&r<=d.OL&&b,_=e?.name;g[6]!==t||g[7]!==y.name||g[8]!==y.ownerLogin||g[9]!==_||g[10]!==x?(m=["deferredAST",y.ownerLogin,y.name,_,t,x],g[6]=t,g[7]=y.name,g[8]=y.ownerLogin,g[9]=_,g[10]=x,g[11]=m):m=g[11],g[12]!==x?(h=()=>v(x),g[12]=x,g[13]=h):h=g[13],g[14]!==w||g[15]!==m||g[16]!==h?(p={queryKey:m,queryFn:h,enabled:w,placeholderData:f},g[14]=w,g[15]=m,g[16]=h,g[17]=p):p=g[17];let{data:C}=(0,c.I)(p);return w?C??f:f}function y(e,t,n,r,l){let[i,c]=(0,u.useState)(f),m=(0,o.G7)("react_blob_overlay"),h=t&&!r?(0,a.rzN)({repo:e,commitish:t.name,path:n}):null;return(0,u.useEffect)(()=>{if(!h)return;if(l>d.OL||!m)return void c(f);let e=!1;return(async()=>{c(f);let t=await (0,s.lS)(h);if(!e)try{if(t.ok){let e=await t.json();e&&g(e)&&c(e)}else c(f)}catch{c(f)}})(),function(){e=!0}},[h,l,m]),i}m.displayName="DeferredASTContext",h.displayName="DeferredASTProvider"},61968(e,t,n){n.d(t,{U6:()=>f,Y_:()=>d,mA:()=>c,mD:()=>u});var r=n(74848),l=n(16522),i=n(23666),o=n(78597),a=n(96540);let c={showLicenseMeta:!1,license:null,codeownerInfo:{codeownerPath:null,ownedByCurrentUser:null,ownersForFile:null,ruleForPathLine:null},newDiscussionPath:null,newIssuePath:null},s=a.createContext(c);function u(e){let t,n,i,o=(0,l.c)(6);return o[0]!==e?({children:t,...n}=e,o[0]=e,o[1]=t,o[2]=n):(t=o[1],n=o[2]),o[3]!==t||o[4]!==n?(i=(0,r.jsx)(s,{value:n,children:t}),o[3]=t,o[4]=n,o[5]=i):i=o[5],i}function d(){return a.use(s)}function f(e,t,n,r){let[l,s]=(0,a.useState)(c),u=t&&!r?(0,i.ALm)({repo:e,commitish:t.name,path:n}):null;return(0,a.useEffect)(()=>{if(!u)return;let e=!1;return(async()=>{s(c);let t=await (0,o.lS)(u);if(!e)try{if(t.ok){let e=await t.json();e&&"boolean"==typeof e.showLicenseMeta&&"object"==typeof e.codeownerInfo&&s(e)}else s(c)}catch{s(c)}})(),function(){e=!0}},[u]),l}s.displayName="DeferredMetadataContext",u.displayName="DeferredMetadataProvider"},90441(e,t,n){n.d(t,{O:()=>c,k:()=>a});var r=n(74848),l=n(16522),i=n(96540);let o=i.createContext(void 0);function a(e){let t,n=(0,l.c)(3),{blame:i,children:a}=e;return n[0]!==i||n[1]!==a?(t=(0,r.jsxs)(o,{value:i,children:[" ",a," "]}),n[0]=i,n[1]=a,n[2]=t):t=n[2],t}function c(){return i.use(o)}o.displayName="CurrentBlameContext",a.displayName="CurrentBlameProvider"},77879(e,t,n){n.d(t,{A:()=>c,s:()=>a});var r=n(74848),l=n(16522),i=n(96540);let o=i.createContext({});function a(e){let t,n=(0,l.c)(3),{blob:i,children:a}=e;return n[0]!==i||n[1]!==a?(t=(0,r.jsxs)(o,{value:i,children:[" ",a," "]}),n[0]=i,n[1]=a,n[2]=t):t=n[2],t}function c(){return i.use(o)}o.displayName="CurrentBlobContext",a.displayName="CurrentBlobProvider"},98667(e,t,n){n.d(t,{EN:()=>s,Px:()=>d,YP:()=>u,pm:()=>f});var r=n(74848),l=n(16522),i=n(96540),o=n(90441),a=n(77879);let c=i.createContext(null);function s(e){let t,n=(0,l.c)(3),{children:s}=e,u=(()=>{let e=(0,l.c)(2),t=(0,a.A)(),n=(0,o.O)(),[r,c]=i.useState(m),[s,u]=i.useState(t),[d,f]=i.useState(n);if(t!==s||n!==d){let r;e[0]!==n?(r=n?null:new Map,e[0]=n,e[1]=r):r=e[1];let l=r;return c(l),u(t),f(n),l}return r})();return n[0]!==s||n[1]!==u?(t=(0,r.jsxs)(c,{value:u,children:[" ",s," "]}),n[0]=s,n[1]=u,n[2]=t):t=n[2],t}function u(){return i.use(c)}function d(){let e,t=(0,l.c)(2),n=i.use(c);return t[0]!==n?(e=e=>n?.get(e),t[0]=n,t[1]=e):e=t[1],e}function f(){let e,t=(0,l.c)(2),n=i.use(c);return t[0]!==n?(e=(e,t)=>{n&&(n.has(e)?n.get(e)?.push(t):n.set(e,[t]))},t[0]=n,t[1]=e):e=t[1],e}function m(){return new Map}c.displayName="CurrentLineRefMapContext",s.displayName="CurrentLineRefMapProvider"},17430(e,t,n){n.d(t,{y:()=>c});var r=n(7231),l=n(99637),i=n(96540),o=n(81634),a=n(77879);function c(){let{sendRepoClickEvent:e}=(0,r.T)(),{rawBlobUrl:t}=(0,a.A)(),n=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{n.current=navigator.userAgent.toLowerCase().indexOf("firefox")>-1},[]),(0,i.useCallback)(async()=>{e("BLOB_RAW_DROPDOWN.COPY");try{let e=(0,o.Ix)(t);if((0,o.j5)()&&navigator&&navigator.clipboard&&"write"in navigator.clipboard&&!n.current)await navigator.clipboard.write([new ClipboardItem({"text/plain":e})]);else{let t=await e;if(!t)return o.T9.Error;await (0,l.D)(await t.text())}}catch{return o.T9.Error}return o.T9.Success},[n,e,t])}},87763(e,t,n){n.d(t,{o:()=>c});var r=n(16522),l=n(70170),i=n(88015),o=n(88134),a=n(96540);function c(e,t){let n,c,s=(0,r.c)(9),u=void 0===t?20:t,[d,f]=(0,a.useState)(u),m=(0,a.useRef)(u),h=(0,o.ud)().codeWrappingOption,p=(0,i.zy)();return s[0]!==u||s[1]!==e||s[2]!==h.enabled?(n=()=>{let t=document.getElementById("file-name-id-wide");if(!t)return;let n=new ResizeObserver((0,l.s)(()=>{let t=document.getElementsByClassName(e)[0]?.firstChild?.getBoundingClientRect().height??u;t>100&&(t=document.getElementsByClassName(e)[0]?.firstChild?.firstChild?.getBoundingClientRect().height),0===t||t===m.current||h.enabled||(f(t),m.current=t)}));return n.observe(t),()=>n.disconnect()},s[0]=u,s[1]=e,s[2]=h.enabled,s[3]=n):n=s[3],s[4]!==u||s[5]!==e||s[6]!==p.key||s[7]!==h.enabled?(c=[p.key,h.enabled,e,u],s[4]=u,s[5]=e,s[6]=p.key,s[7]=h.enabled,s[8]=c):c=s[8],(0,a.useLayoutEffect)(n,c),d}},79250(e,t,n){n.d(t,{DC:()=>$,Jo:()=>A,M1:()=>B,M_:()=>y,Ov:()=>k,QM:()=>b,aM:()=>j,cH:()=>x,di:()=>w,fY:()=>O,ue:()=>R});var r=n(16522),l=n(62269),i=n(13589),o=n(13865),a=n(88015),c=n(19519),s=n(5063),u=n(88134),d=n(15393),f=n(96540),m=n(18955),h=n(22520),p=n(90441),g=n(87763),v=n(38841);let b=7.2293,y=92,x=92,w=70;function _(e,t){let n=0,r=0,l=0,i=0,o=0,a=0,c=t.length-1;for(;a<=c;){let s=Math.floor((a+c)/2);if(l=t[s]+1,i=s>0?t[s-1]+1:0,o=s=i&&e=l&&e=o&&(a=s+1)}return{line:n,offset:r}}let C=new i.Lj(1),L=new i.Lj(0),E=new i.Lj(1),N=new i.Lj(0),S=new i.Lj(!1);function j(){return(0,o.HN)(C)}function R(){return(0,o.HN)(E)}function $(){return(0,o.HN)(S)}function A(){let e,t=(0,r.c)(1),n=(0,f.useRef)(null);t[0]===Symbol.for("react.memo_cache_sentinel")?(e=function(){n.current={start:{line:C.value,column:L.value+1},end:{line:E.value,column:N.value+1}}},t[0]=e):e=t[0];let l=e;return(0,o.Rs)(C,l),(0,o.Rs)(L,l),(0,o.Rs)(E,l),(0,o.Rs)(N,l),n}function k(e){S.value=e}function O(e){let t=(0,u.ud)().codeWrappingOption.enabled,n=!!(0,p.O)(),{isServer:r}=(0,c.V)();return!t&&!n&&!e&&!r}function B(e,t,n,i,o,c,u,p,j,R,$,A){let k,O,B,I,T,D,M,H,U,z,P,F,W,V,Y,G,X,q,K,J,Q,Z,ee,et,en,er,el,ei,eo,ea,ec,es=(0,r.c)(105),eu=(0,f.useRef)(0),ed=(0,f.useRef)(0),ef=(0,f.useRef)(0),em=(0,f.useRef)(0),eh=(0,f.useRef)(0),ep=(0,f.useRef)(0),eg=(0,f.useRef)(null),ev=(0,f.useRef)(0),eb=(0,f.useRef)(0),ey=(0,f.useRef)(15),ex=(0,f.useRef)(0),ew=(0,f.useRef)(0),e_=u?x:y;es[0]===Symbol.for("react.memo_cache_sentinel")?(k=["windows"],es[0]=k):k=es[0];let eC=(0,d.X)(k)?6.6:b,eL=(0,g.o)("react-line-numbers"),{stylingDirectives:eE}=(0,m.PL)();if(es[1]!==o){O=[];for(let e=0;eo.length||!o[e])return n;let r=o[e].rawText;return r&&(t>r.length?(n=r.length,eS((0,h.m)(n,r,R),n)):n=r.length&&(n=r.length,eS((0,h.m)(n,r,R),n))),n},es[17]=o,es[18]=eS,es[19]=R,es[20]=z):z=es[20];let eB=z;es[21]!==e$||es[22]!==o||es[23]!==t||es[24]!==eE?(P=function(){let e=o[eh.current];if(!e)return;let{rawText:n}=e,r=eE?eE[e.lineNumber-1]:e.stylingDirectivesLine;if(!n||!r)return;let l=(0,s.M)(r),i=null;for(let e of l)if(!(e.s>ep.current)&&!(e.e=t+r?eg.current.scrollBy(l-t-r+e,0):l<=t&&eg.current.scrollBy(l-t-r,0)}},es[28]=eC,es[29]=e_,es[30]=W):W=es[30];let eD=W;es[31]!==eC||es[32]!==e$||es[33]!==eL||es[34]!==o.length||es[35]!==e_?(V=function(){let e=ek(),t=ed.current,n=eu.current;"end"===e&&(t=em.current,n=ef.current);let r=Math.min(e$(n+5),o.length),l=Math.max(e$(n-5),1),i=document.documentElement.clientHeight,a=document.documentElement.clientWidth,c=(0,h.ap)(r),s=(0,h.ap)(l),u=c?.getBoundingClientRect(),d=s?.getBoundingClientRect(),f=!!u&&u.top>=0&&u.left>=0&&u.bottom<=i,m=!!d&&d.top>=0&&d.left>=0&&d.bottom<=i;cancelAnimationFrame(ew.current),ew.current=requestAnimationFrame(()=>{!f&&(null===c?window.scrollTo(0,n*eL):u.y<0||u.y>i?(c.scrollIntoView({block:"center"}),window.scrollBy(-300,0)):window.scrollBy(0,100),ai?(s.scrollIntoView({block:"center"}),window.scrollBy(-300,0)):window.scrollBy(0,-200)})},es[31]=eC,es[32]=e$,es[33]=eL,es[34]=o.length,es[35]=e_,es[36]=V):V=es[36];let eM=V;es[37]!==eO||es[38]!==eD||es[39]!==eM?(Y=function(e){eg.current&&(eM(),eD(e)),eO()},es[37]=eO,es[38]=eD,es[39]=eM,es[40]=Y):Y=es[40];let eH=Y;es[41]!==eB||es[42]!==eL||es[43]!==o.length||es[44]!==ej||es[45]!==eH||es[46]!==eA?(G=function(){eA();let e=eu.current,t=ed.current;e+ey.current>o.length?e=o.length-1:e+=ey.current,t=eB(e,t),eu.current=e,ed.current=t,eR(),ej(e*eL,e),eH(w)},es[41]=eB,es[42]=eL,es[43]=o.length,es[44]=ej,es[45]=eH,es[46]=eA,es[47]=G):G=es[47];let eU=G;es[48]!==eB||es[49]!==eL||es[50]!==ej||es[51]!==eH||es[52]!==eA?(X=function(){eA();let e=eu.current,t=ed.current;e{let t=C.value!==E.value,n={start:{line:C.value,column:t?L.value+1:null},end:{line:E.value,column:t?N.value+1:null}},r={anchorPrefix:"L",blobRange:{start:n.start,end:n.end}},i=(0,l.JB)(r);window.location.hash=i,p?.(e)},es[56]=p,es[57]=K):K=es[57];let eF=K,{hash:eW}=(0,a.zy)();es[58]!==eL?(J=()=>{let e=document.documentElement.clientHeight;ey.current=Math.min(Math.max(Math.round((e-200>300?e-200:300)/eL),1),100)},Q=[eL],es[58]=eL,es[59]=J,es[60]=Q):(J=es[59],Q=es[60]),(0,f.useEffect)(J,Q),es[61]!==$||es[62]!==eU||es[63]!==ez?(Z=()=>{$&&""!==$&&($.includes("PageUp")?ez():$.includes("PageDown")&&eU())},es[61]=$,es[62]=eU,es[63]=ez,es[64]=Z):Z=es[64];let eV=(0,f.useEffectEvent)(Z);es[65]!==eV?(ee=()=>{eV()},es[65]=eV,es[66]=ee):ee=es[66],es[67]!==$?(et=[$],es[67]=$,es[68]=et):et=es[68],(0,f.useEffect)(ee,et),es[69]!==eN||es[70]!==eM||es[71]!==eL||es[72]!==o||es[73]!==eI||es[74]!==eS||es[75]!==ej||es[76]!==eT||es[77]!==R||es[78]!==A?(en=()=>{if(!A||A.start<0&&A.end<0||eb.current===A.start&&ex.current===A.end)return;let e=_(A.start,eN),t=_(A.end,eN);(eb.current!==A.start||ex.current===A.end)&&(A.keyboard||A.displayStart)?(eS((0,h.m)(e.offset,o[e.line]?.rawText??"",R),e.offset),ev.current=e.offset,ej(e.line*eL,e.line),eT(e.line,t.line,e.offset,t.offset,!0)):(eS((0,h.m)(t.offset,o[t.line]?.rawText??"",R),t.offset),ev.current=t.offset,ej(t.line*eL,t.line),eT(e.line,t.line,e.offset,t.offset,!1)),ex.current=A.end,eb.current=A.start,A.end!==A.start||A.keyboard||(S.value=!1,eI()),eh.current<=5&&A.keyboard&&eM()},es[69]=eN,es[70]=eM,es[71]=eL,es[72]=o,es[73]=eI,es[74]=eS,es[75]=ej,es[76]=eT,es[77]=R,es[78]=A,es[79]=en):en=es[79];let eY=(0,f.useEffectEvent)(en);es[80]!==eY?(er=()=>{eY()},es[80]=eY,es[81]=er):er=es[81],es[82]!==o||es[83]!==R||es[84]!==A?(el=[o,R,A],es[82]=o,es[83]=R,es[84]=A,es[85]=el):el=es[85],(0,f.useEffect)(er,el),es[86]!==eW||es[87]!==eL||es[88]!==o.length||es[89]!==eS||es[90]!==ej||es[91]!==eH?(ei=()=>{let e=(0,l.$c)(eW);if(!e.blobRange?.start?.line||e.blobRange.start.line>o.length)return;let t=e.blobRange.start.line-1;eu.current=t,C.value=t,L.value=0,E.value=t,N.value=0,ed.current=0,ef.current=t,em.current=0,ev.current=0,eS(ed.current,ed.current),ej(eu.current*eL,eu.current),eH(w)},es[86]=eW,es[87]=eL,es[88]=o.length,es[89]=eS,es[90]=ej,es[91]=eH,es[92]=ei):ei=es[92];let eG=(0,f.useEffectEvent)(ei);return es[93]!==eG?(eo=()=>{eG()},es[93]=eG,es[94]=eo):eo=es[94],es[95]!==eW||es[96]!==o?(ea=[eW,o],es[95]=eW,es[96]=o,es[97]=ea):ea=es[97],(0,f.useEffect)(eo,ea),es[98]!==eO||es[99]!==e$||es[100]!==eP||es[101]!==eU||es[102]!==ez||es[103]!==eF?(ec={onEnter:eP,updateUrlForLineNumber:eF,onPageDown:eU,onPageUp:ez,currentStartLine:eu,currentStartChar:ed,currentEndLine:ef,currentEndChar:em,determineAndSetTextAreaCursorPosition:eO,getCorrectLineNumberWithCollapsedSections:e$},es[98]=eO,es[99]=e$,es[100]=eP,es[101]=eU,es[102]=ez,es[103]=eF,es[104]=ec):ec=es[104],ec}},38841(e,t,n){n.d(t,{DE:()=>c,FO:()=>a,Gp:()=>o});var r=n(16522),l=n(96540);let i="react_blob_view_focus_symbol_pane";function o(e){let t,n,o=(0,r.c)(3),a=(0,l.useEffectEvent)(e);o[0]!==a?(t=()=>{let e=e=>{a(e.detail?.focusSymbolSearch||!1)};return window.addEventListener(i,e),()=>{window.removeEventListener(i,e)}},o[0]=a,o[1]=t):t=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],o[2]=n):n=o[2],(0,l.useEffect)(t,n)}function a(){window.dispatchEvent(new CustomEvent(i,{detail:{focusSymbolSearch:!1}}))}function c(){window.dispatchEvent(new CustomEvent(i,{detail:{focusSymbolSearch:!0}}))}},97136(e,t,n){n.d(t,{S9:()=>c,sZ:()=>s,u9:()=>a,uU:()=>o,zM:()=>function e(t){let n=t?.textContent??"";if(""!==n)return n;if(t){let r=t.childNodes;for(let t=0;t{if(!e)return;let{lineNumber:n,ownedSection:r}=e;r&&(r.collapsed=!1),o?.(),(0,i.ny)(n),t?.(e,!0)},[e,o,t]),d=(0,l.useCallback)(()=>{if(!e)return;let{lineNumber:t,ownedSection:n}=e;n&&(n.collapsed=!0),o?.(),(0,i.E8)(t)},[e,o]);return{setShouldBeOpen:s,expandOrCollapseSection:function(){if(!e)return;let{ownedSection:t}=e;t&&(t.collapsed?(u(),(0,i.kY)("Code section expanded")):(d(),(0,i.kY)("Code section collapsed"))),s(!1,!0)},openUpRefSelector:function(){let e=document.getElementsByClassName("ref-selector-class");e&&1===e.length?(e[0]?.click(),(0,r.i)("ref selector opened")):e&&2===e.length&&(e[1]?.click(),(0,r.i)("ref selector opened")),s(!1)}}}function s(e,t={x:0,y:0}){let n=document.getElementById(o);if(!e||!n)return{display:"none"};let{top:r,left:l,height:i}=e.getBoundingClientRect(),{top:c,left:u}=n.getBoundingClientRect();return{top:`${r-c-(a-i)/2+t.y}px`,left:`${Math.max(l-u+t.x,0)-13}px`}}},73342(e,t,n){n.d(t,{B:()=>d,z:()=>u});var r=n(16522),l=n(19519),i=n(96540),o=n(98667);let a=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function c(e,t,n,r){return new IntersectionObserver(e=>{for(let t of e){let e=n.get(t.target);if(!e||"start"!==e.type)continue;let{currentY:l,currentRatio:i}=function(e,t,n,r,l,i,o){let a=r.getBoundingClientRect(),c=a.y,s=window.innerHeight-a.bottom>0,u=a.bottom>0,d=a.top<150&&a.top>-300,f=0===a.bottom&&0===a.top&&0===a.height&&0===a.width&&0===a.x&&0===a.y;return!e.ownedSection||e.ownedSection?.collapsed||(c<=t&&(s&&u||d)&&!f?l>n&&i||d&&o(e,!1):c>t&&i&&(l{for(let l of e){let e=t.get(l.target);if(!e||"end"!==e.type)continue;let{currentY:i,currentRatio:o}=function(e,t,n,r,l,i,o,a){let c=n.getBoundingClientRect(),s=c.y,u=l?i():void 0,d=window.innerHeight-c.bottom>0,f=c.bottom>0,m=c.top<150,h=d&&f,p=window.innerHeight-c.bottom>150&&window.innerHeight>300;for(let n of u||[])n&&h&&(st&&o||a(n,!0):s>e&&o&&(rn.current(e.lineNumber),l.isIntersecting,r.current);e.previousY=i,e.previousRatio=o}},{root:null,rootMargin:`-${e}px 0px 0px 0px`,threshold:0})}function u(e,t,n){let a,u,d,f,m,h,p=(0,r.c)(14),g=(0,l.V)().isServer;p[0]===Symbol.for("react.memo_cache_sentinel")?(a=new Map,p[0]=a):a=p[0];let v=(0,i.useRef)(a);p[1]===Symbol.for("react.memo_cache_sentinel")?(u=new Map,p[1]=u):u=p[1];let b=(0,i.useRef)(u),y=(0,i.useRef)(null),x=(0,i.useRef)(n),w=(0,o.pm)(),_=(0,i.useRef)(w),C=(0,o.Px)(),L=(0,i.useRef)(C),E=(0,i.useRef)(null);if(null==E.current){let e;p[2]===Symbol.for("react.memo_cache_sentinel")?(e=new Set,p[2]=e):e=p[2],E.current=e}let N=(0,i.useRef)(t),S=(0,i.useRef)(!1);p[3]!==w||p[4]!==C||p[5]!==n||p[6]!==t?(d=()=>{x.current=n,L.current=C,N.current=t,w!==_.current&&(E.current=new Set,_.current=w)},p[3]=w,p[4]=C,p[5]=n,p[6]=t,p[7]=d):d=p[7],(0,i.useLayoutEffect)(d),p[8]!==e||p[9]!==g||p[10]!==t?(f=()=>{if(!e||g)return;for(let e of(y.current?.disconnect(),b.current.values()))e.disconnect();let n=v.current;for(let e of n.values())e.previousY=0,e.previousRatio=1;let r=s(t,n,L,x);y.current=r;let l=new Map;for(let e of n.values())"start"!==e.type||l.has(e.numParents)||l.set(e.numParents,c(t,e.numParents,n,x));for(let[e,t]of(b.current=l,n))"start"===t.type?l.get(t.numParents)?.observe(e):r.observe(e);return S.current=!0,()=>{for(let e of(r.disconnect(),l.values()))e.disconnect()}},m=[e,g,t],p[8]=e,p[9]=g,p[10]=t,p[11]=f,p[12]=m):(f=p[11],m=p[12]),(0,i.useLayoutEffect)(f,m);e:{let e;if(g){h=void 0;break e}p[13]===Symbol.for("react.memo_cache_sentinel")?(e={observe(e,t,n){let{isStartLine:r,isEndLine:l,lineNumber:i,ownedSection:o}=t;if(r){if(v.current.set(e,{type:"start",codeLineData:t,numParents:n,previousY:0,previousRatio:1}),o&&i&&!E.current?.has(i)&&(_.current(o.endLine,{lineNumber:i}),E.current?.add(i)),S.current){let t=b.current.get(n);t||(t=c(N.current,n,v.current,x),b.current.set(n,t)),t.observe(e)}}else l&&i&&(v.current.set(e,{type:"end",lineNumber:i,previousY:0,previousRatio:1}),S.current&&(y.current||(y.current=s(N.current,v.current,L,x)),y.current.observe(e)))},unobserve(e){let t=v.current.get(e);t&&("start"===t.type?b.current.get(t.numParents)?.unobserve(e):y.current?.unobserve(e),v.current.delete(e))}},p[13]=e):e=p[13],h=e}let j=h;if(e&&!g)return j}function d(e,t,n){let l,o,a,c=(0,r.c)(6),s=(0,i.useRef)(null);c[0]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{s.current=e},c[0]=l):l=c[0];let u=l;return c[1]!==t||c[2]!==n||c[3]!==e?(o=()=>{let r=s.current;if(!r||!e)return;let{isStartLine:l,isEndLine:i}=t;if(l||i)return e.observe(r,t,n),()=>{e.unobserve(r)}},a=[t,n,e],c[1]=t,c[2]=n,c[3]=e,c[4]=o,c[5]=a):(o=c[4],a=c[5]),(0,i.useLayoutEffect)(o,a),u}},81634(e,t,n){n.d(t,{Ix:()=>s,T9:()=>a,j5:()=>c,t0:()=>u});var r=n(74848),l=n(38621),i=n(7478),o=n(10095);let a={Idle:"Idle",Fetching:"Fetching",Success:"Success",Error:"Error"};function c(){let e="u">typeof ClipboardItem;return"clipboard"in navigator&&e}async function s(e){let t=await fetch(e,{method:"get"});if(!t.ok)throw Error(`Failed to fetch ${e}: ${t.status} ${t.statusText}`);return new Blob([(await t.text()).replace(/\r?\n$/,"")],{type:"text/plain"})}function u(e){let t,n;switch(e){case a.Success:t="Copied!",n=(0,r.jsx)(o.A,{icon:l.CheckIcon});break;case a.Fetching:t="Copying",n=(0,r.jsx)(i.A,{size:"small"});break;case a.Error:t="Something went wrong. Try again.",n=(0,r.jsx)(o.A,{icon:l.AlertIcon});break;default:t="Copy",n=(0,r.jsx)(o.A,{icon:l.CopyIcon})}return{ariaLabel:t,content:n}}},19490(e,t,n){n.d(t,{A:()=>a});var r=n(74848),l=n(23082),i=n(96540),o=n(17430);function a({containerRef:e,shouldNotOverrideCopy:t}){let{selectAllShortcut:n}=(0,l.wk)(),c=(0,i.useRef)(!1),s=(0,o.y)(),u=(0,i.useCallback)(()=>{c.current=!1,document.removeEventListener("selectionchange",u)},[]);(0,i.useEffect)(()=>()=>document.removeEventListener("selectionchange",u),[u]);let d=(0,i.useCallback)(t=>{var n;let r,l;e&&e.current&&(n=e.current,(r=document.createRange()).selectNode(n),l=window.getSelection(),l?.removeAllRanges(),l?.addRange(r),t.preventDefault(),c.current=!0,setTimeout(()=>document.addEventListener("selectionchange",u),0))},[e,u]),f=(0,i.useCallback)(e=>{c.current&&(e.preventDefault(),s())},[s]);return(0,i.useEffect)(()=>{if(!t)return window.addEventListener("copy",f),()=>window.removeEventListener("copy",f)},[f,t]),(0,r.jsx)("button",{hidden:!0,"data-hotkey":n.hotkey,onClick:d})}a.displayName="SelectAllShortcutButton"},22520(e,t,n){n.d(t,{$0:()=>w,Bm:()=>q,Bn:()=>P,CZ:()=>W,E8:()=>Y,Gb:()=>L,N9:()=>en,Wb:()=>_,X5:()=>G,a2:()=>y,ap:()=>ee,bP:()=>C,hO:()=>E,jH:()=>Q,kY:()=>er,m:()=>J,ny:()=>V,si:()=>Z,t1:()=>et,um:()=>K,wQ:()=>v,zS:()=>b});var r=n(16522),l=n(62269),i=n(13589),o=n(13865),a=n(26316),c=n(96540),s=n(90224),u=n(79250),d=n(24987);let f=/firefox\/(\d+(\.\d+)?)/,m=/Chrom(e|ium)\/([0-9]+)\./,h=/\n|\s|[();&.=,]/,p=/\n|\s|[();&.=",]/,g="collapse-show-rows-styles",v="read-only-cursor-text-area";function b(e,t){return document.querySelector(`#${e}LC${t}`)}function y(e,t){return document.querySelector(`main #${(0,s.p)(e,t)}`)}let x=new i.yy;function w(e){let t,n=(0,r.c)(2);return n[0]!==e?(t=x.has(e),n[0]=e,n[1]=t):t=n[1],(0,o.HN)(t)}function _(e){return(0,o.Rs)(x,e)}function C(){return(0,o.tQ)(x)}function L(){let e=E(),t=(0,c.useSyncExternalStore)(U,H,M)??0,n=(0,c.useSyncExternalStore)(k,A,$),r=(0,c.useSyncExternalStore)(T,I,B)??0;return(0,u.fY)()&&(e||n)&&(t>=124||r>=124)}function E(){return(0,c.useSyncExternalStore)(j,S,N)}function N(){return!1}function S(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}function j(){return R}function R(){}function $(){return!1}function A(){return navigator.userAgent.toLowerCase().indexOf("chrome")>-1||navigator.userAgent.toLowerCase().indexOf("chromium")>-1||navigator.userAgent.toLowerCase().indexOf("edge")>-1}function k(){return O}function O(){}function B(){return null}function I(){let e;return(e=navigator.userAgent.match(m))&&e.length>=3&&e[2]?parseFloat(e[2]):null}function T(){return D}function D(){}function M(){return null}function H(){let e;return(e=navigator.userAgent.toLowerCase().match(f))&&e.length>=2&&e[1]?parseFloat(e[1]):null}function U(){return z}function z(){}function P(e,t,n,r){if(!r)return"";let l="";for(let t=0;te.lineNumber&&r(e,!1)}}function V(e){X(e,!1),x.delete(e)}function Y(e){X(e,!0),x.add(e)}function G(){let e=document.getElementById(g);e&&(e.textContent=""),x.clear()}function X(e,t){let n=`.${F(e-1)} { display: none; } `;if(document.getElementById(g)){let e=document.getElementById(g);if(t)e.textContent+=n;else{let t=e?.textContent||"";e.textContent=t=t.replace(n,"")}}else{let e=document.createElement("style");e.id=g,e.textContent=n,document.head.appendChild(e)}}function q(e,t){if(e.length<3)return!1;let n=t.split(" "),r=n.includes("pl-ent")?h:p;return!(e.match(r)||n.includes("pl-c")||n.includes("pl-k"))}function K(e,t){let n=null,r=null,l=null,i=t;if(e.parentElement?.classList.contains("react-file-line"))n=e.parentElement.getAttribute("data-line-number"),r=e.parentElement,l=e;else if(e.parentElement?.parentElement?.classList.contains("react-file-line"))n=e.parentElement.parentElement.getAttribute("data-line-number"),r=e.parentElement.parentElement,l=e.parentNode;else{if(!e.parentElement?.firstElementChild?.classList.contains("react-file-line")||!(n=e.parentElement.firstElementChild.getAttribute("data-line-number"))||!parseInt(n,10))return;return{line:parseInt(n,10)-1,column:null}}if(n&&parseInt(n,10)){for(let e of r.childNodes){if(e===l)break;i+=e.textContent?.length||0}return{line:parseInt(n,10),column:0!==i?i+1:null}}}function J(e,t,n){let r,l;return r=t.slice(0,e),(l=(0,d.J)(r,n))>0||0===e?Math.round(l):0!==e?e*u.QM:0}function Q(e,t,n,r,i){if(e?.start.line===n&&e?.start.column!==null){let o=(0,l.Py)({start:e.start,end:{line:e.start.line,column:e.end.line===n?e.end.column:null}},()=>t);if(o&&o.startContainer.parentElement){let r=o.getBoundingClientRect(),l=t.getBoundingClientRect();return{offset:r.x-l.x+10,width:e.end.line===n?r.width:void 0}}if(i){let t=J(e.start.column-1,i,r),l=e.end.line===n?e.end.column:null;return{offset:t+20,width:e.end.line===n?J(l?l-1:i.length-1,i,r)-t:void 0}}}else if(e?.end.line===n&&e?.end.column!==null){let n=(0,l.Py)({start:{line:e.end.line,column:0},end:e.end},()=>t);return n?{width:n.getBoundingClientRect().width+10}:{width:J(e.end.column-1,i,r)+10}}}function Z(e){var t=b("",e);if(!t)return!1;let n=t.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)}function ee(e){return b("",e)}function et(e,t,n){return Math.floor((e-t)/n)+1}function en(e,t){let n=0,r=t.length-1;for(;n<=r;){let l=Math.floor((n+r)/2),i=t[l];if(!i)break;if(i.lineNumber===e)return l;i.lineNumber{n&&(n.textContent=r)},t)}},24987(e,t,n){n.d(t,{J:()=>h});let r="ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",l="12px",i=`normal normal ${l} ${r}`,o=null,a=null,c=0,s=!1,u=null,d=null;function f(){o&&a&&(o.font=a,0!==c&&u&&(o.letterSpacing=`${c}px`))}function m(){if(a&&!s)return;let e=function(){if("u">typeof document){let e=document.querySelector(".react-code-text, .react-code-lines code, .react-blob-print-hide code");if(e)return getComputedStyle(e)}return null}();if(e){let t=e.fontStyle||"normal",n=e.fontWeight||"normal",i=e.fontSize||l,o=e.fontFamily||r,u=e.letterSpacing;c=0,u&&"normal"!==u&&(c=parseFloat(u)||0),a=`${t} ${n} ${i} ${o}`,s=!1}else a=i,s=!0}function h(e,t){let n=(o?s&&(m(),s||f()):("u">typeof OffscreenCanvas?o=new OffscreenCanvas(0,0).getContext("2d"):"u">typeof document&&(o=document.createElement("canvas").getContext("2d")),o&&(u="letterSpacing"in o,m(),f(),!d&&"u">typeof document&&(d=new MutationObserver(()=>{a=null,c=0,s=!1,o&&(m(),f())})).observe(document.documentElement,{attributes:!0,attributeFilter:["data-color-mode","data-dark-theme","data-light-theme"]}))),o);if(!n)return 0;let r=null!=t?e.replace(/\t/g," ".repeat(t)):e,l=n.measureText(r).width;return 0!==c&&!u&&r.length>1&&(l+=c*(r.length-1)),l}},34349(e,t,n){n.d(t,{BX:()=>r,HS:()=>c,Oc:()=>a,Tv:()=>d,Xr:()=>i,f7:()=>s,fD:()=>u,qR:()=>o});class r extends Event{payload;constructor(e){super("open-copilot-chat",{bubbles:!1,cancelable:!0}),this.payload=e}}Event;class l extends Event{reference;openPanel;id;constructor(e,t=!1,n){super("add-copilot-chat-reference",{bubbles:!1,cancelable:!0}),this.reference=e,this.openPanel=t,this.id=n}}class i extends Event{context;constructor(e){super("symbol-changed",{bubbles:!1,cancelable:!0}),this.context=e}}function o(e){window.dispatchEvent(new r(e))}function a(e,t=!1,n){window.dispatchEvent(new l(e,t,n))}function c(e){return window.addEventListener("open-copilot-chat",e),()=>{window.removeEventListener("open-copilot-chat",e)}}function s(e){return window.addEventListener("add-copilot-chat-reference",e),()=>{window.removeEventListener("add-copilot-chat-reference",e)}}function u(e){return window.addEventListener("search-copilot-chat",e),()=>{window.removeEventListener("search-copilot-chat",e)}}function d(e){return window.addEventListener("symbol-changed",e),()=>{window.removeEventListener("symbol-changed",e)}}},70877(e,t,n){n.d(t,{c:()=>c});var r=n(74848),l=n(16522),i=n(38621),o=n(26108),a=n(96540);function c(e){let t,n,c,s=(0,l.c)(6);if(s[0]!==e){let{children:r,referenceType:l,...i}=e;n=l,t=i,s[0]=e,s[1]=t,s[2]=n}else t=s[1],n=s[2];let u=(0,a.useRef)(null),d=`Ask Copilot about this ${n}`;return s[3]!==t||s[4]!==d?(c=(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.K,{ref:u,icon:i.CopilotIcon,size:"small","aria-label":d,tooltipDirection:"n","data-testid":"copilot-ask-menu",...t})}),s[3]=t,s[4]=d,s[5]=c):c=s[5],c}c.displayName="AskCopilotButton"},9926(e,t,n){n.d(t,{Xu:()=>C,Ay:()=>w});var r=n(74848),l=n(16522),i=n(73537),o=n(11515),a=n(10506),c=n(66743),s=n(38621),u=n(47819),d=n(67323),f=n(18990),m=n(96540),h=n(32442),p=n(49685),g=n(82615),v=n(34349),b=n(20331),y=n(70877);let x="code-line-dropdown-copilot-button";function w(e){let t,n,c,w,N,S,j,R,$,A=(0,l.c)(36),{copilotAccessAllowed:k,messageReference:O,hideDropdown:B,id:I,showAgentTaskButton:T,currentRepo:D,currentReference:M,decoupledModeEnabled:H}=e,[U,z]=(0,m.useState)(!1),[P,F]=(0,m.useState)("actionMenu");A[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,i.G7)("copilot_chat_opening_thread_switch"),A[0]=t):t=A[0];let W=t;A[1]!==O?(n=()=>{E(O.type,L(O.type)),p.W.copilotRedirectSnippetToImmersive&&"snippet"===O.type?(a.Jt.setEntrypointMessage({message:(0,g.XX)(),references:[O]}),window.location.href="proxy.php?url=/copilot"):(0,v.qR)({content:"Explain",intent:b.wh.explain,references:[O],id:x}),z(!1)},A[1]=O,A[2]=n):n=A[2];let V=n;A[3]!==O?(c=()=>{let e=(0,g.UT)();p.W.copilotRedirectSnippetToImmersive&&"snippet"===O.type?(E(O.type,L(O.type)),a.Jt.setEntrypointMessage({message:e,references:[O]}),window.location.href="proxy.php?url=/copilot"):(0,v.qR)({content:e,intent:b.wh.suggest,references:[O],id:x}),z(!1)},A[3]=O,A[4]=c):c=A[4];let Y=c;A[5]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{F("newTask")},A[5]=w):w=A[5];let G=w;A[6]!==I||A[7]!==O?(N=()=>{E(O.type,L(O.type));let e={intent:b.wh.conversation,references:[O],id:I};(0,v.qR)(e),z(!1)},A[6]=I,A[7]=O,A[8]=N):N=A[8];let X=N;A[9]!==O?(S=()=>{W?_(O,x):C(O,!0,x),z(!1)},A[9]=O,A[10]=S):S=A[10];let q=S;A[11]!==X||A[12]!==B||A[13]!==I||A[14]!==O?(j=()=>{E(O.type,L(O.type)),"file"===O.type&&p.W.copilotRedirectFileViewToImmersive?window.location.href=`/copilot?reference_id=${(0,o.Vb)(O)}`:"snippet"===O.type&&p.W.copilotRedirectSnippetToImmersive?(a.Jt.setCurrentReferences(null,[O]),window.location.href="proxy.php?url=/copilot"):B?C(O,!0,I):X()},A[11]=X,A[12]=B,A[13]=I,A[14]=O,A[15]=j):j=A[15];let K=j;A[16]!==K||A[17]!==I||A[18]!==O.type?(R={referenceType:O.type,onClick:K,id:I},A[16]=K,A[17]=I,A[18]=O.type,A[19]=R):R=A[19];let J=R;return A[20]!==k||A[21]!==J||A[22]!==M||A[23]!==D||A[24]!==H||A[25]!==q||A[26]!==K||A[27]!==V||A[28]!==Y||A[29]!==B||A[30]!==I||A[31]!==O.type||A[32]!==U||A[33]!==T||A[34]!==P?($=k?B?(0,r.jsx)(y.c,{referenceType:O.type,onClick:K,id:I}):(0,r.jsxs)(r.Fragment,{children:["actionMenu"===P&&(0,r.jsxs)(u.A,{children:[(0,r.jsx)(y.c,{...J}),(0,r.jsxs)(d.W,{open:U,onOpenChange:z,children:[(0,r.jsx)(d.W.Button,{id:x,trailingAction:s.TriangleDownIcon,size:"small","aria-label":"Copilot menu",className:"CopilotCodeLinesMenu-module__menu-button__lNiNM",children:(0,r.jsx)(r.Fragment,{})}),(0,r.jsx)(d.W.Overlay,{align:"end",onKeyDown:e=>{"Escape"===e.key&&(e?.stopPropagation(),z(!1))},children:(0,r.jsxs)(f.l,{children:[(0,r.jsx)(f.l.Item,{onSelect:V,children:"Explain"}),(0,r.jsx)(f.l.Item,{onSelect:Y,children:"Suggest improvements"}),T&&(0,r.jsx)(f.l.Item,{onSelect:G,children:"New agent session"}),!p.W.copilotRedirectSnippetToImmersive&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.l.Divider,{}),(0,r.jsx)(f.l.Item,{onSelect:q,children:"Attach to current thread"})]})]})})]})]}),"newTask"===P&&(0,r.jsxs)(u.A,{children:[(0,r.jsx)(y.c,{...J}),(0,r.jsx)(h.V,{isIconButton:!0,icon:s.TriangleDownIcon,size:"small",label:"Copilot menu",eventType:"new_agent_task_button_codeview_line_selection",currentReference:M,currentRepo:D,hideRepoSelector:!0,open:!0,onClose:()=>F("actionMenu"),setContentOpen:e=>{e||F("actionMenu")},decoupledModeEnabled:H})]})]}):null,A[20]=k,A[21]=J,A[22]=M,A[23]=D,A[24]=H,A[25]=q,A[26]=K,A[27]=V,A[28]=Y,A[29]=B,A[30]=I,A[31]=O.type,A[32]=U,A[33]=T,A[34]=P,A[35]=$):$=A[35],$}w.displayName="CopilotCodeLinesMenu";let _=(e,t)=>{(0,v.Oc)(e,!1,t),(0,v.qR)({intent:b.wh.conversation,id:t,attachThread:!0})},C=(e,t,n)=>{t?((0,v.Oc)(e,!0,n),(0,v.qR)({intent:b.wh.conversation,id:n})):(0,v.qR)({intent:b.wh.conversation,references:[e],id:n})};function L(e){return"file"===e&&p.W.copilotRedirectFileViewToImmersive||"snippet"===e&&p.W.copilotRedirectSnippetToImmersive?"immersive":"assistive"}function E(e,t){(0,c.BI)("dotcom_chat.activate",{target:e,mode:t})}},99637(e,t,n){n.d(t,{D:()=>r});function r(e){let t;if("clipboard"in navigator)return navigator.clipboard.writeText(e);let n=document.body;if(!n)return Promise.reject(Error());let r=((t=document.createElement("pre")).style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="5px",t.textContent=e,t);return n.appendChild(r),!function(e){if("clipboard"in navigator)return navigator.clipboard.writeText(e.textContent||"");let t=getSelection();if(null==t)return Promise.reject(Error());t.removeAllRanges();let n=document.createRange();n.selectNodeContents(e),t.addRange(n),document.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}(r),n.removeChild(r),Promise.resolve()}},41230(e,t,n){n.d(t,{Gx:()=>l}),n(74848),n(16522);var r=n(39879);function l(e){return(0,r.Y)(e)?(0,r.t6)(e).map(e=>{let t=r.A0.get(e);return t?`${t}`:e}).join(""):null}},39879(e,t,n){n.d(t,{A0:()=>o,TA:()=>s,Y:()=>u,_n:()=>d,rE:()=>a,t6:()=>c});let r=/[\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F}/u,l=/[\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F}/gu,i=/([\u202A-\u202E]|[\u2066-\u2069]|\u{E0001}|\u{E007F})/gu,o=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","\uDB40\uDC01":"U+E0001","\uDB40\uDC7F":"U+E007F"}));function a(e){return``}function c(e){return e.split(i)}function s(e){return u(e)?e.replaceAll(l,e=>o.get(e)??""):e}function u(e){return r.test(e)}function d(e){return o.get(e)}},53181(e,t,n){n.d(t,{$$:()=>d,Al:()=>f,Aw:()=>c,D:()=>s,LH:()=>i,Lo:()=>u,NG:()=>l,RS:()=>a,af:()=>m,k7:()=>h,kD:()=>p,m2:()=>o,xG:()=>g});var r=n(95424);function l({category:e,publisher:t,task:n}={}){if(!e&&!n&&!t)return"/marketplace/models/catalog";let i=new URLSearchParams;return i.append("type","models"),e&&i.append("category",e),n&&i.append("task",(0,r.y9)(n)),t&&i.append("publisher",t),`/marketplace?${i.toString()}`}let i=({registry:e,name:t})=>`/marketplace/models/${e}/${t}`,o=e=>`${i(e)}/playground`,a=()=>"/marketplace/models",c=e=>`${(({registry:e,name:t})=>`/models/${e}/${t}`)(e)}/feedback`;function s({commit:e,filePath:t,repoOwner:n,repoName:r,beginLine:l,endLine:o,...a}){let c=new URLSearchParams;if(e&&c.set("c",e),t&&c.set("path",t),n&&c.set("l",n),r&&c.set("n",r),null!=l&&null!=o){let e="";e=l===o?`${Math.max(l-10,0)}-${o+10}`:`${l}-${o}`,c.set("lines",e)}let u=`${i(a)}/prompt`,d=c.toString();return d.length<1?u:`${u}?${d}`}let u=({org:e})=>`/organizations/${e}/settings/models/billing`,d=({owner:e,repo:t})=>`/${e}/${t}/settings/models/access-policy`;function f({repo:e,action:t,allModels:n=!1}){let l=["",e.ownerLogin,e.name,"models"];t&&l.push(t);let i=new URLSearchParams;n&&i.set("all_models","true");let o=i.toString(),a=l.map(r.QU).join("/");return o.length<1?a:`${a}?${o}`}function m({repo:e,commitish:t,action:n,path:l}){let i=["",e.ownerLogin,e.name,"models","prompt",n];return t&&i.push(t),l&&"/"!==l&&i.push(l),i.map(r.QU).join("/")}let h=e=>`${f({repo:e})}/prompt/new`,p=(e,t)=>"isCustom"in t&&t.isCustom?`${f({repo:e})}/${t.registry}/${t.publisher}/${t.name}/playground`:`${f({repo:e})}/${t.registry}/${t.name}/playground`,g=(e,t,n)=>n?`/enterprises/${n}/settings/models`:e&&""!==t.trim()?`/organizations/${t}/settings/models/access-policy`:"/settings/models"},5063(e,t,n){n.d(t,{M:()=>i});let r=(e,t)=>e[({start:0,end:1,cssClass:2})[t]],l=e=>Array.isArray(e)?{s:r(e,"start"),e:r(e,"end"),c:r(e,"cssClass")}:e,i=e=>0===e.length?[]:Array.isArray(e[0])?e.map(l):e},35228(e,t,n){n.d(t,{W:()=>u});var r=n(16522),l=n(39879),i=n(5063),o=n(41230);function a(e,t,n,r,l,i,o){let a=t.substring(n,r);return{c:e,s:n,e:r,text:"plain"!==o?function(e,t,n){let r=[];for(let l of e)if(" "===l){let e=t-n.value%t;r.push(Array(e).fill(" ").join("")),n.value+=e}else r.push(l),n.value+=Array.from(l).length;return r.join("")}(a,i,l):a}}function c(e){return e.replace(/[&<>"']/g,s)}function s(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'";default:return e}}function u(e,t,n,s,u,d){let f,m=(0,r.c)(7),h=void 0===s?"plain":s;if(m[0]!==t||m[1]!==d||m[2]!==e||m[3]!==n||m[4]!==h||m[5]!==u){var p;let r,s;f=e??(p=n,r=function(e,t,n,r){let l={value:0},i={nodes:[],s:0,e:e.length,c:""},o=t?.filter(e=>e.e>e.s);if(!o||0===o.length)return i.nodes.push(a("",e,0,e.length,l,r,n)),i;let c=[i];for(let t=0;td.s){let t=a("",e,d.s,s.s,l,r,n);d.nodes.push(t)}else if(f&&s.s>f.e){let t=a("",e,f.e,s.s,l,r,n);d.nodes.push(t)}if(u&&u.s=d.e){let t=s.e;if(d.e>t){let i=a("",e,t,d.e,l,r,n);d.nodes.push(i),t=d.e}for(;c.length>1&&u.s>=d.e;)if(c.pop(),d=c[c.length-1]??i,c.length>1&&u.s>=d.e&&d.e>t){let i=a("",e,t,d.e,l,r,n);t=d.e,d.nodes.push(i)}}}for(;c.length>0;){let t=c.pop(),i=t.nodes[t.nodes.length-1];if(i&&i.e`),t.nodes))"nodes"in a?e(a,n,r,i):i.push(function e(t,n,r){switch(n){case"data-attribute":{let i=c(t.text);if(r&&(0,l.Y)(i)){let r=(0,l.t6)(i).map(r=>{let i=(0,l._n)(r);return i?(0,l.rE)(i):e({...t,text:r,c:""},n,!1)});return t.c?`${r.join("")}`:r.join("")}return t.c?``:``}case"separated-characters-chunked":case"separated-characters":{if(t.text&&!t.text.trim())return e({...t},"data-attribute",r);let i=[...t.text];"separated-characters-chunked"!==n||r||(i=t.text.match(/.{1,2}/g)??i);let o=[...i].map(e=>{let t=r?(0,l._n)(e):void 0;return t?(0,l.rE)(t):``}).join("");return t.c?`${o}`:o}default:{let e=c(t.text),n=r?(0,o.Gx)(e)??e:e;return t.c?`${n}`:n}}}(a,n,r));t.c&&i.push("")}(r,h,d,s=[]),s.join("")),m[0]=t,m[1]=d,m[2]=e,m[3]=n,m[4]=h,m[5]=u,m[6]=f}else f=m[6];return f}},76849(e,t,n){n.d(t,{Y:()=>l});var r=n(96540);function l(){return(0,r.useSyncExternalStore)(a,i,o)}function i(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function o(){return!1}function a(){return()=>{}}}}]); //# sourceMappingURL=26497-2bdad8556e409811-a1008a6c1a84c981.js.map