difit 3.1.6 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{index-BpBUhaGB.js → index-N61VWhYi.js} +3 -3
- package/dist/client/assets/{prism-csharp-BpyjrzGK.js → prism-csharp-CpJpO3Rp.js} +1 -1
- package/dist/client/assets/{prism-hcl-CNTYUO5q.js → prism-hcl-D3OomFiZ.js} +1 -1
- package/dist/client/assets/{prism-java-vPlbwzUD.js → prism-java-DKu7Mdwl.js} +1 -1
- package/dist/client/assets/{prism-perl-BhZdI1gh.js → prism-perl-BcSVuy7b.js} +1 -1
- package/dist/client/assets/{prism-php-CH-HzCHi.js → prism-php-BzFHnoKk.js} +1 -1
- package/dist/client/assets/{prism-ruby-DJgS1ZsF.js → prism-ruby-_Fv626ts.js} +1 -1
- package/dist/client/assets/{prism-solidity-DePJfmfK.js → prism-solidity-DNmqWy7k.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +2 -2
|
@@ -42,16 +42,16 @@ Error generating stack: `+o.message+`
|
|
|
42
42
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:h,tableRow:f}};function c(x,w,S,N){return p(b(x,S,N),x.align)}function f(x,w,S,N){const E=g(x,S,N),C=p([E]);return C.slice(0,C.indexOf(`
|
|
43
43
|
`))}function h(x,w,S,N){const E=S.enter("tableCell"),C=S.enter("phrasing"),j=S.containerPhrasing(x,{...N,before:u,after:u});return C(),E(),j}function p(x,w){return rT(x,{align:w,alignDelimiters:a,padding:l,stringLength:s})}function b(x,w,S){const N=x.children;let E=-1;const C=[],j=w.enter("table");for(;++E<N.length;)C[E]=g(N[E],w,S);return j(),C}function g(x,w,S){const N=x.children;let E=-1;const C=[],j=w.enter("tableRow");for(;++E<N.length;)C[E]=h(N[E],x,w,S);return j(),C}function v(x,w,S){let N=C0.inlineCode(x,w,S);return S.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function $T(){return{exit:{taskListCheckValueChecked:rx,taskListCheckValueUnchecked:rx,paragraph:GT}}}function VT(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:YT}}}function rx(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function GT(e){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const l=this.stack[this.stack.length-1];l.type;const a=l.children[0];if(a&&a.type==="text"){const s=r.children;let u=-1,c;for(;++u<s.length;){const f=s[u];if(f.type==="paragraph"){c=f;break}}c===l&&(a.value=a.value.slice(1),a.value.length===0?l.children.shift():l.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,l.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function YT(e,r,l,a){const s=e.children[0],u=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=l.createTracker(a);u&&f.move(c);let h=C0.listItem(e,r,l,{...a,...f.current()});return u&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),h;function p(b){return b+c}}function XT(){return[NA(),YA(),KA(),BT(),$T()]}function ZT(e){return{extensions:[AA(),XA(e),JA(),PT(e),VT()]}}const QT={tokenize:n6,partial:!0},N0={tokenize:r6,partial:!0},A0={tokenize:l6,partial:!0},T0={tokenize:i6,partial:!0},KT={tokenize:a6,partial:!0},j0={name:"wwwAutolink",tokenize:e6,previous:R0},_0={name:"protocolAutolink",tokenize:t6,previous:L0},Nr={name:"emailAutolink",tokenize:WT,previous:D0},er={};function JT(){return{text:er}}let Tl=48;for(;Tl<123;)er[Tl]=Nr,Tl++,Tl===58?Tl=65:Tl===91&&(Tl=97);er[43]=Nr;er[45]=Nr;er[46]=Nr;er[95]=Nr;er[72]=[Nr,_0];er[104]=[Nr,_0];er[87]=[Nr,j0];er[119]=[Nr,j0];function WT(e,r,l){const a=this;let s,u;return c;function c(g){return!Xd(g)||!D0.call(a,a.previous)||Lh(a.events)?l(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return Xd(g)?(e.consume(g),f):g===64?(e.consume(g),h):l(g)}function h(g){return g===46?e.check(KT,b,p)(g):g===45||g===95||Vt(g)?(u=!0,e.consume(g),h):b(g)}function p(g){return e.consume(g),s=!0,h}function b(g){return u&&s&&Kt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(g)):l(g)}}function e6(e,r,l){const a=this;return s;function s(c){return c!==87&&c!==119||!R0.call(a,a.previous)||Lh(a.events)?l(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(QT,e.attempt(N0,e.attempt(A0,u),l),l)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(c)}}function t6(e,r,l){const a=this;let s="",u=!1;return c;function c(g){return(g===72||g===104)&&L0.call(a,a.previous)&&!Lh(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),f):l(g)}function f(g){if(Kt(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const v=s.toLowerCase();if(v==="http"||v==="https")return e.consume(g),h}return l(g)}function h(g){return g===47?(e.consume(g),u?p:(u=!0,h)):l(g)}function p(g){return g===null||$s(g)||st(g)||Ol(g)||hu(g)?l(g):e.attempt(N0,e.attempt(A0,b),l)(g)}function b(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(g)}}function n6(e,r,l){let a=0;return s;function s(c){return(c===87||c===119)&&a<3?(a++,e.consume(c),s):c===46&&a===3?(e.consume(c),u):l(c)}function u(c){return c===null?l(c):r(c)}}function r6(e,r,l){let a,s,u;return c;function c(p){return p===46||p===95?e.check(T0,h,f)(p):p===null||st(p)||Ol(p)||p!==45&&hu(p)?h(p):(u=!0,e.consume(p),c)}function f(p){return p===95?a=!0:(s=a,a=void 0),e.consume(p),c}function h(p){return s||a||!u?l(p):r(p)}}function l6(e,r){let l=0,a=0;return s;function s(c){return c===40?(l++,e.consume(c),s):c===41&&a<l?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(T0,r,u)(c):c===null||st(c)||Ol(c)?r(c):(e.consume(c),s)}function u(c){return c===41&&a++,e.consume(c),s}}function i6(e,r,l){return a;function a(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),a):f===38?(e.consume(f),u):f===93?(e.consume(f),s):f===60||f===null||st(f)||Ol(f)?r(f):l(f)}function s(f){return f===null||f===40||f===91||st(f)||Ol(f)?r(f):a(f)}function u(f){return Kt(f)?c(f):l(f)}function c(f){return f===59?(e.consume(f),a):Kt(f)?(e.consume(f),c):l(f)}}function a6(e,r,l){return a;function a(u){return e.consume(u),s}function s(u){return Vt(u)?l(u):r(u)}}function R0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||st(e)}function L0(e){return!Kt(e)}function D0(e){return!(e===47||Xd(e))}function Xd(e){return e===43||e===45||e===46||e===95||Vt(e)}function Lh(e){let r=e.length,l=!1;for(;r--;){const a=e[r][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){l=!0;break}if(a._gfmAutolinkLiteralWalkedInto){l=!1;break}}return e.length>0&&!l&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const o6={tokenize:m6,partial:!0};function s6(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:d6,continuation:{tokenize:h6},exit:p6}},text:{91:{name:"gfmFootnoteCall",tokenize:f6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:u6,resolveTo:c6}}}}function u6(e,r,l){const a=this;let s=a.events.length;const u=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const h=a.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return l(h);const p=Pn(a.sliceSerialize({start:c.end,end:a.now()}));return p.codePointAt(0)!==94||!u.includes(p.slice(1))?l(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),r(h))}}function c6(e,r){let l=e.length;for(;l--;)if(e[l][1].type==="labelImage"&&e[l][0]==="enter"){e[l][1];break}e[l+1][1].type="data",e[l+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[l+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[l+3][1].end),end:Object.assign({},e[l+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[l+1],e[l+2],["enter",a,r],e[l+3],e[l+4],["enter",s,r],["exit",s,r],["enter",u,r],["enter",c,r],["exit",c,r],["exit",u,r],e[e.length-2],e[e.length-1],["exit",a,r]];return e.splice(l,e.length-l+1,...f),e}function f6(e,r,l){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u=0,c;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?l(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(g){if(u>999||g===93&&!c||g===null||g===91||st(g))return l(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return s.includes(Pn(a.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):l(g)}return st(g)||(c=!0),u++,e.consume(g),g===92?b:p}function b(g){return g===91||g===92||g===93?(e.consume(g),u++,p):p(g)}}function d6(e,r,l){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u,c=0,f;return h;function h(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):l(w)}function b(w){if(c>999||w===93&&!f||w===null||w===91||st(w))return l(w);if(w===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return u=Pn(a.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return st(w)||(f=!0),c++,e.consume(w),w===92?g:b}function g(w){return w===91||w===92||w===93?(e.consume(w),c++,b):b(w)}function v(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),s.includes(u)||s.push(u),$e(e,x,"gfmFootnoteDefinitionWhitespace")):l(w)}function x(w){return r(w)}}function h6(e,r,l){return e.check(Wa,r,e.attempt(o6,r,l))}function p6(e){e.exit("gfmFootnoteDefinition")}function m6(e,r,l){const a=this;return $e(e,s,"gfmFootnoteDefinitionIndent",5);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?r(u):l(u)}}function g6(e){let l=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:u,resolveAll:s};return l==null&&(l=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,f){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let p=h;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[h][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[h][1].start)},v=[["enter",b,f],["enter",c[p][1],f],["exit",c[p][1],f],["enter",g,f]],x=f.parser.constructs.insideSpan.null;x&&kn(v,v.length,0,pu(x,c.slice(p+1,h),f)),kn(v,v.length,0,[["exit",g,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",b,f]]),kn(c,p-1,h-p+3,v),h=p+v.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function u(c,f,h){const p=this.previous,b=this.events;let g=0;return v;function v(w){return p===126&&b[b.length-1][1].type!=="characterEscape"?h(w):(c.enter("strikethroughSequenceTemporary"),x(w))}function x(w){const S=Li(p);if(w===126)return g>1?h(w):(c.consume(w),g++,x);if(g<2&&!l)return h(w);const N=c.exit("strikethroughSequenceTemporary"),E=Li(w);return N._open=!E||E===2&&!!S,N._close=!S||S===2&&!!E,f(w)}}}class b6{constructor(){this.map=[]}add(r,l,a){y6(this,r,l,a)}consume(r){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let l=this.map.length;const a=[];for(;l>0;)l-=1,a.push(r.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),r.length=this.map[l][0];a.push(r.slice()),r.length=0;let s=a.pop();for(;s;){for(const u of s)r.push(u);s=a.pop()}this.map.length=0}}function y6(e,r,l,a){let s=0;if(!(l===0&&a.length===0)){for(;s<e.map.length;){if(e.map[s][0]===r){e.map[s][1]+=l,e.map[s][2].push(...a);return}s+=1}e.map.push([r,l,a])}}function x6(e,r){let l=!1;const a=[];for(;r<e.length;){const s=e[r];if(l){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const u=a.length-1;a[u]=a[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(l=!0);r+=1}return a}function v6(){return{flow:{null:{name:"table",tokenize:w6,resolveAll:S6}}}}function w6(e,r,l){const a=this;let s=0,u=0,c;return f;function f(M){let V=a.events.length-1;for(;V>-1;){const U=a.events[V][1].type;if(U==="lineEnding"||U==="linePrefix")V--;else break}const Y=V>-1?a.events[V][1].type:null,J=Y==="tableHead"||Y==="tableRow"?L:h;return J===L&&a.parser.lazy[a.now().line]?l(M):J(M)}function h(M){return e.enter("tableHead"),e.enter("tableRow"),p(M)}function p(M){return M===124||(c=!0,u+=1),b(M)}function b(M){return M===null?l(M):Ae(M)?u>1?(u=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),x):l(M):Ie(M)?$e(e,b,"whitespace")(M):(u+=1,c&&(c=!1,s+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),c=!0,b):(e.enter("data"),g(M)))}function g(M){return M===null||M===124||st(M)?(e.exit("data"),b(M)):(e.consume(M),M===92?v:g)}function v(M){return M===92||M===124?(e.consume(M),g):g(M)}function x(M){return a.interrupt=!1,a.parser.lazy[a.now().line]?l(M):(e.enter("tableDelimiterRow"),c=!1,Ie(M)?$e(e,w,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):w(M))}function w(M){return M===45||M===58?N(M):M===124?(c=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),S):q(M)}function S(M){return Ie(M)?$e(e,N,"whitespace")(M):N(M)}function N(M){return M===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),E):M===45?(u+=1,E(M)):M===null||Ae(M)?B(M):q(M)}function E(M){return M===45?(e.enter("tableDelimiterFiller"),C(M)):q(M)}function C(M){return M===45?(e.consume(M),C):M===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(M))}function j(M){return Ie(M)?$e(e,B,"whitespace")(M):B(M)}function B(M){return M===124?w(M):M===null||Ae(M)?!c||s!==u?q(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(M)):q(M)}function q(M){return l(M)}function L(M){return e.enter("tableRow"),I(M)}function I(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),I):M===null||Ae(M)?(e.exit("tableRow"),r(M)):Ie(M)?$e(e,I,"whitespace")(M):(e.enter("data"),$(M))}function $(M){return M===null||M===124||st(M)?(e.exit("data"),I(M)):(e.consume(M),M===92?G:$)}function G(M){return M===92||M===124?(e.consume(M),$):$(M)}}function S6(e,r){let l=-1,a=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,p,b,g;const v=new b6;for(;++l<e.length;){const x=e[l],w=x[1];x[0]==="enter"?w.type==="tableHead"?(f=!1,h!==0&&(lx(v,r,h,p,b),b=void 0,h=0),p={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(l,0,[["enter",p,r]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(a=!0,g=void 0,u=[0,0,0,0],c=[0,l+1,0,0],f&&(f=!1,b={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(l,0,[["enter",b,r]])),s=w.type==="tableDelimiterRow"?2:b?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],g=Ns(v,r,u,s,void 0,g),u=[0,0,0,0]),c[2]=l)):w.type==="tableCellDivider"&&(a?a=!1:(u[1]!==0&&(c[0]=c[1],g=Ns(v,r,u,s,void 0,g)),u=c,c=[u[1],l,0,0])):w.type==="tableHead"?(f=!0,h=l):w.type==="tableRow"||w.type==="tableDelimiterRow"?(h=l,u[1]!==0?(c[0]=c[1],g=Ns(v,r,u,s,l,g)):c[1]!==0&&(g=Ns(v,r,c,s,l,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=l)}for(h!==0&&lx(v,r,h,p,b),v.consume(r.events),l=-1;++l<r.events.length;){const x=r.events[l];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=x6(r.events,l))}return e}function Ns(e,r,l,a,s,u){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",f="tableContent";l[0]!==0&&(u.end=Object.assign({},Ci(r.events,l[0])),e.add(l[0],0,[["exit",u,r]]));const h=Ci(r.events,l[1]);if(u={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(l[1],0,[["enter",u,r]]),l[2]!==0){const p=Ci(r.events,l[2]),b=Ci(r.events,l[3]),g={type:f,start:Object.assign({},p),end:Object.assign({},b)};if(e.add(l[2],0,[["enter",g,r]]),a!==2){const v=r.events[l[2]],x=r.events[l[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",l[3]>l[2]+1){const w=l[2]+1,S=l[3]-l[2]-1;e.add(w,S,[])}}e.add(l[3]+1,0,[["exit",g,r]])}return s!==void 0&&(u.end=Object.assign({},Ci(r.events,s)),e.add(s,0,[["exit",u,r]]),u=void 0),u}function lx(e,r,l,a,s){const u=[],c=Ci(r.events,l);s&&(s.end=Object.assign({},c),u.push(["exit",s,r])),a.end=Object.assign({},c),u.push(["exit",a,r]),e.add(l+1,0,u)}function Ci(e,r){const l=e[r],a=l[0]==="enter"?"start":"end";return l[1][a]}const k6={name:"tasklistCheck",tokenize:C6};function E6(){return{text:{91:k6}}}function C6(e,r,l){const a=this;return s;function s(h){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?l(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),u)}function u(h){return st(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):l(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):l(h)}function f(h){return Ae(h)?r(h):Ie(h)?e.check({tokenize:N6},r,l)(h):l(h)}}function N6(e,r,l){return $e(e,a,"whitespace");function a(s){return s===null?l(s):r(s)}}function A6(e){return $1([JT(),s6(),g6(e),v6(),E6()])}const T6={};function Dh(e){const r=this,l=e||T6,a=r.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),u=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(A6(l)),u.push(XT()),c.push(ZT(l))}function O0(e){var r,l,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(l=O0(e[r]))&&(a&&(a+=" "),a+=l)}else for(l in e)e[l]&&(a&&(a+=" "),a+=l);return a}function M0(){for(var e,r,l=0,a="",s=arguments.length;l<s;l++)(e=arguments[l])&&(r=O0(e))&&(a&&(a+=" "),a+=r);return a}var j6=Object.create,yu=Object.defineProperty,_6=Object.defineProperties,R6=Object.getOwnPropertyDescriptor,L6=Object.getOwnPropertyDescriptors,z0=Object.getOwnPropertyNames,Xs=Object.getOwnPropertySymbols,D6=Object.getPrototypeOf,Oh=Object.prototype.hasOwnProperty,B0=Object.prototype.propertyIsEnumerable,ix=(e,r,l)=>r in e?yu(e,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[r]=l,Jn=(e,r)=>{for(var l in r||(r={}))Oh.call(r,l)&&ix(e,l,r[l]);if(Xs)for(var l of Xs(r))B0.call(r,l)&&ix(e,l,r[l]);return e},xu=(e,r)=>_6(e,L6(r)),F0=(e,r)=>{var l={};for(var a in e)Oh.call(e,a)&&r.indexOf(a)<0&&(l[a]=e[a]);if(e!=null&&Xs)for(var a of Xs(e))r.indexOf(a)<0&&B0.call(e,a)&&(l[a]=e[a]);return l},O6=(e,r)=>function(){return r||(0,e[z0(e)[0]])((r={exports:{}}).exports,r),r.exports},M6=(e,r)=>{for(var l in r)yu(e,l,{get:r[l],enumerable:!0})},z6=(e,r,l,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of z0(r))!Oh.call(e,s)&&s!==l&&yu(e,s,{get:()=>r[s],enumerable:!(a=R6(r,s))||a.enumerable});return e},B6=(e,r,l)=>(l=e!=null?j6(D6(e)):{},z6(!e||!e.__esModule?yu(l,"default",{value:e,enumerable:!0}):l,e)),F6=O6({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,r){var l=(function(){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,u={},c={util:{encode:function w(S){return S instanceof f?new f(S.type,w(S.content),S.alias):Array.isArray(S)?S.map(w):S.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++s}),w.__id},clone:function w(S,N){N=N||{};var E,C;switch(c.util.type(S)){case"Object":if(C=c.util.objId(S),N[C])return N[C];E={},N[C]=E;for(var j in S)S.hasOwnProperty(j)&&(E[j]=w(S[j],N));return E;case"Array":return C=c.util.objId(S),N[C]?N[C]:(E=[],N[C]=E,S.forEach(function(B,q){E[q]=w(B,N)}),E);default:return S}},getLanguage:function(w){for(;w;){var S=a.exec(w.className);if(S)return S[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,S){w.className=w.className.replace(RegExp(a,"gi"),""),w.classList.add("language-"+S)},isActive:function(w,S,N){for(var E="no-"+S;w;){var C=w.classList;if(C.contains(S))return!0;if(C.contains(E))return!1;w=w.parentElement}return!!N}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(w,S){var N=c.util.clone(c.languages[w]);for(var E in S)N[E]=S[E];return N},insertBefore:function(w,S,N,E){E=E||c.languages;var C=E[w],j={};for(var B in C)if(C.hasOwnProperty(B)){if(B==S)for(var q in N)N.hasOwnProperty(q)&&(j[q]=N[q]);N.hasOwnProperty(B)||(j[B]=C[B])}var L=E[w];return E[w]=j,c.languages.DFS(c.languages,function(I,$){$===L&&I!=w&&(this[I]=j)}),j},DFS:function w(S,N,E,C){C=C||{};var j=c.util.objId;for(var B in S)if(S.hasOwnProperty(B)){N.call(S,B,S[B],E||B);var q=S[B],L=c.util.type(q);L==="Object"&&!C[j(q)]?(C[j(q)]=!0,w(q,N,null,C)):L==="Array"&&!C[j(q)]&&(C[j(q)]=!0,w(q,N,B,C))}}},plugins:{},highlight:function(w,S,N){var E={code:w,grammar:S,language:N};if(c.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=c.tokenize(E.code,E.grammar),c.hooks.run("after-tokenize",E),f.stringify(c.util.encode(E.tokens),E.language)},tokenize:function(w,S){var N=S.rest;if(N){for(var E in N)S[E]=N[E];delete S.rest}var C=new b;return g(C,C.head,w),p(w,C,S,C.head,0),x(C)},hooks:{all:{},add:function(w,S){var N=c.hooks.all;N[w]=N[w]||[],N[w].push(S)},run:function(w,S){var N=c.hooks.all[w];if(!(!N||!N.length))for(var E=0,C;C=N[E++];)C(S)}},Token:f};function f(w,S,N,E){this.type=w,this.content=S,this.alias=N,this.length=(E||"").length|0}f.stringify=function w(S,N){if(typeof S=="string")return S;if(Array.isArray(S)){var E="";return S.forEach(function(L){E+=w(L,N)}),E}var C={type:S.type,content:w(S.content,N),tag:"span",classes:["token",S.type],attributes:{},language:N},j=S.alias;j&&(Array.isArray(j)?Array.prototype.push.apply(C.classes,j):C.classes.push(j)),c.hooks.run("wrap",C);var B="";for(var q in C.attributes)B+=" "+q+'="'+(C.attributes[q]||"").replace(/"/g,""")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+B+">"+C.content+"</"+C.tag+">"};function h(w,S,N,E){w.lastIndex=S;var C=w.exec(N);if(C&&E&&C[1]){var j=C[1].length;C.index+=j,C[0]=C[0].slice(j)}return C}function p(w,S,N,E,C,j){for(var B in N)if(!(!N.hasOwnProperty(B)||!N[B])){var q=N[B];q=Array.isArray(q)?q:[q];for(var L=0;L<q.length;++L){if(j&&j.cause==B+","+L)return;var I=q[L],$=I.inside,G=!!I.lookbehind,M=!!I.greedy,V=I.alias;if(M&&!I.pattern.global){var Y=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,Y+"g")}for(var J=I.pattern||I,U=E.next,X=C;U!==S.tail&&!(j&&X>=j.reach);X+=U.value.length,U=U.next){var F=U.value;if(S.length>w.length)return;if(!(F instanceof f)){var O=1,z;if(M){if(z=h(J,X,w,G),!z||z.index>=w.length)break;var H=z.index,Q=z.index+z[0].length,_=X;for(_+=U.value.length;H>=_;)U=U.next,_+=U.value.length;if(_-=U.value.length,X=_,U.value instanceof f)continue;for(var D=U;D!==S.tail&&(_<Q||typeof D.value=="string");D=D.next)O++,_+=D.value.length;O--,F=w.slice(X,_),z.index-=X}else if(z=h(J,0,F,G),!z)continue;var H=z.index,A=z[0],te=F.slice(0,H),ue=F.slice(H+A.length),fe=X+F.length;j&&fe>j.reach&&(j.reach=fe);var pe=U.prev;te&&(pe=g(S,pe,te),X+=te.length),v(S,pe,O);var me=new f(B,$?c.tokenize(A,$):A,V,A);if(U=g(S,pe,me),ue&&g(S,U,ue),O>1){var de={cause:B+","+L,reach:fe};p(w,S,N,U.prev,X,de),j&&de.reach>j.reach&&(j.reach=de.reach)}}}}}}function b(){var w={value:null,prev:null,next:null},S={value:null,prev:w,next:null};w.next=S,this.head=w,this.tail=S,this.length=0}function g(w,S,N){var E=S.next,C={value:N,prev:S,next:E};return S.next=C,E.prev=C,w.length++,C}function v(w,S,N){for(var E=S.next,C=0;C<N&&E!==w.tail;C++)E=E.next;S.next=E,E.prev=S,w.length-=C}function x(w){for(var S=[],N=w.head.next;N!==w.tail;)S.push(N.value),N=N.next;return S}return c})();r.exports=l,l.default=l}}),se=B6(F6());se.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},se.languages.markup.tag.inside["attr-value"].inside.entity=se.languages.markup.entity,se.languages.markup.doctype.inside["internal-subset"].inside=se.languages.markup,se.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(se.languages.markup.tag,"addInlined",{value:function(e,a){var l={},l=(l["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:se.languages[a]},l.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}}),a=(l["language-"+a]={pattern:/[\s\S]+/,inside:se.languages[a]},{});a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:l},se.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(se.languages.markup.tag,"addAttribute",{value:function(e,r){se.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:se.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),se.languages.html=se.languages.markup,se.languages.mathml=se.languages.markup,se.languages.svg=se.languages.markup,se.languages.xml=se.languages.extend("markup",{}),se.languages.ssml=se.languages.xml,se.languages.atom=se.languages.xml,se.languages.rss=se.languages.xml,(function(e){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a="(?:[^\\\\-]|"+l.source+")",a=RegExp(a+"-"+a),s={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:l,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:l}},"special-escape":r,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":s}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:l,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":s}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(se),se.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},se.languages.javascript=se.languages.extend("clike",{"class-name":[se.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),se.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,se.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:se.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:se.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:se.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:se.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:se.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),se.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:se.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),se.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),se.languages.markup&&(se.languages.markup.tag.addInlined("script","javascript"),se.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),se.languages.js=se.languages.javascript,se.languages.actionscript=se.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),se.languages.actionscript["class-name"].alias="function",delete se.languages.actionscript.parameter,delete se.languages.actionscript["literal-property"],se.languages.markup&&se.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:se.languages.markup}}),(function(e){var r=/#(?!\{).+/,l={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:l}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:l}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:l}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript})(se),(function(e){var r=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(r,"addSupport",{value:function(l,a){(l=typeof l=="string"?[l]:l).forEach(function(s){var u=function(g){g.inside||(g.inside={}),g.inside.rest=a},c="doc-comment";if(f=e.languages[s]){var f,h=f[c];if((h=h||(f=e.languages.insertBefore(s,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[c])instanceof RegExp&&(h=f[c]={pattern:h}),Array.isArray(h))for(var p=0,b=h.length;p<b;p++)h[p]instanceof RegExp&&(h[p]={pattern:h[p]}),u(h[p]);else u(h)}})}}),r.addSupport(["java","javascript","php"],r)})(se),(function(e){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,r=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(se),(function(e){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=r,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),l={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:l,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:l})})(se),(function(e){var r=/[*&][^\s[\]{},]+/,l=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+l.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+l.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(f,h){h=(h||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return f});return RegExp(p,h)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(u),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:l,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(se),(function(e){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function l(p){return p=p.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,c=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+u+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+u+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:l(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:l(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:l(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:l(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(b){p!==b&&(e.languages.markdown[p].inside.content.inside[b]=e.languages.markdown[b])})}),e.hooks.add("after-tokenize",function(p){p.language!=="markdown"&&p.language!=="md"||(function b(g){if(g&&typeof g!="string")for(var v=0,x=g.length;v<x;v++){var w,S=g[v];S.type!=="code"?b(S.content):(w=S.content[1],S=S.content[3],w&&S&&w.type==="code-language"&&S.type==="code-block"&&typeof w.content=="string"&&(w=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),w="language-"+(w=(/[a-z][\w-]*/i.exec(w)||[""])[0].toLowerCase()),S.alias?typeof S.alias=="string"?S.alias=[S.alias,w]:S.alias.push(w):S.alias=[w]))}})(p.tokens)}),e.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var b="",g=0,v=p.classes.length;g<v;g++){var x=p.classes[g],x=/language-(.+)/.exec(x);if(x){b=x[1];break}}var w,S=e.languages[b];S?p.content=e.highlight((function(N){return N=N.replace(c,""),N=N.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(E,C){var j;return(C=C.toLowerCase())[0]==="#"?(j=C[1]==="x"?parseInt(C.slice(2),16):Number(C.slice(1)),h(j)):f[C]||E})})(p.content),S,b):b&&b!=="none"&&e.plugins.autoloader&&(w="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),p.attributes.id=w,e.plugins.autoloader.loadLanguages(b,function(){var N=document.getElementById(w);N&&(N.innerHTML=e.highlight(N.textContent,e.languages[b],b))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),f={amp:"&",lt:"<",gt:">",quot:'"'},h=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(se),se.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:se.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},se.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var r=e.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),l=0;l<r.length;){var a=r[l++];if(a.type==="keyword"&&a.content==="mutation"){var s=[];if(g(["definition-mutation","punctuation"])&&b(1).content==="("){l+=2;var u=v(/^\($/,/^\)$/);if(u===-1)continue;for(;l<u;l++){var c=b(0);c.type==="variable"&&(x(c,"variable-input"),s.push(c.content))}l=u+1}if(g(["punctuation","property-query"])&&b(0).content==="{"&&(l++,x(b(0),"property-mutation"),0<s.length)){var f=v(/^\{$/,/^\}$/);if(f!==-1)for(var h=l;h<f;h++){var p=r[h];p.type==="variable"&&0<=s.indexOf(p.content)&&x(p,"variable-input")}}}}function b(w){return r[l+w]}function g(w,S){S=S||0;for(var N=0;N<w.length;N++){var E=b(N+S);if(!E||E.type!==w[N])return}return 1}function v(w,S){for(var N=1,E=l;E<r.length;E++){var C=r[E],j=C.content;if(C.type==="punctuation"&&typeof j=="string"){if(w.test(j))N++;else if(S.test(j)&&--N===0)return E}}return-1}function x(w,S){var N=w.alias;N?Array.isArray(N)||(w.alias=N=[N]):w.alias=N=[],N.push(S)}}),se.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var r=e.languages.javascript["template-string"],l=r.pattern.source,a=r.inside.interpolation,s=a.inside["interpolation-punctuation"],u=a.pattern.source;function c(g,v){if(e.languages[g])return{pattern:RegExp("((?:"+v+")\\s*)"+l),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}function f(g,v,x){return g={code:g,grammar:v,language:x},e.hooks.run("before-tokenize",g),g.tokens=e.tokenize(g.code,g.grammar),e.hooks.run("after-tokenize",g),g.tokens}function h(g,v,x){var N=e.tokenize(g,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),w=0,S={},N=f(N.map(function(C){if(typeof C=="string")return C;for(var j,B,C=C.content;g.indexOf((B=w++,j="___"+x.toUpperCase()+"_"+B+"___"))!==-1;);return S[j]=C,j}).join(""),v,x),E=Object.keys(S);return w=0,(function C(j){for(var B=0;B<j.length;B++){if(w>=E.length)return;var q,L,I,$,G,M,V,Y=j[B];typeof Y=="string"||typeof Y.content=="string"?(q=E[w],(V=(M=typeof Y=="string"?Y:Y.content).indexOf(q))!==-1&&(++w,L=M.substring(0,V),G=S[q],I=void 0,($={})["interpolation-punctuation"]=s,($=e.tokenize(G,$)).length===3&&((I=[1,1]).push.apply(I,f($[1],e.languages.javascript,"javascript")),$.splice.apply($,I)),I=new e.Token("interpolation",$,a.alias,G),$=M.substring(V+q.length),G=[],L&&G.push(L),G.push(I),$&&(C(M=[$]),G.push.apply(G,M)),typeof Y=="string"?(j.splice.apply(j,[B,1].concat(G)),B+=G.length-1):Y.content=G)):(V=Y.content,Array.isArray(V)?C(V):C([V]))}})(N),new e.Token(x,N,"language-"+x,g)}e.languages.javascript["template-string"]=[c("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),c("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),c("svg",/\bsvg/.source),c("markdown",/\b(?:markdown|md)/.source),c("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),c("sql",/\bsql/.source),r].filter(Boolean);var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function b(g){return typeof g=="string"?g:Array.isArray(g)?g.map(b).join(""):b(g.content)}e.hooks.add("after-tokenize",function(g){g.language in p&&(function v(x){for(var w=0,S=x.length;w<S;w++){var N,E,C,j=x[w];typeof j!="string"&&(N=j.content,Array.isArray(N)?j.type==="template-string"?(j=N[1],N.length===3&&typeof j!="string"&&j.type==="embedded-code"&&(E=b(j),j=j.alias,j=Array.isArray(j)?j[0]:j,C=e.languages[j])&&(N[1]=h(E,C,j))):v(N):typeof N!="string"&&v([N]))}})(g.tokens)})})(se),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var r=e.languages.extend("typescript",{});delete r["class-name"],e.languages.typescript["class-name"].inside=r,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),e.languages.ts=e.languages.typescript})(se),(function(e){var r=e.languages.javascript,l=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+l+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:r,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return l})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+l),lookbehind:!0,inside:{string:r.string,number:r.number,boolean:r.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:r,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)})(se),(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(se),se.languages.n4js=se.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),se.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),se.languages.n4jsd=se.languages.n4js,(function(e){function r(c,f){return RegExp(c.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var l=["function","function-variable","method","method-variable","property-access"],a=0;a<l.length;a++){var u=l[a],s=e.languages.javascript[u],u=(s=e.util.type(s)==="RegExp"?e.languages.javascript[u]={pattern:s}:s).inside||{};(s.inside=u)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(se),(function(e){var r=e.util.clone(e.languages.javascript),l=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,p){return h=h.replace(/<S>/g,function(){return l}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return s}),RegExp(h,p)}s=u(s).source,e.languages.jsx=e.languages.extend("markup",r),e.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=r.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function c(h){for(var p=[],b=0;b<h.length;b++){var g=h[b],v=!1;typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?0<p.length&&p[p.length-1].tagName===f(g.content[0].content[1])&&p.pop():g.content[g.content.length-1].content!=="/>"&&p.push({tagName:f(g.content[0].content[1]),openedBraces:0}):0<p.length&&g.type==="punctuation"&&g.content==="{"?p[p.length-1].openedBraces++:0<p.length&&0<p[p.length-1].openedBraces&&g.type==="punctuation"&&g.content==="}"?p[p.length-1].openedBraces--:v=!0),(v||typeof g=="string")&&0<p.length&&p[p.length-1].openedBraces===0&&(v=f(g),b<h.length-1&&(typeof h[b+1]=="string"||h[b+1].type==="plain-text")&&(v+=f(h[b+1]),h.splice(b+1,1)),0<b&&(typeof h[b-1]=="string"||h[b-1].type==="plain-text")&&(v=f(h[b-1])+v,h.splice(b-1,1),b--),h[b]=new e.Token("plain-text",v,null,v)),g.content&&typeof g.content!="string"&&c(g.content)}}var f=function(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(f).join(""):""};e.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||c(h.tokens)})})(se),(function(e){var r=e.util.clone(e.languages.typescript),r=(e.languages.tsx=e.languages.extend("jsx",r),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0})(se),se.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},se.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=se.languages.swift}),(function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(se),se.languages.c=se.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),se.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),se.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},se.languages.c.string],char:se.languages.c.char,comment:se.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:se.languages.c}}}}),se.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete se.languages.c.boolean,se.languages.objectivec=se.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete se.languages.objectivec["class-name"],se.languages.objc=se.languages.objectivec,se.languages.reason=se.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),se.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete se.languages.reason.function,(function(e){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,l=0;l<2;l++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(se),se.languages.go=se.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),se.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete se.languages.go["class-name"],(function(e){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,l=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return l})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(se),se.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},se.languages.python["string-interpolation"].inside.interpolation.inside.rest=se.languages.python,se.languages.py=se.languages.python,se.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},se.languages.webmanifest=se.languages.json;var wn={};M6(wn,{dracula:()=>U6,duotoneDark:()=>q6,duotoneLight:()=>$6,github:()=>G6,gruvboxMaterialDark:()=>w5,gruvboxMaterialLight:()=>k5,jettwaveDark:()=>h5,jettwaveLight:()=>m5,nightOwl:()=>X6,nightOwlLight:()=>Q6,oceanicNext:()=>J6,okaidia:()=>e5,oneDark:()=>b5,oneLight:()=>x5,palenight:()=>n5,shadesOfPurple:()=>l5,synthwave84:()=>a5,ultramin:()=>s5,vsDark:()=>I0,vsLight:()=>f5});var I6={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},U6=I6,H6={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},q6=H6,P6={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},$6=P6,V6={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},G6=V6,Y6={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},X6=Y6,Z6={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Q6=Z6,xn={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},K6={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:xn.keyword}},{types:["attr-value"],style:{color:xn.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:xn.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:xn.primitive}},{types:["boolean"],style:{color:xn.boolean}},{types:["tag"],style:{color:xn.tag}},{types:["string"],style:{color:xn.string}},{types:["punctuation"],style:{color:xn.string}},{types:["selector","char","builtin","inserted"],style:{color:xn.char}},{types:["function"],style:{color:xn.function}},{types:["operator","entity","url","variable"],style:{color:xn.variable}},{types:["keyword"],style:{color:xn.keyword}},{types:["atrule","class-name"],style:{color:xn.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},J6=K6,W6={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},e5=W6,t5={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},n5=t5,r5={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},l5=r5,i5={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},a5=i5,o5={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},s5=o5,u5={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},I0=u5,c5={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},f5=c5,d5={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},h5=d5,p5={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},m5=p5,g5={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},b5=g5,y5={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},x5=y5,v5={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},w5=v5,S5={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},k5=S5,E5=e=>T.useCallback(r=>{var l=r,{className:a,style:s,line:u}=l,c=F0(l,["className","style","line"]);const f=xu(Jn({},c),{className:M0("token-line",a)});return typeof e=="object"&&"plain"in e&&(f.style=e.plain),typeof s=="object"&&(f.style=Jn(Jn({},f.style||{}),s)),f},[e]),C5=e=>{const r=T.useCallback(({types:l,empty:a})=>{if(e!=null){{if(l.length===1&&l[0]==="plain")return a!=null?{display:"inline-block"}:void 0;if(l.length===1&&a!=null)return e[l[0]]}return Object.assign(a!=null?{display:"inline-block"}:{},...l.map(s=>e[s]))}},[e]);return T.useCallback(l=>{var a=l,{token:s,className:u,style:c}=a,f=F0(a,["token","className","style"]);const h=xu(Jn({},f),{className:M0("token",...s.types,u),children:s.content,style:r(s)});return c!=null&&(h.style=Jn(Jn({},h.style||{}),c)),h},[r])},N5=/\r\n|\r|\n/,ax=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
44
44
|
`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
|
|
45
|
-
`,e[0].empty=!0)},ox=(e,r)=>{const l=e.length;return l>0&&e[l-1]===r?e:e.concat(r)},A5=e=>{const r=[[]],l=[e],a=[0],s=[e.length];let u=0,c=0,f=[];const h=[f];for(;c>-1;){for(;(u=a[c]++)<s[c];){let p,b=r[c];const v=l[c][u];if(typeof v=="string"?(b=c>0?b:["plain"],p=v):(b=ox(b,v.type),v.alias&&(b=ox(b,v.alias)),p=v.content),typeof p!="string"){c++,r.push(b),l.push(p),a.push(0),s.push(p.length);continue}const x=p.split(N5),w=x.length;f.push({types:b,content:x[0]});for(let S=1;S<w;S++)ax(f),h.push(f=[]),f.push({types:b,content:x[S]})}c--,r.pop(),l.pop(),a.pop(),s.pop()}return ax(f),h},sx=A5,T5=({prism:e,code:r,grammar:l,language:a})=>T.useMemo(()=>{if(l==null)return sx([r]);const s={code:r,grammar:l,language:a,tokens:[]};return e.hooks.run("before-tokenize",s),s.tokens=e.tokenize(r,l),e.hooks.run("after-tokenize",s),sx(s.tokens)},[r,l,a,e]),j5=(e,r)=>{const{plain:l}=e,a=e.styles.reduce((s,u)=>{const{languages:c,style:f}=u;return c&&!c.includes(r)||u.types.forEach(h=>{const p=Jn(Jn({},s[h]),f);s[h]=p}),s},{});return a.root=l,a.plain=xu(Jn({},l),{backgroundColor:void 0}),a},_5=j5,R5=({children:e,language:r,code:l,theme:a,prism:s})=>{const u=r.toLowerCase(),c=_5(a,u),f=E5(c),h=C5(c),p=s.languages[u],b=T5({prism:s,language:u,code:l,grammar:p});return e({tokens:b,className:`prism-code language-${u}`,style:c!=null?c.root:{},getLineProps:f,getTokenProps:h})},L5=e=>T.createElement(R5,xu(Jn({},e),{prism:e.prism||se,theme:e.theme||I0,code:e.code,language:e.language}));const D5="modulepreload",O5=function(e){return"/"+e},ux={},qt=function(r,l,a){let s=Promise.resolve();if(l&&l.length>0){let h=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");s=h(l.map(p=>{if(p=O5(p),p in ux)return;ux[p]=!0;const b=p.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=b?"stylesheet":D5,b||(v.as="script"),v.crossOrigin="",v.href=p,f&&v.setAttribute("nonce",f),document.head.appendChild(v),b)return new Promise((x,w)=>{v.addEventListener("load",x),v.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return s.then(c=>{for(const f of c||[])f.status==="rejected"&&u(f.reason);return r().catch(u)})},As={};function U0(e){if(!As[e]){const l={bash:()=>qt(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>qt(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>qt(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await qt(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),qt(()=>import("./prism-php-CH-HzCHi.js").then(a=>a.p),[])),sql:()=>qt(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>qt(()=>import("./prism-ruby-DJgS1ZsF.js").then(a=>a.p),[]),java:()=>qt(()=>import("./prism-java-vPlbwzUD.js").then(a=>a.p),[]),scala:async()=>(await U0("java"),qt(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>qt(()=>import("./prism-solidity-DePJfmfK.js").then(a=>a.p),[]),vim:()=>qt(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>qt(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>qt(()=>import("./prism-csharp-BpyjrzGK.js").then(a=>a.p),[]),protobuf:()=>qt(()=>import("./prism-protobuf-DiQ_z8B5.js"),[]),hcl:()=>qt(()=>import("./prism-hcl-CNTYUO5q.js").then(a=>a.p),[]),perl:()=>qt(()=>import("./prism-perl-BhZdI1gh.js").then(a=>a.p),[])}[e];if(!l)return console.warn(`No loader available for language: ${e}`),Promise.reject(new Error(`Unsupported language: ${e}`));As[e]=l().then(()=>{}).catch(a=>{throw delete As[e],console.warn(`Failed to load language: ${e}`,a),a})}return As[e]}typeof global<"u"?global.Prism=se:typeof window<"u"&&(window.Prism=se);const cx=["markup","html","xml","svg","javascript","js","typescript","ts","jsx","tsx","css","c","cpp","swift","kotlin","objectivec","reason","rust","go","graphql","yaml","yml","json","markdown","md","python","py"];function M5(e,r){const[l,a]=T.useState(()=>cx.includes(r)||!!se.languages[r]);return T.useEffect(()=>{if(!l){if(cx.includes(r)){a(!0);return}U0(r).then(()=>{a(!0)}).catch(()=>{a(!1)})}},[r,l]),{ready:l,actualLang:l?r:"text"}}const z5={js:"javascript",mjs:"javascript",cjs:"javascript",jsx:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",json:"json",xml:"xml",html:"html",css:"css",scss:"scss",sass:"sass",less:"less",md:"markdown",markdown:"markdown",tex:"latex",vim:"vim"},B5={ts:"typescript",tsx:"tsx",mts:"typescript",cts:"typescript",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",json:"json",css:"css",scss:"css",html:"html",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",md:"markdown",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",php:"php",sql:"sql",xml:"xml",swift:"swift",kt:"kotlin",scala:"scala",svelte:"svelte",r:"r",lua:"lua",perl:"perl",pl:"perl",pm:"perl",dockerfile:"docker",makefile:"makefile",gitignore:"git",env:"bash",conf:"nginx",ini:"ini",toml:"toml",sol:"solidity",vim:"vim",dart:"dart",cs:"csharp",proto:"protobuf",tf:"hcl",tfvars:"hcl",hcl:"hcl"},F5={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};function H0(e,r){if(e)return r[e.toLowerCase()]}function I5(e){return H0(Ka(e),z5)}function U5(e){const r=WE(e).toLowerCase(),l=F5[r];return l||H0(Ka(e),B5)||"text"}const fx=[{id:"github",label:"GitHub Light"},{id:"vsLight",label:"VS Light"},{id:"oneLight",label:"One Light"},{id:"gruvboxMaterialLight",label:"Gruvbox Material Light"},{id:"nightOwlLight",label:"Night Owl Light"}],dx=[{id:"vsDark",label:"VS Dark"},{id:"oneDark",label:"One Dark"},{id:"gruvboxMaterialDark",label:"Gruvbox Material Dark"},{id:"nightOwl",label:"Night Owl"},{id:"dracula",label:"Dracula"},{id:"okaidia",label:"Okaidia"}];function H5(e){return{...e,styles:e.styles.map(r=>({...r,style:{...r.style,background:void 0,backgroundColor:void 0}}))}}function q5(e){let r;switch(e){case"github":r=wn.github;break;case"vsLight":r=wn.vsLight;break;case"oneLight":r=wn.oneLight;break;case"gruvboxMaterialLight":r=wn.gruvboxMaterialLight;break;case"nightOwlLight":r=wn.nightOwlLight;break;case"vsDark":r=wn.vsDark;break;case"oneDark":r=wn.oneDark;break;case"gruvboxMaterialDark":r=wn.gruvboxMaterialDark;break;case"nightOwl":r=wn.nightOwl;break;case"dracula":r=wn.dracula;break;case"okaidia":r=wn.okaidia;break;default:r=wn.vsDark}return H5(r)}const Mh=Jt.memo(function({code:r,language:l,className:a,syntaxTheme:s="vsDark",filename:u="",renderToken:c,onMouseOver:f,onMouseOut:h}){const p=l||(u?U5(u):"text"),{actualLang:b}=M5(r,p),g=q5(s),v=T.useCallback(({style:x,tokens:w,getLineProps:S,getTokenProps:N})=>y.jsx("span",{className:a,style:{...x,background:"transparent",backgroundColor:"transparent"},onMouseOver:f,onMouseOut:h,children:w.map((E,C)=>y.jsx("span",{...S({line:E}),children:E.map((j,B)=>c?c(j,B,N):y.jsx("span",{...N({token:j})},B))},C))}),[a,f,h,c]);return y.jsx(L5,{code:r,language:b,theme:g,prism:se,children:v})});class q0{diff(r,l,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const u=this.castInput(r,a),c=this.castInput(l,a),f=this.removeEmpty(this.tokenize(u,a)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(f,h,a,s)}diffWithOptionsObj(r,l,a,s){var u;const c=C=>{if(C=this.postProcess(C,a),s){setTimeout(function(){s(C)},0);return}else return C},f=l.length,h=r.length;let p=1,b=f+h;a.maxEditLength!=null&&(b=Math.min(b,a.maxEditLength));const g=(u=a.timeout)!==null&&u!==void 0?u:1/0,v=Date.now()+g,x=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(x[0],l,r,0,a);if(x[0].oldPos+1>=h&&w+1>=f)return c(this.buildValues(x[0].lastComponent,l,r));let S=-1/0,N=1/0;const E=()=>{for(let C=Math.max(S,-p);C<=Math.min(N,p);C+=2){let j;const B=x[C-1],q=x[C+1];B&&(x[C-1]=void 0);let L=!1;if(q){const $=q.oldPos-C;L=q&&0<=$&&$<f}const I=B&&B.oldPos+1<h;if(!L&&!I){x[C]=void 0;continue}if(!I||L&&B.oldPos<q.oldPos?j=this.addToPath(q,!0,!1,0,a):j=this.addToPath(B,!1,!0,1,a),w=this.extractCommon(j,l,r,C,a),j.oldPos+1>=h&&w+1>=f)return c(this.buildValues(j.lastComponent,l,r))||!0;x[C]=j,j.oldPos+1>=h&&(N=Math.min(N,C-1)),w+1>=f&&(S=Math.max(S,C+1))}p++};if(s)(function C(){setTimeout(function(){if(p>b||Date.now()>v)return s(void 0);E()||C()},0)})();else for(;p<=b&&Date.now()<=v;){const C=E();if(C)return C}}addToPath(r,l,a,s,u){const c=r.lastComponent;return c&&!u.oneChangePerToken&&c.added===l&&c.removed===a?{oldPos:r.oldPos+s,lastComponent:{count:c.count+1,added:l,removed:a,previousComponent:c.previousComponent}}:{oldPos:r.oldPos+s,lastComponent:{count:1,added:l,removed:a,previousComponent:c}}}extractCommon(r,l,a,s,u){const c=l.length,f=a.length;let h=r.oldPos,p=h-s,b=0;for(;p+1<c&&h+1<f&&this.equals(a[h+1],l[p+1],u);)p++,h++,b++,u.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return b&&!u.oneChangePerToken&&(r.lastComponent={count:b,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=h,p}equals(r,l,a){return a.comparator?a.comparator(r,l):r===l||!!a.ignoreCase&&r.toLowerCase()===l.toLowerCase()}removeEmpty(r){const l=[];for(let a=0;a<r.length;a++)r[a]&&l.push(r[a]);return l}castInput(r,l){return r}tokenize(r,l){return Array.from(r)}join(r){return r.join("")}postProcess(r,l){return r}get useLongestToken(){return!1}buildValues(r,l,a){const s=[];let u;for(;r;)s.push(r),u=r.previousComponent,delete r.previousComponent,r=u;s.reverse();const c=s.length;let f=0,h=0,p=0;for(;f<c;f++){const b=s[f];if(b.removed)b.value=this.join(a.slice(p,p+b.count)),p+=b.count;else{if(!b.added&&this.useLongestToken){let g=l.slice(h,h+b.count);g=g.map(function(v,x){const w=a[p+x];return w.length>v.length?w:v}),b.value=this.join(g)}else b.value=this.join(l.slice(h,h+b.count));h+=b.count,b.added||(p+=b.count)}}return s}}function hx(e,r){let l;for(l=0;l<e.length&&l<r.length;l++)if(e[l]!=r[l])return e.slice(0,l);return e.slice(0,l)}function px(e,r){let l;if(!e||!r||e[e.length-1]!=r[r.length-1])return"";for(l=0;l<e.length&&l<r.length;l++)if(e[e.length-(l+1)]!=r[r.length-(l+1)])return e.slice(-l);return e.slice(-l)}function Zd(e,r,l){if(e.slice(0,r.length)!=r)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(r)}; this is a bug`);return l+e.slice(r.length)}function Qd(e,r,l){if(!r)return e+l;if(e.slice(-r.length)!=r)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(r)}; this is a bug`);return e.slice(0,-r.length)+l}function Da(e,r){return Zd(e,r,"")}function Ts(e,r){return Qd(e,r,"")}function mx(e,r){return r.slice(0,P5(e,r))}function P5(e,r){let l=0;e.length>r.length&&(l=e.length-r.length);let a=r.length;e.length<r.length&&(a=e.length);const s=Array(a);let u=0;s[0]=0;for(let c=1;c<a;c++){for(r[c]==r[u]?s[c]=s[u]:s[c]=u;u>0&&r[c]!=r[u];)u=s[u];r[c]==r[u]&&u++}u=0;for(let c=l;c<e.length;c++){for(;u>0&&e[c]!=r[u];)u=s[u];e[c]==r[u]&&u++}return u}function Oa(e){let r;for(r=e.length-1;r>=0&&e[r].match(/\s/);r--);return e.substring(r+1)}function el(e){const r=e.match(/^\s*/);return r?r[0]:""}const gx="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",$5=new RegExp(`[${gx}]+|\\s+|[^${gx}]`,"ug");class V5 extends q0{equals(r,l,a){return a.ignoreCase&&(r=r.toLowerCase(),l=l.toLowerCase()),r.trim()===l.trim()}tokenize(r,l={}){let a;if(l.intlSegmenter){const c=l.intlSegmenter;if(c.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');a=[];for(const f of Array.from(c.segment(r))){const h=f.segment;a.length&&/\s/.test(a[a.length-1])&&/\s/.test(h)?a[a.length-1]+=h:a.push(h)}}else a=r.match($5)||[];const s=[];let u=null;return a.forEach(c=>{/\s/.test(c)?u==null?s.push(c):s.push(s.pop()+c):u!=null&&/\s/.test(u)?s[s.length-1]==u?s.push(s.pop()+c):s.push(u+c):s.push(c),u=c}),s}join(r){return r.map((l,a)=>a==0?l:l.replace(/^\s+/,"")).join("")}postProcess(r,l){if(!r||l.oneChangePerToken)return r;let a=null,s=null,u=null;return r.forEach(c=>{c.added?s=c:c.removed?u=c:((s||u)&&bx(a,u,s,c),a=c,s=null,u=null)}),(s||u)&&bx(a,u,s,null),r}}const G5=new V5;function P0(e,r,l){return G5.diff(e,r,l)}function bx(e,r,l,a){if(r&&l){const s=el(r.value),u=Oa(r.value),c=el(l.value),f=Oa(l.value);if(e){const h=hx(s,c);e.value=Qd(e.value,c,h),r.value=Da(r.value,h),l.value=Da(l.value,h)}if(a){const h=px(u,f);a.value=Zd(a.value,f,h),r.value=Ts(r.value,h),l.value=Ts(l.value,h)}}else if(l){if(e){const s=el(l.value);l.value=l.value.substring(s.length)}if(a){const s=el(a.value);a.value=a.value.substring(s.length)}}else if(e&&a){const s=el(a.value),u=el(r.value),c=Oa(r.value),f=hx(s,u);r.value=Da(r.value,f);const h=px(Da(s,f),c);r.value=Ts(r.value,h),a.value=Zd(a.value,s,h),e.value=Qd(e.value,s,s.slice(0,s.length-h.length))}else if(a){const s=el(a.value),u=Oa(r.value),c=mx(u,s);r.value=Ts(r.value,c)}else if(e){const s=Oa(e.value),u=el(r.value),c=mx(s,u);r.value=Da(r.value,c)}}class Y5 extends q0{constructor(){super(...arguments),this.tokenize=Q5}equals(r,l,a){return a.ignoreWhitespace?((!a.newlineIsToken||!r.includes(`
|
|
45
|
+
`,e[0].empty=!0)},ox=(e,r)=>{const l=e.length;return l>0&&e[l-1]===r?e:e.concat(r)},A5=e=>{const r=[[]],l=[e],a=[0],s=[e.length];let u=0,c=0,f=[];const h=[f];for(;c>-1;){for(;(u=a[c]++)<s[c];){let p,b=r[c];const v=l[c][u];if(typeof v=="string"?(b=c>0?b:["plain"],p=v):(b=ox(b,v.type),v.alias&&(b=ox(b,v.alias)),p=v.content),typeof p!="string"){c++,r.push(b),l.push(p),a.push(0),s.push(p.length);continue}const x=p.split(N5),w=x.length;f.push({types:b,content:x[0]});for(let S=1;S<w;S++)ax(f),h.push(f=[]),f.push({types:b,content:x[S]})}c--,r.pop(),l.pop(),a.pop(),s.pop()}return ax(f),h},sx=A5,T5=({prism:e,code:r,grammar:l,language:a})=>T.useMemo(()=>{if(l==null)return sx([r]);const s={code:r,grammar:l,language:a,tokens:[]};return e.hooks.run("before-tokenize",s),s.tokens=e.tokenize(r,l),e.hooks.run("after-tokenize",s),sx(s.tokens)},[r,l,a,e]),j5=(e,r)=>{const{plain:l}=e,a=e.styles.reduce((s,u)=>{const{languages:c,style:f}=u;return c&&!c.includes(r)||u.types.forEach(h=>{const p=Jn(Jn({},s[h]),f);s[h]=p}),s},{});return a.root=l,a.plain=xu(Jn({},l),{backgroundColor:void 0}),a},_5=j5,R5=({children:e,language:r,code:l,theme:a,prism:s})=>{const u=r.toLowerCase(),c=_5(a,u),f=E5(c),h=C5(c),p=s.languages[u],b=T5({prism:s,language:u,code:l,grammar:p});return e({tokens:b,className:`prism-code language-${u}`,style:c!=null?c.root:{},getLineProps:f,getTokenProps:h})},L5=e=>T.createElement(R5,xu(Jn({},e),{prism:e.prism||se,theme:e.theme||I0,code:e.code,language:e.language}));const D5="modulepreload",O5=function(e){return"/"+e},ux={},qt=function(r,l,a){let s=Promise.resolve();if(l&&l.length>0){let h=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");s=h(l.map(p=>{if(p=O5(p),p in ux)return;ux[p]=!0;const b=p.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=b?"stylesheet":D5,b||(v.as="script"),v.crossOrigin="",v.href=p,f&&v.setAttribute("nonce",f),document.head.appendChild(v),b)return new Promise((x,w)=>{v.addEventListener("load",x),v.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return s.then(c=>{for(const f of c||[])f.status==="rejected"&&u(f.reason);return r().catch(u)})},As={};function U0(e){if(!As[e]){const l={bash:()=>qt(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>qt(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>qt(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await qt(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),qt(()=>import("./prism-php-BzFHnoKk.js").then(a=>a.p),[])),sql:()=>qt(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>qt(()=>import("./prism-ruby-_Fv626ts.js").then(a=>a.p),[]),java:()=>qt(()=>import("./prism-java-DKu7Mdwl.js").then(a=>a.p),[]),scala:async()=>(await U0("java"),qt(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>qt(()=>import("./prism-solidity-DNmqWy7k.js").then(a=>a.p),[]),vim:()=>qt(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>qt(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>qt(()=>import("./prism-csharp-CpJpO3Rp.js").then(a=>a.p),[]),protobuf:()=>qt(()=>import("./prism-protobuf-DiQ_z8B5.js"),[]),hcl:()=>qt(()=>import("./prism-hcl-D3OomFiZ.js").then(a=>a.p),[]),perl:()=>qt(()=>import("./prism-perl-BcSVuy7b.js").then(a=>a.p),[])}[e];if(!l)return console.warn(`No loader available for language: ${e}`),Promise.reject(new Error(`Unsupported language: ${e}`));As[e]=l().then(()=>{}).catch(a=>{throw delete As[e],console.warn(`Failed to load language: ${e}`,a),a})}return As[e]}typeof global<"u"?global.Prism=se:typeof window<"u"&&(window.Prism=se);const cx=["markup","html","xml","svg","javascript","js","typescript","ts","jsx","tsx","css","c","cpp","swift","kotlin","objectivec","reason","rust","go","graphql","yaml","yml","json","markdown","md","python","py"];function M5(e,r){const[l,a]=T.useState(()=>cx.includes(r)||!!se.languages[r]);return T.useEffect(()=>{if(!l){if(cx.includes(r)){a(!0);return}U0(r).then(()=>{a(!0)}).catch(()=>{a(!1)})}},[r,l]),{ready:l,actualLang:l?r:"text"}}const z5={js:"javascript",mjs:"javascript",cjs:"javascript",jsx:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",json:"json",xml:"xml",html:"html",css:"css",scss:"scss",sass:"sass",less:"less",md:"markdown",markdown:"markdown",tex:"latex",vim:"vim"},B5={ts:"typescript",tsx:"tsx",mts:"typescript",cts:"typescript",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",json:"json",css:"css",scss:"css",html:"html",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",md:"markdown",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",php:"php",sql:"sql",xml:"xml",swift:"swift",kt:"kotlin",scala:"scala",svelte:"svelte",r:"r",lua:"lua",perl:"perl",pl:"perl",pm:"perl",dockerfile:"docker",makefile:"makefile",gitignore:"git",env:"bash",conf:"nginx",ini:"ini",toml:"toml",sol:"solidity",vim:"vim",dart:"dart",cs:"csharp",proto:"protobuf",tf:"hcl",tfvars:"hcl",hcl:"hcl"},F5={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};function H0(e,r){if(e)return r[e.toLowerCase()]}function I5(e){return H0(Ka(e),z5)}function U5(e){const r=WE(e).toLowerCase(),l=F5[r];return l||H0(Ka(e),B5)||"text"}const fx=[{id:"github",label:"GitHub Light"},{id:"vsLight",label:"VS Light"},{id:"oneLight",label:"One Light"},{id:"gruvboxMaterialLight",label:"Gruvbox Material Light"},{id:"nightOwlLight",label:"Night Owl Light"}],dx=[{id:"vsDark",label:"VS Dark"},{id:"oneDark",label:"One Dark"},{id:"gruvboxMaterialDark",label:"Gruvbox Material Dark"},{id:"nightOwl",label:"Night Owl"},{id:"dracula",label:"Dracula"},{id:"okaidia",label:"Okaidia"}];function H5(e){return{...e,styles:e.styles.map(r=>({...r,style:{...r.style,background:void 0,backgroundColor:void 0}}))}}function q5(e){let r;switch(e){case"github":r=wn.github;break;case"vsLight":r=wn.vsLight;break;case"oneLight":r=wn.oneLight;break;case"gruvboxMaterialLight":r=wn.gruvboxMaterialLight;break;case"nightOwlLight":r=wn.nightOwlLight;break;case"vsDark":r=wn.vsDark;break;case"oneDark":r=wn.oneDark;break;case"gruvboxMaterialDark":r=wn.gruvboxMaterialDark;break;case"nightOwl":r=wn.nightOwl;break;case"dracula":r=wn.dracula;break;case"okaidia":r=wn.okaidia;break;default:r=wn.vsDark}return H5(r)}const Mh=Jt.memo(function({code:r,language:l,className:a,syntaxTheme:s="vsDark",filename:u="",renderToken:c,onMouseOver:f,onMouseOut:h}){const p=l||(u?U5(u):"text"),{actualLang:b}=M5(r,p),g=q5(s),v=T.useCallback(({style:x,tokens:w,getLineProps:S,getTokenProps:N})=>y.jsx("span",{className:a,style:{...x,background:"transparent",backgroundColor:"transparent"},onMouseOver:f,onMouseOut:h,children:w.map((E,C)=>y.jsx("span",{...S({line:E}),children:E.map((j,B)=>c?c(j,B,N):y.jsx("span",{...N({token:j})},B))},C))}),[a,f,h,c]);return y.jsx(L5,{code:r,language:b,theme:g,prism:se,children:v})});class q0{diff(r,l,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const u=this.castInput(r,a),c=this.castInput(l,a),f=this.removeEmpty(this.tokenize(u,a)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(f,h,a,s)}diffWithOptionsObj(r,l,a,s){var u;const c=C=>{if(C=this.postProcess(C,a),s){setTimeout(function(){s(C)},0);return}else return C},f=l.length,h=r.length;let p=1,b=f+h;a.maxEditLength!=null&&(b=Math.min(b,a.maxEditLength));const g=(u=a.timeout)!==null&&u!==void 0?u:1/0,v=Date.now()+g,x=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(x[0],l,r,0,a);if(x[0].oldPos+1>=h&&w+1>=f)return c(this.buildValues(x[0].lastComponent,l,r));let S=-1/0,N=1/0;const E=()=>{for(let C=Math.max(S,-p);C<=Math.min(N,p);C+=2){let j;const B=x[C-1],q=x[C+1];B&&(x[C-1]=void 0);let L=!1;if(q){const $=q.oldPos-C;L=q&&0<=$&&$<f}const I=B&&B.oldPos+1<h;if(!L&&!I){x[C]=void 0;continue}if(!I||L&&B.oldPos<q.oldPos?j=this.addToPath(q,!0,!1,0,a):j=this.addToPath(B,!1,!0,1,a),w=this.extractCommon(j,l,r,C,a),j.oldPos+1>=h&&w+1>=f)return c(this.buildValues(j.lastComponent,l,r))||!0;x[C]=j,j.oldPos+1>=h&&(N=Math.min(N,C-1)),w+1>=f&&(S=Math.max(S,C+1))}p++};if(s)(function C(){setTimeout(function(){if(p>b||Date.now()>v)return s(void 0);E()||C()},0)})();else for(;p<=b&&Date.now()<=v;){const C=E();if(C)return C}}addToPath(r,l,a,s,u){const c=r.lastComponent;return c&&!u.oneChangePerToken&&c.added===l&&c.removed===a?{oldPos:r.oldPos+s,lastComponent:{count:c.count+1,added:l,removed:a,previousComponent:c.previousComponent}}:{oldPos:r.oldPos+s,lastComponent:{count:1,added:l,removed:a,previousComponent:c}}}extractCommon(r,l,a,s,u){const c=l.length,f=a.length;let h=r.oldPos,p=h-s,b=0;for(;p+1<c&&h+1<f&&this.equals(a[h+1],l[p+1],u);)p++,h++,b++,u.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return b&&!u.oneChangePerToken&&(r.lastComponent={count:b,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=h,p}equals(r,l,a){return a.comparator?a.comparator(r,l):r===l||!!a.ignoreCase&&r.toLowerCase()===l.toLowerCase()}removeEmpty(r){const l=[];for(let a=0;a<r.length;a++)r[a]&&l.push(r[a]);return l}castInput(r,l){return r}tokenize(r,l){return Array.from(r)}join(r){return r.join("")}postProcess(r,l){return r}get useLongestToken(){return!1}buildValues(r,l,a){const s=[];let u;for(;r;)s.push(r),u=r.previousComponent,delete r.previousComponent,r=u;s.reverse();const c=s.length;let f=0,h=0,p=0;for(;f<c;f++){const b=s[f];if(b.removed)b.value=this.join(a.slice(p,p+b.count)),p+=b.count;else{if(!b.added&&this.useLongestToken){let g=l.slice(h,h+b.count);g=g.map(function(v,x){const w=a[p+x];return w.length>v.length?w:v}),b.value=this.join(g)}else b.value=this.join(l.slice(h,h+b.count));h+=b.count,b.added||(p+=b.count)}}return s}}function hx(e,r){let l;for(l=0;l<e.length&&l<r.length;l++)if(e[l]!=r[l])return e.slice(0,l);return e.slice(0,l)}function px(e,r){let l;if(!e||!r||e[e.length-1]!=r[r.length-1])return"";for(l=0;l<e.length&&l<r.length;l++)if(e[e.length-(l+1)]!=r[r.length-(l+1)])return e.slice(-l);return e.slice(-l)}function Zd(e,r,l){if(e.slice(0,r.length)!=r)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(r)}; this is a bug`);return l+e.slice(r.length)}function Qd(e,r,l){if(!r)return e+l;if(e.slice(-r.length)!=r)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(r)}; this is a bug`);return e.slice(0,-r.length)+l}function Da(e,r){return Zd(e,r,"")}function Ts(e,r){return Qd(e,r,"")}function mx(e,r){return r.slice(0,P5(e,r))}function P5(e,r){let l=0;e.length>r.length&&(l=e.length-r.length);let a=r.length;e.length<r.length&&(a=e.length);const s=Array(a);let u=0;s[0]=0;for(let c=1;c<a;c++){for(r[c]==r[u]?s[c]=s[u]:s[c]=u;u>0&&r[c]!=r[u];)u=s[u];r[c]==r[u]&&u++}u=0;for(let c=l;c<e.length;c++){for(;u>0&&e[c]!=r[u];)u=s[u];e[c]==r[u]&&u++}return u}function Oa(e){let r;for(r=e.length-1;r>=0&&e[r].match(/\s/);r--);return e.substring(r+1)}function el(e){const r=e.match(/^\s*/);return r?r[0]:""}const gx="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",$5=new RegExp(`[${gx}]+|\\s+|[^${gx}]`,"ug");class V5 extends q0{equals(r,l,a){return a.ignoreCase&&(r=r.toLowerCase(),l=l.toLowerCase()),r.trim()===l.trim()}tokenize(r,l={}){let a;if(l.intlSegmenter){const c=l.intlSegmenter;if(c.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');a=[];for(const f of Array.from(c.segment(r))){const h=f.segment;a.length&&/\s/.test(a[a.length-1])&&/\s/.test(h)?a[a.length-1]+=h:a.push(h)}}else a=r.match($5)||[];const s=[];let u=null;return a.forEach(c=>{/\s/.test(c)?u==null?s.push(c):s.push(s.pop()+c):u!=null&&/\s/.test(u)?s[s.length-1]==u?s.push(s.pop()+c):s.push(u+c):s.push(c),u=c}),s}join(r){return r.map((l,a)=>a==0?l:l.replace(/^\s+/,"")).join("")}postProcess(r,l){if(!r||l.oneChangePerToken)return r;let a=null,s=null,u=null;return r.forEach(c=>{c.added?s=c:c.removed?u=c:((s||u)&&bx(a,u,s,c),a=c,s=null,u=null)}),(s||u)&&bx(a,u,s,null),r}}const G5=new V5;function P0(e,r,l){return G5.diff(e,r,l)}function bx(e,r,l,a){if(r&&l){const s=el(r.value),u=Oa(r.value),c=el(l.value),f=Oa(l.value);if(e){const h=hx(s,c);e.value=Qd(e.value,c,h),r.value=Da(r.value,h),l.value=Da(l.value,h)}if(a){const h=px(u,f);a.value=Zd(a.value,f,h),r.value=Ts(r.value,h),l.value=Ts(l.value,h)}}else if(l){if(e){const s=el(l.value);l.value=l.value.substring(s.length)}if(a){const s=el(a.value);a.value=a.value.substring(s.length)}}else if(e&&a){const s=el(a.value),u=el(r.value),c=Oa(r.value),f=hx(s,u);r.value=Da(r.value,f);const h=px(Da(s,f),c);r.value=Ts(r.value,h),a.value=Zd(a.value,s,h),e.value=Qd(e.value,s,s.slice(0,s.length-h.length))}else if(a){const s=el(a.value),u=Oa(r.value),c=mx(u,s);r.value=Ts(r.value,c)}else if(e){const s=Oa(e.value),u=el(r.value),c=mx(s,u);r.value=Da(r.value,c)}}class Y5 extends q0{constructor(){super(...arguments),this.tokenize=Q5}equals(r,l,a){return a.ignoreWhitespace?((!a.newlineIsToken||!r.includes(`
|
|
46
46
|
`))&&(r=r.trim()),(!a.newlineIsToken||!l.includes(`
|
|
47
47
|
`))&&(l=l.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(r.endsWith(`
|
|
48
48
|
`)&&(r=r.slice(0,-1)),l.endsWith(`
|
|
49
49
|
`)&&(l=l.slice(0,-1))),super.equals(r,l,a)}}const X5=new Y5;function Z5(e,r,l){return X5.diff(e,r,l)}function Q5(e,r){r.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
50
50
|
`));const l=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let s=0;s<a.length;s++){const u=a[s];s%2&&!r.newlineIsToken?l[l.length-1]+=u:l.push(u)}return l}function $0(e,r){const l=P0(e,r),a=[],s=[];for(const u of l)u.added?s.push({value:u.value,type:"added"}):u.removed?a.push({value:u.value,type:"removed"}):(a.push({value:u.value,type:"unchanged"}),s.push({value:u.value,type:"unchanged"}));return{oldSegments:a,newSegments:s}}function V0(e,r){if(!e.trim()||!r.trim()||e===r)return!1;const l=P0(e,r);let a=0,s=0;for(const c of l)s+=c.value.length,!c.added&&!c.removed&&(a+=c.value.length);return a/s>=.2}function G0({onSubmit:e,onCancel:r}){const[l,a]=T.useState(""),[s,u]=T.useState(!1),c=async p=>{if(p.preventDefault(),!!l.trim()){u(!0);try{await e(l.trim()),a("")}catch(b){console.error("Failed to submit comment:",b)}finally{u(!1)}}},f=p=>{p.key==="Enter"&&(p.metaKey||p.ctrlKey)?c(p):p.key==="Escape"&&r()},h=/Macintosh|Mac OS X/.test(navigator.userAgent)?"Cmd":"Ctrl";return y.jsxs("form",{className:"m-2 mx-3 p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400",onSubmit:c,"data-empty":!l.trim(),children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-yellow-path-text)"},children:"Add a comment"}),y.jsxs("span",{className:"text-xs text-github-text-muted",children:[h,"+Enter to submit • Escape to cancel"]})]}),y.jsx("textarea",{className:"w-full min-h-[60px] mb-2 resize-y bg-github-bg-secondary border border-github-border rounded px-3 py-2 text-github-text-primary text-sm leading-6 focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-600/30 focus:min-h-[80px] disabled:opacity-50",value:l,onChange:p=>a(p.target.value),onKeyDown:f,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:s}),y.jsxs("div",{className:"flex gap-2 justify-end",children:[y.jsx("button",{type:"button",onClick:r,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all disabled:opacity-50",disabled:s,children:"Cancel"}),y.jsx("button",{type:"submit",className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:p=>{p.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",p.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",p.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!l.trim()||s,children:s?"Submitting...":"Submit"})]})]})}const Zs=Jt.memo(({onMouseDown:e,onMouseUp:r,title:l="Add a comment"})=>y.jsx("button",{className:"absolute -right-2 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10","data-comment-button":"true",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",a.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",a.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:e,onMouseUp:r,title:l,children:y.jsx(Qx,{className:"w-4 h-4"})}));Zs.displayName="CommentButton";const K5=2,J5=100;function W5(e){return!(e.length<K5||e.length>J5)}function yx(e){return e.toLowerCase()}function xx(e){const r=e.trim();return r?r.match(/^\w+$/)!==null&&W5(r):!1}const e8=200,Y0=T.createContext(void 0);function t8({children:e}){const[r,l]=T.useState(null),a=T.useRef(null),s=T.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null)},[]),u=T.useCallback(p=>{const b=p.target;if(!b.classList.contains("word-token"))return;s();const g=b.getAttribute("data-word");g&&(a.current=setTimeout(()=>{l(g)},e8))},[s]),c=T.useCallback(()=>{s(),l(null)},[s]),f=T.useCallback(p=>r?yx(p)===yx(r):!1,[r]);T.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]);const h={highlightedWord:r,handleMouseOver:u,handleMouseOut:c,isWordHighlighted:f};return y.jsx(Y0.Provider,{value:h,children:e})}function n8(){const e=T.useContext(Y0);if(!e)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return e}const Ga=Jt.memo(function(r){const{handleMouseOver:l,handleMouseOut:a,isWordHighlighted:s}=n8(),u=T.useCallback((c,f,h)=>{const p=h({token:c}),b=c.content.split(/( +)/);if(b.length===1&&b[0]&&!xx(b[0]))return y.jsx("span",{...p},f);const g=b.map((v,x)=>{if(!v)return null;if(xx(v)){const w=v.trim(),S=s(w);return y.jsx("span",{className:`word-token ${S?"word-highlight":""}`,"data-word":w,children:v},`${f}-${x}`)}return y.jsx("span",{children:v},`${f}-${x}`)});return y.jsx("span",{...p,children:g},f)},[s]);return y.jsx(Mh,{...r,renderToken:u,onMouseOver:l,onMouseOut:a})}),Qs=Jt.memo(({onClick:e,title:r="Open in editor",className:l})=>y.jsx("button",{className:`absolute -right-10 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10 ${l||""}`,"data-open-in-editor-button":"true",style:{backgroundColor:"var(--color-editor-btn-bg)",color:"var(--color-editor-btn-text)",border:"1px solid var(--color-editor-btn-border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="var(--color-editor-btn-hover-bg)",a.currentTarget.style.borderColor="var(--color-editor-btn-hover-border)"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="var(--color-editor-btn-bg)",a.currentTarget.style.borderColor="var(--color-editor-btn-border)"},onMouseDown:a=>{a.stopPropagation()},onClick:a=>{a.stopPropagation(),e(a)},title:r,children:y.jsx(mS,{className:"w-4 h-4 opacity-80"})}));Qs.displayName="OpenInEditorButton";const Kd=Jt.memo(function({segments:r,className:l=""}){const a=T.useMemo(()=>r.map((s,u)=>{const c=s.type==="added"?"word-diff-added":s.type==="removed"?"word-diff-removed":"";return y.jsx("span",{className:c,children:s.value},u)}),[r]);return y.jsx("span",{className:l,children:a})}),r8=e=>{if("isExpanded"in e&&e.isExpanded)return"bg-github-bg-tertiary/80";switch(e.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},l8=e=>{switch(e.type){case"add":return"+";case"delete":return"-";default:return" "}},X0=Jt.memo(({line:e,index:r,lineId:l,isCurrentLine:a=!1,hoveredLineIndex:s,selectedLineStyle:u,onMouseEnter:c,onMouseLeave:f,onMouseMove:h,onCommentButtonMouseDown:p,onCommentButtonMouseUp:b,onOpenInEditor:g,syntaxTheme:v,onClick:x,filename:w,diffSegments:S})=>{const N=e.newLineNumber||e.oldLineNumber,E=s===r&&N,C=a?"keyboard-cursor":"";return y.jsxs("tr",{id:l,className:`group ${r8(e)} relative ${u} ${C} cursor-pointer`,onMouseEnter:c,onMouseLeave:f,onMouseMove:h,onClick:x,children:[y.jsx("td",{className:"w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative",children:e.oldLineNumber||""}),y.jsxs("td",{className:"w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible",children:[y.jsx("span",{children:e.newLineNumber||""}),E&&y.jsxs(y.Fragment,{children:[g&&y.jsx(Qs,{onClick:g}),y.jsx(Zs,{onMouseDown:p,onMouseUp:b})]})]}),y.jsx("td",{className:"p-0 w-full relative align-top",children:y.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[y.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${e.type==="add"?"text-github-accent bg-diff-addition-bg":e.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:l8(e)}),S?y.jsx(Kd,{segments:S,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Ga,{code:e.content,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:v,filename:w})]})})]})});X0.displayName="DiffLineRow";const vx=e=>e!==void 0&&"isExpanded"in e&&e.isExpanded===!0,wx=(e,r)=>r?"bg-github-bg-tertiary/80":e?.type==="delete"?"bg-diff-deletion-bg":e?.type==="add"?"bg-diff-addition-bg":e?.type==="normal"?"bg-transparent":"bg-github-bg-secondary";function i8({chunk:e,chunkIndex:r,comments:l,onAddComment:a,onGeneratePrompt:s,onRemoveComment:u,onUpdateComment:c,syntaxTheme:f,cursor:h=null,fileIndex:p=0,onLineClick:b,commentTrigger:g,onCommentTriggerHandled:v,filename:x,onOpenInEditor:w}){const[S,N]=T.useState(null),[E,C]=T.useState(null),[j,B]=T.useState(!1),[q,L]=T.useState(null),[I,$]=T.useState(null);T.useEffect(()=>{if(g?.lineIndex!==void 0){const O=e.lines[g.lineIndex];if(O&&O.type!=="delete"){const z=O.newLineNumber;z&&(L({side:"new",lineNumber:z}),v?.())}}},[g,e.lines,v]),T.useEffect(()=>{if(j){const O=()=>{B(!1),N(null),C(null)};return document.addEventListener("mouseup",O),()=>{document.removeEventListener("mouseup",O)}}},[j]);const G=T.useCallback((O,z)=>{q?.side===O&&q?.lineNumber===z?L(null):L({side:O,lineNumber:z})},[q]),M=T.useCallback(()=>{L(null)},[]),V=T.useCallback(async O=>{q!==null&&(await a(q.lineNumber,O,void 0,q.side),L(null))},[q,a]),Y=(O,z)=>l.filter(Q=>{const _=Array.isArray(Q.line)?Q.line[1]===O:Q.line===O,D=!Q.side||Q.side===z;return _&&D}),J=O=>O.oldLine?.type==="delete"&&O.newLine?.type==="add"?O.newLineNumber?"right":"left":O.oldLine?.type==="delete"?"left":O.newLine?.type==="add"?"right":"full",U=(O,z)=>{const Q=O==="old"?z.oldLineNumber:z.newLineNumber;if(!Q)return"";if(j&&S&&E&&S.side===O&&E.side===O){const _=Math.min(S.lineNumber,E.lineNumber),D=Math.max(S.lineNumber,E.lineNumber);if(Q>=_&&Q<=D){let H="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return Q===_&&(H+=" after:border-t-2"),Q===D&&(H+=" after:border-b-2"),H}}if(q&&q.side===O){const _=Array.isArray(q.lineNumber)?q.lineNumber:[q.lineNumber,q.lineNumber],D=_[0],H=_[1];if(D!==void 0&&H!==void 0&&Q>=D&&Q<=H)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},X=T.useCallback(O=>{const z=[];let Q=e.oldStart,_=e.newStart,D=0;for(;D<O.length;){const H=O[D];if(!H){D++;continue}if(H.type==="normal")z.push({oldLine:H,newLine:{...H},oldLineNumber:H.oldLineNumber??Q,newLineNumber:H.newLineNumber??_,oldLineOriginalIndex:D,newLineOriginalIndex:D}),Q++,_++,D++;else if(H.type==="delete"){let A=D+1;for(;A<O.length&&O[A]?.type==="delete";)A++;const te=O.slice(D,A),ue=D,fe=[],pe=A;for(;A<O.length&&O[A]?.type==="add";){const de=O[A];de&&fe.push(de),A++}const me=Math.max(te.length,fe.length);for(let de=0;de<me;de++){const ge=te[de],xe=fe[de];let be;ge&&xe&&V0(ge.content,xe.content)&&(be=$0(ge.content,xe.content)),z.push({oldLine:ge,newLine:xe,oldLineNumber:ge?ge.oldLineNumber??Q+de:void 0,newLineNumber:xe?xe.newLineNumber??_+de:void 0,oldLineOriginalIndex:ge?ue+de:void 0,newLineOriginalIndex:xe?pe+de:void 0,wordLevelDiff:be})}Q+=te.length,_+=fe.length,D=A}else H.type==="add"&&(z.push({newLine:H,newLineNumber:H.newLineNumber??_,newLineOriginalIndex:D}),_++,D++)}return z},[e.oldStart,e.newStart]),F=T.useMemo(()=>X(e.lines),[e.lines,X]);return y.jsx("div",{className:"bg-github-bg-primary overflow-hidden",children:y.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:y.jsx("tbody",{children:F.map((O,z)=>{const Q=O.oldLineNumber?Y(O.oldLineNumber,"old"):[],_=O.newLineNumber?Y(O.newLineNumber,"new"):[],D=[...Q,..._],H=O.oldLineOriginalIndex??-1,A=O.newLineOriginalIndex??-1,te=h?h.side==="left"&&H>=0?h.chunkIndex===r&&h.lineIndex===H:h.side==="right"&&A>=0?h.chunkIndex===r&&h.lineIndex===A:!1:!1,ue=H>=0?`file-${p}-chunk-${r}-line-${H}-left`:void 0,fe=A>=0?`file-${p}-chunk-${r}-line-${A}-right`:void 0,pe=te&&h?.side==="left",me=te&&h?.side==="right",de="keyboard-cursor";return y.jsxs(Jt.Fragment,{children:[y.jsxs("tr",{className:"group cursor-pointer",onClick:ge=>{if(!j){const xe=ge.target,be=xe.closest("td:nth-child(1)")||xe.closest("td:nth-child(2)"),ke=xe.closest("td:nth-child(3)")||xe.closest("td:nth-child(4)");be&&H>=0?b?.(p,r,H,"left"):ke&&A>=0&&b?.(p,r,A,"right")}},onMouseEnter:ge=>{const xe=ge.target,be=xe.closest("td:nth-child(1)")||xe.closest("td:nth-child(2)"),ke=xe.closest("td:nth-child(3)")||xe.closest("td:nth-child(4)");be&&O.oldLineNumber?$({side:"old",lineNumber:O.oldLineNumber}):ke&&O.newLineNumber&&$({side:"new",lineNumber:O.newLineNumber})},onMouseMove:ge=>{const xe=ge.target,be=xe.closest("td:nth-child(1)")||xe.closest("td:nth-child(2)"),ke=xe.closest("td:nth-child(3)")||xe.closest("td:nth-child(4)");be&&O.oldLineNumber?(I?.side!=="old"||I?.lineNumber!==O.oldLineNumber)&&$({side:"old",lineNumber:O.oldLineNumber}):ke&&O.newLineNumber&&(I?.side!=="new"||I?.lineNumber!==O.newLineNumber)&&$({side:"new",lineNumber:O.newLineNumber}),j&&S&&(S.side==="old"&&O.oldLineNumber?C({side:"old",lineNumber:O.oldLineNumber}):S.side==="new"&&O.newLineNumber&&C({side:"new",lineNumber:O.newLineNumber}))},onMouseLeave:()=>$(null),children:[y.jsxs("td",{id:ue,className:`w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${pe?de:""}`,children:[y.jsx("span",{children:O.oldLineNumber||""}),I?.side==="old"&&I?.lineNumber===O.oldLineNumber&&y.jsxs(y.Fragment,{children:[w&&O.oldLine?.type!=="delete"&&O.newLineNumber!==void 0&&y.jsx(Qs,{onClick:()=>{const ge=O.newLineNumber;!x||ge===void 0||w(x,ge)}}),y.jsx(Zs,{onMouseDown:ge=>{ge.stopPropagation(),O.oldLineNumber&&(N({side:"old",lineNumber:O.oldLineNumber}),C({side:"old",lineNumber:O.oldLineNumber}),B(!0))},onMouseUp:ge=>{if(ge.stopPropagation(),!O.oldLineNumber||!S){B(!1),N(null),C(null);return}const xe=E&&E.side==="old"?E.lineNumber:O.oldLineNumber;if(S.side!=="old"||S.lineNumber===xe)G("old",O.oldLineNumber);else{const be=Math.min(S.lineNumber,xe),ke=Math.max(S.lineNumber,xe);G("old",[be,ke])}B(!1),N(null),C(null)}})]})]}),y.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${wx(O.oldLine,vx(O.oldLine))} ${U("old",O)} ${pe?de:""}`,children:O.oldLine&&y.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:O.wordLevelDiff?y.jsx(Kd,{segments:O.wordLevelDiff.oldSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Ga,{code:O.oldLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:f,filename:x})})}),y.jsxs("td",{id:fe,className:`w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${me?de:""}`,children:[y.jsx("span",{children:O.newLineNumber||""}),I?.side==="new"&&I?.lineNumber===O.newLineNumber&&y.jsxs(y.Fragment,{children:[w&&y.jsx(Qs,{onClick:()=>{const ge=O.newLineNumber;!x||ge===void 0||w(x,ge)}}),y.jsx(Zs,{onMouseDown:ge=>{ge.stopPropagation(),O.newLineNumber&&(N({side:"new",lineNumber:O.newLineNumber}),C({side:"new",lineNumber:O.newLineNumber}),B(!0))},onMouseUp:ge=>{if(ge.stopPropagation(),!O.newLineNumber||!S){B(!1),N(null),C(null);return}const xe=E&&E.side==="new"?E.lineNumber:O.newLineNumber;if(S.side!=="new"||S.lineNumber===xe)G("new",O.newLineNumber);else{const be=Math.min(S.lineNumber,xe),ke=Math.max(S.lineNumber,xe);G("new",[be,ke])}B(!1),N(null),C(null)}})]})]}),y.jsx("td",{className:`w-1/2 p-0 align-top relative ${wx(O.newLine,vx(O.newLine))} ${U("new",O)} ${me?de:""}`,children:O.newLine&&y.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:O.wordLevelDiff?y.jsx(Kd,{segments:O.wordLevelDiff.newSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Ga,{code:O.newLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:f,filename:x})})})]}),D.length>0&&y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:D.map(ge=>{const xe=ge.side||"new";let be;return xe==="old"&&O.oldLineNumber?be="left":xe==="new"&&O.newLineNumber?be="right":be=J(O),y.jsx("div",{className:`flex ${be==="left"?"justify-start":be==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${be==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:y.jsx(ah,{comment:ge,onGeneratePrompt:s,onRemoveComment:u,onUpdateComment:c})})},ge.id)})})}),q&&(q.side==="old"&&q.lineNumber===O.oldLineNumber||q.side==="new"&&q.lineNumber===O.newLineNumber||Array.isArray(q.lineNumber)&&(q.side==="new"&&q.lineNumber[1]===O.newLineNumber||q.side==="old"&&q.lineNumber[1]===O.oldLineNumber))&&y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:4,className:"p-0",children:y.jsx("div",{className:`flex ${q.side==="old"?"justify-start":q.side==="new"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:"w-1/2",children:y.jsx(G0,{onSubmit:V,onCancel:M})})})})})]},z)})})})})}const a8=T.memo(function({chunk:r,chunkIndex:l,comments:a,onAddComment:s,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f,mode:h=Xa,syntaxTheme:p,cursor:b=null,fileIndex:g=0,onLineClick:v,commentTrigger:x,onCommentTriggerHandled:w,filename:S,onOpenInEditor:N}){const[E,C]=T.useState(null),[j,B]=T.useState(null),[q,L]=T.useState(!1),[I,$]=T.useState(null),[G,M]=T.useState(null);T.useEffect(()=>{if(x?.lineIndex!==void 0){const z=r.lines[x.lineIndex];if(z){const Q=z.newLineNumber||z.oldLineNumber,_=z.type==="delete"?"old":"new";Q&&($({side:_,lineNumber:Q}),w?.())}}},[x,r.lines,w]),T.useEffect(()=>{if(q){const z=()=>{L(!1),C(null),B(null)};return document.addEventListener("mouseup",z),()=>{document.removeEventListener("mouseup",z)}}},[q]);const V=T.useCallback((z,Q)=>{I?.side===z&&I?.lineNumber===Q?$(null):$({side:z,lineNumber:Q})},[I]),Y=T.useCallback(()=>{$(null)},[]),J=T.useCallback(async z=>{I!==null&&(await s(I.lineNumber,z,void 0,I.side),$(null))},[I,s]),U=(z,Q)=>a.filter(_=>{const D=Array.isArray(_.line)?_.line[1]===z:_.line===z,H=!_.side||_.side===Q;return D&&H}),X=z=>{if(h==="unified")return"full";switch(z.type){case"delete":return"left";case"add":return"right";default:return"full"}},F=(z,Q)=>{if(!z)return"";if(q&&E&&j){const _=Math.min(E,j),D=Math.max(E,j);if(z>=_&&z<=D){let H="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return z===_&&(H+=" after:border-t-2"),z===D&&(H+=" after:border-b-2"),H}}if(I&&I.side===Q){const _=Array.isArray(I.lineNumber)?I.lineNumber[0]:I.lineNumber,D=Array.isArray(I.lineNumber)?I.lineNumber[1]:I.lineNumber;if(z>=_&&z<=D)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},O=T.useMemo(()=>{const z=new Map,Q=r.lines;let _=0;for(;_<Q.length;){const D=Q[_];if(!D){_++;continue}if(D.type==="delete"){let H=_+1;for(;H<Q.length&&Q[H]?.type==="delete";)H++;const A=Q.slice(_,H),te=_,ue=[];for(;H<Q.length&&Q[H]?.type==="add";){const pe=Q[H];pe&&ue.push({line:pe,index:H}),H++}const fe=Math.max(A.length,ue.length);for(let pe=0;pe<fe;pe++){const me=A[pe],de=ue[pe];if(me&&de&&V0(me.content,de.line.content)){const ge=$0(me.content,de.line.content);z.set(te+pe,ge.oldSegments),z.set(de.index,ge.newSegments)}}_=H}else _++}return z},[r.lines]);return h==="split"?y.jsx(i8,{chunk:r,chunkIndex:l,comments:a,onAddComment:s,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f,onOpenInEditor:N,syntaxTheme:p,cursor:b,fileIndex:g,onLineClick:v,filename:S,commentTrigger:x,onCommentTriggerHandled:w}):y.jsx("div",{className:"bg-github-bg-primary",children:y.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:y.jsx("tbody",{children:r.lines.map((z,Q)=>{const _=z.newLineNumber||z.oldLineNumber||0,D=z.type==="delete"?"old":"new",H=I?Array.isArray(I.lineNumber)?I.lineNumber[1]:I.lineNumber:null,A=z.type==="delete"?z.oldLineNumber:z.newLineNumber,te=z.type==="delete"?"old":"new",ue=A?U(A,te):[],fe=`file-${g}-chunk-${l}-line-${Q}`,pe=b&&b.chunkIndex===l&&b.lineIndex===Q;return y.jsxs(Jt.Fragment,{children:[y.jsx(X0,{line:z,index:Q,lineId:fe,isCurrentLine:pe||!1,hoveredLineIndex:G,selectedLineStyle:F(z.newLineNumber||z.oldLineNumber,z.type==="delete"?"old":"new"),onMouseEnter:()=>{M(Q)},onMouseLeave:()=>M(null),onMouseMove:()=>{if(q&&E){const me=z.newLineNumber||z.oldLineNumber;me&&B(me)}},onCommentButtonMouseDown:me=>{me.stopPropagation();const de=z.newLineNumber||z.oldLineNumber;de&&(C(de),B(de),L(!0))},onCommentButtonMouseUp:me=>{me.stopPropagation();const de=z.newLineNumber||z.oldLineNumber,ge=z.type==="delete"?"old":"new";if(!de||!E){L(!1),C(null),B(null);return}const xe=j||de;if(E===xe)V(ge,de);else{const be=Math.min(E,xe),ke=Math.max(E,xe);V(ge,[be,ke])}L(!1),C(null),B(null)},onOpenInEditor:N&&z.type!=="delete"&&(z.newLineNumber||z.oldLineNumber)?()=>{const me=z.newLineNumber||z.oldLineNumber;me&&S&&N(S,me)}:void 0,syntaxTheme:p,filename:S,diffSegments:O.get(Q),onClick:()=>{const me=z.type==="delete"?"left":"right";v?.(g,l,Q,me)}}),ue.map(me=>{const de=X(z);return y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:y.jsx("div",{className:`flex ${de==="left"?"justify-start":de==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${de==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:y.jsx(ah,{comment:me,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f})})})})},me.id)}),I&&I.side===D&&H===_&&y.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:y.jsx("td",{colSpan:3,className:"p-0",children:y.jsx("div",{className:`flex ${X(z)==="left"?"justify-start":X(z)==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${X(z)==="full"?"w-full":"w-1/2"}`,children:y.jsx(G0,{onSubmit:J,onCancel:Y})})})})})]},Q)})})})})}),cd=20,fd=T.memo(function({direction:r,hiddenLines:l,onExpandUp:a,onExpandDown:s,onExpandAll:u,isLoading:c=!1}){if(l<=0)return null;const f=`${l} ${l===1?"line":"lines"}`,h=l<=cd,p="grid-cols-[var(--line-number-width)_1fr]",b="flex flex-1 w-full items-center justify-center py-1 text-github-text-primary hover:bg-github-bg-secondary hover:text-github-text-muted transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",g=[];return h?g.push({key:"all",onClick:u,ariaLabel:`Expand all ${l} hidden lines`,icon:y.jsx(QS,{size:16,"aria-hidden":"true"})}):((r==="up"||r==="both")&&g.push({key:"up",onClick:a,ariaLabel:`Expand ${cd} hidden lines above`,icon:y.jsx(W2,{size:12,"aria-hidden":"true",className:"translate-y-0.5"})}),(r==="down"||r==="both")&&g.push({key:"down",onClick:s,ariaLabel:`Expand ${cd} hidden lines below`,icon:y.jsx(K2,{size:12,"aria-hidden":"true",className:"-translate-y-0.5"})})),y.jsxs("div",{className:`grid w-full border-l border-r border-github-border bg-github-bg-tertiary text-sm ${p}`,children:[y.jsx("div",{className:"flex flex-col items-stretch justify-center gap-0.5 border-r border-github-border",children:c?y.jsx(LS,{size:14,className:"animate-spin text-github-text-muted self-center","aria-hidden":"true"}):g.map(v=>y.jsx("button",{type:"button",onClick:v.onClick,disabled:c||!v.onClick,className:b,title:v.ariaLabel,"aria-label":v.ariaLabel,children:v.icon},v.key))}),y.jsx("div",{className:"flex items-center justify-start px-3 py-1.5 font-mono text-github-text-muted select-none",children:f})]})});function Ks({file:e,comments:r,diffMode:l,syntaxTheme:a,cursor:s,fileIndex:u,mergedChunks:c,isExpandLoading:f,expandHiddenLines:h,expandAllBetweenChunks:p,onAddComment:b,onGeneratePrompt:g,onRemoveComment:v,onUpdateComment:x,onLineClick:w,onOpenInEditor:S,commentTrigger:N,onCommentTriggerHandled:E}){const C=(j,B,q,L)=>j==="top"&&B.hiddenLinesBefore>0?y.jsx(fd,{direction:"down",hiddenLines:B.hiddenLinesBefore,onExpandDown:()=>h(e,q,"up"),onExpandAll:()=>p(e,q,B.hiddenLinesBefore),isLoading:f}):j==="middle"&&B.hiddenLinesBefore>0?y.jsx(fd,{direction:"both",hiddenLines:B.hiddenLinesBefore,onExpandUp:()=>h(e,q-1,"down"),onExpandDown:()=>h(e,q,"up"),onExpandAll:()=>p(e,q,B.hiddenLinesBefore),isLoading:f}):j==="bottom"&&B.hiddenLinesAfter>0?y.jsx(fd,{direction:"up",hiddenLines:B.hiddenLinesAfter,onExpandUp:()=>h(e,L,"down"),onExpandAll:()=>h(e,L,"down",B.hiddenLinesAfter),isLoading:f}):null;return y.jsx(y.Fragment,{children:c.map((j,B)=>{const q=B===0,L=B===c.length-1,I=j.originalIndices[0]??0,$=j.originalIndices[j.originalIndices.length-1]??0;return y.jsxs(Jt.Fragment,{children:[q&&C("top",j,I,$),!q&&C("middle",j,I,$),y.jsx("div",{id:`chunk-${e.path.replace(/[^a-zA-Z0-9]/g,"-")}-${B}`,children:y.jsx(a8,{chunk:j,chunkIndex:B,comments:r,onAddComment:b,onGeneratePrompt:g,onRemoveComment:v,onUpdateComment:x,onOpenInEditor:S,mode:l,syntaxTheme:a,cursor:s&&s.chunkIndex===B?s:null,fileIndex:u,onLineClick:w,commentTrigger:N&&N.chunkIndex===B?N:null,onCommentTriggerHandled:E,filename:e.path})}),L&&C("bottom",j,I,$)]},B)})})}const o8=e=>!!(e&&e!=="stdin"),ki=["text-[26px] font-semibold","text-[22px] font-semibold","text-xl font-semibold","text-lg font-semibold","text-base font-semibold uppercase tracking-wide","text-base font-semibold"],s8=e=>e.type==="delete"||e.type==="remove",u8=e=>e.type==="normal"||e.type==="context",Js=e=>/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim()),Jd=(e,r,l)=>{const a=e[e.length-1];if(a&&a.type===r){a.lines.push(l);return}e.push({type:r,lines:[l]})},dd=(e,r)=>{r.forEach(l=>Jd(e,"delete",l)),r.length=0},c8=e=>{const r=[],l=[];let a=!1;return e.forEach(s=>{s.lines.forEach(u=>{if(!(u.type==="header"||u.type==="hunk")){if(s8(u)){l.push(u.content);return}if(u.type==="add"){l.length>0&&(dd(r,l),a=!0),Jd(r,a?"change":"add",u.content);return}u8(u)&&(dd(r,l),a=!1,Jd(r,"context",u.content))}}),dd(r,l),a=!1}),r},f8=e=>Jt.isValidElement(e),d8=e=>Jt.isValidElement(e),Wd=e=>e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Wd).join(""):f8(e)?Wd(e.props.children):"",Z0=e=>({h1:({children:r})=>y.jsx("h1",{className:`${ki[0]} mt-6 mb-2 first:mt-0`,children:r}),h2:({children:r})=>y.jsx("h2",{className:`${ki[1]} mt-6 mb-2 first:mt-0`,children:r}),h3:({children:r})=>y.jsx("h3",{className:`${ki[2]} mt-6 mb-2 first:mt-0`,children:r}),h4:({children:r})=>y.jsx("h4",{className:`${ki[3]} mt-6 mb-2 first:mt-0`,children:r}),h5:({children:r})=>y.jsx("h5",{className:`${ki[4]} mt-6 mb-2 first:mt-0`,children:r}),h6:({children:r})=>y.jsx("h6",{className:`${ki[5]} mt-6 mb-2 first:mt-0`,children:r}),p:({children:r})=>y.jsx("p",{className:"text-base leading-7",children:r}),ul:({children:r})=>y.jsx("ul",{className:"list-disc pl-6 text-base space-y-1",children:r}),ol:({children:r})=>y.jsx("ol",{className:"list-decimal pl-6 text-base space-y-1",children:r}),li:({children:r})=>y.jsx("li",{children:r}),blockquote:({children:r})=>y.jsx("blockquote",{className:"border-l-4 border-github-border pl-4 text-github-text-muted italic",children:r}),hr:()=>y.jsx("hr",{className:"border-github-border"}),a:({href:r,children:l})=>{const a=r??"";if(!a||!Js(a))return y.jsx("span",{children:l});const s=a.startsWith("http");return y.jsx("a",{href:a,target:s?"_blank":void 0,rel:s?"noreferrer":void 0,className:"text-sky-400 hover:text-sky-300 underline underline-offset-4",children:l})},img:({src:r,alt:l})=>{const a=r??"";return!a||!Js(a)?null:y.jsx("img",{src:a,alt:l??"",loading:"lazy",className:"max-w-full rounded border border-github-border"})},pre:({children:r})=>{const a=(Array.isArray(r)?r:[r]).find(d8),s=Wd(a??r),c=/language-(\S+)/.exec(a?.props.className??"")?.[1];return s.trim()?y.jsx("pre",{className:"markdown-preview-code border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-sm",children:y.jsx(Mh,{code:s.replace(/\n$/,""),language:c,syntaxTheme:e,className:"font-mono text-github-text-primary"})}):y.jsx("pre",{className:"markdown-preview-code border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-sm",children:r})},code:({className:r,children:l})=>r?y.jsx("code",{className:r,children:l}):y.jsx("code",{className:"px-1 py-0.5 rounded bg-github-bg-tertiary border border-github-border text-sm font-mono",children:l})}),h8=e=>{switch(e){case"add":return"border-l-4 border-diff-addition-border";case"delete":return"border-l-4 border-diff-deletion-border";case"change":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},p8=e=>/^\s*\[[^\]]+\]:\s+\S+/.test(e),m8=e=>/^\s*\[\^[^\]]+\]:\s+/.test(e),g8=e=>/^\s*<!--.*-->\s*$/.test(e),b8=e=>e.trim()===""||p8(e)||m8(e)||g8(e),y8=e=>e.every(b8),x8=({blocks:e,syntaxTheme:r})=>{const l=T.useMemo(()=>Z0(r),[r]);return y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const c=a.lines.join(`
|
|
51
|
-
`).trim();if(!c)return null;const f=y8(a.lines);return y.jsx("div",{className:`px-4 ${h8(a.type)}`,children:f?y.jsx("pre",{className:"whitespace-pre-wrap text-sm text-github-text-primary font-mono",children:c}):y.jsx(jh,{remarkPlugins:[Dh],urlTransform:h=>Js(h)?h:"",components:l,children:c})},`preview-block-${s}`)})})},v8=({content:e,syntaxTheme:r})=>{const l=T.useMemo(()=>Z0(r),[r]);return y.jsx("div",{className:"space-y-4",children:y.jsx(jh,{remarkPlugins:[Dh],urlTransform:a=>Js(a)?a:"",components:l,children:e})})};function w8(e){const{file:r,baseCommitish:l,targetCommitish:a,mergedChunks:s,syntaxTheme:u}=e,[c,f]=T.useState("diff
|
|
51
|
+
`).trim();if(!c)return null;const f=y8(a.lines);return y.jsx("div",{className:`px-4 ${h8(a.type)}`,children:f?y.jsx("pre",{className:"whitespace-pre-wrap text-sm text-github-text-primary font-mono",children:c}):y.jsx(jh,{remarkPlugins:[Dh],urlTransform:h=>Js(h)?h:"",components:l,children:c})},`preview-block-${s}`)})})},v8=({content:e,syntaxTheme:r})=>{const l=T.useMemo(()=>Z0(r),[r]);return y.jsx("div",{className:"space-y-4",children:y.jsx(jh,{remarkPlugins:[Dh],urlTransform:a=>Js(a)?a:"",components:l,children:e})})};function w8(e){const{file:r,baseCommitish:l,targetCommitish:a,mergedChunks:s,syntaxTheme:u}=e,[c,f]=T.useState("diff"),[h,p]=T.useState(null),[b,g]=T.useState(!1),[v,x]=T.useState(null),[w,S]=T.useState(null),N=T.useMemo(()=>c8(s),[s]),E=T.useMemo(()=>!l&&!a?null:r.status==="added"?a?{path:r.path,ref:a}:null:r.status==="deleted"?l?{path:r.oldPath||r.path,ref:l}:null:a?{path:r.path,ref:a}:l?{path:r.oldPath||r.path,ref:l}:null,[l,a,r.path,r.oldPath,r.status]),C=T.useMemo(()=>E?`${E.ref}:${E.path}`:null,[E]);T.useEffect(()=>{if(!E||!C||!o8(E.ref)){p(null),S(null),x(null),g(!1);return}let B=!1;return(C!==w||h===null)&&(async()=>{C!==w&&p(null),g(!0),x(null);try{const L=encodeURIComponent(E.path),I=await fetch(`/api/blob/${L}?ref=${encodeURIComponent(E.ref)}`);if(!I.ok)throw new Error(`Failed to fetch preview: ${I.statusText}`);const $=await I.text();B||(p($),S(C))}catch(L){B||(p(null),S(null),x(L instanceof Error?L.message:"Failed to load preview"))}finally{B||g(!1)}})(),()=>{B=!0}},[h,w,E,C]);const j=T.useMemo(()=>C===w&&h!==null,[h,w,C]);return T.useEffect(()=>{c==="full-preview"&&!j&&f("diff-preview")},[j,c]),y.jsxs("div",{className:"bg-github-bg-primary",children:[y.jsx("div",{className:"flex items-center justify-between border-b border-github-border px-4 py-2",children:y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsxs("button",{onClick:()=>f("diff"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="diff"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Code Diff",children:[y.jsx(tu,{size:14}),"Diff"]}),y.jsxs("button",{onClick:()=>f("diff-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="diff-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Diff Preview",children:[y.jsx(Ls,{size:14}),"Diff Preview"]}),j&&y.jsxs("button",{onClick:()=>f("full-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="full-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Full Preview",children:[y.jsx(Ls,{size:14}),"Full Preview"]})]})}),c==="diff"&&y.jsx(Ks,{...e}),c==="diff-preview"&&y.jsx("div",{className:"p-4",children:y.jsx(x8,{blocks:N,syntaxTheme:u})}),c==="full-preview"&&y.jsxs("div",{className:"p-4",children:[b&&y.jsx("div",{className:"text-sm text-github-text-muted mb-3",children:"Loading preview..."}),v&&y.jsx("div",{className:"text-sm text-github-danger mb-3",children:v}),!b&&!v&&h!==null&&y.jsx(v8,{content:h,syntaxTheme:u}),!b&&!v&&h===null&&y.jsx("div",{className:"text-sm text-github-text-muted",children:"Preview unavailable."})]})]})}const Ei=["text-2xl font-semibold","text-xl font-semibold","text-lg font-semibold","text-base font-semibold","text-sm font-semibold uppercase tracking-wide","text-sm font-semibold"],Q0={markdown:"Markdown",code:"Code",raw:"Raw",unknown:"Cell"},S8=/"cell_type"\s*:\s*"([^"]+)"/,Sx=/"source"\s*:/,k8=/"execution_count"\s*:\s*(null|[0-9]+)/,E8=/"id"\s*:\s*"([^"]+)"/,C8=e=>e.type==="delete"||e.type==="remove",N8=e=>e.type==="normal"||e.type==="context",K0=e=>e.type==="add"?"add":C8(e)?"delete":N8(e)?"context":null,J0=e=>e==="markdown"||e==="code"||e==="raw"?e:"unknown",A8=e=>{const r=e.trim();if(!r.startsWith('"'))return null;let l=r;l.endsWith(",")&&(l=l.slice(0,-1));try{const a=JSON.parse(l);return typeof a=="string"?a:null}catch{return l.replace(/^"/,"").replace(/"$/,"").replace(/\\n/g,`
|
|
52
52
|
`).replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}},T8=e=>{const r=e.indexOf('"source"');if(r===-1)return null;const l=e.indexOf(":",r);if(l===-1)return null;let a=e.slice(l+1).trim();if(!a)return null;if(a.endsWith(",")&&(a=a.slice(0,-1).trim()),a.startsWith("[")){const s=a.lastIndexOf("]");if(s===-1)return null;const u=a.slice(0,s+1);try{const c=JSON.parse(u);if(Array.isArray(c))return c.filter(f=>typeof f=="string")}catch{return null}return[]}if(a.startsWith('"'))try{const s=JSON.parse(a);return typeof s=="string"?[s]:null}catch{return null}return null},j8=e=>{const r=_8(e);if(r)return r;const l=[];let a=null,s=!1,u=!1,c=!1;const f=()=>{a&&(a.status=s&&u?"change":s?"add":u?"delete":"context",l.push(a),a=null,s=!1,u=!1,c=!1)},h=p=>{f(),a={cellType:p,sourceLines:[],status:"context"}};return e.forEach(p=>{p.lines.forEach(b=>{const g=K0(b);if(!g)return;const v=b.content.match(S8);if(v?h(J0(v[1]??"")):!a&&Sx.test(b.content)&&h("unknown"),!a)return;if(g==="add"&&(s=!0),g==="delete"&&(u=!0),!a.id){const S=b.content.match(E8);S&&(a.id=S[1])}if(a.executionCount===void 0){const S=b.content.match(k8);S&&(a.executionCount=S[1]==="null"?null:S[1])}if(Sx.test(b.content)){const S=T8(b.content);if(S){S.forEach(N=>{a?.sourceLines.push({type:g,content:N})}),c=!1;return}c=!0;return}if(!c)return;if(b.content.trim().startsWith("]")){c=!1;return}const w=A8(b.content);w!==null&&a.sourceLines.push({type:g,content:w})})}),f(),{cells:l}},_8=e=>{const r=kx(e,["add","context"]),l=kx(e,["delete","context"]),a=Ua(r),s=Ua(l);if(!a&&!s||a&&a.cells.length===0&&!s)return null;const u=a?.language??s?.language;return{cells:W0(s?.cells??[],a?.cells??[]),language:u}},kx=(e,r)=>e.flatMap(l=>l.lines).map(l=>{const a=K0(l);return!a||!r.includes(a)?null:l.content}).filter(l=>l!==null).join(`
|
|
53
53
|
`),Ua=e=>{if(!e.trim())return null;try{const r=JSON.parse(e);if(!r||typeof r!="object"||!("cells"in r))return null;const l=r.cells;if(!Array.isArray(l))return null;const a=r.metadata,s=R8(a);return{cells:l.map(u=>L8(u)),language:s}}catch{return null}},R8=e=>{if(!e||typeof e!="object")return;const r=e,l=r.language_info;if(l&&typeof l=="object"){const s=l.name;if(typeof s=="string"&&s.trim())return s}const a=r.kernelspec;if(a&&typeof a=="object"){const s=a.language;if(typeof s=="string"&&s.trim())return s}},L8=e=>{const r=typeof e=="object"&&e?e:{},l=typeof r.cell_type=="string"?r.cell_type:"",a=J0(l),s=typeof r.id=="string"?r.id:void 0,u=r.execution_count,c=u===null?null:typeof u=="number"?String(u):typeof u=="string"?u:void 0,f=D8(r.source);return{cellType:a,sourceText:f,id:s,executionCount:c}},D8=e=>typeof e=="string"?e:Array.isArray(e)?e.filter(r=>typeof r=="string").join(""):"",W0=(e,r)=>{const l=[];if(e.some(u=>!!u.id)||r.some(u=>!!u.id)){const u=new Map;e.forEach((f,h)=>{f.id&&u.set(f.id,{cell:f,index:h})});const c=new Set;return r.forEach(f=>{const h=f.id?u.get(f.id):void 0;h&&c.add(h.index),l.push(hd(h?.cell??null,f))}),e.forEach((f,h)=>{c.has(h)||l.push(hd(f,null))}),l}const s=Math.max(e.length,r.length);for(let u=0;u<s;u+=1){const c=e[u]??null,f=r[u]??null;l.push(hd(c,f))}return l},hd=(e,r)=>{if(!r&&e)return{cellType:e.cellType,sourceLines:Ma(e.sourceText,"delete"),status:"delete",id:e.id,executionCount:e.executionCount};if(r&&!e)return{cellType:r.cellType,sourceLines:Ma(r.sourceText,"add"),status:"add",id:r.id,executionCount:r.executionCount};const l=e?.sourceText??"",a=r?.sourceText??"",s=r?.cellType??e?.cellType??"unknown",u=r?.id??e?.id,c=r?.executionCount??e?.executionCount;return l===a&&(e?.cellType??"")===(r?.cellType??"")?{cellType:s,sourceLines:Ma(a,"context"),status:"context",id:u,executionCount:c}:{cellType:s,sourceLines:[...Ma(l,"delete"),...Ma(a,"add")],status:"change",id:u,executionCount:c}},Ma=(e,r)=>e?[{type:r,content:e}]:[],pd=e=>!!(e&&e!=="stdin"),md=async(e,r)=>{const l=encodeURIComponent(e),a=await fetch(`/api/blob/${l}?ref=${encodeURIComponent(r)}`);return a.ok?a.text():null},Di=(e,r)=>e.filter(l=>r.includes(l.type)).map(l=>l.content).join(""),gd=e=>{if(!e)return[];const r=e.split(`
|
|
54
|
-
`);return r.length>0&&r[r.length-1]===""&&r.pop(),r},ev=(e,r)=>!e&&!r?[]:e?r?Z5(e,r).flatMap(l=>{const a=l.added?"add":l.removed?"delete":"context";return gd(l.value).map(s=>({type:a,content:s}))}):gd(e).map(l=>({type:"delete",content:l})):gd(r).map(l=>({type:"add",content:l})),O8=e=>Jt.isValidElement(e),M8=e=>Jt.isValidElement(e),eh=e=>e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(eh).join(""):O8(e)?eh(e.props.children):"",z8=e=>{switch(e){case"add":return"border-l-4 border-diff-addition-border";case"delete":return"border-l-4 border-diff-deletion-border";case"change":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},Ex=e=>{switch(e){case"before":return"border-l-4 border-diff-deletion-border";case"after":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},B8=e=>{switch(e){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},F8=e=>{switch(e){case"add":return"+";case"delete":return"-";default:return" "}},I8=e=>{switch(e){case"add":return"text-github-accent";case"delete":return"text-github-danger";default:return"text-github-text-muted"}},th=e=>/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim()),U8=e=>({h1:({children:r})=>y.jsx("h1",{className:`${Ei[0]} mb-2`,children:r}),h2:({children:r})=>y.jsx("h2",{className:`${Ei[1]} mb-2`,children:r}),h3:({children:r})=>y.jsx("h3",{className:`${Ei[2]} mb-2`,children:r}),h4:({children:r})=>y.jsx("h4",{className:`${Ei[3]} mb-2`,children:r}),h5:({children:r})=>y.jsx("h5",{className:`${Ei[4]} mb-2`,children:r}),h6:({children:r})=>y.jsx("h6",{className:`${Ei[5]} mb-2`,children:r}),p:({children:r})=>y.jsx("p",{className:"text-sm leading-7",children:r}),ul:({children:r})=>y.jsx("ul",{className:"list-disc pl-6 text-sm space-y-1",children:r}),ol:({children:r})=>y.jsx("ol",{className:"list-decimal pl-6 text-sm space-y-1",children:r}),li:({children:r})=>y.jsx("li",{children:r}),blockquote:({children:r})=>y.jsx("blockquote",{className:"border-l-4 border-github-border pl-4 text-github-text-muted italic",children:r}),hr:()=>y.jsx("hr",{className:"border-github-border"}),a:({href:r,children:l})=>{const a=r??"";if(!a||!th(a))return y.jsx("span",{children:l});const s=a.startsWith("http");return y.jsx("a",{href:a,target:s?"_blank":void 0,rel:s?"noreferrer":void 0,className:"text-sky-400 hover:text-sky-300 underline underline-offset-4",children:l})},img:({src:r,alt:l})=>{const a=r??"";return!a||!th(a)?null:y.jsx("img",{src:a,alt:l??"",loading:"lazy",className:"max-w-full rounded border border-github-border"})},pre:({children:r})=>{const a=(Array.isArray(r)?r:[r]).find(M8),s=eh(a??r),c=/language-(\S+)/.exec(a?.props.className??"")?.[1];return s.trim()?y.jsx("pre",{className:"border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-xs",children:y.jsx(Mh,{code:s.replace(/\n$/,""),language:c,syntaxTheme:e,className:"font-mono text-github-text-primary [&_.token-line]:block [&_.token-line]:whitespace-pre"})}):y.jsx("pre",{className:"border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-xs",children:r})},code:({className:r,children:l})=>r?y.jsx("code",{className:r,children:l}):y.jsx("code",{className:"px-1 py-0.5 rounded bg-github-bg-tertiary border border-github-border text-xs font-mono",children:l}),table:({children:r})=>y.jsx("div",{className:"overflow-x-auto",children:y.jsx("table",{className:"min-w-full border border-github-border",children:r})}),th:({children:r})=>y.jsx("th",{className:"border border-github-border px-2 py-1 bg-github-bg-tertiary text-sm",children:r}),td:({children:r})=>y.jsx("td",{className:"border border-github-border px-2 py-1 text-sm",children:r})}),H8=e=>{const r=Di(e.sourceLines,["context","delete"]),l=Di(e.sourceLines,["context","add"]),a=[];return e.status==="change"?(r.trim()&&a.push({label:"Before",content:r,tone:"before"}),l.trim()&&a.push({label:"After",content:l,tone:"after"}),a.length===0&&a.push({label:"After",content:l,tone:"after"}),a):e.status==="delete"?(a.push({label:"Before",content:r||l,tone:"before"}),a):(a.push({label:"After",content:l||r,tone:"after"}),a)},tv=(e,r,l,a)=>{if(!r.trim())return y.jsx("span",{className:"text-xs text-github-text-muted",children:"Empty cell"});if(e==="markdown"){const s=U8(l);return y.jsx(jh,{remarkPlugins:[Dh],urlTransform:u=>th(u)?u:"",components:s,children:r})}return e==="raw"?y.jsx("pre",{className:"whitespace-pre-wrap break-words text-xs font-mono text-github-text-primary",children:r}):y.jsx("pre",{className:"overflow-x-auto text-xs",children:y.jsx(Ga,{code:r.replace(/\n$/,""),language:a||"python",syntaxTheme:l,className:"font-mono text-github-text-primary [&_.token-line]:block [&_.token-line]:whitespace-pre"})})},q8=({lines:e,syntaxTheme:r,language:l})=>e.length===0?y.jsx("span",{className:"text-xs text-github-text-muted",children:"Empty cell"}):y.jsx("div",{className:"overflow-x-auto",children:y.jsx("div",{className:"font-mono text-xs",children:e.map((a,s)=>y.jsxs("div",{className:`flex items-start min-h-[16px] ${B8(a.type)}`,children:[y.jsx("span",{className:`w-5 text-center flex-shrink-0 select-none ${I8(a.type)}`,children:F8(a.type)}),y.jsx(Ga,{code:a.content||" ",language:l||"python",syntaxTheme:r,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit"})]},`notebook-code-line-${s}`))})}),P8=({cells:e,syntaxTheme:r,language:l})=>y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const u=H8(a),c=a.cellType==="code"&&a.executionCount!==void 0?`In[${a.executionCount??" "}]`:null,f=a.cellType==="code",h=f?ev(Di(a.sourceLines,["context","delete"]),Di(a.sourceLines,["context","add"])).filter(p=>p.type!=="context"):[];return f&&h.length===0?null:y.jsxs("div",{className:`rounded border border-github-border bg-github-bg-secondary/40 p-4 ${z8(a.status)}`,children:[y.jsx("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-3",children:y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-github-text-muted",children:Q0[a.cellType]}),c&&y.jsx("span",{className:"text-xs font-mono text-github-text-secondary",children:c}),a.id&&y.jsx("span",{className:"text-xs font-mono text-github-text-muted",children:a.id})]})}),y.jsx("div",{className:"space-y-3",children:f?y.jsx("div",{className:`px-4 py-3 ${Ex(a.status==="delete"?"before":"after")}`,children:y.jsx(q8,{lines:h,syntaxTheme:r,language:l})}):u.map((p,b)=>y.jsx("div",{className:`px-4 py-3 ${Ex(p.tone)}`,children:y.jsx("div",{className:"text-sm text-github-text-primary",children:tv(a.cellType,p.content,r,l)})},`notebook-cell-${s}-section-${b}`))})]},`notebook-cell-${s}`)})}),$8=({cells:e,syntaxTheme:r,language:l})=>y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const u=a.cellType==="code"&&a.executionCount!==void 0?`In[${a.executionCount??" "}]`:null;return y.jsxs("div",{className:"rounded border border-github-border bg-github-bg-secondary/40 p-4",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[y.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-github-text-muted",children:Q0[a.cellType]}),u&&y.jsx("span",{className:"text-xs font-mono text-github-text-secondary",children:u}),a.id&&y.jsx("span",{className:"text-xs font-mono text-github-text-muted",children:a.id})]}),y.jsx("div",{className:"text-sm text-github-text-primary",children:tv(a.cellType,a.sourceText,r,l)})]},`notebook-full-cell-${s}`)})});function V8(e){const{file:r,baseCommitish:l,targetCommitish:a}=e,[s,u]=T.useState("diff-preview"),c=T.useMemo(()=>j8(e.mergedChunks),[e.mergedChunks]),[f,h]=T.useState({status:"idle",cells:c.cells,language:c.language}),p=T.useMemo(()=>f.cells.filter(L=>L.status==="context"?!1:L.cellType!=="code"?!0:ev(Di(L.sourceLines,["context","delete"]),Di(L.sourceLines,["context","add"])).filter($=>$.type!=="context").length>0),[f.cells]),[b,g]=T.useState(null),[v,x]=T.useState(c.language),[w,S]=T.useState(!1),[N,E]=T.useState(null),[C,j]=T.useState(null),B=T.useMemo(()=>!l&&!a?null:r.status==="added"?a?{path:r.path,ref:a}:null:r.status==="deleted"?l?{path:r.oldPath||r.path,ref:l}:null:a?{path:r.path,ref:a}:l?{path:r.oldPath||r.path,ref:l}:null,[l,a,r.oldPath,r.path,r.status]),q=T.useMemo(()=>B?`${B.ref}:${B.path}`:null,[B]);return T.useEffect(()=>{let L=!1;return(async()=>{const $=l||"HEAD~1",G=a||"HEAD",M=r.oldPath||r.path,V=r.status!=="added"&&pd($),Y=r.status!=="deleted"&&pd(G);if(!V&&!Y){h({status:"ready",cells:c.cells,language:c.language,source:"diff",message:"Notebook content could not be loaded, falling back to diff preview."});return}h(J=>({...J,status:"loading"}));try{const[J,U]=await Promise.all([V?md(M,$):Promise.resolve(null),Y?md(r.path,G):Promise.resolve(null)]),X=J?Ua(J):null,F=U?Ua(U):null;if(!X&&!F){L||h({status:"ready",cells:c.cells,language:c.language,source:"diff",message:"Notebook content could not be parsed, falling back to diff preview."});return}const O=F?.language??X?.language??c.language,z=W0(X?.cells??[],F?.cells??[]);L||h({status:"ready",cells:z,source:"blob",language:O})}catch(J){L||h({status:"error",cells:c.cells,language:c.language,source:"diff",message:J instanceof Error?J.message:"Failed to load notebook preview."})}})(),()=>{L=!0}},[l,r.oldPath,r.path,r.status,e.mergedChunks,a,c]),T.useEffect(()=>{if(s!=="full-preview")return;if(!B||!q||!pd(B.ref)){g(null),j(null),E(null),S(!1);return}let L=!1;return(q!==C||!b)&&(async()=>{q!==C&&g(null),S(!0),E(null);try{const $=await md(B.path,B.ref);if(!$)throw new Error("Failed to load preview.");const G=Ua($);if(!G)throw new Error("Notebook content could not be parsed.");L||(g(G.cells),x(G.language??c.language),j(q))}catch($){L||(g(null),j(null),E($ instanceof Error?$.message:"Failed to load preview"))}finally{L||S(!1)}})(),()=>{L=!0}},[c.language,b,C,s,B,q]),y.jsxs("div",{className:"bg-github-bg-primary",children:[y.jsx("div",{className:"flex items-center justify-between border-b border-github-border px-4 py-2",children:y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsxs("button",{onClick:()=>u("diff"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="diff"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Code Diff",children:[y.jsx(tu,{size:14}),"Diff"]}),y.jsxs("button",{onClick:()=>u("diff-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="diff-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Diff Preview",children:[y.jsx(Ls,{size:14}),"Diff Preview"]}),y.jsxs("button",{onClick:()=>u("full-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="full-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Full Preview",children:[y.jsx(Ls,{size:14}),"Full Preview"]})]})}),s==="diff"&&y.jsx(Ks,{...e}),s==="diff-preview"&&y.jsxs("div",{className:"p-4",children:[f.status==="loading"&&y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:"Loading notebook preview…"}),f.message&&y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:f.message}),p.length===0?y.jsxs("div",{children:[y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:"No changed notebook cells were found. Showing raw diff instead."}),y.jsx(Ks,{...e})]}):y.jsx(P8,{cells:p,syntaxTheme:e.syntaxTheme,language:f.language})]}),s==="full-preview"&&y.jsxs("div",{className:"p-4",children:[w&&y.jsx("div",{className:"text-sm text-github-text-muted mb-3",children:"Loading preview..."}),N&&y.jsx("div",{className:"text-sm text-github-danger mb-3",children:N}),!w&&!N&&b&&y.jsx($8,{cells:b,syntaxTheme:e.syntaxTheme,language:v??c.language}),!w&&!N&&!b&&y.jsx("div",{className:"text-sm text-github-text-muted",children:"Preview unavailable."})]})]})}const bd=[{id:"image",match:e=>tC(e.path),Component:aC,canExpandHiddenLines:()=>!1},{id:"markdown",match:e=>rC(e.path),Component:w8,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"},{id:"notebook",match:e=>iC(e.path),Component:V8,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"},{id:"default",match:()=>!0,Component:Ks,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"}],G8=e=>{const r=bd[bd.length-1];if(!r)throw new Error("No diff viewers registered");return bd.find(l=>l.match(e))??r},Y8=e=>{switch(e){case"added":return y.jsx(Xx,{size:16,className:"text-github-accent"});case"deleted":return y.jsx(Zx,{size:16,className:"text-github-danger"});case"renamed":return y.jsx(Yx,{size:16,className:"text-github-warning"});default:return y.jsx(tu,{size:16,className:"text-github-text-secondary"})}},X8=({file:e,isCollapsed:r,isReviewed:l,onToggleCollapsed:a,onToggleAllCollapsed:s,onToggleReviewed:u})=>{const[c,f]=T.useState(!1);return y.jsxs("div",{className:"bg-github-bg-secondary border-t-2 border-t-github-accent border-b border-github-border px-5 py-4 flex items-center justify-between flex-wrap gap-3 sticky top-0 z-10",children:[y.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[y.jsx("button",{onClick:h=>{h.altKey?s(!r):a(e.path)},className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:r?"Expand file (Alt+Click to expand all)":"Collapse file (Alt+Click to collapse all)",children:r?y.jsx(Vx,{size:16}):y.jsx(_i,{size:16})}),Y8(e.status),y.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:e.path}),y.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${c?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(e.path).then(()=>{console.log("File path copied to clipboard:",e.path),f(!0),setTimeout(()=>f(!1),2e3)}).catch(h=>{console.error("Failed to copy file path:",h)})},title:"Copy file path",children:c?y.jsx(qa,{size:14}):y.jsx(Gx,{size:14})}),e.oldPath&&e.oldPath!==e.path&&y.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",e.oldPath,")"]})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[y.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",e.additions]}),y.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",e.deletions]})]}),y.jsxs("button",{onClick:()=>u(e.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${l?"bg-github-accent text-white":"dark:bg-slate-600 dark:text-white dark:border-slate-500 dark:hover:bg-slate-500 dark:hover:border-slate-400 bg-github-bg-secondary text-github-text-primary border border-github-border hover:bg-github-bg-tertiary hover:border-github-text-muted"}`,title:l?"Mark as not reviewed":"Mark as reviewed",children:[l?y.jsx(qa,{size:14}):y.jsx(GS,{size:14}),"Viewed"]})]})]})},Z8=e=>{const r={old:[],new:[]};return e.forEach(l=>{const a=l.side??"new",[s,u]=Array.isArray(l.line)?[l.line[0],l.line[1]]:[l.line,l.line];s<=0||u<=0||r[a].push({start:Math.min(s,u),end:Math.max(s,u)})}),r},Q8=(e,r)=>e.chunks.map((l,a)=>{const s=r==="old"?l.oldStart:l.newStart,u=r==="old"?l.oldLines:l.newLines;return!s||u<=0?null:{start:s,end:s+u-1,index:a}}).filter(l=>!!l),K8=e=>{const r=[],l=e[0];if(!l)return r;l.start>1&&r.push({type:"before",start:1,end:l.start-1,nextChunkIndex:l.index});for(let s=1;s<e.length;s+=1){const u=e[s-1],c=e[s];!u||!c||c.start>u.end+1&&r.push({type:"between",start:u.end+1,end:c.start-1,prevChunkIndex:u.index,nextChunkIndex:c.index})}const a=e[e.length-1];return a&&r.push({type:"after",start:a.end+1,end:Number.POSITIVE_INFINITY,prevChunkIndex:a.index}),r},J8=e=>{const r=new Map;return e.forEach(l=>{const a=l.originalIndices[0];a!==void 0&&r.set(a,l)}),r},W8=e=>{const r=e[e.length-1];return r?.originalIndices[r.originalIndices.length-1]??null},ej=T.memo(function({file:r,comments:l,diffMode:a,reviewedFiles:s,onToggleReviewed:u,collapsedFiles:c,onToggleCollapsed:f,onToggleAllCollapsed:h,onAddComment:p,onGeneratePrompt:b,onRemoveComment:g,onUpdateComment:v,onOpenInEditor:x,syntaxTheme:w,baseCommitish:S,targetCommitish:N,cursor:E=null,fileIndex:C=0,onLineClick:j,commentTrigger:B,onCommentTriggerHandled:q,mergedChunks:L,expandLines:I,expandAllBetweenChunks:$,prefetchFileContent:G,isExpandLoading:M}){const V=c.has(r.path),Y=T.useRef(null),[J,U]=T.useState(!1),X=G8(r),F=X.canExpandHiddenLines?.(r)??!1;T.useEffect(()=>{if(!F)return;const D=Y.current;if(!D)return;const H=new IntersectionObserver(([A])=>{A?.isIntersecting&&U(!0)},{rootMargin:"200px"});return H.observe(D),()=>H.disconnect()},[F]),T.useEffect(()=>{J&&!V&&F&&G(r)},[J,V,F,r,G]);const O=T.useCallback(async(D,H,A,te)=>{try{await p(r.path,D,H,A,te)}catch(ue){console.error("Failed to add comment:",ue)}},[r.path,p]);T.useEffect(()=>{if(V||M||!F||l.length===0||r.chunks.length===0||L.length===0)return;const D=Z8(l),H=J8(L),A=W8(L),te=L[L.length-1],ue=new Set,fe=(pe,me)=>{ue.has(pe)||(ue.add(pe),me())};["old","new"].forEach(pe=>{const me=D[pe];if(me.length===0)return;const de=Q8(r,pe);K8(de).forEach(xe=>{if(!me.some(Pe=>Pe.start<=xe.end&&Pe.end>=xe.start))return;if(xe.type==="after"&&te&&A!==null){te.hiddenLinesAfter>0&&fe(`after-${A}`,()=>{I(r,A,"down",te.hiddenLinesAfter)});return}const ke=xe.nextChunkIndex;if(ke===void 0)return;const Ne=H.get(ke);!Ne||Ne.hiddenLinesBefore<=0||(xe.type==="before"?fe(`before-${ke}`,()=>{I(r,ke,"up",Ne.hiddenLinesBefore)}):xe.type==="between"&&fe(`between-${ke}`,()=>{$(r,ke,Ne.hiddenLinesBefore)}))})})},[l,$,I,r,V,M,L,F]);const z="4em",Q=X.Component,_={file:r,comments:l,diffMode:a,syntaxTheme:w,baseCommitish:S,targetCommitish:N,cursor:E,fileIndex:C,mergedChunks:L,isExpandLoading:M,expandHiddenLines:I,expandAllBetweenChunks:$,onAddComment:O,onGeneratePrompt:b,onRemoveComment:g,onUpdateComment:v,onOpenInEditor:x,onLineClick:j,commentTrigger:B,onCommentTriggerHandled:q};return y.jsxs("div",{ref:Y,className:"bg-github-bg-primary",style:{"--line-number-width":z},children:[y.jsx(X8,{file:r,isCollapsed:V,isReviewed:s.has(r.path),onToggleCollapsed:f,onToggleAllCollapsed:h,onToggleReviewed:u}),!V&&y.jsx("div",{className:"overflow-y-auto",children:y.jsx(Q,{..._})})]})});function tj(e){const r={name:"",path:"",isDirectory:!0,children:[]};e.forEach(a=>{const s=a.path.split("/");let u=r;for(let c=0;c<s.length;c++){const f=s[c];if(!f)continue;const h=c===s.length-1,p=s.slice(0,c+1).join("/");u.children||(u.children=[]);let b=u.children.find(g=>g.name===f);b||(b={name:f,path:p,isDirectory:!h,children:h?void 0:[],file:h?a:void 0},u.children.push(b)),u=b}});const l=a=>{if(!a.isDirectory||!a.children)return a;if(a.children=a.children.map(l),a.children.length===1&&a.children[0]?.isDirectory&&a.children[0]?.children){const s=a.children[0];if(s)return a.name?{...a,name:`${a.name}/${s.name}`,path:s.path,children:s.children}:a}return a};return l(r)}function nj({files:e,onScrollToFile:r,comments:l,reviewedFiles:a,onToggleReviewed:s,selectedFileIndex:u}){const c=tj(e),f=T.useRef(null),h=T.useRef(new Map),p={"--dir-row-height":"calc(var(--spacing, 0.25rem) * 9)"},b=$=>{if(!$.isDirectory||!$.children)return[];const G=[];return $.path&&G.push($.path),$.children.forEach(M=>{G.push(...b(M))}),G},[g,v]=T.useState(()=>new Set(b(c))),[x,w]=T.useState(""),S=$=>l.filter(G=>G.file===$).length,N=T.useMemo(()=>{const $=G=>{if(!x.trim())return G;if(G.isDirectory&&G.children){const M=G.children.map(V=>$(V)).filter(V=>V!==null);return M.length>0?{...G,children:M}:null}else if(G.file)return G.file.path.toLowerCase().includes(x.toLowerCase())?G:null;return null};return $(c)||{...c,children:[]}},[c,x]),E=$=>{switch($){case"added":return y.jsx(Xx,{size:16,className:"text-github-accent"});case"deleted":return y.jsx(Zx,{size:16,className:"text-github-danger"});case"renamed":return y.jsx(Yx,{size:16,className:"text-github-warning"});default:return y.jsx(tu,{size:16,className:"text-github-text-secondary"})}},C=$=>{v(G=>{const M=new Set(G);return M.has($)?M.delete($):M.add($),M})},j=b(c),B=g.size===j.length&&j.length>0,q=()=>{v(B?new Set:new Set(j))},L=($,G)=>{const M=f.current,V=$.currentTarget;if(!M){C(G);return}const Y=M.getBoundingClientRect(),J=V.getBoundingClientRect(),U=Number.parseFloat(getComputedStyle(V).top||"0");if(J.top-Y.top<=U+1){const z=h.current.get(G)?.querySelector('[data-tree-row="true"]:not([data-dir-header="true"])'),Q=V.getBoundingClientRect().height||0,_=z??V,D=Number.parseInt(_.dataset.depth||V.dataset.depth||"0",10),H=Q*D,A=Math.max(0,_.offsetTop-H);if(Math.abs(M.scrollTop-A)<=1){C(G);return}M.scrollTo({top:A,behavior:"smooth"});return}C(G)},I=($,G=0)=>{if($.isDirectory&&$.children){const M=g.has($.path);return y.jsxs("div",{"data-dir-container":$.path||void 0,ref:V=>{$.path&&(V?h.current.set($.path,V):h.current.delete($.path))},children:[$.name&&y.jsxs("div",{className:"sticky flex h-9 items-center gap-2 bg-github-bg-secondary px-4 hover:bg-github-bg-tertiary cursor-pointer","data-dir-header":"true","data-tree-row":"true","data-depth":G,style:{paddingLeft:`${G*16+16}px`,top:`calc(${G} * var(--dir-row-height))`,zIndex:1e3-G},onClick:V=>L(V,$.path),children:[M?y.jsx(_i,{size:16}):y.jsx(Vx,{size:16}),M?y.jsx(SS,{size:16,className:"text-github-text-secondary"}):y.jsx(ES,{size:16,className:"text-github-text-secondary"}),y.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:$.name,children:$.name})]}),(M||!$.name)&&$.children.map(V=>I(V,$.name?G+1:G))]},$.path)}else if($.file){const M=$.file,V=S(M.path),Y=a.has(M.path),J=e.findIndex(X=>X.path===M.path),U=u!==null&&u===J;return y.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${Y?"opacity-70":""} ${U?"bg-github-bg-tertiary":""}`,"data-file-row":"true","data-tree-row":"true","data-depth":G,style:{paddingLeft:`${G*16+16}px`},onClick:()=>r(M.path),children:[y.jsx(Jx,{checked:Y,onChange:()=>{s(M.path)},title:Y?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),E($.file.status),y.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${Y?"line-through text-github-text-muted":""}`,title:$.file.path,children:$.name}),V>0&&y.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[y.jsx(Qx,{size:14}),V]})]},M.path)}return null};return y.jsxs("div",{className:"h-full flex flex-col",children:[y.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0",children:["Files changed (",e.length,")"]}),y.jsx("button",{onClick:q,className:"p-1 hover:bg-github-bg-primary rounded transition-colors",title:B?"Collapse all":"Expand all",children:B?y.jsx(aS,{size:16,className:"text-github-text-secondary"}):y.jsx(sS,{size:16,className:"text-github-text-secondary"})})]}),y.jsxs("div",{className:"relative",children:[y.jsx(PS,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),y.jsx("input",{type:"text",placeholder:"Filter files...",value:x,onChange:$=>w($.target.value),className:"w-full pl-9 pr-3 py-2 text-sm bg-github-bg-primary border border-github-border rounded-md focus:outline-none focus:border-github-accent text-github-text-primary placeholder-github-text-muted"})]})]}),y.jsx("div",{className:"flex-1 overflow-y-auto relative z-0",style:p,ref:f,children:N.children?.map($=>I($))})]})}function rj({style:e}){return y.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:e,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})})}function lj({isOpen:e,onClose:r}){const{enableScope:l,disableScope:a}=Ya();return lt("escape",()=>r(),{enabled:e},[r,e]),T.useEffect(()=>(e?a("navigation"):l("navigation"),()=>{l("navigation")}),[e,l,a]),e?y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),y.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full mx-4 max-h-[80vh] overflow-y-auto",children:[y.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4 flex items-center justify-between",children:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:y.jsx(nu,{size:20})})]}),y.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Jump to first file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Jump to last file"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Management"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"v"}),y.jsx("span",{className:"text-github-text-secondary",children:"Toggle viewed state of current file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"R"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Refresh diff when changes detected"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),y.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),y.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),y.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),y.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:y.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function ij({style:e}){return y.jsxs("svg",{style:e,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M440.487 5.90627C432.164 9.01695 427.318 16.2817 427.318 25.649C427.318 35.9474 433.206 43.6458 442.714 45.7819C451.336 47.7188 459.606 44.3893 464.84 36.8737C466.923 33.8843 467.35 32.4073 467.606 27.3105C467.773 23.9957 467.492 20.0154 466.983 18.4654C465.699 14.5629 460.869 9.13088 456.854 7.07513C452.57 4.88086 444.73 4.32102 440.487 5.90627ZM596.658 6.653C588.927 9.55794 584.572 15.4908 583.887 24.0465C583.17 33.0212 586.83 39.8868 594.382 43.7278C603.739 48.4877 615.574 44.5081 620.482 34.9515C625.35 25.4728 622.15 13.4916 613.37 8.32678C608.986 5.74808 601.154 4.96365 596.658 6.653ZM368.585 7.68006C367.464 8.80629 367.302 12.903 367.302 40.2286V71.4878L363.832 68.1329C353.432 58.0787 335.595 52.668 319.246 54.6082C310.542 55.641 299.81 59.1369 293.3 63.0607C278.56 71.9427 266.453 89.5576 263.139 106.945C261.765 114.155 261.602 129.431 262.825 136.365C265.723 152.796 274.795 168.36 286.716 177.355C298.275 186.077 310.237 190 325.274 190C340.687 190 353.943 185.273 362.869 176.594L367.302 172.284V178.215C367.302 186.902 366.946 186.724 384.303 186.709C392.243 186.702 399.29 186.347 399.964 185.919C401.04 185.236 401.189 174.47 401.189 97.1224C401.189 23.7236 401.003 8.87842 400.068 7.74809C398.433 5.77021 370.547 5.71037 368.585 7.68006ZM526.937 7.94153C519.783 10.0325 515.359 12.5834 510.029 17.6867C501.959 25.4129 498.766 34.4597 498.766 49.5975V58.8517H490.659C484.378 58.8517 482.263 59.1418 481.268 60.1394C480.214 61.1976 479.986 63.6558 479.986 73.91C479.986 82.5264 480.289 86.6977 480.966 87.3764C481.601 88.0141 484.903 88.36 490.356 88.36H498.766V136.692C498.766 183.638 498.811 185.048 500.345 185.873C502.433 186.994 529.394 186.994 531.482 185.873C533.016 185.048 533.061 183.638 533.061 136.692V88.36H549.334C563.038 88.36 565.809 88.1568 566.89 87.0723C568.782 85.1723 568.782 62.0394 566.89 60.1394C565.808 59.0541 563.029 58.8517 549.231 58.8517H532.856L533.216 51.9721C533.604 44.5499 534.721 41.9147 538.546 39.3958C540.377 38.1901 543.049 37.904 554.661 37.6737C562.626 37.5155 569.018 37.0343 569.602 36.5483C570.892 35.4761 571.046 10.3579 569.777 7.9776C568.978 6.47923 567.918 6.39562 550.384 6.45054C535.269 6.49808 530.93 6.77431 526.937 7.94153ZM654.931 26.4834C653.136 27.7662 653.094 28.1572 653.094 43.3245V58.8517H644.567C633.342 58.8517 633.497 58.6443 633.497 73.6059C633.497 88.5674 633.342 88.36 644.567 88.36H653.094V122.636C653.094 159.998 653.439 163.935 657.362 171.354C661.848 179.838 669.111 184.99 680.857 188.022C687.996 189.866 707.647 189.269 714.309 187.007C719.756 185.158 719.86 184.87 719.969 171.298C720.082 157.364 720.441 157.791 709.174 158.48C695.386 159.324 689.341 156.938 687.388 149.883C686.927 148.214 686.58 134.435 686.577 117.663L686.572 88.36H702.068H717.564L718.87 86.3592C719.946 84.7108 720.129 82.3461 719.91 72.9575C719.719 64.8279 719.321 61.1689 718.522 60.2041C717.553 59.0345 715.315 58.8517 701.987 58.8517H686.572L686.546 43.8926C686.526 31.8556 686.28 28.613 685.288 27.2941C684.156 25.7884 682.945 25.6351 670.412 25.4129C658.94 25.2088 656.476 25.3793 654.931 26.4834ZM431.459 60.1394C430.316 61.2877 430.178 68.0001 430.188 121.82C430.197 168.838 430.429 182.667 431.232 184.262L432.264 186.311L446.657 186.535C458.941 186.725 461.242 186.567 462.353 185.452C463.521 184.279 463.655 177.845 463.655 122.786C463.655 68.0985 463.515 61.2877 462.372 60.1394C460.469 58.2287 433.362 58.2287 431.459 60.1394ZM587.799 60.4369C587.238 61.4894 586.954 82.56 586.954 123.084C586.954 177.502 587.093 184.285 588.236 185.434C590.138 187.342 616.431 187.342 618.333 185.434C619.476 184.285 619.615 177.447 619.615 122.482C619.615 75.6149 619.38 60.5828 618.636 59.8353C617.947 59.1443 613.344 58.8517 603.15 58.8517C589.644 58.8517 588.586 58.9607 587.799 60.4369ZM347.956 87.3469C362.023 93.9543 369.138 107.306 367.775 124.535C366.623 139.097 359.678 149.866 347.83 155.463C337.073 160.544 325.541 160.523 315.049 155.403C293.381 144.83 288.765 112.315 306.417 94.5961C313.92 87.0641 322.021 84.1412 334.301 84.5354C341.49 84.7666 343.224 85.124 347.956 87.3469Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42299 0.744751C4.61699 2.15275 2.03999 5.66375 0.956994 12.2768C-0.369006 20.3728 -0.294006 170.791 1.03899 176.572C2.29699 182.031 4.81699 185.308 9.65399 187.774C13.265 189.615 16.865 189.684 108.63 189.684C163.129 189.684 204.095 189.304 204.41 188.795C206 188.5 206 188.795 207.5 188C211.167 187.079 216.779 180.138 218.005 175.584C218.682 173.068 218.939 143.952 218.756 90.4718C218.487 11.7478 218.417 9.10275 216.535 6.62675C215.466 5.22075 213.441 3.19575 212.035 2.12675C209.546 0.23575 206.839 0.17975 110.978 0.0167504C55.373 -0.0782496 11.148 0.239751 9.42299 0.744751ZM203.778 14.8838C205.558 16.6638 205.509 172.577 203.728 175.005C202.577 176.574 198.865 176.688 156.978 176.446L111.478 176.184L111.226 138.684L110.974 101.184H84.059C69.255 101.184 56.808 101.52 56.397 101.931C55.986 102.343 60.674 107.82 66.814 114.104C72.954 120.388 77.978 126.202 77.978 127.026C77.978 129.577 74.769 134.267 71.896 135.916C69.609 137.229 68.75 137.278 66.704 136.217C63.533 134.572 28.705 99.1448 27.757 96.5998C27.36 95.5348 27.491 93.4308 28.049 91.9238C28.955 89.4768 68.498 49.6838 70.024 49.6838C70.366 49.6838 72.356 51.1627 74.447 52.9697C77.589 55.6867 78.118 56.6658 77.498 58.6198C77.086 59.9198 72.075 65.8308 66.363 71.7568C60.651 77.6818 55.978 83.0148 55.978 83.6068C55.978 84.3488 64.068 84.6838 81.952 84.6838H107.927H110.666C111.144 82.5 110.978 73.4537 110.978 46.2337V13.6838H156.778C191.067 13.6838 202.88 13.9858 203.778 14.8838ZM148.803 52.7217C146.51 54.0597 144.845 59.5997 145.74 62.9107C146.146 64.4107 150.657 69.9308 155.764 75.1788C161.411 80.9788 164.547 84.8988 163.764 85.1788C163.057 85.4318 151.549 85.7608 138.19 85.9108C117.896 86.1388 113.747 86.4308 112.956 87.6838C112.435 88.5088 112.002 91.7228 111.993 94.8268C111.982 99.0598 112.373 100.622 113.56 101.077C114.43 101.411 126.13 101.684 139.56 101.684C156.121 101.684 163.978 102.026 163.978 102.746C163.978 103.33 160.187 107.607 155.554 112.251C146.244 121.582 144.276 125.371 146.069 130.514C147.321 134.107 149.576 135.684 153.463 135.684C155.522 135.684 159.843 131.902 173.778 117.904C191.699 99.9008 194.978 96.0678 194.978 93.1208C194.978 91.1338 157.422 53.8238 154.163 52.5728C151.322 51.4818 150.908 51.4937 148.803 52.7217Z",fill:"currentColor"})]})}function aj({shouldReload:e,isReloading:r,onReload:l,changeType:a,className:s="",compact:u=!1}){if(!e)return null;const c=()=>{switch(a){case"commit":return"New commits available";case"staging":return"Staging changes detected";case"file":return"File changes detected";default:return"Changes detected"}};return y.jsxs("button",{onClick:l,disabled:r,className:`
|
|
54
|
+
`);return r.length>0&&r[r.length-1]===""&&r.pop(),r},ev=(e,r)=>!e&&!r?[]:e?r?Z5(e,r).flatMap(l=>{const a=l.added?"add":l.removed?"delete":"context";return gd(l.value).map(s=>({type:a,content:s}))}):gd(e).map(l=>({type:"delete",content:l})):gd(r).map(l=>({type:"add",content:l})),O8=e=>Jt.isValidElement(e),M8=e=>Jt.isValidElement(e),eh=e=>e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(eh).join(""):O8(e)?eh(e.props.children):"",z8=e=>{switch(e){case"add":return"border-l-4 border-diff-addition-border";case"delete":return"border-l-4 border-diff-deletion-border";case"change":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},Ex=e=>{switch(e){case"before":return"border-l-4 border-diff-deletion-border";case"after":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},B8=e=>{switch(e){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},F8=e=>{switch(e){case"add":return"+";case"delete":return"-";default:return" "}},I8=e=>{switch(e){case"add":return"text-github-accent";case"delete":return"text-github-danger";default:return"text-github-text-muted"}},th=e=>/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim()),U8=e=>({h1:({children:r})=>y.jsx("h1",{className:`${Ei[0]} mb-2`,children:r}),h2:({children:r})=>y.jsx("h2",{className:`${Ei[1]} mb-2`,children:r}),h3:({children:r})=>y.jsx("h3",{className:`${Ei[2]} mb-2`,children:r}),h4:({children:r})=>y.jsx("h4",{className:`${Ei[3]} mb-2`,children:r}),h5:({children:r})=>y.jsx("h5",{className:`${Ei[4]} mb-2`,children:r}),h6:({children:r})=>y.jsx("h6",{className:`${Ei[5]} mb-2`,children:r}),p:({children:r})=>y.jsx("p",{className:"text-sm leading-7",children:r}),ul:({children:r})=>y.jsx("ul",{className:"list-disc pl-6 text-sm space-y-1",children:r}),ol:({children:r})=>y.jsx("ol",{className:"list-decimal pl-6 text-sm space-y-1",children:r}),li:({children:r})=>y.jsx("li",{children:r}),blockquote:({children:r})=>y.jsx("blockquote",{className:"border-l-4 border-github-border pl-4 text-github-text-muted italic",children:r}),hr:()=>y.jsx("hr",{className:"border-github-border"}),a:({href:r,children:l})=>{const a=r??"";if(!a||!th(a))return y.jsx("span",{children:l});const s=a.startsWith("http");return y.jsx("a",{href:a,target:s?"_blank":void 0,rel:s?"noreferrer":void 0,className:"text-sky-400 hover:text-sky-300 underline underline-offset-4",children:l})},img:({src:r,alt:l})=>{const a=r??"";return!a||!th(a)?null:y.jsx("img",{src:a,alt:l??"",loading:"lazy",className:"max-w-full rounded border border-github-border"})},pre:({children:r})=>{const a=(Array.isArray(r)?r:[r]).find(M8),s=eh(a??r),c=/language-(\S+)/.exec(a?.props.className??"")?.[1];return s.trim()?y.jsx("pre",{className:"border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-xs",children:y.jsx(Mh,{code:s.replace(/\n$/,""),language:c,syntaxTheme:e,className:"font-mono text-github-text-primary [&_.token-line]:block [&_.token-line]:whitespace-pre"})}):y.jsx("pre",{className:"border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-xs",children:r})},code:({className:r,children:l})=>r?y.jsx("code",{className:r,children:l}):y.jsx("code",{className:"px-1 py-0.5 rounded bg-github-bg-tertiary border border-github-border text-xs font-mono",children:l}),table:({children:r})=>y.jsx("div",{className:"overflow-x-auto",children:y.jsx("table",{className:"min-w-full border border-github-border",children:r})}),th:({children:r})=>y.jsx("th",{className:"border border-github-border px-2 py-1 bg-github-bg-tertiary text-sm",children:r}),td:({children:r})=>y.jsx("td",{className:"border border-github-border px-2 py-1 text-sm",children:r})}),H8=e=>{const r=Di(e.sourceLines,["context","delete"]),l=Di(e.sourceLines,["context","add"]),a=[];return e.status==="change"?(r.trim()&&a.push({label:"Before",content:r,tone:"before"}),l.trim()&&a.push({label:"After",content:l,tone:"after"}),a.length===0&&a.push({label:"After",content:l,tone:"after"}),a):e.status==="delete"?(a.push({label:"Before",content:r||l,tone:"before"}),a):(a.push({label:"After",content:l||r,tone:"after"}),a)},tv=(e,r,l,a)=>{if(!r.trim())return y.jsx("span",{className:"text-xs text-github-text-muted",children:"Empty cell"});if(e==="markdown"){const s=U8(l);return y.jsx(jh,{remarkPlugins:[Dh],urlTransform:u=>th(u)?u:"",components:s,children:r})}return e==="raw"?y.jsx("pre",{className:"whitespace-pre-wrap break-words text-xs font-mono text-github-text-primary",children:r}):y.jsx("pre",{className:"overflow-x-auto text-xs",children:y.jsx(Ga,{code:r.replace(/\n$/,""),language:a||"python",syntaxTheme:l,className:"font-mono text-github-text-primary [&_.token-line]:block [&_.token-line]:whitespace-pre"})})},q8=({lines:e,syntaxTheme:r,language:l})=>e.length===0?y.jsx("span",{className:"text-xs text-github-text-muted",children:"Empty cell"}):y.jsx("div",{className:"overflow-x-auto",children:y.jsx("div",{className:"font-mono text-xs",children:e.map((a,s)=>y.jsxs("div",{className:`flex items-start min-h-[16px] ${B8(a.type)}`,children:[y.jsx("span",{className:`w-5 text-center flex-shrink-0 select-none ${I8(a.type)}`,children:F8(a.type)}),y.jsx(Ga,{code:a.content||" ",language:l||"python",syntaxTheme:r,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit"})]},`notebook-code-line-${s}`))})}),P8=({cells:e,syntaxTheme:r,language:l})=>y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const u=H8(a),c=a.cellType==="code"&&a.executionCount!==void 0?`In[${a.executionCount??" "}]`:null,f=a.cellType==="code",h=f?ev(Di(a.sourceLines,["context","delete"]),Di(a.sourceLines,["context","add"])).filter(p=>p.type!=="context"):[];return f&&h.length===0?null:y.jsxs("div",{className:`rounded border border-github-border bg-github-bg-secondary/40 p-4 ${z8(a.status)}`,children:[y.jsx("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-3",children:y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-github-text-muted",children:Q0[a.cellType]}),c&&y.jsx("span",{className:"text-xs font-mono text-github-text-secondary",children:c}),a.id&&y.jsx("span",{className:"text-xs font-mono text-github-text-muted",children:a.id})]})}),y.jsx("div",{className:"space-y-3",children:f?y.jsx("div",{className:`px-4 py-3 ${Ex(a.status==="delete"?"before":"after")}`,children:y.jsx(q8,{lines:h,syntaxTheme:r,language:l})}):u.map((p,b)=>y.jsx("div",{className:`px-4 py-3 ${Ex(p.tone)}`,children:y.jsx("div",{className:"text-sm text-github-text-primary",children:tv(a.cellType,p.content,r,l)})},`notebook-cell-${s}-section-${b}`))})]},`notebook-cell-${s}`)})}),$8=({cells:e,syntaxTheme:r,language:l})=>y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const u=a.cellType==="code"&&a.executionCount!==void 0?`In[${a.executionCount??" "}]`:null;return y.jsxs("div",{className:"rounded border border-github-border bg-github-bg-secondary/40 p-4",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[y.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-github-text-muted",children:Q0[a.cellType]}),u&&y.jsx("span",{className:"text-xs font-mono text-github-text-secondary",children:u}),a.id&&y.jsx("span",{className:"text-xs font-mono text-github-text-muted",children:a.id})]}),y.jsx("div",{className:"text-sm text-github-text-primary",children:tv(a.cellType,a.sourceText,r,l)})]},`notebook-full-cell-${s}`)})});function V8(e){const{file:r,baseCommitish:l,targetCommitish:a}=e,[s,u]=T.useState("diff"),c=T.useMemo(()=>j8(e.mergedChunks),[e.mergedChunks]),[f,h]=T.useState({status:"idle",cells:c.cells,language:c.language}),p=T.useMemo(()=>f.cells.filter(L=>L.status==="context"?!1:L.cellType!=="code"?!0:ev(Di(L.sourceLines,["context","delete"]),Di(L.sourceLines,["context","add"])).filter($=>$.type!=="context").length>0),[f.cells]),[b,g]=T.useState(null),[v,x]=T.useState(c.language),[w,S]=T.useState(!1),[N,E]=T.useState(null),[C,j]=T.useState(null),B=T.useMemo(()=>!l&&!a?null:r.status==="added"?a?{path:r.path,ref:a}:null:r.status==="deleted"?l?{path:r.oldPath||r.path,ref:l}:null:a?{path:r.path,ref:a}:l?{path:r.oldPath||r.path,ref:l}:null,[l,a,r.oldPath,r.path,r.status]),q=T.useMemo(()=>B?`${B.ref}:${B.path}`:null,[B]);return T.useEffect(()=>{let L=!1;return(async()=>{const $=l||"HEAD~1",G=a||"HEAD",M=r.oldPath||r.path,V=r.status!=="added"&&pd($),Y=r.status!=="deleted"&&pd(G);if(!V&&!Y){h({status:"ready",cells:c.cells,language:c.language,source:"diff",message:"Notebook content could not be loaded, falling back to diff preview."});return}h(J=>({...J,status:"loading"}));try{const[J,U]=await Promise.all([V?md(M,$):Promise.resolve(null),Y?md(r.path,G):Promise.resolve(null)]),X=J?Ua(J):null,F=U?Ua(U):null;if(!X&&!F){L||h({status:"ready",cells:c.cells,language:c.language,source:"diff",message:"Notebook content could not be parsed, falling back to diff preview."});return}const O=F?.language??X?.language??c.language,z=W0(X?.cells??[],F?.cells??[]);L||h({status:"ready",cells:z,source:"blob",language:O})}catch(J){L||h({status:"error",cells:c.cells,language:c.language,source:"diff",message:J instanceof Error?J.message:"Failed to load notebook preview."})}})(),()=>{L=!0}},[l,r.oldPath,r.path,r.status,e.mergedChunks,a,c]),T.useEffect(()=>{if(s!=="full-preview")return;if(!B||!q||!pd(B.ref)){g(null),j(null),E(null),S(!1);return}let L=!1;return(q!==C||!b)&&(async()=>{q!==C&&g(null),S(!0),E(null);try{const $=await md(B.path,B.ref);if(!$)throw new Error("Failed to load preview.");const G=Ua($);if(!G)throw new Error("Notebook content could not be parsed.");L||(g(G.cells),x(G.language??c.language),j(q))}catch($){L||(g(null),j(null),E($ instanceof Error?$.message:"Failed to load preview"))}finally{L||S(!1)}})(),()=>{L=!0}},[c.language,b,C,s,B,q]),y.jsxs("div",{className:"bg-github-bg-primary",children:[y.jsx("div",{className:"flex items-center justify-between border-b border-github-border px-4 py-2",children:y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsxs("button",{onClick:()=>u("diff"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="diff"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Code Diff",children:[y.jsx(tu,{size:14}),"Diff"]}),y.jsxs("button",{onClick:()=>u("diff-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="diff-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Diff Preview",children:[y.jsx(Ls,{size:14}),"Diff Preview"]}),y.jsxs("button",{onClick:()=>u("full-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="full-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Full Preview",children:[y.jsx(Ls,{size:14}),"Full Preview"]})]})}),s==="diff"&&y.jsx(Ks,{...e}),s==="diff-preview"&&y.jsxs("div",{className:"p-4",children:[f.status==="loading"&&y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:"Loading notebook preview…"}),f.message&&y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:f.message}),p.length===0?y.jsxs("div",{children:[y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:"No changed notebook cells were found. Showing raw diff instead."}),y.jsx(Ks,{...e})]}):y.jsx(P8,{cells:p,syntaxTheme:e.syntaxTheme,language:f.language})]}),s==="full-preview"&&y.jsxs("div",{className:"p-4",children:[w&&y.jsx("div",{className:"text-sm text-github-text-muted mb-3",children:"Loading preview..."}),N&&y.jsx("div",{className:"text-sm text-github-danger mb-3",children:N}),!w&&!N&&b&&y.jsx($8,{cells:b,syntaxTheme:e.syntaxTheme,language:v??c.language}),!w&&!N&&!b&&y.jsx("div",{className:"text-sm text-github-text-muted",children:"Preview unavailable."})]})]})}const bd=[{id:"image",match:e=>tC(e.path),Component:aC,canExpandHiddenLines:()=>!1},{id:"markdown",match:e=>rC(e.path),Component:w8,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"},{id:"notebook",match:e=>iC(e.path),Component:V8,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"},{id:"default",match:()=>!0,Component:Ks,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"}],G8=e=>{const r=bd[bd.length-1];if(!r)throw new Error("No diff viewers registered");return bd.find(l=>l.match(e))??r},Y8=e=>{switch(e){case"added":return y.jsx(Xx,{size:16,className:"text-github-accent"});case"deleted":return y.jsx(Zx,{size:16,className:"text-github-danger"});case"renamed":return y.jsx(Yx,{size:16,className:"text-github-warning"});default:return y.jsx(tu,{size:16,className:"text-github-text-secondary"})}},X8=({file:e,isCollapsed:r,isReviewed:l,onToggleCollapsed:a,onToggleAllCollapsed:s,onToggleReviewed:u})=>{const[c,f]=T.useState(!1);return y.jsxs("div",{className:"bg-github-bg-secondary border-t-2 border-t-github-accent border-b border-github-border px-5 py-4 flex items-center justify-between flex-wrap gap-3 sticky top-0 z-10",children:[y.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[y.jsx("button",{onClick:h=>{h.altKey?s(!r):a(e.path)},className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:r?"Expand file (Alt+Click to expand all)":"Collapse file (Alt+Click to collapse all)",children:r?y.jsx(Vx,{size:16}):y.jsx(_i,{size:16})}),Y8(e.status),y.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:e.path}),y.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${c?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(e.path).then(()=>{console.log("File path copied to clipboard:",e.path),f(!0),setTimeout(()=>f(!1),2e3)}).catch(h=>{console.error("Failed to copy file path:",h)})},title:"Copy file path",children:c?y.jsx(qa,{size:14}):y.jsx(Gx,{size:14})}),e.oldPath&&e.oldPath!==e.path&&y.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",e.oldPath,")"]})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[y.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",e.additions]}),y.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",e.deletions]})]}),y.jsxs("button",{onClick:()=>u(e.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${l?"bg-github-accent text-white":"dark:bg-slate-600 dark:text-white dark:border-slate-500 dark:hover:bg-slate-500 dark:hover:border-slate-400 bg-github-bg-secondary text-github-text-primary border border-github-border hover:bg-github-bg-tertiary hover:border-github-text-muted"}`,title:l?"Mark as not reviewed":"Mark as reviewed",children:[l?y.jsx(qa,{size:14}):y.jsx(GS,{size:14}),"Viewed"]})]})]})},Z8=e=>{const r={old:[],new:[]};return e.forEach(l=>{const a=l.side??"new",[s,u]=Array.isArray(l.line)?[l.line[0],l.line[1]]:[l.line,l.line];s<=0||u<=0||r[a].push({start:Math.min(s,u),end:Math.max(s,u)})}),r},Q8=(e,r)=>e.chunks.map((l,a)=>{const s=r==="old"?l.oldStart:l.newStart,u=r==="old"?l.oldLines:l.newLines;return!s||u<=0?null:{start:s,end:s+u-1,index:a}}).filter(l=>!!l),K8=e=>{const r=[],l=e[0];if(!l)return r;l.start>1&&r.push({type:"before",start:1,end:l.start-1,nextChunkIndex:l.index});for(let s=1;s<e.length;s+=1){const u=e[s-1],c=e[s];!u||!c||c.start>u.end+1&&r.push({type:"between",start:u.end+1,end:c.start-1,prevChunkIndex:u.index,nextChunkIndex:c.index})}const a=e[e.length-1];return a&&r.push({type:"after",start:a.end+1,end:Number.POSITIVE_INFINITY,prevChunkIndex:a.index}),r},J8=e=>{const r=new Map;return e.forEach(l=>{const a=l.originalIndices[0];a!==void 0&&r.set(a,l)}),r},W8=e=>{const r=e[e.length-1];return r?.originalIndices[r.originalIndices.length-1]??null},ej=T.memo(function({file:r,comments:l,diffMode:a,reviewedFiles:s,onToggleReviewed:u,collapsedFiles:c,onToggleCollapsed:f,onToggleAllCollapsed:h,onAddComment:p,onGeneratePrompt:b,onRemoveComment:g,onUpdateComment:v,onOpenInEditor:x,syntaxTheme:w,baseCommitish:S,targetCommitish:N,cursor:E=null,fileIndex:C=0,onLineClick:j,commentTrigger:B,onCommentTriggerHandled:q,mergedChunks:L,expandLines:I,expandAllBetweenChunks:$,prefetchFileContent:G,isExpandLoading:M}){const V=c.has(r.path),Y=T.useRef(null),[J,U]=T.useState(!1),X=G8(r),F=X.canExpandHiddenLines?.(r)??!1;T.useEffect(()=>{if(!F)return;const D=Y.current;if(!D)return;const H=new IntersectionObserver(([A])=>{A?.isIntersecting&&U(!0)},{rootMargin:"200px"});return H.observe(D),()=>H.disconnect()},[F]),T.useEffect(()=>{J&&!V&&F&&G(r)},[J,V,F,r,G]);const O=T.useCallback(async(D,H,A,te)=>{try{await p(r.path,D,H,A,te)}catch(ue){console.error("Failed to add comment:",ue)}},[r.path,p]);T.useEffect(()=>{if(V||M||!F||l.length===0||r.chunks.length===0||L.length===0)return;const D=Z8(l),H=J8(L),A=W8(L),te=L[L.length-1],ue=new Set,fe=(pe,me)=>{ue.has(pe)||(ue.add(pe),me())};["old","new"].forEach(pe=>{const me=D[pe];if(me.length===0)return;const de=Q8(r,pe);K8(de).forEach(xe=>{if(!me.some(Pe=>Pe.start<=xe.end&&Pe.end>=xe.start))return;if(xe.type==="after"&&te&&A!==null){te.hiddenLinesAfter>0&&fe(`after-${A}`,()=>{I(r,A,"down",te.hiddenLinesAfter)});return}const ke=xe.nextChunkIndex;if(ke===void 0)return;const Ne=H.get(ke);!Ne||Ne.hiddenLinesBefore<=0||(xe.type==="before"?fe(`before-${ke}`,()=>{I(r,ke,"up",Ne.hiddenLinesBefore)}):xe.type==="between"&&fe(`between-${ke}`,()=>{$(r,ke,Ne.hiddenLinesBefore)}))})})},[l,$,I,r,V,M,L,F]);const z="4em",Q=X.Component,_={file:r,comments:l,diffMode:a,syntaxTheme:w,baseCommitish:S,targetCommitish:N,cursor:E,fileIndex:C,mergedChunks:L,isExpandLoading:M,expandHiddenLines:I,expandAllBetweenChunks:$,onAddComment:O,onGeneratePrompt:b,onRemoveComment:g,onUpdateComment:v,onOpenInEditor:x,onLineClick:j,commentTrigger:B,onCommentTriggerHandled:q};return y.jsxs("div",{ref:Y,className:"bg-github-bg-primary",style:{"--line-number-width":z},children:[y.jsx(X8,{file:r,isCollapsed:V,isReviewed:s.has(r.path),onToggleCollapsed:f,onToggleAllCollapsed:h,onToggleReviewed:u}),!V&&y.jsx("div",{className:"overflow-y-auto",children:y.jsx(Q,{..._})})]})});function tj(e){const r={name:"",path:"",isDirectory:!0,children:[]};e.forEach(a=>{const s=a.path.split("/");let u=r;for(let c=0;c<s.length;c++){const f=s[c];if(!f)continue;const h=c===s.length-1,p=s.slice(0,c+1).join("/");u.children||(u.children=[]);let b=u.children.find(g=>g.name===f);b||(b={name:f,path:p,isDirectory:!h,children:h?void 0:[],file:h?a:void 0},u.children.push(b)),u=b}});const l=a=>{if(!a.isDirectory||!a.children)return a;if(a.children=a.children.map(l),a.children.length===1&&a.children[0]?.isDirectory&&a.children[0]?.children){const s=a.children[0];if(s)return a.name?{...a,name:`${a.name}/${s.name}`,path:s.path,children:s.children}:a}return a};return l(r)}function nj({files:e,onScrollToFile:r,comments:l,reviewedFiles:a,onToggleReviewed:s,selectedFileIndex:u}){const c=tj(e),f=T.useRef(null),h=T.useRef(new Map),p={"--dir-row-height":"calc(var(--spacing, 0.25rem) * 9)"},b=$=>{if(!$.isDirectory||!$.children)return[];const G=[];return $.path&&G.push($.path),$.children.forEach(M=>{G.push(...b(M))}),G},[g,v]=T.useState(()=>new Set(b(c))),[x,w]=T.useState(""),S=$=>l.filter(G=>G.file===$).length,N=T.useMemo(()=>{const $=G=>{if(!x.trim())return G;if(G.isDirectory&&G.children){const M=G.children.map(V=>$(V)).filter(V=>V!==null);return M.length>0?{...G,children:M}:null}else if(G.file)return G.file.path.toLowerCase().includes(x.toLowerCase())?G:null;return null};return $(c)||{...c,children:[]}},[c,x]),E=$=>{switch($){case"added":return y.jsx(Xx,{size:16,className:"text-github-accent"});case"deleted":return y.jsx(Zx,{size:16,className:"text-github-danger"});case"renamed":return y.jsx(Yx,{size:16,className:"text-github-warning"});default:return y.jsx(tu,{size:16,className:"text-github-text-secondary"})}},C=$=>{v(G=>{const M=new Set(G);return M.has($)?M.delete($):M.add($),M})},j=b(c),B=g.size===j.length&&j.length>0,q=()=>{v(B?new Set:new Set(j))},L=($,G)=>{const M=f.current,V=$.currentTarget;if(!M){C(G);return}const Y=M.getBoundingClientRect(),J=V.getBoundingClientRect(),U=Number.parseFloat(getComputedStyle(V).top||"0");if(J.top-Y.top<=U+1){const z=h.current.get(G)?.querySelector('[data-tree-row="true"]:not([data-dir-header="true"])'),Q=V.getBoundingClientRect().height||0,_=z??V,D=Number.parseInt(_.dataset.depth||V.dataset.depth||"0",10),H=Q*D,A=Math.max(0,_.offsetTop-H);if(Math.abs(M.scrollTop-A)<=1){C(G);return}M.scrollTo({top:A,behavior:"smooth"});return}C(G)},I=($,G=0)=>{if($.isDirectory&&$.children){const M=g.has($.path);return y.jsxs("div",{"data-dir-container":$.path||void 0,ref:V=>{$.path&&(V?h.current.set($.path,V):h.current.delete($.path))},children:[$.name&&y.jsxs("div",{className:"sticky flex h-9 items-center gap-2 bg-github-bg-secondary px-4 hover:bg-github-bg-tertiary cursor-pointer","data-dir-header":"true","data-tree-row":"true","data-depth":G,style:{paddingLeft:`${G*16+16}px`,top:`calc(${G} * var(--dir-row-height))`,zIndex:1e3-G},onClick:V=>L(V,$.path),children:[M?y.jsx(_i,{size:16}):y.jsx(Vx,{size:16}),M?y.jsx(SS,{size:16,className:"text-github-text-secondary"}):y.jsx(ES,{size:16,className:"text-github-text-secondary"}),y.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:$.name,children:$.name})]}),(M||!$.name)&&$.children.map(V=>I(V,$.name?G+1:G))]},$.path)}else if($.file){const M=$.file,V=S(M.path),Y=a.has(M.path),J=e.findIndex(X=>X.path===M.path),U=u!==null&&u===J;return y.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${Y?"opacity-70":""} ${U?"bg-github-bg-tertiary":""}`,"data-file-row":"true","data-tree-row":"true","data-depth":G,style:{paddingLeft:`${G*16+16}px`},onClick:()=>r(M.path),children:[y.jsx(Jx,{checked:Y,onChange:()=>{s(M.path)},title:Y?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),E($.file.status),y.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${Y?"line-through text-github-text-muted":""}`,title:$.file.path,children:$.name}),V>0&&y.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[y.jsx(Qx,{size:14}),V]})]},M.path)}return null};return y.jsxs("div",{className:"h-full flex flex-col",children:[y.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0",children:["Files changed (",e.length,")"]}),y.jsx("button",{onClick:q,className:"p-1 hover:bg-github-bg-primary rounded transition-colors",title:B?"Collapse all":"Expand all",children:B?y.jsx(aS,{size:16,className:"text-github-text-secondary"}):y.jsx(sS,{size:16,className:"text-github-text-secondary"})})]}),y.jsxs("div",{className:"relative",children:[y.jsx(PS,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),y.jsx("input",{type:"text",placeholder:"Filter files...",value:x,onChange:$=>w($.target.value),className:"w-full pl-9 pr-3 py-2 text-sm bg-github-bg-primary border border-github-border rounded-md focus:outline-none focus:border-github-accent text-github-text-primary placeholder-github-text-muted"})]})]}),y.jsx("div",{className:"flex-1 overflow-y-auto relative z-0",style:p,ref:f,children:N.children?.map($=>I($))})]})}function rj({style:e}){return y.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:e,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})})}function lj({isOpen:e,onClose:r}){const{enableScope:l,disableScope:a}=Ya();return lt("escape",()=>r(),{enabled:e},[r,e]),T.useEffect(()=>(e?a("navigation"):l("navigation"),()=>{l("navigation")}),[e,l,a]),e?y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),y.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full mx-4 max-h-[80vh] overflow-y-auto",children:[y.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4 flex items-center justify-between",children:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:y.jsx(nu,{size:20})})]}),y.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Jump to first file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Jump to last file"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Management"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"v"}),y.jsx("span",{className:"text-github-text-secondary",children:"Toggle viewed state of current file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"R"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Refresh diff when changes detected"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),y.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),y.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),y.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),y.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:y.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function ij({style:e}){return y.jsxs("svg",{style:e,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M440.487 5.90627C432.164 9.01695 427.318 16.2817 427.318 25.649C427.318 35.9474 433.206 43.6458 442.714 45.7819C451.336 47.7188 459.606 44.3893 464.84 36.8737C466.923 33.8843 467.35 32.4073 467.606 27.3105C467.773 23.9957 467.492 20.0154 466.983 18.4654C465.699 14.5629 460.869 9.13088 456.854 7.07513C452.57 4.88086 444.73 4.32102 440.487 5.90627ZM596.658 6.653C588.927 9.55794 584.572 15.4908 583.887 24.0465C583.17 33.0212 586.83 39.8868 594.382 43.7278C603.739 48.4877 615.574 44.5081 620.482 34.9515C625.35 25.4728 622.15 13.4916 613.37 8.32678C608.986 5.74808 601.154 4.96365 596.658 6.653ZM368.585 7.68006C367.464 8.80629 367.302 12.903 367.302 40.2286V71.4878L363.832 68.1329C353.432 58.0787 335.595 52.668 319.246 54.6082C310.542 55.641 299.81 59.1369 293.3 63.0607C278.56 71.9427 266.453 89.5576 263.139 106.945C261.765 114.155 261.602 129.431 262.825 136.365C265.723 152.796 274.795 168.36 286.716 177.355C298.275 186.077 310.237 190 325.274 190C340.687 190 353.943 185.273 362.869 176.594L367.302 172.284V178.215C367.302 186.902 366.946 186.724 384.303 186.709C392.243 186.702 399.29 186.347 399.964 185.919C401.04 185.236 401.189 174.47 401.189 97.1224C401.189 23.7236 401.003 8.87842 400.068 7.74809C398.433 5.77021 370.547 5.71037 368.585 7.68006ZM526.937 7.94153C519.783 10.0325 515.359 12.5834 510.029 17.6867C501.959 25.4129 498.766 34.4597 498.766 49.5975V58.8517H490.659C484.378 58.8517 482.263 59.1418 481.268 60.1394C480.214 61.1976 479.986 63.6558 479.986 73.91C479.986 82.5264 480.289 86.6977 480.966 87.3764C481.601 88.0141 484.903 88.36 490.356 88.36H498.766V136.692C498.766 183.638 498.811 185.048 500.345 185.873C502.433 186.994 529.394 186.994 531.482 185.873C533.016 185.048 533.061 183.638 533.061 136.692V88.36H549.334C563.038 88.36 565.809 88.1568 566.89 87.0723C568.782 85.1723 568.782 62.0394 566.89 60.1394C565.808 59.0541 563.029 58.8517 549.231 58.8517H532.856L533.216 51.9721C533.604 44.5499 534.721 41.9147 538.546 39.3958C540.377 38.1901 543.049 37.904 554.661 37.6737C562.626 37.5155 569.018 37.0343 569.602 36.5483C570.892 35.4761 571.046 10.3579 569.777 7.9776C568.978 6.47923 567.918 6.39562 550.384 6.45054C535.269 6.49808 530.93 6.77431 526.937 7.94153ZM654.931 26.4834C653.136 27.7662 653.094 28.1572 653.094 43.3245V58.8517H644.567C633.342 58.8517 633.497 58.6443 633.497 73.6059C633.497 88.5674 633.342 88.36 644.567 88.36H653.094V122.636C653.094 159.998 653.439 163.935 657.362 171.354C661.848 179.838 669.111 184.99 680.857 188.022C687.996 189.866 707.647 189.269 714.309 187.007C719.756 185.158 719.86 184.87 719.969 171.298C720.082 157.364 720.441 157.791 709.174 158.48C695.386 159.324 689.341 156.938 687.388 149.883C686.927 148.214 686.58 134.435 686.577 117.663L686.572 88.36H702.068H717.564L718.87 86.3592C719.946 84.7108 720.129 82.3461 719.91 72.9575C719.719 64.8279 719.321 61.1689 718.522 60.2041C717.553 59.0345 715.315 58.8517 701.987 58.8517H686.572L686.546 43.8926C686.526 31.8556 686.28 28.613 685.288 27.2941C684.156 25.7884 682.945 25.6351 670.412 25.4129C658.94 25.2088 656.476 25.3793 654.931 26.4834ZM431.459 60.1394C430.316 61.2877 430.178 68.0001 430.188 121.82C430.197 168.838 430.429 182.667 431.232 184.262L432.264 186.311L446.657 186.535C458.941 186.725 461.242 186.567 462.353 185.452C463.521 184.279 463.655 177.845 463.655 122.786C463.655 68.0985 463.515 61.2877 462.372 60.1394C460.469 58.2287 433.362 58.2287 431.459 60.1394ZM587.799 60.4369C587.238 61.4894 586.954 82.56 586.954 123.084C586.954 177.502 587.093 184.285 588.236 185.434C590.138 187.342 616.431 187.342 618.333 185.434C619.476 184.285 619.615 177.447 619.615 122.482C619.615 75.6149 619.38 60.5828 618.636 59.8353C617.947 59.1443 613.344 58.8517 603.15 58.8517C589.644 58.8517 588.586 58.9607 587.799 60.4369ZM347.956 87.3469C362.023 93.9543 369.138 107.306 367.775 124.535C366.623 139.097 359.678 149.866 347.83 155.463C337.073 160.544 325.541 160.523 315.049 155.403C293.381 144.83 288.765 112.315 306.417 94.5961C313.92 87.0641 322.021 84.1412 334.301 84.5354C341.49 84.7666 343.224 85.124 347.956 87.3469Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42299 0.744751C4.61699 2.15275 2.03999 5.66375 0.956994 12.2768C-0.369006 20.3728 -0.294006 170.791 1.03899 176.572C2.29699 182.031 4.81699 185.308 9.65399 187.774C13.265 189.615 16.865 189.684 108.63 189.684C163.129 189.684 204.095 189.304 204.41 188.795C206 188.5 206 188.795 207.5 188C211.167 187.079 216.779 180.138 218.005 175.584C218.682 173.068 218.939 143.952 218.756 90.4718C218.487 11.7478 218.417 9.10275 216.535 6.62675C215.466 5.22075 213.441 3.19575 212.035 2.12675C209.546 0.23575 206.839 0.17975 110.978 0.0167504C55.373 -0.0782496 11.148 0.239751 9.42299 0.744751ZM203.778 14.8838C205.558 16.6638 205.509 172.577 203.728 175.005C202.577 176.574 198.865 176.688 156.978 176.446L111.478 176.184L111.226 138.684L110.974 101.184H84.059C69.255 101.184 56.808 101.52 56.397 101.931C55.986 102.343 60.674 107.82 66.814 114.104C72.954 120.388 77.978 126.202 77.978 127.026C77.978 129.577 74.769 134.267 71.896 135.916C69.609 137.229 68.75 137.278 66.704 136.217C63.533 134.572 28.705 99.1448 27.757 96.5998C27.36 95.5348 27.491 93.4308 28.049 91.9238C28.955 89.4768 68.498 49.6838 70.024 49.6838C70.366 49.6838 72.356 51.1627 74.447 52.9697C77.589 55.6867 78.118 56.6658 77.498 58.6198C77.086 59.9198 72.075 65.8308 66.363 71.7568C60.651 77.6818 55.978 83.0148 55.978 83.6068C55.978 84.3488 64.068 84.6838 81.952 84.6838H107.927H110.666C111.144 82.5 110.978 73.4537 110.978 46.2337V13.6838H156.778C191.067 13.6838 202.88 13.9858 203.778 14.8838ZM148.803 52.7217C146.51 54.0597 144.845 59.5997 145.74 62.9107C146.146 64.4107 150.657 69.9308 155.764 75.1788C161.411 80.9788 164.547 84.8988 163.764 85.1788C163.057 85.4318 151.549 85.7608 138.19 85.9108C117.896 86.1388 113.747 86.4308 112.956 87.6838C112.435 88.5088 112.002 91.7228 111.993 94.8268C111.982 99.0598 112.373 100.622 113.56 101.077C114.43 101.411 126.13 101.684 139.56 101.684C156.121 101.684 163.978 102.026 163.978 102.746C163.978 103.33 160.187 107.607 155.554 112.251C146.244 121.582 144.276 125.371 146.069 130.514C147.321 134.107 149.576 135.684 153.463 135.684C155.522 135.684 159.843 131.902 173.778 117.904C191.699 99.9008 194.978 96.0678 194.978 93.1208C194.978 91.1338 157.422 53.8238 154.163 52.5728C151.322 51.4818 150.908 51.4937 148.803 52.7217Z",fill:"currentColor"})]})}function aj({shouldReload:e,isReloading:r,onReload:l,changeType:a,className:s="",compact:u=!1}){if(!e)return null;const c=()=>{switch(a){case"commit":return"New commits available";case"staging":return"Staging changes detected";case"file":return"File changes detected";default:return"Changes detected"}};return y.jsxs("button",{onClick:l,disabled:r,className:`
|
|
55
55
|
flex items-center gap-1.5 text-xs rounded-md border ${s} ${u?"px-2 py-2":"px-3 py-1.5"}
|
|
56
56
|
${r?"bg-github-text-primary text-github-bg-primary border-github-text-primary cursor-not-allowed":"bg-github-text-primary text-github-bg-primary border-github-text-primary"}
|
|
57
57
|
`,title:`${c()} - Click to refresh`,"aria-label":u?"Refresh":void 0,children:[y.jsx(HS,{size:12,className:`${r?"animate-spin":""}`}),u?y.jsx("span",{className:"sr-only",children:"Refresh"}):"Refresh"]})}function Cx({label:e,value:r,resolvedValue:l,onChange:a,options:s,disabledValues:u=[]}){const[c,f]=T.useState(!1),{refs:h,floatingStyles:p,context:b}=Od({open:c,onOpenChange:f,middleware:[Ad(4),jd(),Td({padding:8})],whileElementsMounted:Nd}),g=_d(b,{handleClose:Bd()}),v=Ld(b),x=GE(b),w=Dd(b),S=zd(b),{getReferenceProps:N,getFloatingProps:E}=Md([g,v,x,w,S]),C=r==="working"&&u.includes("staged")||r==="staged"&&u.includes("working"),j=()=>{const G=s.specialOptions.find(Y=>Y.value===r);if(G)return G.label;const M=s.branches.find(Y=>Y.name===r);if(M)return`${M.name}${M.current?" (current)":""}`;const V=s.commits.find(Y=>Y.shortHash===r||Y.hash===r);return V?`${V.shortHash} - ${V.message}`:r||"Select..."},B=G=>{a(G),f(!1)},q=G=>u.includes(G),L=(G,M)=>["w-full text-left px-3 py-2 text-xs focus:outline-none transition-colors",G?"hover:bg-diff-selected-bg focus:bg-diff-selected-bg":"hover:bg-github-bg-tertiary focus:bg-github-bg-tertiary",G?"bg-diff-selected-bg border-l-4 border-l-diff-selected-border font-semibold pl-2":"",M?"opacity-50 cursor-not-allowed":"cursor-pointer"].join(" "),I=(G,M)=>G===r||M===r?!0:l?G===l||M===l:!1,$=()=>{let G=0;const M=s.specialOptions.findIndex(V=>V.value===r);if(M!==-1)return M;if(G+=s.specialOptions.length,!C){const V=s.commits.findIndex(J=>J.shortHash===r);if(V!==-1)return G+V;G+=s.commits.length;const Y=s.branches.findIndex(J=>J.name===r);if(Y!==-1)return G+Y}return 0};return y.jsxs(y.Fragment,{children:[y.jsxs("button",{ref:h.setReference,type:"button",className:"flex items-center gap-1.5 cursor-pointer group","aria-haspopup":"listbox","aria-expanded":c,...N(),children:[y.jsxs("span",{className:"text-xs text-github-text-secondary",children:[e,":"]}),y.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-github-bg-tertiary border border-github-border rounded hover:border-github-text-secondary transition-colors",children:[y.jsx("code",{className:"text-xs text-github-text-primary max-w-[150px] truncate",children:j()}),y.jsx(_i,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]})]}),c&&y.jsx(Rd,{children:y.jsx(HE,{context:b,modal:!1,initialFocus:$(),children:y.jsxs("div",{ref:h.setFloating,style:p,className:"bg-github-bg-secondary border border-github-border rounded shadow-lg z-50 w-[360px] max-h-[400px] overflow-y-auto",...E(),children:[s.specialOptions.length>0&&y.jsxs("div",{className:"border-b border-github-border",children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Special"}),s.specialOptions.map(G=>y.jsx("button",{onClick:()=>B(G.value),disabled:q(G.value),className:L(G.value===r,q(G.value)),children:G.label},G.value))]}),!C&&s.commits.length>0&&y.jsxs("div",{className:"border-b border-github-border",children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Recent Commits"}),s.commits.map(G=>y.jsx("button",{onClick:()=>B(G.shortHash),disabled:q(G.shortHash),className:L(I(G.shortHash,G.hash),q(G.shortHash)),children:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx("code",{className:"text-xs text-github-text-primary font-mono whitespace-nowrap",children:G.shortHash}),y.jsx("span",{className:"text-xs text-github-text-secondary flex-1 break-words",children:G.message})]})},G.hash))]}),!C&&s.branches.length>0&&y.jsxs("div",{children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Branches"}),s.branches.map(G=>y.jsx("button",{onClick:()=>B(G.name),disabled:q(G.name),className:L(G.name===r,q(G.name)),children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-github-text-primary",children:G.name}),G.current&&y.jsx("span",{className:"text-xs text-github-text-muted",children:"(current)"})]})},G.name))]})]})})})]})}function oj({isOpen:e,onClose:r,options:l,baseRevision:a,targetRevision:s,resolvedBaseRevision:u,resolvedTargetRevision:c,onApply:f}){const[h,p]=T.useState(a),[b,g]=T.useState(s),{enableScope:v,disableScope:x}=Ya();T.useEffect(()=>(e?x("navigation"):v("navigation"),()=>{v("navigation")}),[e,v,x]);const w=T.useMemo(()=>{const E=c||b,C=l.commits.findIndex(B=>B.shortHash===E||B.hash===E);if(C===-1)return b?[b]:[];const j=l.commits.slice(0,C+1).map(B=>B.shortHash);return b&&!j.includes(b)&&j.push(b),j.includes("working")||j.push("working"),j},[b,c,l.commits]),S=T.useMemo(()=>{const E=u||h,C=l.commits.findIndex(B=>B.shortHash===E||B.hash===E);if(C===-1)return h?[h]:[];const j=l.commits.slice(C).map(B=>B.shortHash);return h&&!j.includes(h)&&j.push(h),j},[h,u,l.commits]);if(!e)return null;const N=()=>{f(h,b),r()};return y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/40",onClick:r}),y.jsxs("div",{className:"relative bg-github-bg-secondary border border-github-border rounded-lg shadow-lg w-full max-w-lg mx-4",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Detailed Diff"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary p-1","aria-label":"Close detailed diff",children:y.jsx(nu,{size:18})})]}),y.jsxs("div",{className:"p-4 space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-center gap-3",children:[y.jsx(Cx,{label:"Base",value:h,resolvedValue:u,onChange:p,options:l,disabledValues:w}),y.jsx("span",{className:"text-github-text-muted",children:"..."}),y.jsx(Cx,{label:"Target",value:b,resolvedValue:c,onChange:g,options:l,disabledValues:S})]}),y.jsxs("div",{className:"flex justify-end gap-2",children:[y.jsx("button",{onClick:r,className:"px-3 py-1.5 text-xs font-medium rounded border border-github-border text-github-text-secondary hover:text-github-text-primary transition-colors",type:"button",children:"Cancel"}),y.jsx("button",{onClick:N,className:"px-3 py-1.5 text-xs font-medium rounded bg-github-accent text-white hover:bg-github-accent/90 transition-colors",type:"button",children:"Apply"})]})]})]})]})}const sj=[{id:"vscode",label:"VS Code",protocol:"vscode",cliCommand:"code",cliArgs:[],aliases:["vscode","code"]},{id:"cursor",label:"Cursor",protocol:"cursor",cliCommand:"cursor",cliArgs:[],aliases:["cursor"]},{id:"none",label:"Hide “Open in editor” button",protocol:null,cliCommand:null,cliArgs:[],aliases:["none","disabled","off"]}],nv="vscode",uj={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark",editor:nv},cj=[{name:"System Font",value:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif'},{name:"Menlo",value:'Menlo, Monaco, "Courier New", monospace'},{name:"SF Mono",value:'SF Mono, Consolas, "Liberation Mono", monospace'},{name:"Fira Code",value:'"Fira Code", "Courier New", monospace'},{name:"JetBrains Mono",value:'"JetBrains Mono", "Courier New", monospace'}];function fj({isOpen:e,onClose:r,settings:l,onSettingsChange:a}){const[s,u]=T.useState(l),{enableScope:c,disableScope:f}=Ya();T.useEffect(()=>{u(l)},[l]),T.useEffect(()=>{a(s)},[s,a]),T.useEffect(()=>(e?f("navigation"):c("navigation"),()=>{c("navigation")}),[e,c,f]);const h=()=>s.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s.theme,p=()=>h()==="light"?fx:dx,b=v=>{const x={...s,theme:v},S=(v==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":v)==="light"?fx:dx;if(!S.some(E=>E.id===s.syntaxTheme)&&S.length>0){const E=S[0];E&&(x.syntaxTheme=E.id)}u(x)},g=()=>{u(uj)};return e?y.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:y.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[y.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[y.jsx(Kx,{size:20}),"Appearance Settings"]}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:y.jsx(nu,{size:18})})]}),y.jsxs("div",{className:"p-4 space-y-6",children:[y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("input",{type:"range",min:"10",max:"20",step:"1",value:s.fontSize,onChange:v=>u({...s,fontSize:parseInt(v.target.value)}),className:"flex-1 accent-github-accent"}),y.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[s.fontSize,"px"]})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),y.jsx("select",{value:s.fontFamily,onChange:v=>u({...s,fontFamily:v.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:cj.map(v=>y.jsx("option",{value:v.value,children:v.name},v.value))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),y.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(v=>y.jsx("button",{onClick:()=>b(v),className:`px-3 py-2 text-sm rounded border transition-colors ${s.theme===v?"bg-github-accent text-white border-github-accent":"bg-github-bg-tertiary text-github-text-secondary border-github-border hover:text-github-text-primary"}`,children:v.charAt(0).toUpperCase()+v.slice(1)},v))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),y.jsx("select",{value:s.syntaxTheme,onChange:v=>u({...s,syntaxTheme:v.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:p().map(v=>y.jsx("option",{value:v.id,children:v.label},v.id))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Open In Editor"}),y.jsx("select",{value:s.editor,onChange:v=>u({...s,editor:v.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:sj.map(v=>y.jsx("option",{value:v.id,children:v.label},v.id))})]})]}),y.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[y.jsx("button",{onClick:g,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),y.jsx("button",{onClick:r,className:"px-4 py-2 text-sm bg-github-accent text-white rounded hover:bg-green-600",children:"Close"})]})]})}):null}const Nx={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},dj=({isActive:e})=>e?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"animate-sparkle-rise",style:{...Nx,left:"-12px",animationDelay:"0s"},children:"✨"}),y.jsx("div",{className:"animate-sparkle-rise",style:{...Nx,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,Ax={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark",editor:nv},Tx="reviewit-appearance-settings";function hj(){const[e,r]=T.useState(()=>{try{const s=localStorage.getItem(Tx);if(s)return{...Ax,...JSON.parse(s)}}catch(s){console.warn("Failed to load appearance settings from localStorage:",s)}return Ax}),l=T.useCallback(s=>{const u=document.documentElement;u.setAttribute("data-theme",s),s==="light"?(u.style.setProperty("--color-github-bg-primary","#ffffff"),u.style.setProperty("--color-github-bg-secondary","#f6f8fa"),u.style.setProperty("--color-github-bg-tertiary","#f1f3f4"),u.style.setProperty("--color-github-border","#d1d9e0"),u.style.setProperty("--color-github-text-primary","#24292f"),u.style.setProperty("--color-github-text-secondary","#656d76"),u.style.setProperty("--color-github-text-muted","#8c959f"),u.style.setProperty("--color-github-accent","#1f883d"),u.style.setProperty("--color-github-danger","#cf222e"),u.style.setProperty("--color-github-warning","#bf8700"),u.style.setProperty("--color-diff-addition-bg","#d1f4cd"),u.style.setProperty("--color-diff-addition-border","#1f883d"),u.style.setProperty("--color-diff-deletion-bg","#ffd8d3"),u.style.setProperty("--color-diff-deletion-border","#cf222e"),u.style.setProperty("--color-diff-neutral-bg","#f1f3f4"),u.style.setProperty("--color-comment-bg","#fff8e1"),u.style.setProperty("--color-comment-border","#ffd54f"),u.style.setProperty("--color-comment-text","#5d4037"),u.style.setProperty("--color-yellow-btn-bg","#fef3c7"),u.style.setProperty("--color-yellow-btn-border","#f59e0b"),u.style.setProperty("--color-yellow-btn-text","#92400e"),u.style.setProperty("--color-yellow-btn-hover-bg","#fde68a"),u.style.setProperty("--color-yellow-btn-hover-border","#d97706"),u.style.setProperty("--color-yellow-path-bg","#fde68a"),u.style.setProperty("--color-yellow-path-text","#92400e"),u.style.setProperty("--color-editor-btn-bg","rgba(248, 250, 252, 0.1)"),u.style.setProperty("--color-editor-btn-border","rgba(31, 41, 55, 0.35)"),u.style.setProperty("--color-editor-btn-text","#1f2937"),u.style.setProperty("--color-editor-btn-hover-bg","rgba(248, 250, 252, 0.2)"),u.style.setProperty("--color-editor-btn-hover-border","rgba(31, 41, 55, 0.5)")):(u.style.setProperty("--color-github-bg-primary","#0d1117"),u.style.setProperty("--color-github-bg-secondary","#161b22"),u.style.setProperty("--color-github-bg-tertiary","#21262d"),u.style.setProperty("--color-github-border","#30363d"),u.style.setProperty("--color-github-text-primary","#f0f6fc"),u.style.setProperty("--color-github-text-secondary","#8b949e"),u.style.setProperty("--color-github-text-muted","#6e7681"),u.style.setProperty("--color-github-accent","#238636"),u.style.setProperty("--color-github-danger","#da3633"),u.style.setProperty("--color-github-warning","#d29922"),u.style.setProperty("--color-diff-addition-bg","#0d4429"),u.style.setProperty("--color-diff-addition-border","#1b7c3d"),u.style.setProperty("--color-diff-deletion-bg","#67060c"),u.style.setProperty("--color-diff-deletion-border","#da3633"),u.style.setProperty("--color-diff-neutral-bg","#21262d"),u.style.setProperty("--color-comment-bg","#1c2128"),u.style.setProperty("--color-comment-border","#373e47"),u.style.setProperty("--color-comment-text","#e6edf3"),u.style.setProperty("--color-yellow-btn-bg","rgba(180, 83, 9, 0.2)"),u.style.setProperty("--color-yellow-btn-border","rgba(217, 119, 6, 0.5)"),u.style.setProperty("--color-yellow-btn-text","#fbbf24"),u.style.setProperty("--color-yellow-btn-hover-bg","rgba(180, 83, 9, 0.3)"),u.style.setProperty("--color-yellow-btn-hover-border","#d97706"),u.style.setProperty("--color-yellow-path-bg","rgba(180, 83, 9, 0.3)"),u.style.setProperty("--color-yellow-path-text","#fbbf24"),u.style.setProperty("--color-editor-btn-bg","rgba(248, 250, 252, 0.1)"),u.style.setProperty("--color-editor-btn-border","rgba(248, 250, 252, 0.3)"),u.style.setProperty("--color-editor-btn-text","#f0f6fc"),u.style.setProperty("--color-editor-btn-hover-bg","rgba(248, 250, 252, 0.2)"),u.style.setProperty("--color-editor-btn-hover-border","rgba(248, 250, 252, 0.45)")),document.body.style.backgroundColor="var(--color-github-bg-primary)",document.body.style.color="var(--color-github-text-primary)"},[]);return T.useEffect(()=>{const s=document.documentElement;if(s.style.setProperty("--app-font-size",`${e.fontSize}px`),s.style.setProperty("--app-font-family",e.fontFamily),e.theme==="auto"){const u=window.matchMedia("(prefers-color-scheme: dark)");l(u.matches?"dark":"light");const c=f=>{l(f.matches?"dark":"light")};return u.addEventListener("change",c),()=>u.removeEventListener("change",c)}else{l(e.theme);return}},[e,l]),{settings:e,updateSettings:s=>{r(s);try{localStorage.setItem(Tx,JSON.stringify(s))}catch(u){console.warn("Failed to save appearance settings to localStorage:",u)}}}}function rv(e,r,l){const a=typeof r=="number"?`L${r}`:Array.isArray(r)?`L${r[0]}-L${r[1]}`:"";return`${e||"<unknown file>"}:${a}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as U}from"./index-
|
|
1
|
+
import{g as U}from"./index-N61VWhYi.js";function W(r,t){for(var e=0;e<t.length;e++){const a=t[e];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in r)){const u=Object.getOwnPropertyDescriptor(a,s);u&&Object.defineProperty(r,s,u.get?u:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var I={},O;function Z(){return O||(O=1,(function(r){function t(n,l){return n.replace(/<<(\d+)>>/g,function(f,M){return"(?:"+l[+M]+")"})}function e(n,l,f){return RegExp(t(n,l),"")}function a(n,l){for(var f=0;f<l;f++)n=n.replace(/<<self>>/g,function(){return"(?:"+n+")"});return n.replace(/<<self>>/g,"[^\\s\\S]")}var s={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function u(n){return"\\b(?:"+n.trim().replace(/ /g,"|")+")\\b"}var v=u(s.typeDeclaration),d=RegExp(u(s.type+" "+s.typeDeclaration+" "+s.contextual+" "+s.other)),T=u(s.typeDeclaration+" "+s.contextual+" "+s.other),z=u(s.type+" "+s.typeDeclaration+" "+s.other),g=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=a(/\((?:[^()]|<<self>>)*\)/.source,2),i=/@?\b[A-Za-z_]\w*\b/.source,b=t(/<<0>>(?:\s*<<1>>)?/.source,[i,g]),c=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[T,b]),y=/\[\s*(?:,\s*)*\]/.source,A=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[c,y]),K=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,h,y]),q=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[K]),p=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[q,c,y]),o={keyword:d,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,w=/"(?:\\.|[^\\"\r\n])*"/.source,F=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;r.languages.csharp=r.languages.extend("clike",{string:[{pattern:e(/(^|[^$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:e(/(^|[^@$\\])<<0>>/.source,[w]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:e(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[c]),lookbehind:!0,inside:o},{pattern:e(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[i,p]),lookbehind:!0,inside:o},{pattern:e(/(\busing\s+)<<0>>(?=\s*=)/.source,[i]),lookbehind:!0},{pattern:e(/(\b<<0>>\s+)<<1>>/.source,[v,b]),lookbehind:!0,inside:o},{pattern:e(/(\bcatch\s*\(\s*)<<0>>/.source,[c]),lookbehind:!0,inside:o},{pattern:e(/(\bwhere\s+)<<0>>/.source,[i]),lookbehind:!0},{pattern:e(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[A]),lookbehind:!0,inside:o},{pattern:e(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[p,z,i]),inside:o}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),r.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),r.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:e(/([(,]\s*)<<0>>(?=\s*:)/.source,[i]),lookbehind:!0,alias:"punctuation"}}),r.languages.insertBefore("csharp","class-name",{namespace:{pattern:e(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[i]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:e(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:o},"return-type":{pattern:e(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[p,c]),inside:o,alias:"class-name"},"constructor-invocation":{pattern:e(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[p]),lookbehind:!0,inside:o,alias:"class-name"},"generic-method":{pattern:e(/<<0>>\s*<<1>>(?=\s*\()/.source,[i,g]),inside:{function:e(/^<<0>>/.source,[i]),generic:{pattern:RegExp(g),alias:"class-name",inside:o}}},"type-list":{pattern:e(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[v,b,i,p,d.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:e(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,h]),lookbehind:!0,greedy:!0,inside:r.languages.csharp},keyword:d,"class-name":{pattern:RegExp(p),greedy:!0,inside:o},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var x=w+"|"+k,E=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[x]),S=a(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[E]),2),_=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,N=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[c,S]);r.languages.insertBefore("csharp","class-name",{attribute:{pattern:e(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[_,N]),lookbehind:!0,greedy:!0,inside:{target:{pattern:e(/^<<0>>(?=\s*:)/.source,[_]),alias:"keyword"},"attribute-arguments":{pattern:e(/\(<<0>>*\)/.source,[S]),inside:r.languages.csharp},"class-name":{pattern:RegExp(c),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var m=/:[^}\r\n]+/.source,C=a(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[E]),2),$=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[C,m]),R=a(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[x]),2),D=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,m]);function j(n,l){return{interpolation:{pattern:e(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[n]),lookbehind:!0,inside:{"format-string":{pattern:e(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[l,m]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:r.languages.csharp}}},string:/[\s\S]+/}}r.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:e(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[$]),lookbehind:!0,greedy:!0,inside:j($,C)},{pattern:e(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:j(D,R)}],char:{pattern:RegExp(k),greedy:!0}}),r.languages.dotnet=r.languages.cs=r.languages.csharp})(Prism)),I}var B=Z();const G=U(B),J=W({__proto__:null,default:G},[B]);export{J as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as u}from"./index-
|
|
1
|
+
import{g as u}from"./index-N61VWhYi.js";function d(t,o){for(var a=0;a<o.length;a++){const e=o[a];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(e,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var s={},n;function p(){return n||(n=1,Prism.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}),s}var l=p();const b=u(l),f=d({__proto__:null,default:b},[l]);export{f as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as u}from"./index-
|
|
1
|
+
import{g as u}from"./index-N61VWhYi.js";function p(t,a){for(var r=0;r<a.length;r++){const e=a[r];if(typeof e!="string"&&!Array.isArray(e)){for(const s in e)if(s!=="default"&&!(s in t)){const n=Object.getOwnPropertyDescriptor(e,s);n&&Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:()=>e[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var o={},i;function d(){return i||(i=1,(function(t){var a=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,e={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[e,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:e.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:e.inside}],keyword:a,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":e,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:e.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:e.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return a.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism)),o}var c=d();const l=u(c),w=p({__proto__:null,default:l},[c]);export{w as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l}from"./index-
|
|
1
|
+
import{g as l}from"./index-N61VWhYi.js";function d(r,e){for(var o=0;o<e.length;o++){const t=e[o];if(typeof t!="string"&&!Array.isArray(t)){for(const s in t)if(s!=="default"&&!(s in r)){const n=Object.getOwnPropertyDescriptor(t,s);n&&Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:()=>t[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a={},u;function c(){return u||(u=1,(function(r){var e=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;r.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,e].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,e].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,e+/\s*/.source+e].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(Prism)),a}var i=c();const p=l(i),b=d({__proto__:null,default:p},[i]);export{b as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as c}from"./index-
|
|
1
|
+
import{g as c}from"./index-N61VWhYi.js";function f(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const a in t)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(t,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>t[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var u={},d;function g(){return d||(d=1,(function(e){var r=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],t=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:r,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:t,operator:a,punctuation:i};var l={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:l}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:l}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:r,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:t,operator:a,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(s){if(/<\?/.test(s.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;e.languages["markup-templating"].buildPlaceholders(s,"php",p)}}),e.hooks.add("after-tokenize",function(s){e.languages["markup-templating"].tokenizePlaceholders(s,"php")})})(Prism)),u}var b=g();const y=c(b),m=f({__proto__:null,default:y},[b]);export{m as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l}from"./index-
|
|
1
|
+
import{g as l}from"./index-N61VWhYi.js";function d(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const i in t)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(t,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>t[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var a={},o;function g(){return o||(o=1,(function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",t=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+t),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+t+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby})(Prism)),a}var u=g();const p=l(u),b=d({__proto__:null,default:p},[u]);export{b as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as u}from"./index-
|
|
1
|
+
import{g as u}from"./index-N61VWhYi.js";function d(t,n){for(var i=0;i<n.length;i++){const e=n[i];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var o={},a;function c(){return a||(a=1,Prism.languages.solidity=Prism.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),Prism.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),Prism.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),Prism.languages.sol=Prism.languages.solidity),o}var l=c();const m=u(l),y=d({__proto__:null,default:m},[l]);export{y as p};
|
package/dist/client/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<link rel="icon" href="/favicon-white.svg" media="(prefers-color-scheme: dark)" />
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
9
9
|
<title>difit - Git Diff Viewer</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-N61VWhYi.js"></script>
|
|
11
11
|
<link rel="stylesheet" crossorigin href="/assets/index-BVVFshvc.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "difit",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"description": "A lightweight command-line tool that spins up a local web server to display Git commit diffs in a GitHub-like Files changed view",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"publishConfig": {
|
|
117
117
|
"access": "public"
|
|
118
118
|
},
|
|
119
|
-
"packageManager": "pnpm@10.28.
|
|
119
|
+
"packageManager": "pnpm@10.28.2"
|
|
120
120
|
}
|